/* 寻心文阅 · 独立皮肤（派生自 hanmo 骨架；配色、文案、书封色独立） */
/* ============================================================
   寻心文阅 · 独立皮肤（纯文字书目索引）
   全程没有封面图，靠编号、细线和衬线字号排成一份书目。
   版面居中收窄，留白大于内容，和其它站的卡片墙是两个方向的取向。
   ============================================================ */

:root {
  --ink: #26332a;
  --ink-2: #3f4f43;
  --muted: #5e695e;
  --paper: #fbf9f4;
  --paper-2: #f4f0e6;
  --rule: #d8d2c1;
  --rule-soft: #e8e3d6;
  --bronze: #3f7a6a;
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
  --sans: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 14px; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input { font: inherit; color: inherit; }
ol, ul { margin: 0; padding: 0; list-style: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.7;
      stroke-linecap: round; stroke-linejoin: round; vertical-align: -.14em; }

/* ---------------- 顶栏 ---------------- */
.hm-head { background: var(--paper); border-bottom: 3px double var(--rule); }
.hm-bar {
  max-width: 1080px; margin: 0 auto; padding: 0 26px;
  height: 56px; display: flex; align-items: center; gap: 26px;
}
.hm-brand {
  font-family: var(--serif); font-size: 19px; font-weight: 700;
  letter-spacing: .3em; color: var(--ink);
  display: inline-flex; align-items: baseline;
}
.hm-brand-dot {
  width: 4px; height: 4px; margin-left: 7px; background: var(--bronze);
  border-radius: 50%; transform: translateY(-1px);
}
.hm-nav { display: flex; gap: 20px; margin-left: auto; }
.hm-nav a {
  font-size: 12.5px; letter-spacing: .1em; color: var(--ink-2);
  padding: 4px 0; border-bottom: 1px solid transparent;
}
.hm-nav a:hover { color: var(--bronze); }
.hm-nav a.is-active { color: var(--ink); border-bottom-color: var(--bronze); }

.hm-tools { display: flex; align-items: center; gap: 4px; }
.hm-ico {
  width: 30px; height: 30px; display: grid; place-items: center;
  background: none; border: 0; color: var(--muted);
}
.hm-ico:hover { color: var(--ink); }
.hm-ico .ic { width: 15px; height: 15px; }
.hm-burger { display: none; }

.hm-mobile { display: none; flex-direction: column; padding: 0 26px 8px; }
.hm-mobile.is-open { display: flex; }
.hm-mobile a { padding: 8px 0; border-top: 1px solid var(--rule-soft); font-size: 13px; }

/* ---------------- 扉页 ---------------- */
.hm-fly {
  max-width: 700px; margin: 0 auto; padding: 62px 26px 44px; text-align: center;
}
.hm-fly-mark {
  margin: 0 0 18px; font-size: 15px; color: var(--bronze); letter-spacing: .4em;
}
.hm-fly h1 {
  margin: 0 0 14px;
  font-family: var(--serif); font-size: clamp(30px, 3.6vw, 42px); font-weight: 700;
  line-height: 1.4; letter-spacing: .04em; color: var(--ink);
}
.hm-fly h1 em { font-style: normal; color: var(--bronze); }
.hm-fly-lead {
  margin: 0 auto 26px; max-width: 44ch;
  font-family: var(--serif); font-size: 14.5px; line-height: 2; color: var(--ink-2);
}

.hm-fly-search {
  display: flex; align-items: center; gap: 10px;
  max-width: 380px; margin: 0 auto;
  border-bottom: 1px solid var(--ink);
}
.hm-fly-search input {
  flex: 1; min-width: 0; border: 0; background: none; outline: none;
  padding: 9px 0; text-align: center; font-family: var(--serif); font-size: 14px;
}
.hm-fly-search input::placeholder { color: var(--muted); }
.hm-fly-search button {
  border: 0; background: none; padding: 9px 0 9px 10px;
  font-family: var(--serif); font-size: 13px; color: var(--bronze); letter-spacing: .1em;
}

.hm-fly-tags {
  margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px;
}
.hm-fly-tags .label { display: none; }
.hm-fly-tags a {
  font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--rule);
}
.hm-fly-tags a:hover { color: var(--bronze); border-color: var(--bronze); }

.hm-fly-meta {
  margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--rule-soft);
  font-size: 11.5px; letter-spacing: .12em; color: var(--muted);
}
.hm-fly-meta b { font-family: var(--serif); font-size: 14px; color: var(--ink); font-weight: 700; }
.hm-sep { margin: 0 8px; color: var(--rule); }

