/* tokens.css — 语义设计变量（唯一变量来源，三页共用）
   来源：03-ui/home-ui-desktop.png 的读色与排版气质（profile.mjs 主色板 + 分区取色），
   与 05-design-system/design-system.md 第 1–3 节一一对应。
   改色只改这里；components.css / style.css 只引用变量名。
   注：site-design-system/extract.mjs 的自动结果已人工校正（自动命名的 --color-5、
   被拼坏的 --r-1 等一律弃用，恢复为语义名），本文件是人工维护版。 */
:root {
  /* ---------- 底色层 ---------- */
  --c-bg: #f1f7fd;              /* 页面主底：稿上 36.7% 占比的冷白蓝 */
  --c-bg-alt: #eaf2fb;          /* 次级底：稿上 17.1% 的浅蓝灰（精选带 / 页脚浅层） */
  --c-bg-hero: #c9e3fc;         /* 首屏顶部蓝 */
  --c-bg-hero-end: #eef5fb;     /* 首屏底部过渡 */
  --c-bg-strip: #dcebfb;        /* 窄条底（提示块 / 选中态） */
  --c-surface: #ffffff;         /* 卡片面 */
  --c-surface-soft: rgba(255, 255, 255, .62); /* 轻卡面（列表卡 / 事实块） */
  --c-deep: #153457;            /* 深藏青：稿上 7.8% 的页脚整幅 */

  /* ---------- 墨色层 ---------- */
  --c-ink: #0f1d2e;             /* 正文近黑 */
  --c-ink-soft: #33465c;        /* 次级正文 */
  --c-ink-muted: #6b7f94;       /* 说明文字 / eyebrow */
  --c-ink-invert: #eaf2fb;      /* 深色底上的主文字 */
  --c-ink-invert-soft: #a8c0d8; /* 深色底上的次要文字 */
  --c-line: #d8e6f3;            /* 分隔线 */
  --c-line-strong: #b9cfe4;     /* 强分隔线 */

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

  /* ---------- 字体 ---------- */
  --f-display: "Noto Serif CJK SC", "Noto Serif SC", "Songti SC", 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", monospace;

  /* ---------- 字号阶 ---------- */
  --fs-hero: clamp(30px, 3.15vw, 45px);   /* 首屏 h1 */
  --fs-h2: clamp(23px, 2.05vw, 30px);     /* 区块 h2 */
  --fs-h3: 16.5px;                        /* 卡片标题 */
  --fs-lead: 15.5px;                      /* 导语 */
  --fs-body: 14.5px;                      /* 正文 */
  --fs-small: 12.5px;                     /* 卡片说明 / 导航 */
  --fs-tiny: 11px;                        /* eyebrow / 计数 / 元信息 */
  --fs-mono-s: 10px;                      /* 等宽小标签（时间轴时间、条目计数） */

  /* ---------- 间距与容器 ---------- */
  --page-max: 1440px;
  --content-max: 1352px;                  /* 稿上内容栏约 1352，两侧留白各 44 */
  --page-pad: 44px;
  --gap-xs: 7px;
  --gap-s: 12px;
  --gap-m: 20px;
  --gap-l: 32px;
  --gap-xl: 52px;

  /* ---------- 形与影 ---------- */
  --r-s: 6px;                   /* 小图 / 输入框 / 卡片 */
  --r-m: 12px;                  /* 列表卡 / 细分方向卡 */
  --r-l: 20px;                  /* 首屏照片左圆角 */
  --r-pill: 999px;              /* 按钮 / chip */
  --shadow-card: 0 1px 2px rgba(15, 29, 46, .04), 0 10px 24px -22px rgba(15, 29, 46, .5);
  --shadow-raise: 0 12px 30px -20px rgba(20, 52, 87, .55);
  --shadow-photo: 0 24px 48px -40px rgba(16, 44, 74, .9);
  --line-hero: rgba(40, 115, 194, .22);   /* 首屏数据条上方的淡线 */

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