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

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft JhengHei', sans-serif;
            font-size: 16px;
            line-height: 1.6;
            color: #333;
            background: #f5f5f5;
        }

        .container {
            max-width: 600px;
            margin: 0 auto;
            background: #fff;
            min-height: 100vh;
        }

        /* ===== 頁面管理 ===== */
        .page {
            display: none;
            padding: 20px;
            animation: fadeIn 0.3s;
        }

        .page.active {
            display: block;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        /* ===== 標題和文字 ===== */
        h1 {
            font-size: 24px;
            color: #06c755;
            margin-bottom: 20px;
            text-align: center;
        }

        h2 {
            font-size: 20px;
            color: #333;
            margin-bottom: 15px;
        }

        h3 {
            font-size: 18px;
            color: #666;
            margin-bottom: 10px;
        }

        /* ===== 按鈕樣式 ===== */
        .btn {
            display: block;
            width: 100%;
            padding: 14px 20px;
            margin: 10px 0;
            font-size: 16px;
            font-weight: 600;
            text-align: center;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s;
            min-height: 48px;
        }

        .btn-primary {
            background: #06c755;
            color: white;
        }

        .btn-primary:hover {
            background: #05b04b;
        }

        .btn-secondary {
            background: #fff;
            color: #06c755;
            border: 2px solid #06c755;
        }

        .btn-secondary:hover {
            background: #f0f8f3;
        }

        .btn-line {
            background: #00b900;
            color: white;
        }

        .btn-line:hover {
            background: #00a000;
        }

        .btn-danger {
            background: #f44336;
            color: white;
        }

        .btn-small {
            display: inline-block;
            width: auto;
            padding: 8px 16px;
            font-size: 14px;
            min-height: auto;
        }

        /* ===== 表單樣式 ===== */
        .form-group {
            margin-bottom: 20px;
        }

        label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: #555;
        }

        input[type="text"],
        input[type="tel"],
        input[type="number"] {
            width: 100%;
            padding: 12px 16px;
            font-size: 16px;
            border: 2px solid #ddd;
            border-radius: 8px;
            transition: border-color 0.3s;
        }

        input:focus {
            outline: none;
            border-color: #06c755;
        }

        /* ===== 頭部導航 ===== */
        .header {
            background: #06c755;
            color: white;
            padding: 15px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .header-title {
            font-size: 18px;
            font-weight: 600;
        }

        .user-info {
            font-size: 14px;
        }

        /* ===== 環境提示 ===== */
        .env-badge {
            display: inline-block;
            padding: 4px 12px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: 600;
            margin-bottom: 15px;
        }

        .env-liff {
            background: #00b900;
            color: white;
        }

        .env-web {
            background: #ff9800;
            color: white;
        }

        /* ===== 簽到卡片 ===== */
        .checkin-card {
            background: linear-gradient(135deg, #06c755 0%, #05b04b 100%);
            color: white;
            padding: 30px 20px;
            border-radius: 12px;
            text-align: center;
            margin-bottom: 20px;
        }

        .checkin-date {
            font-size: 32px;
            font-weight: 700;
            margin-bottom: 10px;
        }

        .checkin-streak {
            font-size: 18px;
            opacity: 0.9;
        }

        /* ===== 選單卡片 ===== */
        .menu-card {
            background: white;
            border: 2px solid #eee;
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 15px;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .menu-card:hover {
            border-color: #06c755;
            box-shadow: 0 4px 12px rgba(6, 199, 85, 0.2);
            transform: translateY(-2px);
        }

        .menu-icon {
            font-size: 40px;
            min-width: 60px;
            text-align: center;
        }

        .menu-content {
            flex: 1;
        }

        .menu-title {
            font-size: 18px;
            font-weight: 600;
            color: #333;
            margin-bottom: 5px;
        }

        .menu-desc {
            font-size: 14px;
            color: #666;
        }

        /* ===== 經典卡片 ===== */
        .classic-card {
            background: white;
            border: 2px solid #eee;
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 15px;
            cursor: pointer;
            transition: all 0.3s;
        }

        .classic-card:hover {
            border-color: #06c755;
            box-shadow: 0 4px 12px rgba(6, 199, 85, 0.2);
        }

        .classic-card.in-library {
            border-color: #06c755;
            background: #f0f8f3;
        }

        .classic-name {
            font-size: 18px;
            font-weight: 600;
            color: #333;
            margin-bottom: 8px;
        }

        .classic-meta {
            font-size: 14px;
            color: #666;
            margin-bottom: 10px;
        }

        .classic-progress {
            font-size: 14px;
            color: #06c755;
            font-weight: 600;
        }

        /* ===== 登入日曆 ===== */
        .login-calendar {
            background: white;
            border-radius: 12px;
            padding: 15px;
            margin: 15px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }

        .calendar-header {
            text-align: center;
            font-weight: 600;
            font-size: 16px;
            color: #333;
            margin-bottom: 10px;
        }

        .calendar-grid {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 8px;
            text-align: center;
        }

        .calendar-day-label {
            font-size: 12px;
            color: #999;
            padding: 4px;
        }

        .calendar-day {
            aspect-ratio: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            border-radius: 50%;
            position: relative;
        }

        .calendar-day.empty {
            visibility: hidden;
        }

        .calendar-day.logged {
            background: #06c755;
            color: white;
            font-weight: 600;
        }

        .calendar-day.today {
            border: 2px solid #06c755;
            font-weight: 600;
        }

        .streak-info {
            text-align: center;
            margin-top: 12px;
            padding-top: 12px;
            border-top: 1px solid #eee;
            font-size: 14px;
            color: #666;
        }

        .streak-number {
            color: #06c755;
            font-weight: 600;
            font-size: 18px;
        }

        /* ===== 設定按鈕 ===== */
        .settings-btn {
            background: transparent;
            border: none;
            color: white;
            font-size: 24px;
            cursor: pointer;
            padding: 5px 10px;
        }

        .settings-btn:hover {
            opacity: 0.8;
        }

        /* ===== 書櫃樣式 ===== */
        .bookshelf {
            background: linear-gradient(180deg, #8B4513 0%, #654321 100%);
            border-radius: 8px;
            padding: 20px;
            margin: 15px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.3);
        }

        .shelf {
            background: linear-gradient(180deg, #D2691E 0%, #8B4513 100%);
            border-radius: 4px;
            padding: 20px 10px;
            margin-bottom: 20px;
            box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
            min-height: 120px;
            display: flex;
            gap: 15px;
            overflow-x: auto;
            align-items: flex-end;
        }

        .book {
            position: relative;
            width: 80px;
            height: 100px;
            cursor: pointer;
            transition: all 0.3s;
            flex-shrink: 0;
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 2px 2px 8px rgba(0,0,0,0.3);
        }

        .book:hover {
            transform: translateY(-10px);
        }

        /* 進行中的書（灰色） */
        .book.in-progress {
            background: linear-gradient(180deg, #999 0%, #666 100%);
            color: #ddd;
            border: 2px solid #555;
        }

        /* 已完成的書（彩色 + 金光） */
        .book.completed {
            background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF8C00 100%);
            color: #fff;
            border: 2px solid #FFD700;
            font-weight: bold;
            animation: shine 2s infinite;
        }

        @keyframes shine {
            0%, 100% {
                box-shadow: 0 0 10px rgba(255, 215, 0, 0.5),
                            0 0 20px rgba(255, 215, 0, 0.3),
                            2px 2px 8px rgba(0,0,0,0.3);
            }
            50% {
                box-shadow: 0 0 20px rgba(255, 215, 0, 0.8),
                            0 0 30px rgba(255, 215, 0, 0.6),
                            2px 2px 8px rgba(0,0,0,0.3);
            }
        }

        .book-title {
            writing-mode: vertical-rl;
            font-size: 12px;
            text-align: center;
            padding: 5px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-height: 90px;
        }

        .book-progress-badge {
            position: absolute;
            top: -5px;
            right: -5px;
            background: #06c755;
            color: white;
            border-radius: 50%;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 10px;
            font-weight: bold;
            border: 2px solid white;
        }

        .empty-shelf-message {
            color: #ddd;
            text-align: center;
            padding: 20px;
            font-style: italic;
        }

        /* ===== 計時器卡片 ===== */
        .timer-card {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 25px 20px;
            border-radius: 12px;
            text-align: center;
            margin-bottom: 20px;
        }

        .timer-label {
            font-size: 14px;
            opacity: 0.9;
            margin-bottom: 10px;
        }

        .timer-display {
            font-size: 48px;
            font-weight: 700;
            font-family: 'Courier New', monospace;
            margin-bottom: 15px;
            letter-spacing: 2px;
        }

        .timer-controls {
            display: flex;
            gap: 10px;
            justify-content: center;
        }

        .timer-controls .btn {
            flex: 1;
            max-width: 150px;
        }

        /* ===== 經文段落 ===== */
        .scripture-section {
            border: 2px solid #eee;
            border-radius: 8px;
            padding: 15px;
            margin-bottom: 15px;
            transition: all 0.3s;
        }

        .scripture-section.completed {
            background: #e8f5e9;
            border-color: #06c755;
        }

        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
        }

        .section-title {
            font-size: 16px;
            font-weight: 600;
            color: #333;
        }

        .section-content {
            line-height: 1.8;
            color: #555;
            margin-bottom: 10px;
        }

        .complete-badge {
            display: inline-block;
            background: #06c755;
            color: white;
            padding: 4px 10px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: 600;
        }

        /* ===== 完成卡片 ===== */
        .completion-card {
            background: linear-gradient(135deg, #06c755 0%, #00a642 100%);
            border-radius: 12px;
            padding: 30px 20px;
            margin-top: 30px;
            text-align: center;
            box-shadow: 0 4px 20px rgba(6, 199, 85, 0.3);
            animation: slideUp 0.5s ease-out;
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .completion-card-icon {
            font-size: 48px;
            margin-bottom: 15px;
        }

        .completion-card-title {
            color: white;
            font-size: 24px;
            font-weight: bold;
            margin-bottom: 10px;
        }

        .completion-card-message {
            color: rgba(255, 255, 255, 0.9);
            font-size: 16px;
            margin-bottom: 20px;
            line-height: 1.5;
        }

        .completion-card-stats {
            background: rgba(255, 255, 255, 0.2);
            border-radius: 8px;
            padding: 15px;
            margin-bottom: 20px;
            color: white;
        }

        .completion-card-stats-item {
            display: inline-block;
            margin: 0 15px;
        }

        .completion-card-stats-value {
            font-size: 28px;
            font-weight: bold;
            display: block;
        }

        .completion-card-stats-label {
            font-size: 14px;
            opacity: 0.9;
        }

        .btn-return-home {
            background: white;
            color: #06c755;
            border: none;
            padding: 12px 30px;
            border-radius: 24px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
            transition: all 0.3s;
            display: inline-block;
            margin: 5px;
        }

        .btn-return-home:hover {
            background: #f0f0f0;
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        }

        .btn-continue-learning {
            background: rgba(255, 255, 255, 0.2);
            color: white;
            border: 2px solid white;
            padding: 12px 30px;
            border-radius: 24px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            display: inline-block;
            margin: 5px;
        }

        .btn-continue-learning:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: translateY(-2px);
        }

        /* ===== 學習記錄 ===== */
        .record-item {
            background: #f9f9f9;
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 10px;
            border-left: 4px solid #06c755;
        }

        .record-date {
            font-weight: 600;
            color: #333;
            margin-bottom: 5px;
        }

        .record-details {
            font-size: 14px;
            color: #666;
        }

        /* ===== 統計卡片 ===== */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
            margin-bottom: 20px;
        }

        .stat-card {
            background: #f9f9f9;
            padding: 20px;
            border-radius: 8px;
            text-align: center;
        }

        .stat-value {
            font-size: 32px;
            font-weight: 700;
            color: #06c755;
            margin-bottom: 5px;
        }

        .stat-label {
            font-size: 14px;
            color: #666;
        }

        /* ===== 進度條 ===== */
        .progress-bar {
            width: 100%;
            height: 30px;
            background: #eee;
            border-radius: 15px;
            overflow: hidden;
            margin-bottom: 10px;
        }

        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #06c755 0%, #05b04b 100%);
            transition: width 0.5s;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 14px;
            font-weight: 600;
        }

        /* ===== 訊息提示 ===== */
        .message {
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 15px;
        }

        .message-info {
            background: #e3f2fd;
            color: #1976d2;
            border-left: 4px solid #1976d2;
        }

        .message-success {
            background: #e8f5e9;
            color: #2e7d32;
            border-left: 4px solid #2e7d32;
        }

        .message-warning {
            background: #fff3e0;
            color: #f57c00;
            border-left: 4px solid #f57c00;
        }

        /* ===== 分隔線 ===== */
        .divider {
            border: none;
            border-top: 1px solid #eee;
            margin: 20px 0;
        }

        /* ===== 文字對齊 ===== */
        .text-center {
            text-align: center;
        }

        .text-muted {
            color: #999;
            font-size: 14px;
        }

        /* ===== 間距 ===== */
        .mt-20 {
            margin-top: 20px;
        }

        .mb-20 {
            margin-bottom: 20px;
        }

        /* ===== Loading 動畫 ===== */
        .loading {
            display: none;
            text-align: center;
            padding: 40px;
        }

        .loading.active {
            display: block;
        }

        .spinner {
            border: 4px solid #f3f3f3;
            border-top: 4px solid #06c755;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            animation: spin 1s linear infinite;
            margin: 0 auto 15px;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
