/* ===== 小云英语 V6 — Claymorphism 游戏化设计 ===== */
:root {
    /* 主色调 - Claymorphism Rose */
    --bg: #FFF1F2;
    --bg-card: rgba(255, 255, 255, 0.92);
    --bg-warm: #FFEEF0;
    --bg-glass: rgba(255, 255, 255, 0.75);
    --primary: #E11D48;
    --primary-light: #FFE4E6;
    --primary-dark: #BE123C;
    --primary-glow: rgba(225, 29, 72, 0.35);
    --secondary: #FB7185;
    --secondary-light: #FFEEF1;
    --secondary-dark: #F43F5E;
    --secondary-glow: rgba(251, 113, 133, 0.35);
    --accent: #2563EB;
    --accent-light: #DBEAFE;
    --accent-dark: #1D4ED8;
    --accent-glow: rgba(37, 99, 235, 0.35);
    --purple: #A855F7;
    --purple-light: #F3E8FF;
    --purple-glow: rgba(168, 85, 247, 0.35);
    --blue: #3B82F6;
    --blue-light: #EFF6FF;
    --blue-glow: rgba(59, 130, 246, 0.35);
    --pink: #EC4899;
    --pink-light: #FDF2F8;
    --orange: #F97316;
    --orange-light: #FFF7ED;
    --text: #881337;
    --text-light: #9F1239;
    --text-lighter: #FDA4AF;
    --success: #22C55E;
    --success-light: #DCFCE7;
    --warning: #F59E0B;
    --warning-light: #FEF3C7;
    --danger: #DC2626;
    --danger-light: #FEE2E2;
    --border: #FECDD3;
    --glass-border: rgba(255, 255, 255, 0.55);
    --glass-blur: 20px;
    /* Claymorphism Shadows - 软3D效果 */
    --shadow-sm: 0 2px 4px rgba(136, 19, 55, 0.06), inset 0 -2px 4px rgba(255, 255, 255, 0.8);
    --shadow: 0 4px 8px rgba(136, 19, 55, 0.08), 0 -4px 8px rgba(255, 255, 255, 0.9), inset 0 2px 2px rgba(136, 19, 55, 0.05);
    --shadow-md: 0 8px 16px rgba(136, 19, 55, 0.10), 0 -8px 16px rgba(255, 255, 255, 0.95), inset 0 2px 4px rgba(136, 19, 55, 0.08);
    --shadow-lg: 0 12px 24px rgba(136, 19, 55, 0.12), 0 -12px 24px rgba(255, 255, 255, 1), inset 0 3px 6px rgba(136, 19, 55, 0.10);
    --shadow-glow: 0 0 20px var(--primary-glow), inset 0 -4px 8px rgba(255, 255, 255, 0.9);
    --shadow-clay: 0 8px 16px rgba(136, 19, 55, 0.12), 0 -8px 16px rgba(255, 255, 255, 0.9), inset 0 2px 4px rgba(136, 19, 55, 0.08), inset 0 -2px 4px rgba(255, 255, 255, 0.8);
    --radius-xs: 12px;
    --radius-sm: 20px;
    --radius: 28px;
    --radius-lg: 36px;
    --radius-full: 50px;
    --sidebar-width: 220px;
    --sidebar-collapsed-w: 72px;
    --font: 'Baloo 2', 'Comic Neue', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-fast: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-clay: all 0.2s ease-out;
    --z-base: 1;
    --z-card: 10;
    --z-sticky: 50;
    --z-sidebar: 100;
    --z-overlay: 200;
    --z-modal: 300;
    --z-toast: 400;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    height: 100%;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ===== 动画库 ===== */
@keyframes bounceIn { 0% { opacity:0; } 100% { opacity:1; } }
@keyframes bounce { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-8px); } }
@keyframes pulse { 0%,100% { transform:scale(1); } 50% { transform:scale(1.04); } }
@keyframes shake { 0%,100% { transform:translateX(0); } 25% { transform:translateX(-4px); } 75% { transform:translateX(4px); } }
@keyframes glow { 0%,100% { box-shadow:0 0 8px var(--primary-glow); } 50% { box-shadow:0 0 20px var(--primary-glow); } }
@keyframes float { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-6px); } }
@keyframes spin { from { transform:rotate(0deg); } to { transform:rotate(360deg); } }
@keyframes popIn { 0% { transform:scale(0.95); opacity: 0; } 100% { transform:scale(1); opacity: 1; } }
@keyframes hatch { 0% { transform:scale(1); } 30% { transform:scale(1.15); } 60% { transform:scale(.95); } 100% { transform:scale(1); } }
@keyframes wobble { 0%,100% { transform:rotate(0); } 15% { transform:rotate(3deg); } 30% { transform:rotate(-3deg); } 45% { transform:rotate(2deg); } 60% { transform:rotate(-2deg); } 75% { transform:rotate(1deg); } }
@keyframes sparkle { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:.7; transform:scale(1.1); } }
@keyframes shimmer { 0% { background-position:-200% 0; } 100% { background-position:200% 0; } }
@keyframes slideInRight { 0% { opacity:0.8; } 100% { opacity:1; } }
@keyframes slideInLeft { 0% { opacity:0.8; } 100% { opacity:1; } }
@keyframes fadeIn { 0% { opacity:0; } 100% { opacity:1; } }
@keyframes neonPulse { 0%,100% { box-shadow:0 0 8px var(--primary-glow); } 50% { box-shadow:0 0 16px var(--primary-glow); } }
@keyframes floatSlow { 0%,100% { transform:translate(0,0); } 33% { transform:translate(6px,-8px); } 66% { transform:translate(-4px,4px); } }
@keyframes countPop { 0% { transform:scale(1); } 50% { transform:scale(1.15); } 100% { transform:scale(1); } }
@keyframes glowPulse { 0%,100% { filter:brightness(1); } 50% { filter:brightness(1.08); } }
@keyframes gradientShift { 0% { background-position:0% 50%; } 50% { background-position:100% 50%; } 100% { background-position:0% 50%; } }

/* ===== 侧边栏 ===== */
.sidebar {
    position: fixed; left: 0; top: 0; bottom: 0;
    width: var(--sidebar-width);
    background: linear-gradient(180deg, rgba(255,241,242,0.95), rgba(255,236,238,0.95));
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-right: 3px solid var(--border);
    display: flex; flex-direction: column;
    z-index: var(--z-sidebar);
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar-top {
    padding: 16px 18px;
    border-bottom: 3px solid var(--border);
    text-align: center;
    position: relative;
}
.sidebar-logo { font-size: 48px; animation: wobble 4s ease-in-out infinite; }
.sidebar-title {
    font-size: 22px; font-weight: 800; color: var(--primary);
    letter-spacing: 2px;
    text-shadow: 0 0 12px var(--primary-glow);
    font-family: var(--font);
}
.sidebar-toggle {
    position: absolute; top: 16px; right: 12px;
    background: var(--primary-light); border: 2px solid var(--border);
    width: 32px; height: 32px; border-radius: var(--radius-xs);
    cursor: pointer; font-size: 12px; color: var(--primary);
    transition: var(--transition-clay);
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-clay);
}
.sidebar-toggle:hover {
    background: var(--primary);
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 0 12px var(--primary-glow);
}
.sidebar-toggle:active {
    transform: scale(0.95);
    box-shadow: var(--shadow-sm);
}
.sidebar-nav { flex: 1; padding: 12px 10px; display: flex; flex-direction: column; gap: 6px; }
.nav-item {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px; border: none; background: transparent;
    border-radius: var(--radius-sm); cursor: pointer;
    transition: var(--transition-clay); font-size: 17px; font-weight: 700;
    color: var(--text-light); width: 100%; text-align: left;
    position: relative; overflow: hidden;
    min-height: 48px;
}
.nav-item::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
    background: transparent; border-radius: 0 4px 4px 0; transition: var(--transition-fast);
}
.nav-icon-svg {
    width: 24px; height: 24px;
    flex-shrink: 0;
    transition: var(--transition-fast);
}
.nav-item:hover {
    background: var(--primary-light);
    color: var(--primary);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}
