/* ===================================================================
   VocabPro Design System v10.0
   设计语言：米白 + 雾霾蓝 + MiSans
   核心配色：雾霾蓝 #45637E · 米白底 #F4F1EA
   =================================================================== */

/*
  === v9.0 旧版（回滚用，删除上方注释块即可恢复）===
  @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Sans+SC:wght@400;500;700;800&display=swap');
  :root {
    --bg-primary: #F8F6F2;
    --bg-secondary: #F2EFEA;
    --bg-tertiary: #E8E4DD;
    --bg-card: #FFFFFF;
    --bg-elevated: #FFFFFF;
    --brand-primary: #4A7C9E;
    --brand-primary-hover: #3D6B8A;
    --brand-primary-light: #EEF4F8;
    --brand-primary-dark: #2D5A78;
    --accent-orange: #D4956A;
    --accent-green: #5A9E7D;
    --accent-red: #C4756B;
    --accent-yellow: #C9A96E;
    --accent-purple: #8B7AA8;
    --accent-teal: #5A9E9A;
    --text-primary: #1F2937;
    --text-secondary: #5C6675;
    --text-tertiary: #9CA3AF;
    --text-inverse: #FFFFFF;
    --text-hint: #5C6675;
    --accent: #4A7C9E;
    --accent-hover: #3D6B8A;
    --accent-light: #EEF4F8;
    --accent-subtle: rgba(69, 99, 126, 0.10);
    --success: #5A9E7D;
    --success-light: #E8F2ED;
    --info: #4A7C9E;
    --info-light: #EEF4F8;
    --warning: #C9A96E;
    --warning-light: #F5EFDF;
    --danger: #C4756B;
    --danger-light: #F2E5E2;
    --gradient-primary: linear-gradient(135deg, #45637E 0%, #6E8CA6 100%);
    --gradient-success: linear-gradient(135deg, #5A9E7D 0%, #7BB89A 100%);
    --gradient-bg: linear-gradient(180deg, #F8F6F2 0%, #F2EFEA 100%);
    --gradient-text: linear-gradient(135deg, #45637E 0%, #6E8CA6 100%);
    --gradient-progress: linear-gradient(90deg, #45637E 0%, #6E8CA6 100%);
    --gradient-warning: linear-gradient(135deg, #C9A96E 0%, #DDBE8A 100%);
    --border: #E5E7EB;
    --border-light: #F3F4F6;
    --border-medium: #E5E7EB;
    --font-serif: "Noto Sans SC", "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    --font-sans: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  }
  === 旧版结束 ===
*/

/* === MiSans 字体（自托管）=== */
@font-face {
  font-family: "MiSans";
  src: url("/static/fonts/MiSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "MiSans";
  src: url("/static/fonts/MiSans-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "MiSans";
  src: url("/static/fonts/MiSans-Semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "MiSans";
  src: url("/static/fonts/MiSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* === 背景色 - 米白 === */
  --bg-primary: #F4F1EA;
  --bg-secondary: #EDE9E0;
  --bg-tertiary: #E3DFD5;
  --bg-card: #FCFBF7;
  --bg-elevated: #FCFBF7;

  /* === 品牌色 - 雾霾蓝 === */
  --brand-primary: #6E8CA6;
  --brand-primary-hover: #45637E;
  --brand-primary-light: #EEF4F8;
  --brand-primary-dark: #35506A;

  /* === 辅助色 - 低饱和度 === */
  --accent-orange: #D4956A;
  --accent-green: #2F7D5B;
  --accent-red: #B4452F;
  --accent-yellow: #C9A96E;
  --accent-purple: #8B7AA8;
  --accent-teal: #5A9E9A;

  /* === 文字色 === */
  --text-primary: #1E2024;
  --text-secondary: #5C5F66;
  --text-tertiary: #646B78;
  --text-inverse: #FFFFFF;
  --text-hint: #5C5F66;

  /* === 强调色 - 兼容旧变量 === */
  --accent: #45637E;
  --accent-hover: #35506A;
  --accent-light: #EEF4F8;
  --accent-subtle: rgba(69, 99, 126, 0.10);

  /* === 功能色 === */
  --success: #2A6E50;
  --success-light: #E8F2ED;
  --info: #45637E;
  --info-light: #EEF4F8;
  --warning: #876530;
  --warning-light: #F5EFDF;
  --danger: #B4452F;
  --danger-light: #F2E5E2;

  /* === 渐变 - 品牌色单色（禁止渐变色）=== */
  --gradient-primary: #45637E;
  --gradient-success: #2A6E50;
  --gradient-bg: #F4F1EA;
  --gradient-text: #45637E;
  --gradient-progress: #45637E;
  --gradient-warning: #876530;

  /* === 边框 === */
  --border: #E3DFD5;
  --border-light: #EDE9E0;
  --border-medium: #E3DFD5;

  /* === 字体栈 - MiSans === */
  --font-serif: "NotoSerifSC", "Songti SC", serif;
  --font-sans: "MiSans", "PingFang SC", -apple-system, BlinkMacSystemFont, "Microsoft YaHei", sans-serif;

  /* === 字号 - 清晰层级 === */
  --text-xs: 12px;
  --text-sm: 13px;
  --text-base: 15px;
  --text-lg: 17px;
  --text-xl: 22px;
  --text-2xl: 28px;
  --text-3xl: 36px;

  /* === 字重 === */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* === 行高 - 舒适阅读 === */
  --leading-tight: 1.3;
  --leading-normal: 1.6;
  --leading-relaxed: 1.8;

  /* === 间距系统（基础单位 4px）=== */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 28px;
  --space-8: 36px;
  --space-10: 48px;
  --space-12: 60px;
  --space-16: 80px;

  /* === 页面/卡片间距 - 呼吸感 === */
  --page-padding: 20px;
  --card-gap: 16px;
  --card-padding: 24px;
  --section-gap: 32px;

  /* === 圆角 - 圆润克制 === */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* === 阴影 - 柔和自然 === */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.03);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.05);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.07);
  --shadow-card: 0 2px 12px rgba(0,0,0,0.04);
  --shadow-card-hover: 0 8px 28px rgba(20, 22, 28, 0.12);
  --shadow-button: 0 4px 16px rgba(20, 22, 28, 0.25);
  --shadow-elevated: 0 16px 40px rgba(0,0,0,0.08);

  /* === 过渡 - 自然流畅 === */
  --transition-fast: 180ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);

  /* === 焦点环（可达性）=== */
  --focus-ring: 0 0 0 3px rgba(20, 22, 28, 0.45);

  /* === 兼容别名 === */
  --font-family: var(--font-sans);
  --font-size-xl: var(--text-xl);
  --font-size-lg: var(--text-lg);
  --font-size-base: var(--text-base);
  --font-size-sm: var(--text-sm);
  --font-size-xs: var(--text-xs);
  --font-weight-bold: var(--font-bold);
  --font-weight-semibold: var(--font-semibold);
  --font-weight-medium: var(--font-medium);
  --font-weight-normal: var(--font-normal);
  --space-page: var(--page-padding);
  --space-card: var(--card-gap);
  --space-section: var(--space-6);
  --space-inner: var(--space-4);
  --space-item: var(--space-2);
  --radius-card: var(--radius-lg);
  --radius-button: var(--radius-md);
  --radius-input: var(--radius-md);
  --radius-tag: var(--radius-sm);
  --radius-avatar: 50%;
  --text-disabled: var(--text-tertiary);
  --accent-dark: var(--brand-primary-dark);
  --bg-page: var(--bg-primary);

  /* === 旧变量名映射 === */
  --primary: var(--text-primary);
  --primary-light: var(--brand-primary-light);
  --bg: var(--bg-primary);
  --card: var(--bg-card);
  --text-sec: var(--text-secondary);
  --text-tri: var(--text-tertiary);
  --radius: var(--radius-lg);
  --shadow: var(--shadow-sm);
  --shadow-glow: var(--shadow-md);
  --shadow-lg: var(--shadow-elevated);
  --success-light-bg: var(--success-light);
  --danger-light-bg: var(--danger-light);
  --purple: #9B8AB3;
  --gradient-secondary: var(--gradient-primary);
  --gradient-breakthrough: var(--gradient-primary);
  --gradient-accent: var(--gradient-primary);
}

