/* ===== CSS变量 ===== */
:root {
    --primary: #6C5CE7;
    --primary-light: #A29BFE;
    --primary-dark: #5849C4;
    --success: #34C759;
    --success-light: #A8F0BA;
    --danger: #FF3B30;
    --danger-light: #FF9F9A;
    --warning: #FF9500;
    --bg: #F2F2F7;
    --card-bg: #FFFFFF;
    --text: #1C1C1E;
    --text-light: #8E8E93;
    --text-lighter: #C7C7CC;
    --border: #E5E5EA;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --radius: 14px;
    --radius-sm: 10px;
    --radius-full: 9999px;
    --transition: all 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);

    /* iOS 安全区域 */
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
}

/* 深色模式 */
[data-theme="dark"] {
    --bg: #1A1A2E;
    --card-bg: #16213E;
    --text: #EAEAEA;
    --text-light: #B8B8B8;
    --text-lighter: #6B6B6B;
    --border: #2D3A4F;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.4);
}

/* ===== 基础样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    height: -webkit-fill-available;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    min-height: -webkit-fill-available;
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* 禁止选择文本 */
    -webkit-user-select: none;
    user-select: none;
    /* iOS 全屏时的顶部安全区域 */
    padding-top: var(--safe-top);
}

/* 允许输入框选择文本 */
input, textarea {
    -webkit-user-select: text;
    user-select: text;
}

#app {
    max-width: 600px;
    margin: 0 auto;
    min-height: 100vh;
    min-height: calc(100vh - var(--safe-top));
    position: relative;
    padding-left: var(--safe-left);
    padding-right: var(--safe-right);
}

/* iOS 风格按钮按下效果 */
button:active, .menu-btn:active, .choice-btn:active {
    transform: scale(0.97);
    opacity: 0.9;
}

/* ===== 页面切换 ===== */
.page {
    display: none !important;
    padding: 20px;
    padding-bottom: 40px;
    min-height: 100vh;
    animation: fadeIn 0.3s ease;
}

.page.active {
    display: block !important;
}

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

/* ===== 用户选择页 ===== */
.user-select-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 20px;
}

.user-select-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.user-select-subtitle {
    color: var(--text-light);
    margin-bottom: 30px;
}

.user-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    max-width: 400px;
}

.user-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 30px;
    background: var(--card-bg);
    border: 3px solid transparent;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
    min-width: 120px;
}

.user-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg);
}

.user-card:active {
    transform: scale(0.98);
}

.user-card .avatar {
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.user-card .name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
}

.user-card .user-stats {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 5px;
}

.user-card .delete-user {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: var(--danger);
    color: white;
    font-size: 0.8rem;
    cursor: pointer;
    opacity: 0;
    transition: var(--transition);
}

.user-card {
    position: relative;
}

.user-card:hover .delete-user {
    opacity: 1;
}

.add-user-section {
    margin-bottom: 20px;
}

.add-user-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: var(--card-bg);
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.add-user-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.add-icon {
    font-size: 1.5rem;
    font-weight: 300;
}

.new-user-form {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    max-width: 320px;
    width: 100%;
}

.new-user-form.hidden {
    display: none;
}

.user-name-input {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 15px;
    color: var(--text);
    background: var(--bg);
}

.user-name-input:focus {
    outline: none;
    border-color: var(--primary);
}

.avatar-picker {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.avatar-option {
    font-size: 2rem;
    padding: 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.avatar-option:hover {
    background: var(--bg);
}

.avatar-option.selected {
    border-color: var(--primary);
    background: rgba(108, 92, 231, 0.1);
}

.form-buttons {
    display: flex;
    gap: 10px;
}

.form-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.form-btn.cancel {
    background: var(--border);
    color: var(--text-light);
}

.form-btn.confirm {
    background: var(--primary);
    color: white;
}

.form-btn:hover {
    opacity: 0.9;
}

/* ===== 首页用户徽章 ===== */
.user-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--card-bg);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow);
    cursor: pointer;
    margin-bottom: 15px;
    transition: var(--transition);
}

.user-badge:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.user-badge .user-avatar {
    font-size: 1.5rem;
}

.user-badge .user-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.user-badge .switch-hint {
    font-size: 0.7rem;
    color: var(--text-lighter);
    margin-left: 5px;
}

/* ===== 首页 ===== */
.home-header {
    text-align: center;
    padding: 30px 0 20px;
}

.home-header h1 {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.subtitle {
    color: var(--text-light);
    font-size: 1rem;
}

/* 统计栏 */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 15px;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 25px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.stat-icon {
    font-size: 1.2rem;
}

.stat-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.65rem;
    color: var(--text-light);
    white-space: nowrap;
}

/* 菜单网格 */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.menu-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 12px;
    background: var(--card-bg);
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    /* iOS 风格：微妙的内阴影 */
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.08),
        0 4px 12px rgba(0, 0, 0, 0.05);
}

.menu-btn:hover {
    transform: translateY(-1px);
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.1),
        0 8px 24px rgba(0, 0, 0, 0.08);
}

.menu-btn:active {
    transform: scale(0.98);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.1);
}

.menu-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.menu-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 5px;
}

.menu-desc {
    font-size: 0.75rem;
    color: var(--text-light);
}

