/**
 * 英语单词智能学习平台 - 自定义样式
 * V2.0 Focus & Warmth Design System
 */

/* ============================================
   CSS 变量 - V2.0 配色系统
   ============================================ */

:root {
    /* 主色：珊瑚橙 */
    --coral-50: #fff5f5;
    --coral-100: #ffe0e0;
    --coral-200: #ffc0c0;
    --coral-300: #ff9999;
    --coral-400: #ff7f7f;
    --coral-500: #FF6B6B;
    --coral-600: #FF5252;
    --coral-700: #e64545;
    --coral-800: #cc3d3d;
    --coral-900: #b33535;
    
    /* 辅色：天空蓝 */
    --sky-50: #ecfeff;
    --sky-100: #cffafe;
    --sky-200: #a5f3fc;
    --sky-300: #67e8f9;
    --sky-400: #22d3ee;
    --sky-500: #45B7D1;
    --sky-600: #38B2AC;
    --sky-700: #2d9a94;
    --sky-800: #277d78;
    --sky-900: #206662;
    
    /* 背景与文字 */
    --warm-bg: #F7F9FC;
    --warm-text: #2D3436;
    --warm-text-light: #636e72;
    --warm-text-muted: #b2bec3;
    
    /* 成功/警告/错误 */
    --success: #22c55e;
    --warning: #f59e0b;
    --error: #ef4444;
    
    /* 圆角 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* 阴影 */
    --shadow-sm: 0 2px 8px rgba(45, 52, 54, 0.08);
    --shadow-md: 0 4px 20px rgba(45, 52, 54, 0.12);
    --shadow-lg: 0 8px 40px rgba(45, 52, 54, 0.16);
    --shadow-coral: 0 4px 20px rgba(255, 107, 107, 0.3);
    --shadow-sky: 0 4px 20px rgba(69, 183, 209, 0.3);
}

/* ============================================
   基础样式
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--warm-bg);
    color: var(--warm-text);
}

/* ============================================
   动画
   ============================================ */

@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

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

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes bounce-in {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.animate-scale-in {
    animation: scale-in 0.3s ease-out;
}

.animate-slide-up {
    animation: slide-up 0.3s ease-out;
}

.animate-slide-down {
    animation: slide-down 0.3s ease-out;
}

.animate-fade-in {
    animation: fade-in 0.3s ease-out;
}

.animate-bounce-in {
    animation: bounce-in 0.5s ease-out;
}

.animate-shake {
    animation: shake 0.5s ease-in-out;
}

/* ============================================
   单词卡片样式
   ============================================ */

.word-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.word-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.word-spelling {
    font-family: 'Georgia', serif;
    font-style: italic;
    letter-spacing: 0.02em;
}

.syllable-block {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 0.75rem;
    margin: 0 0.25rem;
    transition: transform 0.2s ease;
}

.syllable-block:hover {
    transform: scale(1.05);
}

.syllable-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: #15803d;
}

.syllable-phonetic {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.syllable-vowel {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.syllable-vowel .syllable-text {
    color: #b45309;
}

/* ============================================
   学习模式标签
   ============================================ */

.mode-tabs {
    display: flex;
    background: #f3f4f6;
    border-radius: 1rem;
    padding: 0.25rem;
    overflow: hidden;
}

.mode-tab {
    flex: 1;
    padding: 0.5rem 0.75rem;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%, 10px 50%);
    margin-left: -10px;
}

.mode-tab:first-child {
    margin-left: 0;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%);
    border-radius: 0.75rem 0 0 0.75rem;
}

.mode-tab:last-child {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 10px 50%);
    border-radius: 0 0.75rem 0.75rem 0;
}

.mode-tab.active {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
}

.mode-tab.completed {
    background: linear-gradient(135deg, #86efac 0%, #4ade80 100%);
    color: #166534;
}

/* ============================================
   录音按钮
   ============================================ */

.record-btn {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
}

.record-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5);
}

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

.record-btn.recording {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.record-btn.recording::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid #ef4444;
    animation: pulse-ring 1.5s ease-out infinite;
}

/* ============================================
   选项卡片
   ============================================ */

.option-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-card:hover {
    border-color: #22c55e;
    background: #f0fdf4;
}

.option-card.selected {
    border-color: #22c55e;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.2);
}

.option-card.correct {
    border-color: #22c55e;
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
}

.option-card.incorrect {
    border-color: #ef4444;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    animation: shake 0.5s ease-in-out;
}

/* ============================================
   进度条
   ============================================ */