/* === 深色主题 (VocabPro v10.0) === */
[data-theme="dark"] {
  --bg-primary: #171A1F;
  --bg-secondary: #1E222A;
  --bg-tertiary: #262B34;
  --bg-card: #1F242C;
  --bg-elevated: #262B34;

  --brand-primary: #6BA6C9;
  --brand-primary-hover: #82B8D6;
  --brand-primary-light: #1C2A33;
  --brand-primary-dark: #A6CFE6;
  --accent: #6BA6C9;
  --accent-hover: #82B8D6;
  --accent-light: #1C2A33;
  --accent-subtle: rgba(107, 166, 201, 0.16);

  --text-primary: #ECEFF3;
  --text-secondary: #AAB3C0;
  --text-tertiary: #6E7884;
  --text-inverse: #171A1F;
  --text-hint: #AAB3C0;

  --success: #6FB593;
  --success-light: #163023;
  --info: #6BA6C9;
  --info-light: #16242E;
  --warning: #D9BE86;
  --warning-light: #2E2716;
  --danger: #D98B82;
  --danger-light: #2E1C1A;

  --border: #2C323B;
  --border-light: #232830;
  --border-medium: #2C323B;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.55);
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.35);
  --shadow-card-hover: 0 8px 28px rgba(20, 22, 28, 0.18);
  --shadow-button: 0 4px 16px rgba(20, 22, 28, 0.3);
  --shadow-elevated: 0 16px 40px rgba(0, 0, 0, 0.6);

  --gradient-primary: #6BA6C9;
  --gradient-success: #6FB593;
  --gradient-text: #6BA6C9;
  --gradient-progress: #6BA6C9;
  --gradient-bg: #171A1F;
  --gradient-warning: #D9BE86;
}

/* === 主题切换 & 跳转链接 === */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--brand-primary);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  transition: top var(--transition-fast);
}
.skip-link:focus { top: 16px; }

.theme-toggle {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 200;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--text-secondary);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}
.theme-toggle:hover { color: var(--brand-primary); border-color: var(--brand-primary); transform: translateY(-1px); }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* === Reset & Base === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: var(--leading-normal);
  min-height: 100vh;
  padding-bottom: 80px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* === Typography - 清晰层级 === */
.text-xl { font-size: var(--text-xl); font-weight: var(--font-semibold); line-height: var(--leading-tight); }
.text-lg { font-size: var(--text-lg); font-weight: var(--font-semibold); line-height: 1.4; }
.text-base { font-size: var(--text-base); font-weight: var(--font-normal); line-height: var(--leading-normal); }
.text-sm { font-size: var(--text-sm); font-weight: var(--font-normal); line-height: 1.5; }
.text-xs { font-size: var(--text-xs); font-weight: var(--font-normal); line-height: 1.4; }
.text-secondary { color: var(--text-secondary); }
.text-disabled { color: var(--text-tertiary); }

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-semibold);
  line-height: var(--leading-tight);
  letter-spacing: -0.01em;
}

p {
  line-height: var(--leading-normal);
}

/* === Layout - 呼吸感 === */
.container {
  max-width: 640px;
  margin: 0 auto;
  padding: var(--page-padding);
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .container { max-width: 720px; padding: calc(var(--page-padding) * 1.5); }
}

@media (min-width: 1024px) {
  .container { max-width: 900px; }
}

/* === Navigation Bar - 简约通透 === */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 241, 234, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition-base);
}

.navbar.scrolled {
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}

.navbar-brand {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.navbar-title {
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  color: var(--text-primary);
}

.navbar-actions {
  display: flex;
  gap: var(--space-3);
  align-items: center;
}

/* === Card Base - 极简质感 === */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--card-padding);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card::before {
  display: none;
}

.card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
  border-color: rgba(20, 22, 28, 0.15);
}

.card-title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  letter-spacing: -0.01em;
}

.card-hover:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

/* === Numbered Card === */
.card-numbered {
  background: var(--bg-card);
  border: none;
  border-radius: var(--radius-lg);
  padding: var(--card-padding);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
  cursor: pointer;
}

.card-numbered::before {
  content: attr(data-number);
  position: absolute;
  left: var(--card-padding);
  top: 50%;
  transform: translateY(-50%);
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.15;
}

.card-numbered:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateX(4px);
}

.card-numbered-content {
  flex: 1;
  margin-left: 56px;
}

.card-numbered-title {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
}

.card-numbered-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-top: 2px;
}

.card-numbered-arrow {
  color: var(--text-tertiary);
  font-size: 18px;
  transition: all var(--transition-fast);
}

.card-numbered:hover .card-numbered-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

/* === Button Components === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: 40px;
  padding: 0 var(--space-5);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: left var(--transition-slow);
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  display: block;
  width: 100%;
  padding: 14px 24px;
  background: var(--gradient-primary);
  color: var(--text-inverse);
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
  box-shadow: var(--shadow-button);
  transition: all var(--transition-base);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
  display: block;
  width: 100%;
  padding: 14px 24px;
  background: rgba(102, 126, 234, 0.08);
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn-secondary:hover {
  background: rgba(102, 126, 234, 0.15);
  border-color: rgba(102, 126, 234, 0.35);
}

.btn-danger {
  background: var(--danger);
  color: var(--text-inverse);
}

.btn-danger:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

.btn-disabled {
  background: var(--border);
  color: var(--text-tertiary);
  cursor: not-allowed;
}

.btn-full { width: 100%; }
.btn-sm { height: 34px; padding: 0 14px; font-size: var(--text-sm); }

.btn-text {
  padding: var(--space-2) var(--space-3);
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: var(--text-base);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.btn-text:hover {
  color: var(--text-primary);
}

.btn-small {
  padding: 6px 12px;
  background: var(--gradient-primary);
  color: var(--text-inverse);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.25);
  transition: all var(--transition-fast);
}

.btn-small:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
}

/* === Form Components === */
.form-group {
  margin-bottom: var(--card-gap);
}

.form-label {
  display: block;
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-family: inherit;
  background-color: var(--bg-card);
  transition: all var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.form-input::placeholder {
  color: var(--text-tertiary);
}

/* === Stats Grid === */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--card-gap);
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stat-cell {
  text-align: center;
  padding: var(--card-padding) var(--space-3);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.stat-number {
  font-size: var(--text-3xl);
  font-weight: var(--font-semibold);
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-1);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* === Stat Card === */
.stat-card {
  background: var(--bg-card);
  border: none;
  border-radius: var(--radius-lg);
  padding: var(--card-padding);
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--gradient-primary);
  transition: width var(--transition-base);
}

.stat-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.stat-card:hover::after {
  width: 100%;
}

.stat-value {
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: var(--leading-tight);
}

/* === Metrics === */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--card-gap);
}

.metric {
  background: var(--bg-card);
  border: none;
  border-radius: var(--radius-lg);
  padding: var(--card-padding);
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
}

.metric:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.metric-value {
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: var(--leading-tight);
}

.metric-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-top: 6px;
}

/* === Bottom Navigation - 简约精致 === */
.tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 68px;
  background: rgba(252, 251, 247, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid rgba(0,0,0,0.04);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom);
}

.tab-item {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-tertiary);
  font-size: 11px;
  cursor: pointer;
  padding: 8px 0;
  text-decoration: none;
  font-weight: var(--font-medium);
  transition: color var(--transition-fast);
  position: relative;
  min-height: 44px;
}

.tab-item.active {
  color: var(--brand-primary);
}

.tab-item i {
  font-size: 22px;
  transition: transform var(--transition-fast);
}

.tab-item.active i {
  transform: translateY(-1px);
}

/* === Menu List - 极简列表 === */
.menu-list {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  min-height: 56px;
}

.menu-item::before {
  display: none;
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item:hover {
  background-color: var(--bg-secondary);
}

.menu-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  color: var(--accent);
  flex-shrink: 0;
}

.menu-content { flex: 1; }

.menu-title {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
}

.menu-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-top: 2px;
}

.menu-arrow {
  color: var(--text-tertiary);
  font-size: 18px;
  transition: all var(--transition-fast);
}

.menu-item:hover .menu-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

/* === List Item === */
.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border-light);
}

.list-item:last-child {
  border-bottom: none;
}

