/* ==========================================================================
   一方 YIFANG · Design Tokens
   Brand: 暖象牙纸感底 · 墨色文字 · 节令金主色 · 五行功能色
   ========================================================================== */

:root {
  /* ---- Ink & Paper ---- */
  --ink-900: #12141a;
  --ink-800: #1c1f26;
  --ink-700: #2b303a;
  --ink-600: #444b57;
  --ink-500: #6b7280;
  --ink-400: #8d939e;
  --ink-300: #b4b9c2;
  --ink-200: #d8dbe1;

  --paper: #fbfaf7;
  --paper-2: #f5f3ed;
  --surface: #ffffff;
  --surface-2: #f7f5f0;
  --surface-3: #efece4;

  --line: #e8e4da;
  --line-strong: #d9d4c7;

  /* ---- Brand ---- */
  --gold-700: #8a6a2f;
  --gold-600: #a8843f;
  --gold-500: #c2a061;
  --gold-400: #d8bd8a;
  --gold-100: #f3ead6;
  --gold-050: #faf5e9;

  --jade-600: #3f6b5b;
  --jade-100: #e6efe9;

  /* ---- 五行功能色 ---- */
  --wx-metal: #a3894f;
  --wx-metal-bg: #f5efdf;
  --wx-wood: #557a4b;
  --wx-wood-bg: #eaf0e6;
  --wx-water: #47698a;
  --wx-water-bg: #e7edf3;
  --wx-fire: #b0573f;
  --wx-fire-bg: #f8eae5;
  --wx-earth: #96764f;
  --wx-earth-bg: #f4ece1;

  /* ---- 语义状态 ---- */
  --ok: #3f7a56;
  --ok-bg: #e8f1ea;
  --warn: #a97a2a;
  --warn-bg: #fbf1dd;
  --danger: #b0453c;
  --danger-bg: #fbeae8;
  --info: #40607f;
  --info-bg: #e9eff5;

  /* ---- Night surfaces (报告封面 / 会员 / 分析中) ---- */
  --night-900: #101216;
  --night-800: #171a20;
  --night-700: #21252d;
  --night-line: rgba(255, 255, 255, 0.1);
  --night-text: #f4f1ea;
  --night-muted: #9b968b;

  /* ---- Typography ---- */
  --font-serif: "Noto Serif SC", "Songti SC", "Source Han Serif SC", "SimSun", Georgia, serif;
  --font-sans: "Inter", "PingFang SC", "Noto Sans SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-num: "Inter", "SF Pro Display", system-ui, sans-serif;

  --fs-display: 34px;
  --fs-h1: 25px;
  --fs-h2: 19px;
  --fs-h3: 16px;
  --fs-body: 14.5px;
  --fs-sm: 13px;
  --fs-xs: 11.5px;
  --fs-micro: 10.5px;

  --lh-tight: 1.24;
  --lh-body: 1.62;

  /* ---- Space (8pt rhythm) ---- */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;

  /* ---- Radius (克制，不统一大圆角) ---- */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 22px;
  --r-pill: 999px;

  /* ---- Elevation ---- */
  --sh-1: 0 1px 2px rgba(20, 22, 26, 0.045);
  --sh-2: 0 1px 2px rgba(20, 22, 26, 0.04), 0 8px 22px -14px rgba(20, 22, 26, 0.14);
  --sh-3: 0 2px 4px rgba(20, 22, 26, 0.04), 0 18px 40px -22px rgba(20, 22, 26, 0.2);

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.3, 0.5, 1);
  --t-fast: 140ms;
  --t-base: 220ms;
  --t-slow: 380ms;
}

/* Admin 侧更密的节奏 */
:root {
  --adm-bg: #f4f5f7;
  --adm-sidebar: #15181d;
  --adm-sidebar-hover: #22262e;
  --adm-line: #e3e6eb;
  --adm-ink: #1a1e26;
  --adm-muted: #6f7684;
  --adm-r: 8px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
