/* ==========================================================================
   户外跑步爱好网 — tokens.css（唯一设计变量来源）
   来源：03-ui/home-ui-desktop.png 读色与读排版 + 首页实现时的落位值。
   改色 / 改字号只改这里；components.css 与 style.css 只引用变量名。
   ========================================================================== */

:root {
  /* ---------- 深色层（页头 / 首屏 / 页脚） ---------- */
  --c-navy: #1b3656;
  --c-navy-deep: #132744;
  --c-navy-soft: #24446b;

  /* ---------- 强调色（页面唯一饱和蓝） ---------- */
  --c-blue: #0c60e0;
  --c-blue-hover: #0a51be;
  --c-blue-tint: #c5defb;
  --c-blue-soft: #e8f1fd;

  /* ---------- 底色层 ---------- */
  --c-bg: #f5f8fb;
  --c-surface: #ffffff;
  --c-cream: #fbeadb;
  --c-amber: #f0862c;

  /* ---------- 墨色层 ---------- */
  --c-ink: #16233a;
  --c-ink-soft: #445772;
  --c-ink-muted: #6c7f96;
  --c-ink-invert: #eef3f9;
  --c-ink-invert-soft: #a8c0d8;
  --c-ink-invert-lead: #b6cade;

  /* ---------- 分隔线 ---------- */
  --c-line: #e3e9f1;
  --c-line-strong: #cdd8e6;
  --c-line-invert: rgba(238, 243, 249, .16);
  --c-line-cream: #f3d9bf;

  /* ---------- 字体 ---------- */
  --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: 50px;
  --fs-hero-sm: 30px;
  --fs-h1: 40px;   /* 内页主标题 */
  --fs-h2: 26px;
  --fs-h3: 21px;
  --fs-h4: 18px;
  --fs-body: 15px;
  --fs-lead: 17px;
  --fs-small: 13px;
  --fs-tiny: 11.5px;
  --fs-micro: 10.5px;

  /* ---------- 与容器相关 ---------- */
  --wrap: 1440px;
  --pad: 40px;

  /* ---------- 形与影 ---------- */
  --r-s: 6px;
  --r-m: 12px;
  --r-l: 18px;
  --r-pill: 999px;
  --shadow-card: 0 1px 2px rgba(22, 35, 58, .05), 0 12px 28px -22px rgba(22, 35, 58, .45);
  --shadow-hover: 0 18px 34px -26px rgba(22, 35, 58, .6);

  /* ---------- 动效 ---------- */
  --t-fast: 140ms ease;
  --t-mid: 160ms 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 { 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-blue); 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: 80;
  background: var(--c-blue); color: #fff; padding: 10px 16px; border-radius: 0 0 var(--r-s) 0;
}
.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: .22em;
  text-transform: uppercase;
}
.section-title { font-size: var(--fs-h2); line-height: 1.25; }
.section-title--sm { font-size: var(--fs-h3); }
.text-link {
  font-size: var(--fs-small); color: var(--c-blue);
  border-bottom: 1px solid var(--c-blue-tint);
  transition: border-color var(--t-fast), color var(--t-fast);
}
.text-link:hover { color: var(--c-blue-hover); border-color: var(--c-blue); }

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