/* ===== 全局样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== 无障碍与交互基线（ui-ux-pro-max 设计契约） ===== */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* 锚点不被 sticky 导航遮挡 */
}

:focus-visible {
    outline: 2px solid var(--ring, #2d6a4f);
    outline-offset: 2px;
}

button, .btn, [role="button"], summary, label[for] {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* 按压反馈：全局统一，不引起布局位移 */
.btn:active, button:active:not(:disabled), [role="button"]:active {
    transform: scale(0.97);
}

/* 减弱动效偏好：全局兜底 */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

:root {
    /* 主色调：墨绿色系（学习类沉稳风格） */
    --primary: #2d6a4f;
    --primary-light: #40916c;
    --primary-lighter: #74c69d;
    --primary-dark: #1b4332;
    --primary-bg: #e8f5e9;
    
    /* 辅助色 */
    --accent: #d4a373;
    --accent-light: #faedcd;
    
    --success: #52b788;
    --warning: #f4a261;
    --danger: #e76f51;
    --info: #457b9d;
    
    /* 中性色 */
    --bg: #f5f6f7;
    --card: #ffffff;
    --text: #1a1a2e;
    --text-secondary: #5b6472;
    --text-light: #9ca3af;
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    --shadow: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-sm: 0 1px 2px rgba(26,26,46,0.05);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 20px;
    --radius-full: 999px;

    /* 焦点环 */
    --ring: #2d6a4f;

    /* 文字层级（对比度已按 WCAG AA 校准） */
    --text-muted: #8b93a1;      /* 仅限占位符/装饰/大字号，禁止正文 */
    --danger-text: #c0492b;     /* 危险语义正文色（白字按钮底） */
    --success-text: #0f3d26;    /* 亮绿底上的深绿字 */

    /* 8dp 间距节奏 */
    --space-2xs: 4px;
    --space-xs: 8px;
    --space-sm: 12px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;

    /* 动效 token（CSS-first） */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --dur-fast: 150ms;
    --dur-base: 220ms;
    --dur-slow: 320ms;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", 
                 "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ===== 导航栏 ===== */
.navbar {
    background: var(--primary-dark);
    color: white;
    padding: 0 32px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(27, 67, 50, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-brand {
    font-size: 20px;
    font-weight: 700;
    display: flex;
    white-space: nowrap;
    flex-shrink: 0;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.5px;
}

.navbar-brand .logo {
    font-size: 26px;
}

.navbar-menu {
    display: flex;
    gap: 4px;
    list-style: none;
    /* 入口过多时横向滚动兜底（全档位生效，含桌面窄屏） */
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}
.navbar-menu::-webkit-scrollbar { display: none; }
.navbar-menu li { flex-shrink: 0; }

.navbar-menu a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.navbar-menu a:hover {
    background: rgba(255,255,255,0.12);
    color: white;
}

.navbar-menu a.active {
    background: rgba(255,255,255,0.2);
    color: white;
    font-weight: 600;
}

/* ===== 主容器 ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 28px;
}

/* ===== 卡片 ===== */
.card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    border: 1px solid var(--border-light);
}

.card-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
}

.card-title .icon {
    font-size: 20px;
}

/* ===== 倒计时横幅 ===== */
.countdown-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: var(--radius);
    padding: 36px 32px;
    text-align: center;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.countdown-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.countdown-banner h2 {
    font-size: 15px;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.countdown-days {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 10px;
    letter-spacing: -2px;
}

.countdown-days .unit {
    font-size: 22px;
    font-weight: 400;
    opacity: 0.85;
    margin-left: 4px;
    letter-spacing: 0;
}

.countdown-tip {
    font-size: 14px;
    opacity: 0.85;
    font-style: italic;
}

/* ===== 统计网格 ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 22px 20px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.25s;
    border: 1px solid var(--border-light);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.stat-card .stat-icon {
    font-size: 30px;
    margin-bottom: 8px;
}

.stat-card .stat-value {
    font-size: 30px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -1px;
}

.stat-card .stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.stat-card.warning .stat-value { color: var(--warning); }
.stat-card.success .stat-value { color: var(--success); }
.stat-card.danger .stat-value { color: var(--danger); }

/* ===== 按钮 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 22px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    font-weight: 500;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45, 106, 79, 0.3);
}

.btn-success {
    background: var(--success);
    color: var(--success-text); /* 亮绿底白字仅 2.5:1，改深绿字 5.2:1 ✅ */
    font-weight: 600;
}

.btn-success:hover {
    background: #40916c;
    color: #fff; /* #40916c 底白字大字号可用，配 600 字重 */
}

.btn-danger {
    background: var(--danger-text); /* 原 #e76f51 白字仅 3.3:1，改 #c0492b = 5.3:1 ✅ */
    color: white;
}

.btn-danger:hover {
    background: #a93d22;
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text);
}

.btn-outline:hover {
    background: var(--bg);
    border-color: var(--text-light);
}

.btn-accent {
    background: var(--accent-light);
    color: #92400e;
}

.btn-accent:hover {
    background: #f5e6c8;
}

.btn-sm {
    padding: 7px 14px;
    font-size: 13px;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 17px;
    border-radius: 12px;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* 移动端触摸目标 ≥44px（WCAG/平台规范），间距补偿由容器 gap 保证 */
@media (max-width: 900px) {
    .btn { min-height: 44px; }
    .btn-sm { min-height: 40px; padding: 8px 16px; }
}

/* 可交互卡片统一 hover 抬起（只用 transform+shadow，不引起布局位移） */
.card-interactive {
    transition: box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.card-interactive:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* ===== 进度条 ===== */
.progress-bar {
    height: 8px;
    background: #f0f2f5;
    border-radius: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-light), var(--primary-lighter));
    border-radius: 6px;
    transition: width 0.4s ease;
}

.progress-fill.success { background: linear-gradient(90deg, #52b788, #74c69d); }
.progress-fill.warning { background: linear-gradient(90deg, #f4a261, #e9c46a); }
.progress-fill.danger { background: linear-gradient(90deg, #e76f51, #f4a261); }

/* ===== 单词卡片 ===== */
.flashcard-container {
    max-width: 600px;
    margin: 30px auto;
}

.flashcard {
    background: white;
    border-radius: var(--radius);
    padding: 56px 32px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    min-height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    border: 1px solid var(--border-light);
}

.flashcard:hover {
    transform: scale(1.015);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.flashcard .word-main {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary-dark);
    letter-spacing: 1px;
}

.flashcard .word-phonetic {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-style: italic;
}

.flashcard .word-meaning {
    font-size: 22px;
    color: var(--text);
    line-height: 1.8;
}

.flashcard .word-example {
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-secondary);
    font-style: italic;
    border-top: 1px solid var(--border-light);
    padding-top: 18px;
    width: 100%;
    line-height: 1.7;
}

.flashcard .hint {
    position: absolute;
    bottom: 18px;
    font-size: 12px;
    color: #cbd5e1;
}

.flashcard-actions {
    display: flex;
    gap: 14px;
    margin-top: 28px;
    justify-content: center;
    flex-wrap: wrap;
}

.progress-indicator {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 500;
}

/* 单词学习模式切换 */
.mode-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.mode-tab {
    padding: 8px 20px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.mode-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ===== 古诗卡片 ===== */
.poem-card {
    background: white;
    border-radius: var(--radius);
    padding: 40px 36px;
    box-shadow: var(--shadow-lg);
    max-width: 750px;
    margin: 30px auto;
    border: 1px solid var(--border-light);
}

.poem-title {
    font-size: 30px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 6px;
    color: var(--primary-dark);
    letter-spacing: 2px;
}

.poem-author {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 28px;
    font-size: 15px;
}

.poem-content {
    font-size: 20px;
    line-height: 2.4;
    text-align: center;
    font-family: "KaiTi", "STKaiti", "楷体", serif;
    letter-spacing: 2px;
    margin-bottom: 28px;
    color: #2d3748;
}

.poem-translation {
    background: #f8fafc;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 14px;
    line-height: 1.8;
}

.poem-appreciation {
    background: var(--accent-light);
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: #92400e;
    line-height: 1.8;
}

.recite-input {
    width: 100%;
    min-height: 180px;
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 17px;
    font-family: "KaiTi", "STKaiti", "楷体", serif;
    line-height: 2;
    resize: vertical;
    letter-spacing: 1px;
}

.recite-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

/* ===== 阅读理解 ===== */
.reading-list {
    display: grid;
    gap: 14px;
}

.reading-item {
    background: white;
    border-radius: var(--radius-sm);
    padding: 20px 22px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-light);
}

.reading-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-lighter);
}

.reading-item-info h3 {
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 600;
}

.reading-item-meta {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.reading-item-status {
    text-align: right;
}

.reading-item-score {
    font-size: 18px;
    font-weight: 700;
    color: var(--success);
}

.difficulty-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.difficulty-easy { background: #dcfce7; color: #166534; }
.difficulty-medium { background: var(--accent-light); color: #92400e; }
.difficulty-hard { background: #fee2e2; color: #991b1b; }

.category-tag {
    display: inline-block;
    padding: 3px 10px;
    background: #e0f2fe;
    color: #075985;
    border-radius: 12px;
    font-size: 12px;
    margin-right: 6px;
    font-weight: 500;
}

.passage-container {
    max-width: 900px;
    margin: 0 auto;
}

.passage-content {
    background: white;
    border-radius: var(--radius);
    padding: 32px 36px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    line-height: 2.1;
    font-size: 16px;
    text-indent: 2em;
    border: 1px solid var(--border-light);
}

.passage-title {
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-dark);
    text-indent: 0;
}

.question-item {
    background: white;
    border-radius: var(--radius-sm);
    padding: 22px 24px;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
    border: 1px solid var(--border-light);
}

.question-text {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 14px;
    line-height: 1.6;
}

.options-list {
    list-style: none;
}

.option-item {
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 15px;
    line-height: 1.6;
}

.option-item:hover {
    border-color: var(--primary-lighter);
    background: #f0fdf4;
}

.option-item.selected {
    border-color: var(--primary);
    background: #ecfdf5;
    font-weight: 500;
}

.option-item.correct {
    border-color: var(--success);
    background: #dcfce7;
    color: #166534;
}

.option-item.wrong {
    border-color: var(--danger);
    background: #fee2e2;
    color: #991b1b;
}

.option-label {
    font-weight: 700;
    margin-right: 10px;
}

.question-analysis {
    margin-top: 14px;
    padding: 14px 16px;
    background: #f0fdf4;
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: #166534;
    display: none;
    line-height: 1.7;
}

.question-analysis.show {
    display: block;
}

.submit-bar {
    position: sticky;
    bottom: 20px;
    text-align: center;
    padding: 16px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    margin-top: 20px;
}

/* ===== 错题本 ===== */
.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--border-light);
    margin-bottom: 22px;
}

.tab {
    padding: 10px 22px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s;
    font-size: 15px;
}

.tab:hover {
    color: var(--primary);
}

.tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-bar select,
.filter-bar input {
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    background: white;
    font-family: inherit;
}

.filter-bar select:focus,
.filter-bar input:focus {
    outline: none;
    border-color: var(--primary);
}

.wrong-item {
    background: white;
    border-radius: var(--radius-sm);
    padding: 20px 22px;
    box-shadow: var(--shadow);
    margin-bottom: 14px;
    border: 1px solid var(--border-light);
    transition: all 0.2s;
}

.wrong-item:hover {
    box-shadow: var(--shadow-md);
}

.wrong-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.wrong-item-subject {
    display: flex;
    gap: 10px;
    align-items: center;
}

.wrong-count-badge {
    background: #fee2e2;
    color: #dc2626;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.wrong-item-date {
    font-size: 13px;
    color: var(--text-light);
}

.wrong-question {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 14px;
}

.wrong-answer {
    background: #ecfdf5;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 10px;
    line-height: 1.7;
}

.wrong-answer strong {
    color: #059669;
}

.wrong-analysis {
    background: #eff6ff;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.7;
    color: #1e40af;
}

.wrong-item-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    justify-content: flex-end;
}

/* ===== 图表区域 ===== */
.chart-container {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    border: 1px solid var(--border-light);
}

.chart-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 200px;
    padding: 10px 0;
}

.bar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.bar-fill {
    width: 100%;
    max-width: 40px;
    background: linear-gradient(to top, var(--primary), var(--primary-lighter));
    border-radius: 6px 6px 0 0;
    min-height: 3px;
    transition: height 0.5s ease;
}

.bar-label {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* 雷达图容器 */
.radar-chart {
    width: 300px;
    height: 300px;
    margin: 0 auto;
}

/* ===== 学习计划 ===== */
.plan-list {
    display: grid;
    gap: 10px;
}

.plan-item {
    background: white;
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s;
}

.plan-item:hover {
    box-shadow: var(--shadow-md);
}

.plan-checkbox {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: var(--primary);
}

.plan-text {
    flex: 1;
    font-size: 15px;
}

.plan-item.done .plan-text {
    text-decoration: line-through;
    color: var(--text-light);
}

.plan-time {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ===== 页面标题区 ===== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.page-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ===== 词书列表 ===== */
.wordbook-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.wordbook-item {
    background: white;
    border-radius: var(--radius-sm);
    padding: 20px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid var(--border-light);
}

.wordbook-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.wordbook-name {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
}

.wordbook-meta {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.wordbook-progress {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .navbar {
        padding: 0 16px;
        height: 56px;
    }
    
    .navbar-menu a {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .navbar-menu a span {
        display: none;
    }
    
    .container {
        padding: 16px;
    }
    
    .countdown-days {
        font-size: 48px;
    }
    
    .flashcard .word-main {
        font-size: 38px;
    }
    
    .poem-content {
        font-size: 17px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    [style*="grid-template-columns: 2fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

/* ===== 空状态 ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state .empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state .empty-text {
    font-size: 16px;
}

.empty-state .empty-desc {
    font-size: 14px;
    margin-top: 8px;
    opacity: 0.7;
}

/* ===== 加载动画 ===== */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== 提示消息 ===== */
.toast {
    position: fixed;
    top: 80px;
    right: 28px;
    padding: 12px 22px;
    border-radius: var(--radius-sm);
    color: white;
    font-size: 14px;
    z-index: 1000;
    animation: slideIn 0.3s ease;
    box-shadow: var(--shadow-lg);
    font-weight: 500;
}

.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.info { background: var(--primary); }

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== 悬浮提升效果 ===== */
.hover-lift {
    transition: transform 0.2s, box-shadow 0.2s;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* ===== 分隔线 ===== */
.divider {
    height: 1px;
    background: var(--border-light);
    margin: 20px 0;
}

/* ===== 徽章 ===== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.badge-primary { background: #dcfce7; color: #166534; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-info { background: #dbeafe; color: #1e40af; }

/* ===== 返回按钮 ===== */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s;
}

.back-btn:hover {
    background: var(--bg);
}
