/* =========================================================
   mini 办公室 / MiniOfficeX — Design Tokens v0.1
   唯一的设计变量来源。官网 + 控制台共用。
   ========================================================= */

/* ---------- Fonts (本地子集化字体，离线可用) ---------- */
@font-face { font-family: "MOX Serif"; src: url("../fonts/mox-serif-light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "MOX Serif"; src: url("../fonts/mox-serif-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "MOX Sans"; src: url("../fonts/mox-sans-light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "MOX Sans"; src: url("../fonts/mox-sans-regular.woff2") format("woff2"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "MOX Sans"; src: url("../fonts/mox-sans-bold.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "MOX Latin"; src: url("../fonts/inter-var.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "MOX Display Latin"; src: url("../fonts/cormorant-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }

:root {
  /* ---------- Color · 纸（背景） ---------- */
  --paper-0: #FFFFFF;          /* 卡片 / 浮层 */
  --paper-50: #FAFAF7;         /* 页面底色（宣传片同款暖白） */
  --paper-100: #F5F3EE;        /* 次级底色 / 侧栏 */
  --paper-200: #ECE9E1;        /* 分割线 / 描边 */
  --paper-300: #DEDAD0;        /* 强描边 / 禁用 */

  /* ---------- Color · 墨（文字，navy） ---------- */
  --ink-900: #1E2B4F;          /* 主文字，宣传片字幕色 */
  --ink-700: #36426A;          /* 次级标题 */
  --ink-500: #5A6683;          /* 说明文字 */
  --ink-400: #7D86A0;          /* 占位 / 辅助 */
  --ink-300: #A7AEC0;          /* 禁用文字 */

  /* ---------- Color · 钴蓝（主色，纸团子折角） ---------- */
  --cobalt-700: #1A3DB0;
  --cobalt-600: #2350D8;       /* Primary */
  --cobalt-500: #3D6AF0;
  --cobalt-200: #C9D6FB;
  --cobalt-100: #E6ECFD;
  --cobalt-50:  #F2F5FE;

  /* ---------- Color · 珊瑚（腮红，极少量使用） ---------- */
  --coral-500: #EE7A62;
  --coral-100: #FCEAE4;

  /* ---------- Color · 语义 ---------- */
  --ok-600: #2E7D5B;   --ok-100: #E3F1EA;
  --warn-600: #A86A12; --warn-100: #F8EEDB;
  --bad-600: #B9443A;  --bad-100: #F8E4E1;
  --info-600: var(--cobalt-600); --info-100: var(--cobalt-100);

  /* ---------- Color · SI 光（未来感点缀） ---------- */
  --si-glow: radial-gradient(60% 60% at 50% 40%, rgba(255,240,214,.85) 0%, rgba(214,226,255,.55) 38%, rgba(250,250,247,0) 72%);
  --si-line: linear-gradient(90deg, rgba(35,80,216,0) 0%, rgba(35,80,216,.55) 50%, rgba(35,80,216,0) 100%);
  --si-halo: 0 0 0 1px rgba(61,106,240,.18), 0 0 32px rgba(61,106,240,.18);

  /* ---------- Typography ---------- */
  --font-serif: "MOX Serif", "Noto Serif SC", "Noto Serif CJK SC", "Songti SC", serif;
  --font-sans: "MOX Latin", "MOX Sans", "Noto Sans SC", "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-latin-display: "MOX Display Latin", "Cormorant Garamond", Georgia, serif;
  --font-num: "MOX Latin", "Inter", ui-sans-serif, sans-serif;

  /* 字号阶梯（px / 行高） */
  --fs-display: 64px;  --lh-display: 1.25;  /* 官网主标语，Serif Light */
  --fs-h1: 40px;       --lh-h1: 1.3;
  --fs-h2: 28px;       --lh-h2: 1.35;
  --fs-h3: 20px;       --lh-h3: 1.45;
  --fs-body-lg: 17px;  --lh-body-lg: 1.8;
  --fs-body: 14px;     --lh-body: 1.65;     /* 控制台基准 */
  --fs-sm: 13px;       --lh-sm: 1.55;
  --fs-xs: 12px;       --lh-xs: 1.5;
  --fs-num-xl: 36px;                        /* 金额 */
  --tracking-serif: .08em;                  /* 衬线标题字距（宣传片字幕风格） */
  --tracking-label: .12em;

  /* ---------- Spacing（4px 基准） ---------- */
  --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; --sp-16: 64px; --sp-20: 80px; --sp-24: 96px; --sp-32: 128px;

  /* ---------- Radius ---------- */
  --r-xs: 4px; --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-xl: 20px; --r-pill: 999px;
  --fold: 14px;    /* 纸张折角尺寸 */

  /* ---------- Shadow（纸张浮起感，偏暖、低对比） ---------- */
  --sh-1: 0 1px 2px rgba(30,43,79,.06);
  --sh-2: 0 1px 2px rgba(30,43,79,.05), 0 4px 14px rgba(30,43,79,.06);
  --sh-3: 0 2px 4px rgba(30,43,79,.05), 0 14px 36px rgba(30,43,79,.10);
  --sh-pop: 0 6px 16px rgba(30,43,79,.10), 0 24px 60px rgba(30,43,79,.14);
  --ring: 0 0 0 3px rgba(35,80,216,.18);

  /* ---------- Motion ---------- */
  --ease-out: cubic-bezier(.2,.7,.2,1);
  --ease-paper: cubic-bezier(.34,1.3,.5,1);   /* 纸张轻弹 */
  --dur-1: 120ms; --dur-2: 220ms; --dur-3: 420ms; --dur-reveal: 1400ms;

  /* ---------- Layout ---------- */
  --w-site: 1200px; --w-text: 680px;
  --console-side: 248px; --console-top: 60px;

  /* ---------- Texture：纸纹（SVG 噪点，极低不透明度） ---------- */
  --paper-grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .12  0 0 0 0 .17  0 0 0 0 .31  0 0 0 .05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

@media (max-width: 760px) {
  :root { --fs-display: 38px; --fs-h1: 30px; --fs-h2: 23px; --fs-body-lg: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { --dur-1: 0ms; --dur-2: 0ms; --dur-3: 0ms; --dur-reveal: 0ms; }
}
