/* ============================================================
   内容排版 / 组件 / 交互样式
   依赖 style.css 中的设计变量
   ============================================================ */

/* ---------- 1. 页面标题区 ---------- */
.page-head { margin-bottom: 32px; padding-bottom: 20px; border-bottom: 2px solid var(--line); }
.page-head__kicker {
  display: inline-block; font-size: 11.5px; letter-spacing: 3.5px;
  color: var(--cinnabar); margin-bottom: 10px; font-family: var(--font-sans); font-weight: 600;
}
.page-head h1 { font-size: clamp(26px, 3.4vw, 34px); letter-spacing: .1em; margin-bottom: 12px; }
.page-head__lead { font-size: 15px; color: var(--ink-3); margin: 0; line-height: 1.9; max-width: 760px; }

.breadcrumb {
  font-size: 12.5px; color: var(--ink-4); margin-bottom: 16px;
  font-family: var(--font-sans); letter-spacing: .5px;
}
.breadcrumb a { color: var(--ink-3); }
.breadcrumb a:hover { color: var(--cinnabar); }
.breadcrumb span.sep { margin: 0 7px; color: var(--line-2); }

/* ---------- 2. 区块 ---------- */
.sec { margin-bottom: 46px; scroll-margin-top: calc(var(--nav-h) + 24px); }
.sec__title {
  display: flex; align-items: center; gap: 12px;
  font-size: 21px; letter-spacing: .09em; margin: 0 0 18px;
  padding-bottom: 11px; border-bottom: 1px solid var(--line);
}
.sec__title::before {
  content: ""; width: 4px; height: 19px; background: var(--cinnabar);
  border-radius: 2px; flex-shrink: 0;
}
.sec__title .en { font-size: 11px; color: var(--ink-4); letter-spacing: 1px; font-weight: 400; margin-left: auto; font-family: var(--font-sans); }
h3.sub { font-size: 17.5px; letter-spacing: .08em; margin: 28px 0 12px; padding-left: 12px; border-left: 3px solid var(--line-2); }
h4.sub { font-size: 15.5px; margin: 22px 0 10px; color: var(--ink); }

