/* ==========================================================================
   DIRUISI — 设计变量
   --------------------------------------------------------------------------
   这里是全站视觉的“总开关”。改品牌色、字级、间距、圆角，只改这个文件即可，
   不需要动任何页面代码。

   想换整体色调：改 --paper / --ink / --accent 三组。
   想换风格更“硬”或更“柔”：改 --radius 与 --section-y。
   ========================================================================== */

:root {
  /* ---------- 颜色 ---------- */
  --paper: #f7f5f1;          /* 页面底色，暖白 */
  --paper-2: #efeae3;        /* 次级底色 / 图版背景 */
  --paper-3: #e5dfd5;        /* 更深的纸色 */
  --white: #fffdfa;

  --ink: #151310;            /* 主文字，近黑 */
  --ink-2: #3b362f;          /* 次级文字 */
  --ink-3: #6f6860;          /* 说明文字 */
  --ink-4: #9a948b;          /* 弱化文字 / 占位 */

  --line: rgba(21, 19, 16, 0.14);
  --line-soft: rgba(21, 19, 16, 0.07);

  --accent: #8e3b2c;         /* 砖红，用于价格、选中态、少量标记 */
  --accent-ink: #773024;
  --accent-wash: rgba(142, 59, 44, 0.08);
  --brass: #b08a5a;          /* 五金示意色 */

  --ok: #3f6b4f;
  --warn: #8a5a2b;

  /* 深色区（页脚） */
  --night: #14120f;
  --night-ink: #f2eee7;
  --night-line: rgba(242, 238, 231, 0.16);

  /* ---------- 字体 ---------- */
  /* 拉丁字母用 Georgia（编辑感），中文回落到宋体 */
  --font-serif: Georgia, "Songti SC", "Source Han Serif SC", "Noto Serif CJK SC",
    "STSong", "SimSun", serif;
  --font-sans: "Helvetica Neue", Inter, Arial, "PingFang SC", "HarmonyOS Sans SC",
    "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* 字级：移动端到桌面端平滑过渡 */
  --text-xs: 0.75rem;                          /* 12 */
  --text-sm: 0.8125rem;                        /* 13 */
  --text-base: 0.9375rem;                      /* 15 */
  --text-md: 1.0625rem;                        /* 17 */
  --text-lg: 1.375rem;                         /* 22 */
  --text-xl: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
  --text-2xl: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  --text-3xl: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  --text-display: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);

  --tracking-wide: 0.14em;
  --tracking-wider: 0.22em;
  --leading-tight: 1.18;
  --leading-snug: 1.45;
  --leading-body: 1.85;

  /* ---------- 布局 ---------- */
  --max: 1440px;
  --max-text: 720px;
  --gutter: clamp(20px, 4.2vw, 64px);
  --header-h: 72px;
  --section-y: clamp(64px, 7vw, 120px);
  --grid-gap: clamp(16px, 2vw, 32px);

  /* ---------- 形状与动效 ---------- */
  --radius: 2px;             /* 结构利落：几乎不用圆角 */
  --radius-pill: 999px;
  --shadow-soft: 0 18px 50px -28px rgba(21, 19, 16, 0.35);
  --shadow-card: 0 30px 60px -40px rgba(21, 19, 16, 0.45);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 160ms;
  --dur: 320ms;
  --dur-slow: 720ms;

  /* 顶部/底部安全区 */
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* 页面主体宽度辅助 */
@media (min-width: 1600px) {
  :root { --gutter: 72px; }
}
