:root,
[data-theme="light"] {
  /* 样板 A：宋画卷轴 · 宣纸石青（70% 古绢宣纸 · 20% 徽墨石青 · 10% 克制朱砂印） */
  --bg-app: #e4dac5;
  --bg-surface: #f6f0e1;
  --bg-card: #fbf8ef;
  --bg-elevated: #f1ead9;
  --bg-inset: #ede5d1;
  --bg-card-hover: #f2ead8;
  --bg-pattern:
    radial-gradient(ellipse at 20% 0%, rgba(255, 250, 236, 0.56) 0%, transparent 56%),
    radial-gradient(ellipse at 85% 100%, rgba(178, 162, 130, 0.36) 0%, transparent 52%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='0.042'/%3E%3C/svg%3E");

  --text-main: #1e1c18;
  --text-body: #3e3a32;
  --text-muted: #726a5b;
  --text-dim: #9e9482;

  --accent-primary: #244644;       /* 宋代石青黛绿：主交互色 */
  --accent-primary-fg: #f6f0e1;
  --accent-primary-soft: rgba(36, 70, 68, 0.09);
  --accent-gold: #9a7432;          /* 哑光古金 */
  --accent-vermilion: #a63428;     /* 真·朱砂印泥（克制方印） */
  --accent-vermilion-soft: rgba(166, 52, 40, 0.09);
  --accent-green: #2d7d5e;
  --accent-blue: #2e6796;
  --accent-red: #b53a2e;
  --accent-purple: #6f4c9a;

  --hairline: rgba(94, 78, 52, 0.14);
  --border-subtle: rgba(94, 78, 52, 0.18);
  --border-strong: rgba(94, 78, 52, 0.32);

  --mat-bg: linear-gradient(180deg, #dfd4bc, #cfc2a6);
  --mat-pad: 7px;

  --shadow-card: 0 2px 12px rgba(54, 42, 24, 0.06);
  --shadow-float: 0 12px 30px rgba(46, 36, 20, 0.14);

  --radius-sm: 3px;
  --radius-md: 4px;
  --radius-lg: 4px;

  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-serif: "STZhongsong", "STSong", "SimSun", Georgia, serif;
  --font-calli: "STKaiti", "KaiTi", "STFangsong", serif;
  --font-seal: "STLiti", "STZhongsong", serif;
  --font-num: "Palatino Linotype", Georgia, "STZhongsong", serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
  /* 样板 B：影神黑漆 · 徽墨鎏金（70% 徽墨乌漆 · 20% 暗哑古金 · 10% 幽青与朱砂印） */
  --bg-app: #07090c;
  --bg-surface: #10151c;
  --bg-card: #151b23;
  --bg-elevated: #1a212b;
  --bg-inset: #0b0e13;
  --bg-card-hover: #1e2732;
  --bg-pattern:
    radial-gradient(ellipse at 50% 0%, rgba(44, 62, 74, 0.24) 0%, transparent 56%),
    radial-gradient(ellipse at 15% 100%, rgba(120, 86, 44, 0.10) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.88' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");

  --text-main: #e8e0cf;
  --text-body: #b8b0a0;
  --text-muted: #7c776e;
  --text-dim: #55514a;

  --accent-primary: #c4a462;       /* 暗哑古金（彻底告别刺眼亮黄） */
  --accent-primary-fg: #12100b;
  --accent-primary-soft: rgba(196, 164, 98, 0.11);
  --accent-gold: #c4a462;
  --accent-vermilion: #b84234;
  --accent-vermilion-soft: rgba(184, 66, 52, 0.18);
  --accent-green: #58c9b0;         /* 幽青灵气 */
  --accent-blue: #6aa7dc;
  --accent-red: #cf5648;
  --accent-purple: #a887d4;

  --hairline: rgba(196, 164, 98, 0.10);
  --border-subtle: rgba(196, 164, 98, 0.14);
  --border-strong: rgba(196, 164, 98, 0.28);

  --mat-bg: #0a0d12;
  --mat-pad: 0px;

  --shadow-card: 0 8px 26px rgba(0, 0, 0, 0.44), inset 0 1px 0 rgba(255, 240, 200, 0.04);
  --shadow-float: 0 16px 40px rgba(0, 0, 0, 0.62);
}

[data-frosted="true"] {
  --bg-card: rgba(21, 27, 35, 0.78);
  --bg-surface: rgba(16, 21, 28, 0.84);
}
[data-theme="light"][data-frosted="true"] {
  --bg-card: rgba(251, 248, 239, 0.86);
  --bg-surface: rgba(246, 240, 225, 0.90);
}
