/* tokens.css — 语义设计变量（唯一变量来源，三页共用）
   来源：03-ui/home-ui-desktop.png（profile.mjs 主色板 + 逐行/逐列取色），
   与 05-design-system/design-system.md 第 1–2 节一一对应。
   改色只改这里；components.css / style.css 只引用变量名。 */
:root {
  /* ---------- 底色层 ---------- */
  --c-deep: #1b2d4e;            /* 深藏青：稿上 header / footer 整幅，占比 8.1% */
  --c-deep-soft: #24395c;       /* 深底上的次级块 */
  --c-bg: #fbfcfe;              /* 页面主底 */
  --c-hero-1: #c9dff9;          /* 首屏渐变顶（x=20 处采样 #cde1f9） */
  --c-hero-2: #a3cbf9;          /* 首屏渐变右段（x=720 处 #a3cbf9） */
  --c-hero-3: #f4f6fa;          /* 首屏渐变收尾 */
  --c-surface: #ffffff;         /* 卡片面 */
  --c-surface-soft: #f4f7fb;    /* 轻卡面（长文卡 / 收录块） */
  --c-warm: #fde096;            /* 边界声明窄条（稿上唯一暖色，整条 y1918–1973） */
  --c-warm-ink: #6b4e06;

  /* ---------- 墨色层 ---------- */
  --c-ink: #101f33;             /* 正文近黑 */
  --c-ink-soft: #3a4c63;        /* 次级正文 */
  --c-ink-muted: #6b7f94;       /* 说明 / 眉标 */
  --c-ink-invert: #eef4fb;      /* 深底主文字 */
  --c-ink-invert-soft: #9fb3c9; /* 深底次要文字 */
  --c-line: #e4ebf3;            /* 分隔线 */
  --c-line-strong: #c9d6e5;     /* 强分隔线 / 时间轴连线 */

  /* ---------- 强调色（唯一强调：赛标蓝） ---------- */
  --c-accent: #2873c2;
  --c-accent-hover: #1d5c9f;
  --c-accent-soft: #e3eefa;
  --c-accent-line: #7fb2e0;

  /* ---------- 分类色标（M2 方形色标，只做低饱和区分） ---------- */
  --c-mark-1: #2873c2;
  --c-mark-2: #3d8f7a;
  --c-mark-3: #b4762c;
  --c-mark-4: #5b6fbb;
  --c-mark-5: #a85f7a;
  --c-mark-6: #4c7f96;
  --c-mark-7: #7a6a3c;
  --c-mark-8: #5a6b7d;

  /* ---------- 字体 ---------- */
  --f-display: "Noto Sans CJK SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --f-body: "Noto Sans CJK SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --f-mono: "Noto Sans Mono CJK SC", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* ---------- 字号阶（按稿上量得） ---------- */
  --fs-hero: clamp(34px, 3.85vw, 55px);  /* h1 两行，稿上 132–255 */
  --fs-h2: clamp(24px, 2.1vw, 30px);     /* 区块 h2 */
  --fs-h3: 16.5px;                       /* 卡片标题 */
  --fs-lead: 16.5px;                     /* 首屏导语 */
  --fs-body: 14.5px;                     /* 正文 */
  --fs-small: 12.5px;                    /* 卡片说明 / 导航 */
  --fs-tiny: 11px;                       /* 眉标 / 计数 */
  --fs-mono-xs: 10px;                    /* 时间轴时间标签 */

  /* ---------- 间距与容器 ---------- */
  --page-max: 1440px;
  --content-max: 1348px;                 /* 稿上内容栏 46 → 1394 */
  --page-pad: 46px;
  --gap-xs: 6px;
  --gap-s: 12px;
  --gap-m: 20px;
  --gap-l: 32px;
  --gap-xl: 48px;

  /* ---------- 形与影 ---------- */
  --r-s: 4px;
  --r-m: 8px;
  --r-l: 12px;
  --r-pill: 999px;
  --shadow-card: 0 1px 2px rgba(16, 31, 51, .04), 0 12px 26px -24px rgba(16, 31, 51, .55);
  --shadow-photo: 0 26px 48px -42px rgba(12, 32, 58, .85);

  /* ---------- 动效 ---------- */
  --t-fast: 140ms ease;
  --t-mid: 220ms ease;
}
