/* 典籍厅 — 基底=宣纸亮色; 深色走 html[data-theme="dark"] 覆盖 (配色随博物馆) */
body { background: #f6f1e5; color: #3a352b; }
#top { background: rgba(255,252,244,.94); border-bottom-color:#d6ccb4; }
#top h1 { color:#3a352b; }
#top .back { color:#6f6755; border-color:#cdc2a8; background:#fffdf5; }
#top .back:hover { color:#a8342a; border-color:#a8342a; }
#top .sub { color:#6f6755; }
.btn { border-color:#cdc2a8; color:#4a4438; background:#fffdf5; }
.btn:hover { border-color:#a8342a; color:#a8342a; }
#side { border-right-color:#d9cfb8; background:#faf5e8; }
.side-h { color:#8a8068; }
#volList .vol { color:#3a352b; }
#volList .vol:hover { background:#f3ebd6; }
#volList .vol.on { background:rgba(168,52,42,.08); }
#volList .cnt { color:#a39a84; }
#volList .vol.grp { border-top-color:#e6ddc8; }
.panel { background:#fffdf5; border:1px solid #d9cfb8; }
.head h2 { color:#3a352b; }
.head .hsub { color:#8a8068; }
.head { background:rgba(255,253,245,.92); }
input[type=search] { border-color:#cdc2a8; color:#3a352b; background:#fffdf5; }
.entries li { border-bottom-color:#e6ddc8; }
.entries li:hover { background:#f7f0dd; }
.entries .t { color:#3a352b; }
.entries .a { color:#8a8068; }
.read .poem-title { color:#3a352b; }
.read .poem-meta { color:#8a8068; }
.read .poem-lines { color:#332e24; }
.read .note { color:#a39a84; }
.fs button { border-color:#cdc2a8; color:#4a4438; }
.fav-on { color:#a8342a; }
.empty { color:#a39a84; }
.bookIntro .src { color:#a39a84; border-top-color:#e6ddc8; }
.foot { color:#a39a84; border-top-color:#e6ddc8; }

html[data-theme="dark"] body { background:#121110; color:#e8e2d2; }
html[data-theme="dark"] #top { background:rgba(20,19,16,.95); border-bottom-color:#4a4438; }
html[data-theme="dark"] #top h1 { color:#e8e2d2; }
html[data-theme="dark"] #top .back { color:#a99f88; border-color:#4a4438; background:transparent; }
html[data-theme="dark"] #top .back:hover { color:#e8e2d2; border-color:#8a7f62; }
html[data-theme="dark"] #top .sub { color:#a99f88; }
html[data-theme="dark"] .btn { border-color:#4a4438; color:#cfc6ad; background:transparent; }
html[data-theme="dark"] .btn:hover { border-color:#8a7f62; color:#e8e2d2; }
html[data-theme="dark"] #side { border-right-color:#3a352b; background:#161412; }
html[data-theme="dark"] .side-h { color:#8a8068; }
html[data-theme="dark"] #volList .vol { color:#e8e2d2; }
html[data-theme="dark"] #volList .vol:hover { background:#221f1a; }
html[data-theme="dark"] #volList .vol.on { background:rgba(217,124,90,.12); }
html[data-theme="dark"] #volList .cnt { color:#6e6755; }
html[data-theme="dark"] #volList .vol.grp { border-top-color:#2c2820; }
html[data-theme="dark"] .panel { background:#1a1815; border-color:#3a352b; }
html[data-theme="dark"] .head h2 { color:#e8e2d2; }
html[data-theme="dark"] .head .hsub { color:#a99f88; }
html[data-theme="dark"] .head { background:rgba(26,24,21,.94); }
html[data-theme="dark"] input[type=search] { border-color:#4a4438; color:#e8e2d2; background:#14120f; }
html[data-theme="dark"] .entries li { border-bottom-color:#2c2820; }
html[data-theme="dark"] .entries li:hover { background:#221f1a; }
html[data-theme="dark"] .entries .t { color:#e8e2d2; }
html[data-theme="dark"] .entries .a { color:#a99f88; }
html[data-theme="dark"] .read .poem-title { color:#e8e2d2; }
html[data-theme="dark"] .read .poem-meta { color:#a99f88; }
html[data-theme="dark"] .read .poem-lines { color:#d9d2bf; }
html[data-theme="dark"] .read .note { color:#6e6755; }
html[data-theme="dark"] .fs button { border-color:#4a4438; color:#cfc6ad; }
html[data-theme="dark"] .fav-on { color:#e09a6b; }
html[data-theme="dark"] .empty { color:#57503f; }
html[data-theme="dark"] .bookIntro .src { color:#57503f; border-top-color:#2c2820; }
html[data-theme="dark"] .foot { color:#57503f; border-top-color:#2c2820; }

/* 古风字体:霞鹜文楷(LXGW WenKai, OFL) */
@font-face { font-family:'LXGW WenKai'; src:url('fonts/lxgw-wenkai-regular.woff2') format('woff2'); font-weight:400; font-style:normal; font-display:swap; }
html[data-font="kaiti"] #panel,
html[data-font="kaiti"] .entries li { font-family:'LXGW WenKai','LXGW WenKai GB','Kaiti SC','STKaiti','KaiTi','楷体',serif; }
html[data-font="fangsong"] #panel,
html[data-font="fangsong"] .entries li { font-family:'FangSong','STFangsong','仿宋','FangSong_GB2312',serif; }