.xiaojiujiu-btn {
    background: linear-gradient(135deg, #FFE0E6, #FFCDD2);
    border: 2px solid #EF5350 !important;
}

[data-theme="dark"] .xiaojiujiu-btn {
    background: linear-gradient(135deg, #4E1A1A, #5D2828);
    border: 2px solid #EF5350 !important;
}

.times-btn {
    background: linear-gradient(135deg, #E3F2FD, #BBDEFB);
}

[data-theme="dark"] .times-btn {
    background: linear-gradient(135deg, #1A237E, #283593);
}

.wrong-book-btn {
    background: linear-gradient(135deg, #FFF5E6, #FFE8CC);
}

[data-theme="dark"] .wrong-book-btn {
    background: linear-gradient(135deg, #3D2E1F, #4A3728);
}

.learn-btn {
    background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
}

[data-theme="dark"] .learn-btn {
    background: linear-gradient(135deg, #1E3D1F, #2E4D2F);
}

/* 页脚 */
.home-footer {
    text-align: center;
}

.quick-start-btn {
    width: 100%;
    padding: 18px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border: none;
    border-radius: var(--radius);
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.quick-start-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.link-btn {
    padding: 10px 20px;
    background: transparent;
    border: 2px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-light);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.link-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ===== 页面头部 ===== */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0 16px;
    position: sticky;
    top: 0;
    /* iOS 毛玻璃效果 */
    background: rgba(242, 242, 247, 0.85);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    z-index: 100;
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .page-header {
    background: rgba(26, 26, 46, 0.85);
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.1);
}

.page-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

.back-btn {
    padding: 8px 16px;
    background: var(--card-bg);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.back-btn:hover {
    background: var(--primary-light);
    color: white;
}

.header-spacer {
    width: 80px;
}

.practice-stats {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
}

/* ===== 难度选择器 ===== */
.difficulty-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.diff-btn {
    padding: 8px 16px;
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.diff-btn:hover {
    border-color: var(--primary-light);
}

.diff-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* ===== 计时条 ===== */
.timer-bar {
    height: 6px;
    background: var(--border);
    border-radius: var(--radius-full);
    margin-bottom: 20px;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s;
}

.timer-bar.active {
    opacity: 1;
}

.timer-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--success), var(--warning), var(--danger));
    border-radius: var(--radius-full);
    transition: width 0.1s linear;
    width: 100%;
}

/* ===== 题目区域 ===== */
.question-area {
    position: relative;
    margin-bottom: 30px;
}

.question-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px 20px;
    text-align: center;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

/* 填空题提示标签 */
.question-card .input-hint {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: var(--primary);
    background: rgba(108, 92, 231, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.question-card.correct {
    background: var(--success-light);
    animation: pulse 0.3s ease;
}

.question-card.wrong {
    background: var(--danger-light);
    animation: shake 0.4s ease;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}

.question-text {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
}

/* 连胜指示器 */
.streak-indicator {
    position: absolute;
    top: -10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    border-radius: var(--radius-full);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    opacity: 0;
    transform: scale(0.8);
    transition: var(--transition);
}

.streak-indicator.active {
    opacity: 1;
    transform: scale(1);
}

.streak-fire {
    font-size: 1.2rem;
}

/* ===== 答案区域 ===== */
.answer-area {
    margin-bottom: 20px;
}

.choices {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.choice-btn {
    padding: 18px;
    background: var(--card-bg);
    border: none;
    border-radius: var(--radius);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    /* iOS 风格阴影 */
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04);
}

.choice-num {
    position: absolute;
    top: 6px;
    left: 8px;
    font-size: 0.7rem;
    color: var(--text-lighter);
    font-weight: 500;
}

.choice-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.choice-btn:active {
    transform: scale(0.98);
}

.choice-btn.correct {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.choice-btn.wrong {
    background: var(--danger);
    border-color: var(--danger);
    color: white;
}

.choice-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 填空题模式 */
.input-mode {
    display: flex;
    gap: 12px;
}

.input-mode.hidden {
    display: none;
}

.answer-input {
    flex: 1;
    padding: 18px 20px;
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    color: var(--text);
    transition: var(--transition);
    /* 防止iOS缩放 */
    font-size: max(16px, 1.5rem);
}

.answer-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.2);
    background: #fff;
}

.submit-btn {
    padding: 18px 30px;
    background: var(--primary);
    border: none;
    border-radius: var(--radius);
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.submit-btn:hover {
    background: var(--primary-dark);
}

.submit-btn:active {
    transform: scale(0.98);
}

/* ===== 键盘弹出时的优化布局 ===== */
body.keyboard-active {
    /* 键盘激活时固定body */
    position: fixed;
    width: 100%;
    overflow: hidden;
}

body.keyboard-active #practice-page.active {
    /* 练习页面使用flex布局，自动适应 */
    display: flex !important;
    flex-direction: column;
    height: 100vh;
    height: 100dvh; /* 动态视口高度 */
    overflow: hidden;
}

body.keyboard-active .page-header {
    flex-shrink: 0;
    position: relative;
    padding: 8px 20px;
}

body.keyboard-active .difficulty-selector {
    display: none; /* 键盘弹出时隐藏难度选择 */
}

body.keyboard-active .timer-bar {
    margin-bottom: 10px;
}

body.keyboard-active .question-area {
    flex-shrink: 0;
    margin-bottom: 15px;
}

body.keyboard-active .question-card {
    padding: 20px 15px;
    min-height: 100px;
}

body.keyboard-active .question-text {
    font-size: 1.6rem;
}

body.keyboard-active .answer-area {
    flex-shrink: 0;
    margin-bottom: 10px;
}

body.keyboard-active .streak-indicator {
    top: -8px;
    right: 5px;
    padding: 5px 10px;
    font-size: 0.85rem;
}

body.keyboard-active .feedback {
    bottom: auto;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
}

body.keyboard-active .feedback.show {
    transform: translateX(-50%) translateY(-50%);
}

/* 战斗页键盘优化 */
body.keyboard-active #battle-page .monster-area {
    padding: 10px;
}

body.keyboard-active #battle-page .monster-emoji {
    font-size: 3rem;
}

body.keyboard-active #battle-page .monster-name {
    font-size: 0.9rem;
    margin-bottom: 8px;
}

body.keyboard-active #battle-page .monster-hp-bar {
    width: 120px;
    height: 12px;
}

body.keyboard-active #battle-page .battle-question-area {
    padding: 10px 15px;
}

body.keyboard-active #battle-page .battle-question-card {
    padding: 15px;
}

body.keyboard-active #battle-page .battle-question-text {
    font-size: 1.5rem;
}

