:root {
  --paper: #f5f6f1;
  --ink: #1c302c;
  --forest: #174735;
  --mute: #52635b;
  --rule: #dce1d7;
  --white: #fffefa;
  --tb-body-font-family: "DM Sans", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --tb-body-font-size: 1rem;
  --tblr-body-font-family: var(--tb-body-font-family);
  --tblr-body-font-size: 1rem;
  --serif: "STIX Two Text", "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", Georgia, serif;
}
* { box-sizing: border-box; }
body { background:var(--paper); color:var(--ink); font-family:var(--tb-body-font-family); font-size:1rem; line-height:1.55; }
a { color:var(--forest); text-decoration:none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline:3px solid #aa7927; outline-offset:3px; }
.sr, .skip:not(:focus) { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.skip:focus { position:fixed; z-index:20; background:white; padding:1rem; }
.container-xl { width:min(100%, 1256px); max-width:none; padding-inline:clamp(20px,4vw,60px); margin-inline:auto; }
.app-header { background:var(--white); border:0; border-top:4px solid #214d3e; box-shadow:inset 0 -1px 0 var(--rule); padding:0; }
.app-header > .mast { display:flex; flex-wrap:nowrap; gap:clamp(24px,4vw,60px); min-height:77px; }
.brand { display:flex; gap:11px; align-items:center; flex-shrink:0; color:var(--ink); padding:0; margin:0; }
.brand:hover, .archive-nav a:hover, .site-footer a:hover { color:#236849; }
.brand strong { font-family:var(--serif); white-space:nowrap; font-size:clamp(1.17rem,2vw,1.48rem); font-weight:700; letter-spacing:.03em; }
.brand-mark { display:grid; place-items:center; background:#1b4c39; color:#f1dd9f; width:38px; height:38px; border-radius:8px; }
.icon { width:21px; height:21px; fill:none; stroke:currentColor; stroke-width:1.65; stroke-linecap:round; stroke-linejoin:round; vertical-align:middle; flex-shrink:0; }
.brand-mark .icon { width:26px; height:26px; stroke-width:1.45; }
.archive-nav { display:flex; align-self:stretch; align-items:stretch; gap:clamp(18px,2.4vw,36px); margin-right:auto; }
.archive-nav a { position:relative; display:grid; place-items:center; white-space:nowrap; color:#546158; font-size:.94rem; font-weight:500; }
.archive-nav a[aria-current] { color:#184a34; font-weight:700; }
.archive-nav a[aria-current]::after { content:""; position:absolute; left:0; right:0; bottom:0; height:3px; background:#44774f; }
.editor-link.btn { gap:8px; font-size:.9rem; border:1px solid #ccd7ca; border-radius:7px; color:#2f5640; background:#f6f8f2; padding:.52rem .88rem; box-shadow:none; white-space:nowrap; }
.editor-link .icon { margin:0; width:17px; height:17px; }
.editor-link:hover, .search-submit:hover { background:#e9efdf; color:#163d2b; }
.page-wrapper { background:var(--paper); }
.page-body { margin:0; padding:clamp(25px,3vw,42px) 0 42px; }
.area-header { display:flex; flex-wrap:wrap; gap:20px; align-items:center; justify-content:space-between; margin:0 0 22px; padding:0; }
.area-header h1 { font-family:var(--serif); color:var(--ink); font-size:clamp(1.7rem,2.9vw,2.18rem); line-height:1.24; letter-spacing:.025em; font-weight:700; }
.area-header p { color:var(--mute); margin:5px 0 0; font-size:1rem; }
.global-search { position:relative; width:min(100%,320px); }
.global-search .form-control { width:100%; min-height:43px; padding:.5rem 55px .5rem 39px; border:1px solid #ccd3c9; border-radius:7px; background:var(--white); color:var(--ink); font-size:.92rem; box-shadow:none; }
.global-search .input-icon-addon { left:12px; width:17px; color:#657869; pointer-events:none; }
.global-search .input-icon-addon .icon { width:18px; height:18px; }
.search-submit { position:absolute; top:6px; bottom:6px; right:6px; border:0; border-radius:4px; background:#eef1e8; color:#3e6147; font-size:.84rem; padding:0 8px; }
.card { border:1px solid var(--rule); background:var(--white); border-radius:12px; box-shadow:0 2px 6px #1a2e2005; color:var(--ink); }
.feature { display:grid; grid-template-columns:1.08fr .92fr; overflow:hidden; border:0; min-height:292px; background:#163f34; }
.feature-copy { display:flex; flex-direction:column; align-items:flex-start; justify-content:center; padding:clamp(28px,3.8vw,52px); color:#f5f7ea; position:relative; z-index:1; }
.feature-label { display:flex; align-items:center; gap:8px; font-size:.9rem; color:#d5dda6; font-weight:600; }
.feature-label .icon { width:17px; height:17px; }
.feature h2 { font-family:var(--serif); font-size:clamp(1.7rem,2.8vw,2.48rem); letter-spacing:.02em; line-height:1.35; margin:13px 0 11px; color:inherit; font-weight:650; overflow-wrap:anywhere; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.feature-copy p { margin:0 0 22px; color:#e0e8d9; font-size:1rem; line-height:1.7; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.feature-btn.btn { background:#e2ecc1; color:#234633; border:0; box-shadow:none; font-size:.92rem; font-weight:700; border-radius:6px; padding:.58rem 1rem; }
.feature-btn:hover { background:#f1f5d6; color:#143524; }
.feature-photo { position:relative; min-width:0; overflow:hidden; }
.feature-photo img { width:100%; height:100%; position:absolute; inset:0; object-fit:cover; object-position:50% 50%; }
.collection-grid, .desk-grid { display:grid; gap:16px; }
.collection-grid { grid-template-columns:repeat(3,minmax(0,1fr)); margin:18px 0 26px; }
.collection { color:var(--ink); text-decoration:none; transition:border-color .15s, background .15s; }
.collection:hover { color:var(--ink); border-color:#9bb39b; background:#fbfcf4; }
.collection .card-body { padding:clamp(14px,1.8vw,23px); display:flex; align-items:center; justify-content:space-between; gap:12px; }
.collection-heading { display:flex; align-items:center; gap:13px; }
.collection-heading h2 { margin:0; font-size:1.04rem; line-height:1.35; font-weight:650; }
.collection-icon, .guide-icon { display:grid; place-items:center; flex-shrink:0; width:44px; height:44px; border-radius:10px; }
.tone-stock { --tone-bg:#e8f1e7; --tone-ink:#396340; }
.tone-gold { --tone-bg:#f8eed3; --tone-ink:#765319; }
.tone-books { --tone-bg:#e7eef4; --tone-ink:#3b5f75; }
.tone-neutral { --tone-bg:#edf0e9; --tone-ink:#4b5e50; }
.collection-icon, .tag { background:var(--tone-bg); color:var(--tone-ink); }
.collection-number { font-family:Georgia,var(--serif); font-size:1.92rem; line-height:1.1; color:#354c3c; }
.collection-number span { font-family:var(--tb-body-font-family); font-size:.85rem; margin-left:5px; color:#657265; }
.desk-grid { grid-template-columns:1.12fr .88fr; align-items:start; }
.desk-grid .card { height:100%; }
.panel-head { padding:18px 22px; display:flex; gap:15px; align-items:center; justify-content:space-between; min-height:64px; border-color:var(--rule); background:transparent; }
.card-title { font-size:1.19rem; font-weight:650; margin:0; line-height:1.4; }
.panel-head a { font-size:.9rem; font-weight:550; }
.panel-head a:hover, .backlink:hover, .site-footer a:hover { text-decoration:underline; text-underline-offset:3px; }
.archive-empty { padding:28px 20px; display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:178px; }
.empty-icon { width:37px; height:37px; border:1px solid #dfe6d9; background:#f2f5eb; border-radius:50%; color:#708565; display:grid; place-items:center; margin-bottom:8px; }
.archive-empty .empty-title { color:#394c3e; font-size:1rem; font-weight:600; margin:0 0 4px; }
.archive-empty .empty-subtitle { color:var(--mute); font-size:.92rem; max-width:32em; line-height:1.6; margin:0; text-align:center; }
.record-row { color:var(--ink); background:transparent; display:flex; align-items:center; gap:15px; border-color:var(--rule); padding:18px 22px; text-decoration:none; }
.list-group-flush > .record-row:last-child { border-bottom:0; }
.record-row:hover { background:#f3f6eb; color:#275036; text-decoration:none; }
.row-main { display:flex; flex-direction:column; gap:5px; min-width:0; }
.row-main strong { color:inherit; font-size:1.05rem; line-height:1.5; font-weight:650; overflow-wrap:anywhere; }
.excerpt { color:var(--mute); font-size:.94rem; line-height:1.55; overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow-wrap:anywhere; }
.guide-row { gap:13px; }
.guide-icon { width:37px; height:43px; border-radius:5px; color:#6d643f; background:#f1eddd; }
.guide-row:nth-child(even) .guide-icon { color:#45674d; background:#e8eee1; }
.book-cover { width:42px; height:57px; flex-shrink:0; display:grid; place-items:center; border-radius:2px 5px 5px 2px; border-left:4px solid #5b7788; background:#e3edf0; color:#577582; }
.meta { display:flex; flex-wrap:wrap; align-items:center; gap:8px; color:var(--mute); font-size:.86rem; }
.tag { display:inline-block; font-weight:650; line-height:1.45; border:0; padding:2px 7px; border-radius:4px; font-size:.82rem; }
.select-label { min-width:116px; }
.select-label .form-select { font-size:.94rem; color:var(--ink); }
.home-books { margin-top:18px; }
.load-message { padding:24px; color:var(--mute); margin:0; }
.load-message button { margin-left:5px; }
.article-shell { width:min(100%,820px); margin-inline:auto; }
.backlink { display:inline-flex; gap:8px; align-items:center; margin-bottom:16px; font-size:.95rem; }
.backlink .icon { width:17px; height:17px; }
.article-content { padding:clamp(22px,5vw,58px); }
.article-header { border-bottom:1px solid var(--rule); padding-bottom:22px; margin-bottom:25px; }
.article-header h1 { font-family:var(--serif); font-weight:700; font-size:clamp(1.7rem,3.6vw,2.65rem); line-height:1.4; margin:14px 0 0; overflow-wrap:anywhere; }
.article-lead { color:var(--mute); line-height:1.8; margin:14px 0 0; overflow-wrap:anywhere; }
.article-body { font-size:1.045rem; line-height:1.95; overflow-wrap:anywhere; }
.article-body h2 { font-size:1.22rem; line-height:1.6; margin:25px 0 6px; font-weight:650; }
.article-body p { white-space:pre-wrap; margin:0 0 .9rem; }
.article-body > :first-child { margin-top:0; }
.article-body > :last-child { margin-bottom:0; }
.book-fields { display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:15px; margin:0; }
.book-fields div { border-left:2px solid #d9e3ce; padding-left:12px; }
.book-fields dt { font-size:.87rem; font-weight:500; color:var(--mute); }
.book-fields dd { margin:1px 0 0; color:#314e39; }
.site-footer { background:transparent; margin-top:auto; padding:0 0 26px; }
.footer-inner { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:15px; color:#5f6c60; font-size:.84rem; }
.footer-inner > span { font-family:var(--serif); font-weight:700; }
.footer-inner div { display:flex; gap:20px; }
.footer-inner a { color:inherit; }
@media (max-width:800px) {
  .app-header > .mast { flex-wrap:wrap; gap:0 16px; padding-top:12px; }
  .editor-link.btn { margin-left:auto; }
  .archive-nav { order:3; width:100%; gap:clamp(16px,5vw,36px); height:43px; margin-top:3px; }
  .feature { min-height:260px; }
  .collection-grid, .desk-grid { gap:11px; }
  .collection .card-body { align-items:flex-start; flex-direction:column; gap:10px; }
  .collection-icon { width:32px; height:32px; border-radius:7px; }
  .collection-heading { gap:7px; }
  .collection-number { font-size:1.75rem; }
  .record-row, .panel-head { padding:15px; }
}
@media (max-width:630px) {
  .area-header { gap:13px; margin-bottom:16px; }
  .global-search { width:100%; }
  .feature { grid-template-columns:1fr; min-height:initial; }
  .feature-copy { padding:25px 21px; }
  .feature h2 { font-size:clamp(1.6rem,6.6vw,2.05rem); }
  .feature-photo { height:clamp(110px,29vw,175px); }
  .feature-photo img { object-position:50% 53%; }
  .feature-copy p { margin-bottom:14px; }
  .desk-grid { grid-template-columns:1fr; }
  .collection-grid { margin:12px 0 18px; gap:7px; }
  .collection .card-body { padding:12px 9px; gap:8px; }
  .collection-heading { align-items:flex-start; flex-direction:column; gap:6px; }
  .collection-heading h2 { font-size:.95rem; }
  .collection-number { font-size:1.48rem; }
  .footer-inner div { gap:12px; }
  .article-content { border-radius:8px; }
}
@media print {
  .site-footer, .backlink, .global-search { display:none; }
  .card { box-shadow:none; }
  .page-body, .article-content { padding:0; }
}
