/* clock.0123456789.tw — 頁面樣式（/clock.css） */
body.page-clock {
  font-family: 'Microsoft JhengHei', Arial, sans-serif;
  background: var(--bg-main);
  min-height: 100vh;
}
/* Main Content */
        .container {
            max-width: 800px;
            margin: 0 auto;
            padding: 1.5rem 1rem;
        }
        
        .card {
            background: white;
            border-radius: 1rem;
            box-shadow: 0 10px 25px rgba(0,0,0,0.1);
            padding: 1.5rem;
            margin-bottom: 1.5rem;
        }
        
        .card-title {
            font-size: 1.75rem;
            font-weight: bold;
            text-align: center;
            margin-bottom: 1.5rem;
            color: #1f2937;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        .section-title {
            font-size: 1.25rem;
            font-weight: bold;
            margin-bottom: 1rem;
            color: #5b21b6;
            border-left: 4px solid #8b5cf6;
            padding-left: 0.75rem;
        }
        
        .timer-display {
            background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
            border-radius: 1rem;
            padding: 3rem 2rem;
            text-align: center;
            margin-bottom: 2rem;
            box-shadow: 0 8px 16px rgba(0,0,0,0.2);
        }
        
        .round-info {
            font-size: 1.5rem;
            font-weight: 600;
            color: #c4b5fd;
            margin-bottom: 1rem;
        }
        
        .time-display {
            font-size: 5rem;
            font-weight: bold;
            color: #ffffff;
            font-family: 'Courier New', monospace;
            line-height: 1;
            margin-bottom: 1rem;
            text-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
        }
        
        .phase-label {
            font-size: 1.25rem;
            font-weight: 600;
            padding: 0.5rem 1.5rem;
            border-radius: 2rem;
            display: inline-block;
            margin-bottom: 1rem;
        }
        
        .phase-work {
            background: #dc2626;
            color: white;
        }
        
        .phase-rest {
            background: #16a34a;
            color: white;
        }
        
        .progress-bar {
            width: 100%;
            height: 8px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 4px;
            overflow: hidden;
            margin-top: 1rem;
        }
        
        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #8b5cf6 0%, #ec4899 100%);
            transition: width 0.3s ease;
            border-radius: 4px;
        }
        
        .input-section {
            background: #f5f3ff;
            padding: 1.5rem;
            border-radius: 0.75rem;
            margin-bottom: 1.5rem;
        }
        
        .preset-buttons {
            display: grid;
            grid-template-columns: 1fr;
            gap: 0.75rem;
            margin-bottom: 1.5rem;
        }
        
        .preset-btn {
            padding: 1rem;
            background: white;
            border: 2px solid #e9d5ff;
            border-radius: 0.5rem;
            cursor: pointer;
            transition: all 0.3s;
            text-align: left;
        }
        
        .preset-btn:hover {
            background: #faf5ff;
            border-color: #8b5cf6;
            transform: translateY(-2px);
        }
        
        .preset-btn.active {
            background: #8b5cf6;
            color: white;
            border-color: #8b5cf6;
        }
        
        .preset-title {
            font-weight: 600;
            font-size: 1.125rem;
            margin-bottom: 0.25rem;
        }
        
        .preset-desc {
            font-size: 0.875rem;
            color: #6b7280;
        }
        
        .preset-btn.active .preset-desc {
            color: #e9d5ff;
        }
        
        .input-group {
            margin-bottom: 1rem;
        }
        
        .input-group label {
            display: block;
            font-size: 1rem;
            font-weight: 600;
            color: #374151;
            margin-bottom: 0.5rem;
        }
        
        .input-group input[type="number"] {
            width: 100%;
            padding: 0.75rem;
            font-size: 1.125rem;
            border: 2px solid #e9d5ff;
            border-radius: 0.5rem;
            transition: border-color 0.3s;
            background: white;
        }
        
        .input-group input[type="number"]:focus {
            outline: none;
            border-color: #8b5cf6;
        }
        
        .control-buttons {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
            margin-top: 1.5rem;
        }
        
        .control-btn {
            padding: 1rem;
            font-size: 1.125rem;
            font-weight: bold;
            color: white;
            border: none;
            border-radius: 0.75rem;
            cursor: pointer;
            transition: all 0.2s;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        }
        
        .start-btn {
            background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
        }
        
        .start-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 12px rgba(34, 197, 94, 0.4);
        }
        
        .start-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }
        
        .pause-btn {
            background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
        }
        
        .pause-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 12px rgba(249, 115, 22, 0.4);
        }
        
        .stop-btn {
            background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
        }
        
        .stop-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 12px rgba(239, 68, 68, 0.4);
        }
        
        .reset-btn {
            background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%);
        }
        
        .reset-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 12px rgba(156, 163, 175, 0.4);
        }
        
        .stats-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 1rem;
            margin-top: 1.5rem;
        }
        
        .stat-item {
            background: #faf5ff;
            padding: 1rem;
            border-radius: 0.5rem;
            border-left: 4px solid #8b5cf6;
        }
        
        .stat-label {
            font-size: 0.875rem;
            color: #6b7280;
            margin-bottom: 0.25rem;
        }
        
        .stat-value {
            font-size: 1.5rem;
            font-weight: bold;
            color: #5b21b6;
        }
        
        .info-box {
            background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
            padding: 1.5rem;
            border-radius: 0.75rem;
            border-left: 4px solid #3b82f6;
            margin-bottom: 1.5rem;
        }
        
        .info-box h3 {
            font-size: 1.25rem;
            font-weight: bold;
            color: #1e40af;
            margin-bottom: 1rem;
        }
        
        .info-box ul {
            list-style: none;
            padding-left: 0;
        }
        
        .info-box li {
            padding: 0.5rem 0;
            color: #1e40af;
            display: flex;
            align-items: start;
        }
        
        .info-box li:before {
            content: "▶";
            color: #3b82f6;
            font-weight: bold;
            margin-right: 0.75rem;
        }
        
        .knowledge-section {
            background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
            padding: 1.5rem;
            border-radius: 0.75rem;
            border-left: 4px solid #22c55e;
        }
        
        .knowledge-section h3 {
            font-size: 1.25rem;
            font-weight: bold;
            color: #15803d;
            margin-bottom: 1rem;
        }
        
        .knowledge-section h4 {
            font-size: 1.1rem;
            font-weight: bold;
            color: #16a34a;
            margin-top: 1rem;
            margin-bottom: 0.5rem;
        }
        
        .knowledge-section p {
            color: #166534;
            line-height: 1.6;
            margin-bottom: 0.75rem;
        }
        
        .knowledge-section ul {
            list-style: none;
            padding-left: 0;
        }
        
        .knowledge-section li {
            padding: 0.5rem 0;
            color: #166534;
            display: flex;
            align-items: start;
        }
        
        .knowledge-section li:before {
            content: "✓";
            color: #22c55e;
            font-weight: bold;
            margin-right: 0.75rem;
            font-size: 1.25rem;
        }
        
               .hero {
            text-align: center;
            color: white;
            margin-bottom: 3rem;
        }
        
        .hero a {
            text-decoration: none;
            color: white;
            font-size: 1.25rem;
            font-weight: bold;
            display: inline-block;
            padding: 1rem 2rem;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 0.75rem;
            transition: transform 0.2s;
        }
        
        .hero a:hover {
            transform: scale(1.05);
        }
        
        .hero img {
            width: 24px;
            height: 24px;
            vertical-align: middle;
        }
        

        .hero h1 {
            font-size: 3rem;
            margin-bottom: 1rem;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
        }

        .hero p {
            font-size: 1.2rem;
            opacity: 0.9;
        }

        .calculator-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
            gap: 2rem;
            margin-top: 2rem;
        }
        

        .calculator-card {
            background: #eae6dd;
            border-radius: 15px;
            padding: 1rem;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .calculator-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 40px rgba(0,0,0,0.3);
        }
.calculator-card a {
    text-decoration: none; /* 去除底線 */
    font-weight: bold;     /* 粗體 */
    color: #222;           /* 顏色 #222 */
}
   .calculator-card h3 {
            color: #222;
            margin-bottom: 1rem;
            font-size: 1rem;
        }

        .calculator-card p {
            color: #666;
            line-height: 1;
        }

        .icon {
            font-size: 2rem;
            margin-bottom: 0rem;
        }
