/* 藏书目录样式：宣纸米色 + 宋体，与 /wenji/ /guji/ 同一套阅读观感 */
*{box-sizing:border-box}
body{margin:0;background:#f7f5f0;color:#24211c;line-height:1.78;
 font-family:"Songti SC","SimSun","Noto Serif CJK SC",Georgia,serif}
a{color:#7a3b12;text-decoration:none}a:hover{text-decoration:underline}
.wrap{max-width:58rem;margin:0 auto;padding:0 1.1rem}
header.top{border-bottom:1px solid #e0d8cc;background:#fbf9f5;margin-bottom:1.4rem}
header.top .bar{display:flex;align-items:center;justify-content:space-between;
 gap:1rem;flex-wrap:wrap;padding:.7rem 0}
.brand{font-weight:700;font-size:1.1rem;letter-spacing:.04em}
.brand span{font-size:.8rem;color:#8a8177;margin-left:.45rem;letter-spacing:.16em}
header.top nav{display:flex;gap:1.05rem;font-size:.9rem;flex-wrap:wrap}
header.top nav a{color:#6d6459}
header.top nav a.on{color:#7a3b12;font-weight:700}
main{padding-bottom:2rem}
nav.bc{font-size:.83rem;color:#8a8177;margin:.4rem 0 1.1rem}
h1{font-size:1.62rem;margin:.3rem 0 .45rem;line-height:1.4;font-weight:700}
h2{font-size:1.08rem;margin:1.9rem 0 .6rem;padding-bottom:.3rem;
 border-bottom:1px solid #e0d8cc}
.meta{color:#7d7468;font-size:.88rem;margin:.2rem 0 .9rem}
.lede{background:#fff;border:1px solid #e9e1d4;border-left:3px solid #c9b28b;
 border-radius:6px;padding:.75rem .95rem;font-size:.96rem;color:#4a443b;margin:.9rem 0 .4rem}
p.cnt{margin:.1rem 0 1.1rem;color:#4a443b;font-size:.95rem}
p.note{color:#7d7468;font-size:.87rem;line-height:1.85}
table.tb{width:100%;border-collapse:collapse;margin:.5rem 0 1rem;font-size:.92rem}
table.tb th,table.tb td{border-bottom:1px solid #ece5da;padding:.4rem .5rem;text-align:left}
table.tb th{color:#6d6459;font-weight:700;background:#fbf9f5}
table.tb tfoot td{color:#4a443b;font-weight:700;border-top:1px solid #e0d8cc}
ul.lim{padding-left:1.15rem;font-size:.94rem;color:#4a443b}
ul.lim li{margin:.35rem 0}
ul.cats{list-style:none;padding:0;margin:.3rem 0}
ul.cats li{padding:.45rem .1rem;border-bottom:1px solid #ece5da;font-size:1rem}
ul.cats li a{font-weight:700}
ul.cats li .n{color:#a49a8c;font-size:.82rem;margin-left:.6rem}
/* 书目：一部书一行；多文件的书用原生 <details> 展开各卷，零 JavaScript */
ul.books{list-style:none;padding:0;margin:.3rem 0}
ul.books>li.b1{padding:.4rem .1rem;border-bottom:1px solid #ece5da;font-size:.98rem}
ul.books>li.b1 .t{font-weight:600}
/* 文件名自带的著录段（〖宋 天息災譯〗【…】）：淡化而不隐藏——信息不删，只是不抢眼 */
.nt{color:#a49a8c;font-size:.85em;margin-left:.1rem;font-weight:400}
ul.books .m{color:#a49a8c;font-size:.82rem;margin-left:.55rem}
ul.books>li.bk{border-bottom:1px solid #ece5da;padding:.4rem .1rem}
ul.books>li.bk>details>summary{cursor:pointer;font-size:.99rem;list-style:none}
ul.books>li.bk>details>summary::-webkit-details-marker{display:none}
ul.books>li.bk>details>summary::before{content:"▸ ";color:#b7a88f}
ul.books>li.bk>details[open]>summary::before{content:"▾ "}
ul.books>li.bk>details>summary .t{font-weight:600}
ul.vol{list-style:none;padding:.3rem 0 .5rem 1.15rem;margin:.2rem 0 0;
 border-left:2px solid #ece5da;font-size:.88rem}
ul.vol li{padding:.1rem 0;color:#4a443b;word-break:break-all}
ul.vol li .v{color:#3d382f}
ul.vol li em{font-style:normal;color:#a49a8c;margin-left:.5rem;white-space:nowrap}
.pager{display:flex;gap:.6rem;flex-wrap:wrap;margin:1.2rem 0;font-size:.9rem;
 align-items:center}
.pager a{border:1px solid #ddd3c4;border-radius:6px;padding:.32rem .72rem;background:#fff}
.pager .cur{color:#a49a8c}
.searchbox{display:flex;gap:.55rem;flex-wrap:wrap;align-items:center;
 background:#fff;border:1px solid #e9e1d4;border-radius:8px;padding:.7rem .8rem;margin:.6rem 0 1rem}
.searchbox input{flex:1 1 18rem;min-width:12rem;font:inherit;font-size:1rem;
 padding:.45rem .6rem;border:1px solid #ddd3c4;border-radius:6px;background:#fdfcfa}
.searchbox select{font:inherit;font-size:.92rem;padding:.42rem .5rem;
 border:1px solid #ddd3c4;border-radius:6px;background:#fdfcfa}
.st{color:#a49a8c;font-size:.85rem}
ul.res{margin-top:.2rem}
ul.res>li.b1 .t{color:#3d382f}
ul.res li.hit{border-bottom:1px solid #ece5da;padding:.5rem .1rem;font-size:.98rem}
ul.res li.hit .t{font-weight:600}
ul.res li.hit .cat{color:#8c3a24;font-size:.85rem;margin-left:.5rem}
/* 命中处：米色底 + 深棕字。不用浏览器默认的黄底——那块黄在这套米色版式里太跳 */
mark{background:#f0e2c4;color:#5c3a12;padding:0 .08em;border-radius:2px}
/* 「目录命中」标记：只在书名里没有、靠目录才匹配上时出现，读者才知道为什么这条会出来 */
ul.res li.hit .mk{color:#6b7a52;font-size:.8rem;margin-left:.45rem;
 border:1px solid #d6ddc4;border-radius:3px;padding:0 .3em;white-space:nowrap}
ul.res li.hit .dline{display:block;color:#8a8177;font-size:.82rem;margin-top:.15rem;
 word-break:break-all}
ul.res li.hit .dline mark{background:#e6ecd8;color:#4e5c38}
/* 总览页顶部的检索面板：读者来这里多半是要找一本具体的书，把入口放在最先看到的位置 */
.find{background:#fff;border:1px solid #e9e1d4;border-radius:8px;
 padding:.85rem .95rem .7rem;margin:1rem 0 1.1rem;box-shadow:0 1px 0 #ece5da}
.find .fh{font-size:1.02rem;font-weight:700;margin:0 0 .55rem;color:#3d382f}
.find .fh em{font-style:normal;color:#8c3a24}
.find .searchbox{margin:0 0 .55rem}
.find .note{margin:.35rem 0 0}
.find .more{margin:.6rem 0 0;font-size:.88rem;color:#7d7468}
footer{border-top:1px solid #e0d8cc;color:#8a8177;font-size:.84rem;
 padding:1.1rem 1.1rem 2.6rem;margin-top:2.4rem;line-height:1.9}
footer p{margin:.2rem 0}
footer .qr{display:flex;gap:.9rem;align-items:center;margin:.9rem 0 .7rem;
 background:#fff;border:1px solid #e9e1d4;border-radius:8px;padding:.7rem .85rem;max-width:34rem}
footer .qr img{border-radius:5px;flex:0 0 auto;background:#fff}
footer .qtx b{color:#4a443b}
footer .qtx p{margin:.15rem 0 0;font-size:.84rem;line-height:1.8}
@media (max-width:640px){
 h1{font-size:1.38rem}
 header.top .bar{gap:.4rem}
 header.top nav{gap:.7rem;font-size:.85rem}
 footer .qr{flex-direction:row}
}