/* ---------------- 书目 ---------------- */
.hm-main { max-width: 1080px; margin: 0 auto; padding: 8px 26px 60px; }

.hm-bar2 {
  display: flex; align-items: baseline; gap: 12px;
  padding-bottom: 10px; border-bottom: 1px solid var(--ink);
}
.hm-bar2 h2 {
  margin: 0; font-family: var(--serif); font-size: 18px; font-weight: 700; letter-spacing: .12em;
}
.hm-bar2 h2 .ic { display: none; }
.hm-bar2 #listSub { font-size: 11.5px; color: var(--muted); }
.hm-bar2-rule { flex: 1; }
.sorts { display: flex; gap: 12px; }
.sorts button {
  background: none; border: 0; padding: 2px 0;
  font-size: 11.5px; letter-spacing: .12em; color: var(--muted);
}
.sorts button.is-active { color: var(--ink); border-bottom: 1px solid var(--bronze); }

.hm-filters { padding: 12px 0 0; }
.cat-row { display: flex; flex-wrap: wrap; gap: 0 18px; }
.cat-chip {
  background: none; border: 0; padding: 3px 0;
  font-size: 12.5px; color: var(--muted); letter-spacing: .06em;
}
.cat-chip .ic { display: none; }
.cat-chip .cnt {
  font-size: 10px; color: var(--rule); margin-left: 3px;
  font-family: var(--serif);
}
.cat-chip:hover { color: var(--ink); }
.cat-chip.is-active { color: var(--ink); font-weight: 600; }
.cat-chip.is-empty { opacity: .38; }

.hm-count {
  margin: 0; padding: 14px 0 6px;
  font-size: 11px; letter-spacing: .14em; color: var(--muted);
}
.hm-count b { font-family: var(--serif); font-size: 13px; color: var(--ink); }

/* 索引行：编号由 CSS 计数器生成，天然带书目感 */
.hm-index {
  counter-reset: hm;
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 54px;
  border-top: 1px solid var(--rule-soft);
}

.hm-line {
  display: flex; align-items: baseline; gap: 9px;
  padding: 10px 0; border-bottom: 1px solid var(--rule-soft);
  counter-increment: hm;
  min-width: 0;
}
.hm-line::before {
  content: counter(hm, decimal-leading-zero);
  font-family: var(--serif); font-size: 10.5px; color: var(--bronze);
  letter-spacing: .06em; flex-shrink: 0; width: 20px;
  opacity: .8;
}

.hm-name {
  flex: 0 1 auto; min-width: 0; max-width: 62%;
  font-family: var(--serif); font-size: 14.5px; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hm-name:hover { color: var(--bronze); text-decoration: underline; text-underline-offset: 3px; }
/* 目录式点线引导：书名与体量之间拉一条虚线，读起来像纸本书目 */
.hm-lead {
  flex: 1 1 12px; min-width: 8px; align-self: center;
  margin: 0 2px 3px;
  border-bottom: 1px dotted var(--rule);
  opacity: .85;
}

.hm-note {
  font-size: 10.5px; color: var(--muted);
  max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  flex-shrink: 0;
}
.hm-size {
  font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums;
  width: 52px; text-align: right; flex-shrink: 0;
}
.hm-date {
  font-size: 10px; color: var(--rule); font-variant-numeric: tabular-nums;
  width: 34px; text-align: right; flex-shrink: 0;
}
.hm-fav { position:relative;
  background: none; border: 0; padding: 0 0 0 2px; color: #d5cdb9;
  flex-shrink: 0; display: inline-flex; align-self: center;
}
.hm-fav::before { content:''; position:absolute; left:50%; top:50%; width:44px; height:44px; transform:translate(-50%,-50%); }
.hm-fav .ic { width: 13px; height: 13px; }
.hm-fav.is-on { color: var(--bronze); }
.hm-fav.is-on .ic { fill: var(--bronze); }

.hm-empty {
  grid-column: 1 / -1; padding: 64px 0; text-align: center; color: var(--muted);
}
.hm-empty .ic { width: 22px; height: 22px; display: block; margin: 0 auto 10px; color: var(--rule); }
.hm-empty h3 { margin: 0 0 4px; font-family: var(--serif); font-size: 16px; color: var(--ink-2); }
.hm-empty p { margin: 0; font-size: 12.5px; }

/* ---------------- 页码 ---------------- */
.pagination {
  display: flex; justify-content: center; gap: 2px; padding: 32px 0 10px;
}
.pagination button {
  min-width: 30px; height: 28px; padding: 0 7px;
  background: none; border: 0; border-bottom: 1px solid transparent;
  font-family: var(--serif); font-size: 12.5px; color: var(--muted);
}
.pagination button:hover:not(:disabled) { color: var(--ink); border-bottom-color: var(--rule); }
.pagination button.is-active { color: var(--ink); font-weight: 700; border-bottom-color: var(--bronze); }
.pagination button:disabled { opacity: .3; cursor: default; }
.pagination .ellipsis { color: var(--rule); align-self: center; font-size: 11px; padding: 0 3px; }

/* ---------------- 页脚 ---------------- */
.hm-foot { border-top: 3px double var(--rule); background: var(--paper); padding: 34px 0 40px; }
.hm-foot-in { max-width: 760px; margin: 0 auto; padding: 0 26px; text-align: center; }
.hm-foot-brand {
  margin: 0; font-family: var(--serif); font-size: 15px; letter-spacing: .34em; color: var(--ink);
}
.hm-foot-note {
  margin: 10px 0 16px; font-family: var(--serif); font-size: 12.5px; line-height: 1.9; color: var(--muted);
}
.hm-foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; }
.hm-foot-links a { font-size: 11.5px; color: var(--ink-2); }
.hm-foot-links a:hover { color: var(--bronze); }

