/* ==========================================================================
   css/tokens.css — 严格保留既有规范，未作改动
   ========================================================================== */
:root {
  /* === 白昼模式：白昼·大气层 (Daylight Atmosphere) === */
  --bg-canvas: #F5F3EE;
  --bg-surface: #FAF9F6;
  --bg-elevated: #EFECE4;
  --bg-topbar: rgba(245, 243, 238, 0.92);
  --bg-plate: #FAF9F6;

  --ink-primary: #141619;
  --ink-secondary: #4A545C;
  --ink-muted: #788C9C;
  --ink-plate: #141619;

  /* 线条与网格 */
  --line-hairline: rgba(20, 22, 25, 0.14);
  --line-strong: #1A1D20;
  --grid-dot: rgba(20, 22, 25, 0.18);
  --reticle-line: rgba(20, 22, 25, 0.52);

  /* 艺术主色与点睛色 */
  --accent-sky: #1D8FE1;
  --accent-teal: #3BA8A0;
  --accent-mist: #788C9C;
  --accent-vermilion: #B83B24;

  /* 阴影（严禁模糊大阴影，仅用极克制硬边缘位移） */
  --shadow-card-hover: 3px 3px 0px #1A1D20;

  /* === 四层中英文字体排印系统 === */
  --font-display-sans: "Space Grotesk", "Helvetica Neue", "Noto Sans SC", -apple-system, sans-serif;
  --font-display-serif: "Instrument Serif", "Noto Serif SC", "Songti SC", Georgia, serif;
  --font-body: "Noto Serif SC", "Songti SC", "PingFang SC", Georgia, serif;
  --font-ui: "Inter", "Noto Sans SC", "PingFang SC", -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  /* === 布局、间距与克制动效 === */
  --topbar-height: 44px;
  --container-max: 1200px;
  --gutter-page: clamp(20px, 4vw, 56px);

  --ease-crisp: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 180ms;
  --dur-base: 260ms;
  --dur-theme: 300ms;
}

[data-theme="dark"] {
  /* === 暗夜模式：暗夜·蚀刻版画 (Nocturne Print) === */
  --bg-canvas: #13181A;
  --bg-surface: #1A2124;
  --bg-elevated: #212A2E;
  --bg-topbar: rgba(19, 24, 26, 0.92);
  --bg-plate: #EAE7DF;

  --ink-primary: #EAE7DF;
  --ink-secondary: #A3B0B8;
  --ink-muted: #6C7D87;
  --ink-plate: #13181A;

  --line-hairline: rgba(234, 231, 223, 0.14);
  --line-strong: #D8D4CA;
  --grid-dot: rgba(234, 231, 223, 0.14);
  --reticle-line: rgba(234, 231, 223, 0.56);

  --accent-sky: #4AA8EC;
  --accent-teal: #49B8AF;
  --accent-mist: #8FA3B2;
  --accent-vermilion: #D44D34;

  --shadow-card-hover: 3px 3px 0px rgba(234, 231, 223, 0.85);
}