.progress-bar {
    height: 0.5rem;
    background: #e5e7eb;
    border-radius: 1rem;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e 0%, #4ade80 100%);
    border-radius: 1rem;
    transition: width 0.5s ease;
}

/* ============================================
   Toast 提示
   ============================================ */

.toast {
    padding: 0.75rem 1.5rem;
    border-radius: 1rem;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: slide-down 0.3s ease-out;
}

.toast-success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.toast-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.toast-warning {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.toast-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

/* ============================================
   弹窗
   ============================================ */

.modal-overlay {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ============================================
   评分显示
   ============================================ */

.score-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 1.5rem;
    padding: 0 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.score-excellent {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.score-good {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.score-average {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.score-poor {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

/* ============================================
   雷达图容器
   ============================================ */

.radar-chart-container {
    position: relative;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

/* ============================================
   词库目录卡片
   ============================================ */

.category-card {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-card:hover {
    border-color: #22c55e;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.1);
    transform: translateX(4px);
}

.category-card.has-words {
    border-color: #22c55e;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.category-card.has-words:hover {
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.2);
}

/* ============================================
   词库卡片样式（首页）
   ============================================ */

.library-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 0.75rem;
}

.library-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.1);
}

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

.library-cover {
    width: 5rem;
    height: 5.5rem;
    border-radius: 0.75rem;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.library-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.library-cover-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.library-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.library-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.library-stats i {
    margin-right: 0.25rem;
    color: #3b82f6;
}

.library-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.progress-bar-sm {
    flex: 1;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill-sm {
    height: 100%;
    background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* ============================================
   单元卡片样式（词库详情页）
   ============================================ */

.unit-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.unit-card:hover {
    border-color: #22c55e;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.1);
}

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

.category-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-right: 1rem;
}

.category-info {
    flex: 1;
}

.category-name {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.category-count {
    font-size: 0.75rem;
    color: #6b7280;
}

.category-arrow {
    color: #9ca3af;
    font-size: 0.875rem;
}

/* ============================================
   响应式调整
   ============================================ */

/* 注意：学习页面的响应式布局已在页面内单独定义 */
/* 以下是其他页面的通用响应式样式 */
@media (min-width: 768px) {
    body.page-default {
        background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 50%, #fef3c7 100%);
    }
    
    /* 非学习页面的 #app 容器居中 */
    body.page-default #app {
        max-width: 480px;
        margin: 0 auto;
        min-height: 100vh;
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.1);
    }
}

/* ============================================
   滚动条美化
   ============================================ */

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* ============================================
   输入框聚焦效果
   ============================================ */

input:focus,
textarea:focus,
select:focus {
    outline: none;
}

/* ============================================
   按钮禁用状态
   ============================================ */

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   加载动画
   ============================================ */

.loading-spinner {
    width: 2rem;
    height: 2rem;
    border: 3px solid #e5e7eb;
    border-top-color: #22c55e;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   吉祥物
   ============================================ */

.mascot {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, #86efac 0%, #4ade80 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 2px 10px rgba(34, 197, 94, 0.3);
}

/* ============================================
   V2.0 听写控制台
   ============================================ */

.dictation-player {
    background: var(--warm-bg);
    min-height: 100vh;
}

.dictation-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border-left: 6px solid var(--coral-500);
    transition: all 0.3s ease;
}

.dictation-card:hover {
    box-shadow: var(--shadow-lg);
}

.dictation-word {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--warm-text);
    letter-spacing: 0.02em;
}

.dictation-phonetic {
    color: var(--warm-text-light);
    font-size: 1.25rem;
}

.dictation-meaning {
    font-size: 1.25rem;
    color: var(--warm-text);
    font-weight: 500;
}

/* 播放控制区 */
.player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 1.5rem;
}

.player-btn {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius-full);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.player-btn-prev,
.player-btn-next {
    background: var(--sky-100);
    color: var(--sky-600);
}

.player-btn-prev:hover,
.player-btn-next:hover {
    background: var(--sky-200);
    transform: scale(1.1);
}

.player-btn-play {
    width: 4.5rem;
    height: 4.5rem;
    background: linear-gradient(135deg, var(--coral-500) 0%, var(--coral-600) 100%);
    color: white;
    font-size: 1.5rem;
    box-shadow: var(--shadow-coral);
}

.player-btn-play:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 30px rgba(255, 107, 107, 0.4);
}

.player-btn-play:active {
    transform: scale(0.95);
}

/* 标记按钮 */
.mark-btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    border: 2px solid transparent;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mark-btn-wrong {
    background: var(--coral-100);
    color: var(--coral-600);
    border-color: var(--coral-200);
}

.mark-btn-wrong:hover {
    background: var(--coral-200);
    border-color: var(--coral-500);
}

.mark-btn-star {
    background: var(--sky-100);
    color: var(--sky-600);
    border-color: var(--sky-200);
}

.mark-btn-star:hover {
    background: var(--sky-200);
    border-color: var(--sky-500);
}

/* ============================================
   遮罩模式
   ============================================ */

.mask-mode .dictation-word {
    filter: blur(20px);
    user-select: none;
    transition: filter 0.3s ease;
}

.mask-mode .dictation-word:hover {
    filter: blur(10px);
}

.mask-mode .dictation-word.revealed {
    filter: blur(0);
}

.mask-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--warm-bg);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s ease;
}

