/* 设计变量：配色（浅色 / 深色）、字体、尺寸 */
/* 页面结构：一幅横向展开的"长卷"——上方全景缩略条，中部按真实年份比例排布的政权泳道，下方为选中朝代的详情与全部朝代一览 */
:root{
  --paper:#F1EBDE; --surface:#FBF8F1; --surface-2:#F4EEE2; --ink:#231F1A; --muted:#6B6359; --line:#DDD3C1;
  --accent:#2F5D88; --seal:#B0362A; --on-era:#FFFFFF;
  --e-xianqin:#94642F; --e-qinhan:#AE412E; --e-weijin:#93405C; --e-suitang:#A47F10;
  --e-songyuan:#2C785D; --e-mingqing:#2D5F9C; --e-modern:#4A546D;
  --f-brush:"Ma Shan Zheng","STKaiti","KaiTi","Kaiti SC",serif;
  --f-serif:"Noto Serif SC","Songti SC","SimSun",serif;
  --f-text:"LXGW WenKai Screen","Kaiti SC","STKaiti","KaiTi",serif;
  --f-sans:"Noto Sans SC","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  --lane-h:46px;
  --radius:14px; --radius-sm:8px;
  --shadow:0 1px 2px rgb(60 40 20 / .06), 0 8px 24px -12px rgb(60 40 20 / .18);
  --shadow-lg:0 2px 6px rgb(60 40 20 / .08), 0 24px 48px -20px rgb(60 40 20 / .35);
  --map-sea:#DCE2DF; --map-land:#EFE9DC; --map-other:#D6CEBE;
  color-scheme:light;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --paper:#12100D; --surface:#1B1814; --surface-2:#231F1A; --ink:#ECE5D8; --muted:#A39A8C; --line:#342E27;
    --accent:#8DB3DC; --seal:#E5765F; --on-era:#12100D;
    --map-sea:#0E0D0B; --map-land:#25211C; --map-other:#302A24;
    --e-xianqin:#D39D60; --e-qinhan:#E2755E; --e-weijin:#D27C98; --e-suitang:#D8B44A;
    --e-songyuan:#62BB97; --e-mingqing:#76A2DC; --e-modern:#98A2C0;
    --shadow:0 1px 2px rgb(0 0 0 / .3), 0 8px 24px -12px rgb(0 0 0 / .6);
    --shadow-lg:0 2px 6px rgb(0 0 0 / .35), 0 24px 48px -20px rgb(0 0 0 / .75);
    color-scheme:dark;
  }
}
:root[data-theme="dark"]{
  --paper:#12100D; --surface:#1B1814; --surface-2:#231F1A; --ink:#ECE5D8; --muted:#A39A8C; --line:#342E27;
    --accent:#8DB3DC; --seal:#E5765F; --on-era:#12100D;
    --map-sea:#0E0D0B; --map-land:#25211C; --map-other:#302A24;
  --e-xianqin:#D39D60; --e-qinhan:#E2755E; --e-weijin:#D27C98; --e-suitang:#D8B44A;
  --e-songyuan:#62BB97; --e-mingqing:#76A2DC; --e-modern:#98A2C0;
  --shadow:0 1px 2px rgb(0 0 0 / .3), 0 8px 24px -12px rgb(0 0 0 / .6);
  --shadow-lg:0 2px 6px rgb(0 0 0 / .35), 0 24px 48px -20px rgb(0 0 0 / .75);
  color-scheme:dark;
}