/* === Alert === */
.alert {
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  margin-bottom: var(--card-gap);
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.alert-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.alert-content { flex: 1; }

.alert-title {
  font-weight: var(--font-semibold);
  margin-bottom: 2px;
}

.alert-success {
  background-color: var(--success-light);
  color: var(--success);
  border: 1px solid var(--success);
}

.alert-warning {
  background-color: var(--warning-light);
  color: var(--warning);
  border: 1px solid var(--warning);
}

.alert-danger {
  background-color: var(--danger-light);
  color: var(--danger);
  border: 1px solid var(--danger);
}

/* === Empty State === */
.empty-state {
  text-align: center;
  padding: calc(var(--space-6) * 2) 0;
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: var(--space-4);
  color: var(--text-tertiary);
  opacity: 0.6;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.empty-title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.empty-desc {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

/* === Avatar === */
.avatar {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-avatar);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--text-inverse);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
  transition: all var(--transition-fast);
}

.avatar:hover { transform: scale(1.05); }
.avatar-sm { width: 40px; height: 40px; font-size: var(--text-base); }

/* === Tab Switch === */
.tab-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  margin-bottom: var(--card-gap);
}

.tab-switch-item {
  padding: var(--space-3);
  border-radius: var(--radius-md);
  text-align: center;
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.tab-switch-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.tab-switch-item.active { color: var(--text-inverse); }
.tab-switch-item.active::before { opacity: 1; }
.tab-switch-item.active span { position: relative; z-index: 1; }

.tab-switch-item:not(.active) {
  background-color: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.tab-switch-item:not(.active):hover {
  border-color: var(--accent);
  background-color: var(--bg-secondary);
}

/* === Tag === */
.tag {
  display: inline-block;
  padding: 4px 8px;
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.tag-default {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.tag-accent { background: var(--gradient-primary); color: var(--text-inverse); }
.tag-success { background: var(--gradient-success); color: var(--text-inverse); }
.tag-warning { background: var(--gradient-warning); color: var(--text-inverse); }
.tag-danger { background: var(--danger); color: var(--text-inverse); }
.tag-info { background: var(--gradient-primary); color: var(--text-inverse); }
.tag:hover { transform: translateY(-1px); }

/* === Progress Bar === */
.progress-bar {
  height: 8px;
  background: var(--border-light);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-progress);
  border-radius: 4px;
  transition: width 0.5s ease;
}

/* === Section Title === */
.section-title {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-tertiary);
  margin-bottom: var(--space-4);
  font-weight: var(--font-semibold);
}

/* === Footer === */
.footer {
  text-align: center;
  padding: var(--space-6) var(--page-padding);
  color: var(--text-tertiary);
  font-size: var(--text-xs);
}

.footer a {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.footer a:hover { opacity: 0.8; }

/* === Table === */
.table {
  width: 100%;
  border-collapse: collapse;
}

.table th {
  text-align: left;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--text-secondary);
  padding: var(--space-2) var(--space-4);
  border-bottom: 2px solid var(--border);
}

.table td {
  font-size: var(--text-base);
  color: var(--text-primary);
  padding: var(--card-gap) var(--space-4);
  border-bottom: 1px solid var(--border-light);
  transition: background-color var(--transition-fast);
}

.table tbody tr:hover td { background-color: var(--bg-secondary); }

/* === Word Card === */
.word-card {
  background: var(--bg-card);
  border: none;
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  margin-bottom: var(--card-gap);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.word-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, var(--accent-light) 0%, transparent 70%);
  opacity: 0.5;
}

.word-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.word-text {
  font-size: 2.25rem;
  font-weight: var(--font-bold);
  color: var(--text-primary);
  position: relative;
  z-index: 1;
}

.word-phonetic {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin-top: 6px;
  position: relative;
  z-index: 1;
}

.word-meaning {
  font-size: var(--text-lg);
  color: var(--text-primary);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-light);
  position: relative;
  z-index: 1;
}

/* === Rating Buttons === */
.rating-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
}

.rating-btn {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  cursor: pointer;
  border: 1px solid;
  transition: all var(--transition-fast);
  text-align: center;
}

.rating-btn.know {
  border-color: var(--success);
  color: var(--success);
  background-color: var(--success-light);
}

.rating-btn.know:hover {
  background-color: var(--success);
  color: var(--text-inverse);
  transform: translateY(-1px);
}

.rating-btn.fuzzy {
  border-color: var(--warning);
  color: var(--warning);
  background-color: var(--warning-light);
}

.rating-btn.fuzzy:hover {
  background-color: var(--warning);
  color: var(--text-inverse);
  transform: translateY(-1px);
}

.rating-btn.forget {
  border-color: var(--danger);
  color: var(--danger);
  background-color: var(--danger-light);
}

.rating-btn.forget:hover {
  background-color: var(--danger);
  color: var(--text-inverse);
  transform: translateY(-1px);
}

.rating-btn.skip {
  border-style: dashed;
  border-color: var(--border);
  color: var(--text-tertiary);
}

.rating-btn.skip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* === Option Button === */
.option-btn {
  display: block;
  width: 100%;
  padding: var(--space-4);
  margin-bottom: var(--space-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background-color: var(--bg-card);
  font-size: var(--text-base);
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.option-btn:hover {
  border-color: var(--accent);
  background-color: var(--bg-secondary);
  transform: translateX(4px);
}

.option-btn.correct {
  border-color: var(--success);
  background-color: var(--success-light);
  animation: correctPulse 0.5s ease-out;
}

@keyframes correctPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.option-btn.wrong {
  border-color: var(--danger);
  background-color: var(--danger-light);
}

/* === Auth Page === */
.auth-container {
  min-height: calc(100vh - 72px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  background: var(--gradient-bg);
  position: relative;
}

.auth-card {
  width: 100%;
  max-width: 380px;
  background-color: var(--bg-card);
  border: none;
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-elevated);
  animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-header {
  text-align: center;
  margin-bottom: var(--space-6);
}

.auth-title {
  font-size: 2rem;
  font-weight: var(--font-bold);
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-subtitle {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin-top: 6px;
}

/* === Breakthrough Zone Card === */
.breakthrough-card {
  background: var(--accent-light);
  border: none;
  position: relative;
  overflow: hidden;
}

.breakthrough-card::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 50%;
  height: 50%;
  background: radial-gradient(circle, var(--accent-subtle) 0%, transparent 70%);
}

/* === Utility === */
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.text-center { text-align: center; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }

/* === AI / Gradient Utilities === */
.gradient-text {
  display: inline-block;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.gradient-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-inverse);
  font-size: var(--text-lg);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

.gradient-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: var(--gradient-primary);
  color: var(--text-inverse);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.25);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.gradient-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(102, 126, 234, 0.35);
}

.gradient-tag:nth-child(odd) { transform: translateY(-2px); }
.gradient-tag:nth-child(even) { transform: translateY(2px); }

.ring-progress {
  position: relative;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.ring-progress svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-progress circle {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
}

.ring-progress .ring-track { stroke: var(--border-light); }
.ring-progress .ring-fill {
  stroke: url(#ring-gradient);
  transition: stroke-dashoffset 0.6s ease;
}

.ai-pulse { animation: aiPulse 2s ease-in-out infinite; }

@keyframes aiPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.35);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    transform: scale(1.02);
  }
}

.ai-shimmer {
  position: relative;
  overflow: hidden;
}

.ai-shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: aiShimmer 2s infinite;
}

@keyframes aiShimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* === Responsive Grid === */
.grid {
  display: grid;
  gap: var(--card-gap);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* === Breakthrough Zone === */
.breakthrough-zone {
  background: var(--accent-light);
  border: none;
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  position: relative;
  overflow: hidden;
}

.breakthrough-zone::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, var(--accent-subtle) 0%, transparent 70%);
  border-radius: 50%;
}

.breakthrough-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-6);
  position: relative;
  z-index: 1;
}

.breakthrough-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.breakthrough-title-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-inverse);
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

.breakthrough-label {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--text-primary);
}

.breakthrough-subtitle {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-top: 2px;
}

.breakthrough-tag {
  background: var(--gradient-primary);
  color: var(--text-inverse);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
}

.breakthrough-content {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  position: relative;
  z-index: 1;
}

.breakthrough-level { flex: 1; text-align: center; }

.breakthrough-level-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.breakthrough-level-value {
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  color: var(--text-primary);
}

.breakthrough-arrow {
  font-size: var(--text-2xl);
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.8;
}

.breakthrough-target { flex: 1; text-align: center; }