.footer-recent { margin: 22px 0 0; padding-top: 16px; border-top: 1px solid var(--rule-soft); text-align: left; }
.footer-recent-head { display: flex; align-items: baseline; justify-content: space-between; }
.footer-recent-head h4 {
  margin: 0; font-family: var(--serif); font-size: 11.5px; letter-spacing: .2em; color: var(--muted);
  font-weight: 400;
}
.footer-recent-all { font-size: 11px; color: var(--bronze); }
.footer-recent-list { columns: 3; column-gap: 22px; margin-top: 10px; }
.footer-recent-list li { padding: 2px 0; break-inside: avoid; }
.footer-recent-list a {
  font-family: var(--serif); font-size: 11.5px; color: var(--ink-2);
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.footer-recent-list a:hover { color: var(--bronze); }

.hm-foot-copy {
  margin: 22px 0 0; padding-top: 14px; border-top: 1px solid var(--rule-soft);
  font-size: 10.5px; letter-spacing: .1em; color: var(--muted);
}

/* ---------------- 浮层 ---------------- */
.to-top {
  position: fixed; right: 22px; bottom: 24px; z-index: 40;
  width: 34px; height: 34px; display: grid; place-items: center;
  background: var(--paper); border: 1px solid var(--rule); color: var(--ink-2);
  opacity: 0; visibility: hidden; transition: opacity .22s, visibility .22s;
}
.to-top.is-show { opacity: 1; visibility: visible; }
.to-top .ic { width: 15px; height: 15px; }

.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 10px);
  z-index: 60; display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px; background: var(--ink); color: var(--paper);
  font-size: 12px; letter-spacing: .06em; opacity: 0; visibility: hidden;
  transition: opacity .2s, transform .2s, visibility .2s;
}
.toast.is-show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast .ic { width: 13px; height: 13px; }

/* ---------------- 深色 ---------------- */
html[data-theme="dark"] {
  --ink: #dfe4d8;
  --ink-2: #b9c2b1;
  --muted: #7f8878;
  --paper: #14170f;
  --paper-2: #1b1f16;
  --rule: #3a3f31;
  --rule-soft: #2a2e23;
  --bronze: #c9a45c;
}
html[data-theme="dark"] .hm-fav { color: #43483a; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 860px) {
  .hm-index { grid-template-columns: 1fr; }
  .hm-fly { padding-top: 44px; }
  .footer-recent-list { columns: 2; }
}

@media (max-width: 620px) {
  .hm-bar { padding: 0 18px; gap: 12px; }
  .hm-nav { display: none; }
  .hm-burger { display: grid; }
  .hm-tools { margin-left: auto; }
  .hm-main { padding: 8px 18px 44px; }
  .hm-fly { padding: 38px 18px 32px; }
  .hm-fly h1 { font-size: 26px; }
  .hm-bar2 { flex-wrap: wrap; gap: 6px 10px; }
  .hm-bar2-rule { display: none; }
  .hm-note { display: none; }
  .hm-line { gap: 7px; }
  .hm-size { width: 46px; }
}


