.wubao-container {
            position: fixed;
            top: 10px;
            right: 10px;
            z-index: 2000;
            display: flex;
            align-items: center;
            gap: 8px;
            background: rgba(0,0,0,0.6);
            padding: 8px 12px;
            border-radius: 20px;
            cursor: pointer;
            transition: all 0.3s;
        }
        .wubao-container:hover { transform: scale(1.05); }
        .wubao-icon { font-size: 30px; animation: float 2s ease-in-out infinite; }
        @keyframes float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-5px); }
        }
        .wubao-info { color: #333; font-size: 12px; }
        .wubao-level { font-weight: 600; }
        .wubao-exp-bar {
            width: 60px;
            height: 4px;
            background: rgba(255,255,255,0.3);
            border-radius: 2px;
            margin-top: 4px;
            overflow: hidden;
        }
        .wubao-exp-fill {
            height: 100%;
            background: linear-gradient(90deg, #ffd700, #ffed4e);
            border-radius: 2px;
            transition: width 0.3s;
        }
        
        /* 五宝选择弹窗 */
        .wubao-modal {
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.7);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 3000;
            padding: 20px;
        }
        .wubao-modal-content {
            background: white;
            border-radius: 20px;
            padding: 30px;
            width: 100%;
            max-width: 350px;
            text-align: center;
        }
        .wubao-modal-title { font-size: 20px; font-weight: 600; margin-bottom: 20px; }
        .wubao-list {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 15px;
            margin: 20px 0;
        }
        .wubao-item {
            padding: 15px;
            border-radius: 16px;
            cursor: pointer;
            transition: all 0.2s;
            border: 2px solid transparent;
        }
        .wubao-item:hover { transform: scale(1.05); }
        .wubao-item.selected { border-color: #667eea; background: #f0f0ff; }
        .wubao-item-icon { font-size: 40px; margin-bottom: 5px; }
        .wubao-item-name { font-size: 14px; font-weight: 500; }
        .wubao-item-level { font-size: 12px; color: #999; margin-top: 3px; }
        
        /* 学习页面 - 五大领域 */
        .study-page { background: #f5f5f5; }
        .domains-container {
            background: white;
            border-radius: 20px 20px 0 0;
            min-height: calc(100vh - 200px);
            padding: 20px;
        }
        .domain-card {
            background: white;
            border-radius: 16px;
            padding: 20px;
            margin-bottom: 15px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
            cursor: pointer;
            transition: all 0.3s;
            border-left: 4px solid;
            position: relative;
            overflow: hidden;
        }
        .domain-card:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.15); }
        .domain-card:active { transform: scale(0.98); }
        .domain-header {
            display: flex;
            align-items: center;
            gap: 15px;
        }
        .domain-icon { font-size: 40px; animation: bounce 2s infinite; }
        @keyframes bounce {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-5px); }
        }
        .domain-info { flex: 1; }
        .domain-name { font-size: 18px; font-weight: 600; }
        .domain-desc { font-size: 13px; color: #666; margin-top: 4px; }
        .domain-stats {
            display: flex;
            gap: 15px;
            margin-top: 10px;
            font-size: 12px;
            color: #999;
        }
        .domain-progress {
            width: 100%;
            height: 6px;
            background: #f0f0f0;
            border-radius: 3px;
            margin-top: 10px;
            overflow: hidden;
        }
        .domain-progress-fill {
            height: 100%;
            border-radius: 3px;
            transition: width 0.5s ease;
        }
        
        /* 继续学习按钮 */
        .continue-learning {
            background: #f5f5f5;
            color: #333;
            border-radius: 16px;
            padding: 20px;
            margin-bottom: 20px;
            cursor: pointer;
            transition: all 0.3s;
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
        }
        .continue-learning:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6); }
        .continue-learning-title { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
        .continue-learning-info { font-size: 14px; opacity: 0.9; }
        .continue-learning-progress {
            margin-top: 10px;
            background: rgba(255,255,255,0.3);
            height: 6px;
            border-radius: 3px;
            overflow: hidden;
        }
        .continue-learning-progress-fill {
            height: 100%;
            background: white;
            border-radius: 3px;
            transition: width 0.5s;
        }
        
        /* 领域详情页 - 12级闯关 */
        .levels-page { min-height: 100vh; }
        .levels-header {
            color: #333;
            padding: 12px 15px;
            text-align: center;
            position: relative;
            box-shadow: 0 4px 20px rgba(0,0,0,0.15);
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
        }
        .levels-header .icon { font-size: 28px; animation: pulse 2s infinite; }
        .levels-header h2 { font-size: 16px; margin: 0; }
        .levels-header p { display: none; }
        .levels-header .levels-meta {
            font-size: 12px;
            opacity: 0.9;
            white-space: nowrap;
        }
        @keyframes pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.1); }
        }
        
        /* ========== 英语山脉：S形登山路径 ========== */
        .levels-page.english-theme { 
            background: linear-gradient(180deg, #4FC3F7 0%, #81D4FA 20%, #B3E5FC 40%, #C8E6C9 65%, #66BB6A 90%);
        }
        .levels-page.english-theme .levels-header { background: linear-gradient(135deg, #0288D1 0%, #29B6F6 100%); }
        /* ========== 通用主题网格 ========== */
        .theme-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;
            padding: 15px;
            padding-bottom: 90px;
        }
        .theme-grid .level-item {
            aspect-ratio: 1;
            background: white;
            border-radius: 16px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 15px rgba(0,0,0,0.12);
            cursor: pointer;
            transition: all 0.3s;
            position: relative;
            border: 3px solid rgba(255,255,255,0.8);
        }
        .theme-grid .level-item:hover:not(.locked) { 
            transform: translateY(-5px); 
            box-shadow: 0 8px 25px rgba(0,0,0,0.2); 
        }
        .theme-grid .level-item:active:not(.locked) { transform: scale(0.95); }
        .theme-grid .level-item.locked { 
            opacity: 0.55; 
            background: #e0e0e0 !important; 
            cursor: not-allowed; 
        }
        .theme-grid .level-item.current-level:not(.locked) {
            animation: gridPulse 1.5s ease-in-out infinite;
        }
        @keyframes gridPulse {
            0%, 100% { box-shadow: 0 4px 15px rgba(0,0,0,0.12); }
            50% { box-shadow: 0 0 25px rgba(255,215,0,0.7), 0 8px 25px rgba(0,0,0,0.2); }
        }
        .theme-grid .level-title { 
            font-size: 11px; 
            font-weight: 600; 
            margin-top: 2px; 
            color: #333; 
            text-align: center;
        }
        .theme-grid .level-grade { font-size: 10px; color: #666; margin-top: 1px; }
        .theme-grid .level-number { font-size: 22px; font-weight: 700; }
        .theme-grid .level-stars { font-size: 11px; margin-top: 4px; }
        .theme-grid .level-status {
            position: absolute;
            top: 4px;
            right: 4px;
            font-size: 16px;
        }
        .theme-grid .level-progress {
            position: absolute;
            bottom: 6px;
            left: 10px;
            right: 10px;
            height: 4px;
            background: rgba(0,0,0,0.08);
            border-radius: 2px;
            overflow: hidden;
        }
        .theme-grid .level-progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #667eea, #764ba2);
            border-radius: 2px;
            transition: width 0.5s;
        }
        .theme-grid .level-progress-text {
            position: absolute;
            bottom: 12px;
            right: 8px;
            font-size: 9px;
            color: #888;
        }
        
        /* ========== 语文森林主题 ========== */
        .levels-page.chinese-theme {
            background: linear-gradient(180deg, #2E7D32 0%, #43A047 30%, #66BB6A 70%, #A5D6A7 100%);
        }
        .levels-page.chinese-theme .levels-header { background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 100%); }
        .chinese-theme .theme-grid .level-item { background: #E8F5E9; border-color: #C8E6C9; }
        .chinese-theme .theme-grid .level-item::before {
            content: '🌲';
            position: absolute;
            top: -8px;
            font-size: 16px;
        }
        
        /* ========== 数学城堡主题 ========== */
        .levels-page.math-theme {
            background: linear-gradient(180deg, #455A64 0%, #607D8B 40%, #90A4AE 100%);
        }
        .levels-page.math-theme .levels-header { background: linear-gradient(135deg, #37474F 0%, #546E7A 100%); }
        .math-theme .theme-grid .level-item { 
            background: #ECEFF1; 
            border-color: #CFD8DC; 
            border-radius: 8px;
        }
        .math-theme .theme-grid .level-item::before {
            content: '🏰';
            position: absolute;
            top: -8px;
            font-size: 16px;
        }
        
        /* ========== 综合火山主题 ========== */
        .levels-page.comprehensive-theme {
            background: linear-gradient(180deg, #BF360C 0%, #E64A19 30%, #FF7043 70%, #FFAB91 100%);
        }
        .levels-page.comprehensive-theme .levels-header { background: linear-gradient(135deg, #870000 0%, #BF360C 100%); }
        .comprehensive-theme .theme-grid .level-item { background: #FFF3E0; border-color: #FFCC80; }
        .comprehensive-theme .theme-grid .level-item::before {
            content: '🌋';
            position: absolute;
            top: -8px;
            font-size: 16px;
        }
        
        /* ========== 全能海洋主题 ========== */
        .levels-page.all-theme {
            background: linear-gradient(180deg, #01579B 0%, #0288D1 30%, #29B6F6 70%, #81D4FA 100%);
        }
        .levels-page.all-theme .levels-header { background: linear-gradient(135deg, #003C8F 0%, #01579B 100%); }
        .all-theme .theme-grid .level-item { 
            background: #E1F5FE; 
            border-color: #B3E5FC; 
            border-radius: 50%;
        }
        .all-theme .theme-grid .level-item::before {
            content: '🐚';
            position: absolute;
            top: -8px;
            font-size: 16px;
        }
        
        /* 闯关页面 */
        .challenge-page { background: #f5f7fa; }
        .challenge-header {
            background: #f5f5f5;
            color: #333;
            padding: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .challenge-info h3 { font-size: 18px; }
        .challenge-info p { font-size: 14px; opacity: 0.9; }
        .timer-info {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 8px;
            padding: 10px 12px;
            background: #f5f5f5;
            color: #333;
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
        }
        .timer-item {
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: center;
            gap: 4px;
            background: rgba(255,255,255,0.2);
            padding: 6px 10px;
            border-radius: 20px;
            min-width: auto;
            flex: 1;
        }
        .timer-label {
            font-size: 12px;
            opacity: 0.9;
            white-space: nowrap;
        }
        .timer-value {
            font-size: 13px;
            font-weight: 700;
            white-space: nowrap;
        }
        .timer-value.warning { color: #ff4444; }
        .timer {
            background: rgba(255,255,255,0.2);
            padding: 10px 20px;
            border-radius: 20px;
            font-size: 18px;
            font-weight: 600;
            transition: all 0.3s;
        }
        .timer.warning { background: rgba(255,0,0,0.3); animation: shake 0.5s infinite; }
        .timer-bar {
            display: flex;
            gap: 20px;
            align-items: center;
            justify-content: center;
            background: #f5f5f5;
            color: #333;
            padding: 12px 20px;
            border-radius: 50px;
            margin-bottom: 15px;
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
        }
        .timer-segment {
            display: flex;
            align-items: center;
            gap: 8px;
            background: rgba(255,255,255,0.2);
            padding: 8px 16px;
            border-radius: 25px;
            font-size: 14px;
            font-weight: 600;
        }
        .timer-icon {
            font-size: 18px;
        }
        .timer-value {
            font-size: 16px;
            font-weight: 700;
        }
        .timer-value.warning { color: #ff4444; }
        .answer-analysis {
            background: white;
            border-radius: 20px;
            padding: 25px;
            margin: 20px 0;
            box-shadow: 0 8px 24px rgba(0,0,0,0.08);
            border: 2px solid #e9ecef;
            position: relative;
            overflow: hidden;
        }
        .answer-analysis.correct-answer {
            border-color: #28a745;
            background: linear-gradient(135deg, #f8fff9 0%, #f0f9f0 100%);
        }
        .answer-analysis.wrong-answer {
            border-color: #dc3545;
            background: linear-gradient(135deg, #fff8f8 0%, #f9f0f0 100%);
        }
        .answer-analysis::before {
            content: ;
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #667eea, #764ba2);
        }
        .answer-analysis.correct-answer::before {
            background: linear-gradient(90deg, #28a745, #20c997);
        }
        .answer-analysis.wrong-answer::before {
            background: linear-gradient(90deg, #dc3545, #ff6b6b);
        }
        .analysis-title {
            font-size: 20px;
            font-weight: 700;
            margin-bottom: 20px;
            text-align: center;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }
        .analysis-title .icon {
            font-size: 28px;
        }
        .analysis-word { font-size: 20px; font-weight: 700; color: #667eea; margin-bottom: 5px; display: flex; align-items: center; gap: 10px; }
        .analysis-phonetic { font-size: 14px; color: #666; margin-bottom: 10px; }
        .analysis-meaning { font-size: 15px; color: #333; margin-bottom: 10px; padding: 10px; background: white; border-radius: 8px; }
        .analysis-example {
            background: #f8f9fa;
            border-radius: 16px;
            padding: 20px;
            margin-bottom: 20px;
        }
        .example-en {
            font-size: 18px;
            color: #333;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
            font-weight: 500;
            line-height: 1.6;
        }
        .example-cn {
            font-size: 16px;
            color: #666;
            padding-top: 10px;
            border-top: 1px dashed #ddd;
            margin-top: 10px;
        }
        @keyframes optionClick {
            0% { transform: scale(1); }
            50% { transform: scale(0.95); }
            100% { transform: scale(1); }
        }
        @keyframes correctBounce {
            0% { transform: scale(1); }
            25% { transform: scale(1.1); }
            50% { transform: scale(0.95); }
            75% { transform: scale(1.05); }
            100% { transform: scale(1); }
        }
        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            25% { transform: translateX(-5px); }
            75% { transform: translateX(5px); }
        }
        
        .question-area {
            padding: 20px;
            min-height: calc(100vh - 200px);
        }
        .question-card {
            background: white;
            border-radius: 16px;
            padding: 20px;
            margin-bottom: 20px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
            animation: slideUp 0.3s ease;
        }
        @keyframes slideUp {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .question-number {
            font-size: 14px;
            color: #999;
            margin-bottom: 10px;
        }
        .question-word-area { background: #f5f5f5; color: #333; padding: 20px; border-radius: 16px; margin: 15px 0; position: relative; }
        .question-word { font-size: 32px; font-weight: 700; margin-bottom: 5px; }
        .question-phonetic { font-size: 16px; opacity: 0.9; }
        .audio-btn-large { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 28px; cursor: pointer; }
        .question-text {
            font-size: 18px;
            font-weight: 500;
            line-height: 1.6;
            margin-bottom: 20px;
        }
        .question-header-row {
            display: flex;
            flex-direction: row;
            flex-wrap: wrap;
            justify-content: center;
            align-items: center;
            gap: 8px 12px;
            text-align: center;
            margin-bottom: 16px;
            padding: 12px;
            background: #f5f5f5;
            border-radius: 12px;
            color: #333;
        }
        .question-header-row.domain-chinese {
            background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
        }
        .question-header-row.domain-math {
            background: linear-gradient(135deg, #1E90FF 0%, #3182ce 100%);
        }
        .question-header-row.domain-comprehensive {
            background: linear-gradient(135deg, #FF4500 0%, #dd6b20 100%);
        }
        .question-header-row.domain-all {
            background: linear-gradient(135deg, #8B4513 0%, #a0522d 100%);
        }
        .question-title-block {
            width: 100%;
        }
        .question-title-inline {
            font-size: 22px;
            font-weight: 700;
            line-height: 1.3;
            word-break: break-word;
        }
        .question-subtitle-block {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            flex-wrap: wrap;
        }
        .question-subtitle-inline {
            font-size: 15px;
            opacity: 0.95;
        }
        .question-pos-inline { font-size: 18px; opacity: 0.85; white-space: nowrap; }
        .audio-btn-inline {
            margin-left: 0;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }
        .audio-icon {
            width: 20px;
            height: 20px;
            display: block;
        }
        .audio-icon-small {
            width: 18px;
            height: 18px;
            display: block;
        }
        .question-debug {
            display: flex;
            justify-content: center;
            gap: 12px;
            flex-wrap: wrap;
            font-size: 11px;
            color: #888;
            margin-bottom: 10px;
            padding: 4px 8px;
            background: #f5f5f5;
            border-radius: 8px;
        }
        .options-list { display: flex; flex-direction: column; gap: 10px; }
        .option-item {
            padding: 18px 20px;
            background: white;
            border-radius: 16px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            border: 2px solid #e9ecef;
            position: relative;
            overflow: hidden;
            display: flex;
            align-items: center;
            gap: 15px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.04);
            margin-bottom: 12px;
            padding: 15px;
            background: #f8f9fa;
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.2s;
            border: 2px solid transparent;
            position: relative;
            overflow: hidden;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .option-item:active { animation: optionClick 0.2s ease; }
        .option-item:hover {
            background: #f8f9fa;
            transform: translateX(8px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.08);
            border-color: #667eea;
        }
.option-label::after { content: "."; }
        .option-label {
            font-weight: 600;
            color: #667eea;
            min-width: 24px;
            font-size: 16px;
        }
        .option-text {
            flex: 1;
            color: #333;
            font-size: 16px;
        }
        .option-item.selected {
            border-color: #667eea;
            background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
            transform: scale(1.02);
        }
        .option-item.selected::before {
            content: ●;
            position: absolute;
            left: 15px;
            color: #667eea;
            font-size: 12px;
        }
        .option-item.selected {
            border-color: #667eea;
            background: #f0f0ff;
        }
        .option-item.correct {
            animation: correctBounce 0.6s ease;
        }
        .option-item.correct {
            border-color: #28a745;
            background: linear-gradient(135deg, #28a74515 0%, #20c99715 100%);
            box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
            transform: scale(1.02);
        }
        .option-item.correct::after {
            content: ✓;
            position: absolute;
            right: 20px;
            color: #28a745;
            font-size: 24px;
            font-weight: 700;
        }
        .option-item.correct {
            animation: correctBounce 0.6s ease;
        }
        .option-item.correct {
            border-color: #28a745;
            background: #d4edda;
            animation: correctPulse 0.5s ease;
        }
        @keyframes correctPulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.05); }
            100% { transform: scale(1); }
        }
        .option-item.wrong {
            border-color: #dc3545;
            background: linear-gradient(135deg, #dc354515 0%, #ff6b6b15 100%);
            box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
            animation: shake 0.5s ease;
        }
        .option-item.wrong::after {
            content: ✗;
            position: absolute;
            right: 20px;
            color: #dc3545;
            font-size: 24px;
            font-weight: 700;
        }
        .option-item.wrong {
            border-color: #dc3545;
            background: #f8d7da;
            animation: shake 0.5s ease;
        }
        .option-item.vanishing {
            animation: wrongFlyOut 0.23s cubic-bezier(0.4, 0, 0.2, 1) forwards;
            pointer-events: none;
        }
        @keyframes wrongFlyOut {
            0% {
                transform: translate(0, 0) rotate(0deg) scale(1);
                opacity: 1;
                filter: blur(0);
            }
            30% {
                transform: translate(0, 0) rotate(0deg) scale(1.08);
                opacity: 1;
                filter: blur(0);
                background: #fff0f0;
                border-color: #ff6b6b;
            }
            100% {
                transform: translate(var(--fly-x, 60px), var(--fly-y, -40px)) rotate(var(--fly-rot, 20deg)) scale(0.15);
                opacity: 0;
                filter: blur(8px);
                height: 0;
                margin: 0;
                padding: 0;
                border-width: 0;
            }
        }
        .option-item.victory {
            animation: victoryGlow 1.5s ease-in-out infinite;
        }
        @keyframes victoryGlow {
            0%, 100% { box-shadow: 0 4px 12px rgba(40, 167, 69, 0.25); transform: scale(1.02); }
            50% { box-shadow: 0 8px 28px rgba(40, 167, 69, 0.5); transform: scale(1.04); }
        }

        /* 进度条 */
        .progress-bar-container {
            width: 100%;
            height: 20px;
            background: #e9ecef;
            border-radius: 10px;
            margin-bottom: 15px;
            position: relative;
            overflow: hidden;
        }
        .progress-bar-fill {
            height: 100%;
            background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
            border-radius: 10px;
            transition: width 0.3s ease;
        }
        .progress-bar-text {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 12px;
            font-weight: 600;
            color: #333;
            text-shadow: 0 0 2px rgba(255,255,255,0.8);
        }
        
        /* 语音按钮 */
        .audio-btn {
            display: inline-block;
            margin-left: 10px;
            padding: 5px 10px;
            background: #667eea;
            color: white;
            border-radius: 20px;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.2s;
        }
        .audio-btn:hover {
            background: #5a6fd6;
            transform: scale(1.1);
        }
        .audio-btn-small {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            margin-left: 8px;
            padding: 6px 10px;
            background: #667eea;
            color: white;
            border-radius: 15px;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.2s;
            vertical-align: middle;
            min-width: 32px;
            min-height: 32px;
        }
        .audio-btn-small:hover {
            background: #5a6fd6;
            transform: scale(1.15);
        }
        
        /* 完美通关弹窗 */
        .perfect-modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.8);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 3000;
        }
        .perfect-content {
            background: white;
            border-radius: 24px;
            padding: 40px 30px;
            text-align: center;
            max-width: 320px;
            width: 90%;
            animation: perfectPop 0.5s ease;
        }
        @keyframes perfectPop {
            0% { transform: scale(0.5); opacity: 0; }
            100% { transform: scale(1); opacity: 1; }
        }
        .perfect-icon {
            font-size: 60px;
            margin-bottom: 15px;
        }
        .perfect-title {
            font-size: 24px;
            font-weight: 700;
            color: #667eea;
            margin-bottom: 10px;
        }
        .perfect-desc {
            font-size: 14px;
            color: #666;
            margin-bottom: 20px;
            line-height: 1.6;
        }
        .perfect-buttons {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        
        /* 单词详情页 */
        .word-detail-page {
            padding: 20px;
            min-height: 100vh;
            background: #f5f7fa;
        }
        .word-detail-card {
            background: white;
            border-radius: 20px;
            padding: 30px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        }
        .word-detail-header {
            text-align: center;
            margin-bottom: 30px;
            padding-bottom: 20px;
            border-bottom: 2px solid #f0f0f0;
        }
        .word-detail-word {
            font-size: 36px;
            font-weight: 700;
            color: #333;
            margin-bottom: 10px;
        }
        .word-detail-phonetic {
            font-size: 18px;
            color: #667eea;
            margin-bottom: 10px;
        }
        .word-detail-meaning {
            font-size: 24px;
            color: #48bb78;
            font-weight: 600;
        }
        .word-detail-example {
            background: #f8f9fa;
            border-radius: 16px;
            padding: 20px;
            margin-bottom: 30px;
        }
        .word-detail-example-title {
            font-size: 16px;
            font-weight: 600;
            color: #667eea;
            margin-bottom: 15px;
        }
        .word-detail-example-en {
            font-size: 18px;
            color: #333;
            margin-bottom: 10px;
            line-height: 1.6;
        }
        .word-detail-example-cn {
            font-size: 16px;
            color: #666;
            line-height: 1.6;
        }
        .word-detail-actions {
            display: flex;
            gap: 15px;
            justify-content: center;
        }
        /* 内联例句显示（英语山脉小学一年级专用） */
        .inline-example {
            background: #f5f5f5;
            border-radius: 16px;
            margin: 20px 0;
            color: #333;
            overflow: hidden;
            transition: all 0.3s ease;
        }
        .inline-example-header {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            padding: 15px 20px;
            cursor: pointer;
            font-size: 18px;
            font-weight: 600;
        }
        .inline-example-arrow {
            transition: transform 0.3s ease;
        }
        .inline-example.expanded .inline-example-arrow {
            transform: rotate(180deg);
        }
        .inline-example-content {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease, padding 0.3s ease;
            text-align: center;
            padding: 0 20px;
        }
        .inline-example.expanded .inline-example-content {
            max-height: 300px;
            padding: 0 20px 20px;
        }
        .inline-example-en {
            font-size: 18px;
            font-weight: 500;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }
        .inline-example-cn {
            font-size: 16px;
            opacity: 0.9;
        }

        /* 统一内联学习面板（V5.28.2 新增，复用 inline-example 风格） */
        .inline-learning-panel {
            background: #f5f5f5;
            border-radius: 12px;
            margin: 12px 0;
            color: #333;
            overflow: hidden;
            transition: all 0.3s ease;
        }
        .inline-learning-panel .inline-learning-header {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 10px 16px;
            cursor: pointer;
            font-size: 15px;
            font-weight: 600;
        }
        .inline-learning-panel .inline-learning-content {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease, padding 0.3s ease;
            text-align: center;
            padding: 0 16px;
        }
        .inline-learning-panel.expanded .inline-learning-content {
            max-height: 260px;
            padding: 0 16px 12px;
        }
        .inline-learning-panel .learning-section-inline {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 6px;
            flex-wrap: wrap;
            margin-bottom: 6px;
            line-height: 1.3;
        }
        .inline-learning-panel .learning-section-inline:last-child {
            margin-bottom: 0;
        }
        .inline-learning-panel .learning-label {
            font-size: 20px;
            font-weight: 600;
        }
        .inline-learning-panel .learning-text {
            font-size: 20px;
            line-height: 1.4;
        }
        .inline-learning-panel .learning-translation {
            font-size: 20px;
            opacity: 0.9;
        }

        .answer-feedback {
            margin: 15px 20px;
            padding: 15px;
            border-radius: 12px;
            text-align: center;
            font-size: 16px;
            font-weight: 600;
            animation: shake 0.5s ease;
        }
        .answer-feedback.wrong {
            background: #fff0f0;
            color: #dc3545;
            border: 1px solid #ffcdd2;
        }
        .challenge-actions {
            display: flex;
            gap: 15px;
            padding: 0 20px;
            margin-top: 10px;
            margin-bottom: 20px;
        }
        .btn {
            flex: 1;
            padding: 15px;
            border-radius: 12px;
            border: none;
            font-size: 16px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
        }
        .btn:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
        .btn:active { transform: scale(0.95); }
        .btn-primary {
            background: #667eea;
            color: white;
        }
        .btn-secondary {
            background: #f8f9fa;
            color: #333;
        }
        .btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
        
        /* 单词详情展示 - 答题后显示 */
        .word-detail-modal {
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.7);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 3000;
            padding: 20px;
        }
        .word-detail-content {
            background: white;
            border-radius: 20px;
            padding: 30px;
            width: 100%;
            max-width: 380px;
            text-align: center;
            animation: slideUp 0.3s ease;
        }
        .word-detail-result {
            font-size: 60px;
            margin-bottom: 15px;
        }
        .word-detail-word {
            font-size: 28px;
            font-weight: 700;
            color: #667eea;
            margin-bottom: 5px;
        }
        .word-detail-phonetic {
            font-size: 16px;
            color: #999;
            margin-bottom: 10px;
        }
        .word-detail-meaning {
            font-size: 20px;
            color: #333;
            margin-bottom: 20px;
            font-weight: 500;
        }
        .word-detail-example {
            background: #f8f9fa;
            padding: 20px;
            border-radius: 12px;
            margin: 20px 0;
            text-align: left;
        }
        .word-detail-example-label {
            font-size: 12px;
            color: #999;
            margin-bottom: 8px;
        }
        .word-detail-example-en {
            font-size: 16px;
            color: #333;
            margin-bottom: 8px;
            line-height: 1.5;
        }
        .word-detail-example-cn {
            font-size: 14px;
            color: #666;
            line-height: 1.5;
        }
        .word-detail-actions {
            display: flex;
            gap: 10px;
            margin-top: 20px;
        }
        .word-detail-btn {
            flex: 1;
            padding: 12px;
            border-radius: 10px;
            border: none;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        /* 结果页面 */
        .result-page {
            text-align: center;
            padding: 40px 20px;
            animation: fadeIn 0.5s ease;
        }
        .result-icon { font-size: 80px; margin-bottom: 20px; animation: bounce 1s infinite; }
        .result-score { font-size: 48px; font-weight: 700; color: #667eea; }
        .result-stars { font-size: 30px; margin: 20px 0; }
        
        /* 其他页面占位 */
        .placeholder-page {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-height: 60vh;
            color: #999;
        }
        .placeholder-icon { font-size: 60px; margin-bottom: 20px; animation: float 3s ease-in-out infinite; }
        .placeholder-text { font-size: 16px; }
        
        /* 提示信息 */
        .toast {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: rgba(0,0,0,0.8);
            color: white;
            padding: 15px 30px;
            border-radius: 10px;
            font-size: 14px;
            z-index: 3000;
            animation: fadeIn 0.3s ease;
        }
        
        /* 加载动画 */
        .loading {
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 200px;
        }
        .loading-spinner {
            width: 40px;
            height: 40px;
            border: 4px solid #f3f3f3;
            border-top: 4px solid #667eea;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }
        @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
        
        /* 登录弹窗 */
        .login-modal {
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.7);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 3000;
            padding: 20px;
        }
        .login-content {
            background: white;
            border-radius: 20px;
            padding: 30px;
            width: 100%;
            max-width: 350px;
            max-height: 90vh;
            overflow-y: auto;
        }
        .login-title { font-size: 20px; font-weight: 600; text-align: center; margin-bottom: 20px; }
        .login-subtitle { font-size: 14px; color: #666; text-align: center; margin-bottom: 20px; }
        .login-input {
            width: 100%;
            padding: 15px;
            border: 2px solid #e0e0e0;
            border-radius: 12px;
            font-size: 16px;
            margin-bottom: 15px;
            transition: border-color 0.2s;
        }
        .login-input:focus { outline: none; border-color: #667eea; }
        .login-input-group {
            display: flex;
            gap: 10px;
            margin-bottom: 15px;
        }
        .login-input-group .login-input { margin-bottom: 0; flex: 1; }
        .verify-btn {
            padding: 15px 20px;
            background: #f5f5f5;
            color: #333;
            border: none;
            border-radius: 12px;
            font-size: 14px;
            cursor: pointer;
            white-space: nowrap;
            transition: all 0.2s;
        }
        .verify-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
        .verify-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
        .login-btn {
            width: 100%;
            padding: 15px;
            background: #f5f5f5;
            color: #333;
            border: none;
            border-radius: 12px;
            font-size: 16px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
        }
        .login-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
        .login-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
        .login-link {
            text-align: center;
            margin-top: 15px;
            color: #667eea;
            cursor: pointer;
            font-size: 14px;
        }
        .login-link-row {
            display: flex;
            justify-content: space-between;
            margin-top: 15px;
            font-size: 14px;
        }
        .login-link-row span {
            color: #667eea;
            cursor: pointer;
        }
        .login-tabs {
            display: flex;
            margin-bottom: 20px;
            border-bottom: 2px solid #f0f0f0;
        }
        .login-tab {
            flex: 1;
            text-align: center;
            padding: 12px;
            cursor: pointer;
            font-size: 15px;
            color: #999;
            border-bottom: 2px solid transparent;
            margin-bottom: -2px;
            transition: all 0.2s;
        }
        .login-tab.active {
            color: #667eea;
            border-bottom-color: #667eea;
            font-weight: 600;
        }
        .login-mode-switch {
            text-align: center;
            margin-top: 20px;
            padding-top: 20px;
            border-top: 1px solid #f0f0f0;
        }
        .login-mode-switch span {
            color: #667eea;
            cursor: pointer;
            font-size: 14px;
        }
        .login-back-btn {
            position: absolute;
            top: 15px;
            left: 15px;
            background: none;
            border: none;
            font-size: 20px;
            cursor: pointer;
            color: #999;
        }
        
        /* 音效按钮 */
        .sound-toggle {
            position: fixed;
            top: 10px;
            left: 10px;
            z-index: 2000;
            background: rgba(0,0,0,0.6);
            padding: 8px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 20px;
        }
        
        /* 每日任务 */
        .daily-tasks {
            background: white;
            border-radius: 16px;
            padding: 15px;
            margin-bottom: 15px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        }
        .daily-tasks-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
        }
        .daily-tasks-title {
            font-size: 16px;
            font-weight: 600;
            color: #333;
        }
        .daily-tasks-progress {
            font-size: 14px;
            color: #667eea;
            font-weight: 600;
        }
        .daily-tasks-list {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .daily-task-item {
            display: flex;
            align-items: center;
            padding: 10px;
            background: #f8f9fa;
            border-radius: 12px;
            transition: all 0.2s;
        }
        .daily-task-item.completed {
            background: #e8f5e9;
            opacity: 0.8;
        }
        .daily-task-icon {
            font-size: 24px;
            margin-right: 12px;
        }
        .daily-task-info {
            flex: 1;
        }
        .daily-task-name {
            font-size: 14px;
            font-weight: 500;
            color: #333;
        }
        .daily-task-reward {
            font-size: 12px;
            color: #999;
            margin-top: 2px;
        }
        .daily-task-status {
            font-size: 20px;
        }
        
        /* 快速继续 */
        .quick-continue {
            background: #f5f5f5;
            border-radius: 16px;
            padding: 15px;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            color: white;
            cursor: pointer;
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
            transition: transform 0.2s;
        }
        .quick-continue:active {
            transform: scale(0.98);
        }
        .quick-continue-icon {
            font-size: 36px;
            margin-right: 15px;
        }
        .quick-continue-info {
            flex: 1;
        }
        .quick-continue-title {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 4px;
        }
        .quick-continue-detail {
            font-size: 13px;
            opacity: 0.9;
            margin-bottom: 8px;
        }
        .quick-continue-progress {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .quick-continue-progress-bar {
            flex: 1;
            height: 6px;
            background: rgba(255,255,255,0.3);
            border-radius: 3px;
            overflow: hidden;
        }
        .quick-continue-progress-fill {
            height: 100%;
            background: white;
            border-radius: 3px;
            transition: width 0.3s;
        }
        .quick-continue-progress-text {
            font-size: 12px;
            opacity: 0.9;
        }
        .quick-continue-arrow {
            font-size: 24px;
            opacity: 0.8;
        }
        
        /* 智能推荐 */
        .smart-recommend {
            background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
            border-radius: 16px;
            padding: 15px;
            margin-bottom: 15px;
            border: 1px solid #ffeaa7;
        }
        .smart-recommend-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
        }
        .smart-recommend-title {
            font-size: 16px;
            font-weight: 600;
            color: #333;
        }
        .smart-recommend-tag {
            font-size: 12px;
            color: #e17055;
            background: rgba(225, 112, 85, 0.1);
            padding: 2px 8px;
            border-radius: 10px;
        }
        .smart-recommend-content {
            display: flex;
            align-items: center;
            background: white;
            border-radius: 12px;
            padding: 12px;
            cursor: pointer;
            transition: all 0.2s;
        }
        .smart-recommend-content:active {
            transform: scale(0.98);
        }
        .smart-recommend-icon {
            font-size: 36px;
            margin-right: 12px;
        }
        .smart-recommend-info {
            flex: 1;
        }
        .smart-recommend-name {
            font-size: 15px;
            font-weight: 600;
            color: #333;
            margin-bottom: 4px;
        }
        .smart-recommend-desc {
            font-size: 12px;
            color: #999;
            margin-bottom: 6px;
        }
        .smart-recommend-meta {
            display: flex;
            gap: 10px;
            font-size: 12px;
            color: #667eea;
        }
        .smart-recommend-btn {
            background: #f5f5f5;
            color: #333;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 500;
        }
        
        /* 学习日历 */
        .study-calendar {
            background: white;
            border-radius: 16px;
            padding: 15px;
            margin-bottom: 15px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        }
        .study-calendar-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
        }
        .study-calendar-title {
            font-size: 16px;
            font-weight: 600;
            color: #333;
        }
        .study-calendar-streak {
            font-size: 14px;
            color: #ff6b6b;
            font-weight: 600;
        }
        .study-calendar-week {
            display: flex;
            justify-content: space-around;
        }
        .study-calendar-day {
            text-align: center;
        }
        .study-calendar-day-name {
            font-size: 12px;
            color: #999;
            margin-bottom: 6px;
        }
        .study-calendar-day-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: #e0e0e0;
            margin: 0 auto;
        }
        .study-calendar-day-dot.active {
            background: #667eea;
            box-shadow: 0 0 8px rgba(102, 126, 234, 0.5);
        }
        
        /* 我的页面 */
/* ===== 会员页面新样式 ===== */
.member-header {
    background: #f5f5f5;
            color: #333;
    padding: 20px;
    text-align: center;
}
.member-header h1 {
    margin: 0 0 4px;
    font-size: 22px;
}
.member-header .subtitle {
    margin: 0;
    opacity: 0.9;
    font-size: 13px;
}

.member-guest {
    padding: 40px 20px;
    text-align: center;
}
.member-guest-icon {
    font-size: 64px;
    margin-bottom: 16px;
}
.member-guest-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 600;
}
.member-guest-desc {
    font-size: 14px;
    color: #999;
    margin-bottom: 24px;
}

.member-not-vip {
    padding: 15px;
}
.member-promo-card {
    background: linear-gradient(135deg, #FFD700 0%, #FF8F00 100%);
    border-radius: 20px;
    padding: 28px 20px;
    text-align: center;
    color: #fff;
    margin-bottom: 20px;
    box-shadow: 0 8px 24px rgba(255, 143, 0, 0.25);
}
.member-promo-badge {
    display: inline-block;
    background: rgba(255,255,255,0.25);
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    line-height: 44px;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 12px;
}
.member-promo-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}
.member-promo-desc {
    font-size: 14px;
    opacity: 0.95;
    margin-bottom: 16px;
}
.member-promo-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 18px;
}
.member-price-tag {
    background: rgba(255,255,255,0.25);
    padding: 6px 14px;
    border-radius: 16px;
    font-weight: 600;
}
.member-price-or {
    font-size: 13px;
    opacity: 0.8;
}
.member-buy-btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 12px;
    margin-bottom: 10px;
}
.member-promo-note {
    font-size: 11px;
    opacity: 0.85;
}

.member-benefits-section {
    margin-bottom: 20px;
}
.member-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 14px;
}
.member-benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.member-benefit-item {
    background: white;
    border-radius: 14px;
    padding: 16px 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.member-benefit-item.locked {
    opacity: 0.55;
}
.member-benefit-icon {
    font-size: 28px;
    margin-bottom: 6px;
}
.member-benefit-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}
.member-benefit-desc {
    font-size: 11px;
    color: #999;
}

.member-vip-card {
    background: #f5f5f5;
    border-radius: 20px;
    padding: 20px;
    color: #333;
    margin: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.25);
}
.member-vip-header {
    display: flex;
    align-items: center;
    gap: 12px;
}
.member-vip-badge {
    background: #FFD700;
    color: #764ba2;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
}
.member-vip-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}
.member-vip-date {
    font-size: 12px;
    opacity: 0.9;
}
.member-vip-points {
    text-align: right;
}
.member-vip-points-label {
    font-size: 12px;
    opacity: 0.85;
    margin-bottom: 2px;
}
.member-vip-points-value {
    font-size: 26px;
    font-weight: 800;
}

.member-tool-card {
    background: white;
    border-radius: 16px;
    padding: 18px;
    margin: 0 15px 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.member-tool-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}
.member-tool-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}
.member-tool-badge {
    font-size: 12px;
    color: #667eea;
    background: #f0f2ff;
    padding: 4px 10px;
    border-radius: 12px;
}
.member-tool-arrow {
    font-size: 20px;
    color: #999;
}
.member-tool-desc {
    font-size: 13px;
    color: #999;
}
.member-tool-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}
.member-tool-stat {
    text-align: center;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 12px;
}
.member-tool-stat-num {
    font-size: 20px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 4px;
}
.member-tool-stat-label {
    font-size: 11px;
    color: #999;
}
.member-tool-actions {
    display: flex;
    gap: 10px;
}
.member-tool-actions .btn {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    border: none;
}
.member-tool-actions .btn-primary {
    background: #f5f5f5;
            color: #333;
}
.member-tool-actions .btn-secondary {
    background: #f0f2ff;
    color: #667eea;
}

.member-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 0 15px 15px;
}
.member-mini-card {
    background: white;
    border-radius: 16px;
    padding: 18px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.member-mini-icon {
    font-size: 32px;
    margin-bottom: 8px;
}
.member-mini-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}
.member-mini-desc {
    font-size: 11px;
    color: #999;
}

/* 我的页面会员标签 */
.profile-member-tag {
    display: inline-block;
    background: #f0f0f0;
    color: #999;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 12px;
    margin-top: 8px;
    font-weight: 600;
}
.profile-member-tag.vip {
    background: linear-gradient(135deg, #FFD700 0%, #FF8F00 100%);
    color: #fff;
}

/* ===== 通用弹窗遮罩 ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5000;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 350px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

/* ===== 错题本页面全屏覆盖 ===== */
.wrong-words-page,
.wrong-words-review-page {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    background: #f5f7fa;
    overflow-y: auto;
    display: none;
}

.wrong-words-page.active,
.wrong-words-review-page.active {
    display: block;
}

.wrong-words-page .content,
.wrong-words-review-page .content {
    padding-bottom: 100px;
}

/* ===== 底部导航 VIP 强调 ===== */
.nav-item-vip {
    position: relative;
}

.nav-item-vip .nav-icon {
    color: #e53e3e;
    font-size: 22px;
}

.nav-item-vip .nav-label {
    color: #e53e3e;
    font-weight: 600;
}

.nav-item-vip--active .nav-icon,
.nav-item-vip--active .nav-label {
    color: #d69e2e;
}

.nav-item-vip.nav-item.active .nav-icon,
.nav-item-vip.nav-item.active .nav-label {
    color: #d69e2e;
}

.nav-badge {
    position: absolute;
    top: 2px;
    right: 4px;
    background: linear-gradient(135deg, #e53e3e, #c53030);
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 10px;
    transform: scale(0.9);
    white-space: nowrap;
}

/* ===== 学习页会员横幅 ===== */
.study-vip-banner {
    margin: 10px 15px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
    border: 1px solid #feb2b2;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.study-vip-banner--guest {
    background: linear-gradient(135deg, #f7fafc 0%, #e2e8f0 100%);
    border-color: #cbd5e0;
}

.study-vip-banner-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.study-vip-banner-text {
    flex: 1;
    min-width: 0;
}

.study-vip-banner-title {
    font-size: 15px;
    font-weight: 700;
    color: #c53030;
    margin-bottom: 3px;
}

.study-vip-banner--guest .study-vip-banner-title {
    color: #4a5568;
}

.study-vip-banner-desc {
    font-size: 12px;
    color: #742a2a;
    line-height: 1.4;
}

.study-vip-banner--guest .study-vip-banner-desc {
    color: #718096;
}

.study-vip-banner-btn {
    flex-shrink: 0;
    background: linear-gradient(135deg, #e53e3e, #c53030);
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.domain-trial-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(229, 62, 62, 0.9);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 10px;
}

.domain-card {
    position: relative;
}

/* ===== 关卡页会员横幅 ===== */
.levels-vip-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 10px 16px;
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
    border-bottom: 1px solid #feb2b2;
    display: flex;
    align-items: center;
    gap: 10px;
}

.levels-vip-banner--guest {
    background: linear-gradient(135deg, #f7fafc 0%, #e2e8f0 100%);
    border-color: #cbd5e0;
}

.levels-vip-banner-icon {
    font-size: 22px;
}

.levels-vip-banner-title {
    font-size: 14px;
    font-weight: 700;
    color: #c53030;
}

.levels-vip-banner--guest .levels-vip-banner-title {
    color: #4a5568;
}

.levels-vip-banner-desc {
    font-size: 12px;
    color: #742a2a;
}

.levels-vip-banner--guest .levels-vip-banner-desc {
    color: #718096;
}

/* ===== VIP 会员弹窗 ===== */
.vip-modal-overlay {
    z-index: 6000;
}

.vip-modal-content {
    text-align: center;
    padding: 28px 24px;
    position: relative;
}

.vip-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 24px;
    color: #999;
    cursor: pointer;
}

.vip-modal-icon {
    font-size: 56px;
    margin-bottom: 12px;
}

.vip-modal-title {
    font-size: 22px;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 10px;
}

.vip-modal-desc {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 18px;
}

.vip-modal-benefits {
    text-align: left;
    background: #f7fafc;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.vip-modal-benefit {
    font-size: 13px;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 6px;
}

.vip-modal-benefit-icon {
    color: #48bb78;
    font-size: 12px;
}

.vip-modal-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
}

.vip-modal-price-tag {
    font-size: 20px;
    font-weight: 800;
    color: #e53e3e;
}

.vip-modal-price-or {
    font-size: 13px;
    color: #a0aec0;
}

.vip-modal-btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 12px;
    margin-bottom: 10px;
}

.vip-modal-btn-secondary {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    border-radius: 12px;
    background: transparent;
    color: #718096;
    border: 1px solid #e2e8f0;
}

/* ===== 会员中心新样式 ===== */
.member-promo-card--locked {
    background: linear-gradient(135deg, #fffaf0 0%, #feebc8 100%);
    border: 1px solid #f6ad55;
}

.member-promo-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.member-promo-icon {
    font-size: 40px;
}

.member-promo-title {
    font-size: 18px;
    font-weight: 700;
    color: #744210;
    margin-bottom: 4px;
}

.member-promo-desc {
    font-size: 13px;
    color: #975a16;
}

.member-promo-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 18px 0;
}

.member-price-box {
    text-align: center;
    position: relative;
}

.member-price-num {
    font-size: 28px;
    font-weight: 800;
    color: #c05621;
    line-height: 1;
}

.member-price-unit {
    font-size: 13px;
    color: #975a16;
}

.member-price-save {
    position: absolute;
    top: -8px;
    right: -16px;
    background: #e53e3e;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 8px;
}

.member-price-divider {
    width: 1px;
    height: 36px;
    background: #f6ad55;
}

.member-pricing-section {
    margin: 20px 15px;
    padding: 18px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.member-pricing-cards {
    display: flex;
    gap: 12px;
    margin: 14px 0;
}

.member-pricing-card {
    flex: 1;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 10px;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.member-pricing-card.active {
    border-color: #ed8936;
    background: #fffaf0;
}

.member-pricing-card--hot {
    border-color: #f6ad55;
}

.member-pricing-tag {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ed8936, #dd6b20);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 10px;
}

.member-pricing-name {
    font-size: 14px;
    color: #4a5568;
    margin-bottom: 8px;
}

.member-pricing-price {
    font-size: 24px;
    font-weight: 800;
    color: #c05621;
    margin-bottom: 6px;
}

.member-pricing-price span {
    font-size: 13px;
    font-weight: 500;
}

.member-pricing-desc {
    font-size: 12px;
    color: #718096;
}

.member-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 0 15px 15px;
}

.member-quick-item {
    background: white;
    border-radius: 14px;
    padding: 14px 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    cursor: pointer;
    position: relative;
}

.member-quick-icon {
    font-size: 26px;
    margin-bottom: 6px;
}

.member-quick-name {
    font-size: 12px;
    color: #4a5568;
    font-weight: 500;
}

.member-quick-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: #e53e3e;
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-tool-progress {
    margin: 12px 0;
}

.member-tool-progress-bar {
    height: 8px;
    background: #edf2f7;
    border-radius: 4px;
    overflow: hidden;
}

.member-tool-progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s;
}

.member-tool-progress-text {
    font-size: 12px;
    color: #718096;
    margin-top: 6px;
    text-align: right;
}

.member-vip-card {
    position: relative;
    overflow: hidden;
}

.member-vip-glow {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%);
    pointer-events: none;
}

/* ===== 首页样式 ===== */
.home-content {
    padding: 0 15px;
}

.home-vip-card {
    margin: 15px 0;
    padding: 18px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.home-vip-card--guest {
    background: linear-gradient(135deg, #ebf8ff 0%, #bee3f8 100%);
    border: 1px solid #90cdf4;
}

.home-vip-card--locked {
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
    border: 1px solid #feb2b2;
}

.home-vip-card--active {
    background: linear-gradient(135deg, #faf5ff 0%, #e9d8fd 100%);
    border: 1px solid #d6bcfa;
}

.home-vip-info {
    flex: 1;
    min-width: 0;
}

.home-vip-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
}

.home-vip-card--locked .home-vip-title {
    color: #c53030;
}

.home-vip-card--guest .home-vip-title {
    color: #2b6cb0;
}

.home-vip-card--active .home-vip-title {
    color: #553c9a;
}

.home-vip-desc {
    font-size: 13px;
    color: #4a5568;
}

.home-vip-btn {
    flex-shrink: 0;
    background: linear-gradient(135deg, #ed8936, #dd6b20);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.home-vip-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d69e2e, #b7791f);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(214, 158, 46, 0.4);
}

.home-section {
    margin-bottom: 20px;
}

.home-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.home-continue-card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    cursor: pointer;
}

.home-continue-name {
    font-size: 15px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 10px;
}

.home-continue-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #718096;
}

.home-continue-bar {
    width: 140px;
    height: 6px;
    background: #edf2f7;
    border-radius: 3px;
    overflow: hidden;
}

.home-continue-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 3px;
}

.home-continue-arrow {
    font-size: 24px;
    color: #a0aec0;
}

.home-tasks {
    background: white;
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.home-task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid #f7fafc;
}

.home-task-item:last-child {
    border-bottom: none;
}

.home-task-icon {
    font-size: 24px;
}

.home-task-info {
    flex: 1;
}

.home-task-name {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 3px;
}

.home-task-reward {
    font-size: 12px;
    color: #718096;
}

.home-task-status {
    font-size: 18px;
}

.home-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.home-stat {
    background: white;
    border-radius: 16px;
    padding: 16px 8px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.home-stat-num {
    font-size: 22px;
    font-weight: 800;
    color: #667eea;
    margin-bottom: 4px;
}

.home-stat-label {
    font-size: 12px;
    color: #718096;
}

.home-wubao-card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.home-wubao-icon {
    font-size: 44px;
}

.home-wubao-info {
    flex: 1;
}

.home-wubao-name {
    font-size: 15px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 8px;
}

.home-wubao-bar {
    height: 8px;
    background: #edf2f7;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 6px;
}

.home-wubao-fill {
    height: 100%;
    background: linear-gradient(90deg, #48bb78, #38a169);
    border-radius: 4px;
}

.home-wubao-exp {
    font-size: 12px;
    color: #718096;
}

.home-start-btn {
    width: 100%;
    padding: 18px;
    border-radius: 18px;
    border: none;
    background: #f5f5f5;
            color: #333;
    font-size: 17px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.35);
}

/* ===== 入场动画 + 登录门 ===== */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20000;
    overflow: hidden;
}

/* 全屏背景图：前0.5s清晰，之后2.3s内逐渐变模糊 */
.splash-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/images/splash-bg.jpg') center center no-repeat;
    background-size: cover;
    z-index: 1;
    animation: bgBlur 2.8s ease forwards;
}

@keyframes bgBlur {
    0% {
        opacity: 1;
        filter: blur(0);
        transform: scale(1);
    }
    17.8% {
        opacity: 1;
        filter: blur(0);
        transform: scale(1);
    }
    100% {
        opacity: 1;
        filter: blur(8px);
        transform: scale(1.05);
    }
}

/* 登录门：0.5s后风景图开始变模糊时显现，1s内由模糊变清楚 */
.login-gate {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 84%;
    max-width: 340px;
    transform: translate(-50%, -50%) scale(0.92);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    padding: 36px 26px;
    text-align: center;
    opacity: 0;
    animation: gateFocus 1s ease 0.5s forwards;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    z-index: 20;
}

@keyframes gateFocus {
    0% {
        opacity: 0;
        filter: blur(8px);
        transform: translate(-50%, -50%) scale(0.92);
    }
    100% {
        opacity: 1;
        filter: blur(0);
        transform: translate(-50%, -50%) scale(1);
    }
}

.login-gate-logo {
    font-size: 56px;
    margin-bottom: 10px;
}

.login-gate-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a202c;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    margin-bottom: 16px;
}

.login-gate-highlight {
    font-size: 28px;
    font-family: 'KaiTi', 'STKaiti', '楷体', 'BiauKai', serif;
    color: #FFD700;
    font-weight: 800;
    margin: 0 3px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* 副标题在登录门上部，四行缩进 */
.login-gate-subtitle {
    margin-bottom: 28px;
    text-align: left;
    display: inline-block;
}

.login-gate-subtitle span {
    display: block;
    font-size: 15px;
    color: #2d3748;
    line-height: 1.9;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
    white-space: nowrap;
}

.login-gate-subtitle .indent-6 {
    padding-left: 4.5em;
}

.login-gate-subtitle .indent-4 {
    padding-left: 3.75em;
}

.login-gate-subtitle .login-gate-keyword {
    display: inline !important;
    color: #FFD700;
}

.login-gate-btn {
    width: 100%;
    padding: 16px;
    font-size: 17px;
    font-weight: 700;
    border-radius: 14px;
    border: none;
    background: #f5f5f5;
            color: #333;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.35);
}

.login-gate-tourist {
    margin-top: 20px;
    font-size: 13px;
    color: #000000;
    text-decoration: underline;
    cursor: pointer;
}

/* ==================== 飘字动画 ==================== */
.floating-text-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-text {
    position: absolute;
    font-size: 28px;
    font-weight: 700;
    animation: floatUp 1.2s ease-out forwards;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.floating-text--points {
    color: #ffd700;
}

.floating-text--exp {
    color: #48bb78;
}

@keyframes floatUp {
    0% {
        opacity: 1;
        transform: translateY(0) scale(0.8);
    }
    50% {
        transform: translateY(-40px) scale(1.1);
    }
    100% {
        opacity: 0;
        transform: translateY(-80px) scale(1);
    }
}

/* ==================== 五宝语句气泡 ==================== */
.wubao-quote-bubble {
    position: absolute;
    top: 60px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 14px;
    border-radius: 18px 18px 4px 18px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    animation: wubaoPop 0.3s ease-out;
    z-index: 100;
    max-width: 200px;
}

.wubao-quote-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.wubao-quote-text {
    font-size: 13px;
    color: #333;
    line-height: 1.4;
}

@keyframes wubaoPop {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ==================== 通关结果积分展示 ==================== */
.challenge-result-points {
    margin: 12px 0;
    text-align: center;
}

.points-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
    color: #333;
    font-size: 18px;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(255, 183, 0, 0.3);
    animation: badgePop 0.5s ease-out;
}

@keyframes badgePop {
    0% { transform: scale(0); }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.challenge-result-thorough-pass {
    margin: 8px 0 16px;
    text-align: center;
}

.thorough-pass-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(238, 90, 111, 0.3);
    animation: badgePop 0.5s ease-out;
}

/* ==================== 填空题、匹配题、手写题样式 ==================== */

.fill-blank-area,
.handwriting-area,
.matching-area {
    width: 100%;
    max-width: 600px;
    margin: 20px auto 0;
    padding: 0 16px;
}

.fill-input-row {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.fill-answer-input {
    flex: 1;
    height: 44px;
    padding: 0 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}

.fill-answer-input:focus {
    border-color: #4A90E2;
}

.handwriting-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    margin-bottom: 4px;
    gap: 8px;
}

.answer-display {
    flex: 1;
    text-align: center;
    color: #1a73e8;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 1px;
}

.btn-view-answer {
    color: #999;
    font-size: 13px;
    flex-shrink: 0;
}

.handwriting-board,
.handwriting-area .handwriting-board {
    width: 100%;
    margin: 12px 0;
}

.handwriting-canvas {
    width: 100%;
    height: 160px;
    border: 2px dashed #ccc;
    border-radius: 12px;
    background: #fafafa;
    touch-action: none;
}

.handwriting-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 10px;
}

.handwriting-preview {
    text-align: center;
    margin-top: 10px;
    color: #666;
    font-size: 14px;
}

.handwriting-input-row {
    margin-top: 12px;
}

.handwriting-hint,
.matching-hint {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-bottom: 16px;
}

.matching-columns {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.matching-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.matching-item {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    text-align: center;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 15px;
}

.matching-item.selected {
    border-color: #4A90E2;
    background: #e8f1fc;
}

.matching-item.matched {
    opacity: 0.95;
    pointer-events: none;
}

.matching-pairs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 16px;
}

.matching-pair {
    padding: 6px 12px;
    background: #e8f5e9;
    border-radius: 16px;
    font-size: 13px;
    color: #2e7d32;
}

.matching-title {
    font-size: 17px;
    font-weight: 500;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.5;
}

.matching-submit {
    display: block;
    margin: 0 auto;
}

.matching-learning-result {
    margin-bottom: 12px;
}

.matching-result-pair {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px dashed #e0e0e0;
}

.matching-result-pair:last-child {
    border-bottom: none;
}

.matching-result-word {
    font-weight: 600;
    color: #2e7d32;
}

.matching-result-arrow {
    color: #999;
}

.matching-result-meaning {
    color: #333;
}

/* 匹配题 4 种配对颜色 */
.matching-item.match-color-1 {
    border-color: #4A90E2;
    background: #e8f1fc;
    color: #1565c0;
}

.matching-item.match-color-2 {
    border-color: #4caf50;
    background: #e8f5e9;
    color: #2e7d32;
}

.matching-item.match-color-3 {
    border-color: #ff9800;
    background: #fff3e0;
    color: #ef6c00;
}

.matching-item.match-color-4 {
    border-color: #9c27b0;
    background: #f3e5f5;
    color: #7b1fa2;
}

/* 答题界面紧凑布局：移动端一屏完整显示 */
@media (max-width: 480px) {
    .page.active.challenge-page {
        display: flex;
        flex-direction: column;
        height: 100vh;
        overflow: hidden;
    }
    .challenge-header {
        padding: 8px 12px;
        flex-shrink: 0;
    }
    .challenge-header h3 {
        font-size: 15px;
        margin: 0;
    }
    .challenge-header p {
        font-size: 11px;
        margin: 2px 0 0;
    }
    .timer-info {
        padding: 6px 8px;
        gap: 5px;
    }
    .timer-item {
        flex-direction: row;
        padding: 4px 6px;
        min-width: auto;
        flex: 1;
        gap: 2px;
    }
    .timer-label { font-size: 15px; }
    .timer-value { font-size: 15px; }
    .question-area {
        flex: 1;
        overflow-y: auto;
        padding: 0 10px 8px;
    }
    .question-card {
        padding: 10px;
        margin-bottom: 8px;
        border-radius: 12px;
    }
    .progress-bar-container {
        height: 16px;
        margin-bottom: 8px;
    }
    .progress-bar-text { font-size: 15px; }
    .question-number {
        font-size: 15px;
        margin-bottom: 6px;
    }
    .question-header-row {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        padding: 8px 10px;
        margin-bottom: 10px;
        border-radius: 10px;
        gap: 6px 8px;
    }
    .question-title-inline {
        font-size: 23px;
        line-height: 1.3;
    }
    .question-subtitle-block {
        gap: 6px;
    }
    .question-subtitle-inline {
        font-size: 18px;
    }
        .question-pos-inline { font-size: 18px; opacity: 0.85; white-space: nowrap; }
    .audio-btn-inline {
        width: 26px;
        height: 26px;
    }
    .options-list { gap: 6px; }
    .option-item {
        padding: 10px 12px;
        border-radius: 10px;
        margin-bottom: 0;
        gap: 8px;
    }
.option-label::after { content: "."; }
    .option-label { font-size: 23px; min-width: 24px; }
    .option-text { font-size: 23px; }
    .fill-input-row { gap: 8px; margin-bottom: 8px; }
    .fill-answer-input {
        padding: 10px 12px;
        font-size: 14px;
        border-radius: 10px;
    }
    .handwriting-toggle { margin-bottom: 6px; }
    .handwriting-toggle .btn-text {
        font-size: 12px;
        padding: 4px 8px;
    }
    .handwriting-board { margin: 8px 0; }
    .handwriting-canvas {
        height: 90px;
        border-radius: 10px;
    }
    .handwriting-actions { gap: 8px; margin-top: 6px; }
    .handwriting-actions .btn {
        padding: 8px 12px;
        font-size: 13px;
    }
    .handwriting-preview {
        margin-top: 6px;
        font-size: 12px;
    }
    .matching-title {
        font-size: 14px;
        margin-bottom: 10px;
    }
    .matching-columns { gap: 10px; margin-bottom: 8px; }
    .matching-col { gap: 6px; }
    .matching-item {
        padding: 8px 10px;
        font-size: 13px;
        border-radius: 8px;
    }
    .inline-learning-panel {
        padding: 6px 8px;
        margin: 6px 0;
        border-radius: 8px;
    }
    .inline-learning-panel .inline-learning-header {
        padding: 6px 8px;
        font-size: 13px;
    }
    .inline-learning-panel.expanded .inline-learning-content {
        max-height: 180px;
        padding: 0 8px 6px;
    }
    .learning-section-inline { margin-bottom: 3px; gap: 4px; }
    .learning-label { font-size: 16px; }
    .learning-text { font-size: 16px; line-height: 1.3; }
    .learning-translation { font-size: 16px; }
    .challenge-actions {
        flex-shrink: 0;
        padding: 8px 10px;
        margin: 0;
        gap: 8px;
        background: #fff;
        box-shadow: 0 -2px 8px rgba(0,0,0,0.05);
    }
    .challenge-actions .btn {
        padding: 10px;
        font-size: 15px;
        border-radius: 10px;
    }
}

/* 轮次选择弹窗 */
.round-modal {
    width: 85%;
    max-width: 360px;
    max-height: 70vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
}

.round-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}

.round-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.round-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.round-modal-body {
    padding: 12px 16px;
    overflow-y: auto;
    flex: 1;
}

.round-modal-loading,
.round-modal-empty {
    text-align: center;
    padding: 30px 0;
    color: #999;
    font-size: 14px;
}

.round-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.round-item {
    display: flex;
    flex-direction: column;
    padding: 14px 16px;
    border-radius: 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    cursor: pointer;
    transition: all 0.2s;
}

.round-item:active {
    transform: scale(0.98);
    background: #e3f2fd;
}

.round-item.completed {
    background: #e8f5e9;
    border-color: #a5d6a7;
}

.round-item.in-progress {
    background: #fff3e0;
    border-color: #ffcc80;
}

.round-item-number {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.round-item-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.round-item-status {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(0,0,0,0.06);
    color: #666;
}

.round-item.completed .round-item-status {
    background: #4caf50;
    color: #fff;
}

.round-item.in-progress .round-item-status {
    background: #ff9800;
    color: #fff;
}

.round-item-progress-bar {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

.round-item-progress-fill {
    height: 100%;
    background: #2196f3;
    border-radius: 3px;
    transition: width 0.3s;
}

/* ===== 开关组件 ===== */
.toggle-switch {
    width: 44px; height: 24px; border-radius: 12px;
    background: #ddd; position: relative; cursor: pointer;
    transition: background 0.2s; flex-shrink: 0;
}
.toggle-switch.on { background: #48bb78; }
.toggle-switch-knob {
    width: 20px; height: 20px; border-radius: 50%;
    background: white; position: absolute; top: 2px; left: 2px;
    transition: left 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle-switch.on .toggle-switch-knob { left: 22px; }

/* ===== 订单状态标签 ===== */
.order-status-tag {
    font-size: 11px; padding: 3px 8px; border-radius: 10px;
    white-space: nowrap;
}
.order-status-completed { background: #e6fffa; color: #38b2ac; }
.order-status-pending { background: #fffbeb; color: #d69e2e; }
.order-status-shipped { background: #ebf5ff; color: #3182ce; }
.order-status-cancelled { background: #f5f5f5; color: #999; }

/* 统一导航头 */
.nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: 48px;
}
.nav-header-left {
    cursor: pointer;
    font-size: 14px;
    padding: 4px 8px;
    background: rgba(255,255,255,0.15);
    border-radius: 6px;
    white-space: nowrap;
}
.nav-header-title {
    font-size: 17px;
    font-weight: 700;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.nav-header-right {
    cursor: pointer;
    font-size: 20px;
    padding: 4px 8px;
    background: rgba(255,255,255,0.15);
    border-radius: 6px;
}
/* 判断题模式 — 题目文字加大居中 */
.judge-mode .question-title-inline { }
.judge-mode .question-subtitle-inline { }
        .question-pos-inline { font-size: 18px; opacity: 0.85; white-space: nowrap; }
.judge-mode .question-header-row { justify-content: center !important; }
        .question-pos-inline { font-size: 18px; opacity: 0.85; white-space: nowrap; }
.judge-mode .audio-btn-inline { margin-left: 12px; }
/* 学习面板三行独立左对齐 */
.learning-result-row { padding: 8px 0; font-size: 20px; line-height: 1.6; display: block; text-align: left; }
.learning-result-cn { padding-left: 5em; display: block; text-align: left; }
/* 顶部挑战信息四要素同行 */
.challenge-info-row { display: flex; align-items: center; gap: 12px; font-size: 14px; padding: 4px 0; flex-wrap: wrap; }
/* 拼写题模式 — 提示行居中 */
.spelling-prompt-label { display: block; text-align: center; font-size: 16px; color: #718096; margin-bottom: 8px; }
.spelling-prompt-cn { display: block; text-align: center; font-size: 22px; font-weight: 600; color: #2d3748; margin-bottom: 12px; }
.spelling-prompt-audio { display: inline-flex; align-items: center; justify-content: center; }

/* === 英语答题UI 7/23 === */
.judge-mode .question-title-inline { }
.judge-mode .question-subtitle-inline { }
        .question-pos-inline { font-size: 18px; opacity: 0.85; white-space: nowrap; }
.judge-mode .audio-btn-inline { display: inline-flex; margin-left: 8px; }
        .question-pos-inline { font-size: 18px; opacity: 0.85; white-space: nowrap; }
.learning-result-row { padding: 8px 0; font-size: 20px; line-height: 1.7; }
.learning-result-row.learning-result-cn { padding-left: 5em; }
.challenge-info-row { display: flex; align-items: center; gap: 12px; font-size: 13px; padding: 6px 0; flex-wrap: wrap; color: var(--text-muted); }
.login-modal .login-content { background: white; border-radius: 16px; padding: 28px 24px; width: 340px; max-width: 90vw; text-align: center; }

@media (max-width: 480px) {
  .question-title-inline { font-size: 28px; }
  /* judge-mode uses inline layout now */
  .learning-result-row { font-size: 16px; }
}



/* 匹配题标题 */
.matching-title-inline {
  font-size: 18px;
  font-weight: 600;
  color: #4a90e2;
}

/* 切题过渡动画 */
.challenge-page { transition: opacity 0.2s ease; }
.challenge-page.transitioning { opacity: 0; }