.breakthrough-target-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.breakthrough-target-value {
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.breakthrough-stars {
  font-size: var(--text-2xl);
  text-align: center;
  margin: var(--card-gap) 0;
  position: relative;
  z-index: 1;
}

.breakthrough-stars .filled { color: #F59E0B; }
.breakthrough-stars .empty { color: var(--border); }

.breakthrough-progress { position: relative; z-index: 1; }

.breakthrough-progress-bar {
  height: 8px;
  background: var(--border-light);
  border-radius: 4px;
  overflow: hidden;
}

.breakthrough-progress-fill {
  height: 100%;
  background: var(--gradient-progress);
  border-radius: 4px;
  transition: width 0.5s ease-out;
}

.breakthrough-progress-label {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  text-align: center;
  margin-top: 6px;
}

/* === Personalization Badge === */
.personalized-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  color: var(--accent);
  font-weight: var(--font-medium);
}

.personalized-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--gradient-primary);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

/* === Student Card === */
.student-card {
  background: var(--bg-card);
  border: none;
  border-radius: var(--radius-lg);
  padding: var(--card-padding);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
  cursor: pointer;
}

.student-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.student-header {
  display: flex;
  align-items: center;
  gap: var(--card-gap);
  margin-bottom: var(--card-gap);
}

.student-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-avatar);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-inverse);
  font-weight: var(--font-bold);
  font-size: var(--text-base);
}

.student-info { flex: 1; }

.student-name {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
}

.student-class {
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

.student-stats {
  display: flex;
  gap: var(--space-6);
}

.student-stat { text-align: center; flex: 1; }

.student-stat-value {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.student-stat-label {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin-top: 2px;
}

/* === Difficulty Indicator === */
.difficulty-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
}

.difficulty-easy {
  background: var(--success-light);
  color: var(--success);
  border: 1px solid var(--success);
}

.difficulty-medium {
  background: var(--warning-light);
  color: var(--warning);
  border: 1px solid var(--warning);
}

.difficulty-hard {
  background: var(--danger-light);
  color: var(--danger);
  border: 1px solid var(--danger);
}

.difficulty-breakthrough {
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid var(--accent-subtle);
}

/* === Achievement Badges === */
.achievement-badge {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: none;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
}

.achievement-badge:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-card-hover);
}

.achievement-icon {
  font-size: 28px;
  margin-bottom: 4px;
}

.achievement-name {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  text-align: center;
}

.achievement-unlocked {
  border: 1px solid var(--accent);
  background: var(--accent-light);
}

.achievement-locked {
  opacity: 0.5;
  filter: grayscale(1);
}

/* === Focus styles === */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  box-shadow: var(--focus-ring);
}

/* === Selection color === */
::selection {
  background-color: var(--accent-subtle);
  color: var(--text-primary);
}

/* === Responsive - Mobile === */
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: 1fr; }
  .rating-grid { grid-template-columns: repeat(2, 1fr); }
  .breakthrough-content { flex-direction: column; gap: var(--space-4); }
  .breakthrough-arrow { transform: rotate(90deg); }
  .container { padding: var(--space-3); }
  .word-text { font-size: 1.75rem; }
  .auth-title { font-size: 1.5rem; }
  .btn { min-height: 44px; }
  .btn-sm { min-height: 40px; height: 40px; }
  .input, .select, textarea { min-height: 44px; font-size: 16px; }
  .menu-item { min-height: 48px; }
  .tab-bar { height: 64px; }
  .tab-item { min-height: 48px; font-size: 10px; }
  .tab-item i { font-size: 20px; }
}

.landing-theme {
  --landing-bg-primary: #F4F1EA;
  --landing-bg-secondary: #EDE9E0;
  --landing-bg-card: #FCFBF7;
  --landing-text-primary: #1E2024;
  --landing-text-secondary: #5C5F66;
  --landing-text-tertiary: #646B78;
  --landing-border: #E3DFD5;
  --landing-border-light: #EDE9E0;
  --landing-accent: #45637E;
  --landing-accent-light: rgba(69, 99, 126, 0.1);
  --landing-gradient-cta: #45637E;
}

.landing-theme .landing-page {
  background: var(--landing-bg-primary);
  color: var(--landing-text-primary);
  font-family: var(--font-sans);
  min-height: 100vh;
  line-height: var(--leading-relaxed);
}

.landing-theme .landing-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 251, 247, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--landing-border-light);
  padding: 18px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition-base);
}

.landing-theme .landing-nav-logo {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--landing-text-primary);
  letter-spacing: 0.5px;
}

.landing-theme .landing-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--landing-border);
  background: transparent;
  color: var(--landing-text-primary);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.landing-theme .landing-nav-btn:hover {
  border-color: var(--landing-accent);
  color: var(--landing-accent);
  background: var(--landing-accent-light);
}

.landing-theme .landing-hero {
  padding: 100px 32px 80px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.landing-theme .landing-hero-title {
  font-family: var(--font-serif);
  font-size: 56px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--landing-text-primary);
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.landing-theme .landing-hero-subtitle {
  font-size: 18px;
  color: var(--landing-text-secondary);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 40px;
}

.landing-theme .landing-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 40px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: var(--landing-gradient-cta);
  color: #FFFFFF;
  transition: all var(--transition-base);
  text-decoration: none;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 20px rgba(139, 157, 195, 0.3);
}

.landing-theme .landing-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(139, 157, 195, 0.4);
}

.landing-theme .landing-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 40px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--landing-border);
  background: transparent;
  color: var(--landing-text-primary);
  transition: all var(--transition-base);
  text-decoration: none;
  letter-spacing: 0.3px;
}

.landing-theme .landing-btn-secondary:hover {
  border-color: var(--landing-accent);
  color: var(--landing-accent);
  background: var(--landing-accent-light);
}

.landing-theme .landing-section {
  padding: 80px 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.landing-theme .landing-section-kicker {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--landing-accent);
  margin-bottom: 16px;
}

.landing-theme .landing-section-title {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--landing-text-primary);
  margin-bottom: 20px;
  letter-spacing: -0.3px;
}

.landing-theme .landing-card {
  background: var(--landing-bg-card);
  border: 1px solid var(--landing-border);
  border-radius: 12px;
  padding: 32px;
  transition: all var(--transition-base);
  box-shadow: 0 2px 8px rgba(44, 44, 44, 0.04);
}

.landing-theme .landing-card:hover {
  border-color: var(--landing-accent);
  box-shadow: 0 8px 32px rgba(44, 44, 44, 0.06);
  transform: translateY(-4px);
}

.landing-theme .landing-card-numbered {
  background: var(--landing-bg-card);
  border: 1px solid var(--landing-border);
  border-radius: 12px;
  padding: 32px;
  position: relative;
  transition: all var(--transition-base);
  box-shadow: 0 2px 8px rgba(44, 44, 44, 0.04);
}

.landing-theme .landing-card-numbered::before {
  content: attr(data-number);
  font-family: var(--font-serif);
  font-size: 72px;
  font-weight: 600;
  color: var(--landing-accent);
  opacity: 0.08;
  position: absolute;
  top: 12px;
  right: 24px;
  line-height: 1;
}

.landing-theme .landing-card-numbered:hover {
  border-color: var(--landing-accent);
  box-shadow: 0 8px 32px rgba(44, 44, 44, 0.06);
  transform: translateY(-4px);
}

.landing-theme .landing-footer {
  padding: 60px 32px 40px;
  border-top: 1px solid var(--landing-border-light);
  background: var(--landing-bg-secondary);
  text-align: center;
  color: var(--landing-text-tertiary);
  font-size: 14px;
}