.nav-item.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff; font-weight: 800;
    box-shadow: var(--shadow-md), 0 0 16px var(--primary-glow);
    transform: translateX(4px) scale(1.02);
}
.nav-item.active::before { background: #fff; }
.nav-item.active .nav-icon-svg { stroke: #fff; }
.nav-label { white-space: nowrap; transition: opacity 0.2s; font-family: var(--font); }
.sidebar-bottom { padding: 14px; border-top: 3px solid var(--border); }
.sidebar-user {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 3px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.sidebar-avatar { font-size: 32px; }
.sidebar-username {
    font-size: 15px; font-weight: 700; color: var(--text);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-family: var(--font);
}

/* 侧边栏折叠 */
body.sidebar-collapsed .sidebar { width: var(--sidebar-collapsed-w); }
body.sidebar-collapsed .sidebar-title,
body.sidebar-collapsed .nav-label,
body.sidebar-collapsed .sidebar-username { display: none; }
body.sidebar-collapsed .sidebar-top { padding: 16px 10px; }
body.sidebar-collapsed .nav-item { justify-content: center; padding: 14px 10px; }
body.sidebar-collapsed .nav-icon-svg { width: 28px; height: 28px; }
body.sidebar-collapsed .main-content { margin-left: var(--sidebar-collapsed-w); }
body.sidebar-collapsed .sidebar-toggle svg { transform: rotate(180deg); }
body.sidebar-collapsed .sidebar-user { justify-content: center; padding: 12px 10px; }

/* ===== 主内容区域 ===== */
.main-content {
    margin-left: var(--sidebar-width);
    height: 100vh; overflow-y: auto; overflow-x: hidden;
    background: var(--bg);
    background-image:
        radial-gradient(ellipse at 15% 85%, rgba(225,29,72,0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 15%, rgba(37,99,235,0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(168,85,247,0.03) 0%, transparent 50%);
    transition: margin-left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== 屏幕切换 ===== */
.screen {
    display: none; flex-direction: column; min-height: 100vh;
    animation: fadeIn 0.25s ease-out;
}
.screen.active { display: flex; }
.screen-exit { opacity: 0; transition: opacity 0.15s ease-out; }
.screen-enter { animation: fadeIn 0.2s ease-out; }

/* ===== 启动画面 ===== */
.splash-content {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    height: 100vh; position: relative; overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 50%, var(--purple) 100%);
    background-size: 300% 300%;
    animation: gradientShift 10s ease infinite;
}
.splash-content::before {
    content: ''; position: absolute; width: 300px; height: 300px;
    border-radius: 50%; background: rgba(255,255,255,0.08);
    top: -60px; right: -80px; animation: floatSlow 8s ease-in-out infinite;
}
.splash-content::after {
    content: ''; position: absolute; width: 200px; height: 200px;
    border-radius: 50%; background: rgba(255,255,255,0.06);
    bottom: -40px; left: -60px; animation: floatSlow 10s ease-in-out infinite reverse;
}
.splash-logo {
    font-size: 110px; animation: wobble 4s ease-in-out infinite;
    margin-bottom: 24px; filter: drop-shadow(0 8px 20px rgba(0,0,0,0.15));
    position: relative; z-index: 1;
}
.splash-title {
    font-size: 52px; color: #fff; text-shadow: 2px 2px 0 rgba(0,0,0,0.1);
    margin-bottom: 14px; font-weight: 800; letter-spacing: 4px;
    position: relative; z-index: 1;
    font-family: var(--font);
}
.splash-subtitle {
    color: rgba(255,255,255,0.95); font-size: 22px;
    margin-bottom: 48px; font-weight: 700;
    position: relative; z-index: 1;
    font-family: var(--font);
}

/* ===== 通用按钮 ===== */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff; border: 3px solid rgba(255,255,255,0.3);
    padding: 18px 56px; border-radius: var(--radius-full);
    font-size: 22px; font-weight: 800; cursor: pointer;
    transition: var(--transition-clay);
    box-shadow: var(--shadow-clay), 0 0 16px var(--primary-glow);
    position: relative; z-index: 1; letter-spacing: 1px;
    font-family: var(--font);
}
.btn-primary:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: var(--shadow-lg), 0 0 28px var(--primary-glow);
}
.btn-primary:active {
    transform: translateY(0) scale(0.98);
    box-shadow: var(--shadow-sm);
}
.btn-glow { animation: glow 2.5s ease-in-out infinite; }
.btn-lg { padding: 20px 64px; font-size: 24px; }

.btn-secondary {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--bg-card); color: var(--text);
    border: 3px solid var(--border);
    padding: 16px 40px; border-radius: var(--radius-full);
    font-size: 18px; font-weight: 700; cursor: pointer;
    transition: var(--transition-clay);
    box-shadow: var(--shadow-sm);
    font-family: var(--font);
}
.btn-secondary svg { stroke: var(--text); }
.btn-secondary:hover {
    border-color: var(--primary); color: var(--primary);
    transform: scale(1.03);
    box-shadow: var(--shadow-md);
}
.btn-secondary:hover svg { stroke: var(--primary); }

.btn-back {
    display: flex; align-items: center; gap: 8px;
    background: var(--primary-light); border: 3px solid var(--border);
    color: var(--primary); font-size: 17px; font-weight: 700;
    cursor: pointer; padding: 12px 22px; border-radius: var(--radius-xs);
    transition: var(--transition-clay);
    box-shadow: var(--shadow-sm);
    font-family: var(--font);
}
.btn-back svg { stroke: var(--primary); }
.btn-back:hover {
    background: var(--primary); color: #fff;
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}
.btn-back:hover svg { stroke: #fff; }

.btn-icon {
    background: none; border: none;
    cursor: pointer; padding: 12px; border-radius: var(--radius-xs);
    transition: var(--transition-clay);
}
.btn-icon:hover {
    background: var(--primary-light);
    transform: scale(1.1);
}

/* ===== 屏幕通用 ===== */
.screen-content {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    height: 100vh; padding: 44px; text-align: center;
}
.screen-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 30px;
    background: linear-gradient(135deg, rgba(255,241,242,0.92), rgba(255,236,238,0.92));
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 3px solid var(--border);
    position: sticky; top: 0; z-index: var(--z-sticky);
}
.screen-title {
    display: flex; align-items: center; gap: 10px;
    font-size: 24px; font-weight: 800; color: var(--text);
    font-family: var(--font);
}
.screen-title svg { stroke: var(--text); }
.emoji-large { font-size: 88px; margin-bottom: 28px; animation: wobble 3s ease-in-out infinite; }
.hint-text { color: var(--text-light); margin-top: 12px; font-size: 18px; font-weight: 600; font-family: var(--font); }

/* ===== 输入框 ===== */
.input-name {
    width: 360px; padding: 18px 32px;
    border: 3px solid var(--border); border-radius: var(--radius-full);
    font-size: 24px; text-align: center; outline: none;
    margin: 22px 0; transition: var(--transition-clay);
    background: var(--bg-card); color: var(--text);
    box-shadow: var(--shadow-clay);
    font-family: var(--font);
}
.input-name:focus {
    border-color: var(--primary);
    box-shadow: var(--shadow-md), 0 0 0 6px rgba(225,29,72,0.1), 0 0 20px var(--primary-glow);
    transform: scale(1.02);
}
.input-name::placeholder { color: var(--text-lighter); }

/* ===== 精灵蛋选择 ===== */
.egg-choices { display: flex; gap: 32px; margin-top: 32px; flex-wrap: wrap; justify-content: center; }
.egg-option {
    display: flex; flex-direction: column; align-items: center;
    padding: 36px 32px; border-radius: var(--radius-lg);
    background: var(--bg-card); border: 3px solid var(--border);
    cursor: pointer; transition: var(--transition-clay); min-width: 140px;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    box-shadow: var(--shadow-clay);
}
.egg-option:hover {
    transform: translateY(-8px) scale(1.04);
    box-shadow: var(--shadow-lg), 0 0 28px var(--primary-glow);
    border-color: var(--primary); background: var(--primary-light);
}
.egg-option .egg-display { font-size: 68px; animation: float 3s ease-in-out infinite; }
.egg-option span { margin-top: 14px; font-size: 18px; color: var(--text); font-weight: 800; font-family: var(--font); }

/* ===== 首页仪表盘 ===== */
.home-top-bar {
    padding: 22px 30px;
    background: linear-gradient(135deg, rgba(255,241,242,0.9), rgba(255,236,238,0.9));
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 3px solid var(--border);
}
.home-greeting { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.user-name { font-weight: 800; font-size: 26px; color: var(--text); font-family: var(--font); }
.streak-badge {
    display: flex; align-items: center; gap: 6px;
    background: linear-gradient(135deg, var(--accent), #3B82F6);
    color: #fff; padding: 8px 20px; border-radius: var(--radius-full);
    font-size: 15px; font-weight: 700;
    box-shadow: var(--shadow-sm), 0 0 12px var(--accent-glow);
    border: 2px solid rgba(255,255,255,0.3);
}
.streak-badge svg { fill: #fff; }
.textbook-badge {
    display: flex; align-items: center; gap: 6px;
    background: linear-gradient(135deg, var(--purple-light), #E9D5FF);
    color: var(--purple); padding: 8px 18px; border-radius: var(--radius-full);
    font-size: 14px; font-weight: 700;
    border: 3px solid rgba(168, 85, 247, 0.25);
    box-shadow: var(--shadow-sm);
}
.textbook-badge svg { stroke: var(--purple); }
.home-dashboard {
    display: grid; grid-template-columns: 1fr 1.5fr;
    gap: 26px; padding: 26px 30px; flex: 1; align-items: start;
}

/* ===== 精灵卡片 ===== */
.dash-pet-section { display: flex; flex-direction: column; gap: 20px; }
.pet-card {
    background: var(--bg-card); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-clay); overflow: hidden;
    border: 3px solid var(--border);
    backdrop-filter: blur(var(--glass-blur)); -webkit-backdrop-filter: blur(var(--glass-blur));
}
.pet-area {
    background: linear-gradient(180deg, #FFE4E6 0%, #FFEEF1 100%);
    padding: 36px 28px; text-align: center; position: relative;
}
.pet-area::before { content: ''; position: absolute; top: 14px; left: 18px; width: 24px; height: 24px; background: rgba(225,29,72,0.1); border-radius: 50%; animation: sparkle 2s ease-in-out infinite; }
.pet-area::after { content: ''; position: absolute; top: 18px; right: 22px; width: 16px; height: 16px; background: rgba(37,99,235,0.1); border-radius: 50%; animation: sparkle 2.5s ease-in-out infinite 0.5s; }
.pet-container { position: relative; display: inline-block; margin: 12px 0 18px; }
.pet-emoji {
    font-size: 100px; display: block;
    animation: wobble 5s ease-in-out infinite;
    filter: drop-shadow(0 6px 12px rgba(136,19,55,0.1)) drop-shadow(0 0 20px rgba(225,29,72,0.15));
}
.pet-name-tag {
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,241,242,0.95));
    display: inline-block; padding: 6px 20px; border-radius: var(--radius-full);
    font-size: 16px; color: var(--text); font-weight: 800; margin-top: 10px;
    box-shadow: var(--shadow-sm);
    border: 3px solid var(--border);
    font-family: var(--font);
}
.pet-mood { font-size: 17px; color: var(--text-light); margin-top: 8px; font-weight: 700; font-family: var(--font); }
.pet-stats { max-width: 340px; margin: 0 auto; padding: 0 28px 28px; }
.stat-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.stat-label { font-size: 15px; color: var(--text-light); min-width: 60px; font-weight: 700; font-family: var(--font); }
.stat-track {
    flex: 1; height: 16px; background: rgba(255,236,238,0.6);
    border-radius: 8px; overflow: hidden;
    border: 3px solid var(--border);
    box-shadow: inset 0 2px 4px rgba(136, 19, 55, 0.08);
}
.stat-fill { height: 100%; border-radius: 8px; transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1); position: relative; }
.exp-fill {
    background: linear-gradient(90deg, #22C55E, #4ADE80);
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.35);
}
.stat-text { font-size: 15px; color: #16A34A; font-weight: 800; min-width: 45px; font-family: var(--font); }
.pet-energy-display {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    font-size: 17px; color: var(--accent); font-weight: 700;
    font-family: var(--font);
}

/* 今日目标 */
.daily-goal {
    padding: 22px 26px; background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-clay);
    border: 3px solid var(--border);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.daily-goal h3 {
    font-size: 17px; margin-bottom: 16px; font-weight: 800;
    display: flex; align-items: center; gap: 8px;
    font-family: var(--font);
    color: var(--text);
}
.daily-goal h3 svg { stroke: var(--primary); }
.goal-progress { display: flex; align-items: center; gap: 16px; }
.goal-track {
    flex: 1; height: 18px; background: rgba(255,236,238,0.6);
    border-radius: 9px; overflow: hidden;
    border: 3px solid var(--border);
    box-shadow: inset 0 2px 4px rgba(136, 19, 55, 0.08);
}
.goal-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    background-size: 200% 100%; animation: shimmer 4s ease-in-out infinite;
    border-radius: 9px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 12px var(--primary-glow);
}
#goal-text { font-size: 16px; color: var(--text-light); white-space: nowrap; font-weight: 700; font-family: var(--font); }

/* ===== 右侧操作区 ===== */
.dash-actions-section { display: flex; flex-direction: column; gap: 22px; }
.home-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.btn-action {
    display: flex; flex-direction: column; align-items: center;
    padding: 32px 24px; border-radius: var(--radius-lg);
    border: 3px solid transparent; cursor: pointer;
    transition: var(--transition-clay);
    box-shadow: var(--shadow-clay);
    position: relative; overflow: hidden;
    min-height: 120px;
}
.btn-action:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-lg), 0 0 24px var(--primary-glow);
}
.btn-action:active {
    transform: translateY(-2px) scale(0.98);
    box-shadow: var(--shadow-sm);
}
.btn-action::after {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.15) 50%, transparent 60%);
    transition: transform 0.5s;
}
.btn-action:hover::after { transform: translateX(30%); }
.btn-learn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    border-color: rgba(255,255,255,0.3);
}
.btn-review {
    background: linear-gradient(135deg, #22C55E, #4ADE80);
    color: #fff;
    border-color: rgba(255,255,255,0.3);
}
.btn-challenge {
    background: linear-gradient(135deg, var(--accent), #3B82F6);
    color: #fff;
    border-color: rgba(255,255,255,0.3);
}
.btn-book {
    background: linear-gradient(135deg, var(--purple), #C084FC);
    color: #fff;
    border-color: rgba(255,255,255,0.3);
}
.btn-action:hover.btn-learn { box-shadow: var(--shadow-lg), 0 0 28px var(--primary-glow); }
.btn-action:hover.btn-review { box-shadow: var(--shadow-lg), 0 0 28px rgba(34, 197, 94, 0.35); }
.btn-action:hover.btn-challenge { box-shadow: var(--shadow-lg), 0 0 28px var(--accent-glow); }
.btn-action:hover.btn-book { box-shadow: var(--shadow-lg), 0 0 28px var(--purple-glow); }
.btn-icon-svg {
    width: 36px; height: 36px;
    margin-bottom: 10px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}
.btn-label { font-size: 20px; font-weight: 800; letter-spacing: 1px; font-family: var(--font); }
.btn-count { font-size: 14px; opacity: 0.9; margin-top: 6px; font-weight: 600; }

/* ===== 快速统计 ===== */
.quick-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.qs-card {
    background: var(--bg-card); padding: 22px 16px;
    border-radius: var(--radius-sm); text-align: center;
    box-shadow: var(--shadow-clay);
    transition: var(--transition-clay);
    border: 3px solid var(--border);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.qs-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-md);
}
.qs-value {
    font-size: 32px; font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font);
}
.qs-label { font-size: 14px; color: var(--text-light); margin-top: 6px; font-weight: 700; font-family: var(--font); }

/* ===== 今日推荐单词 ===== */
.daily-word-card {
    background: var(--bg-card); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-clay);
    border: 3px solid var(--border);
    padding: 24px 26px; position: relative; overflow: hidden;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.daily-word-card::before { content: ''; position: absolute; top: -10px; right: 12px; width: 40px; height: 40px; background: var(--primary-light); border-radius: 50%; opacity: 0.4; }
.daily-word-header {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 16px; font-size: 16px; font-weight: 700;
    color: var(--text-light); font-family: var(--font);
}
.daily-word-header svg { stroke: var(--primary); }
.daily-word-body { display: flex; align-items: center; gap: 18px; }
.daily-word-emoji { font-size: 48px; flex-shrink: 0; animation: float 4s ease-in-out infinite; }
.daily-word-info { flex: 1; min-width: 0; }
.daily-word-en { font-size: 28px; font-weight: 900; color: var(--text); letter-spacing: 1px; font-family: var(--font); }
.daily-word-cn { font-size: 16px; color: var(--text-light); margin-top: 4px; font-weight: 600; }
.daily-word-status { font-size: 13px; padding: 4px 12px; border-radius: var(--radius-full); font-weight: 700; display: inline-block; margin-top: 6px; }
.daily-word-status.new-word { background: var(--accent-light); color: var(--accent); }
.daily-word-status.mastered-word { background: var(--success-light); color: #16A34A; }
.daily-word-status.learning-word { background: var(--blue-light); color: var(--blue); }
.btn-daily-speak {
    background: linear-gradient(135deg, var(--primary-light), #FECDD3);
    border: 3px solid var(--border);
    width: 48px; height: 48px; border-radius: var(--radius-xs);
    cursor: pointer; transition: var(--transition-clay);
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-sm);
}
.btn-daily-speak svg { stroke: var(--primary); }
.btn-daily-speak:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    transform: scale(1.1);
    box-shadow: 0 0 16px var(--primary-glow);
}
.btn-daily-speak:hover svg { stroke: #fff; }

/* ===== 精灵互动 ===== */
.pet-interactions { display: flex; justify-content: center; gap: 18px; padding: 16px 0 10px; }
.btn-interact {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    background: var(--bg-card); border: 3px solid var(--border);
    border-radius: var(--radius-sm); padding: 12px 20px;
    cursor: pointer; transition: var(--transition-clay);
    font-size: 13px; color: var(--text-light); font-weight: 700;
    box-shadow: var(--shadow-sm);
    min-width: 80px;
    min-height: 48px;
    font-family: var(--font);
}
.btn-interact:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
    transform: scale(1.08);
    box-shadow: var(--shadow-md);
}
.btn-interact:active { transform: scale(0.95); box-shadow: var(--shadow-sm); }
.interact-icon { width: 22px; height: 22px; }
.pet-reaction-text {
    text-align: center; font-size: 15px; color: var(--primary);
    font-weight: 700; min-height: 24px;
    font-family: var(--font);
}

/* ===== 最近成就 ===== */
.recent-achievements {
    background: var(--bg-card); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-clay);
    border: 3px solid var(--border);
    padding: 24px 26px;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.recent-achievements h3 {
    font-size: 17px; font-weight: 800; margin-bottom: 16px;
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font);
    color: var(--text);
}
.recent-achievements h3 svg { stroke: var(--primary); }
.achievement-list { display: flex; flex-direction: column; gap: 12px; }
.achievement-row {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--accent-light), rgba(219,234,254,0.8));
    border-radius: var(--radius-sm);
    border: 3px solid rgba(37, 99, 235, 0.2);
    box-shadow: var(--shadow-sm);
}
.achievement-row .ach-r-emoji { font-size: 32px; }
.achievement-row .ach-r-name { font-size: 16px; font-weight: 700; color: var(--text); flex: 1; font-family: var(--font); }
.achievement-row .ach-r-tag {
    font-size: 13px; padding: 4px 12px;
    background: linear-gradient(135deg, var(--accent), #3B82F6);
    color: #fff; border-radius: var(--radius-full); font-weight: 700;
}
.achievement-empty { text-align: center; padding: 18px; color: var(--text-lighter); font-size: 15px; font-weight: 600; font-family: var(--font); }
.btn-all-achievements {
    margin-top: 14px; width: 100%; padding: 12px;
    background: linear-gradient(135deg, var(--purple-light), #E9D5FF);
    border: 3px solid rgba(168, 85, 247, 0.2);
    border-radius: var(--radius-sm);
    font-size: 15px; font-weight: 700; color: var(--purple);
    cursor: pointer; transition: var(--transition-clay);
    box-shadow: var(--shadow-sm);
    font-family: var(--font);
}
.btn-all-achievements:hover {
    background: linear-gradient(135deg, var(--purple), #A855F7);
    color: #fff;
    border-color: var(--purple);
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

/* ===== 学习卡片 ===== */
.learn-layout { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px; }
.learn-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 48px 64px; background: var(--bg-card);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
    min-width: 520px; border: 2px solid var(--border);
    position: relative;
    backdrop-filter: blur(var(--glass-blur)); -webkit-backdrop-filter: blur(var(--glass-blur));
}
.learn-card::before { content: '\1F308'; position: absolute; top: -18px; left: 24px; font-size: 28px; }
.learn-card::after { content: '\1F4DD'; position: absolute; bottom: -14px; right: 28px; font-size: 24px; }
.learn-emoji {
    font-size: 120px; margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.12));
    line-height: 1;
}
.word-display { text-align: center; margin-bottom: 28px; position: relative; }
.word-main {
    font-size: 60px; font-weight: 900; color: var(--text);
    letter-spacing: 4px;
    text-shadow: 2px 2px 0 rgba(255,71,87,0.08);
}
.word-phonetic { font-size: 24px; color: var(--secondary); margin-top: 12px; font-weight: 600; }
.btn-speak {
    position: absolute; right: -65px; top: 50%; transform: translateY(-50%);
    background: linear-gradient(135deg, var(--primary-light), #FFD6D6);
    border: 2px solid var(--border); font-size: 26px;
    width: 54px; height: 54px; border-radius: 50%;
    cursor: pointer; transition: var(--transition);
}
.btn-speak:hover { background: linear-gradient(135deg, var(--primary), #FF6E7A); transform: translateY(-50%) scale(1.1); border-color: var(--primary); }
.word-meaning {
    background: linear-gradient(135deg, var(--secondary-light), rgba(212,255,245,0.8));
    padding: 20px 36px; border-radius: var(--radius);
    font-size: 30px; font-weight: 700; margin-bottom: 20px;
    animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid rgba(46,216,163,0.3); color: var(--text);
}
.word-example {
    background: linear-gradient(135deg, #FFF8F0, #FFEEDD);
    padding: 16px 28px; border-radius: var(--radius-sm);
    font-size: 18px; color: var(--text-light); line-height: 1.8;
    max-width: 440px;
    animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
    border: 2px dashed var(--border);
}
.word-example em { color: var(--primary); font-style: normal; font-weight: 700; }
.example-cn { display: block; font-size: 15px; color: var(--text-lighter); margin-top: 8px; font-weight: 600; line-height: 1.6; }
.example-row { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.example-row.hidden { display: none !important; }
.btn-speak-example { padding: 10px 14px; font-size: 16px; position: static; transform: none; }
.btn-speak-example:hover { transform: scale(1.1); }
.image-hint { font-size: 64px; margin-top: 18px; animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes floatEmoji { 0%,100% { transform:translateY(0) scale(1); } 50% { transform:translateY(-8px) scale(1.05); } }
.hidden { display: none !important; }

/* 下一词按钮 */
.learn-bottom-actions {
    margin-top: 20px;
    text-align: center;
}
.btn-skip-word {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--bg-card); color: var(--text-light);
    border: 3px solid var(--border); padding: 14px 36px;
    border-radius: var(--radius-full); font-size: 17px;
    font-weight: 700; cursor: pointer; transition: var(--transition-clay);
    box-shadow: var(--shadow-sm); font-family: var(--font);
}
.btn-skip-word svg { stroke: var(--text-light); }
.btn-skip-word:hover {
    border-color: var(--primary); color: var(--primary);
    transform: translateY(-3px) scale(1.03);
    box-shadow: var(--shadow-md);
}
.btn-skip-word:hover svg { stroke: var(--primary); }
.btn-skip-word:active {
    transform: translateY(0) scale(0.98);
    box-shadow: var(--shadow-sm);
}

/* 进度点 */
.progress-dots { display: flex; gap: 8px; align-items: center; }
.progress-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(240,224,216,0.6); transition: var(--transition); }
.progress-dot.done { background: var(--success); transform: scale(1.1); box-shadow: 0 0 6px rgba(0,230,118,0.4); }
.progress-dot.current { background: var(--primary); width: 14px; height: 14px; animation: pulse 1s ease-in-out infinite; box-shadow: 0 0 8px var(--primary-glow); }

/* 评分按钮 */
.learn-actions { padding: 32px; text-align: center; }
.rate-buttons { display: flex; gap: 18px; justify-content: center; animation: bounceIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.btn-rate {
    padding: 16px 32px; border: 3px solid transparent;
    border-radius: var(--radius-sm); font-size: 18px;
    cursor: pointer; transition: var(--transition); font-weight: 700;
    position: relative; overflow: hidden;
}
.btn-rate:hover { transform: translateY(-4px) scale(1.05); }
.btn-rate:active { transform: scale(0.95); }
.btn-hard {
    background: linear-gradient(135deg, #FFE8E8, #FFD6D6);
    color: var(--danger); border-color: rgba(255,71,87,0.2);
    box-shadow: 0 0 12px rgba(255,71,87,0.1);
}
.btn-hard:hover { background: linear-gradient(135deg, #FFD0D0, #FFB8B8); box-shadow: 0 0 20px rgba(255,71,87,0.25); }
.btn-ok {
    background: linear-gradient(135deg, #FFF4E6, #FFE8CC);
    color: #E67E22; border-color: rgba(255,169,77,0.2);
    box-shadow: 0 0 12px rgba(255,169,77,0.1);
}
.btn-ok:hover { background: linear-gradient(135deg, #FFE8CC, #FFD6A0); box-shadow: 0 0 20px rgba(255,169,77,0.25); }
.btn-easy {
    background: linear-gradient(135deg, #E8F9ED, #D0F0D8);
    color: #27AE60; border-color: rgba(46,216,163,0.2);
    box-shadow: 0 0 12px rgba(46,216,163,0.1);
}
.btn-easy:hover { background: linear-gradient(135deg, #D0F0D8, #B8E8C0); box-shadow: 0 0 20px rgba(46,216,163,0.25); }

/* ===== 学习拼写练习 ===== */
.spelling-practice {
    display: flex; flex-direction: column; align-items: center;
    padding: 32px; background: var(--bg-card);
    border-radius: var(--radius-lg); width: 100%; max-width: 480px;
    box-shadow: var(--shadow-clay); border: 3px solid var(--border);
    animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin-top: 20px;
}
.spelling-header {
    display: flex; align-items: center; gap: 10px;
    font-size: 18px; font-weight: 800; color: var(--primary);
    margin-bottom: 24px; font-family: var(--font);
}
.spelling-header svg { stroke: var(--primary); }
.spelling-hint-area {
    display: flex; flex-direction: column; align-items: center;
    gap: 16px; margin-bottom: 24px; width: 100%;
}
.spelling-emoji { font-size: 56px; animation: float 3s ease-in-out infinite; }
.spelling-meaning-text {
    font-size: 24px; font-weight: 700; color: var(--text);
    text-align: center; font-family: var(--font);
}
.btn-speak-spelling {
    display: flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, var(--primary-light), #FECDD3);
    border: 3px solid var(--border); padding: 14px 28px;
    border-radius: var(--radius-full); font-size: 16px;
    font-weight: 700; color: var(--primary); cursor: pointer;
    transition: var(--transition-clay); box-shadow: var(--shadow-sm);
    font-family: var(--font);
}
.btn-speak-spelling svg { stroke: var(--primary); }
.btn-speak-spelling:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff; transform: scale(1.05);
    box-shadow: var(--shadow-md), 0 0 16px var(--primary-glow);
}
.btn-speak-spelling:hover svg { stroke: #fff; }
.spelling-input-area {
    display: flex; gap: 16px; width: 100%;
    flex-wrap: wrap; justify-content: center;
}
.spelling-input {
    flex: 1; min-width: 200px; max-width: 320px;
    padding: 16px 24px; font-size: 20px; font-weight: 600;
    border: 3px solid var(--border); border-radius: var(--radius-sm);
    background: var(--bg-warm); color: var(--text);
    text-align: center; outline: none; transition: var(--transition-clay);
    box-shadow: var(--shadow-sm); font-family: var(--font);
}
.spelling-input:focus {
    border-color: var(--primary);
    box-shadow: var(--shadow-md), 0 0 0 6px rgba(225,29,72,0.1), 0 0 20px var(--primary-glow);
}
.spelling-input::placeholder { color: var(--text-lighter); }
.btn-spelling-confirm {
    padding: 16px 40px; background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: 3px solid rgba(255,255,255,0.3); border-radius: var(--radius-full);
    color: #fff; font-size: 18px; font-weight: 800; cursor: pointer;
    transition: var(--transition-clay); box-shadow: var(--shadow-clay);
    font-family: var(--font);
}
.btn-spelling-confirm:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: var(--shadow-lg), 0 0 20px var(--primary-glow);
}
.btn-spelling-confirm:active {
    transform: translateY(0) scale(0.98);
    box-shadow: var(--shadow-sm);
}
.spelling-feedback {
    padding: 24px; text-align: center; width: 100%;
    animation: bounceIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.spelling-result-icon { font-size: 48px; margin-bottom: 12px; }
.spelling-result-text { font-size: 18px; color: var(--text-light); margin-bottom: 20px; font-weight: 600; font-family: var(--font); }
.spelling-result-text.correct { color: var(--success); }
.spelling-result-text.wrong { color: var(--danger); }
.spelling-correct-word {
    font-size: 28px; font-weight: 900; color: var(--primary);
    display: block; margin-top: 8px; font-family: var(--font);
}

/* ===== 独立拼写练习页面 ===== */
.spelling-counter { font-size: 17px; color: var(--text-light); font-weight: 700; font-family: var(--font); }
.spelling-layout { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px; }
.spelling-practice-card {
    display: flex; flex-direction: column; align-items: center;
    padding: 48px; background: var(--bg-card);
    border-radius: var(--radius-lg); width: 100%; max-width: 520px;
    box-shadow: var(--shadow-clay); border: 3px solid var(--border);
    animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.spelling-practice-hint {
    display: flex; flex-direction: column; align-items: center;
    gap: 20px; margin-bottom: 32px; width: 100%;
}
.spelling-practice-emoji { font-size: 72px; animation: float 3s ease-in-out infinite; }
.spelling-practice-meaning {
    font-size: 28px; font-weight: 800; color: var(--text);
    text-align: center; font-family: var(--font);
}
.btn-speak-practice {
    display: flex; align-items: center; gap: 10px;
    background: linear-gradient(135deg, var(--primary-light), #FECDD3);
    border: 3px solid var(--border); padding: 18px 36px;
    border-radius: var(--radius-full); font-size: 18px;
    font-weight: 800; color: var(--primary); cursor: pointer;
    transition: var(--transition-clay); box-shadow: var(--shadow-sm);
    font-family: var(--font);
}
.btn-speak-practice svg { stroke: var(--primary); width: 24px; height: 24px; }
.btn-speak-practice:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff; transform: scale(1.05);
    box-shadow: var(--shadow-md), 0 0 20px var(--primary-glow);
}
.btn-speak-practice:hover svg { stroke: #fff; }
.spelling-practice-input-area {
    display: flex; gap: 16px; width: 100%;
    flex-wrap: wrap; justify-content: center;
}
.spelling-practice-input {
    flex: 1; min-width: 220px; max-width: 360px;
    padding: 18px 28px; font-size: 22px; font-weight: 700;
    border: 3px solid var(--border); border-radius: var(--radius-sm);
    background: var(--bg-warm); color: var(--text);
    text-align: center; outline: none; transition: var(--transition-clay);
    box-shadow: var(--shadow-sm); font-family: var(--font);
}
.spelling-practice-input:focus {
    border-color: var(--primary);
    box-shadow: var(--shadow-md), 0 0 0 6px rgba(225,29,72,0.1), 0 0 24px var(--primary-glow);
}
.spelling-practice-input::placeholder { color: var(--text-lighter); }
.btn-spelling-practice-confirm {
    padding: 18px 48px; background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: 3px solid rgba(255,255,255,0.3); border-radius: var(--radius-full);
    color: #fff; font-size: 20px; font-weight: 800; cursor: pointer;
    transition: var(--transition-clay); box-shadow: var(--shadow-clay);
    font-family: var(--font);
}
.btn-spelling-practice-confirm:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: var(--shadow-lg), 0 0 24px var(--primary-glow);
}
.btn-spelling-practice-confirm:active {
    transform: translateY(0) scale(0.98);
    box-shadow: var(--shadow-sm);
}
.spelling-practice-feedback {
    padding: 28px; text-align: center; width: 100%;
    animation: bounceIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.spelling-practice-result-icon { font-size: 56px; margin-bottom: 16px; }
.spelling-practice-result-text {
    font-size: 20px; color: var(--text-light); margin-bottom: 24px;
    font-weight: 700; font-family: var(--font);
}
.spelling-complete {
    padding: 48px; text-align: center;
    background: var(--bg-card); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-clay); border: 3px solid var(--border);
    animation: bounceIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.complete-emoji { font-size: 72px; animation: bounce 1s ease infinite; }
.spelling-stats {
    font-size: 22px; color: var(--text); margin: 24px 0;
    font-weight: 700; font-family: var(--font);
}

/* ===== 复习模式 ===== */
.review-layout { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px; }
.review-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: var(--bg-card); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md); padding: 48px 64px;
    min-width: 540px; border: 2px solid var(--border);
    position: relative;
    backdrop-filter: blur(var(--glass-blur)); -webkit-backdrop-filter: blur(var(--glass-blur));
}
.review-card::before { content: '\1F3AF'; position: absolute; top: -16px; right: 24px; font-size: 28px; }
.review-emoji {
    font-size: 100px; margin-bottom: 20px;
    filter: drop-shadow(0 6px 16px rgba(0,0,0,0.12));
    animation: floatEmoji 3s ease-in-out infinite;
    line-height: 1;
}
.review-question { font-size: 32px; font-weight: 800; margin-bottom: 40px; text-align: center; color: var(--text); }
.review-options { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; max-width: 500px; }
.review-option {
    padding: 20px 26px;
    background: linear-gradient(135deg, rgba(255,248,240,0.9), rgba(255,238,221,0.9));
    border: 3px solid var(--border); border-radius: var(--radius-sm);
    font-size: 19px; cursor: pointer; transition: var(--transition);
    text-align: center; font-weight: 600;
}
.review-option:hover { border-color: var(--primary); background: var(--primary-light); transform: scale(1.03); box-shadow: 0 0 12px var(--primary-glow); }
.review-option.correct {
    background: linear-gradient(135deg, #D4EDDA, #B8E8C0);
    border-color: var(--success); color: #27AE60;
    animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-weight: 700; box-shadow: 0 0 16px rgba(0,230,118,0.3);
}
.review-option.wrong {
    background: linear-gradient(135deg, #FFE8E8, #FFD6D6);
    border-color: var(--danger); color: var(--danger);
    animation: shake 0.5s ease;
    box-shadow: 0 0 16px rgba(255,71,87,0.3);
}
.review-counter { font-size: 17px; color: var(--text-light); font-weight: 700; }
.review-feedback {
    padding: 44px; text-align: center;
    animation: bounceIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: var(--bg-card); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md); min-width: 420px;
    border: 2px solid var(--border);
    backdrop-filter: blur(var(--glass-blur)); -webkit-backdrop-filter: blur(var(--glass-blur));
}
.feedback-icon { font-size: 64px; margin-bottom: 16px; }
.feedback-text { font-size: 20px; margin-bottom: 24px; color: var(--text-light); font-weight: 600; }

/* ===== 拼写挑战 ===== */
.spell-layout { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px; gap: 28px; }
.spell-area { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px; }
.spell-hint { font-size: 30px; color: var(--text); text-align: center; font-weight: 700; }
.spell-inputs { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; max-width: 520px; }
.spell-letter {
    width: 54px; height: 62px; border: 3px solid var(--border);
    border-radius: var(--radius-sm); font-size: 32px; font-weight: 800;
    text-align: center; line-height: 56px;
    background: var(--bg-card); transition: var(--transition);
}
.spell-letter.filled { border-color: var(--secondary); background: var(--secondary-light); transform: scale(1.05); box-shadow: 0 0 8px var(--secondary-glow); }
.spell-letter.correct { border-color: var(--success); background: linear-gradient(135deg, #D4EDDA, #B8E8C0); animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); box-shadow: 0 0 12px rgba(0,230,118,0.4); }
.spell-letter.wrong { border-color: var(--danger); background: linear-gradient(135deg, #FFE8E8, #FFD6D6); animation: shake 0.5s ease; box-shadow: 0 0 12px rgba(255,71,87,0.4); }
.spell-feedback { font-size: 22px; font-weight: 700; }
.timer {
    font-size: 22px; font-weight: 800; color: var(--danger);
    background: var(--danger-light); padding: 8px 18px;
    border-radius: var(--radius-full); border: 2px solid rgba(255,71,87,0.3);
}
.spell-keyboard {
    padding: 20px 24px; background: var(--bg-card);
    border-radius: var(--radius-lg); box-shadow: var(--shadow);
    border: 2px solid var(--border);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.keyboard-keys { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 640px; margin: 0 auto; }
.key-btn {
    width: 50px; height: 54px; border: 2px solid var(--border);
    border-radius: var(--radius-xs);
    background: linear-gradient(180deg, #FFF8F0, #FFEEDD);
    font-size: 20px; font-weight: 700; cursor: pointer;
    transition: var(--transition); color: var(--text);
}
.key-btn:hover { background: linear-gradient(135deg, var(--primary-light), #FFD6D6); border-color: var(--primary); transform: scale(1.08); box-shadow: 0 0 8px var(--primary-glow); }
.key-btn:active { transform: scale(0.95); }

/* ===== 单词本 ===== */
.unit-tabs {
    display: flex; padding: 10px 28px; gap: 8px;
    background: linear-gradient(135deg, rgba(255,255,255,0.85), rgba(255,248,240,0.85));
    border-bottom: 2px solid var(--border); overflow-x: auto; flex-wrap: nowrap;
}
.unit-tabs .tab { flex-shrink: 0; font-size: 13px; padding: 8px 16px; }
.filter-tabs {
    display: flex; padding: 14px 28px; gap: 12px;
    background: linear-gradient(135deg, rgba(255,255,255,0.85), rgba(255,248,240,0.85));
    border-bottom: 2px solid var(--border);
}
.tab {
    padding: 10px 24px; border: 3px solid transparent;
    border-radius: var(--radius-full); font-size: 16px; font-weight: 700;
    cursor: pointer; background: rgba(255,240,230,0.7);
    color: var(--text-light); white-space: nowrap; transition: var(--transition);
}
.tab:hover { background: #FFE6D6; transform: scale(1.03); }
.tab.active {
    background: linear-gradient(135deg, var(--primary), #FF6E7A);
    color: #fff; box-shadow: var(--shadow), 0 0 12px var(--primary-glow);
}
.wordbook-search { padding: 12px 28px; }
.wordbook-search input {
    width: 100%; padding: 12px 20px; border: 2px solid var(--border);
    border-radius: var(--radius-full); font-size: 16px; outline: none;
    background: var(--bg-card); color: var(--text);
    transition: var(--transition);
}
.wordbook-search input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(255,71,87,0.1), 0 0 16px var(--primary-glow); }
.wordbook-search input::placeholder { color: var(--text-lighter); }
.wordbook-list {
    flex: 1; overflow-y: auto; padding: 20px 28px;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 14px; align-content: start;
}
.wordbook-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 22px; background: var(--bg-card);
    border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
    transition: var(--transition); cursor: pointer;
    border: 2px solid var(--border);
}
.wordbook-item:hover { transform: translateY(-3px) scale(1.01); box-shadow: var(--shadow); border-color: rgba(255,71,87,0.3); }
.wordbook-item .wb-word { font-weight: 800; font-size: 18px; }
.wordbook-item .wb-meaning { font-size: 14px; color: var(--text-light); font-weight: 500; }
.wordbook-item .wb-unit { font-size: 11px; color: var(--text-lighter); margin-top: 2px; font-weight: 500; }
.wordbook-item .wb-status { font-size: 13px; padding: 5px 14px; border-radius: var(--radius-full); font-weight: 700; }
.wb-status.mastered { background: linear-gradient(135deg, #D4EDDA, #B8E8C0); color: #27AE60; }
.wb-status.learning { background: linear-gradient(135deg, #FFF4E6, #FFE8CC); color: #E67E22; }
.wb-status.new { background: rgba(240,232,228,0.6); color: var(--text-lighter); }

/* ===== 统计页面 ===== */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 26px 30px; }
.stat-card {
    background: var(--bg-card); padding: 30px 24px;
    border-radius: var(--radius-lg); text-align: center;
    box-shadow: var(--shadow-clay);
    transition: var(--transition-clay);
    border: 3px solid var(--border);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.stat-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-md);
}
.stat-number {
    font-size: 42px; font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font);
}
.stat-desc { font-size: 16px; color: var(--text-light); margin-top: 8px; font-weight: 700; font-family: var(--font); }
.stats-chart {
    margin: 0 30px; padding: 26px; background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-clay);
    border: 3px solid var(--border);
}
.stats-chart h3 {
    margin-bottom: 20px; font-size: 19px; font-weight: 800;
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font);
    color: var(--text);
}
.stats-chart h3 svg { stroke: var(--primary); }
.weekly-chart { display: flex; align-items: flex-end; justify-content: space-around; height: 160px; padding: 0 24px; }
.chart-bar-wrapper { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.chart-bar {
    width: 40px; border-radius: 10px 10px 0 0;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    transition: height 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    min-height: 6px; box-shadow: 0 -2px 12px var(--primary-glow);
}
.chart-label { font-size: 14px; color: var(--text-light); font-weight: 600; }
.stats-detail { padding: 24px 28px; }
.stats-detail h3 { margin-bottom: 18px; font-size: 18px; font-weight: 700; }

/* ===== 访问统计 ===== */
.visit-stats-section {
    margin: 0 30px; padding: 26px;
    background: var(--bg-card); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-clay); border: 3px solid var(--border);
}
.visit-stats-section h3 {
    margin-bottom: 20px; font-size: 19px; font-weight: 800;
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font);
    color: var(--text);
}
.visit-stats-section h3 svg { stroke: var(--accent); }
.visit-stats-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
    margin-bottom: 22px;
}
.visit-stat-card {
    background: linear-gradient(135deg, var(--blue-light), rgba(219,234,254,0.8));
    padding: 22px; border-radius: var(--radius-sm);
    text-align: center; border: 3px solid rgba(59,130,246,0.15);
    box-shadow: var(--shadow-sm);
}
.visit-stat-number {
    font-size: 36px; font-weight: 900;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font);
}
.visit-stat-desc { font-size: 15px; color: var(--text-light); margin-top: 6px; font-weight: 700; font-family: var(--font); }
.visit-chart-container {
    background: rgba(239,246,255,0.5); border-radius: var(--radius-sm);
    padding: 18px 22px; border: 3px solid rgba(59,130,246,0.1);
}
.chart-title { font-size: 15px; color: var(--text-light); font-weight: 700; margin-bottom: 14px; font-family: var(--font); }
.visit-bar {
    background: linear-gradient(180deg, var(--blue), var(--purple)) !important;
    box-shadow: 0 -2px 8px var(--blue-glow) !important;
}
.achievements { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.achievement {
    display: flex; flex-direction: column; align-items: center;
    padding: 22px 16px; background: var(--bg-card);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    text-align: center; transition: var(--transition-clay);
    border: 3px solid var(--border);
}
.achievement:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-md);
}
.achievement .ach-emoji { font-size: 40px; margin-bottom: 10px; }
.achievement .ach-name { font-size: 14px; color: var(--text-light); line-height: 1.5; font-weight: 700; font-family: var(--font); }
.achievement.locked { opacity: 0.35; filter: grayscale(0.5); }

/* ===== 统计详情 ===== */
.stats-detail { padding: 26px 30px; }
.stats-detail h3 {
    margin-bottom: 20px; font-size: 19px; font-weight: 800;
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font);
    color: var(--text);
}
.stats-detail h3 svg { stroke: var(--primary); }
.profile-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 28px; flex: 1; }
.profile-info {
    text-align: center; padding: 48px 36px;
    background: linear-gradient(135deg, rgba(255,240,230,0.8), rgba(255,232,214,0.8), rgba(224,255,249,0.8));
    border-radius: var(--radius-lg); box-shadow: var(--shadow);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    border: 2px solid var(--border);
}
.profile-avatar { font-size: 96px; margin-bottom: 16px; animation: wobble 3s ease-in-out infinite; }
.profile-name { font-size: 28px; font-weight: 800; color: var(--text); }
.profile-level { font-size: 18px; color: var(--text-light); margin-top: 6px; font-weight: 700; }
.profile-settings { display: flex; flex-direction: column; gap: 22px; }
.profile-textbook {
    background: var(--bg-card); padding: 28px;
    border-radius: var(--radius-lg); box-shadow: var(--shadow);
    border: 2px solid var(--border);
}
.profile-textbook h3 { margin-bottom: 16px; font-size: 18px; font-weight: 700; }
.profile-actions { padding: 24px; text-align: center; }
.textbook-progress-info {
    background: linear-gradient(135deg, var(--blue-light), rgba(214,238,255,0.8));
    padding: 16px 20px; border-radius: var(--radius-sm);
    font-size: 15px; font-weight: 700; color: var(--blue);
    border: 2px solid rgba(96,165,250,0.3); text-align: center;
}

/* ===== 教材选择 ===== */
.textbook-select { padding: 40px 28px; overflow-y: auto; }
.textbook-version-tabs {
    display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 8px;
    justify-content: center; padding: 4px 0;
}
.version-tab {
    padding: 8px 14px; border: 2px solid var(--border);
    border-radius: var(--radius-full); background: var(--bg-card);
    font-size: 13px; font-weight: 700; cursor: pointer;
    transition: var(--transition); color: var(--text);
}
.version-tab:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); transform: scale(1.05); }
.version-tab.active {
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--primary), #FF6E7A);
    color: #fff; box-shadow: var(--shadow), 0 0 12px var(--primary-glow);
}
.textbook-grid, .textbook-select-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
    margin-top: 24px; width: 100%; max-width: 560px;
}
.textbook-grade-group {
    background: var(--bg-card); border-radius: var(--radius-lg);
    padding: 20px; box-shadow: var(--shadow); border: 2px solid var(--border);
    transition: var(--transition);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.textbook-grade-group:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.textbook-grade-label { font-size: 20px; font-weight: 800; color: var(--primary); text-align: center; margin-bottom: 14px; }
.textbook-semester-btns { display: flex; gap: 12px; justify-content: center; }
.textbook-btn {
    padding: 14px 28px; border: 2px solid var(--border);
    border-radius: var(--radius-full); background: var(--bg-card);
    font-size: 17px; font-weight: 700; cursor: pointer;
    transition: var(--transition); color: var(--text); min-width: 80px;
}
.textbook-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); transform: scale(1.05); box-shadow: 0 0 12px var(--primary-glow); }
.textbook-btn.active {
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--primary), #FF6E7A);
    color: #fff; box-shadow: var(--shadow), 0 0 16px var(--primary-glow);
}
.textbook-btn.disabled {
    opacity: 0.45; cursor: not-allowed; pointer-events: auto;
    filter: grayscale(0.5);
}
.textbook-btn.disabled:hover { transform: none; box-shadow: none; border-color: var(--border); color: var(--text); background: var(--bg-card); }

/* ===== 庆祝页面 ===== */
.celebration {
    background: linear-gradient(135deg, #FF4757 0%, #FFD32A 30%, #2ED8A3 60%, #B388FF 100%);
    background-size: 300% 300%; animation: gradientShift 6s ease infinite;
    position: relative; overflow: hidden;
}
.celebration::before {
    content: ''; position: absolute; width: 320px; height: 320px;
    border-radius: 50%; background: rgba(255,255,255,0.1);
    top: -80px; right: -100px; animation: floatSlow 5s ease-in-out infinite;
}
.celebration::after {
    content: ''; position: absolute; width: 220px; height: 220px;
    border-radius: 50%; background: rgba(255,255,255,0.08);
    bottom: -40px; left: -60px; animation: floatSlow 7s ease-in-out infinite reverse;
}
.celebrate-emoji { font-size: 96px; animation: bounce 1s ease infinite; position: relative; z-index: 1; }
#celebrate-title { color: #fff; font-size: 36px; margin: 16px 0; font-weight: 800; text-shadow: 2px 2px 0 rgba(0,0,0,0.1); position: relative; z-index: 1; }
.celebrate-details { color: rgba(255,255,255,0.95); font-size: 22px; line-height: 1.8; margin-bottom: 24px; font-weight: 600; position: relative; z-index: 1; }
.pet-reaction { font-size: 72px; margin: 16px 0 36px; animation: hatch 0.8s ease; position: relative; z-index: 1; }

/* ===== Toast 通知 ===== */
.toast-container {
    position: fixed; bottom: 24px; right: 24px;
    display: flex; flex-direction: column-reverse; gap: 12px;
    z-index: var(--z-toast); pointer-events: none;
}
.toast {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 24px; border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-md); border: 2px solid var(--border);
    font-size: 15px; font-weight: 600; color: var(--text);
    pointer-events: auto;
    transform: translateX(120%); opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative; overflow: hidden;
}
.toast::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
}
.toast-info::before { background: var(--blue); }
.toast-success::before { background: var(--success); }
.toast-warning::before { background: var(--warning); }
.toast-error::before { background: var(--danger); }
.toast-icon { font-size: 20px; flex-shrink: 0; }
.toast-msg { flex: 1; }
.toast-show { transform: translateX(0); opacity: 1; }
.toast-hide { transform: translateX(120%); opacity: 0; }

/* ===== Modal 确认框 ===== */
.modal-overlay {
    position: fixed; inset: 0; z-index: var(--z-modal);
    background: rgba(45, 43, 85, 0.4); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content {
    background: rgba(255,255,255,0.95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg); padding: 36px 40px;
    box-shadow: var(--shadow-lg); border: 2px solid var(--border);
    text-align: center; min-width: 360px; max-width: 440px;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-overlay.active .modal-content { transform: scale(1) translateY(0); }
.modal-title { font-size: 22px; font-weight: 800; color: var(--text); margin-bottom: 12px; }
.modal-message { font-size: 16px; color: var(--text-light); margin-bottom: 28px; line-height: 1.6; font-weight: 500; }
.modal-actions { display: flex; gap: 16px; justify-content: center; }

/* ===== 设置模式隐藏侧边栏 ===== */
body.setup-mode .sidebar { display: none; }
body.setup-mode .main-content { margin-left: 0; }
body.setup-mode .screen.active { max-width: 100%; }

/* ===== 加载动画 ===== */
.loading { display: flex; align-items: center; justify-content: center; height: 100%; }
.loading::after {
    content: ''; width: 36px; height: 36px;
    border: 4px solid rgba(255,224,208,0.5); border-top-color: var(--primary);
    border-radius: 50%; animation: spin 0.8s linear infinite;
}

/* ===== 滚动条 ===== */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: rgba(255,236,238,0.5); border-radius: 6px; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #FECDD3, #FDA4AF); border-radius: 6px; border: 3px solid rgba(255,236,238,0.5); }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #FDA4AF, var(--primary)); }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .home-dashboard { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .achievements { grid-template-columns: repeat(3, 1fr); }
    .quick-stats { grid-template-columns: repeat(2, 1fr); }
    .learn-card, .review-card { min-width: auto; width: 100%; max-width: 540px; }
    .review-feedback { min-width: auto; width: 90%; max-width: 420px; }
}
@media (max-width: 768px) {
    :root { --sidebar-width: 0px; }
    .sidebar { display: none; }
    .main-content { margin-left: 0; }
    .home-actions { grid-template-columns: 1fr 1fr; }
    .textbook-grid, .textbook-select-grid { grid-template-columns: 1fr; }
    .profile-layout { grid-template-columns: 1fr; }
    .review-options { grid-template-columns: 1fr; }
    .splash-title { font-size: 38px; }
    .splash-logo { font-size: 85px; }
    .word-main { font-size: 42px; }
    .splash-subtitle { font-size: 19px; margin-bottom: 32px; }
    .btn-action { padding: 26px 20px; min-height: 100px; }
    .btn-icon-svg { width: 28px; height: 28px; }
}

/* ===== 无障碍 ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}
