/* 高考 AI 教练 · tokens.css（方向 B「清冽专注舱」，v1.0）
   四层：浅色（:root）/ 深色（.dark 或 [data-appearance=dark]）/ 增强对比度（.hc）/ 减少动态效果（@media）。
   命名 --组-名 ↔ 原生 Theme.组.名。数值以本文件为准，spec.md 只解释为什么。 */
:root{
  /* surface 画布与卡片 */
  --surface-bg:#F5F7FA; --surface-card:#FFFFFF; --surface-sub:#F2F4F8; --surface-raised:#FFFFFF;
  /* line 分隔与描边 */
  --line-hair:#EDF0F4; --line-ring:rgba(20,30,60,.06); --line-key:rgba(20,30,60,.14);
  /* text */
  --text-primary:#141A26; --text-secondary:#5E6878; --text-tertiary:#7A8394;
  /* accent 主色：钴蓝 */
  --accent-base:#3D57D8; --accent-on:#FFFFFF; --accent-tint:#ECEFFD; --accent-text:#3247C2;
  /* mastery 掌握度四档（色阶，配文字图例） */
  --mastery-stable:#3D57D8; --mastery-ok:#A9B7F3; --mastery-weak:#E2A23F; --mastery-unrated:#E5E9F0;
  --mastery-weak-text:#7A4E0E; --mastery-weak-tint:#FDF4E4;
  /* feedback 判定（作答卡）：不用红色 */
  --feedback-right:#18774E; --feedback-right-tint:#E6F5EE; --feedback-wrong:#7A4E0E; --feedback-wrong-tint:#FDF4E4;
  /* triage 作业三档 */
  --triage-focus:#3D57D8; --triage-quick:#5E6878; --triage-skip:#9AA3B2;
  /* radius */
  --radius-card:14px; --radius-hero:18px; --radius-key:8px; --radius-chip:6px; --radius-frame:30px;
  /* shadow：描边环 + 两层扩散，透明度 ≤ 8% */
  --shadow-1:0 0 0 1px var(--line-ring),0 1px 2px rgba(20,30,60,.05),0 4px 14px rgba(20,30,60,.04);
  --shadow-2:0 0 0 1px var(--line-ring),0 12px 30px rgba(20,30,60,.08);
  --shadow-key:0 0 0 1px var(--line-key),0 1px 1px rgba(20,30,60,.06);
  /* type */
  --font-sans:"Noto Sans SC","PingFang SC","HarmonyOS Sans SC","Microsoft YaHei",system-ui,sans-serif;
  --font-mono:ui-monospace,"SF Mono","JetBrains Mono",Menlo,monospace;
  --type-title:26px; --type-section:15px; --type-body:16px; --type-card:17px; --type-meta:12.5px; --type-key:13.5px;
  --leading-body:1.6; --leading-card:1.75;
  /* space */
  --space-page:16px; --space-gap:10px; --space-card:14px; --touch-min:48px; --key-h:36px;
  /* motion */
  --motion-flip:250ms; --motion-press:120ms; --motion-ease:cubic-bezier(.2,.7,.2,1); --motion-bar:400ms;
  /* layout */
  --tablet-rail:78px; --phone-w:375px; --phone-h:780px; --tablet-w:1100px; --tablet-h:700px;
}
.dark,[data-appearance=dark]{
  --surface-bg:#0F1117; --surface-card:#161A23; --surface-sub:#1C212C; --surface-raised:#1C212C;
  --line-hair:#232937; --line-ring:rgba(255,255,255,.06); --line-key:rgba(255,255,255,.14);
  --text-primary:#E7EAF0; --text-secondary:#9BA4B4; --text-tertiary:#8690A1;
  --accent-base:#8095FF; --accent-on:#0B1230; --accent-tint:#1E2541; --accent-text:#9AABFF;
  --mastery-stable:#7489F7; --mastery-ok:#3B4980; --mastery-weak:#D9A04F; --mastery-unrated:#272D3A;
  --mastery-weak-text:#E7B66C; --mastery-weak-tint:#2A2418;
  --feedback-right:#5FCB97; --feedback-right-tint:#16291F; --feedback-wrong:#E7B66C; --feedback-wrong-tint:#2A2418;
  --triage-focus:#8095FF; --triage-quick:#9BA4B4; --triage-skip:#6F7889;
  --shadow-1:0 0 0 1px var(--line-ring),0 4px 14px rgba(0,0,0,.25);
  --shadow-2:0 0 0 1px rgba(255,255,255,.07),0 12px 30px rgba(0,0,0,.35);
  --shadow-key:0 0 0 1px var(--line-key);
}
/* 增强对比度：系统「增加对比度」或用户开关 */
.hc{ --text-secondary:#434C5B; --text-tertiary:#555E6E; --line-hair:#C9CFD9; --line-ring:rgba(20,30,60,.22); --line-key:rgba(20,30,60,.4); --accent-base:#2A41B8; --accent-text:#2236A6; --mastery-ok:#7F92E6; --mastery-weak:#C98A2E; }
.dark.hc{ --text-secondary:#C2C9D6; --text-tertiary:#AEB6C4; --line-hair:#3A4252; --line-ring:rgba(255,255,255,.2); --accent-base:#A3B2FF; --mastery-ok:#4A5BA6; }
@media (prefers-contrast:more){ :root{ --text-secondary:#434C5B; --line-ring:rgba(20,30,60,.22); --line-key:rgba(20,30,60,.4); } }
/* 减少动态效果：翻面改淡入，进度条不做动画 */
@media (prefers-reduced-motion:reduce){ :root{ --motion-flip:0ms; --motion-bar:0ms; --motion-press:0ms; } }