.landing-theme .landing-footer a {
  color: var(--landing-text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.landing-theme .landing-footer a:hover {
  color: var(--landing-accent);
}

@media (max-width: 768px) {
  .landing-theme .landing-nav {
    padding: 14px 20px;
  }

  .landing-theme .landing-nav-logo {
    font-size: 18px;
  }

  .landing-theme .landing-nav-btn {
    height: 36px;
    padding: 0 16px;
    font-size: 13px;
  }

  .landing-theme .landing-hero {
    padding: 60px 20px 50px;
  }

  .landing-theme .landing-hero-title {
    font-size: 36px;
  }

  .landing-theme .landing-hero-subtitle {
    font-size: 16px;
    margin-bottom: 32px;
  }

  .landing-theme .landing-btn-primary,
  .landing-theme .landing-btn-secondary {
    height: 48px;
    padding: 0 28px;
    font-size: 15px;
  }

  .landing-theme .landing-section {
    padding: 50px 20px;
  }

  .landing-theme .landing-section-title {
    font-size: 28px;
  }

  .landing-theme .landing-card,
  .landing-theme .landing-card-numbered {
    padding: 24px;
  }

  .landing-theme .landing-card-numbered::before {
    font-size: 56px;
    top: 8px;
    right: 16px;
  }

  .landing-theme .landing-footer {
    padding: 40px 20px 30px;
  }
}

/* ===================================================================
   MiMo 统一组件样式
   =================================================================== */

/* === 卡片组件 === */
.mimo-card {
  background: var(--bg-card);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  padding: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mimo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(20, 22, 28, 0.15);
}

/* === 按钮组件 === */
.mimo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  font-family: inherit;
  transition: all 0.2s ease;
}

.mimo-btn:active {
  transform: scale(0.98);
}

.mimo-btn-primary {
  background: var(--gradient-primary);
  color: var(--text-inverse);
  border-radius: 12px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(20, 22, 28, 0.3);
}

.mimo-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(20, 22, 28, 0.4);
}

.mimo-btn-secondary {
  background: var(--bg-card);
  color: var(--brand-primary);
  border: 1px solid var(--brand-primary);
  border-radius: 12px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
}

.mimo-btn-secondary:hover {
  background: var(--brand-primary-light);
  border-color: var(--brand-primary-hover);
}

.mimo-btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

/* === 输入框组件 === */
.mimo-input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border-medium);
  padding: 12px 16px;
  font-size: 14px;
  font-family: inherit;
  background-color: var(--bg-card);
  color: var(--text-primary);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.mimo-input:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px var(--brand-primary-light);
}

.mimo-input::placeholder {
  color: var(--text-tertiary);
}

/* === 进度条组件 === */
.mimo-progress {
  height: 8px;
  background: var(--border-light);
  border-radius: 999px;
  overflow: hidden;
}

.mimo-progress-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 999px;
  transition: width 0.5s ease;
}

/* ===================================================================
   动画过渡与细节优化
   =================================================================== */

/* === 页面淡入动画 === */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === 动画工具类 === */
.animate-fade-in { animation: fadeIn 0.4s ease-out; }
.animate-fade-in-up { animation: fadeInUp 0.5s ease-out; }
.animate-fade-in-down { animation: fadeInDown 0.5s ease-out; }
.animate-fade-in-left { animation: fadeInLeft 0.5s ease-out; }
.animate-fade-in-right { animation: fadeInRight 0.5s ease-out; }
.animate-scale-in { animation: scaleIn 0.3s ease-out; }
.animate-slide-up { animation: slideUp 0.5s ease-out; }
.animate-slide-down { animation: slideDown 0.3s ease-out; }

/* === 延迟动画 === */
.animate-delay-100 { animation-delay: 100ms; animation-fill-mode: both; }
.animate-delay-200 { animation-delay: 200ms; animation-fill-mode: both; }
.animate-delay-300 { animation-delay: 300ms; animation-fill-mode: both; }
.animate-delay-400 { animation-delay: 400ms; animation-fill-mode: both; }
.animate-delay-500 { animation-delay: 500ms; animation-fill-mode: both; }

/* === 按钮点击反馈 === */
.btn:active,
.mimo-btn:active,
.landing-btn-primary:active,
.landing-btn-secondary:active,
.landing-nav-btn:active,
.landing-nav-btn-primary:active {
  transform: scale(0.98);
}

.btn-primary:active,
.btn-secondary:active,
.mimo-btn-primary:active,
.mimo-btn-secondary:active {
  transform: scale(0.98);
  box-shadow: 0 2px 8px rgba(20, 22, 28, 0.2);
}

/* === 卡片 Hover 动效 === */
.card:hover,
.mimo-card:hover,
.stat-card:hover,
.metric:hover,
.student-card:hover,
.feature-card:hover,
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

/* === 交互元素过渡 === */
a, button, .menu-item, .card-numbered,
.class-option, .type-option, .mode-option,
.tag, .gradient-tag, .achievement-badge,
.rating-btn, .option-btn, .btn-text {
  transition: all var(--transition-fast);
}

/* === 输入框聚焦过渡 === */
.form-input:focus,
.mimo-input:focus,
.type-select:focus,
.topic-input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px var(--brand-primary-light);
}

/* === 进度条圆角端点优化 === */
.progress-bar,
.mimo-progress,
.breakthrough-progress-bar {
  height: 8px;
  background: var(--border-light);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill,
.mimo-progress-fill,
.breakthrough-progress-fill {
  height: 100%;
  background: var(--gradient-progress);
  border-radius: 999px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.progress-fill::after,
.mimo-progress-fill::after,
.breakthrough-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 8px;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 999px;
}

/* === 图标跳动/脉冲动画 === */
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

@keyframes bounce-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-pulse { animation: pulse 2s ease-in-out infinite; }
.animate-bounce-soft { animation: bounce-soft 2s ease-in-out infinite; }
.animate-spin { animation: spin 1s linear infinite; }

/* === 卡片入场交错动画 === */
.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.1s; }
.stagger-3 { animation-delay: 0.15s; }
.stagger-4 { animation-delay: 0.2s; }
.stagger-5 { animation-delay: 0.25s; }
.stagger-6 { animation-delay: 0.3s; }

/* === 滚动条美化(webkit) === */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
  transition: background var(--transition-fast);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary);
}

/* === 选中文本颜色 === */
::selection {
  background: var(--brand-primary-light);
  color: var(--brand-primary-dark);
}

/* === 焦点样式优化 === */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
  box-shadow: var(--focus-ring);
}

/* === 禁用状态 === */
button:disabled,
.btn:disabled,
.mimo-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* === 标签hover上浮 === */
.tag:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.gradient-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(20, 22, 28, 0.35);
}

/* === 菜单项hover === */
.menu-item:hover {
  background-color: var(--bg-secondary);
}

/* === Tab栏激活项 === */
.tab-item.active {
  color: var(--brand-primary);
}

.tab-item.active i {
  transform: scale(1.05);
}

/* === 平滑过渡的全局设置 === */
* {
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

/* === 图片加载淡入 === */
img {
  transition: opacity 0.3s ease;
}

/* === 模态框背景 === */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(45, 55, 72, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  max-width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

/* === 工具提示 === */
.tooltip {
  position: relative;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  padding: 6px 10px;
  background: var(--text-primary);
  color: var(--text-inverse);
  font-size: 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  pointer-events: none;
  z-index: 1000;
}

.tooltip:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-8px);
}

/* ===================================================================
   做题页面样式
   =================================================================== */

.exercise-page {
  padding-bottom: 40px;
}
.exercise-page .card {
  margin-bottom: 20px;
}
.exercise-page .card:last-child {
  margin-bottom: 0;
}
.exercise-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-tertiary);
}
.exercise-empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.4;
}

body .grammar-entry-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px !important;
  margin: 0 0 24px 0 !important;
  background: linear-gradient(135deg, var(--accent-purple) 0%, #A08FB8 100%) !important;
  border-radius: 20px !important;
  text-decoration: none;
  color: white;
  box-shadow: 0 10px 28px rgba(139, 122, 168, 0.28) !important;
  transition: all var(--transition-base) !important;
  position: relative;
  overflow: hidden;
}

.grammar-entry-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 180px;
  height: 180px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}

.grammar-entry-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(139, 122, 168, 0.35);
}

.grammar-entry-card:active {
  transform: scale(0.98);
}

.grammar-entry-icon {
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 1;
}

