/*
 * 四大名著研读站 · 主题系统
 * 每个主题仅覆盖 CSS 变量；组件样式见 base.css。
 * 默认：guofeng（现代国风，借鉴 sdmz.net）
 */

:root,
[data-theme="guofeng"] {
  --bg: #f6f1e7;
  --bg-2: #efe7d6;
  --surface: #fffdf8;
  --text: #2a2622;
  --text-soft: #5a5247;
  --muted: #8a7f6e;
  --accent: #9e2b25;
  --accent-2: #b5651d;
  --gold: #b08d57;
  --line: #e0d6c2;
  --shadow: 0 6px 24px rgba(80,60,30,.10);
  --brand-font: "Kaiti SC", KaiTi, STKaiti, "Noto Serif SC", serif;
  --body-font: "Noto Serif SC", "Source Han Serif SC", "Songti SC", STSong, SimSun, serif;
  --maxw: 1080px;
  --readw: 760px;
}

/* 古典 · 线装书风：旧纸、深朱、描金，沉静古雅 */
[data-theme="classic"] {
  --bg: #e9ddc4;
  --bg-2: #e0d2b4;
  --surface: #f5ecd6;
  --text: #3b2f22;
  --text-soft: #5e4d35;
  --muted: #8c7752;
  --accent: #7a2418;
  --accent-2: #946b2f;
  --gold: #9c7a3c;
  --line: #cdb98f;
  --shadow: 0 4px 18px rgba(60,40,20,.14);
  --brand-font: "Kaiti SC", KaiTi, STKaiti, STSong, serif;
  --body-font: "Noto Serif SC", "Songti SC", STSong, SimSun, serif;
  --maxw: 1040px;
  --readw: 720px;
}

/* 故宫风：宫墙红、描金、宝蓝，庄重华美 */
[data-theme="gugong"] {
  --bg: #f4ecdd;
  --bg-2: #ecdfc6;
  --surface: #fbf6ec;
  --text: #2b2118;
  --text-soft: #5a4632;
  --muted: #8a7355;
  --accent: #9e1f1a;       /* 宫墙红 */
  --accent-2: #c8a45c;     /* 描金 */
  --gold: #c8a45c;
  --line: #e2cfa6;
  --shadow: 0 6px 22px rgba(90,40,20,.14);
  --brand-font: "Kaiti SC", KaiTi, STKaiti, STSong, serif;
  --body-font: "Noto Serif SC", "Songti SC", STSong, SimSun, serif;
  --maxw: 1080px;
  --readw: 760px;
}

/* 水墨 · 留白极简：大量留白，墨黑单点朱 */
[data-theme="ink"] {
  --bg: #fafafa;
  --bg-2: #f0f0f0;
  --surface: #ffffff;
  --text: #1f1f1f;
  --text-soft: #555;
  --muted: #999;
  --accent: #b03a2e;
  --accent-2: #777;
  --gold: #b08d57;
  --line: #e8e8e8;
  --shadow: 0 2px 12px rgba(0,0,0,.06);
  --brand-font: "Kaiti SC", KaiTi, STKaiti, STSong, serif;
  --body-font: "Noto Serif SC", "Songti SC", STSong, SimSun, serif;
  --maxw: 1000px;
  --readw: 720px;
}

/* 暗夜阅读：暖调深褐，护眼长读 */
[data-theme="night"] {
  --bg: #1c1916;
  --bg-2: #241f1a;
  --surface: #26211b;
  --text: #ece3d2;
  --text-soft: #bcae97;
  --muted: #8a7d68;
  --accent: #e07a6f;
  --accent-2: #e0a86a;
  --gold: #b08d57;
  --line: #3a322a;
  --shadow: 0 6px 24px rgba(0,0,0,.4);
  --brand-font: "Kaiti SC", KaiTi, STKaiti, STSong, serif;
  --body-font: "Noto Serif SC", "Songti SC", STSong, SimSun, serif;
  --maxw: 1080px;
  --readw: 760px;
}

/* 民国铅字风：道林米黄纸 + 仿宋铅字，黑白双线报刊感 */
[data-theme="republic"] {
  --bg: #efe6cd;
  --bg-2: #e7dcc0;
  --surface: #f6efda;
  --text: #2c2418;
  --text-soft: #564832;
  --muted: #8a7a5c;
  --accent: #9c2b22;       /* 印泥红 */
  --accent-2: #2c2c2c;     /* 铅字黑 */
  --gold: #b08d57;
  --line: #cdbf9c;
  --shadow: 0 3px 14px rgba(40,30,15,.12);
  --brand-font: "Kaiti SC", KaiTi, STKaiti, "Noto Serif SC", serif;
  --body-font: "FangSong", "STFangsong", "仿宋", "Noto Serif SC", "Songti SC", STSong, SimSun, serif;
  --maxw: 1060px;
  --readw: 780px;
}

/* 护眼羊皮纸：暖黄羊皮纸底色，低对比长读护眼 */
[data-theme="parchment"] {
  --bg: #f6efd6;
  --bg-2: #f1e8c8;
  --surface: #fbf5e2;
  --text: #463c22;
  --text-soft: #6a5c3a;
  --muted: #97865c;
  --accent: #6f7a3e;       /* 护眼橄榄绿 */
  --accent-2: #9c7b3a;
  --gold: #b08d57;
  --line: #e3d6ad;
  --shadow: 0 4px 18px rgba(90,75,30,.10);
  --brand-font: "Kaiti SC", KaiTi, STKaiti, "Noto Serif SC", serif;
  --body-font: "Noto Serif SC", "Songti SC", STSong, SimSun, serif;
  --maxw: 1080px;
  --readw: 780px;
}

/* 竖排古籍风：线装竖读，右起竖排（颜色取古典线装基调） */
[data-theme="vertical"] {
  --bg: #ece0c6;
  --bg-2: #e3d4b3;
  --surface: #f3e8cf;
  --text: #36291a;
  --text-soft: #5b4a30;
  --muted: #8a7550;
  --accent: #7a2418;
  --accent-2: #946b2f;
  --gold: #9c7a3c;
  --line: #cdb98f;
  --shadow: 0 4px 18px rgba(60,40,20,.14);
  --brand-font: "Kaiti SC", KaiTi, STKaiti, STSong, serif;
  --body-font: "Noto Serif SC", "Songti SC", STSong, SimSun, serif;
  --maxw: 1100px;
  --readw: 900px;
}