.hb-page { min-width: 0; }
/* ---------------- 内页：纸面著录 ----------------
   一张版权页：没有封面、没有表格、没有卡片、没有圆角，
   全部是衬线文字、中式序号和点线引导。 */
.hb-sheet { max-width: 660px; margin: 0 auto; padding: 46px 28px 72px; }

.hb-art-mark { margin: 0 0 18px; text-align: center; font-size: 12px; letter-spacing: .4em; color: var(--bronze); }
.hb-art-title { margin: 0 0 10px; text-align: center; font-family: var(--serif); font-size: clamp(24px, 3vw, 32px); font-weight: 500; line-height: 1.42; color: var(--ink); }
.hb-art-sub { margin: 0; text-align: center; font-size: 12.5px; letter-spacing: .06em; color: var(--muted); }
.hb-art-by { margin: 10px 0 0; text-align: center; font-family: var(--serif); font-size: 12.5px; color: var(--ink-2); }
.hb-art-orn { margin: 22px 0 26px; text-align: center; letter-spacing: .2em; color: var(--rule); }
.hb-art-lede { margin: 0 0 26px; font-family: var(--serif); font-size: 15px; line-height: 2.05; color: var(--ink); text-indent: 2em; }

.hb-sec { margin-top: 30px; }
.hb-sec h2 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px; font-family: var(--serif); font-size: 15px; font-weight: 500; color: var(--ink); }
.hb-sec h2 b { font-size: 12px; font-weight: 400; letter-spacing: .1em; color: var(--bronze); }
.hb-sec h2::after { content: ""; flex: 1; height: 1px; background: var(--rule-soft); }
.hb-sec > p { margin: 0 0 12px; font-family: var(--serif); font-size: 14.5px; line-height: 2.05; color: var(--ink-2); text-indent: 2em; }

.hb-record { margin: 0; }
.hb-record > div { display: flex; gap: 14px; padding: 6px 0; font-family: var(--serif); font-size: 13.5px; }
.hb-record dt { flex: none; width: 4.5em; color: var(--muted); }
.hb-record dd { margin: 0; color: var(--ink); }

.hb-files { margin: 0; padding: 0; list-style: none; }
.hb-files li { display: flex; align-items: baseline; gap: 8px; padding: 6px 0; font-family: var(--serif); font-size: 13.5px; }
.hb-files .hb-fname { color: var(--ink); }
.hb-files li i { flex: 1; height: 0; border-bottom: 1px dotted var(--rule); transform: translateY(-4px); }
.hb-files .hb-fsize { flex: none; font-size: 12.5px; color: var(--muted); }