.grammar-entry-body {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.grammar-entry-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.grammar-entry-desc {
  font-size: 13px;
  opacity: 0.85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.grammar-entry-arrow {
  font-size: 22px;
  flex-shrink: 0;
  opacity: 0.85;
  position: relative;
  z-index: 1;
  transition: transform var(--transition-fast);
}

.grammar-entry-card:hover .grammar-entry-arrow {
  transform: translateX(3px);
}

.gen-tabs {
  display: flex;
  background: var(--bg-secondary);
  border-radius: 14px;
  padding: 5px;
  margin-bottom: 24px;
  gap: 4px;
}

.gen-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  min-height: 44px;
}

/* ============================================================
   轻奢 refinement (Quiet Luxury) — v9.2 增量，仅加法
   保留品牌雾蓝主色；以「形态」出高级感：
   细线图标 / 衬线标题 / 发丝边框 / 分层柔化阴影（不去重、不改现有组件）
   ============================================================ */
:root {
  --border-hairline: rgba(26, 32, 40, 0.08);                 /* 发丝级边框 */
  --surface-luxe: #FFFFFF;                                   /* 高级实体面 */
  --brand-ink: #243240;                                      /* 更深墨蓝，提升标题质感 */
  --shadow-luxe-1: 0 1px 2px rgba(26, 32, 40, 0.04), 0 4px 16px rgba(26, 32, 40, 0.05);
  --shadow-luxe-2: 0 2px 6px rgba(26, 32, 40, 0.04), 0 12px 32px rgba(26, 32, 40, 0.07);
  --font-display: 'Noto Serif SC', 'Songti SC', serif;
  --tracking-display: 0.015em;
}

/* 轻奢：全站 Phosphor 图标改为细线（Light）字重 —— 一条规则覆盖 46 个页面，无需逐个改文件 */
i.ph { font-family: "Phosphor-Light" !important; }

/* 轻奢：自定义细线图标基类（用于手动替换表情类图标处）。
   用法：<svg class="lux-ico" style="width:24px;height:24px;color:..." viewBox="0 0 256 256">…</svg> */
.lux-ico {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  vertical-align: -0.125em;
  fill: none;
  stroke: currentColor;
  stroke-width: 14;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 难度星标：强制文本星呈现，避免被渲染成彩色 emoji */
.difficulty-stars {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--brand-ink);
  font-variant-emoji: text;
  letter-spacing: 2px;
}

.gen-tab i {
  font-size: 17px;
}

.gen-tab.active {
  background: var(--bg-card);
  color: var(--brand-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  font-weight: 600;
}

.gen-tab-content {
  display: none;
}

.gen-tab-content.active {
  display: block;
}

.exercise-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
}
.exercise-row:last-child { border-bottom: none; }
.exercise-row-title {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 15px;
}
.exercise-row-meta {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}
.exercise-score {
  font-weight: 600;
  margin-left: 6px;
  font-size: 15px;
}
.exercise-score.good { color: var(--success); }
.exercise-score.mid { color: var(--warning); }
.exercise-score.low { color: var(--danger); }

.exercise-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  min-height: 36px;
}

.btn-icon:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.btn-icon i {
  margin-right: 6px;
  font-size: 15px;
}

.pdf-export-group {
  position: relative;
  display: inline-block;
}

.pdf-dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  box-shadow: 0 10px 32px rgba(0,0,0,0.1);
  padding: 6px;
  min-width: 140px;
  z-index: 100;
  display: none;
}

.pdf-dropdown.show {
  display: block;
}

.pdf-dropdown-item {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-primary);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.pdf-dropdown-item:hover {
  background: var(--bg-secondary);
}

.pdf-dropdown-item i {
  margin-right: 8px;
  font-size: 16px;
}

.card-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  letter-spacing: -0.01em;
}

.type-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.type-card-input {
  display: none;
}

.type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 10px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: 14px;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  min-height: 80px;
}

.type-card:hover {
  border-color: rgba(20, 22, 28, 0.3);
  background: var(--bg-secondary);
}

.type-card i {
  font-size: 26px;
  margin-bottom: 8px;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.type-card span {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.type-card-input:checked + .type-card {
  border-color: var(--brand-primary);
  background: var(--brand-primary-light);
}

.type-card-input:checked + .type-card i {
  color: var(--brand-primary);
}

.type-card-input:checked + .type-card span {
  color: var(--brand-primary);
  font-weight: 600;
}

.topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.topic-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  min-height: 36px;
}

.topic-tag:hover {
  background: var(--brand-primary-light);
  color: var(--brand-primary);
}

.topic-tag.active {
  background: var(--brand-primary);
  color: #fff;
}

.generate-btn {
  width: 100%;
  height: 52px;
  padding: 0 28px;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(20, 22, 28, 0.28);
  transition: all var(--transition-base);
  margin-top: 24px;
}

.generate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(20, 22, 28, 0.35);
}

.generate-btn:active {
  transform: scale(0.98);
}

.generate-btn i {
  font-size: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.form-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  background-color: var(--bg-card);
  transition: all var(--transition-fast);
  box-sizing: border-box;
}

.form-input:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px rgba(20, 22, 28, 0.08);
}

.form-input::placeholder {
  color: var(--text-tertiary);
}

.quick-btns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.btn-quick {
  flex-direction: column;
  height: auto;
  min-height: 80px;
  padding: 14px 8px;
  gap: 4px;
  border: 2px solid transparent;
  background: var(--bg-card);
  color: var(--text-primary);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all var(--transition-fast);
  min-width: 0;
}

.btn-quick:active {
  transform: scale(0.96);
}

.quick-icon {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
}

.quick-label {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.quick-sub {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

.btn-quick-red {
  border-color: rgba(255, 59, 48, 0.3);
  background: rgba(255, 59, 48, 0.06);
}

.btn-quick-red .quick-icon {
  color: #FF3B30;
}

.btn-quick-red:hover {
  background: rgba(255, 59, 48, 0.12);
  border-color: rgba(255, 59, 48, 0.5);
}

.btn-quick-yellow {
  border-color: rgba(255, 149, 0, 0.3);
  background: rgba(255, 149, 0, 0.06);
}

.btn-quick-yellow .quick-icon {
  color: #FF9500;
}

.btn-quick-yellow:hover {
  background: rgba(255, 149, 0, 0.12);
  border-color: rgba(255, 149, 0, 0.5);
}

.btn-quick-green {
  border-color: rgba(52, 199, 89, 0.3);
  background: rgba(52, 199, 89, 0.06);
}

.btn-quick-green .quick-icon {
  color: #34C759;
}

.btn-quick-green:hover {
  background: rgba(52, 199, 89, 0.12);
  border-color: rgba(52, 199, 89, 0.5);
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0;
  color: var(--text-tertiary);
  font-size: 0.85rem;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border);
}

.divider span {
  padding: 0 12px;
}

@media (max-width: 480px) {
  .quick-btns {
    gap: 8px;
  }
  .btn-quick {
    min-height: 88px;
    padding: 16px 6px;
  }
  .quick-icon {
    font-size: 1.8rem;
  }
  .quick-label {
    font-size: 0.95rem;
  }
}

/* ===================================================================
   词书页面样式
   =================================================================== */

.wb-page {
  padding-bottom: 40px;
}

.wb-header {
  margin-bottom: 24px;
}

.wb-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.wb-search {
  position: relative;
  margin-bottom: 20px;
}

.wb-search input {
  width: 100%;
  height: 48px;
  padding: 0 16px 0 44px;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  font-size: 15px;
  background: var(--bg-card);
  transition: all var(--transition-fast);
  box-sizing: border-box;
  font-family: inherit;
}

.wb-search input:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px rgba(20, 22, 28, 0.08);
}

.wb-search i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--text-tertiary);
}

.wb-filter-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.wb-filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  min-height: 40px;
}

.wb-filter-tab:hover {
  border-color: rgba(20, 22, 28, 0.3);
  color: var(--text-primary);
}

.wb-filter-tab.active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(20, 22, 28, 0.25);
}

.wb-filter-tab i {
  font-size: 16px;
}

.wb-category-section {
  margin-bottom: 40px;
}

.wb-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.wb-category-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}

.wb-category-title i {
  font-size: 18px;
  color: var(--brand-primary);
}

.wb-category-count {
  font-size: 13px;
  color: var(--text-tertiary);
  font-weight: 400;
}

.wb-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 640px) {
  .wb-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (min-width: 1024px) {
  .wb-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.wb-card {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
}

.wb-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(20, 22, 28, 0.15);
}

.wb-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  color: #fff;
  overflow: hidden;
  border-radius: 0;
}

.wb-cover::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 120px;
  height: 120px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}

.wb-cover-icon {
  font-size: 28px;
  margin-bottom: auto;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

.wb-cover-publisher {
  font-size: 11px;
  opacity: 0.8;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 1;
}

.wb-cover-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
  letter-spacing: -0.01em;
}

.wb-cover-words {
  font-size: 12px;
  opacity: 0.75;
  position: relative;
  z-index: 1;
}

.wb-info {
  padding: 14px;
}

.wb-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wb-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wb-publisher {
  font-size: 12px;
  color: var(--text-tertiary);
}

.wb-select-btn {
  padding: 6px 14px;
  background: var(--brand-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  min-height: 30px;
}

.wb-select-btn:hover {
  background: var(--brand-primary-hover);
}

.wb-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-tertiary);
}