/* ---------- 3. 正文排版 ---------- */
.entry-content { font-size: 16.5px; line-height: 2.05; color: var(--ink-2); }
.entry-content > *:first-child { margin-top: 0; }
.entry-content p { margin-bottom: 1.1em; }
.entry-content h2 { font-size: 23px; margin: 2em 0 .7em; padding-bottom: .4em; border-bottom: 1px solid var(--line); letter-spacing: .06em; }
.entry-content h3 { font-size: 19px; margin: 1.7em 0 .6em; letter-spacing: .06em; }
.entry-content h4 { font-size: 16.5px; margin: 1.5em 0 .5em; }
.entry-content ul, .entry-content ol { margin: 0 0 1.2em; padding-left: 1.6em; }
.entry-content li { margin-bottom: .45em; }
.entry-content li::marker { color: var(--cinnabar); }
.entry-content blockquote {
  margin: 24px 0; padding: 18px 24px;
  background: var(--paper-2); border-left: 3px solid var(--cinnabar);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 16px; color: var(--ink-2);
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content a { border-bottom: 1px solid rgba(158,59,44,.3); }
.entry-content a:hover { border-bottom-color: var(--cinnabar); }
.entry-content hr { border: 0; height: 1px; background: var(--line); margin: 32px 0; }
.entry-content strong { color: var(--ink); font-weight: 600; }
.entry-content code {
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .88em;
  background: var(--paper-3); padding: 2px 6px; border-radius: 3px; color: var(--dai);
}
.entry-content img { border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* ---------- 4. 经典原文块 ---------- */
.verse {
  position: relative;
  margin: 26px 0;
  padding: 30px 30px 24px 34px;
  background: linear-gradient(180deg, var(--paper-2), #fdfaf5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.verse::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--cinnabar), rgba(158,59,44,.25));
  border-radius: var(--radius) 0 0 var(--radius);
}
.verse__text {
  font-size: 18px; line-height: 2.25; color: var(--ink);
  letter-spacing: .1em; text-align: justify;
}
.verse__text p { margin: 0 0 .5em; }
.verse__text p:last-child { margin-bottom: 0; }
.verse__source {
  display: block; margin-top: 16px; padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 13px; color: var(--ink-4); letter-spacing: 1.5px;
  text-align: right; font-family: var(--font-sans);
}
.verse__source em { font-style: normal; color: var(--cinnabar); }

/* ---------- 4b. 四层对照（原文 · 拼音 · 白话 · 英文） ---------- */
.reader {
  position: relative;
  margin: 26px 0 30px;
  padding: 0 0 8px;
  background: linear-gradient(180deg, var(--paper-2), #fdfaf5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.reader__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  padding: 15px 26px;
  border-bottom: 1px solid var(--line);
  background: rgba(239,229,213,.5);
}
.reader__kicker {
  font-family: var(--font-sans);
  font-size: 11.5px; letter-spacing: .28em;
  color: var(--cinnabar);
}
.reader__modes { display: flex; gap: 6px; }
.reader__btn {
  font-family: var(--font-sans);
  font-size: 12px; line-height: 1;
  padding: 7px 12px;
  color: var(--ink-3);
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  cursor: pointer;
  transition: color .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
.reader__btn:hover { color: var(--cinnabar); border-color: var(--cinnabar-lt); }
.reader__btn.is-active {
  color: #fff; background: var(--cinnabar); border-color: var(--cinnabar);
}

.reader__hint {
  margin: 0; padding: 12px 26px 4px;
  font-family: var(--font-sans);
  font-size: 12px; line-height: 1.75; color: var(--ink-4);
  letter-spacing: .02em;
}

.reader__body { padding: 6px 26px 10px; }
.vpara + .vpara { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }

.vline {
  padding: 14px 0 15px 14px;
  border-left: 2px solid transparent;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.vline:hover {
  border-left-color: var(--cinnabar-lt);
  background: rgba(158,59,44,.025);
}
.vline + .vline { border-top: 1px dashed rgba(203,187,159,.55); }

.vline__zh {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 19px; line-height: 1.9;
  color: var(--ink);
  letter-spacing: .09em;
  text-align: justify;
}
.vline__py {
  margin: 5px 0 0;
  font-family: var(--font-sans);
  font-size: 12.5px; line-height: 1.75;
  color: var(--ink-4);
  letter-spacing: .015em;
  word-break: break-word;
}
.vline__bh,
.vline__en {
  margin: 9px 0 0;
  font-size: 14.5px; line-height: 1.95;
  color: var(--ink-2);
  letter-spacing: .02em;
  text-align: justify;
}
.vline__en {
  font-family: "Iowan Old Style","Palatino Linotype",Palatino,Georgia,var(--font-serif);
  color: var(--ink-3);
  line-height: 1.85;
}
.vline__tag {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 6px;
  font-family: var(--font-sans);
  font-size: 10px; line-height: 1.7;
  letter-spacing: .12em;
  vertical-align: 2px;
  border-radius: 2px;
  background: var(--zhe-bg);
  color: var(--zhe);
}
.vline__en .vline__tag { background: var(--dai-bg); color: var(--dai); }

.reader__source {
  margin: 4px 26px 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-family: var(--font-sans);
  font-size: 12.5px; color: var(--ink-4);
  letter-spacing: 1.2px; text-align: right;
}
.reader__source em { font-style: normal; color: var(--cinnabar); }

/* 层数切换 */
.reader.mode-zh .vline__py,
.reader.mode-zh .vline__bh,
.reader.mode-zh .vline__en { display: none; }
.reader.mode-bh .vline__en { display: none; }

@media (max-width: 640px) {
  .reader__bar { padding: 13px 16px; }
  .reader__body { padding: 4px 16px 8px; }
  .reader__hint { padding: 10px 16px 2px; }
  .reader__source { margin: 4px 16px 10px; }
  .vline__zh { font-size: 17.5px; line-height: 1.85; }
  .vline__bh, .vline__en { font-size: 14px; }
}

/* 注解 / 按语 */
.gloss { margin: 20px 0; padding: 18px 22px; background: var(--dai-bg); border-radius: var(--radius); border-left: 3px solid var(--dai); }
.gloss__label {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: 2px;
  color: var(--dai); margin-bottom: 8px;
}
.gloss p { font-size: 15px; line-height: 1.95; color: var(--ink-2); margin-bottom: .7em; }
.gloss p:last-child { margin-bottom: 0; }
.gloss strong { color: var(--dai); }

.appraise {
  margin: 22px 0; padding: 18px 22px;
  background: var(--zhe-bg); border-left: 3px solid var(--zhe); border-radius: var(--radius);
}
.appraise__label { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: 2px; color: var(--zhe); margin-bottom: 8px; }
.appraise p:last-child { margin-bottom: 0; }

/* 提示框 */
.box {
  margin: 20px 0; padding: 16px 20px;
  background: var(--paper-2); border: 1px solid var(--line);
  border-left: 3px solid var(--ink-4);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 14.8px; line-height: 1.9;
}
.box p:last-child { margin-bottom: 0; }
.box--zhu { border-left-color: var(--cinnabar); background: var(--cinnabar-bg); }
.box--dai { border-left-color: var(--dai);      background: var(--dai-bg); }
.box--zhe { border-left-color: var(--zhe);      background: var(--zhe-bg); }
.box__label { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: 2px; margin-bottom: 7px; color: var(--ink-2); }
.box--zhu .box__label { color: var(--cinnabar); }
.box--dai .box__label { color: var(--dai); }
.box--zhe .box__label { color: var(--zhe); }

/* ---------- 5. 表格 ---------- */
.tbl-wrap { overflow-x: auto; margin: 22px 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
.tbl th {
  background: var(--paper-3); color: var(--ink);
  font-weight: 600; text-align: left; letter-spacing: .06em;
  padding: 11px 14px; border-bottom: 1.5px solid var(--line-2);
  white-space: nowrap; font-size: 13.5px;
}
.tbl td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.8; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:nth-child(even) { background: rgba(239,229,213,.32); }
.tbl tbody tr:hover { background: var(--cinnabar-bg); }
.tbl code { background: none; color: var(--cinnabar); font-size: .95em; }

/* ---------- 6. 标签 / 元信息 ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.tag {
  display: inline-block; padding: 3px 11px;
  font-size: 12.5px; color: var(--ink-3);
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 12px; letter-spacing: .5px;
  transition: all .2s var(--ease);
}
.tag:hover { color: var(--cinnabar); border-color: var(--cinnabar); background: var(--cinnabar-bg); }
.tag--zhu { color: var(--cinnabar); background: var(--cinnabar-bg); border-color: rgba(158,59,44,.28); }
.tag--dai { color: var(--dai); background: var(--dai-bg); border-color: rgba(63,95,87,.25); }
.tag--zhe { color: var(--zhe); background: var(--zhe-bg); border-color: rgba(138,106,69,.25); }

.meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
  font-size: 12.5px; color: var(--ink-4); font-family: var(--font-sans);
  margin-bottom: 22px;
}
.meta__item { display: inline-flex; align-items: center; gap: 5px; }
.meta__item svg { width: 13px; height: 13px; }

/* ---------- 7. 目录 ---------- */
.toc {
  margin: 0 0 34px; padding: 20px 24px;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.toc__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.toc__title { font-size: 13px; letter-spacing: 3px; color: var(--ink); font-weight: 600; }
.toc__toggle { background: none; border: 0; font-size: 12px; color: var(--ink-4); letter-spacing: 1px; padding: 0; }
.toc__toggle:hover { color: var(--cinnabar); }
.toc ol { margin: 0; padding-left: 1.3em; columns: 2; column-gap: 32px; }
.toc li { margin-bottom: .4em; break-inside: avoid; }
.toc a { color: var(--ink-2); font-size: 14.5px; }
.toc a:hover { color: var(--cinnabar); }
.toc.is-collapsed ol { display: none; }

/* ---------- 8. 文章卡片网格 ---------- */
.cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card {
  display: flex; flex-direction: column;
  padding: 22px 22px 18px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all .25s var(--ease);
  position: relative;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); background: #fff; }
.card__kicker { font-size: 11.5px; letter-spacing: 2px; color: var(--cinnabar); margin-bottom: 10px; font-family: var(--font-sans); }
.card__title { font-size: 17.5px; line-height: 1.55; margin-bottom: 8px; letter-spacing: .04em; }
.card__title a { color: var(--ink); }
.card:hover .card__title a { color: var(--cinnabar); }
.card__excerpt {
  font-size: 13.8px; color: var(--ink-3); line-height: 1.85; margin: 0 0 14px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px dashed var(--line); }
.card__meta { font-size: 12px; color: var(--ink-4); font-family: var(--font-sans); }

/* 列表式条目 */
.list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.list__item {
  display: grid; grid-template-columns: 74px 1fr auto; gap: 18px;
  padding: 18px 4px; border-bottom: 1px solid var(--line);
  transition: background .2s var(--ease);
}
.list__item:hover { background: rgba(251,247,240,.7); }
.list__no { font-size: 12px; color: var(--ink-4); letter-spacing: 1px; font-family: var(--font-sans); padding-top: 4px; }
.list__title { font-size: 16.5px; margin-bottom: 4px; }
.list__title a { color: var(--ink); }
.list__item:hover .list__title a { color: var(--cinnabar); }
.list__desc { font-size: 13.5px; color: var(--ink-3); margin: 0; line-height: 1.75; }
.list__meta { font-size: 12px; color: var(--ink-4); white-space: nowrap; font-family: var(--font-sans); padding-top: 4px; }

/* ---------- 9. 分页 ---------- */
.pager { display: flex; justify-content: center; gap: 8px; margin: 44px 0 0; flex-wrap: wrap; }
.pager .page-numbers {
  display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 12px;
  font-size: 14px; color: var(--ink-2); font-family: var(--font-sans);
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  transition: all .2s var(--ease);
}
.pager .page-numbers:hover { border-color: var(--cinnabar); color: var(--cinnabar); background: #fff; }
.pager .page-numbers.current { background: var(--cinnabar); color: #fff; border-color: var(--cinnabar); }
.pager .page-numbers.dots { border: 0; background: none; }

/* ---------- 10. 交互工具条 ---------- */
.toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  margin-bottom: 26px; padding: 14px 16px;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.toolbar__label { font-size: 12.5px; color: var(--ink-4); letter-spacing: 1.5px; font-family: var(--font-sans); }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  padding: 5px 13px; font-size: 13px; color: var(--ink-2);
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  letter-spacing: .5px; transition: all .18s var(--ease);
}
.chip:hover { border-color: var(--cinnabar); color: var(--cinnabar); }
.chip.is-active { background: var(--cinnabar); color: #fff; border-color: var(--cinnabar); }
.chip__n { font-size: 11px; opacity: .7; margin-left: 3px; font-family: var(--font-sans); }

.inline-search { position: relative; flex: 1; min-width: 190px; }
.inline-search input {
  width: 100%; height: 38px; padding: 0 14px;
  font-family: var(--font-serif); font-size: 14.5px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  outline: none; transition: all .2s var(--ease);
}
.inline-search input:focus { border-color: var(--cinnabar); background: #fff; box-shadow: 0 0 0 3px rgba(158,59,44,.08); }

/* ---------- 11. 经络穴位图谱 ---------- */
.atlas { display: grid; grid-template-columns: 1fr 330px; gap: 26px; align-items: start; }
.atlas__stage {
  position: relative; padding: 20px;
  background: linear-gradient(180deg, var(--paper-2), #fdfaf5);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.atlas__svg { display: block; width: 100%; height: auto; max-height: 640px; margin: 0 auto; }
.atlas__view { display: flex; gap: 6px; justify-content: center; margin-bottom: 12px; }
.atlas__body { transition: opacity .3s var(--ease); }

/* 穴位点 */
.pt { cursor: pointer; }
.pt circle.dot { fill: #fff; stroke: var(--ink-3); stroke-width: 1.4; transition: all .2s var(--ease); }
.pt:hover circle.dot { stroke: var(--cinnabar); stroke-width: 2.4; r: 6; }
.pt text { font-size: 8px; fill: var(--ink-3); font-family: var(--font-sans); pointer-events: none; opacity: 0; transition: opacity .2s; }
.pt:hover text { opacity: 1; }
.pt.is-active circle.dot { fill: var(--cinnabar); stroke: var(--cinnabar); r: 6.5; }
.pt.is-active text { opacity: 1; fill: var(--cinnabar); font-weight: 700; }
.pt.is-dim { opacity: .18; }

/* 经络线 */
.mer-line { fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .55; transition: all .3s var(--ease); }
.mer-line.is-active { stroke-width: 3; opacity: 1; }
.mer-line.is-dim { opacity: .1; }

.atlas__panel {
  position: sticky; top: calc(var(--nav-h) + 20px);
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
}
.atlas__panel-empty { padding: 48px 24px; text-align: center; color: var(--ink-4); font-size: 14px; line-height: 1.9; }
.atlas__panel-empty svg { width: 40px; height: 40px; margin-bottom: 14px; opacity: .3; }
.pt-detail { padding: 22px 22px 20px; }
.pt-detail__code { font-size: 11.5px; letter-spacing: 2px; color: var(--cinnabar); font-family: var(--font-sans); margin-bottom: 4px; }
.pt-detail__name { font-size: 26px; letter-spacing: .1em; margin-bottom: 4px; }
.pt-detail__pinyin { font-size: 12px; color: var(--ink-4); letter-spacing: 1.5px; font-family: var(--font-sans); margin-bottom: 16px; }
.pt-detail dl { margin: 0; }
.pt-detail dt {
  font-size: 11.5px; letter-spacing: 2px; color: var(--cinnabar);
  margin: 14px 0 4px; font-weight: 600; padding-bottom: 4px; border-bottom: 1px dashed var(--line);
}
.pt-detail dt:first-of-type { margin-top: 0; }
.pt-detail dd { margin: 0; font-size: 14.2px; line-height: 1.9; color: var(--ink-2); }
.pt-detail__actions { display: flex; gap: 8px; margin-top: 20px; }

/* ---------- 12. 背诵卡片 ---------- */
.flash-wrap { max-width: 720px; margin: 0 auto; }
.flash-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; font-size: 13px; color: var(--ink-3); font-family: var(--font-sans);
}
.flash-progress { flex: 1; height: 3px; background: var(--line); border-radius: 2px; margin: 0 18px; overflow: hidden; }
.flash-progress__bar { height: 100%; background: var(--cinnabar); width: 0; transition: width .35s var(--ease); }

.flash {
  perspective: 1600px; height: 380px; margin-bottom: 22px;
  cursor: pointer; user-select: none;
}
.flash__inner {
  position: relative; width: 100%; height: 100%;
  transition: transform .65s var(--ease);
  transform-style: preserve-3d;
}
.flash.is-flipped .flash__inner { transform: rotateY(180deg); }
.flash__face {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 44px 40px; text-align: center;
  background: linear-gradient(160deg, var(--paper-2), #fdf9f2);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  overflow: hidden;
}
.flash__face::before {
  content: ""; position: absolute; inset: 14px;
  border: 1px solid rgba(203,187,159,.45); border-radius: 4px; pointer-events: none;
}
.flash__face--back {
  transform: rotateY(180deg);
  background: linear-gradient(160deg, var(--dai-bg), #f3f8f5);
  justify-content: flex-start; overflow-y: auto;
}
.flash__kicker { font-size: 11px; letter-spacing: 3px; color: var(--cinnabar); margin-bottom: 20px; font-family: var(--font-sans); }
.flash__text {
  font-size: clamp(19px, 2.6vw, 26px); line-height: 2.1; color: var(--ink);
  letter-spacing: .1em; max-width: 560px;
}
.flash__text p { margin: 0 0 .4em; }
.flash__text p:last-child { margin-bottom: 0; }
.flash__source { margin-top: 24px; font-size: 12.5px; letter-spacing: 1.5px; color: var(--ink-4); font-family: var(--font-sans); }
.flash__hint {
  position: absolute; bottom: 22px; left: 0; right: 0;
  font-size: 11.5px; letter-spacing: 2px; color: var(--ink-4); font-family: var(--font-sans);
}
.flash__back-inner { width: 100%; text-align: left; }
.flash__back-title { font-size: 15px; letter-spacing: 2px; color: var(--dai); margin-bottom: 12px; font-weight: 600; text-align: center; }
.flash__back-body { font-size: 14.6px; line-height: 2; color: var(--ink-2); }
.flash__back-body p { margin-bottom: .8em; }
.flash__back-body ul { padding-left: 1.3em; }

.flash-controls { display: flex; justify-content: center; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 20px; font-size: 14px; letter-spacing: 1px;
  background: var(--paper-2); color: var(--ink-2);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: all .2s var(--ease);
}
.btn:hover { border-color: var(--cinnabar); color: var(--cinnabar); background: #fff; }
.btn--primary { background: var(--cinnabar); color: #fff; border-color: var(--cinnabar); }
.btn--primary:hover { background: var(--cinnabar-lt); color: #fff; border-color: var(--cinnabar-lt); }
.btn--ghost { background: transparent; }
.btn--sm { padding: 6px 13px; font-size: 12.5px; }
.btn svg { width: 14px; height: 14px; }
.flash-keys { text-align: center; margin-top: 18px; font-size: 12px; color: var(--ink-4); font-family: var(--font-sans); }
.flash-keys kbd {
  display: inline-block; padding: 1px 6px; margin: 0 2px;
  background: var(--paper-3); border: 1px solid var(--line-2); border-bottom-width: 2px;
  border-radius: 3px; font-family: var(--font-sans); font-size: 11px; color: var(--ink-3);
}

/* ---------- 13. 笔记 / 书签 ---------- */
.note-list { display: flex; flex-direction: column; gap: 14px; }
.note-item {
  padding: 18px 20px; background: var(--paper-2);
  border: 1px solid var(--line); border-left: 3px solid var(--zhe);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.note-item__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 8px; }
.note-item__title { font-size: 15.5px; }
.note-item__title a { color: var(--ink); }
.note-item__date { font-size: 11.5px; color: var(--ink-4); font-family: var(--font-sans); white-space: nowrap; }
.note-item__body { font-size: 14.5px; line-height: 1.95; color: var(--ink-2); white-space: pre-wrap; margin: 0; }
.note-item__actions { display: flex; gap: 12px; margin-top: 12px; font-size: 12.5px; }
.note-item__actions button, .note-item__actions a {
  background: none; border: 0; padding: 0; color: var(--ink-4); font-size: 12.5px; letter-spacing: .5px;
}
.note-item__actions button:hover { color: var(--cinnabar); }

.note-editor { margin-top: 24px; padding: 20px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.note-editor textarea {
  width: 100%; min-height: 110px; padding: 12px 14px; resize: vertical;
  font-family: var(--font-serif); font-size: 14.8px; line-height: 1.9; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); outline: none;
}
.note-editor textarea:focus { border-color: var(--cinnabar); box-shadow: 0 0 0 3px rgba(158,59,44,.08); }
.note-editor__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; gap: 12px; }
.note-editor__hint { font-size: 12px; color: var(--ink-4); font-family: var(--font-sans); }

.empty-state { padding: 60px 24px; text-align: center; color: var(--ink-4); }
.empty-state__icon { font-size: 34px; opacity: .35; margin-bottom: 14px; }
.empty-state p { font-size: 14.5px; line-height: 1.9; margin-bottom: 18px; }

/* ---------- 14. 配穴方案 ---------- */
.formula-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.formula {
  padding: 20px 22px; background: var(--paper-2);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: all .25s var(--ease);
}
.formula:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-2px); background: #fff; }
.formula__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.formula__name { font-size: 17px; letter-spacing: .05em; }
.formula__name a { color: var(--ink); }
.formula:hover .formula__name a { color: var(--cinnabar); }
.formula__method { font-size: 11.5px; padding: 2px 9px; border-radius: 10px; white-space: nowrap; font-family: var(--font-sans); }
.formula__method--needle { background: var(--cinnabar-bg); color: var(--cinnabar); }
.formula__method--moxa { background: var(--zhe-bg); color: var(--zhe); }
.formula__method--both { background: var(--dai-bg); color: var(--dai); }
.formula__points { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.formula__points span {
  font-size: 12.5px; padding: 2px 9px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 3px; color: var(--ink-2);
}
.formula__note { font-size: 13.5px; color: var(--ink-3); line-height: 1.8; margin: 0; }

/* 详情页穴位列表 */
.pt-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.pt-chips a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; font-size: 13.5px;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 4px; color: var(--ink-2);
}
.pt-chips a:hover { border-color: var(--cinnabar); color: var(--cinnabar); background: var(--cinnabar-bg); }
.pt-chips a b { font-weight: 600; color: var(--cinnabar); font-size: 11.5px; font-family: var(--font-sans); }

/* ---------- 15. 搜索结果 ---------- */
.search-hl { background: rgba(158,59,44,.16); color: var(--ink); padding: 0 2px; border-radius: 2px; }
.search-count { font-size: 13.5px; color: var(--ink-3); margin-bottom: 22px; font-family: var(--font-sans); }
.search-count b { color: var(--cinnabar); font-size: 16px; }

/* ---------- 16. 相关推荐 ---------- */
.related { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.related__title { font-size: 15px; letter-spacing: 3px; color: var(--ink-3); margin-bottom: 20px; }

/* 上一页/下一页 */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); }
.post-nav__item { padding: 16px 18px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); transition: all .2s var(--ease); }
.post-nav__item:hover { border-color: var(--cinnabar); background: #fff; }
.post-nav__item--next { text-align: right; }
.post-nav__label { font-size: 11.5px; letter-spacing: 2px; color: var(--ink-4); margin-bottom: 5px; font-family: var(--font-sans); }
.post-nav__title { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }

/* ---------- 17. 响应式 ---------- */
@media (max-width: 1080px) {
  .atlas { grid-template-columns: 1fr; }
  .atlas__panel { position: static; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 900px) {
  .nav { padding: 0 16px; gap: 12px; }
  .nav__search { width: 150px; }
  .nav__search:focus-within { width: 170px; }
  .nav__toggle { display: grid; }
  .nav__menu {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 10px 14px 20px;
    background: var(--paper-2);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: all .25s var(--ease);
  }
  .nav__menu.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav__menu > li > a { padding: 12px 14px; border-radius: var(--radius); }
  .nav__menu .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; padding: 0 0 0 14px; background: transparent;
  }
  .layout { flex-direction: column; }
  .side { display: none; }
  .main, .main--wide { padding: 24px 18px 72px; }
  .pillars { grid-template-columns: 1fr; gap: 14px; margin-top: -30px; }
  .hero { padding: 52px 18px 60px; }
  .home-sec { padding: 46px 18px 0; }
  .list__item { grid-template-columns: 1fr; gap: 6px; }
  .list__no, .list__meta { display: none; }
  .toc ol { columns: 1; }
  .post-nav { grid-template-columns: 1fr; }
  .flash { height: 420px; }
  .flash__face { padding: 30px 22px; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; padding: 40px 18px 20px; }
}
@media (max-width: 560px) {
  .nav__search { display: none; }
  .nav__title { font-size: 17px; letter-spacing: 2px; }
  .nav__sub { display: none; }
  .cards, .home-sec .cards, .formula-grid { grid-template-columns: 1fr; }
  /* 小屏时标题字号与字距需同时收紧，否则 .18em 字距会把整行推出版心 */
  .hero h1 { font-size: 27px; letter-spacing: .06em; text-indent: .06em; }
  .hero__latin { font-size: 10.5px; letter-spacing: 2px; }
  .hero__kicker { letter-spacing: 3px; font-size: 11px; }
  .atlas__stage { padding: 10px; }
  .flash { height: 460px; }
  .flash-controls { flex-wrap: wrap; }
}

/* ---------- 18. 动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .flash__inner { transition: none; }
}

/* ---------- 19. WordPress 核心类 ---------- */
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin: 20px auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 12.5px; color: var(--ink-4); text-align: center; margin-top: 8px; }
.sticky { }
.gallery-caption { }
.bypostauthor { }

/* ---------- 20. 搜索联想 ---------- */
.nav__suggest {
	position: absolute; top: calc(100% + 8px); left: 0; right: 0;
	min-width: 300px;
	background: var(--paper-2);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-lg);
	padding: 6px;
	display: none;
	max-height: 400px; overflow-y: auto;
	z-index: 950;
}
.nav__suggest.is-open { display: block; }
.nav__suggest-item {
	display: block; padding: 8px 11px;
	border-radius: var(--radius);
	transition: background .15s var(--ease);
}
.nav__suggest-item:hover,
.nav__suggest-item:focus {
	background: var(--cinnabar-bg);
	outline: none;
}
.nav__suggest-title {
	display: block; font-size: 14px; color: var(--ink);
	line-height: 1.5;
}
.nav__suggest-meta {
	display: block; font-size: 11px; color: var(--ink-4);
	letter-spacing: 1px; font-family: var(--font-sans);
	margin-top: 2px;
}

/* ============================================================
   英文版式微调
   ============================================================ */
.verse__label {
	display: block;
	margin-bottom: 10px;
	font-family: var(--font-sans);
	font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
	color: var(--ink-4);
}

/* 中文字距在英文里会显得松散，逐处收敛 */
.lang-en .page-head h1 { letter-spacing: .005em; line-height: 1.25; }
.lang-en .page-head__lead { font-size: 16px; line-height: 1.75; }
.lang-en .home-sec__title { letter-spacing: .005em; }
.lang-en .card__title { letter-spacing: .005em; line-height: 1.4; }
.lang-en .card__kicker { letter-spacing: .1em; }
.lang-en .list__title { letter-spacing: .005em; line-height: 1.4; }
.lang-en .sec__title { letter-spacing: .02em; }
.lang-en .sub { letter-spacing: .01em; }
.lang-en .side__head { letter-spacing: .02em; }
.lang-en .verse__text { font-size: 17px; line-height: 2; }
.lang-en .gloss p, .lang-en .appraise p { line-height: 1.9; }
.lang-en .entry-content { line-height: 1.85; }
.lang-en .flash__text { font-size: 19px; line-height: 1.75; }
.lang-en .pillar__title { letter-spacing: .01em; }
.lang-en .chip { letter-spacing: .01em; }