body.keyboard-active #battle-page .battle-answer-area {
    padding: 10px 15px;
}

/* 输入框获得焦点时的特殊样式 */
.answer-input:focus {
    position: relative;
    z-index: 100;
}

/* 确保输入区域在视口内 */
.input-mode-container {
    position: relative;
    padding-bottom: env(safe-area-inset-bottom);
}

/* 练习页整体布局优化 */
#practice-page.active {
    display: flex !important;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

#practice-page .page-header {
    flex-shrink: 0;
}

#practice-page .question-area {
    flex: 0 0 auto;
}

#practice-page .answer-area {
    flex: 0 0 auto;
}

/* 填空题模式特别优化 */
.input-mode {
    flex-direction: row;
    align-items: stretch;
}

.input-mode .answer-input {
    min-width: 0;
    flex: 1;
}

.input-mode .submit-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .answer-input {
        font-size: 1.4rem;
        padding: 16px;
    }

    .submit-btn {
        padding: 16px 24px;
        font-size: 1rem;
    }

    /* 更大的点击区域 */
    .choice-btn {
        padding: 20px;
        min-height: 60px;
    }
}

/* 小屏幕+键盘弹出优化 */
@media (max-height: 600px) {
    .question-card {
        padding: 20px 15px;
        min-height: 80px;
    }

    .question-text {
        font-size: 1.4rem;
    }

    .difficulty-selector {
        margin-bottom: 10px;
    }

    .question-area {
        margin-bottom: 15px;
    }

    .streak-indicator {
        padding: 5px 10px;
        font-size: 0.8rem;
    }
}

/* ===== 反馈 ===== */
.feedback {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1000;
}

.feedback.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.feedback-content {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: var(--card-bg);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
    font-size: 1.1rem;
    font-weight: 600;
}

.feedback.correct .feedback-content {
    background: var(--success);
    color: white;
}

.feedback.wrong .feedback-content {
    background: var(--danger);
    color: white;
}

.feedback-icon {
    font-size: 1.3rem;
}

/* ===== 每日挑战 ===== */
.daily-timer {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    font-variant-numeric: tabular-nums;
}

.daily-progress {
    margin-bottom: 20px;
}

.progress-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.progress-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-lighter);
    transition: var(--transition);
}

.progress-dot.current {
    background: var(--primary);
    color: white;
    transform: scale(1.2);
}

.progress-dot.correct {
    background: var(--success);
    color: white;
}

.progress-dot.wrong {
    background: var(--danger);
    color: white;
}

.start-daily-btn {
    width: 100%;
    padding: 25px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border: none;
    border-radius: var(--radius);
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.start-daily-btn:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

/* ===== 结果页 ===== */
#result-page.active {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.result-content {
    text-align: center;
    width: 100%;
}

.result-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.result-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
}

.result-encourage {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 25px;
}

.result-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
}

.result-stat {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.result-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.result-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

.result-accuracy {
    margin-bottom: 40px;
}

.accuracy-bar {
    height: 12px;
    background: var(--border);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 10px;
}

.accuracy-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success), var(--success-light));
    border-radius: var(--radius-full);
    transition: width 1s ease;
}

.accuracy-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
}

.result-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.result-btn {
    padding: 18px;
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
}

.result-btn:hover {
    border-color: var(--primary);
}

.result-btn.primary {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.result-btn.primary:hover {
    background: var(--primary-dark);
}

/* ===== 错题本 ===== */
.clear-wrong-btn {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--danger);
    border-radius: var(--radius-sm);
    color: var(--danger);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.clear-wrong-btn:hover {
    background: var(--danger);
    color: white;
}

.wrong-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 80px;
}

.wrong-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    gap: 12px;
}

.wrong-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wrong-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
}

.delete-wrong-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--border);
    color: var(--text-light);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.delete-wrong-btn:hover {
    background: var(--danger);
    color: white;
}

.wrong-answer {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.wrong-your {
    font-size: 0.85rem;
    color: var(--danger);
    text-decoration: line-through;
}

.wrong-correct {
    font-size: 1rem;
    font-weight: 600;
    color: var(--success);
}

.wrong-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.wrong-empty.hidden {
    display: none;
}

.empty-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 15px;
}

.wrong-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.wrong-actions.hidden {
    display: none;
}

.practice-wrong-btn {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    display: block;
    padding: 18px;
    background: var(--primary);
    border: none;
    border-radius: var(--radius);
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.practice-wrong-btn:hover {
    background: var(--primary-dark);
}

/* ===== 学习页 ===== */
.learn-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 15px;
    margin-bottom: 20px;
    -webkit-overflow-scrolling: touch;
}