.hb-take-k { margin: 4px 0 2px !important; font-size: 11.5px !important; letter-spacing: .2em; color: var(--muted) !important; text-indent: 0 !important; }
.hb-code {
  display: inline-block; margin: 0 0 16px; padding: 0 2px 6px;
  border: 0; border-bottom: 2px solid var(--bronze); background: none; cursor: pointer;
  font-family: var(--serif); font-size: 28px; letter-spacing: .18em; color: var(--ink);
}
.hb-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.hb-acts--center { justify-content: center; }
.hb-act { padding: 9px 20px; border: 1px solid var(--rule); background: transparent; cursor: pointer; font-family: var(--serif); font-size: 13.5px; color: var(--ink-2); }
.hb-act:hover { border-color: var(--bronze); color: var(--bronze); }
.hb-act--main { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.hb-act--main:hover { background: #171f19; }
.hb-nocode { margin: 4px 0 16px !important; font-family: var(--serif); font-size: 13.5px !important; color: var(--muted) !important; text-indent: 0 !important; }
.hb-act.is-on { border-color: var(--bronze); color: var(--bronze); }
.hb-act .ic { margin-right: 4px; }
.hb-take-tip { margin: 14px 0 0 !important; font-size: 12.5px !important; line-height: 1.95 !important; color: var(--muted) !important; text-indent: 0 !important; }

.hb-see { display: flex; flex-wrap: wrap; gap: 4px 16px; text-indent: 0 !important; }
.hb-see a { color: var(--ink-2); border-bottom: 1px solid var(--rule); }
.hb-see a:hover { color: var(--bronze); border-color: var(--bronze); }

.hb-art-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 34px 0 0; font-family: var(--serif); font-size: 12.5px; color: var(--muted); }
.hb-art-tags a { color: var(--muted); }
.hb-art-tags a:hover { color: var(--bronze); }
.hb-art-tags span { color: var(--rule); }
.hb-art-foot { margin: 30px 0 0; padding-top: 14px; border-top: 1px solid var(--rule-soft); text-align: center; font-family: var(--serif); font-size: 11.5px; line-height: 1.9; color: var(--muted); }

/* ---------- 共用页（详情 / 关于 / 404）变量映射 ---------- */
:root {
  --bg: var(--paper);
  --bg-soft: var(--paper-2);
  --surface: var(--paper);
  --surface-2: var(--paper-2);
  --ink-3: var(--muted);
  --line-strong: #c9c1ad;
  --brand: var(--bronze);
  --brand-2: #7fae9c;
  --brand-soft: #f3ecdc;
  --accent: var(--bronze);
  --radius-s: 0; --radius: 0; --radius-l: 0;
  --shadow-s: none;
  --shadow: none;
  --shadow-l: none;
  --font: var(--serif);
}
html[data-theme="dark"] {
  --bg: #14170f;
  --bg-soft: #1b1f16;
  --surface: #171a12;
  --surface-2: #1b1f16;
  --line-strong: #4a5040;
  --brand-soft: #232819;
}

/* 题材图案层（2026-11-19）：按题材生成的抽象纹样，铺满书封、在书名之下 */
.bk-art { position:absolute; inset:0; width:100%; height:100%; z-index:0; pointer-events:none; }


/* ================= 寻心文阅 · 派生变体层（Stage2 2026-11-25）=================
   当代清新综合 · 现代无衬线 + 淡竹雾白 + 左对齐扉页 + 细青线。
   家族基础(hm 共用 .hm-*)不动，仅本文件覆写；推翻此前零变体状态。 */
:root {
  --paper: #f5f8f6; --paper-2: #ffffff; --surface: var(--paper-2); --surface-2: #eef4f0;
  --ink: #22302c; --ink-2: #3c564d; --muted: #6b857c;
  --rule: #d6e2dc; --line: #d6e2dc; --line-strong: #b9d0c6;
  --bronze: #3f7a6a; --brand: #3f7a6a; --brand-2: #8fbfa8; --brand-soft: #e6f1eb;
  --accent: #3f7a6a;
  --serif: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, sans-serif;
  --radius-s: 6px; --radius: 10px; --radius-l: 14px;
}
html[data-theme="dark"] {
  --bg: #101917; --bg-soft: #14211d; --surface: #172520; --surface-2: #1b2c26;
  --ink: #dcebe4; --ink-2: #a5c2b6; --muted: #76998b;
  --rule: #29443a; --line: #29443a; --line-strong: #3b5d50;
  --brand-soft: #1a3229; --brand: #6bbf9f; --accent: #6bbf9f;
}
body { font-family: var(--sans); }
/* 左对齐现代扉页：取消居中对称与 ※ 符号，改细青线 */
.hm-hero, .hm-fly-lead, .hm-index-head { text-align: left !important; }
.hm-hero::before, .hm-fly-lead::after { content: none !important; }
.hm-hero, .hm-fly-lead { border-top: 1px solid var(--line-strong) !important; border-bottom: 0 !important; }
/* 现代无衬线标题 + 等宽小号编号 + 极淡书摘副行 */
.hm-row-title, .hm-fly-name, .hb-sheet h3 { font-family: var(--sans) !important; font-weight: 650 !important; }
.hm-row-no, .hm-fly-mark { font-variant-numeric: tabular-nums; font-size: 11px; letter-spacing: .06em; }
.hm-fly-meta::after { content: ''; }

/* ================= 寻心 · 详情页黄金三拍与现代清新书目流（Stage4 2026-11-25）================= */
:root {
  --cta-bg: var(--paper-2);
  --cta-border: var(--rule);
  --cta-btn-bg: var(--brand);
  --cta-btn-ink: #fff;
  --cta-btn-border: var(--brand);
  --cta-btn-radius: 6px;
}
html[data-theme="dark"] {
  --cta-btn-ink: #101917;
}
.hb-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 18px; font-size: 12px; color: var(--muted); }
.hb-crumb a { color: var(--muted); }
.hb-crumb a:hover { color: var(--brand); }
.hb-crumb i { font-style: normal; opacity: .55; }
.hb-art-mark, .hb-art-orn { display: none; }
.hb-art-title {
  text-align: left; font-family: var(--sans); font-weight: 700;
  font-size: clamp(22px, 2.8vw, 32px); line-height: 1.32;
}
.hb-facts {
  display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: center; gap: 6px 10px;
  margin: 12px 0 0; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums;
}
.hb-facts span + span:not(.hb-status)::before { content: "·"; margin-right: 10px; color: var(--rule); }
.hb-status {
  display: inline-flex; align-items: center; padding: 1px 8px; font-size: 11px; font-weight: 600;
  border: 1px solid var(--rule); border-radius: 6px;
}
.hb-status.is-ok { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 40%, var(--rule)); background: var(--brand-soft); }
.hb-status.is-dead { color: #b45309; border-color: color-mix(in srgb, #b45309 42%, var(--rule)); background: color-mix(in srgb, #b45309 9%, transparent); }
.hb-jump {
  display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: center; gap: 8px 16px;
  margin: 16px 0 26px; padding-top: 14px; border-top: 1px solid var(--rule); font-size: 12.5px;
}
.hb-jump a { color: var(--muted); text-decoration: none; padding: 4px 2px; }
.hb-jump a:hover { color: var(--ink); }
.hb-jump .hb-jump-take {
  color: var(--brand); font-weight: 600; padding: 4px 12px;
  border: 1px solid color-mix(in srgb, var(--brand) 42%, var(--rule)); border-radius: 6px;
}
.hb-jump .hb-jump-take:hover { background: var(--brand-soft); }
.hb-sec { scroll-margin-top: 22px; }
.hb-prose { max-width: 38em; font-size: 15.5px; line-height: 1.98; color: var(--ink-2); }
.hb-prose p { margin: 0 0 1.15em; text-indent: 0; }
.hb-prose p:last-child { margin-bottom: 0; }
.hb-art-lede {
  margin: 0 0 1.25em; padding: 11px 15px; text-indent: 0;
  border-left: 3px solid var(--brand); background: var(--brand-soft); border-radius: 0 6px 6px 0;
  font-size: 15px; line-height: 1.95; color: var(--ink);
}
.hb-lede-k { display: block; margin-bottom: 4px; font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: .14em; color: var(--brand); }
.hb-prose-empty {
  margin: 0; padding: 14px 16px; font-size: 13.5px; line-height: 1.85; color: var(--muted);
  background: var(--surface-2); border: 1px dashed var(--rule); border-radius: 6px;
}
.hb-files .hb-fname { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; color: var(--ink); overflow-wrap: anywhere; }
.hb-files .hb-fsize { font-variant-numeric: tabular-nums; white-space: nowrap; }
.hb-code-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 14px; margin-bottom: 14px; }
.hb-code { margin: 0; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 24px; font-weight: 700; }
.hb-code-hint { font-size: 11.5px; color: var(--muted); }
.hb-nocode {
  display: inline-block; margin: 4px 0 14px !important; padding: 5px 12px;
  border: 1px dashed color-mix(in srgb, var(--brand) 42%, var(--rule)); border-radius: 6px;
  font-size: 12.5px !important; color: var(--ink-2) !important;
}
.hb-dead-note { margin: 0 0 14px !important; font-size: 13px !important; line-height: 1.85 !important; color: var(--ink-2) !important; text-indent: 0 !important; }
.hb-act { display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; border-radius: 6px; font-family: var(--sans); }
.hb-act--main { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.hb-act--main:hover { filter: brightness(1.06); background: var(--brand); color: #fff; }
.hb-act--main.is-dead {
  background: var(--surface-2); color: var(--muted); border-color: var(--rule); cursor: not-allowed; opacity: .72;
}
.hb-act--main.is-dead:hover { filter: none; background: var(--surface-2); color: var(--muted); }
.hb-act--promote, .hb-act--rel { border-color: var(--brand); color: var(--brand); }
.hb-act--promote:hover, .hb-act--rel:hover { background: var(--brand-soft); }
.hb-see {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
  margin: 0; padding: 0; list-style: none;
}
.hb-see li { border: 1px solid var(--rule); border-radius: 8px; background: var(--paper-2); transition: border-color .15s; }
.hb-see li:hover { border-color: var(--brand); }
.hb-see a { display: flex; flex-direction: column; gap: 5px; padding: 12px 14px; border: 0; text-decoration: none; }
.hb-see-cat { display: inline-block; width: fit-content; padding: 1px 7px; font-size: 11px; color: var(--brand); background: var(--brand-soft); border-radius: 4px; }
.hb-see b { font-size: 14px; font-weight: 600; line-height: 1.45; color: var(--ink); }
.hb-see a:hover b { color: var(--brand); }
.hb-see-meta { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 620px) {
  .hb-see { grid-template-columns: minmax(0, 1fr); }
}


/* === SITE-SKELETON-V3 === */
/* 寻心文阅 · 左224px全高竖导航工作台 + 右现代竹雾头 + 3列纯文字圆角索引方卡 */
body.sk-xunxin {
  --paper: #f5f8f6;
  --paper-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #eaf2ee;
  --ink: #22302c;
  --ink-2: #3c564d;
  --muted: #658077;
  --rule: #d4e2db;
  --rule-soft: #e6efe9;
  --brand: #3f7a6a;
  --bronze: #3f7a6a;
  --brand-soft: #e3f0ea;
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
}
html[data-theme="dark"] body.sk-xunxin {
  --paper: #101917;
  --paper-2: #16231f;
  --surface: #16231f;
  --surface-2: #1c2d27;
  --ink: #dcebe4;
  --ink-2: #a5c2b6;
  --muted: #76998b;
  --rule: #29443a;
  --rule-soft: #20362e;
  --brand: #6bbf9f;
  --bronze: #6bbf9f;
  --brand-soft: #1a3229;
}

/* 应用级左窄导航壳 + 右主内容工作区 */
body.sk-xunxin .xx-app {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  min-height: 100vh;
}
body.sk-xunxin .xx-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  background: var(--paper-2);
  border-right: 1px solid var(--rule);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
body.sk-xunxin .xx-side-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
body.sk-xunxin .xx-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
body.sk-xunxin .xx-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
}
body.sk-xunxin .xx-brand-t {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--ink);
}
body.sk-xunxin .xx-side-actions { display: flex; align-items: center; gap: 4px; }
body.sk-xunxin .xx-ico {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink-2);
  display: grid;
  place-items: center;
}
body.sk-xunxin .xx-ico .ic { width: 15px; height: 15px; }
body.sk-xunxin .xx-burger { display: none; }