.wb-empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.4;
}

/* === 词书详情弹窗 === */
.wb-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(45, 55, 72, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

@media (min-width: 640px) {
  .wb-modal-overlay {
    align-items: center;
  }
}

.wb-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.wb-modal {
  background: var(--bg-card);
  border-radius: 24px 24px 0 0;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 640px) {
  .wb-modal {
    max-width: 520px;
    border-radius: 20px;
    max-height: 80vh;
  }
}

.wb-modal-overlay.active .wb-modal {
  transform: translateY(0);
}

.wb-modal-header {
  position: sticky;
  top: 0;
  background: var(--bg-card);
  padding: 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1;
  border-radius: 24px 24px 0 0;
}

@media (min-width: 640px) {
  .wb-modal-header {
    border-radius: 20px 20px 0 0;
  }
}

.wb-modal-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.wb-modal-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--bg-secondary);
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 18px;
  transition: all var(--transition-fast);
}

.wb-modal-close:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.wb-modal-body {
  padding: 20px;
}

.wb-units-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wb-unit-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--bg-secondary);
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.wb-unit-item:hover {
  background: var(--brand-primary-light);
}

.wb-unit-info {
  flex: 1;
  min-width: 0;
}

.wb-unit-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.wb-unit-words {
  font-size: 12px;
  color: var(--text-tertiary);
}

.wb-unit-arrow {
  font-size: 18px;
  color: var(--text-tertiary);
  flex-shrink: 0;
  margin-left: 12px;
  transition: transform var(--transition-fast);
}

.wb-unit-item:hover .wb-unit-arrow {
  color: var(--brand-primary);
  transform: translateX(3px);
}

/* === 响应式动画降级（减少动画 === */
@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;
  }
}

/* ===================================================================
   MiMo 雾霾蓝主题覆盖层 v11（UI 重做 · 仅视觉不改功能）
   全局主色从雾霾蓝 #4A7C9E → 小米橙 #45637E
   后定义优先，覆盖上方蓝色变量与硬编码
   =================================================================== */

:root {
  /* 品牌色 - 小米橙 */
  --brand-primary: #45637E;
  --brand-primary-hover: #35506A;
  --brand-primary-light: #EEF4F8;
  --brand-primary-dark: #2A4058;

  /* 强调色 */
  --accent: #45637E;
  --accent-hover: #35506A;
  --accent-light: #EEF4F8;
  --accent-subtle: rgba(69, 99, 126, 0.10);
  --accent-dark: #2A4058;

  /* 背景色 - 纯白系 */
  --bg-primary: #F4F1EA;
  --bg-secondary: #EDE9E0;
  --bg-tertiary: #E3DFD5;
  --bg-card: #FCFBF7;
  --bg-elevated: #FCFBF7;
  --bg-page: #F4F1EA;
  --bg: #F4F1EA;

  /* 文字色 */
  --text-primary: #1E2024;
  --text-secondary: #5C5F66;
  --text-tertiary: #646B78;
  --text-inverse: #FFFFFF;
  --text-hint: #5C5F66;
  --primary: #1E2024;
  --text-sec: #5C5F66;
  --text-tri: #646B78;

  /* 边框 */
  --border: #E3DFD5;
  --border-light: #EDE9E0;
  --border-medium: #D9D5CC;
  --border-hairline: rgba(69, 99, 126, 0.08);

  /* 功能色（仅三色） */
  --success: #2A6E50;
  --success-light: #E8F2ED;
  --success-light-bg: #E8F2ED;
  --info: #45637E;
  --info-light: #EEF4F8;
  --warning: #876530;
  --warning-light: #F5EFDF;
  --danger: #B4452F;
  --danger-light: #F2E5E2;
  --danger-light-bg: #F2E5E2;

  /* 渐变 - 去蓝紫，统一橙色纯色 */
  --gradient-primary: #45637E;
  --gradient-cool: #45637E;
  --gradient-success: #2A6E50;
  --gradient-bg: #F4F1EA;
  --gradient-text: #45637E;
  --gradient-progress: #45637E;
  --gradient-warning: #876530;
  --gradient-secondary: #45637E;
  --gradient-breakthrough: #45637E;
  --gradient-accent: #45637E;

  /* 阴影 - 克制自然 */
  --shadow-sm: 0 1px 2px rgba(20,22,28,.04), 0 1px 3px rgba(20,22,28,.06);
  --shadow-md: 0 4px 16px rgba(20,22,28,.06), 0 1px 3px rgba(20,22,28,.04);
  --shadow-lg: 0 12px 40px rgba(20,22,28,.10);
  --shadow-card: 0 1px 2px rgba(20,22,28,.04), 0 1px 3px rgba(20,22,28,.06);
  --shadow-card-hover: 0 4px 16px rgba(20,22,28,.06), 0 1px 3px rgba(20,22,28,.04);
  --shadow-button: 0 6px 18px rgba(69,99,126,.18);
  --shadow-elevated: 0 12px 40px rgba(20,22,28,.10);
  --shadow-glow: 0 4px 16px rgba(69,99,126,.12);

  /* 圆角统一三档 */
  --radius-sm: 10px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-card: 16px;
  --radius-button: 999px;
  --radius-input: 10px;
  --radius-tag: 999px;

  /* 焦点环 */
  --focus-ring: 0 0 0 3px rgba(69,99,126,.25);

  /* 辅助色统一映射（消除蓝绿紫彩色方块） */
  --accent-orange: #45637E;
  --accent-green: #18A957;
  --accent-red: #E5484D;
  --accent-yellow: #F5A623;
  --accent-purple: #45637E;
  --accent-teal: #5A9E9A;
  --purple: #45637E;
  --brand-ink: #1E2024;
}

/* 暗色模式也跟随雾霾蓝 */
[data-theme="dark"] {
  --brand-primary: #6E8CA6;
  --brand-primary-hover: #45637E;
  --brand-primary-light: #1C2A33;
  --brand-primary-dark: #A6BED0;
  --accent: #6E8CA6;
  --accent-hover: #45637E;
  --accent-light: #1C2A33;
  --accent-subtle: rgba(110, 140, 166, 0.16);
  --gradient-primary: #6E8CA6;
  --gradient-text: #6E8CA6;
  --gradient-progress: #6E8CA6;
  --shadow-button: 0 6px 18px rgba(110,140,166,.20);
}

/* === 标题字重拉开差距 === */
h1 { font-weight: 800; letter-spacing: -0.02em; }
h2 { font-weight: 800; letter-spacing: -0.01em; }
h3 { font-weight: 700; }

/* === 按钮：药丸形 + 状态差异（保留原布局，仅覆盖视觉）=== */
.btn-primary {
  background: #45637E;
  background-image: none;
  color: #FFFFFF;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(69,99,126,.18);
}
.btn-primary:hover {
  background: #35506A;
  background-image: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(69,99,126,.24);
}
.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(69,99,126,.18);
}

.btn-secondary {
  background: transparent;
  background-image: none;
  color: #1A1A1D;
  border: 1.5px solid #E0E3E8;
  border-radius: 999px;
  box-shadow: none;
}
.btn-secondary:hover {
  border-color: #1A1A1D;
  background: #EDE9E0;
}

.btn-small {
  background: #45637E;
  background-image: none;
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(69,99,126,.16);
}
.btn-small:hover {
  box-shadow: 0 5px 14px rgba(69,99,126,.22);
}