.learn-tab {
    flex-shrink: 0;
    padding: 10px 18px;
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.learn-tab:hover {
    border-color: var(--primary-light);
}

.learn-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.learn-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.learn-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
}

.learn-card-title {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.learn-card-content {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.learn-item {
    padding: 10px 16px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    color: white;
}

.start-practice-btn {
    width: 100%;
    padding: 18px;
    margin-top: 20px;
    background: linear-gradient(135deg, var(--success), var(--success-light));
    border: none;
    border-radius: var(--radius);
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.start-practice-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.start-practice-btn:active {
    transform: scale(0.98);
}

/* ===== 设置页 ===== */
.settings-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.setting-item {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.setting-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
}

.setting-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.setting-opt {
    padding: 10px 18px;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.setting-opt:hover {
    border-color: var(--primary-light);
}

.setting-opt.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.settings-footer {
    text-align: center;
}

.reset-btn {
    padding: 12px 24px;
    background: transparent;
    border: 2px solid var(--danger);
    border-radius: var(--radius-full);
    color: var(--danger);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 20px;
}

.reset-btn:hover {
    background: var(--danger);
    color: white;
}

.version {
    font-size: 0.8rem;
    color: var(--text-lighter);
}

/* ===== 成就页 ===== */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.achievement-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.achievement-card.locked {
    opacity: 0.5;
    filter: grayscale(1);
}

.achievement-card.unlocked {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.1), rgba(162, 155, 254, 0.1));
    border: 2px solid var(--primary-light);
}

.achievement-card-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.achievement-card-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.achievement-card-desc {
    font-size: 0.7rem;
    color: var(--text-light);
}

@media (max-width: 400px) {
    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== 成就弹窗 ===== */
.achievement-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.achievement-popup.show {
    opacity: 1;
    visibility: visible;
}

.achievement-popup.hidden {
    display: none;
}

.achievement-content {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.achievement-popup.show .achievement-content {
    transform: scale(1);
    animation: achievementPop 0.5s ease;
}

@keyframes achievementPop {
    0% { transform: scale(0.5); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.achievement-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 15px;
}

.achievement-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.achievement-desc {
    color: var(--text-light);
}

/* ===== 特效层 ===== */
.effects-layer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 3000;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    animation: confetti-fall 3s ease-out forwards;
}

/* 彩色纸屑 - 更丰富的动画 */
@keyframes confetti-fall {
    0% {
        transform: translateY(-100%) rotate(0deg) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translateY(-80%) rotate(72deg) scale(1);
    }
    100% {
        transform: translateY(100vh) rotate(720deg) scale(0.5);
        opacity: 0;
    }
}

.confetti {
    border-radius: 3px;
    box-shadow: 0 0 10px currentColor;
}

/* 闪烁的星星 */
@keyframes twinkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.sparkle {
    position: absolute;
    font-size: 1.2rem;
    animation: twinkle 0.5s ease infinite;
    pointer-events: none;
}

/* 爱心飘落（连胜奖励） */
@keyframes heart-float {
    0% {
        transform: translateY(0) scale(0) rotate(0deg);
        opacity: 0;
    }
    20% {
        opacity: 1;
        transform: translateY(-20px) scale(1) rotate(-15deg);
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) scale(0.5) rotate(15deg);
        opacity: 0;
    }
}

.floating-heart {
    position: absolute;
    font-size: 2rem;
    animation: heart-float 1s ease-out forwards;
    pointer-events: none;
}

/* 能量波纹（答对时） */
@keyframes energy-wave {
    0% {
        transform: scale(0.5);
        opacity: 0.8;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

.energy-wave {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--success);
    animation: energy-wave 0.6s ease-out forwards;
    pointer-events: none;
}

/* 分数弹出 - 更华丽 */
@keyframes score-pop {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.5);
    }
    30% {
        opacity: 1;
        transform: translateY(-20px) scale(1.3);
    }
    60% {
        transform: translateY(-40px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-70px) scale(0.8);
    }
}

.score-popup {
    position: fixed;
    font-size: 2rem;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    animation: score-pop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    pointer-events: none;
    z-index: 1000;
}

.score-popup.correct {
    color: #34C759;
    text-shadow: 0 0 20px rgba(52, 199, 89, 0.5);
}

.score-popup.wrong {
    color: #FF3B30;
}

/* 连击文字效果 */
@keyframes combo-text {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-20deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.3) rotate(5deg);
    }
    100% {
        opacity: 0;
        transform: scale(1) rotate(0deg) translateY(-30px);
    }
}

.combo-text {
    position: fixed;
    font-size: 1.5rem;
    font-weight: 800;
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8), 0 2px 5px rgba(0,0,0,0.3);
    animation: combo-text 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    pointer-events: none;
    z-index: 1001;
}

/* 星星爆炸效果 - 向外散射 */
.star-burst {
    position: absolute;
    font-size: 1.5rem;
    animation: star-burst 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    pointer-events: none;
    --tx: 0px;
    --ty: 0px;
}

@keyframes star-burst {
    0% {
        transform: translate(0, 0) scale(0) rotate(0deg);
        opacity: 1;
    }
    30% {
        transform: translate(calc(var(--tx) * 0.3), calc(var(--ty) * 0.3)) scale(1.5) rotate(180deg);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(0.3) rotate(360deg);
        opacity: 0;
    }
}

