/* ==========================================================================
   Chu Weimin · cn.chuweimin.com — 全新配色系统 (Theme Tokens)
   默认方案：暗室玄青 · 琥珀微光 (Obsidian Slate & Glacial Amber)
   支持三套画廊级配色一键切换：obsidian | paper | arctic
   ========================================================================== */

:root,
[data-theme="obsidian"] {
  --theme-name: "暗室玄青 · 琥珀微光";
  --bg-page: #0b0e13;
  --bg-elevated: #121720;
  --bg-card: #161c27;
  --bg-card-hover: #1c2432;
  --bg-glass: rgba(11, 14, 19, 0.80);
  --bg-subtle: rgba(242, 239, 233, 0.045);

  --text-primary: #f2efe9;
  --text-secondary: #a1abbc;
  --text-muted: #7b8698;
  --text-on-accent: #0b0e13;

  --accent-primary: #d8a25e;       /* 琥珀微光 — 致敬极地灯火与烂尾楼微光 */
  --accent-primary-hover: #e6b678;
  --accent-primary-soft: rgba(216, 162, 94, 0.14);
  --accent-secondary: #76a6c4;     /* 冰川雾蓝 — 呼应北极峡湾与高原天际 */
  --accent-secondary-soft: rgba(118, 166, 196, 0.14);

  --border-subtle: rgba(242, 239, 233, 0.09);
  --border-strong: rgba(242, 239, 233, 0.18);
  --shadow-card: 0 18px 44px rgba(0, 0, 0, 0.36);
  --shadow-modal: 0 28px 80px rgba(0, 0, 0, 0.65);

  --hero-scrim-top: rgba(11, 14, 19, 0.56);
  --hero-scrim-mid: rgba(11, 14, 19, 0.24);
  --hero-scrim-bot: rgba(11, 14, 19, 0.96);
}

[data-theme="paper"] {
  --theme-name: "美术馆宣纸白";
  --bg-page: #f5f2ec;
  --bg-elevated: #ede8df;
  --bg-card: #ffffff;
  --bg-card-hover: #fcfbf8;
  --bg-glass: rgba(245, 242, 236, 0.88);
  --bg-subtle: rgba(24, 26, 31, 0.04);

  --text-primary: #181b20;
  --text-secondary: #4e5663;
  --text-muted: #6c7585;
  --text-on-accent: #ffffff;

  --accent-primary: #9e6b2f;       /* 暖青铜 */
  --accent-primary-hover: #835622;
  --accent-primary-soft: rgba(158, 107, 47, 0.12);
  --accent-secondary: #366580;     /* 沉静石青 */
  --accent-secondary-soft: rgba(54, 101, 128, 0.12);

  --border-subtle: rgba(24, 27, 32, 0.10);
  --border-strong: rgba(24, 27, 32, 0.20);
  --shadow-card: 0 12px 32px rgba(24, 27, 32, 0.07);
  --shadow-modal: 0 24px 64px rgba(24, 27, 32, 0.22);

  --hero-scrim-top: rgba(12, 16, 22, 0.58);
  --hero-scrim-mid: rgba(12, 16, 22, 0.26);
  --hero-scrim-bot: rgba(12, 16, 22, 0.88);
}

[data-theme="arctic"] {
  --theme-name: "极夜深海蓝";
  --bg-page: #08111c;
  --bg-elevated: #0e1b2b;
  --bg-card: #122236;
  --bg-card-hover: #172b44;
  --bg-glass: rgba(8, 17, 28, 0.82);
  --bg-subtle: rgba(226, 240, 252, 0.05);

  --text-primary: #edf4fa;
  --text-secondary: #98b1c8;
  --text-muted: #6d89a3;
  --text-on-accent: #08111c;

  --accent-primary: #7db9d8;       /* 极光冰蓝 */
  --accent-primary-hover: #99cce6;
  --accent-primary-soft: rgba(125, 185, 216, 0.15);
  --accent-secondary: #e2b478;     /* 破晓暖金 */
  --accent-secondary-soft: rgba(226, 180, 120, 0.14);

  --border-subtle: rgba(152, 177, 200, 0.13);
  --border-strong: rgba(152, 177, 200, 0.26);
  --shadow-card: 0 18px 46px rgba(2, 8, 16, 0.45);
  --shadow-modal: 0 28px 80px rgba(2, 8, 16, 0.72);

  --hero-scrim-top: rgba(8, 17, 28, 0.56);
  --hero-scrim-mid: rgba(8, 17, 28, 0.22);
  --hero-scrim-bot: rgba(8, 17, 28, 0.96);
}

:root {
  --font-serif: "Noto Serif SC", "Songti SC", "STSong", Georgia, serif;
  --font-sans: "Inter", "PingFang SC", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --container-max: 1240px;
  --transition-fast: 180ms cubic-bezier(0.22, 1, 0.36, 1);
  --transition-med: 340ms cubic-bezier(0.22, 1, 0.36, 1);
}
