/* ==========================================================================
   赛跑综合网 — tokens.css（唯一设计变量来源）
   变量值来自 03-ui/home-ui-desktop.png 的读色与分区测量（1024×1536 → 1440×2160）。
   改色 / 改字号只改这里。三页（index / category / detail）共用本文件 + components.css。
   ========================================================================== */

:root {
  /* ---------- 深色层（页头 / 页脚 / 首屏照片压暗） ---------- */
  --c-navy: #18335b;
  --c-navy-deep: #102548;
  --c-navy-soft: #24446b;

  /* ---------- 浅蓝层（首屏背景、索引面板、强调带） ---------- */
  --c-sky: #c3d9f8;
  --c-sky-soft: #e3ebfb;
  --c-panel: #eef3fe;
  --c-panel-2: #e7eefc;

  /* ---------- 底色 ---------- */
  --c-bg: #f9fafe;
  --c-surface: #ffffff;

  /* ---------- 强调色（全站唯一的饱和色） ---------- */
  --c-accent: #f89838;
  --c-accent-deep: #e07f16;
  --c-accent-soft: #fde3c6;

  /* ---------- 墨色 ---------- */
  --c-ink: #16233a;
  --c-ink-soft: #46587a;
  --c-ink-muted: #76869d;
  --c-ink-invert: #eef3fb;
  --c-ink-invert-soft: #a9bdd8;

  /* ---------- 分隔线 ---------- */
  --c-line: #dfe6f2;
  --c-line-strong: #c9d5e8;
  --c-line-invert: rgba(238, 243, 251, .18);
  --c-hair: rgba(24, 51, 91, .12);      /* 索引卡/刻度条的竖分隔线 */

  /* ---------- 首屏照片蒙版（叠色 + 压暗，见 style.css .hero-media::before） ---------- */
  --m-hero-wash: rgba(200, 221, 250, 1);   /* 左侧不透明浅蓝，保证文字对比 */
  --m-hero-cool: rgba(150, 190, 245, .55); /* 整体冷调叠色 */
  --m-hero-shade: rgba(28, 56, 96, .42);   /* 底部压暗，托住右下事实条 */
  --shadow-hero-text: 0 1px 14px rgba(9, 22, 44, .6);

  /* ---------- 字体 ---------- */
  --f-body: "Noto Sans CJK SC", "Noto Sans SC", "Source Han 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: 54px;
  --fs-hero-sm: 32px;
  --fs-h1: 40px;      /* 内页主标题 */
  --fs-h2: 30px;
  --fs-h3: 22px;
  --fs-h4: 18px;
  --fs-body: 15px;
  --fs-lead: 17px;
  --fs-small: 13px;
  --fs-tiny: 11.5px;
  --fs-micro: 10.5px;

  /* ---------- 栅格 ---------- */
  --wrap: 1440px;
  --pad: 60px;

  /* ---------- 形与影 ---------- */
  --r-s: 6px;
  --r-m: 12px;
  --r-l: 20px;
  --r-pill: 999px;
  --shadow-card: 0 1px 2px rgba(22, 35, 58, .04), 0 16px 32px -26px rgba(22, 35, 58, .5);
  --shadow-hover: 0 22px 40px -28px rgba(22, 35, 58, .62);

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

/* ---------- reset / 基础排版（三页共用） ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-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: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: .01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 90;
  background: var(--c-accent); color: #23180a; padding: 10px 16px;
  border-radius: 0 0 var(--r-s) 0; font-size: var(--fs-small);
}
.skip-link:focus { left: 0; }

.eyebrow {
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: var(--fs-tiny);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
}
.section-title { font-size: var(--fs-h2); line-height: 1.28; }
.section-sub { font-size: var(--fs-small); color: var(--c-ink-muted); letter-spacing: .06em; }
.section-lead { font-size: var(--fs-small); color: var(--c-ink-soft); line-height: 1.75; max-width: 62ch; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