body.sk-xunxin .xx-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
body.sk-xunxin .xx-nav a {
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--ink-2);
  transition: background .15s, color .15s;
}
body.sk-xunxin .xx-nav a:hover,
body.sk-xunxin .xx-nav a.is-active {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
}

body.sk-xunxin .xx-side-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--rule-soft);
}
body.sk-xunxin .xx-stat-box {
  padding: 9px 11px;
  border-radius: 8px;
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
body.sk-xunxin .xx-stat-box span { font-size: 11px; color: var(--muted); }
body.sk-xunxin .xx-stat-box b {
  font-size: 15px;
  font-weight: 700;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}

body.sk-xunxin .xx-side-tags {
  padding-top: 12px;
  border-top: 1px solid var(--rule-soft);
}
body.sk-xunxin .xx-side-k {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--muted);
}
body.sk-xunxin .xx-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
body.sk-xunxin .xx-tags .label { display: none; }
body.sk-xunxin .xx-tags a {
  font-size: 11.5px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--paper);
  border: 1px solid var(--rule);
  color: var(--ink-2);
}
body.sk-xunxin .xx-tags a:hover { border-color: var(--brand); color: var(--brand); }

/* 右侧工作区 */
body.sk-xunxin .xx-content { min-width: 0; display: flex; flex-direction: column; }
body.sk-xunxin .xx-hero {
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
  padding: 18px 30px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
body.sk-xunxin .xx-hero-copy { min-width: 0; }
body.sk-xunxin .xx-hero h1 {
  margin: 0 0 4px;
  font-family: var(--sans);
  font-size: clamp(22px, 2.2vw, 27px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.01em;
}
body.sk-xunxin .xx-hero h1 br { display: none; }
body.sk-xunxin .xx-lead {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 58ch;
}
body.sk-xunxin .xx-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 360px;
  flex-shrink: 0;
  padding: 4px 4px 4px 12px;
  border-radius: 10px;
  background: var(--paper);
  border: 1px solid var(--rule);
}
body.sk-xunxin .xx-search .ic { width: 15px; height: 15px; color: var(--muted); flex-shrink: 0; }
body.sk-xunxin .xx-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  outline: none;
  font-size: 13px;
  padding: 5px 0;
}
body.sk-xunxin .xx-search button {
  border: 0;
  border-radius: 7px;
  background: var(--brand);
  color: #fff;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 600;
}

