/* tokens.css — 全站唯一变量来源（语义命名，值从 03-ui 视觉稿读出，见 05-design-system/design-system.md）
   用法：三页都先 <link> 本文件，再 link components.css / style.css；禁止在页面里写新的颜色/字号字面量。 */

:root {
  /* ---------- 颜色 · 底与面 ---------- */
  --bg: #f7fafd;              /* 页面底色（稿：近白微蓝） */
  --surface: #ffffff;         /* 卡片、表格、侧栏底色 */
  --wash: #e6f1fd;            /* 浅蓝区块（购买顺序面板） */
  --wash-soft: #f1f7fe;       /* 表头以下交替行 */

  /* ---------- 颜色 · 强调与深色 ---------- */
  --accent: #0a6ed6;          /* 主按钮、链接、当前导航、序号胶囊 */
  --accent-strong: #0b5cb4;   /* 强调色 hover / 深一档文字 */
  --accent-soft: #e8f2fd;     /* 标签底、目录高亮底 */
  --navy: #1f5287;            /* 表头深蓝 */
  --navy-deep: #0d2b4d;       /* 深蓝文字（预留） */
  --footer-bg: #132b4e;       /* 页脚通栏 */

  /* ---------- 颜色 · 文字与线 ---------- */
  --ink: #0d2036;             /* 主文字（标题近黑蓝） */
  --ink-soft: #33495f;        /* 正文段落 */
  --muted: #5b7085;           /* 次要文字、卡片说明 */
  --line: #dbe7f2;            /* 分隔线、描边 */
  --line-soft: #f0dede;       /* 误区卡描边（暖红灰） */
  --danger: #e04b4b;          /* 误区卡 ✕ 图标 */

  /* ---------- 字体与字阶 ---------- */
  --font-sans: 'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  --fs-h1: 56px;              /* 首页 hero 主标题（1440） */
  --fs-h2: 31px;              /* 区块标题 */
  --fs-h3: 19px;              /* 卡片标题 */
  --fs-lead: 22px;            /* hero 导语 */
  --fs-body: 16px;            /* 正文基准 */
  --fs-sm: 14px;              /* 说明文字、按钮小字 */
  --fs-xs: 13px;              /* 卡片脚注、目录、页脚 */
  --lh-tight: 1.25;
  --lh-body: 1.7;
  --lh-prose: 1.95;           /* 长文段落 */

  /* ---------- 尺寸与节奏 ---------- */
  --container: 1348px;        /* 内容容器（稿：1024 稿的 962px × 1.40625） */
  --gutter: 24px;             /* 窄屏左右留白 */
  --radius-sm: 8px;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-card: 0 6px 18px rgba(16, 52, 92, 0.07);
  --shadow-soft: 0 2px 8px rgba(16, 52, 92, 0.05);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); }

h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 800; line-height: var(--lh-tight); letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  width: min(100% - calc(var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

@media (max-width: 1080px) {
  :root { --fs-h1: 46px; --fs-h2: 27px; --fs-lead: 19px; }
}
@media (max-width: 860px) {
  :root { --fs-h1: 38px; --fs-h2: 26px; --fs-lead: 18px; }
}
@media (max-width: 560px) {
  :root { --fs-h1: 31px; --fs-h2: 23px; --fs-lead: 16px; --gutter: 16px; }
}
