/* ==========================================================================
   tokens.css — 机械键盘 · 语义设计变量（唯一变量来源，三页共用）
   来源：03-ui/home-ui-desktop.png（dark-elegant）+ 03-ui/ui-spec.md
   维护：新增语义变量必须在此登记，并在 05-design-system/design-system.md 写用途
   ========================================================================== */
:root {
  /* ---- 底色：三档深藏青 ---- */
  --bg: #0b1120;
  --bg-deep: #070c15;
  --bg-soft: #111a29;
  --card: #16233a;
  --card-hi: #1b2a44;

  /* ---- 强调：暖金 + 冷蓝（蓝只用于标签） ---- */
  --gold: #d8b26a;
  --gold-strong: #e8c886;
  --gold-dim: #a9863f;
  --blue: #7fa8c9;

  /* ---- 文字 ---- */
  --ink: #eee7d8;
  --ink-soft: #cfc6b4;
  --muted: #9aa6b5;
  --dim: #6b7787;

  /* ---- 描边与分隔 ---- */
  --line: rgba(216, 178, 106, 0.18);
  --line-strong: rgba(216, 178, 106, 0.42);
  --line-soft: rgba(255, 255, 255, 0.07);
  --line-soft-2: rgba(255, 255, 255, 0.12);
  --shade: rgba(11, 17, 32, 0.85);

  /* ---- 字体气质 ---- */
  --font-serif: 'Songti SC',SimSun,'Noto Serif SC',Georgia,serif;
  --font-sans: 'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  --font-mono: "JetBrains Mono", "Noto Sans Mono CJK SC", "SFMono-Regular", ui-monospace, monospace;

  /* ---- 字号阶梯 ---- */
  --fs-hero-eyebrow: clamp(30px, 4vw, 56px);
  --fs-hero: clamp(30px, 3.2vw, 46px);
  --fs-h2: clamp(24px, 2.7vw, 38px);
  --fs-h3: 19px;
  --fs-lede: 16px;
  --fs-body: 15px;
  --fs-small: 13px;
  --fs-tiny: 12px;
  --fs-1: 14px;
  --fs-2: 15px;
  --fs-3: 18px;
  --fs-4: 30px;
  --fs-5: 34px;

  /* ---- 间距节奏（4/8 基准） ---- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 44px;
  --space-8: 60px;

  /* ---- 容器与圆角 ---- */
  --container: 1360px;
  --gutter: 24px;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --pill: 999px;

  /* ---- 阴影与遮罩 ---- */
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 10px 30px rgba(0, 0, 0, 0.25);
  --hero-veil: linear-gradient(90deg, var(--bg) 0%, rgba(11, 17, 32, 0.96) 34%, rgba(11, 17, 32, 0.55) 58%, rgba(11, 17, 32, 0.12) 78%, rgba(11, 17, 32, 0.35) 100%);

  /* ---- 首页分区高度预算（1440 基准，来源 03-ui/compare-log.md） ---- */
  --h-header: 80px;
  --h-hero: 386px;
  --h-categories: 338px;
  --h-buying: 309px;
  --h-featured: 271px;
  --h-switch: 229px;
  --h-layout: 211px;
  --h-notes: 141px;
  --h-footer: 194px;
}