.mask-toggle:hover {
    background: var(--sky-100);
}

.mask-toggle.active {
    background: var(--coral-500);
    color: white;
}

.mask-toggle-icon {
    font-size: 1.25rem;
}

/* ============================================
   记忆助手提示卡
   ============================================ */

.mnemonic-card {
    background: linear-gradient(135deg, var(--sky-50) 0%, var(--sky-100) 100%);
    border: 1px solid var(--sky-200);
    border-radius: var(--radius-lg);
    padding: 1rem;
}

.mnemonic-icon {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.mnemonic-text {
    color: var(--sky-800);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* ============================================
   V2.0 卡片样式
   ============================================ */

.card-v2 {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.card-v2:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-v2-coral {
    border-left: 4px solid var(--coral-500);
}

.card-v2-sky {
    border-left: 4px solid var(--sky-500);
}

/* ============================================
   V2.0 按钮样式
   ============================================ */

.btn-coral {
    background: linear-gradient(135deg, var(--coral-500) 0%, var(--coral-600) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-coral);
}

.btn-coral:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 107, 107, 0.4);
}

.btn-coral:active {
    transform: translateY(0);
}

.btn-sky {
    background: linear-gradient(135deg, var(--sky-500) 0%, var(--sky-600) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sky);
}

.btn-sky:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(69, 183, 209, 0.4);
}

.btn-outline-coral {
    background: transparent;
    color: var(--coral-500);
    border: 2px solid var(--coral-500);
    border-radius: var(--radius-lg);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-outline-coral:hover {
    background: var(--coral-50);
}

/* ============================================
   V2.0 播放设置面板
   ============================================ */

.settings-panel {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.settings-header {
    background: linear-gradient(135deg, var(--coral-500) 0%, var(--coral-600) 100%);
    color: white;
    padding: 1.25rem;
    font-weight: 600;
    font-size: 1.125rem;
}

.settings-section {
    padding: 1.25rem;
    border-bottom: 1px solid #f0f0f0;
}

.settings-label {
    font-weight: 500;
    color: var(--warm-text);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.settings-label i {
    color: var(--coral-500);
}

/* 发音选择 */
.accent-toggle {
    display: flex;
    background: #f5f5f5;
    border-radius: var(--radius-full);
    padding: 4px;
}

.accent-option {
    flex: 1;
    padding: 0.625rem 1rem;
    text-align: center;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.accent-option.active {
    background: var(--coral-500);
    color: white;
}

/* 间隔时间选择 */
.interval-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.interval-option {
    padding: 0.5rem 1rem;
    background: #f5f5f5;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.interval-option.active {
    background: var(--sky-500);
    color: white;
}

/* 重复次数选择 */
.repeat-options {
    display: flex;
    gap: 0.75rem;
}

.repeat-option {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-full);
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.repeat-option.active {
    background: var(--coral-500);
    color: white;
    box-shadow: var(--shadow-coral);
}

/* ============================================
   V2.0 完成动效
   ============================================ */

@keyframes confetti {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

.confetti-piece {
    position: fixed;
    width: 10px;
    height: 10px;
    animation: confetti 3s ease-out forwards;
}

@keyframes success-bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.success-animation {
    animation: success-bounce 0.5s ease;
}

/* ============================================
   V2.0 连胜火焰
   ============================================ */

.streak-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: linear-gradient(135deg, #ff9a56 0%, #ff6b6b 100%);
    color: white;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
}

.streak-badge i {
    animation: flicker 0.5s ease-in-out infinite alternate;
}

@keyframes flicker {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0.8; transform: scale(1.1); }
}

/* ============================================
   学习容器优化
   ============================================ */

.learn-container {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 52px);
    background: var(--warm-bg);
}

.learn-main {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 80px;
}