body.sk-xunxin .xx-main {
  padding: 16px 30px 44px;
  flex: 1;
}
body.sk-xunxin .xx-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}
body.sk-xunxin .xx-toolbar-l {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
body.sk-xunxin .xx-toolbar-l h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}
body.sk-xunxin .xx-toolbar-l h2 .ic { display: none; }
body.sk-xunxin .xx-toolbar-l span,
body.sk-xunxin .xx-count { margin: 0; font-size: 12px; color: var(--muted); }
body.sk-xunxin .sorts { gap: 14px; }
body.sk-xunxin .sorts button {
  padding: 4px 2px;
  font-size: 12.5px;
  letter-spacing: .02em;
  border-bottom: 2px solid transparent;
}
body.sk-xunxin .sorts button.is-active {
  color: var(--brand);
  font-weight: 600;
  border-bottom-color: var(--brand);
}

body.sk-xunxin .xx-catbar {
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--surface-2);
  margin-bottom: 14px;
}
body.sk-xunxin .cat-row { gap: 6px; }
body.sk-xunxin .cat-chip {
  padding: 4px 11px;
  border-radius: 7px;
  background: transparent;
  font-size: 12.5px;
  color: var(--ink-2);
}
body.sk-xunxin .cat-chip .cnt { color: var(--muted); font-family: var(--sans); }
body.sk-xunxin .cat-chip.is-active {
  background: var(--paper-2);
  color: var(--brand);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(34, 48, 44, .08);
}

