/* ============================================================
 * tokens.css - 设计令牌（亮色系单一配色）
 * 风格参考 Linear / Notion / Vercel：纯净白底、克制灰阶、精致边框、柔和阴影
 * ============================================================ */

:root {
  /* ---- 品牌色（蓝色系主色，参考 Linear/Vercel） ---- */
  --c-brand: #0f172a;          /* slate-900 仅用于导航背景 */
  --c-brand-soft: #1e293b;     /* slate-800 导航 hover */
  --c-accent: #2563eb;         /* blue-600 主交互色（按钮/链接/高亮） */
  --c-accent-hover: #1d4ed8;   /* blue-700 */
  --c-accent-soft: #eff6ff;    /* blue-50 浅底高亮 */
  --c-accent-border: #93c5fd;  /* blue-300 边框高亮 */

  /* ---- 中性色阶（纯净灰白系） ---- */
  --c-bg: #ffffff;             /* 页面背景 纯白 */
  --c-bg-elevated: #ffffff;    /* 卡片背景 */
  --c-bg-subtle: #f8fafc;      /* slate-50 次级背景 */
  --c-bg-input: #ffffff;       /* 输入框 */
  --c-bg-hover: #f1f5f9;       /* slate-100 hover */
  --c-text: #0f172a;           /* slate-900 主文本 */
  --c-text-secondary: #475569; /* slate-600 次文本 */
  --c-text-muted: #94a3b8;     /* slate-400 辅助文本 */
  --c-text-disabled: #cbd5e1;  /* slate-300 */
  --c-border: #e2e8f0;         /* slate-200 边框 */
  --c-border-strong: #cbd5e1;  /* slate-300 */
  --c-divider: #f1f5f9;        /* slate-100 分割线 */

  /* ---- 语义色 ---- */
  --c-success: #16a34a;
  --c-success-bg: #f0fdf4;
  --c-warning: #d97706;
  --c-warning-bg: #fffbeb;
  --c-error: #dc2626;
  --c-error-bg: #fef2f2;
  --c-info: #2563eb;
  --c-info-bg: #eff6ff;

  /* ---- 间距系统（4px 基准） ---- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* ---- 字体（整体调大，避免过小） ---- */
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --font-mono: "SF Mono", "Cascadia Code", "Consolas", "Courier New", monospace;
  --fs-xs: 13px;
  --fs-sm: 14px;
  --fs-base: 15px;
  --fs-md: 16px;
  --fs-lg: 18px;
  --fs-xl: 22px;
  --fs-2xl: 26px;
  --fs-3xl: 34px;
  --fw-normal: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;
  --lh-tight: 1.4;
  --lh-base: 1.6;
  --lh-loose: 1.8;

  /* ---- 圆角 ---- */
  --radius-sm: 6px;
  --radius: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* ---- 阴影（克制柔和） ---- */
  --shadow-sm: 0 1px 2px rgba(15,23,42,0.04);
  --shadow: 0 1px 3px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.04);
  --shadow-md: 0 4px 6px -1px rgba(15,23,42,0.07), 0 2px 4px -2px rgba(15,23,42,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15,23,42,0.08), 0 4px 6px -4px rgba(15,23,42,0.05);
  --shadow-focus: 0 0 0 3px rgba(37,99,235,0.12);

  /* ---- 动画 ---- */
  --transition-fast: 0.15s ease;
  --transition: 0.2s ease;
  --transition-slow: 0.3s ease;

  /* ---- 层级 ---- */
  --z-nav: 100;
  --z-sticky: 200;
  --z-overlay: 1000;
  --z-modal: 1100;
  --z-toast: 1200;

  /* ---- 布局 ---- */
  --nav-height: 52px;
  --sidebar-width: 240px;
  --content-padding: var(--space-6);
  --content-padding-bottom: var(--space-12);
}
