/* alarm.0123456789.tw — 頁面樣式（/alarm.css） */
body.page-alarm {
  font-family: 'Microsoft JhengHei', Arial, sans-serif;
  background: var(--bg-main);
  min-height: 100vh;
}
/* Main Content */
        .container {
            max-width: 1000px;
            margin: 0 auto;
            padding: 2rem 1rem;
        }
        
        .card {
            background: white;
            border-radius: 1rem;
            box-shadow: 0 10px 25px rgba(0,0,0,0.1);
            padding: 2rem;
            margin-bottom: 2rem;
        }
        
        .card-title {
            font-size: 1.5rem;
            font-weight: bold;
            text-align: center;
            margin-bottom: 1.5rem;
            color: #1f2937;
        }
        
        /* 液晶顯示面板 */
        .lcd-panel {
            background: #0a0a0a;
            border-radius: 1rem;
            padding: 1.5rem;
            margin-bottom: 2rem;
            border: 8px solid #333;
            box-shadow: 0 0 20px rgba(0, 255, 255, 0.3) inset;
            color: #0f0;
            font-family: 'Courier New', monospace;
            text-align: center;
            min-height: 120px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }
        
        .current-time {
            font-size: 2.5rem;
            font-weight: bold;
            letter-spacing: 3px;
            margin-bottom: 0.5rem;
            text-shadow: 0 0 10px #0f0;
        }
        
        .alert-message {
            font-size: 1.2rem;
            color: #ff5555;
            animation: blink 1s infinite;
            margin-top: 0.5rem;
        }
        
        @keyframes blink {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }
        
        /* 倒數時鐘設定 */
        .timer-form {
            display: grid;
            grid-template-columns: 1fr;
            gap: 1.5rem;
            margin-bottom: 2rem;
        }
        
        .form-group {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }
        
        .form-group label {
            font-size: 1rem;
            font-weight: 600;
            color: #374151;
        }
        
        .form-row {
            display: grid;
            grid-template-columns: 1fr 2fr;
            gap: 1rem;
            align-items: center;
        }
        
        .time-inputs {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 0.5rem;
        }
        
        .time-input {
            display: flex;
            flex-direction: column;
            gap: 0.25rem;
        }
        
        .time-input label {
            font-size: 0.875rem;
            color: #666;
        }
        
        input, select {
            width: 100%;
            padding: 0.75rem 1rem;
            font-size: 1rem;
            border: 2px solid #d1d5db;
            border-radius: 0.5rem;
            transition: border-color 0.3s;
        }
        
        input:focus, select:focus {
            outline: none;
            border-color: #ec4899;
        }
        
        .btn-group {
            display: flex;
            gap: 1rem;
            margin-top: 1rem;
        }
        
        .btn {
            padding: 0.75rem 1.5rem;
            border: none;
            border-radius: 0.5rem;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            flex: 1;
        }
        
        .btn-primary {
            background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
            color: white;
        }
        
        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(236, 72, 153, 0.3);
        }
        
        .btn-secondary {
            background: #6b7280;
            color: white;
        }
        
        .btn-secondary:hover {
            background: #4b5563;
            transform: translateY(-2px);
        }

        /* 倒數時鐘列表 */
        body.page-alarm .timers-container {
            margin-top: 0.5rem;
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        body.page-alarm .timer-card {
            background: var(--surface, #fff);
            border-radius: 14px;
            padding: 1.25rem 1.5rem;
            border-left: 5px solid #e91e63;
            box-shadow: 0 4px 14px rgba(43, 62, 80, 0.08);
            transition: box-shadow 0.25s ease, transform 0.2s ease;
        }

        body.page-alarm .timer-card:hover {
            box-shadow: 0 8px 22px rgba(43, 62, 80, 0.12);
        }

        body.page-alarm .timer-card.running {
            border-left-color: #00b894;
        }

        body.page-alarm .timer-card.paused {
            border-left-color: #f59e0b;
        }

        body.page-alarm .timer-card.expired {
            border-left-color: #ff4d4d;
            background: rgba(254, 226, 226, 0.65);
            animation: alarm-timer-pulse 2s ease-in-out infinite;
        }

        @keyframes alarm-timer-pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.01); }
        }

        body.page-alarm .timer-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
            gap: 0.75rem;
        }

        body.page-alarm .timer-title {
            font-size: 1.125rem;
            font-weight: 700;
            color: var(--text, #2b3e50);
            line-height: 1.3;
        }

        body.page-alarm .timer-number {
            flex-shrink: 0;
            background: #e91e63;
            color: #fff;
            padding: 0.2rem 0.75rem;
            border-radius: 999px;
            font-size: 0.8125rem;
            font-weight: 700;
            letter-spacing: 0.02em;
        }

        body.page-alarm .timer-card.running .timer-number {
            background: #00b894;
        }

        body.page-alarm .timer-card.expired .timer-number {
            background: #ff4d4d;
        }

        body.page-alarm .timer-display {
            font-size: clamp(1.75rem, 5vw, 2.5rem);
            font-weight: 700;
            text-align: center;
            font-family: ui-monospace, 'Cascadia Code', 'Courier New', monospace;
            color: var(--text, #2b3e50);
            margin: 0 0 1rem;
            padding: 1.25rem 1rem;
            background: #f0f2f5;
            border-radius: 10px;
            letter-spacing: 0.06em;
            line-height: 1.2;
        }

        body.page-alarm .timer-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            justify-content: flex-end;
            align-items: center;
        }

        body.page-alarm .timer-actions .btn-small {
            padding: 0.5rem 1rem;
            border: none;
            border-radius: 8px;
            font-size: 0.875rem;
            font-weight: 600;
            cursor: pointer;
            transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
        }

        body.page-alarm .timer-actions .btn-small:hover {
            transform: translateY(-1px);
            filter: brightness(1.05);
        }

        body.page-alarm .timer-actions .btn-small:active {
            transform: translateY(0);
        }

        body.page-alarm .btn-start {
            background: #00b894;
            color: #fff;
            box-shadow: 0 2px 6px rgba(0, 184, 148, 0.35);
        }

        body.page-alarm .btn-pause {
            background: #f59e0b;
            color: #fff;
            box-shadow: 0 2px 6px rgba(245, 158, 11, 0.35);
        }

        body.page-alarm .btn-reset {
            background: #636e72;
            color: #fff;
        }

        body.page-alarm .btn-remove {
            background: #ff4d4d;
            color: #fff;
            box-shadow: 0 2px 6px rgba(255, 77, 77, 0.3);
        }

        body.page-alarm .empty-state {
            text-align: center;
            padding: 2.5rem 1rem;
            color: var(--text-muted, #666);
            border: 1px dashed var(--border, rgba(43, 62, 80, 0.15));
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.6);
        }

        body.page-alarm .empty-state i {
            font-size: 2.5rem;
            margin-bottom: 0.75rem;
            opacity: 0.45;
            display: block;
        }

                    .hero {
            text-align: center;
            color: white;
            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;
        }