.btn-danger {
  background: #E5484D;
  border-radius: 999px;
}
.btn-danger:hover { background: #D63A3F; }

/* === 主按钮统一形状（mimo 系列也药丸化）=== */
.mimo-btn-primary {
  background: #45637E;
  background-image: none;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(69,99,126,.18);
}
.mimo-btn-primary:hover {
  background: #35506A;
  box-shadow: 0 8px 22px rgba(69,99,126,.24);
}
.mimo-btn-secondary {
  background: transparent;
  color: #1A1A1D;
  border: 1.5px solid #E0E3E8;
  border-radius: 999px;
}
.mimo-btn-secondary:hover {
  border-color: #1A1A1D;
  background: #EDE9E0;
}

/* 生成按钮去渐变改雾霾蓝 */
.generate-btn {
  background: #45637E;
  background-image: none;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(69,99,126,.18);
}
.generate-btn:hover {
  background: #35506A;
  box-shadow: 0 8px 22px rgba(69,99,126,.24);
}

/* tag/gradient-tag 去渐变改雾霾蓝 */
.tag-accent, .tag-info { background: #45637E; }
.tag-success { background: #18A957; }
.tag-warning { background: #F5A623; }
.gradient-tag {
  background: #45637E;
  background-image: none;
  box-shadow: 0 2px 8px rgba(69,99,126,.25);
}
.gradient-tag:hover { box-shadow: 0 4px 14px rgba(69,99,126,.35); }

/* 圆形图标容器统一雾霾蓝 */
.gradient-circle,
.avatar,
.student-avatar,
.breakthrough-title-icon,
.breakthrough-tag,
.theme-toggle:hover {
  background: #45637E;
  background-image: none;
}
.gradient-circle { box-shadow: 0 4px 12px rgba(69,99,126,.25); }
.avatar { box-shadow: 0 4px 12px rgba(69,99,126,.25); }

/* 卡片 hover 边框雾霾蓝 */
.card:hover { border-color: rgba(69,99,126,.18); }
.wb-card:hover { border-color: rgba(69,99,126,.18); }
.type-card:hover { border-color: rgba(69,99,126,.3); }

/* 输入框聚焦雾霾蓝 */
.form-input:focus,
.mimo-input:focus,
.wb-search input:focus,
.type-select:focus,
.topic-input:focus {
  border-color: #45637E;
  box-shadow: 0 0 0 3px rgba(69,99,126,.14);
}

/* 选中态高亮雾霾蓝 */
.type-card-input:checked + .type-card {
  border-color: #45637E;
  background: #EEF4F8;
}
.type-card-input:checked + .type-card i,
.type-card-input:checked + .type-card span { color: #45637E; }

.topic-tag:hover { background: #EEF4F8; color: #45637E; }
.topic-tag.active { background: #45637E; color: #fff; }

.wb-filter-tab:hover { border-color: rgba(69,99,126,.3); color: #1A1A1D; }
.wb-filter-tab.active {
  background: #45637E;
  border-color: #45637E;
  color: #fff;
  box-shadow: 0 4px 12px rgba(69,99,126,.25);
}
.wb-select-btn { background: #45637E; }
.wb-select-btn:hover { background: #35506A; }
.wb-unit-item:hover { background: #EEF4F8; }
.wb-unit-item:hover .wb-unit-arrow { color: #45637E; }
.wb-category-title i { color: #45637E; }

/* tab 底部导航选中态雾霾蓝 */
.tab-item.active { color: #45637E; }

/* tab-switch / gen-tab 选中雾霾蓝 */
.tab-switch-item.active::before { background: #45637E; }
.gen-tab.active { color: #45637E; }

/* 菜单图标雾霾蓝 */
.menu-icon { background: #EEF4F8; color: #45637E; }
.menu-item:hover .menu-arrow { color: #45637E; }
.card-numbered:hover .card-numbered-arrow { color: #45637E; }

/* skip-link / 选中色 */
.skip-link { background: #45637E; }
::selection { background: rgba(69,99,126,.18); color: #1A1A1D; }

/* === 练习页语法入口卡：雾霾蓝 === */
.grammar-entry-card {
  background: #45637E !important;
  background-image: none !important;
  box-shadow: 0 10px 28px rgba(69,99,126,.28) !important;
}
.grammar-entry-card:hover {
  box-shadow: 0 14px 36px rgba(69,99,126,.35);
}

/* === 新增组件：药丸标签 pill（2.9）=== */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  background: #EDE9E0;
  color: #5B6068;
  border: 1px solid #ECEEF1;
  white-space: nowrap;
}
.pill--accent { background: #EEF4F8; color: #35506A; border-color: #C5D6E2; }
.pill--ok { background: #E9F8EF; color: #18A957; border-color: #CDEFD9; }
.pill--live { background: #EEF4F8; color: #35506A; }
.pill--info { background: #E8F1FE; color: #2D7FF9; border-color: #CFE0FD; }

/* pill 脉冲点 */
.pill-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: currentColor; flex-shrink: 0;
  animation: pillPulse 1.8s ease-in-out infinite;
}
.pill--ok .pill-dot { background: #18A957; }
@keyframes pillPulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(1.3); }
}

/* === 新增按钮变体：ghost / soft === */
.btn-ghost {
  background: transparent;
  color: #1A1A1D;
  border: 1.5px solid #E0E3E8;
  border-radius: 999px;
  box-shadow: none;
}
.btn-ghost:hover {
  border-color: #1A1A1D;
  background: #EDE9E0;
}
.btn-soft {
  background: #EEF4F8;
  color: #35506A;
  border: 1px solid #C5D6E2;
  border-radius: 999px;
  box-shadow: none;
}
.btn-soft:hover { background: #DCE7F0; }

/* === 线型 SVG 图标基类（2.8）=== */
.ico-line {
  display: inline-block;
  width: 22px; height: 22px;
  flex-shrink: 0;
  vertical-align: -0.125em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ico-line--sm { width: 18px; height: 18px; }

/* === 雾霾蓝浅底圆形图标容器（2.8 / 特性卡用）=== */
.icon-bubble {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: #EEF4F8;
  color: #45637E;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-bubble i { font-size: 22px; }

/* === 分段切换器 seg-control（第4步练习页用）=== */
.seg-control {
  display: inline-flex;
  background: #EDE9E0;
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
}
.seg-control-item {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #5B6068;
  cursor: pointer;
  border: none;
  background: transparent;
  transition: all .18s ease;
  white-space: nowrap;
}
.seg-control-item.active {
  background: #FFFFFF;
  color: #1A1A1D;
  box-shadow: 0 1px 2px rgba(20,22,28,.06), 0 1px 3px rgba(20,22,28,.06);
}

/* === 小标签 kicker（落地页用）=== */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #45637E;
  text-transform: none;
  letter-spacing: 0;
}
.kicker::before {
  content: '';
  width: 24px; height: 3px;
  background: #45637E;
  border-radius: 2px;
}

/* === 落地页主题雾霾蓝化（覆盖原棕褐蓝紫）=== */
.landing-theme {
  --landing-bg-primary: #F4F1EA;
  --landing-bg-secondary: #EDE9E0;
  --landing-bg-card: #FCFBF7;
  --landing-text-primary: #1E2024;
  --landing-text-secondary: #5C5F66;
  --landing-text-tertiary: #646B78;
  --landing-border: #E3DFD5;
  --landing-border-light: #EDE9E0;
  --landing-accent: #45637E;
  --landing-accent-light: rgba(69, 99, 126, 0.10);
  --landing-gradient-cta: #45637E;
}
.landing-theme .landing-nav {
  background: rgba(255,255,255,0.80);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #ECEEF1;
}
.landing-theme .landing-nav-btn:hover {
  border-color: #45637E;
  color: #45637E;
  background: #EEF4F8;
}
.landing-theme .landing-btn-primary {
  background: #45637E;
  background-image: none;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(69,99,126,.18);
}
.landing-theme .landing-btn-primary:hover {
  background: #35506A;
  box-shadow: 0 8px 22px rgba(69,99,126,.24);
}
.landing-theme .landing-btn-secondary {
  border-radius: 999px;
}
.landing-theme .landing-btn-secondary:hover {
  border-color: #1A1A1D;
  color: #1A1A1D;
  background: #EDE9E0;
}
.landing-theme .landing-card,
.landing-theme .landing-card-numbered {
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(20,22,28,.04), 0 1px 3px rgba(20,22,28,.06);
}
.landing-theme .landing-card:hover,
.landing-theme .landing-card-numbered:hover {
  border-color: #C5D6E2;
  box-shadow: 0 4px 16px rgba(20,22,28,.06);
}
.landing-theme .landing-card-numbered::before { color: #45637E; }
.landing-theme .landing-footer a:hover { color: #45637E; }

/* === 响应式：980px 断点 ===
   侧边栏 → 底部 tab-bar 的切换逻辑在 base.html 内联样式中实现
   （@media min-width:981px 显示 .app-sidebar；窄屏显示 .tab-bar）。
   宽内容（表格/时间轴）均已用 overflow-x:auto 包裹，390px 下横向滚动不溢出。*/

/* 雾霾蓝淡入强调（进度条端点去蓝高光）*/
.progress-fill::after,
.mimo-progress-fill::after,
.breakthrough-progress-fill::after {
  background: rgba(255,255,255,0.3);
}

