/* sleep — 頁面樣式（/sleep.css） */
body.page-sleep {
  font-family: 'Microsoft JhengHei', Arial, sans-serif;
  background: var(--bg-main);
  background-image: none;
  min-height: 100vh;
  color: var(--text);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Main Content */
        .container {
            max-width: 700px;
            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: 1rem;
            margin-bottom: 1.5rem;
        }
        
        .card-title {
            font-size: 1.5rem;
            font-weight: bold;
            text-align: center;
            margin-bottom: 1.5rem;
            color: #1f2937;
        }
        
        .input-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 1rem;
            margin-bottom: 1rem;
        }
        
        body.page-sleep .input-group {
            text-align: center;
        }
        
        body.page-sleep .input-group label {
            display: block;
            font-size: 30px;
            font-weight: 600;
            color: #374151;
            margin-bottom: 0.5rem;
            line-height: 1.35;
        }
        
        body.page-sleep .input-group .select-group {
            display: flex;
            justify-content: center;
            align-items: stretch;
            gap: 0.5rem;
            width: 50%;
            max-width: 100%;
            margin-left: auto;
            margin-right: auto;
        }
        
        body.page-sleep .input-group .select-group select {
            flex: 1;
            min-width: 0;
            margin: 0;
        }
        
        body.page-sleep .input-group input,
        body.page-sleep .input-group select {
            width: 50%;
            max-width: 100%;
            margin-left: auto;
            margin-right: auto;
            display: block;
            padding: 0.75rem 0.5rem;
            font-size: 30px;
            text-align: center;
            border: 2px solid #e5e7eb;
            border-radius: 12px;
            transition: border-color 0.25s ease, box-shadow 0.25s ease;
            -webkit-appearance: none;
            -moz-appearance: none;
            appearance: none;
            background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
            box-shadow:
                0 2px 8px rgba(0, 0, 0, 0.06),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
        }
        
        body.page-sleep .input-group .select-group select {
            width: auto;
            margin-left: 0;
            margin-right: 0;
        }
        
        body.page-sleep .input-group input:focus,
        body.page-sleep .input-group select:focus {
            outline: none;
            border-color: #8b5cf6;
            box-shadow:
                0 0 0 3px rgba(139, 92, 246, 0.22),
                0 4px 12px rgba(0, 0, 0, 0.08);
        }
        
        body.page-sleep .input-group input::placeholder {
            color: #9ca3af;
            font-size: 24px;
        }
        
        /* 結果顯示區塊 */
        .results-section {
            margin-top: 2rem;
        }
        
        .results-title {
            font-size: 1.25rem;
            font-weight: bold;
            color: #3b82f6; /* 藍色標題 */
            border-bottom: 2px solid #bfdbfe;
            padding-bottom: 0.5rem;
            margin-bottom: 1rem;
        }
        
        .time-suggestion {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.75rem 1rem;
            margin-bottom: 0.75rem;
            border-radius: 0.5rem;
            background: #f0f9ff;
            border-left: 5px solid #3b82f6;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }
        
        .time-suggestion.highlight {
            background: #fef2f2;
            border-left: 5px solid #ef4444;
        }
        
        .time-suggestion span:first-child {
            font-weight: 500;
            color: #4b5563;
        }
        
        .time-suggestion span:last-child {
            font-size: 1.25rem;
            font-weight: bold;
            color: #1f2937;
        }
        
        .current-time {
            text-align: center;
            padding: 1rem;
            background: #eef2ff;
            border-radius: 0.75rem;
            margin-bottom: 1.5rem;
        }
        
        .current-time-label {
            font-size: 0.875rem;
            color: #4f46e5;
            margin-bottom: 0.5rem;
            font-weight: 600;
        }
        
        .current-time-display {
            font-size: 2rem;
            font-weight: bold;
            color: #1e3a8a;
        }

        .action-button {
            width: 100%;
            padding: 1rem;
            font-size: 1.125rem;
            font-weight: bold;
            color: white;
            background: linear-gradient(90deg, #ec4899 0%, #8b5cf6 100%);
            border: none;
            border-radius: 0.75rem;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
            margin-top: 1rem;
        }

        .action-button:hover {
            opacity: 0.9;
            transform: translateY(-2px);
            box-shadow: 0 6px 10px rgba(0,0,0,0.15);
        }

        .info-box {
            background: #dbeafe;
            padding: 1rem;
            border-radius: 1rem;
            border-left: 4px solid #3b82f6;
            margin-top: 1.5rem;
        }
        
        .info-box h3 {
            font-size: 1.25rem;
            font-weight: bold;
            color: #1e40af;
            margin-bottom: 0.75rem;
        }
        
        .info-box ul {
            margin-left: 1.25rem;
            font-size: 0.875rem;
        }
        
        .info-box li {
            margin: 0.5rem 0;
            color: #374151;
        }
        
            main {
            flex: 1;
            max-width: 1200px;
            margin: 3rem auto;
            padding: 0 2rem;
            width: 100%;
        }
                .hero {
            text-align: center;
            color: var(--text);
            margin-bottom: 3rem;
        }

        .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;
        }