/* ==========================================================================
   tokens.css — 设计变量（改这里 = 全站换肤）
   --------------------------------------------------------------------------
   所有颜色、字体、字号、间距、动效参数都集中在本文件。
   组件样式（styles.css）只允许引用这里的变量，不要写死颜色值。
   修改前请先阅读 /PROJECT-RULES.md
   ========================================================================== */

:root {
  /* ---------- 深色背景层级（首屏之后的所有区块） ---------- */
  --bg-0: #05070a;
  --bg-1: #0a0e14;
  --bg-2: #11161e;
  --surface: #161d27;
  --surface-hover: #1d2633;

  /* ---------- 描边 ---------- */
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);

  /* ---------- 文字 ---------- */
  --text-1: #f2f6fa;
  --text-2: #a9b5c4;
  --text-3: #6f7c8c;
  --text-invert: #06090d;

  /* ---------- 强调色（冰雪蓝） ---------- */
  --accent: #8ed0ff;
  --accent-strong: #4fb2f0;
  --accent-soft: rgba(142, 208, 255, 0.16);
  --accent-glow: rgba(142, 208, 255, 0.28);

  /* ---------- 首屏暗角（调大 = 更暗 = 白色标题更好读） ---------- */
  --hero-veil: 0.86;      /* 右侧最深处不透明度 */
  --hero-veil-mid: 0.42;  /* 中段过渡不透明度 */

  /* ---------- 字体 ---------- */
  --font-display: "Inter", "Helvetica Neue", "Segoe UI", "Noto Sans SC",
    "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Inter", "Helvetica Neue", "Segoe UI", "Noto Sans SC",
    "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Courier New", monospace;

  /* ---------- 字号（clamp = 最小值 / 视口缩放 / 最大值） ---------- */
  --fs-hero: clamp(3.4rem, 11.5vw, 10.5rem);
  --fs-h2: clamp(1.75rem, 3.2vw, 2.6rem);
  --fs-h3: clamp(1.05rem, 1.4vw, 1.25rem);
  --fs-body: clamp(0.95rem, 0.4vw + 0.86rem, 1.0625rem);
  --fs-small: 0.8125rem;
  --fs-micro: 0.6875rem;

  /* ---------- 间距 / 布局 ---------- */
  --container: 1280px;
  --gutter: clamp(20px, 4vw, 64px);
  --section-y: clamp(72px, 9vw, 140px);
  --header-h: 68px;

  /* ---------- 圆角 ---------- */
  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 20px;
  --radius-pill: 999px;

  /* ---------- 阴影 ---------- */
  --shadow-card: 0 18px 40px rgba(0, 0, 0, 0.45);
  --shadow-card-hover: 0 28px 60px rgba(0, 0, 0, 0.6);

  /* ---------- 动效 ---------- */
  --dur-fast: 160ms;
  --dur: 320ms;
  --dur-slow: 700ms;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}
