/* ============================================================
   Sister Chat Design Tokens (Single Source of Truth · v1.2)
   Derived strictly from ui-craft default-tokens.css
   ============================================================ */
:root {
  /* ---------- 颜色 · 品牌 ---------- */
  --brand: #0099ff;
  --brand-hover: #0080d9;
  --brand-soft: #e6f4ff;
  --brand-ring: #99d6ff;

  /* ---------- 颜色 · 底与面 ---------- */
  --bg-page: #f0f2f6;
  --bg-card: #ffffff;
  --bg-subtle: #f5f7fa;
  --bg-muted: #f7f8fb;
  --bg-segment: #ebedf2;
  --bg-avatar: #e8ecf2;
  --bg-placeholder: #e3e7ee;

  /* ---------- 颜色 · 线 ---------- */
  --line: #e4e8ef;
  --line-soft: #eef1f6;
  --line-control: #d8dde6;
  --line-strong: #c5ccd8;
  --track: #dfe3eb;

  /* ---------- 颜色 · 文字 ---------- */
  --text: #1c242b;
  --text-2: #525d68;
  --text-3: #6c7783;
  --text-on-brand: #ffffff;

  /* ---------- 颜色 · 状态与群头衔色阶 ---------- */
  --pass-bg: #dff3e6;  --pass: #236b42;
  --doing-bg: #fef0cd; --doing: #755108;
  --back-bg: #fde3ea;  --back: #963854;
  --todo-bg: #ebeef3;  --todo: #525d68;
  --info-bg: #e6f4ff;  --info: #0072c6;

  --tone-pink-bg: #fde6ef;   --tone-pink-ink: #b03566;
  --tone-blue-bg: #e3f2ff;   --tone-blue-ink: #0f62a8;
  --tone-amber-bg: #fef0d1;  --tone-amber-ink: #8a5607;
  --tone-mint-bg: #def5ea;   --tone-mint-ink: #1e6f4c;
  --tone-violet-bg: #eee6ff; --tone-violet-ink: #5c38a8;

  /* ---------- 头像与在线圆点纯色 ---------- */
  --av-blue: #33a6ff;
  --av-pink: #f26d99;
  --av-amber: #f29d38;
  --av-mint: #34b888;
  --av-violet: #8c6df2;
  --av-coral: #f06d59;

  /* ---------- 字体 ---------- */
  --font: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  /* ---------- 字阶（ui-craft L1–L8 锁死） ---------- */
  --fs-title: 24px;   --lh-title: 32px;
  --fs-h2: 16px;      --lh-h2: 24px;
  --fs-tab: 15px;     --lh-tab: 24px;
  --fs-body: 14px;    --lh-body: 22px;
  --fs-aux: 13px;     --lh-aux: 20px;
  --fs-note: 12px;    --lh-note: 18px;
  --fs-read: 15px;    --lh-read: 22px;
  --fw-regular: 400;  --fw-medium: 500;  --fw-bold: 600;

  /* ---------- 间距（4px 基准锁死） ---------- */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 20px;
  --s6: 24px; --s8: 32px; --s10: 40px; --s14: 56px;
  --card-pad: 24px;
  --card-gap: 16px;
  --grid-gap: 12px;

  /* ---------- 布局 ---------- */
  --chat-max: 560px;
  --drawer-w: 320px;

  /* ---------- 控件高度（锁死） ---------- */
  --h-tag: 22px;
  --h-sm: 32px;
  --h-md: 36px;
  --h-lg: 40px;
  --h-xl: 48px;
  --hit: 44px;

  /* ---------- 圆角（锁死） ---------- */
  --r-card: 16px;
  --r-control: 12px;
  --r-small: 8px;
  --r-tail: 4px;      /* 项目专有：QQ 气泡指向角微收圆角 */
  --r-pill: 999px;

  /* ---------- 阴影与遮罩 ---------- */
  --shadow-pop: 0 12px 32px rgba(28, 36, 43, 0.14);
  --shadow-paper: 0 8px 24px rgba(28, 36, 43, 0.08);
  --mask: rgba(28, 36, 43, 0.36);
  --mask-dark: rgba(14, 19, 24, 0.88);
  --img-ring: rgba(28, 36, 43, 0.08);
  --bubble-quote-me: rgba(255, 255, 255, 0.18);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
*::-webkit-scrollbar { width: 6px; height: 6px; }
*::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: var(--r-pill); }
*::-webkit-scrollbar-track { background: transparent; }