/* 题目卡片入场动画 */
@keyframes question-enter {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    60% {
        transform: translateY(-5px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.question-card {
    animation: question-enter 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 答对时的弹跳庆祝效果 */
@keyframes correct-bounce {
    0% { transform: scale(1); }
    20% { transform: scale(1.15); }
    40% { transform: scale(0.95); }
    60% { transform: scale(1.05); }
    80% { transform: scale(0.98); }
    100% { transform: scale(1); }
}

.question-card.correct {
    animation: correct-bounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: linear-gradient(135deg, #A8F0BA, #34C759) !important;
}

/* 答对时的光环效果 */
@keyframes correct-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.6);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(52, 199, 89, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(52, 199, 89, 0);
    }
}

.question-card.correct::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    animation: correct-ring 0.6s ease-out;
}

/* 答错时的剧烈摇晃 + 红色闪烁 */
@keyframes wrong-shake {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    10% { transform: translateX(-15px) rotate(-3deg); }
    20% { transform: translateX(15px) rotate(3deg); }
    30% { transform: translateX(-12px) rotate(-2deg); }
    40% { transform: translateX(12px) rotate(2deg); }
    50% { transform: translateX(-8px) rotate(-1deg); }
    60% { transform: translateX(8px) rotate(1deg); }
    70% { transform: translateX(-5px) rotate(0deg); }
    80% { transform: translateX(5px) rotate(0deg); }
}

@keyframes wrong-flash {
    0%, 100% { background-color: var(--danger-light); }
    25%, 75% { background-color: #FFB3B0; }
    50% { background-color: var(--danger-light); }
}

.question-card.wrong {
    animation: wrong-shake 0.6s ease, wrong-flash 0.6s ease;
}

/* 连胜火焰动画 - 更炫酷 */
@keyframes flame {
    0%, 100% { transform: scale(1) rotate(-5deg); filter: brightness(1); }
    25% { transform: scale(1.2) rotate(5deg); filter: brightness(1.2); }
    50% { transform: scale(1.1) rotate(-3deg); filter: brightness(1.1); }
    75% { transform: scale(1.25) rotate(3deg); filter: brightness(1.3); }
}

.streak-indicator.active .streak-fire {
    animation: flame 0.4s ease infinite;
    text-shadow: 0 0 10px rgba(255, 150, 0, 0.8);
}

/* 连胜指示器彩虹边框（高连胜时） */
@keyframes rainbow-border {
    0% { border-color: #FF6B6B; box-shadow: 0 0 15px rgba(255, 107, 107, 0.5); }
    25% { border-color: #FFD93D; box-shadow: 0 0 15px rgba(255, 217, 61, 0.5); }
    50% { border-color: #6BCB77; box-shadow: 0 0 15px rgba(107, 203, 119, 0.5); }
    75% { border-color: #4D96FF; box-shadow: 0 0 15px rgba(77, 150, 255, 0.5); }
    100% { border-color: #FF6B6B; box-shadow: 0 0 15px rgba(255, 107, 107, 0.5); }
}

.streak-indicator.active {
    border: 3px solid transparent;
    animation: rainbow-border 2s linear infinite;
}

/* 连胜数字超级弹跳 */
@keyframes number-super-pop {
    0% { transform: scale(1); }
    30% { transform: scale(1.5) rotate(-10deg); }
    50% { transform: scale(0.9) rotate(5deg); }
    70% { transform: scale(1.2) rotate(-3deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.streak-num.pop {
    animation: number-super-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 连胜里程碑特效（5、10、15...） */
@keyframes milestone-glow {
    0%, 100% {
        text-shadow: 0 0 5px #FFD700, 0 0 10px #FFD700, 0 0 20px #FFD700;
        transform: scale(1);
    }
    50% {
        text-shadow: 0 0 10px #FFD700, 0 0 20px #FFD700, 0 0 40px #FFD700, 0 0 60px #FFD700;
        transform: scale(1.1);
    }
}

.streak-indicator.milestone .streak-num {
    animation: milestone-glow 0.8s ease infinite;
    color: #FFD700;
}

/* 选项按钮入场动画 - 交错出现 */
@keyframes choice-enter {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.choices .choice-btn {
    animation: choice-enter 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.choices .choice-btn:nth-child(1) { animation-delay: 0.05s; }
.choices .choice-btn:nth-child(2) { animation-delay: 0.1s; }
.choices .choice-btn:nth-child(3) { animation-delay: 0.15s; }
.choices .choice-btn:nth-child(4) { animation-delay: 0.2s; }

/* 选项按钮hover - 悬浮发光 */
.choice-btn {
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.choice-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.25);
}

/* 选项按钮点击波纹效果 */
.choice-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.choice-btn:active::after {
    width: 300%;
    height: 300%;
}

/* 正确选项 - 超级发光 + 弹跳 */
@keyframes correct-choice {
    0% { transform: scale(1); }
    30% { transform: scale(1.1); }
    60% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

@keyframes correct-glow-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.6),
                    0 4px 15px rgba(52, 199, 89, 0.4);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(52, 199, 89, 0),
                    0 8px 30px rgba(52, 199, 89, 0.6);
    }
}

.choice-btn.correct {
    animation: correct-choice 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
               correct-glow-pulse 0.6s ease;
    background: linear-gradient(135deg, #34C759, #32D74B) !important;
    border-color: #34C759 !important;
}

/* 错误选项 - 抖动 + 变红 */
@keyframes wrong-choice {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
}

.choice-btn.wrong {
    animation: wrong-choice 0.4s ease;
    background: linear-gradient(135deg, #FF3B30, #FF453A) !important;
}

/* 分数飘浮效果 */
@keyframes score-float {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateY(-30px) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translateY(-60px) scale(0.8);
    }
}

/* 结果页数字滚动效果 */
@keyframes count-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.result-value {
    animation: count-up 0.5s ease backwards;
}

.result-stat:nth-child(1) .result-value { animation-delay: 0.1s; }
.result-stat:nth-child(2) .result-value { animation-delay: 0.2s; }
.result-stat:nth-child(3) .result-value { animation-delay: 0.3s; }

/* 结果页正确率条动画 */
@keyframes fill-bar {
    from { width: 0; }
}

.accuracy-fill {
    animation: fill-bar 1s ease-out 0.5s backwards;
}

/* 进度点完成动画 */
@keyframes dot-complete {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

.progress-dot.correct,
.progress-dot.wrong {
    animation: dot-complete 0.3s ease;
}

/* 菜单按钮入场动画 */
@keyframes menu-enter {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.menu-btn {
    animation: menu-enter 0.4s ease backwards;
}

.menu-btn:nth-child(1) { animation-delay: 0.05s; }
.menu-btn:nth-child(2) { animation-delay: 0.1s; }
.menu-btn:nth-child(3) { animation-delay: 0.15s; }
.menu-btn:nth-child(4) { animation-delay: 0.2s; }
.menu-btn:nth-child(5) { animation-delay: 0.25s; }
.menu-btn:nth-child(6) { animation-delay: 0.3s; }
.menu-btn:nth-child(7) { animation-delay: 0.35s; }
.menu-btn:nth-child(8) { animation-delay: 0.4s; }
.menu-btn:nth-child(9) { animation-delay: 0.45s; }

/* 用户卡片入场动画 */
.user-card {
    animation: menu-enter 0.4s ease backwards;
}

.user-card:nth-child(1) { animation-delay: 0.1s; }
.user-card:nth-child(2) { animation-delay: 0.2s; }

/* 成就弹窗增强 */
@keyframes achievement-shine {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.achievement-popup.show .achievement-icon {
    animation: bounce 0.6s ease, flame 0.5s ease infinite 0.6s;
}

/* 倒计时闪烁 */
@keyframes timer-warning {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.timer-progress.warning {
    animation: timer-warning 0.5s ease infinite;
}

/* ===== 响应式 ===== */
@media (max-width: 480px) {
    .home-header h1 {
        font-size: 1.6rem;
    }

    .stats-bar {
        grid-template-columns: repeat(4, 1fr);
        gap: 5px;
        padding: 12px 8px;
    }

    .stat-icon {
        font-size: 1rem;
    }

    .stat-value {
        font-size: 1.1rem;
    }

    .stat-label {
        font-size: 0.6rem;
    }

    .menu-grid {
        gap: 10px;
    }

    .menu-btn {
        padding: 15px 10px;
    }

    .menu-icon {
        font-size: 2rem;
    }

    .menu-title {
        font-size: 1rem;
    }

    .question-text {
        font-size: 1.6rem;
    }

    .choice-btn {
        padding: 16px;
        font-size: 1.1rem;
    }

    .result-value {
        font-size: 2rem;
    }

    .quick-start-btn {
        padding: 15px;
        font-size: 1rem;
    }

    .footer-links {
        gap: 10px;
    }

    .link-btn {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
}

@media (min-width: 768px) {
    .menu-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .choices {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===== 分数显示 ===== */
.fraction {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    vertical-align: middle;
    margin: 0 4px;
    font-size: 0.85em;
}

.fraction .numerator {
    border-bottom: 2px solid currentColor;
    padding: 0 6px 2px;
    line-height: 1.2;
}

.fraction .denominator {
    padding: 2px 6px 0;
    line-height: 1.2;
}

/* 题目中的分数稍大 */
.question-text .fraction {
    font-size: 0.9em;
}

.question-text .fraction .numerator,
.question-text .fraction .denominator {
    padding: 0 8px;
    min-width: 24px;
    text-align: center;
}

/* 学习卡片中的分数 */
.learn-item .fraction {
    font-size: 0.8em;
}

/* 分数提示 */
.fraction-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 10px;
    font-weight: normal;
}

/* ===== 工具类 ===== */
.hidden {
    display: none !important;
}

/* ===== 滚动条美化 ===== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-lighter);
}

/* ===== 安全区域适配 ===== */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .page {
        padding-bottom: calc(40px + env(safe-area-inset-bottom));
    }

    .wrong-actions {
        padding-bottom: calc(20px + env(safe-area-inset-bottom));
    }

    .home-footer {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* ===== iPad 横屏优化 ===== */
@media (min-width: 768px) and (orientation: landscape) {
    #app {
        max-width: 700px;
    }

    .menu-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .question-text {
        font-size: 2.5rem;
    }

    .choices {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===== iPad 大屏优化 ===== */
@media (min-width: 1024px) {
    #app {
        max-width: 800px;
    }

    .home-header h1 {
        font-size: 2.5rem;
    }

    .menu-btn {
        padding: 24px 16px;
    }

    .menu-icon {
        font-size: 3rem;
    }

    .question-card {
        padding: 50px 30px;
        min-height: 180px;
    }

    .choice-btn {
        padding: 22px;
        font-size: 1.4rem;
    }
}

/* ===== iOS 独立模式（添加到主屏幕后）===== */
@media (display-mode: standalone) {
    body {
        /* 独立模式下额外的顶部空间 */
        padding-top: calc(var(--safe-top) + 10px);
    }

    .page-header {
        padding-top: 8px;
    }
}

/* ===== 小九九模式选择页 ===== */
#xiaojiujiu-mode-page.active {
    display: flex !important;
    flex-direction: column;
    padding: 20px;
}

.mode-select-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 12px;
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
    padding: 10px 0;
}

.mode-select-title {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 5px;
}

.mode-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 18px 15px;
    background: var(--card-bg);
    border: 3px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.mode-card:active {
    transform: scale(0.98);
}

.mode-card.battle-mode {
    background: linear-gradient(135deg, #FFF5F5 0%, #FFF 100%);
    border-color: #FF6B6B;
}

.mode-card.battle-mode:hover {
    box-shadow: 0 8px 30px rgba(255, 107, 107, 0.3);
}

.mode-card.classic-mode {
    background: linear-gradient(135deg, #F0F5FF 0%, #FFF 100%);
    border-color: var(--primary-light);
}

.mode-card.classic-mode:hover {
    box-shadow: 0 8px 30px rgba(108, 92, 231, 0.2);
}

.mode-icon {
    font-size: 2.2rem;
}

.mode-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
}

.mode-desc {
    font-size: 0.8rem;
    color: var(--text-light);
    text-align: center;
}

.mode-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    background: #FF6B6B;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
}

/* 战斗难度选择器 */
.battle-difficulty-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
    padding: 10px 12px;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.diff-label {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-right: 3px;
}

.battle-diff-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 14px;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.battle-diff-btn:active {
    transform: scale(0.95);
}

.battle-diff-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.battle-diff-btn.active .diff-text {
    color: white;
}

.diff-icon {
    font-size: 1.3rem;
}

.diff-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
}

/* ===== 战斗页面 ===== */
#battle-page.active {
    display: flex !important;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 0;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    position: relative;
    overflow: hidden;
}

.battle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    padding-top: calc(var(--safe-top) + 15px);
    background: rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.battle-header .back-btn {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 8px 15px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.stage-info {
    display: flex;
    align-items: baseline;
    gap: 4px;
    color: white;
}

.stage-label {
    font-size: 0.85rem;
    opacity: 0.8;
}

.stage-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFD93D;
}

.stage-total {
    font-size: 1rem;
    opacity: 0.8;
}

.player-hp-area {
    display: flex;
    align-items: center;
    gap: 5px;
}

.hp-hearts {
    font-size: 1.3rem;
    letter-spacing: 2px;
    filter: drop-shadow(0 0 5px rgba(255, 0, 0, 0.5));
}

/* 怪兽区域 */
.monster-area {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    position: relative;
}

.monster-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #FFD93D;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.monster-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.monster-emoji {
    font-size: 5rem;
    animation: monster-idle 2s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
    transition: transform 0.1s ease;
}

@keyframes monster-idle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.monster-emoji.hit {
    animation: monster-hit 0.3s ease;
}

@keyframes monster-hit {
    0%, 100% { transform: translateX(0); filter: brightness(1); }
    25% { transform: translateX(-15px); filter: brightness(2); }
    75% { transform: translateX(15px); filter: brightness(1.5); }
}

.monster-emoji.attack {
    animation: monster-attack 0.5s ease;
}

@keyframes monster-attack {
    0% { transform: translateY(0) scale(1); }
    30% { transform: translateY(-20px) scale(1.2); }
    60% { transform: translateY(30px) scale(1.1); }
    100% { transform: translateY(0) scale(1); }
}

.monster-emoji.death {
    animation: monster-death 1s ease forwards;
}

@keyframes monster-death {
    0% { transform: scale(1) rotate(0deg); opacity: 1; }
    50% { transform: scale(1.3) rotate(180deg); opacity: 0.8; }
    100% { transform: scale(0) rotate(360deg); opacity: 0; }
}

.monster-hp-bar {
    width: 150px;
    height: 16px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.monster-hp-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF6B6B, #EE5A5A);
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
    width: 100%;
}

.monster-hp-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* 伤害数字 */
.damage-numbers {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.damage-number {
    position: absolute;
    font-size: 2rem;
    font-weight: 800;
    color: #FFD93D;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 10px rgba(255, 217, 61, 0.5);
    animation: damage-pop 0.8s ease forwards;
    white-space: nowrap;
}

@keyframes damage-pop {
    0% { transform: translateY(0) scale(0.5); opacity: 1; }
    50% { transform: translateY(-30px) scale(1.2); opacity: 1; }
    100% { transform: translateY(-60px) scale(1); opacity: 0; }
}

/* 怪兽受击台词 */
.monster-quip {
    position: absolute;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px 12px;
    border-radius: 12px;
    white-space: nowrap;
    animation: quip-pop 1s ease forwards;
    top: -40px;
}

@keyframes quip-pop {
    0% { transform: translateY(0) scale(0.8); opacity: 0; }
    20% { transform: translateY(-10px) scale(1); opacity: 1; }
    80% { transform: translateY(-20px) scale(1); opacity: 1; }
    100% { transform: translateY(-30px) scale(0.9); opacity: 0; }
}

/* 武器飞行区域 */
.weapon-area {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 5;
}

.weapon {
    position: absolute;
    font-size: 2.5rem;
    animation: weapon-fly 0.4s ease-out forwards;
    filter: drop-shadow(0 0 10px rgba(255, 200, 0, 0.8));
}

@keyframes weapon-fly {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-300px) scale(0.5);
    }
}

/* 战斗题目区域 */
.battle-question-area {
    flex: 0 0 auto;
    padding: 15px 20px;
    position: relative;
}

.battle-question-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius);
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.battle-question-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
}

.battle-combo {
    position: absolute;
    top: 20px;
    right: 25px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    background: rgba(255, 107, 107, 0.9);
    border-radius: var(--radius-full);
    color: white;
    font-weight: 600;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.battle-combo.show {
    opacity: 1;
    transform: scale(1);
}

.combo-fire {
    font-size: 1.1rem;
}

.combo-count {
    font-size: 1.2rem;
    font-weight: 800;
}

.combo-label {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* 战斗答题区域 */
.battle-answer-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    padding-bottom: calc(var(--safe-bottom) + 20px);
}

.battle-choices {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.battle-choice-btn {
    padding: 20px;
    font-size: 1.4rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.95);
    border: 3px solid transparent;
    border-radius: var(--radius);
    color: var(--text);
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.battle-choice-btn:active {
    transform: scale(0.95);
}

.battle-choice-btn:hover {
    border-color: var(--primary);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.3);
}

.battle-choice-btn.correct {
    background: var(--success);
    color: white;
    border-color: var(--success);
    animation: correct-pulse 0.5s ease;
}

.battle-choice-btn.wrong {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
    animation: wrong-shake 0.4s ease;
}

@keyframes correct-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes wrong-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

/* 战斗输入模式 */
.battle-input-mode {
    display: none;
    flex-direction: row;
    gap: 12px;
}

.battle-input-mode:not(.hidden) {
    display: flex;
}

.battle-answer-input {
    flex: 1;
    padding: 18px 20px;
    font-size: 1.4rem;
    font-weight: 600;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    border: 3px solid transparent;
    border-radius: var(--radius);
    color: var(--text);
    outline: none;
}

.battle-answer-input:focus {
    border-color: var(--primary);
}

.battle-submit-btn {
    padding: 18px 30px;
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #FF6B6B, #EE5A5A);
    border: none;
    border-radius: var(--radius);
    color: white;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.battle-submit-btn:active {
    transform: scale(0.95);
}

/* 战斗反馈 */
.battle-feedback {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    pointer-events: none;
    z-index: 100;
    transition: all 0.2s ease;
}

.battle-feedback.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.battle-feedback-content {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: var(--card-bg);
    border-radius: var(--radius-full);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    font-size: 1.2rem;
    font-weight: 700;
}

.battle-feedback.correct .battle-feedback-content {
    background: var(--success);
    color: white;
}

.battle-feedback.wrong .battle-feedback-content {
    background: var(--danger);
    color: white;
}

/* 屏幕闪红效果 */
.screen-flash {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 0, 0, 0.3);
    pointer-events: none;
    opacity: 0;
    z-index: 50;
}

.screen-flash.show {
    animation: screen-flash 0.3s ease;
}

@keyframes screen-flash {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* ===== 战斗结果页 ===== */
#battle-result-page.active,
#battle-fail-page.active {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
}

.battle-result-content,
.battle-fail-content {
    text-align: center;
    width: 100%;
    max-width: 400px;
}

.battle-result-icon,
.battle-fail-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    animation: bounce 0.6s ease;
}

.battle-result-title,
.battle-fail-title {
    font-size: 2rem;
    font-weight: 800;
    color: #FFD93D;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.battle-result-subtitle,
.battle-fail-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.battle-result-stats,
.battle-fail-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.battle-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
}

.battle-stat-icon {
    font-size: 1.5rem;
}

.battle-stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
}

.battle-stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.battle-result-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-bottom: 30px;
}

.score-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.score-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: #4ECDC4;
    text-shadow: 0 0 20px rgba(78, 205, 196, 0.5);
}

.battle-result-actions,
.battle-fail-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.battle-result-btn,
.battle-fail-btn {
    padding: 18px;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.battle-result-btn.primary,
.battle-fail-btn.primary {
    background: linear-gradient(135deg, #FF6B6B, #EE5A5A);
    color: white;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.4);
}

.battle-result-btn:not(.primary),
.battle-fail-btn:not(.primary) {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.battle-result-btn:active,
.battle-fail-btn:active {
    transform: scale(0.98);
}

/* 怪兽攻击emoji */
.monster-attack-emoji {
    position: absolute;
    font-size: 2rem;
    animation: monster-attack-fly 0.5s ease-out forwards;
    z-index: 60;
}

@keyframes monster-attack-fly {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translateY(200px) scale(0.8);
    }
}

/* 关卡过渡 */
.stage-transition {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.stage-transition.show {
    opacity: 1;
    pointer-events: auto;
}

.stage-transition-text {
    font-size: 2rem;
    font-weight: 800;
    color: #FFD93D;
    text-shadow: 0 0 20px rgba(255, 217, 61, 0.5);
    animation: stage-text-pop 0.5s ease;
}

.stage-transition-monster {
    font-size: 4rem;
    margin-top: 20px;
    animation: stage-monster-appear 0.6s ease;
}

.stage-transition-name {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 10px;
    animation: stage-name-appear 0.7s ease;
}

@keyframes stage-name-appear {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes stage-text-pop {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes stage-monster-appear {
    0% { transform: translateY(50px) scale(0.5); opacity: 0; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* 血量恢复特效 */
.hp-recover {
    animation: hp-recover-glow 0.5s ease;
}

@keyframes hp-recover-glow {
    0%, 100% { filter: drop-shadow(0 0 5px rgba(255, 0, 0, 0.5)); }
    50% { filter: drop-shadow(0 0 15px rgba(0, 255, 0, 0.8)); }
}

/* ===== 减少动画（辅助功能）===== */
@media (prefers-reduced-motion: reduce) {
    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