/* 3列无封面纯文字「现代索引方卡」：用 CSS Grid 彻底重构 .hm-line */
body.sk-xunxin .hm-index.xx-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  border-top: 0;
  counter-reset: hm;
}
body.sk-xunxin .hm-index.xx-cards .hm-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto 1fr auto;
  gap: 6px 8px;
  padding: 13px 14px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 10px;
  align-items: start;
  transition: border-color .15s, transform .15s;
}
body.sk-xunxin .hm-index.xx-cards .hm-line:hover {
  border-color: var(--brand);
  transform: translateY(-1px);
}
body.sk-xunxin .hm-index.xx-cards .hm-line::before {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  width: auto;
  padding: 1px 7px;
  border-radius: 4px;
  background: var(--brand-soft);
  color: var(--brand);
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  opacity: 1;
}
body.sk-xunxin .hm-index.xx-cards .hm-fav {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}
body.sk-xunxin .hm-index.xx-cards .hm-name {
  grid-column: 1 / -1;
  grid-row: 2;
  max-width: none;
  white-space: normal;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
body.sk-xunxin .hm-index.xx-cards .hm-lead { display: none; }
body.sk-xunxin .hm-index.xx-cards .hm-note {
  grid-column: 1 / 2;
  grid-row: 3;
  max-width: 110px;
  font-size: 11.5px;
  color: var(--muted);
}
body.sk-xunxin .hm-index.xx-cards .hm-size {
  grid-column: 2;
  grid-row: 3;
  width: auto;
  text-align: right;
  font-size: 11.5px;
}
body.sk-xunxin .hm-index.xx-cards .hm-date {
  grid-column: 3;
  grid-row: 3;
  width: auto;
  font-size: 11.5px;
}

@media (max-width: 1140px) {
  body.sk-xunxin .hm-index.xx-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  body.sk-xunxin .xx-app { grid-template-columns: minmax(0, 1fr); }
  body.sk-xunxin .xx-sidebar {
    position: sticky;
    top: 0;
    z-index: 35;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
    padding: 10px 16px;
    gap: 0;
  }
  body.sk-xunxin .xx-nav,
  body.sk-xunxin .xx-side-stats,
  body.sk-xunxin .xx-side-tags { display: none; }
  body.sk-xunxin .xx-burger { display: grid; }
  body.sk-xunxin .xx-mobile { padding: 8px 0 4px; }
  body.sk-xunxin .xx-hero {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 16px;
    gap: 10px;
  }
  body.sk-xunxin .xx-search { width: 100%; }
  body.sk-xunxin .xx-main { padding: 14px 16px 36px; }
}
@media (max-width: 620px) {
  body.sk-xunxin .xx-toolbar { flex-direction: column; align-items: flex-start; gap: 6px; }
  body.sk-xunxin .hm-index.xx-cards { grid-template-columns: minmax(0, 1fr); }
}
