/* ==================== 全局高级 UI 样式 v3.0 - 跨平台兼容版 ==================== */

/* CSS Reset & 跨浏览器兼容 */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}

/* 根变量 */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #8b5cf6;
    --accent: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --dark: #1e1b4b;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    --gradient-secondary: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-warm: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* iOS 安全区域 */
    --safe-area-top: env(safe-area-inset-top, 0px);
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
    --safe-area-left: env(safe-area-inset-left, 0px);
    --safe-area-right: env(safe-area-inset-right, 0px);
}

/* HTML & Body 基础 */
html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
    background: var(--gray-100);
    min-height: 100vh;
    min-height: -webkit-fill-available;
    color: var(--gray-900);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    padding-top: var(--safe-area-top);
    padding-bottom: var(--safe-area-bottom);
    padding-left: var(--safe-area-left);
    padding-right: var(--safe-area-right);
}

/* ========== 主题变量定义 ========== */

/* 深海蓝主题 */
body.theme-ocean {
    --primary: #0077b6;
    --primary-dark: #005f8f;
    --primary-light: #00b4d8;
    --secondary: #0096c7;
    --gradient-primary: linear-gradient(135deg, #0077b6 0%, #00b4d8 50%, #48cae4 100%);
    --gradient-secondary: linear-gradient(135deg, #023e8a 0%, #0077b6 100%);
    background: linear-gradient(180deg, #e8f4f8 0%, #f0f9ff 100%);
}

/* 森林绿主题 */
body.theme-forest {
    --primary: #2d6a4f;
    --primary-dark: #1b4332;
    --primary-light: #52b788;
    --secondary: #40916c;
    --gradient-primary: linear-gradient(135deg, #2d6a4f 0%, #52b788 50%, #74c69d 100%);
    --gradient-secondary: linear-gradient(135deg, #1b4332 0%, #2d6a4f 100%);
    background: linear-gradient(180deg, #e8f5e9 0%, #f0fdf4 100%);
}

/* 落日橙主题 */
body.theme-sunset {
    --primary: #f97316;
    --primary-dark: #ea580c;
    --primary-light: #fb923c;
    --secondary: #f59e0b;
    --gradient-primary: linear-gradient(135deg, #f97316 0%, #fb923c 50%, #fbbf24 100%);
    --gradient-secondary: linear-gradient(135deg, #c2410c 0%, #f97316 100%);
    background: linear-gradient(180deg, #fff7ed 0%, #fffbf5 100%);
}

/* 玫瑰粉主题 */
body.theme-rose {
    --primary: #db2777;
    --primary-dark: #be185d;
    --primary-light: #f472b6;
    --secondary: #ec4899;
    --gradient-primary: linear-gradient(135deg, #db2777 0%, #f472b6 50%, #f9a8d4 100%);
    --gradient-secondary: linear-gradient(135deg, #9d174d 0%, #db2777 100%);
    background: linear-gradient(180deg, #fdf2f8 0%, #fef7fb 100%);
}

/* 暗夜黑主题 */
body.theme-dark {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #8b5cf6;
    --gray-900: #f9fafb;
    --gray-800: #f3f4f6;
    --gray-700: #e5e7eb;
    --gray-600: #d1d5db;
    --gray-500: #9ca3af;
    --gray-400: #6b7280;
    --gray-300: #4b5563;
    --gray-200: #374151;
    --gray-100: #1f2937;
    --gray-50: #111827;
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    --gradient-secondary: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    background: linear-gradient(180deg, #111827 0%, #1f2937 100%);
    color: #f9fafb;
}

body.theme-dark .module-card,
body.theme-dark .stat-card,
body.theme-dark .progress-card,
body.theme-dark .goal-item,
body.theme-dark .settings-card,
body.theme-dark .word-card,
body.theme-dark .quiz-option,
body.theme-dark .sentence-card,
body.theme-dark .modal-content,
body.theme-dark .answer-option {
    background: rgba(31, 41, 55, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
}

body.theme-dark input,
body.theme-dark textarea,
body.theme-dark select {
    background: #374151;
    border-color: #4b5563;
    color: #f9fafb;
}

body.theme-dark .settings-page-title,
body.theme-dark .greeting,
body.theme-dark .streak-badge,
body.theme-dark .stat-value,
body.theme-dark .stat-label {
    color: #f9fafb;
}

body.theme-dark .theme-name {
    color: #d1d5db;
}

/* 薄荷青主题 */
body.theme-mint {
    --primary: #14b8a6;
    --primary-dark: #0d9488;
    --primary-light: #5eead4;
    --secondary: #2dd4bf;
    --gradient-primary: linear-gradient(135deg, #14b8a6 0%, #5eead4 50%, #99f6e4 100%);
    --gradient-secondary: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
    background: linear-gradient(180deg, #f0fdfa 0%, #f5fffe 100%);
}

/* 咖啡棕主题 */
body.theme-coffee {
    --primary: #92400e;
    --primary-dark: #78350f;
    --primary-light: #a16207;
    --secondary: #b45309;
    --gradient-primary: linear-gradient(135deg, #78350f 0%, #a16207 50%, #ca8a04 100%);
    --gradient-secondary: linear-gradient(135deg, #451a03 0%, #78350f 100%);
    background: linear-gradient(180deg, #fef3c7 0%, #fffbeb 100%);
}

/* 薰衣紫主题 */
body.theme-lavender {
    --primary: #7c3aed;
    --primary-dark: #6d28d9;
    --primary-light: #a78bfa;
    --secondary: #8b5cf6;
    --gradient-primary: linear-gradient(135deg, #7c3aed 0%, #a78bfa 50%, #c4b5fd 100%);
    --gradient-secondary: linear-gradient(135deg, #5b21b6 0%, #7c3aed 100%);
    background: linear-gradient(180deg, #f5f3ff 0%, #faf5ff 100%);
}

/* 确保100vh在移动端正确工作 */
@supports (-webkit-touch-callout: none) {
    body {
        min-height: -webkit-fill-available;
    }
}

/* 隐藏类 */
.hidden { display: none !important; }

/* 按钮基础样式 - 跨浏览器 */
button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* 输入框跨浏览器样式 */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0;
}

/* iOS 输入框聚焦时不缩放 */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    input[type="text"],
    input[type="number"],
    input[type="email"],
    input[type="password"],
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* Flexbox 兼容 */
.flex {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
}

/* 图片响应式 */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* SVG 兼容 */
svg {
    display: inline-block;
    vertical-align: middle;
}

/* ==================== 登录页面 ==================== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--dark);
    background-image: 
        radial-gradient(at 20% 80%, rgba(99, 102, 241, 0.4) 0px, transparent 50%),
        radial-gradient(at 80% 20%, rgba(139, 92, 246, 0.4) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(168, 85, 247, 0.2) 0px, transparent 70%);
}

.login-container {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 32px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    max-width: 420px;
    width: 100%;
    animation: slideUp 0.6s ease-out;
}

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

.login-logo {
    margin-bottom: 24px;
    animation: float 3s ease-in-out infinite;
}

.login-logo svg {
    filter: drop-shadow(0 8px 16px rgba(99, 102, 241, 0.3));
}

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

.login-container h1 {
    color: var(--gray-900);
    margin-bottom: 8px;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.login-subtitle { color: var(--gray-500); margin-bottom: 35px; font-size: 16px; }
.login-form { margin-bottom: 25px; }

.input-wrapper {
    position: relative;
    margin-bottom: 16px;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    transition: color 0.3s;
}

.input-wrapper:focus-within .input-icon {
    color: var(--primary);
}

.login-input {
    width: 100%;
    padding: 16px 20px 16px 48px;
    border: 2px solid var(--gray-200);
    border-radius: 16px;
    font-size: 16px;
    transition: all 0.3s;
    background: var(--gray-50);
}

.login-input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.login-btn {
    width: 100%;
    padding: 16px 24px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-btn:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.45);
}

.login-btn:active {
    transform: translateY(-1px);
}

.login-hint { color: var(--gray-400); font-size: 13px; margin-top: 20px; }

/* ==================== 激活结果弹窗 ==================== */
.activation-result-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.activation-result-modal.active {
    display: flex;
}

.activation-result-content {
    width: 100%;
    max-width: 360px;
    animation: resultPopIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes resultPopIn {
    0% { 
        opacity: 0;
        transform: scale(0.7) translateY(30px);
    }
    100% { 
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* 成功状态 */
.activation-success,
.activation-failure {
    display: none;
    background: white;
    border-radius: 28px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
}

.activation-success.show,
.activation-failure.show {
    display: block;
}

/* 成功图标 */
.success-icon {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
}

.success-icon svg {
    width: 100%;
    height: 100%;
    color: #10b981;
    position: relative;
    z-index: 2;
    animation: successCheck 0.6s ease 0.2s both;
}

@keyframes successCheck {
    0% { 
        stroke-dasharray: 100;
        stroke-dashoffset: 100;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% { 
        stroke-dasharray: 100;
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

.success-ring {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(52, 211, 153, 0.1) 100%);
    animation: ringPulse 2s ease infinite;
}

@keyframes ringPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.success-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.success-particles span {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    animation: particleBurst 0.8s ease forwards;
}

.success-particles span:nth-child(1) { top: 50%; left: 0; animation-delay: 0.3s; }
.success-particles span:nth-child(2) { top: 50%; right: 0; animation-delay: 0.35s; }
.success-particles span:nth-child(3) { top: 0; left: 50%; animation-delay: 0.4s; }
.success-particles span:nth-child(4) { bottom: 0; left: 50%; animation-delay: 0.45s; }
.success-particles span:nth-child(5) { top: 15%; left: 15%; animation-delay: 0.5s; }
.success-particles span:nth-child(6) { top: 15%; right: 15%; animation-delay: 0.55s; }
.success-particles span:nth-child(7) { bottom: 15%; left: 15%; animation-delay: 0.6s; }
.success-particles span:nth-child(8) { bottom: 15%; right: 15%; animation-delay: 0.65s; }

@keyframes particleBurst {
    0% { 
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% { 
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }
}

.activation-success h2 {
    font-size: 26px;
    font-weight: 800;
    color: #10b981;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.success-subtitle {
    font-size: 15px;
    color: var(--gray-500);
    margin-bottom: 24px;
}

.success-features {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 28px;
    padding: 16px;
    background: var(--gray-50);
    border-radius: 16px;
}

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

.feature-icon {
    font-size: 24px;
    animation: featureBounce 0.5s ease both;
}

.feature-item:nth-child(1) .feature-icon { animation-delay: 0.4s; }
.feature-item:nth-child(2) .feature-icon { animation-delay: 0.5s; }
.feature-item:nth-child(3) .feature-icon { animation-delay: 0.6s; }

@keyframes featureBounce {
    0% { transform: translateY(20px); opacity: 0; }
    60% { transform: translateY(-5px); }
    100% { transform: translateY(0); opacity: 1; }
}

.feature-item span:last-child {
    font-size: 12px;
    color: var(--gray-600);
    font-weight: 500;
}

.start-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35);
}

.start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.45);
}

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

/* 失败状态 */
.failure-icon {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
}

.failure-icon svg {
    width: 100%;
    height: 100%;
    color: #ef4444;
    position: relative;
    z-index: 2;
    animation: failureShake 0.5s ease 0.2s both;
}

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

.failure-ring {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(248, 113, 113, 0.1) 100%);
}

.activation-failure h2 {
    font-size: 26px;
    font-weight: 800;
    color: #ef4444;
    margin-bottom: 8px;
}

.failure-message {
    font-size: 15px;
    color: var(--gray-500);
    margin-bottom: 20px;
}

.failure-tips {
    text-align: left;
    background: #fef2f2;
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.failure-tips p {
    font-size: 14px;
    font-weight: 600;
    color: #ef4444;
    margin-bottom: 10px;
}

.failure-tips ul {
    margin: 0;
    padding-left: 20px;
}

.failure-tips li {
    font-size: 13px;
    color: #b91c1c;
    margin-bottom: 6px;
    line-height: 1.5;
}

.failure-tips li:last-child {
    margin-bottom: 0;
}

.retry-btn {
    width: 100%;
    padding: 16px 24px;
    background: var(--gray-100);
    color: var(--gray-700);
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.retry-btn:hover {
    background: var(--gray-200);
}

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

/* ==================== 主应用 ==================== */
.container {
    max-width: 500px;
    margin: 0 auto;
    background: var(--gray-100);
    min-height: 100vh;
    padding-bottom: 90px;
}

.header {
    background: var(--gradient-primary);
    color: white;
    padding: 30px 20px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%; right: -50%;
    width: 100%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.header h1 { font-size: 28px; font-weight: 800; position: relative; z-index: 1; }
.subtitle { opacity: 0.9; font-size: 15px; position: relative; z-index: 1; }

.main-content { padding: 20px; margin-top: -20px; position: relative; z-index: 2; }

/* ==================== 模块卡片 - 全新高级设计 ==================== */
.quick-start-section {
    margin-top: 24px;
}

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

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    color: var(--gray-800);
    margin: 0;
}

.section-title svg {
    color: var(--primary);
}

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

.module-card {
    background: white;
    border-radius: 20px;
    padding: 24px 18px 20px;
    text-align: left;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, rgba(168, 85, 247, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.4s;
}

.module-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.2);
}

.module-card:hover::before {
    opacity: 1;
}

.module-card:active { 
    transform: translateY(-4px) scale(0.98); 
}

/* 模块图标容器 - 精美渐变背景 */
.module-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.module-icon-wrapper svg {
    position: relative;
    z-index: 1;
}

.module-icon-wrapper.vocab-icon {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}
.module-icon-wrapper.vocab-icon svg { stroke: white; }

.module-icon-wrapper.listen-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}
.module-icon-wrapper.listen-icon svg { stroke: white; }

.module-icon-wrapper.speak-icon {
    background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.3);
}
.module-icon-wrapper.speak-icon svg { stroke: white; }

.module-icon-wrapper.read-icon {
    background: linear-gradient(135deg, #14b8a6 0%, #10b981 100%);
    box-shadow: 0 8px 20px rgba(20, 184, 166, 0.3);
}
.module-icon-wrapper.read-icon svg { stroke: white; }

.module-icon-wrapper.review-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}
.module-icon-wrapper.review-icon svg { stroke: white; }

.module-icon-wrapper.resource-icon {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}
.module-icon-wrapper.resource-icon svg { stroke: white; }

.module-card h3 { 
    color: var(--gray-800); 
    font-size: 16px; 
    margin-bottom: 4px; 
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.module-card p { 
    color: var(--gray-500); 
    font-size: 12px;
    margin: 0;
    position: relative;
    z-index: 1;
}

.module-arrow {
    position: absolute;
    right: 16px;
    bottom: 16px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.3s;
}

.module-arrow svg {
    color: var(--gray-500);
}

.module-card:hover .module-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ==================== 模态框 ==================== */
.modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--gray-100);
    z-index: 100;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.modal.active { transform: translateX(0); }

.modal-header {
    background: var(--gradient-primary);
    color: white;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: var(--shadow-md);
}

.back-btn {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 10px 18px;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.back-btn:hover { background: rgba(255,255,255,0.25); }
.modal-header h2 { flex: 1; font-size: 20px; font-weight: 700; }

/* ==================== 词汇卡片 ==================== */
.word-card {
    background: white;
    margin: 20px;
    border-radius: var(--radius-xl);
    padding: 40px 25px;
    text-align: center;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: all 0.3s;
}

.word-card:active { transform: scale(0.98); }
.word-main { font-size: 42px; font-weight: 800; color: var(--gray-900); margin-bottom: 12px; }
.word-phonetic { color: var(--gray-500); font-size: 20px; margin-bottom: 25px; }

.word-meaning {
    text-align: left;
    padding: 24px;
    background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
    border-radius: var(--radius-lg);
    margin-top: 20px;
    border: 1px solid var(--gray-200);
}

.meaning-cn { font-size: 22px; color: var(--gray-800); margin-bottom: 12px; font-weight: 600; }
.meaning-en { color: var(--gray-600); font-size: 15px; margin-bottom: 16px; line-height: 1.6; }
.word-example { color: var(--gray-500); font-size: 14px; font-style: italic; padding-top: 16px; border-top: 1px solid var(--gray-200); }

/* ==================== 操作按钮 ==================== */
.word-actions { padding: 0 20px 25px; }

.show-btn {
    width: 100%;
    padding: 18px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    transition: all 0.3s;
}

.show-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4); }

.rate-buttons { display: flex; gap: 12px; margin-top: 16px; }

.rate-btn {
    flex: 1;
    padding: 16px 12px;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.rate-btn:active { transform: scale(0.95); }
.rate-btn.hard { background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%); color: #dc2626; }
.rate-btn.medium { background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%); color: #d97706; }
.rate-btn.easy { background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%); color: #059669; }

/* ==================== 新版底部导航 ==================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 20px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.08);
    max-width: 500px;
    margin: 0 auto;
    border-radius: 24px 24px 0 0;
    z-index: 1000;
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-nav.hidden {
    transform: translateY(100%);
}

.bottom-nav .nav-indicator {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: var(--gray-300);
    border-radius: 2px;
    margin-top: 6px;
}

.nav-item {
    position: relative;
    background: none;
    border: none;
    padding: 8px 20px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--gray-400);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 16px;
    min-width: 70px;
}

.nav-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    transition: all 0.3s ease;
}

.nav-label {
    font-size: 11px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item.active .nav-icon-wrapper {
    background: rgba(99, 102, 241, 0.12);
    transform: scale(1.05);
}

.nav-item.active .nav-svg {
    stroke-width: 2.5;
}

.nav-item.active .nav-label {
    font-weight: 700;
}

.nav-item:hover:not(.active) {
    color: var(--gray-600);
}

.nav-item:hover:not(.active) .nav-icon-wrapper {
    background: var(--gray-100);
}

.nav-item:active {
    transform: scale(0.95);
}

/* ==================== 新版统计页面样式 ==================== */
.stats-content-new {
    padding: 20px;
    padding-bottom: 100px;
}

/* 总览卡片 */
.stats-overview-card {
    background: var(--gradient-primary);
    border-radius: 24px;
    padding: 24px;
    color: white;
    margin-bottom: 24px;
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.3);
}

.stats-overview-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.stats-avatar {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stats-avatar svg {
    stroke: white;
}

.stats-overview-info h3 {
    margin: 0 0 4px 0;
    font-size: 20px;
    font-weight: 700;
}

.stats-overview-info p {
    margin: 0;
    font-size: 14px;
    opacity: 0.85;
}

.stats-overview-numbers {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 16px;
}

.overview-stat {
    flex: 1;
    text-align: center;
}

.overview-value {
    display: block;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
}

.overview-label {
    display: block;
    font-size: 12px;
    opacity: 0.85;
    margin-top: 4px;
}

.overview-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.3);
}

/* 分类标题 */
.stats-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-800);
}

.section-icon {
    font-size: 20px;
}

/* 统计卡片网格 */
.stats-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.stat-card-new {
    background: white;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.stat-card-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.stat-card-new.vocabulary::before { background: var(--gradient-primary); }
.stat-card-new.listening::before { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.stat-card-new.speaking::before { background: linear-gradient(135deg, #ec4899, #be185d); }
.stat-card-new.reading::before { background: linear-gradient(135deg, #10b981, #047857); }

.stat-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-card-new.vocabulary .stat-card-icon { background: rgba(99, 102, 241, 0.1); color: var(--primary); }
.stat-card-new.listening .stat-card-icon { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.stat-card-new.speaking .stat-card-icon { background: rgba(236, 72, 153, 0.1); color: #ec4899; }
.stat-card-new.reading .stat-card-icon { background: rgba(16, 185, 129, 0.1); color: #10b981; }

.stat-card-icon svg {
    width: 24px;
    height: 24px;
}

.stat-card-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-card-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1;
}

.stat-card-label {
    font-size: 13px;
    color: var(--gray-500);
    font-weight: 500;
}

.stat-card-trend {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-card-trend.up {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.stat-card-trend.down {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.stat-card-trend svg {
    width: 16px;
    height: 16px;
}

/* 复习统计卡片 */
.review-stats-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.review-stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.review-stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.review-stat-icon.mastered { background: rgba(16, 185, 129, 0.1); }
.review-stat-icon.reviewing { background: rgba(245, 158, 11, 0.1); }
.review-stat-icon.pending { background: rgba(99, 102, 241, 0.1); }

.review-stat-info {
    display: flex;
    flex-direction: column;
}

.review-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
}

.review-stat-label {
    font-size: 12px;
    color: var(--gray-500);
}

.review-progress-bar {
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.review-progress-fill {
    height: 100%;
    background: var(--gradient-success);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.review-progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--gray-500);
}

.review-progress-text span:last-child {
    font-weight: 600;
    color: var(--success);
}

/* 操作按钮 */
.stats-actions {
    display: flex;
    gap: 12px;
}

.stats-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.stats-action-btn svg {
    width: 20px;
    height: 20px;
}

.stats-action-btn.export {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.stats-action-btn.export:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.stats-action-btn.reset {
    background: var(--gray-100);
    color: var(--gray-600);
    border: 2px solid var(--gray-200);
}

.stats-action-btn.reset:hover {
    background: var(--gray-200);
    border-color: var(--gray-300);
}

/* ==================== 听力模块 ==================== */
.listening-content { padding: 20px; }

.audio-card {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.transcript-card {
    background: white;
    border: 2px solid var(--success);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
}

/* ==================== 口语模块 ==================== */
.speaking-content { padding: 20px; }

.sentence-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.sentence-card p { font-size: 20px; line-height: 1.7; color: var(--gray-800); margin-bottom: 20px; }

/* ==================== 资源列表 ==================== */
.resource-list { background: var(--gray-50); border-radius: var(--radius-lg); padding: 12px; }

.exercise-item, .passage-item {
    padding: 18px;
    margin: 10px 0;
    background: white;
    border-radius: var(--radius);
    cursor: pointer;
    border-left: 4px solid var(--primary);
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

.exercise-item:hover, .passage-item:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow);
}

/* ==================== 反馈样式 ==================== */
.answer-feedback, .q-feedback { padding: 15px; border-radius: var(--radius); margin-top: 15px; }
.answer-feedback.correct, .q-feedback.correct { background: #d1fae5; color: #065f46; }
.answer-feedback.incorrect, .q-feedback.incorrect { background: #fee2e2; color: #991b1b; }

/* ==================== 通用按钮 ==================== */
.check-btn, .submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.check-btn:hover, .submit-btn:hover { transform: translateY(-2px); }

/* ==================== 问题块 ==================== */
.question-block { background: white; padding: 20px; border-radius: var(--radius-lg); margin-bottom: 15px; box-shadow: var(--shadow-sm); }
.options label { display: block; padding: 14px 18px; margin: 10px 0; background: var(--gray-50); border-radius: var(--radius); cursor: pointer; transition: all 0.2s; border: 2px solid transparent; }
.options label:hover { background: rgba(99, 102, 241, 0.05); border-color: var(--primary-light); }

/* ==================== 录音按钮 ==================== */
#recordBtn {
    padding: 20px 40px;
    background: var(--gradient-warm);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
    transition: all 0.3s;
}

#recordBtn:hover { transform: scale(1.05); }

/* ==================== 得分圆圈 ==================== */
#scoreCircle {
    width: 100px; height: 100px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    color: white;
    background: var(--gradient-success);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

/* ==================== 今日目标区域 ==================== */
.daily-goals-section {
    background: white;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.1);
}

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

.goals-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.goals-icon {
    font-size: 24px;
}

.goals-title h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
}

.goals-edit-btn {
    background: linear-gradient(180deg, #f8f7ff 0%, #f1f5f9 100%);
    border: 2px solid rgba(99, 102, 241, 0.2);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.goals-edit-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.goals-progress-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.goal-progress-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.goal-progress-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: linear-gradient(180deg, #f8f7ff 0%, #f1f5f9 100%);
}

.goal-progress-info {
    flex: 1;
    min-width: 0;
    width: 100%;
}

.goal-progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    width: 100%;
}

.goal-progress-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
}

.goal-progress-count {
    font-size: 13px;
    color: var(--gray-500);
}

.goal-progress-bar {
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
}

.goal-progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.goal-progress-fill.vocabulary { background: var(--gradient-primary); }
.goal-progress-fill.listening { background: var(--gradient-secondary); }
.goal-progress-fill.speaking { background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%); }
.goal-progress-fill.reading { background: linear-gradient(135deg, #14b8a6 0%, #10b981 100%); }
.goal-progress-fill.review { background: var(--gradient-warm); }

.goals-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
}

.goals-stats span {
    font-size: 14px;
    color: var(--gray-500);
}

#goalsTotalProgress {
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==================== 目标设置弹窗 ==================== */
.goal-settings-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.goal-settings-modal.active {
    display: flex;
}

.goal-settings-content {
    background: white;
    border-radius: 24px;
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: fadeIn 0.3s ease;
}

.goal-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: var(--gradient-primary);
    border-radius: 24px 24px 0 0;
}

.goal-settings-header h3 {
    margin: 0;
    color: white;
    font-size: 20px;
    font-weight: 700;
}

.goal-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.goal-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.goal-settings-body {
    padding: 24px;
}

.goal-settings-tip {
    background: linear-gradient(180deg, #fef3c7 0%, #fde68a 100%);
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    color: #92400e;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
}

.goal-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--gray-50);
    border-radius: 14px;
    margin-bottom: 12px;
    transition: all 0.3s;
}

.goal-item:hover {
    background: var(--gray-100);
}

.goal-item-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.goal-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.goal-item-icon.vocab {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
}
.goal-item-icon.vocab svg { stroke: #7c3aed; }

.goal-item-icon.listen {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}
.goal-item-icon.listen svg { stroke: #2563eb; }

.goal-item-icon.speak {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
}
.goal-item-icon.speak svg { stroke: #db2777; }

.goal-item-icon.read {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}
.goal-item-icon.read svg { stroke: #059669; }

.goal-item-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
}

.goal-item-input {
    display: flex;
    align-items: center;
    gap: 8px;
}

.goal-item-input input {
    width: 70px;
    padding: 10px 12px;
    border: 2px solid var(--primary);
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    text-align: center;
    outline: none;
    transition: all 0.3s ease;
}

.goal-item-input input:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.goal-item-unit {
    font-size: 14px;
    color: var(--gray-500);
    min-width: 24px;
}

.goal-settings-footer {
    display: flex;
    gap: 12px;
    padding: 0 24px 24px;
}

.goal-save-btn {
    flex: 2;
    padding: 16px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.goal-save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.goal-reset-btn {
    width: 56px;
    height: 56px;
    padding: 0;
    background: white;
    color: var(--gray-500);
    border: 2px solid var(--gray-200);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.goal-reset-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

/* ==================== 设置页面新样式 ==================== */
.settings-content {
    padding: 0;
    padding-bottom: 100px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* 设置标签页导航 */
.settings-tabs {
    display: flex;
    background: white;
    padding: 12px 16px;
    gap: 8px;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 56px;
    z-index: 5;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.settings-tabs::-webkit-scrollbar {
    display: none;
}

.settings-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 16px;
    border-radius: 12px;
    background: var(--gray-50);
    border: 2px solid transparent;
    color: var(--gray-500);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.settings-tab-icon {
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.settings-tab-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: transform 0.2s ease;
}

.settings-tab:hover .settings-tab-icon svg {
    transform: scale(1.1);
}

.settings-tab.active .settings-tab-icon svg {
    filter: drop-shadow(0 2px 4px rgba(99, 102, 241, 0.3));
}

.settings-tab.active {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.settings-tab:hover:not(.active) {
    background: var(--gray-100);
}

/* 设置面板 */
.settings-panel {
    display: none;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.settings-panel.active {
    display: block;
}

/* 设置卡片 - 现代风格 */
.settings-card-modern {
    background: white;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.settings-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.settings-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.settings-card-icon.theme-icon {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.settings-card-icon.study-icon {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.settings-card-icon.audio-icon {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
}

.settings-card-icon.speed-icon {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

.settings-card-icon.data-icon {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
}

.settings-card-icon.storage-icon {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
}

.settings-card-icon.link-icon {
    background: linear-gradient(135deg, #ccfbf1 0%, #99f6e4 100%);
}

/* 新版设置标签图标容器 */
.settings-tab-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.settings-tab-icon-wrap svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    transition: transform 0.2s ease;
}

.settings-tab-icon-wrap.general {
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.15) 0%, rgba(234, 179, 8, 0.15) 100%);
    color: #ca8a04;
}

.settings-tab-icon-wrap.audio {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    color: #9333ea;
}

.settings-tab-icon-wrap.data {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(16, 185, 129, 0.15) 100%);
    color: #16a34a;
}

.settings-tab-icon-wrap.about {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(99, 102, 241, 0.15) 100%);
    color: #3b82f6;
}

.settings-tab:hover .settings-tab-icon-wrap {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.settings-tab.active .settings-tab-icon-wrap {
    transform: scale(1.05);
}

.settings-tab.active .settings-tab-icon-wrap.general {
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.25) 0%, rgba(234, 179, 8, 0.25) 100%);
    box-shadow: 0 4px 16px rgba(234, 179, 8, 0.25);
}

.settings-tab.active .settings-tab-icon-wrap.audio {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.25) 0%, rgba(139, 92, 246, 0.25) 100%);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.25);
}

.settings-tab.active .settings-tab-icon-wrap.data {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.25) 0%, rgba(16, 185, 129, 0.25) 100%);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.25);
}

.settings-tab.active .settings-tab-icon-wrap.about {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(99, 102, 241, 0.25) 100%);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.25);
}

/* 新版设置卡片图标 */
.settings-card-icon-new {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.settings-card-icon-new svg {
    width: 26px;
    height: 26px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
}

.settings-card-icon-new.theme {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #ca8a04;
    box-shadow: 0 4px 12px rgba(234, 179, 8, 0.2);
}

.settings-card-icon-new.study {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #2563eb;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.settings-card-icon-new.audio {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    color: #7c3aed;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.settings-card-icon-new.speed {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #059669;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.settings-card-icon-new.backup {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    color: #db2777;
    box-shadow: 0 4px 12px rgba(219, 39, 119, 0.2);
}

.settings-card-icon-new.storage {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    color: #4f46e5;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.settings-card-icon-new.link {
    background: linear-gradient(135deg, #ccfbf1 0%, #99f6e4 100%);
    color: #0d9488;
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.2);
}

.settings-card-icon-new.avatar {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    color: #db2777;
    box-shadow: 0 4px 12px rgba(219, 39, 119, 0.2);
}

/* ==================== 头像设置样式 ==================== */
.avatar-setting-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    background: var(--gray-50);
    border-radius: 16px;
}

.current-avatar-preview {
    position: relative;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    cursor: pointer;
}

.avatar-preview-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    transition: transform 0.3s ease;
}

.current-avatar-preview:hover .avatar-preview-inner {
    transform: scale(1.05);
}

.avatar-preview-inner .avatar-emoji {
    font-size: 32px;
}

.avatar-preview-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-edit-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.avatar-edit-badge svg {
    width: 12px;
    height: 12px;
    stroke: var(--primary);
}

.avatar-setting-info {
    flex: 1;
}

.avatar-setting-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-800);
}

.avatar-setting-desc {
    display: block;
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 2px;
}

.avatar-change-btn {
    padding: 8px 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.avatar-change-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* ==================== 简洁头像选择弹窗 ==================== */
.avatar-picker-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.avatar-picker-modal.active {
    display: flex;
}

.avatar-picker-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.avatar-picker-simple {
    position: relative;
    width: 100%;
    max-width: 320px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: popIn 0.25s ease;
}

@keyframes popIn {
    from { 
        opacity: 0;
        transform: scale(0.9);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

.avatar-picker-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-100);
}

.avatar-picker-title span {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-900);
}

.avatar-close-btn {
    width: 28px;
    height: 28px;
    background: var(--gray-100);
    border: none;
    border-radius: 50%;
    font-size: 14px;
    color: var(--gray-500);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.avatar-close-btn:hover {
    background: var(--gray-200);
    color: var(--gray-700);
}

.avatar-options-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    padding: 16px;
}

.avatar-option {
    width: 100%;
    aspect-ratio: 1;
    background: var(--gray-50);
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-option:hover {
    background: var(--gray-100);
    transform: scale(1.1);
}

.avatar-option.selected {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.avatar-option[data-type="scene"] {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    border-color: #38bdf8;
}

.avatar-option[data-type="scene"]:hover {
    background: linear-gradient(135deg, #bae6fd 0%, #7dd3fc 100%);
}

.avatar-option[data-type="scene"].selected {
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2);
}

.avatar-scene-icon {
    font-size: 22px;
}

/* 首页头像图标可点击样式 */
.scene-icon-ring {
    cursor: pointer;
    transition: all 0.3s ease;
}

.scene-icon-ring:hover {
    transform: scale(1.08);
}

.scene-icon-ring:active {
    transform: scale(0.95);
}

/* 自定义头像在图标环内的样式 */
.scene-icon .custom-avatar {
    font-size: 28px;
    line-height: 1;
}

.avatar-emoji-option {
    width: 100%;
    aspect-ratio: 1;
    background: var(--gray-50);
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-emoji-option:hover {
    background: var(--gray-100);
    transform: scale(1.1);
}

.avatar-emoji-option.selected {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

/* 图片裁剪区域 */
.avatar-crop-section {
    padding: 16px 20px;
    border-top: 1px solid var(--gray-100);
}

.avatar-crop-section.hidden {
    display: none;
}

.avatar-crop-section h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
}

.avatar-crop-container {
    display: flex;
    justify-content: center;
    padding: 16px;
    background: var(--gray-900);
    border-radius: 16px;
    margin-bottom: 12px;
}

.avatar-crop-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
    overflow: hidden;
    border-radius: 50%;
    border: 3px solid white;
}

#avatarCropImage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    cursor: move;
    transition: transform 0.1s ease;
}

.avatar-crop-circle {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 2000px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.avatar-crop-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.crop-control-btn {
    width: 40px;
    height: 40px;
    background: var(--gray-100);
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.crop-control-btn svg {
    width: 20px;
    height: 20px;
    stroke: var(--gray-700);
}

.crop-control-btn:hover {
    background: var(--gray-200);
}

#avatarZoomSlider {
    width: 120px;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--gray-200);
    border-radius: 3px;
    outline: none;
}

#avatarZoomSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
}

.avatar-crop-actions {
    display: flex;
    gap: 12px;
}

.crop-cancel-btn,
.crop-confirm-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.crop-cancel-btn {
    background: var(--gray-100);
    color: var(--gray-700);
}

.crop-cancel-btn:hover {
    background: var(--gray-200);
}

.crop-confirm-btn {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    color: white;
}

.crop-confirm-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* 底部保存按钮 */
.avatar-picker-footer {
    padding: 16px 20px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--gray-100);
}

.avatar-save-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.avatar-save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.settings-card-modern:hover .settings-card-icon-new {
    transform: scale(1.05) rotate(-3deg);
}

.settings-card-title h4 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--gray-900);
}

.settings-card-title p {
    margin: 4px 0 0 0;
    font-size: 13px;
    color: var(--gray-500);
}

/* 设置列表 */
.settings-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: var(--gray-50);
    border-radius: 12px;
    transition: background 0.2s ease;
}

.setting-row:hover {
    background: var(--gray-100);
}

.setting-info {
    flex: 1;
}

.setting-name {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 2px;
}

.setting-desc {
    display: block;
    font-size: 12px;
    color: var(--gray-500);
}

/* 现代开关样式 */
.toggle-modern {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
}

.toggle-modern input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-track {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gray-300);
    border-radius: 28px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toggle-thumb {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-modern input:checked + .toggle-track {
    background: var(--gradient-primary);
}

.toggle-modern input:checked + .toggle-track .toggle-thumb {
    transform: translateX(24px);
}

.toggle-modern input:focus + .toggle-track {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* 主题选择器 */
.theme-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.theme-option {
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.theme-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.theme-preview {
    width: 100%;
    aspect-ratio: 4/5;
    border-radius: 10px;
    overflow: hidden;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.theme-preview-header {
    height: 25%;
}

.theme-preview-content {
    height: 75%;
}

.theme-preview.default-theme .theme-preview-header {
    background: var(--gradient-primary);
}
.theme-preview.default-theme .theme-preview-content {
    background: #f3f4f6;
}

.theme-preview.light-theme .theme-preview-header {
    background: #3b82f6;
}
.theme-preview.light-theme .theme-preview-content {
    background: #ffffff;
}

.theme-preview.dark-theme .theme-preview-header {
    background: #1f2937;
}
.theme-preview.dark-theme .theme-preview-content {
    background: #111827;
}

/* 深海蓝主题预览 */
.theme-preview.ocean-theme .theme-preview-header {
    background: linear-gradient(135deg, #0077b6 0%, #00b4d8 100%);
}
.theme-preview.ocean-theme .theme-preview-content {
    background: #e8f4f8;
}

/* 森林绿主题预览 */
.theme-preview.forest-theme .theme-preview-header {
    background: linear-gradient(135deg, #2d6a4f 0%, #52b788 100%);
}
.theme-preview.forest-theme .theme-preview-content {
    background: #e8f5e9;
}

/* 落日橙主题预览 */
.theme-preview.sunset-theme .theme-preview-header {
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
}
.theme-preview.sunset-theme .theme-preview-content {
    background: #fff7ed;
}

/* 玫瑰粉主题预览 */
.theme-preview.rose-theme .theme-preview-header {
    background: linear-gradient(135deg, #db2777 0%, #f472b6 100%);
}
.theme-preview.rose-theme .theme-preview-content {
    background: #fdf2f8;
}

/* 薄荷青主题预览 */
.theme-preview.mint-theme .theme-preview-header {
    background: linear-gradient(135deg, #14b8a6 0%, #5eead4 100%);
}
.theme-preview.mint-theme .theme-preview-content {
    background: #f0fdfa;
}

/* 咖啡棕主题预览 */
.theme-preview.coffee-theme .theme-preview-header {
    background: linear-gradient(135deg, #78350f 0%, #a16207 100%);
}
.theme-preview.coffee-theme .theme-preview-content {
    background: #fef3c7;
}

/* 薰衣紫主题预览 */
.theme-preview.lavender-theme .theme-preview-header {
    background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
}
.theme-preview.lavender-theme .theme-preview-content {
    background: #f5f3ff;
}

.theme-option input:checked + .theme-preview {
    border-color: var(--primary);
}

.theme-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-600);
}

.theme-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.theme-option input:checked ~ .theme-check {
    display: flex;
}

/* 现代输入框 */
.settings-form-group {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.input-modern {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-modern label {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-600);
}

.input-wrapper {
    display: flex;
    align-items: center;
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.input-wrapper:focus-within {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.input-wrapper .input-icon {
    padding: 0 12px;
    font-size: 16px;
}

.input-wrapper input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 14px 0;
    font-size: 15px;
    color: var(--gray-800);
    outline: none;
}

.input-wrapper input::placeholder {
    color: var(--gray-400);
}

.input-action {
    padding: 0 14px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.input-action:hover {
    opacity: 1;
}

/* 滑动条 */
.slider-modern {
    padding: 10px 0;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--gray-500);
}

.slider-value {
    font-weight: 700;
    color: var(--primary);
    font-size: 16px;
}

.slider-modern input[type="range"] {
    width: 100%;
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

.slider-modern input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    background: var(--gradient-primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
    transition: transform 0.2s;
}

.slider-modern input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

/* 数据操作按钮 - 简洁版 */
.data-actions-simple {
    display: flex;
    gap: 12px;
}

.data-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 16px;
    border-radius: 18px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    background: white;
}

.data-btn-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.data-btn-icon-wrap svg {
    width: 26px;
    height: 26px;
}

.data-btn-icon-wrap.export {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #059669;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.data-btn-icon-wrap.import {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #2563eb;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.data-btn-icon-wrap.danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.data-btn-icon-wrap.danger-full {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
}

.data-btn-text {
    font-size: 14px;
    color: var(--gray-700);
}

.data-btn.export {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #bbf7d0;
}

.data-btn.export:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.25);
    border-color: #86efac;
}

.data-btn.export:hover .data-btn-icon-wrap {
    transform: scale(1.1);
}

.data-btn.import {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #bfdbfe;
}

.data-btn.import:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.25);
    border-color: #93c5fd;
}

.data-btn.import:hover .data-btn-icon-wrap {
    transform: scale(1.1);
}

.data-btn.danger {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-color: #fecaca;
}

.data-btn.danger:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.2);
    border-color: #fca5a5;
}

.data-btn.danger:hover .data-btn-icon-wrap {
    transform: scale(1.1);
}

.data-btn.danger-full {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-color: #fecaca;
}

.data-btn.danger-full:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3);
    border-color: #f87171;
}

.data-btn.danger-full:hover .data-btn-icon-wrap {
    transform: scale(1.1);
}

.data-btn.danger .data-btn-text,
.data-btn.danger-full .data-btn-text {
    color: #b91c1c;
}

.danger-card {
    border: 1px solid #fecaca !important;
    background: linear-gradient(135deg, #fffbfb 0%, #fff5f5 100%) !important;
}

.danger-card .settings-card-header {
    background: transparent;
}

.settings-card-icon-new.danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%) !important;
    color: #dc2626 !important;
}

.settings-card-icon-new.danger svg {
    stroke: #dc2626;
}

/* 保留旧样式兼容 */
.data-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.data-actions.danger-zone {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed var(--gray-300);
}

.data-action-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
}

.data-action-btn:hover {
    background: var(--gray-100);
    transform: translateX(4px);
}

.data-action-btn.export {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-color: #a7f3d0;
}

.data-action-btn.export:hover {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

.data-action-btn.import {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #bfdbfe;
}

.data-action-btn.import:hover {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.data-action-btn.danger {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-color: #fecaca;
}

.data-action-btn.danger:hover {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
}

.data-action-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 数据操作SVG图标 */
.data-action-icon-svg {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.data-action-icon-svg svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.data-action-btn.export .data-action-icon-svg {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #059669;
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.2);
}

.data-action-btn.import .data-action-icon-svg {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #2563eb;
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.2);
}

.data-action-icon-svg.danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.2);
}

.data-action-btn:hover .data-action-icon-svg {
    transform: scale(1.08);
}

.data-action-info {
    flex: 1;
}

.data-action-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-800);
}

.data-action-desc {
    display: block;
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 2px;
}

.data-action-arrow {
    font-size: 18px;
    color: var(--gray-400);
    transition: transform 0.3s;
}

.data-action-btn:hover .data-action-arrow {
    transform: translateX(4px);
}

/* 存储信息 */
.storage-info {
    margin-bottom: 16px;
}

.storage-bar {
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.storage-used {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.storage-details {
    font-size: 13px;
    color: var(--gray-500);
    text-align: center;
}

/* 关于卡片 */
.about-card {
    text-align: center;
}

.about-header {
    margin-bottom: 20px;
}

.about-logo {
    font-size: 64px;
    margin-bottom: 12px;
    animation: float 3s ease-in-out infinite;
}

.about-app-name {
    font-size: 24px;
    font-weight: 800;
    color: var(--gray-900);
    margin: 0 0 8px 0;
}

.about-version {
    display: inline-block;
    padding: 4px 12px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.about-description {
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--gray-50);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-700);
}

.feature-icon {
    font-size: 18px;
}

/* 新版关于功能项 */
.about-feature-new {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--gray-50);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    transition: all 0.3s ease;
}

.about-feature-new:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
}

.feature-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon-wrap svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.feature-icon-wrap.listening {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #ca8a04;
}

.feature-icon-wrap.speaking {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #2563eb;
}

.feature-icon-wrap.reading {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    color: #7c3aed;
}

.feature-icon-wrap.vocabulary {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #059669;
}

/* 关于链接 */
.about-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.about-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--gray-50);
    border-radius: 12px;
    text-decoration: none;
    color: var(--gray-700);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.about-link:hover {
    background: var(--gray-100);
}

.about-link .link-icon {
    font-size: 20px;
}

.about-link .link-arrow {
    margin-left: auto;
    color: var(--gray-400);
    transition: transform 0.3s;
}

.about-link:hover .link-arrow {
    transform: translateX(4px);
}

/* 新版关于链接 */
.about-link-new {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--gray-50);
    border-radius: 14px;
    text-decoration: none;
    color: var(--gray-700);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.about-link-new:hover {
    background: var(--gray-100);
    transform: translateX(4px);
}

.link-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    color: #4f46e5;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.link-icon-wrap svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.about-link-new:hover .link-icon-wrap {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.link-arrow-svg {
    width: 18px;
    height: 18px;
    margin-left: auto;
    color: var(--gray-400);
    stroke: currentColor;
    fill: none;
    transition: transform 0.3s;
}

.about-link-new:hover .link-arrow-svg {
    transform: translateX(4px);
    color: var(--primary);
}

/* 新版关于Logo */
.about-logo-new {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2);
}

.about-logo-new svg {
    width: 40px;
    height: 40px;
}

.about-footer {
    text-align: center;
    padding: 20px;
    color: var(--gray-400);
    font-size: 13px;
}

.about-footer .copyright {
    margin-top: 4px;
    font-size: 11px;
}

/* ========== 设置页面新布局 ========== */

/* 简洁返回按钮头部 */
.settings-header-simple {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
    background: white;
    border-bottom: 1px solid var(--gray-100);
}

.back-btn-simple {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: none;
    background: var(--gray-100);
    color: var(--gray-700);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.back-btn-simple:hover {
    background: var(--gray-200);
    color: var(--gray-900);
}

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

/* 顶部分组导航 - 大图标 */
.settings-tabs-top {
    display: flex;
    justify-content: space-around;
    background: white;
    padding: 20px 16px;
    gap: 12px;
    border-bottom: 1px solid var(--gray-100);
}

.settings-tab-new {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 8px;
    border-radius: 16px;
    background: transparent;
    border: none;
    color: var(--gray-500);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 80px;
}

.settings-tab-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.settings-tab-icon svg {
    width: 24px;
    height: 24px;
    transition: transform 0.2s ease;
}

/* 各分类图标颜色 */
.settings-tab-icon.general {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    color: #6366f1;
}

.settings-tab-icon.audio {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.15) 100%);
    color: #10b981;
}

.settings-tab-icon.data {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(234, 88, 12, 0.15) 100%);
    color: #f59e0b;
}

.settings-tab-icon.about {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0.15) 100%);
    color: #3b82f6;
}

.settings-tab-new.active .settings-tab-icon.general {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.settings-tab-new.active .settings-tab-icon.audio {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.settings-tab-new.active .settings-tab-icon.data {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.settings-tab-new.active .settings-tab-icon.about {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.settings-tab-new.active {
    color: var(--gray-900);
}

.settings-tab-new:hover:not(.active) .settings-tab-icon {
    transform: scale(1.05);
}

.settings-tab-new span {
    font-size: 12px;
    font-weight: 600;
}

/* 底部固定操作栏 - 类似导航栏样式 */
.settings-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 500px;
    margin: 0 auto;
    padding: 12px 20px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    gap: 12px;
    z-index: 1001;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
}

.settings-bottom-bar.visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.settings-bottom-bar.hiding {
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0s linear 0.6s;
}

.settings-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.settings-action-btn.reset {
    background: var(--gray-100);
    color: var(--gray-700);
}

.settings-action-btn.reset:hover {
    background: var(--gray-200);
}

.settings-action-btn.save {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.settings-action-btn.save:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
}

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

.settings-action-btn svg {
    flex-shrink: 0;
}

/* 设置底部固定按钮 */
.settings-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 500px;
    margin: 0 auto;
    padding: 16px 20px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    background: white;
    display: flex;
    gap: 12px;
    z-index: 1001;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 20px 20px 0 0;
}

/* 现代按钮 */
.btn-modern {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 24px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-modern.primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-modern.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-modern.secondary {
    background: var(--gray-100);
    color: var(--gray-600);
    border: 2px solid var(--gray-200);
}

.btn-modern.secondary:hover {
    background: var(--gray-200);
    border-color: var(--gray-300);
}

.btn-icon {
    font-size: 18px;
}

/* Toast 提示样式 */
.toast-message {
    position: fixed;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--gray-900);
    color: white;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 90%;
    text-align: center;
}

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

/* ==================== 滚动条 - 跨浏览器 ==================== */
/* Webkit (Chrome, Safari, Edge) */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--gray-300) var(--gray-100);
}

/* ==================== 动画 - 跨浏览器 ==================== */
@-webkit-keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

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

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

/* ==================== 响应式设计 - 手机适配 ==================== */

/* 超小屏幕 (iPhone SE, 小型安卓机) */
@media screen and (max-width: 374px) {
    html { font-size: 14px; }
    
    .home-header .header-content {
        padding: 20px 15px 25px;
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .greeting-text h1 { font-size: 20px; }
    .greeting-emoji { font-size: 28px; }
    
    .streak-badge {
        align-self: flex-start;
        padding: 8px 12px;
    }
    
    .module-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .module-card {
        padding: 18px 12px;
    }
    
    .module-icon { font-size: 36px; }
    .module-card h3 { font-size: 14px; }
    .module-card p { font-size: 11px; }
    
    .daily-goals-card {
        border-radius: 18px;
    }
    
    .goals-card-header {
        padding: 18px;
    }
    
    .goals-icon-wrapper {
        width: 42px;
        height: 42px;
    }
    
    .goals-title-text h3 { font-size: 16px; }
    
    .progress-ring-container {
        width: 70px;
        height: 70px;
    }
    
    .progress-ring {
        width: 70px;
        height: 70px;
    }
    
    .progress-percent { font-size: 18px; }
    
    .goal-settings-content {
        max-width: 95%;
        border-radius: 20px;
    }
    
    .goal-item {
        padding: 12px;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .goal-item-input input {
        width: 60px;
        padding: 8px 10px;
    }
    
    /* 设置页面超小屏幕优化 */
    .settings-tabs {
        padding: 10px 12px;
        gap: 6px;
    }
    
    .settings-tab {
        padding: 8px 12px;
        font-size: 11px;
    }
    
    .settings-tab-icon {
        font-size: 16px;
    }
    
    .settings-panel {
        padding: 16px;
    }
    
    .settings-card-modern {
        padding: 16px;
        border-radius: 16px;
    }
    
    .settings-card-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .theme-selector {
        gap: 8px;
    }
    
    .theme-name {
        font-size: 10px;
    }
    
    .about-logo {
        font-size: 48px;
    }
    
    .about-app-name {
        font-size: 20px;
    }
    
    .about-features {
        grid-template-columns: 1fr 1fr;
    }
    
    /* 底部导航超小屏幕优化 */
    .bottom-nav {
        padding: 6px 12px;
    }
    
    .nav-item {
        padding: 6px 12px;
        min-width: 60px;
    }
    
    .nav-icon-wrapper {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }
    
    .nav-svg {
        width: 20px;
        height: 20px;
    }
    
    .nav-label {
        font-size: 10px;
    }
    
    /* 统计页面超小屏幕优化 */
    .stats-overview-card {
        padding: 18px;
        border-radius: 20px;
    }
    
    .stats-avatar {
        width: 48px;
        height: 48px;
    }
    
    .overview-value {
        font-size: 22px;
    }
    
    .stats-cards-grid {
        gap: 10px;
    }
    
    .stat-card-new {
        padding: 16px;
        border-radius: 16px;
    }
    
    .stat-card-value {
        font-size: 26px;
    }
    
    .review-stat-row {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .review-stat-item {
        flex: 1;
        min-width: 80px;
    }
}

/* 小屏幕手机 (iPhone 6/7/8, 标准安卓机) */
@media screen and (min-width: 375px) and (max-width: 413px) {
    .home-header .header-content {
        padding: 25px 18px 30px;
    }
    
    .greeting-text h1 { font-size: 22px; }
    
    .module-grid {
        gap: 12px;
    }
    
    .module-card {
        padding: 22px 14px;
    }
    
    .module-icon { font-size: 40px; }
    .module-card h3 { font-size: 15px; }
}

/* 中等屏幕手机 (iPhone Plus/Max, 大屏安卓) */
@media screen and (min-width: 414px) and (max-width: 767px) {
    .home-header .header-content {
        padding: 28px 20px 35px;
    }
    
    .module-grid {
        gap: 14px;
    }
    
    .module-card {
        padding: 26px 16px;
    }
}

/* 平板设备 */
@media screen and (min-width: 768px) {
    .container {
        max-width: 600px;
    }
    
    .home-header .header-content {
        padding: 35px 25px 40px;
    }
    
    .greeting-text h1 { font-size: 28px; }
    .greeting-emoji { font-size: 42px; }
    
    .module-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
    
    .module-card {
        padding: 30px 20px;
    }
    
    .module-icon { font-size: 52px; }
    .module-card h3 { font-size: 18px; }
    .module-card p { font-size: 14px; }
    
    .daily-goals-card {
        border-radius: 28px;
    }
    
    .goals-total-progress {
        gap: 30px;
    }
    
    .progress-ring-container {
        width: 100px;
        height: 100px;
    }
    
    .progress-ring {
        width: 100px;
        height: 100px;
    }
    
    .progress-percent { font-size: 28px; }
    
    .goal-settings-content {
        max-width: 450px;
    }
    
    /* 设置页面平板优化 */
    .settings-tabs {
        justify-content: center;
        gap: 12px;
    }
    
    .settings-tab {
        padding: 12px 24px;
    }
    
    .theme-selector {
        gap: 16px;
    }
    
    .about-features {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* 底部导航平板优化 */
    .bottom-nav {
        max-width: 600px;
        padding: 10px 30px;
    }
    
    .nav-item {
        padding: 10px 30px;
        min-width: 100px;
    }
    
    .nav-icon-wrapper {
        width: 50px;
        height: 50px;
    }
    
    .nav-svg {
        width: 26px;
        height: 26px;
    }
    
    /* 统计页面平板优化 */
    .stats-overview-card {
        padding: 28px;
    }
    
    .overview-value {
        font-size: 32px;
    }
    
    .stats-cards-grid {
        gap: 16px;
    }
    
    .stat-card-new {
        padding: 24px;
    }
    
    .stat-card-value {
        font-size: 36px;
    }
}

/* 大屏幕/桌面 */
@media screen and (min-width: 1024px) {
    .container {
        max-width: 700px;
    }
    
    .module-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    /* 鼠标悬停效果（仅桌面） */
    .module-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
    }
    
    .goals-settings-btn:hover {
        transform: rotate(90deg);
    }
}

/* 横屏手机优化 */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .home-header .header-content {
        padding: 15px 20px;
    }
    
    .daily-goals-card {
        margin-bottom: 15px;
    }
    
    .goals-card-header {
        padding: 15px;
    }
    
    .goals-total-progress {
        gap: 15px;
    }
    
    .progress-ring-container {
        width: 60px;
        height: 60px;
    }
    
    .goals-progress-container {
        padding: 15px;
    }
    
    .modal {
        padding-top: 10px;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
}

/* 深色模式支持（可选） */
@media (prefers-color-scheme: dark) {
    /* 可以在这里添加深色模式样式 */
}

/* 减少动画（用户偏好设置） */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        -webkit-animation-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        -webkit-animation-iteration-count: 1 !important;
        animation-iteration-count: 1 !important;
        -webkit-transition-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* 打印样式 */
@media print {
    .home-header, .streak-badge, .goals-settings-btn {
        display: none !important;
    }
}

/* ==================== iOS 特殊优化 ==================== */
/* iOS Safari 底部安全区域 */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .container {
        padding-bottom: calc(90px + env(safe-area-inset-bottom));
    }
    
    .modal {
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    .goal-settings-modal {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* iOS 橡皮筋效果优化 */
.modal-content, .goal-settings-content {
    -webkit-overflow-scrolling: touch;
}

/* ==================== 触摸设备优化 ==================== */
@media (hover: none) and (pointer: coarse) {
    /* 移除悬停效果，因为触摸设备没有悬停 */
    .module-card:hover {
        transform: none;
        box-shadow: var(--shadow);
    }
    
    .goals-settings-btn:hover {
        transform: none;
    }
    
    /* 增大触摸目标 */
    .goals-settings-btn {
        min-width: 48px;
        min-height: 48px;
    }
    
    .goal-close-btn {
        min-width: 44px;
        min-height: 44px;
    }
    
    button, .module-card {
        min-height: 44px;
    }
}

/* ==================== 高对比度模式 ==================== */
@media (prefers-contrast: high) {
    :root {
        --primary: #4338ca;
        --gray-500: #4b5563;
    }
    
    .module-card {
        border: 2px solid var(--gray-300);
    }
}

/* ==================== 高级首页头部样式 - 动态时段场景系统 ==================== */
.home-header {
    padding: 32px 20px 45px;
    position: relative;
    overflow: hidden;
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
    min-height: 140px;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== 天空场景层 ===== */
.header-scene {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

/* 天空渐变背景 */
.sky-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: background 1s ease;
}

/* 早晨 (5:00-7:59) - 日出 */
.home-header[data-time-period="dawn"] .sky-layer {
    background: linear-gradient(180deg, 
        #2d3a4f 0%, 
        #5c6b8a 20%,
        #9baac4 40%,
        #f4c4a1 65%,
        #f9a87a 85%,
        #e8806a 100%);
}

/* 上午 (8:00-11:59) - 明亮的蓝天 */
.home-header[data-time-period="morning"] .sky-layer {
    background: linear-gradient(180deg, 
        #4a90d9 0%, 
        #5da4e8 30%,
        #7bb8f0 60%,
        #a0d4f8 100%);
}

/* 中午 (12:00-13:59) - 正午阳光 */
.home-header[data-time-period="noon"] .sky-layer {
    background: linear-gradient(180deg, 
        #3d8fd9 0%, 
        #5aa8eb 40%,
        #8bc8f5 70%,
        #c9e8fc 100%);
}

/* 下午 (14:00-17:59) - 温暖的天空 */
.home-header[data-time-period="afternoon"] .sky-layer {
    background: linear-gradient(180deg, 
        #5a9bd5 0%, 
        #72aee0 30%,
        #9dc8ea 60%,
        #dce9f5 100%);
}

/* 傍晚 (18:00-19:59) - 日落 */
.home-header[data-time-period="sunset"] .sky-layer {
    background: linear-gradient(180deg, 
        #2e4a6d 0%, 
        #5d6f8e 15%,
        #b47a6a 35%,
        #e8a87a 55%,
        #f5c485 75%,
        #f9d9a0 100%);
}

/* 晚上 (20:00-21:59) - 夜幕降临 */
.home-header[data-time-period="evening"] .sky-layer {
    background: linear-gradient(180deg, 
        #0f1a2e 0%, 
        #1a2744 30%,
        #2d3e5c 60%,
        #3d5070 100%);
}

/* 深夜 (22:00-4:59) - 繁星夜空 */
.home-header[data-time-period="night"] .sky-layer {
    background: linear-gradient(180deg, 
        #0a0f1e 0%, 
        #111b30 40%,
        #182540 70%,
        #1e2d4a 100%);
}

/* ===== 天体 (太阳/月亮) ===== */
.celestial-body {
    position: absolute;
    border-radius: 50%;
    transition: all 1s ease;
}

/* 太阳样式 */
.home-header[data-time-period="dawn"] .celestial-body,
.home-header[data-time-period="morning"] .celestial-body,
.home-header[data-time-period="noon"] .celestial-body,
.home-header[data-time-period="afternoon"] .celestial-body,
.home-header[data-time-period="sunset"] .celestial-body {
    width: 32px;
    height: 32px;
    background: radial-gradient(circle, #fff9e6 0%, #ffd54f 40%, #ffb300 100%);
    box-shadow: 
        0 0 20px #ffd54f,
        0 0 40px rgba(255, 193, 7, 0.5),
        0 0 60px rgba(255, 152, 0, 0.3);
}

.home-header[data-time-period="dawn"] .celestial-body {
    right: 15%;
    top: 70%;
    opacity: 0.9;
    background: radial-gradient(circle, #fff5e6 0%, #ffb74d 40%, #ff8a65 100%);
    box-shadow: 
        0 0 30px #ffb74d,
        0 0 50px rgba(255, 138, 101, 0.6);
}

.home-header[data-time-period="morning"] .celestial-body {
    right: 12%;
    top: 30%;
}

.home-header[data-time-period="noon"] .celestial-body {
    right: 18%;
    top: 15%;
    width: 36px;
    height: 36px;
    box-shadow: 
        0 0 25px #ffd54f,
        0 0 50px rgba(255, 193, 7, 0.6),
        0 0 80px rgba(255, 152, 0, 0.4);
}

.home-header[data-time-period="afternoon"] .celestial-body {
    right: 8%;
    top: 25%;
    opacity: 0.95;
}

.home-header[data-time-period="sunset"] .celestial-body {
    right: 10%;
    top: 60%;
    width: 38px;
    height: 38px;
    background: radial-gradient(circle, #ffecb3 0%, #ff9800 50%, #e65100 100%);
    box-shadow: 
        0 0 40px #ff9800,
        0 0 80px rgba(230, 81, 0, 0.5);
}

/* 月亮样式 */
.home-header[data-time-period="evening"] .celestial-body,
.home-header[data-time-period="night"] .celestial-body {
    width: 28px;
    height: 28px;
    background: radial-gradient(circle at 70% 35%, #fafafa 0%, #e8e8e8 50%, #d0d0d0 100%);
    box-shadow: 
        0 0 15px rgba(255, 255, 255, 0.5),
        0 0 30px rgba(200, 200, 220, 0.3),
        inset -4px 2px 6px rgba(0, 0, 0, 0.1);
}

.home-header[data-time-period="evening"] .celestial-body {
    right: 15%;
    top: 20%;
}

.home-header[data-time-period="night"] .celestial-body {
    right: 12%;
    top: 18%;
    box-shadow: 
        0 0 20px rgba(255, 255, 255, 0.6),
        0 0 40px rgba(200, 200, 220, 0.4),
        inset -4px 2px 6px rgba(0, 0, 0, 0.1);
}

/* ===== 天空装饰 (云朵/星星) ===== */
.sky-decorations {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

/* 云朵 - 白天时段 */
.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 50px;
    animation: float-cloud 20s ease-in-out infinite;
}

.cloud::before,
.cloud::after {
    content: '';
    position: absolute;
    background: inherit;
    border-radius: 50%;
}

.cloud-1 {
    width: 40px;
    height: 14px;
    top: 25%;
    left: -5%;
    animation-duration: 25s;
}
.cloud-1::before {
    width: 18px;
    height: 18px;
    top: -8px;
    left: 8px;
}
.cloud-1::after {
    width: 14px;
    height: 14px;
    top: -6px;
    left: 22px;
}

.cloud-2 {
    width: 50px;
    height: 16px;
    top: 40%;
    left: -8%;
    animation-duration: 30s;
    animation-delay: -5s;
}
.cloud-2::before {
    width: 22px;
    height: 22px;
    top: -10px;
    left: 10px;
}
.cloud-2::after {
    width: 16px;
    height: 16px;
    top: -7px;
    left: 28px;
}

.cloud-3 {
    width: 35px;
    height: 12px;
    top: 55%;
    left: -3%;
    opacity: 0.7;
    animation-duration: 22s;
    animation-delay: -10s;
}
.cloud-3::before {
    width: 15px;
    height: 15px;
    top: -7px;
    left: 6px;
}
.cloud-3::after {
    width: 11px;
    height: 11px;
    top: -5px;
    left: 18px;
}

@keyframes float-cloud {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(100vw + 100px)); }
}

/* 星星 - 夜间时段 */
.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle 2s ease-in-out infinite;
}

.star-1 { width: 2px; height: 2px; top: 15%; left: 10%; animation-delay: 0s; }
.star-2 { width: 3px; height: 3px; top: 25%; left: 25%; animation-delay: 0.5s; }
.star-3 { width: 2px; height: 2px; top: 20%; left: 40%; animation-delay: 1s; }
.star-4 { width: 2px; height: 2px; top: 35%; left: 55%; animation-delay: 0.3s; }
.star-5 { width: 3px; height: 3px; top: 18%; left: 70%; animation-delay: 0.8s; }
.star-6 { width: 2px; height: 2px; top: 30%; left: 85%; animation-delay: 1.2s; }
.star-7 { width: 2px; height: 2px; top: 45%; left: 15%; animation-delay: 0.7s; }
.star-8 { width: 3px; height: 3px; top: 50%; left: 35%; animation-delay: 1.5s; }
.star-9 { width: 2px; height: 2px; top: 40%; left: 78%; animation-delay: 0.2s; }
.star-10 { width: 2px; height: 2px; top: 55%; left: 92%; animation-delay: 1.8s; }

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* 隐藏云朵/星星 */
.home-header[data-time-period="dawn"] .star,
.home-header[data-time-period="morning"] .star,
.home-header[data-time-period="noon"] .star,
.home-header[data-time-period="afternoon"] .star,
.home-header[data-time-period="sunset"] .star {
    display: none;
}

.home-header[data-time-period="evening"] .cloud,
.home-header[data-time-period="night"] .cloud {
    display: none;
}

/* 日出/日落时云朵变色 */
.home-header[data-time-period="dawn"] .cloud {
    background: rgba(255, 200, 170, 0.7);
}
.home-header[data-time-period="sunset"] .cloud {
    background: rgba(255, 180, 140, 0.8);
}

/* ===== 远景山脉 ===== */
.mountain-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
}

.mountains {
    width: 100%;
    height: 100%;
}

.mountain-far {
    transition: fill 0.8s ease;
}

.mountain-near {
    transition: fill 0.8s ease;
}

/* 各时段山脉颜色 */
.home-header[data-time-period="dawn"] .mountain-far { fill: rgba(100, 80, 90, 0.5); }
.home-header[data-time-period="dawn"] .mountain-near { fill: rgba(70, 55, 65, 0.6); }

.home-header[data-time-period="morning"] .mountain-far { fill: rgba(100, 140, 180, 0.4); }
.home-header[data-time-period="morning"] .mountain-near { fill: rgba(80, 120, 160, 0.5); }

.home-header[data-time-period="noon"] .mountain-far { fill: rgba(120, 160, 200, 0.35); }
.home-header[data-time-period="noon"] .mountain-near { fill: rgba(100, 140, 180, 0.45); }

.home-header[data-time-period="afternoon"] .mountain-far { fill: rgba(130, 160, 190, 0.4); }
.home-header[data-time-period="afternoon"] .mountain-near { fill: rgba(110, 140, 170, 0.5); }

.home-header[data-time-period="sunset"] .mountain-far { fill: rgba(90, 70, 80, 0.5); }
.home-header[data-time-period="sunset"] .mountain-near { fill: rgba(60, 45, 55, 0.6); }

.home-header[data-time-period="evening"] .mountain-far { fill: rgba(40, 50, 70, 0.6); }
.home-header[data-time-period="evening"] .mountain-near { fill: rgba(25, 35, 55, 0.7); }

.home-header[data-time-period="night"] .mountain-far { fill: rgba(20, 30, 50, 0.7); }
.home-header[data-time-period="night"] .mountain-near { fill: rgba(10, 20, 40, 0.8); }

/* ===== 地面层 ===== */
.ground-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 15px;
    transition: background 0.8s ease;
}

.home-header[data-time-period="dawn"] .ground-layer { background: linear-gradient(180deg, rgba(80, 65, 70, 0.6) 0%, rgba(60, 50, 55, 0.8) 100%); }
.home-header[data-time-period="morning"] .ground-layer { background: linear-gradient(180deg, rgba(90, 130, 90, 0.5) 0%, rgba(70, 110, 70, 0.7) 100%); }
.home-header[data-time-period="noon"] .ground-layer { background: linear-gradient(180deg, rgba(100, 140, 100, 0.45) 0%, rgba(80, 120, 80, 0.65) 100%); }
.home-header[data-time-period="afternoon"] .ground-layer { background: linear-gradient(180deg, rgba(95, 130, 95, 0.5) 0%, rgba(75, 110, 75, 0.7) 100%); }
.home-header[data-time-period="sunset"] .ground-layer { background: linear-gradient(180deg, rgba(70, 55, 60, 0.6) 0%, rgba(50, 40, 45, 0.8) 100%); }
.home-header[data-time-period="evening"] .ground-layer { background: linear-gradient(180deg, rgba(30, 40, 55, 0.7) 0%, rgba(20, 30, 45, 0.9) 100%); }
.home-header[data-time-period="night"] .ground-layer { background: linear-gradient(180deg, rgba(15, 25, 40, 0.8) 0%, rgba(10, 18, 30, 0.95) 100%); }

/* ===== 原有覆盖层保留 ===== */
.header-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.header-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.greeting-section {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* ===== 新的场景图标 ===== */
.scene-icon-ring {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
}

.scene-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 自定义头像样式 */
.scene-icon-ring.custom-avatar {
    cursor: pointer;
    transition: all 0.3s ease;
}

.scene-icon-ring.custom-avatar:hover {
    transform: scale(1.05);
}

.scene-icon-ring.custom-avatar:active {
    transform: scale(0.95);
}

.avatar-emoji-display {
    font-size: 28px;
    line-height: 1;
}

.avatar-image-display {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

/* 不同时段的图标容器样式调整 */
.home-header[data-time-period="night"] .scene-icon-ring,
.home-header[data-time-period="evening"] .scene-icon-ring {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.home-header[data-time-period="dawn"] .scene-icon-ring,
.home-header[data-time-period="sunset"] .scene-icon-ring {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.3);
}

.greeting-text h1 {
    color: white;
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 4px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.date-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    margin: 0;
}

/* 头部右侧区域 */
.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

/* 时间显示 */
.time-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
}

.time-display:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: scale(1.02);
}

.time-display:active {
    transform: scale(0.98);
}

.time-main {
    color: white;
    font-size: 20px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.time-zone {
    color: rgba(255, 255, 255, 0.8);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* 连续天数徽章 */
.streak-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.streak-icon-wrap {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.streak-flame {
    filter: drop-shadow(0 2px 4px rgba(249, 115, 22, 0.4));
}

.streak-count {
    color: white;
    font-size: 18px;
    font-weight: 800;
}

.streak-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 500;
}

/* ==================== 名人名言卡片样式 ==================== */
.quote-card {
    position: relative;
    z-index: 2;
    margin: 16px 0 0 0;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quote-card:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.quote-card:active {
    transform: scale(0.99);
}

.quote-icon {
    font-size: 18px;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.quote-text {
    color: rgba(255, 255, 255, 0.95);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    margin: 0;
    flex: 1;
    font-style: italic;
}

.quote-author {
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

/* 夜间时段名言卡片样式调整 */
.home-header[data-time-period="night"] .quote-card,
.home-header[data-time-period="evening"] .quote-card {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

.home-header[data-time-period="night"] .quote-card:hover,
.home-header[data-time-period="evening"] .quote-card:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* ==================== 今日目标卡片高级样式 ==================== */
.daily-goals-card {
    background: white;
    border-radius: 24px;
    margin: -20px 0 0 0;
    padding: 24px;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.goals-card-header {
    margin-bottom: 20px;
}

.goals-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.goals-title-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.goals-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.goals-icon-svg {
    filter: drop-shadow(0 2px 4px rgba(99, 102, 241, 0.3));
}

.goals-title-text h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: var(--gray-900);
}

.goals-title-text p {
    margin: 4px 0 0 0;
    font-size: 13px;
    color: var(--gray-500);
}

.goals-settings-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--gray-100);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--gray-500);
}

.goals-settings-btn:hover {
    background: var(--primary);
    color: white;
    transform: rotate(45deg);
}

/* 总进度环区域 */
.goals-total-progress {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
}

.progress-ring-container {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-bg {
    stroke: #e5e7eb;
}

.progress-ring-fill {
    transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-ring-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-align: center;
}

.progress-ring-text span {
    font-size: 20px;
    font-weight: 700;
    color: #6366f1;
}

.progress-summary {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.completed-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
}

.encourage-text {
    font-size: 13px;
    color: var(--gray-500);
}

/* 目标进度条 */
.goals-progress-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.goal-progress-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--gray-50);
    border-radius: 14px;
    transition: all 0.3s;
}

.goal-progress-item:hover {
    background: var(--gray-100);
}

.goal-progress-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.goal-progress-icon svg {
    width: 20px;
    height: 20px;
}

.goal-progress-icon.vocab { background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%); }
.goal-progress-icon.vocab svg { stroke: #7c3aed; }

.goal-progress-icon.listen { background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%); }
.goal-progress-icon.listen svg { stroke: #2563eb; }

.goal-progress-icon.speak { background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%); }
.goal-progress-icon.speak svg { stroke: #db2777; }

.goal-progress-icon.read { background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%); }
.goal-progress-icon.read svg { stroke: #059669; }

.goal-progress-info {
    flex: 1;
    min-width: 0;
    width: 100%;
}

.goal-progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    width: 100%;
}

.goal-progress-bar {
    width: 100%;
}

.goal-progress-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
}

.goal-progress-count {
    font-size: 13px;
    color: var(--gray-500);
    font-weight: 500;
}

.goal-progress-bar {
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
}

.goal-progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.goal-progress-fill.vocabulary { background: linear-gradient(90deg, #6366f1, #8b5cf6); }
.goal-progress-fill.listening { background: linear-gradient(90deg, #3b82f6, #06b6d4); }
.goal-progress-fill.speaking { background: linear-gradient(90deg, #ec4899, #f43f5e); }
.goal-progress-fill.reading { background: linear-gradient(90deg, #14b8a6, #10b981); }

/* ==================== 模块通用新样式 ==================== */

/* 模块头部变体 */
.modal-header-vocab { background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%); }
.modal-header-listen { background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%); }
.modal-header-speak { background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%); }
.modal-header-read { background: linear-gradient(135deg, #14b8a6 0%, #10b981 100%); }
.modal-header-review { background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%); }
.modal-header-resource { background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%); }
.modal-header-stats { background: linear-gradient(135deg, #6366f1 0%, #3b82f6 100%); }

.modal-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.modal-icon-badge {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
}

.modal-icon-badge svg { stroke: white; }

.modal-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin: 0;
}

/* 阅读模块新样式 */
.passage-card-new {
    background: white;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.passage-tags-new {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.tag-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.tag-badge.primary { background: #ede9fe; color: #7c3aed; }
.tag-badge.warning { background: #fef3c7; color: #d97706; }
.tag-badge.success { background: #d1fae5; color: #059669; }

.passage-title-new {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.passage-meta-new {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-200);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--gray-500);
}

.meta-item svg { color: var(--gray-400); }

.passage-text-new {
    font-size: 16px;
    line-height: 1.9;
    color: var(--gray-700);
    text-align: justify;
}

/* 阅读词汇区新样式 */
.vocab-section-new {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}

.section-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.section-head svg { color: var(--primary); }

.section-head h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-800);
}

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

/* 阅读题目卡新样式 */
.questions-card-new {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.questions-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}

.questions-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.questions-icon-wrap svg { stroke: #d97706; }

.questions-header h4 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--gray-800);
}

.questions-header p {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--gray-500);
}

.questions-list-new {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.btn-submit-answer {
    width: 100%;
    padding: 16px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    transition: all 0.3s;
}

.btn-submit-answer:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

/* 复习模块新样式 */
.review-content-new {
    padding: 20px;
}

.review-plan-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.plan-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-100);
}

.plan-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.plan-icon svg { stroke: #d97706; }

.plan-header h4 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--gray-800);
}

.plan-header p {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--gray-500);
}

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

.schedule-item-new {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: var(--gray-50);
    border-radius: 12px;
    transition: all 0.3s;
}

.schedule-item-new:hover {
    background: var(--gray-100);
}

.schedule-item-new.today {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.schedule-date-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
}

.schedule-date-wrap svg { color: var(--gray-400); }

.schedule-count-badge {
    padding: 6px 12px;
    background: white;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.btn-start-review {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.35);
    transition: all 0.3s;
}

.btn-start-review:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.45);
}

/* 资源模块新样式 */
.resources-content-new {
    padding: 20px;
}

.tab-group-new {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    background: var(--gray-100);
    padding: 6px;
    border-radius: 14px;
}

.tab-btn-new {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-500);
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn-new.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tab-btn-new svg { flex-shrink: 0; }

.resources-list-new {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 统计图标徽章新颜色 */
.modal-icon-badge.stats { background: rgba(255, 255, 255, 0.2); }
.modal-icon-badge.vocab { background: rgba(255, 255, 255, 0.2); }
.modal-icon-badge.listen { background: rgba(255, 255, 255, 0.2); }
.modal-icon-badge.speak { background: rgba(255, 255, 255, 0.2); }
.modal-icon-badge.read { background: rgba(255, 255, 255, 0.2); }
.modal-icon-badge.review { background: rgba(255, 255, 255, 0.2); }
.modal-icon-badge.resource { background: rgba(255, 255, 255, 0.2); }

/* 统计栏紫色图标 */
.stat-icon-wrap.purple {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
}
.stat-icon-wrap.purple svg { stroke: #7c3aed; }

/* ==================== 模块统计栏新样式 ==================== */
.module-stats-bar-new {
    display: flex;
    justify-content: space-around;
    padding: 16px 20px;
    background: white;
    border-bottom: 1px solid var(--gray-100);
    gap: 8px;
}

.stat-item-new {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: var(--gray-50);
    border-radius: 14px;
    flex: 1;
    max-width: 140px;
}

.stat-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon-wrap.blue {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}
.stat-icon-wrap.blue svg { stroke: #2563eb; }

.stat-icon-wrap.green {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}
.stat-icon-wrap.green svg { stroke: #059669; }

.stat-icon-wrap.orange {
    background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
}
.stat-icon-wrap.orange svg { stroke: #ea580c; }

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-info .stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
}

.stat-info .stat-label {
    font-size: 11px;
    color: var(--gray-500);
    font-weight: 500;
}

/* ==================== 听力模块新样式 ==================== */
.listening-content {
    padding: 20px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    min-height: calc(100vh - 160px);
}

.audio-player-card-new {
    background: white;
    border-radius: 24px;
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.audio-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-100);
}

.audio-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.audio-icon-wrap svg {
    stroke: white;
    fill: none;
}

.audio-icon-wrap svg polygon {
    fill: white;
}

.audio-info {
    flex: 1;
}

.audio-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 6px 0;
}

.audio-desc {
    font-size: 14px;
    color: var(--gray-500);
    margin: 0;
}

.audio-controls-new {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.speed-btn-new {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--gray-200);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--gray-600);
}

.speed-btn-new:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.play-btn-new {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    transition: all 0.3s;
}

.play-btn-new:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.5);
}

.speed-display-new {
    text-align: center;
}

.speed-badge-new {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 20px;
    font-size: 15px;
    font-weight: 700;
    color: #2563eb;
}

.dictation-card-new {
    background: white;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.dictation-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}

.dictation-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dictation-icon svg {
    stroke: #d97706;
}

.dictation-title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--gray-800);
}

.dictation-subtitle {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--gray-500);
}

.blank-area-new {
    padding: 20px;
    background: var(--gray-50);
    border-radius: 16px;
    margin-bottom: 20px;
    min-height: 100px;
    font-size: 16px;
    line-height: 2;
    color: var(--gray-700);
}

.blank-area-new input {
    border: none;
    border-bottom: 2px solid var(--primary);
    background: transparent;
    padding: 4px 8px;
    margin: 0 4px;
    min-width: 80px;
    font-size: 16px;
    color: var(--primary);
    font-weight: 600;
    outline: none;
    transition: border-color 0.3s;
}

.blank-area-new input:focus {
    border-bottom-color: #8b5cf6;
}

.blank-area-new input.correct {
    border-bottom-color: #10b981;
    color: #059669;
}

.blank-area-new input.incorrect {
    border-bottom-color: #ef4444;
    color: #dc2626;
}

.btn-check-answer {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    transition: all 0.3s;
}

.btn-check-answer:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* ==================== 口语模块新样式 ==================== */
.speaking-module-content {
    padding: 20px;
    background: linear-gradient(180deg, #fdf2f8 0%, #fce7f3 100%);
    min-height: calc(100vh - 160px);
}

.sentence-card-new {
    background: white;
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 8px 30px rgba(236, 72, 153, 0.1);
    border: 1px solid rgba(236, 72, 153, 0.1);
}

.sentence-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-100);
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-500);
}

.sentence-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sentence-icon svg {
    stroke: #db2777;
    width: 18px;
    height: 18px;
}

.target-sentence {
    font-size: 20px;
    line-height: 1.7;
    color: var(--gray-800);
    margin: 0 0 20px 0;
    font-weight: 500;
}

.sentence-actions {
    display: flex;
    gap: 12px;
}

.btn-listen, .btn-next {
    flex: 1;
    padding: 14px 20px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-listen {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    color: #db2777;
    border: 2px solid rgba(219, 39, 119, 0.2);
}

.btn-listen:hover {
    background: linear-gradient(135deg, #fbcfe8 0%, #f9a8d4 100%);
    border-color: rgba(219, 39, 119, 0.3);
}

.btn-next {
    background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}

.btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.4);
}

.record-section {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 24px;
    margin-bottom: 20px;
    box-shadow: 0 8px 30px rgba(236, 72, 153, 0.1);
}

.record-btn-new {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    box-shadow: 0 10px 40px rgba(236, 72, 153, 0.4);
    transition: all 0.3s;
    margin: 0 auto 16px;
    touch-action: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.record-btn-new:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 50px rgba(236, 72, 153, 0.5);
}

.record-btn-new:active {
    transform: scale(0.95);
    box-shadow: 0 5px 20px rgba(236, 72, 153, 0.3);
}

.record-btn-inner {
    margin-bottom: 4px;
}

.record-btn-new span {
    font-size: 12px;
    font-weight: 600;
}

.record-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    color: var(--gray-500);
    margin: 0;
}

.record-hint svg {
    color: var(--gray-400);
}

.recording-indicator-new {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-radius: 30px;
    color: #dc2626;
    font-weight: 600;
    margin-top: 16px;
    animation: pulse 1.5s infinite;
}

.recording-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ef4444;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.result-card-new {
    background: white;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 8px 30px rgba(236, 72, 153, 0.1);
}

.result-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-100);
}

.result-header svg {
    stroke: var(--gray-400);
}

.result-header h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-600);
}

.recognized-text {
    font-size: 17px;
    line-height: 1.6;
    color: var(--gray-700);
    margin: 0 0 20px 0;
    padding: 16px;
    background: var(--gray-50);
    border-radius: 14px;
}

.score-section {
    text-align: center;
    padding: 20px 0;
}

.score-circle {
    position: relative;
    display: inline-block;
    margin-bottom: 12px;
}

.score-ring {
    transform: rotate(-90deg);
}

.score-value-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.score-value {
    font-size: 36px;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1;
}

.score-unit {
    font-size: 14px;
    color: var(--gray-500);
    font-weight: 500;
}

.score-label {
    margin: 0;
    font-size: 14px;
    color: var(--gray-500);
    font-weight: 500;
}

.speaking-feedback-new {
    margin-top: 16px;
    padding: 16px;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-radius: 14px;
    font-size: 14px;
    color: #065f46;
}

/* ==================== 阅读模块新样式 ==================== */
.reading-content {
    padding: 20px;
    background: linear-gradient(180deg, #f0fdfa 0%, #ccfbf1 100%);
    min-height: calc(100vh - 160px);
}

.reading-list {
    background: white;
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.passage-area {
    margin-top: 0;
}

/* 反馈样式更新 */
.feedback-new {
    padding: 16px;
    border-radius: 14px;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 500;
}

.feedback-new.correct {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.feedback-new.incorrect {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ==================== 学习资源模块样式 ==================== */
.resources-content-new {
    padding: 20px;
    background: linear-gradient(180deg, #faf5ff 0%, #f3e8ff 100%);
    min-height: calc(100vh - 120px);
}

.resource-category-card {
    background: white;
    border-radius: 20px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.resource-category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-100);
}

.category-icon {
    font-size: 24px;
}

.category-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--gray-800);
    flex: 1;
}

.category-count {
    font-size: 13px;
    color: var(--gray-500);
    background: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.resource-items {
    padding: 12px;
}

.resource-item-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--gray-50);
    border-radius: 14px;
    margin-bottom: 10px;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.resource-item-card:last-child {
    margin-bottom: 0;
}

.resource-item-card:hover {
    background: white;
    border-color: var(--primary-light);
    transform: translateX(4px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.15);
}

.resource-item-card.online:hover {
    border-color: #06b6d4;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.15);
}

.resource-item-main {
    flex: 1;
    min-width: 0;
}

.resource-item-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.resource-item-source {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--gray-500);
}

.resource-item-source svg {
    color: var(--gray-400);
    flex-shrink: 0;
}

.resource-item-desc {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.resource-item-arrow {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s;
}

.resource-item-arrow svg {
    color: #7c3aed;
}

.resource-item-card:hover .resource-item-arrow {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.resource-item-card:hover .resource-item-arrow svg {
    color: white;
}

.resource-item-card.online .resource-item-arrow {
    background: linear-gradient(135deg, #cffafe 0%, #a5f3fc 100%);
}

.resource-item-card.online .resource-item-arrow svg {
    color: #0891b2;
}

.resource-item-card.online:hover .resource-item-arrow {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

.resource-item-card.online:hover .resource-item-arrow svg {
    color: white;
}
