/* 设计令牌：浅灰精密工作台。Restrained 色彩策略，唯一强调色只用于状态与数据。 */
:root {
  /* 地面层次 */
  --ground: #f4f5f6;
  --ground-2: #eceff1;
  --ground-3: #e7eaed;
  --surface: #ffffff;
  --surface-sunken: #fafbfb;
  --surface-hover: #f7f8f9;

  /* 墨色 */
  --ink: #1b1f24;
  --ink-2: #3b434c;
  --ink-3: #525b66;
  --ink-4: #656e78;
  --ink-inverse: #f7f8f9;

  /* 描边 */
  --line: #e2e5e8;
  --line-strong: #d3d8dd;
  --line-soft: #edeff1;

  /* 状态与强调 */
  --accent: #4a6672;
  --accent-soft: #e8eef0;
  --accent-ink: #33505c;
  --primary: #20262d;
  --primary-hover: #333c46;
  --primary-active: #151a1f;
  --success: #3f6f58;
  --success-soft: #e8f1ec;
  --warning: #8a6a32;
  --warning-soft: #f6f0e2;
  --danger: #9b4a47;
  --danger-soft: #f8eceb;
  --info-soft: #eceff1;

  /* 排版 */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.8125rem;
  --fs-base: 0.875rem;
  --fs-md: 0.9375rem;
  --fs-lg: 1.0625rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: 1.875rem;
  --lh-tight: 1.3;
  --lh-base: 1.6;
  --tracking-tight: -0.02em;
  --tracking-wide: 0.08em;

  /* 间距节奏 */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 20px;
  --s6: 24px;
  --s7: 32px;
  --s8: 40px;
  --s9: 56px;
  --s10: 72px;

  /* 形态 */
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 10px;
  --r-xl: 14px;
  --r-pill: 999px;

  /* 深度：offset + soft blur，不用零偏移光晕 */
  --shadow-1: 0 1px 2px rgba(27, 31, 36, 0.04), 0 2px 8px rgba(27, 31, 36, 0.03);
  --shadow-2: 0 1px 2px rgba(27, 31, 36, 0.05), 0 10px 28px rgba(27, 31, 36, 0.07);
  --shadow-3: 0 2px 6px rgba(27, 31, 36, 0.07), 0 24px 56px rgba(27, 31, 36, 0.12);

  /* 动效 */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 120ms;
  --t-state: 200ms;
  --t-layout: 340ms;
  --t-focal: 520ms;

  /* 布局 */
  --topbar-h: 64px;
  --sidebar-w: 244px;
  --settings-w: 300px;
  --content-max: 1180px;
}

[data-font-scale="compact"] { --fs-base: 0.8125rem; --fs-md: 0.875rem; }
[data-font-scale="large"] { --fs-base: 0.9375rem; --fs-md: 1rem; --fs-lg: 1.1875rem; }
