:root {
  --bg: #faf8f4;
  --ink: #2c2a26;
  --muted: #6b665e;
  --accent: #8b3a2f;
  --accent-soft: #f3e9e5;
  --card: #ffffff;
  --border: #e3ddd2;
  --table-head: #f3eee6;
  --teal: #0f6e56;
  --teal-soft: #e8f2ee;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--ink);
  /* 安卓内置宋体真名是 Noto Serif CJK SC / Source Han Serif SC。
     原栈只写了桌面与苹果字体名，安卓上会全部落空、回退到通用 serif，
     字形便交给浏览器各自决定：微信给思源宋体，华为给系统黑体。 */
  font-family: "Noto Serif CJK SC", "Source Han Serif SC", "Noto Serif SC",
               "Songti SC", "STSong", "SimSun", serif;
  line-height: 1.85;
  font-size: clamp(15px, 1.6vw, 17px);
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; height: auto; display: block; }

.site-head {
  background: var(--bg); /* 必须不透明：半透明时 sticky 滚动会把正文透上来，与导航字叠成重影 */
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 20;
}
.site-head-inner {
  max-width: 900px; margin: 0 auto;
  padding: 10px clamp(14px, 4vw, 24px);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 600; letter-spacing: 2px; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 30px; height: 30px; border: 1px solid var(--accent); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px; border-radius: 3px; line-height: 1;
}
.brand-name { font-size: 16px; }
.site-nav { display: flex; gap: clamp(12px, 3vw, 24px); font-size: 14px; }
.site-nav a { color: var(--muted); padding: 4px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { text-decoration: none; color: var(--accent); }
.site-nav a.active { color: var(--accent); border-bottom-color: var(--accent); }

.page {
  width: 100%; max-width: 820px; margin: 0 auto;
  padding: 0 clamp(14px, 4vw, 24px) clamp(48px, 10vw, 80px);
  min-height: 62vh;
}

/* 首页 */
.home-hero { padding: clamp(34px, 8vw, 62px) 0 clamp(24px, 5vw, 36px); text-align: center; }
.home-hero .kicker { color: var(--accent); font-size: 13px; letter-spacing: 3px; }
.home-hero h1 { font-size: clamp(25px, 6vw, 38px); font-weight: 600; letter-spacing: 3px; margin: 12px 0; line-height: 1.4; text-wrap: balance; }
.home-hero p { color: var(--muted); max-width: 600px; margin: 0 auto; font-size: clamp(14px, 3.4vw, 16px); }
.home-hero .hero-rule {
  width: 56px; height: 2px; background: var(--accent); margin: 22px auto 0; opacity: .6;
}

/* 首页主图：一进站先看到图，再看到目录 */
.home-hero { padding-bottom: clamp(16px, 3.5vw, 24px); }
.home-hero h1 { letter-spacing: 1px; color: var(--ink); }
.home-hero .hero-line { max-width: 640px; }
.cover-block { margin-top: 0; }
.cover-label { font-size: 12px; letter-spacing: 2px; color: var(--accent); text-align: center; margin-bottom: 12px; }
.cover-figure {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 8px; padding: clamp(8px, 2vw, 14px); overflow-x: auto;
}
.cover-figure svg { width: 100%; min-width: 480px; }
.cover-cues {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 10px; margin-top: 14px;
}
.cue {
  display: flex; gap: 10px; align-items: flex-start; background: var(--card);
  border: 1px solid var(--border); border-radius: 4px; padding: 11px 13px;
}
.cue-n { font-size: 11px; font-weight: 700; color: var(--accent); letter-spacing: 1px; flex: 0 0 auto; padding-top: 2px; }
.cue strong { display: block; font-size: 13.5px; color: var(--ink); font-weight: 600; }
.cue div > span { display: block; font-size: 12px; color: var(--muted); line-height: 1.6; margin-top: 3px; }
.cover-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 18px; }
.cover-cta .btn { display: inline-block; background: var(--accent); color: #fff8f2; border-radius: 4px; padding: 10px 20px; font-size: 14.5px; }
.cover-cta .btn:hover { text-decoration: none; background: #742f26; }
.cover-cta > span { font-size: 12.5px; color: var(--muted); }

/* ---- 所求坐标系：首页的主导航 ---- */
.seek-hero { padding-bottom: clamp(18px, 4vw, 28px); }
.seek-hero h1 { font-size: clamp(24px, 5.6vw, 36px); }
.seek-hero .hero-line { max-width: 680px; line-height: 1.85; }
.seek-block { margin-top: clamp(18px, 4vw, 28px); }
.seek-pills { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: clamp(20px, 4vw, 28px); }
.seek-pills a { font-size: 12.5px; color: var(--accent); background: var(--accent-soft); border: 1px solid #e6cdbf; border-radius: 16px; padding: 6px 14px; }
.seek-pills a:hover { text-decoration: none; background: #f1d9cb; }
.seek-group { margin-bottom: clamp(22px, 5vw, 32px); scroll-margin-top: 16px; }
.seek-group-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; border-left: 4px solid var(--accent); padding-left: 12px; margin-bottom: 12px; }
.seek-group-head h3 { font-size: clamp(16px, 3.8vw, 19px); color: var(--accent); font-weight: 600; letter-spacing: 1px; margin: 0; }
.seek-group-head span { font-size: 12.5px; color: var(--muted); }
.seek-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(10px, 2.4vw, 14px); }
.seek-card { position: relative; background: var(--card); border: 1px solid var(--border); border-top: 3px solid var(--accent); border-radius: 5px; padding: clamp(14px, 3.4vw, 19px); scroll-margin-top: 16px; }
.seek-card.is-pending { border-top-color: #cfc3ba; background: #fbf8f5; }
/* 右上角是卡片朗读小喇叭的绝对定位区，留白避免压住状态标签 */
.seek-card-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-right: 30px; }
.seek-no { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: 1px; }
.seek-tag { font-size: 12px; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 12px; padding: 3px 10px; }
.is-pending .seek-tag { color: #7c716a; background: #efe9e4; }
.seek-state { font-size: 11px; color: var(--teal); white-space: nowrap; }
.seek-state.pending { color: #8d827b; }
.seek-ask { font-size: clamp(15px, 3.6vw, 17px); line-height: 1.6; font-weight: 600; margin: 10px 0 9px; color: var(--ink); }
/* 乘门表四列：特点 / 核心经典 / 字段标题 / 经典 chips */
.seek-vehicle { font-size: 10.5px; color: #9a8b81; border: 1px solid var(--border); border-radius: 10px; padding: 1px 7px; white-space: nowrap; }
.seek-trait { font-size: 12.5px; line-height: 1.75; color: var(--ink); background: #fcf8f5; border: 1px solid var(--border); border-radius: 3px; padding: 7px 10px; margin: 0 0 9px; }
.seek-trait > span, .seek-field { font-size: 10.5px; font-weight: 700; letter-spacing: 1px; color: var(--muted); }
.seek-trait > span { margin-right: 8px; }
.seek-field { display: block; margin: 0 0 5px; }
.seek-classics { margin: 0 0 9px; }
.seek-classic-list { display: flex; flex-wrap: wrap; gap: 6px; }
.seek-classic { font-size: 12px; border-radius: 3px; padding: 4px 9px; border: 1px solid var(--border); }
.seek-classic.has { color: var(--accent); background: var(--accent-soft); border-color: #e6cdbf; }
.seek-classic.has:hover { text-decoration: none; border-color: var(--accent); }
.seek-classic.wait { color: #8d827b; background: #f6f2ef; border-style: dashed; }
/* 不是书名、而是表格里的结构性说明（如「分不同法门」），不当成待补经典 */
.seek-classic.memo { color: var(--muted); background: none; border: none; padding-left: 0; }
.seek-hint { font-size: 12.5px; line-height: 1.75; color: var(--muted); margin: 0 0 10px; }
.seek-quote { font-size: 12.5px; line-height: 1.75; color: #6b2a22; background: var(--accent-soft); border-left: 3px solid var(--accent); border-radius: 3px; padding: 8px 11px; margin: 10px 0; }
.seek-quote span { display: block; }
.seek-quote a { display: inline-block; margin-top: 4px; font-size: 11.5px; }
.seek-links { display: grid; gap: 6px; margin-top: 10px; }
.seek-start { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 13px; background: #fcf8f5; border: 1px solid var(--border); border-radius: 4px; padding: 8px 11px; }
.seek-start:hover { text-decoration: none; border-color: var(--accent); }
.seek-book { font-weight: 600; color: var(--accent); white-space: nowrap; }
.seek-from { color: var(--muted); font-size: 12px; }
.seek-arrow { margin-left: auto; color: var(--accent); }
.seek-pending { margin-top: 10px; font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.seek-notes { margin-top: clamp(16px, 3vw, 24px); padding: clamp(14px, 3vw, 18px); background: var(--card); border: 1px solid var(--border); border-radius: 4px; }
.seek-notes p { font-size: 12.5px; line-height: 1.85; color: var(--muted); margin: 0 0 8px; }
.seek-notes p:last-child { margin-bottom: 0; }
.sutra-seeks { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.sutra-seeks span { font-size: 11px; color: var(--teal); background: var(--teal-soft); border-radius: 10px; padding: 2px 8px; }
.cover-title { text-align: center; font-size: clamp(18px, 4.4vw, 23px); font-weight: 600; margin: 6px 0 8px; letter-spacing: 1px; }
.cover-line { text-align: center; font-size: 13px; color: var(--muted); line-height: 1.75; margin: 0 0 16px; }

/* 朗读按钮与合成提示 */
.speak-btn {
  display: inline-block; font: inherit; font-size: 13.5px; line-height: 1.2;
  color: var(--accent); background: var(--card); cursor: pointer;
  border: 1px solid var(--accent); border-radius: 4px; padding: 9px 16px;
}
.speak-btn:hover { background: var(--accent-soft); }
.speak-btn.playing { background: var(--accent); color: #fff8f2; }
.speak-row { margin: 14px 0 2px; }
/* 单篇页首屏的朗读入口：位于钩子段之前，实心按钮更显眼 */
.speak-lead { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; }
.speak-lead .speak-btn {
  font-size: 14.5px; padding: 11px 20px;
  background: var(--accent); color: #fff8f2;
}
.speak-lead .speak-btn:hover { background: #742f26; }
.speak-lead .speak-btn.playing { background: var(--ink); border-color: var(--ink); }
.speak-lead > span { font-size: 12.5px; color: var(--muted); }
#dis {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
  z-index: 99; background: var(--ink); color: #fff8f2;
  padding: 9px 18px; border-radius: 20px; font-size: 13px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .18);
}

.search-box { margin: clamp(30px, 6vw, 44px) auto clamp(30px, 6vw, 44px); max-width: 520px; }
.search-box input {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink);
  background: var(--card); border: 1px solid var(--border); border-radius: 4px;
  padding: 11px 14px; outline: none;
}
.search-box input:focus { border-color: var(--accent); }
.search-box .hint { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 7px; }

.path-block {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 4px; padding: clamp(16px, 4vw, 24px); margin-bottom: clamp(30px, 6vw, 44px);
}
.path-block h2, section > h2 { font-size: clamp(17px, 4vw, 21px); color: var(--accent); letter-spacing: 1px; border-left: 4px solid var(--accent); padding-left: 12px; margin-bottom: 16px; font-weight: 600; line-height: 1.4; }
.path-list { display: grid; gap: 10px; }
.path-item { display: flex; gap: 12px; align-items: baseline; font-size: 14.5px; }
.path-item .step { color: var(--accent); font-weight: 700; font-size: 12px; letter-spacing: 1px; flex: 0 0 auto; }
.path-item .why { color: var(--muted); font-size: 13px; }

.article-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: clamp(10px, 2.6vw, 14px); }
.article-card {
  background: var(--card); border: 1px solid var(--border); border-top: 3px solid var(--accent);
  border-radius: 4px; padding: clamp(15px, 3.6vw, 20px); display: block; color: var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.article-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 4px 14px rgba(44,42,38,.07); }
.article-card .num { font-size: 11.5px; color: var(--accent); font-weight: 700; letter-spacing: 1px; }
.article-card h3 { font-size: clamp(16px, 3.8vw, 18px); margin: 6px 0 8px; font-weight: 600; }
.article-card .card-hook { font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.article-card .card-meta { margin-top: 12px; font-size: 12px; color: var(--muted); }
.article-card .status { color: var(--teal); }

/* 面包屑 / 篇章头 */
.crumb { font-size: 12.5px; color: var(--muted); margin: 24px 0 18px; }
.crumb a { color: var(--muted); }
.article-head { margin-bottom: 22px; }
.article-head .chapter { font-size: 12.5px; color: var(--accent); letter-spacing: 1px; }
.article-head h1 { font-size: clamp(23px, 5.4vw, 32px); letter-spacing: 2px; margin: 8px 0 6px; font-weight: 600; line-height: 1.4; }
.article-head .subtitle { color: var(--muted); font-size: clamp(13.5px, 3.2vw, 16px); }
.hook {
  background: var(--accent-soft); border-radius: 4px; border-left: 4px solid var(--accent);
  padding: clamp(14px, 3.4vw, 20px); margin: 20px 0 8px;
  font-size: clamp(15px, 3.6vw, 17px); line-height: 1.75; color: #4a2b25;
}

section { margin-top: clamp(30px, 6vw, 44px); }
.plain-text { color: #4a463f; }
.plain-text p + p { margin-top: 12px; }
.term { border-bottom: 1px dotted var(--accent); cursor: help; }
.gloss {
  display: block; font-size: 13px; color: var(--muted); margin-top: 10px;
  background: var(--table-head); padding: 9px 12px; border-radius: 3px; line-height: 1.7;
}

/* 图示 */
.figure {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 4px; padding: clamp(12px, 3vw, 22px);
}
.figure svg { width: 100%; }
.figure figcaption {
  font-size: 12.5px; color: var(--muted); text-align: center;
  margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); line-height: 1.7;
}

/* 对照表 */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: 4px; background: var(--card); }
table { width: 100%; min-width: 340px; border-collapse: collapse; font-size: clamp(14px, 3.2vw, 16px); }
th, td { padding: clamp(10px, 2.6vw, 12px) clamp(12px, 3vw, 16px); border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { background: var(--table-head); color: var(--accent); font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: none; }
td:first-child { color: var(--ink); font-weight: 600; width: 40%; }
td:last-child { color: #4a463f; }
.table-note { font-size: 12.5px; color: var(--muted); margin-top: 9px; }

/* 流程：并行双轨 或 线性 */
.flow { background: var(--card); border: 1px solid var(--border); border-radius: 4px; padding: clamp(16px, 4vw, 26px); }
.flow-lane-label { font-size: 12px; color: var(--muted); letter-spacing: 1px; margin-bottom: 8px; }
.flow-row { display: flex; align-items: stretch; justify-content: center; gap: 8px; flex-wrap: wrap; }
.flow-node { background: #f8f4ec; border: 1px solid #d8cfbf; border-radius: 6px; padding: clamp(9px, 2.4vw, 13px) clamp(8px, 2.2vw, 12px); text-align: center; min-width: 0; flex: 1 1 110px; }
.flow-node .top { font-weight: 600; font-size: clamp(12.5px, 3vw, 15px); color: var(--accent); }
.flow-node .bottom { font-size: clamp(11.5px, 2.6vw, 12.5px); color: var(--muted); margin-top: 5px; line-height: 1.6; }
.arrow { display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 18px; flex: 0 0 auto; }
.flow-state { margin-top: 14px; background: var(--accent-soft); border: 1px dashed #c99b8e; border-radius: 6px; padding: 11px 14px; font-size: 13px; color: #6d3026; line-height: 1.7; }
.flow-state .label { font-weight: 700; font-size: 11.5px; letter-spacing: 1px; display: block; margin-bottom: 3px; }
.flow-down { text-align: center; margin-top: 14px; color: var(--muted); font-size: clamp(12.5px, 3vw, 14px); line-height: 1.8; }
.flow-down strong { color: var(--accent); }
.flow-hint { font-size: 12.5px; color: var(--muted); margin-top: 12px; line-height: 1.7; }

/* 要点卡片 */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: clamp(10px, 2.6vw, 14px); }
.card { background: var(--card); border: 1px solid var(--border); border-top: 3px solid var(--accent); border-radius: 4px; padding: clamp(14px, 3.6vw, 20px); }
.card .num { font-size: 11.5px; color: var(--accent); font-weight: 700; letter-spacing: 1px; }
.card .title { font-size: clamp(15px, 3.6vw, 17px); font-weight: 600; margin: 6px 0 8px; }
.card .desc { font-size: clamp(13px, 3vw, 14.5px); color: var(--muted); line-height: 1.75; }
.card.wide { grid-column: 1 / -1; }

/* 概念标签 */
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag {
  display: inline-block; font-size: 13px; padding: 5px 11px; border-radius: 14px;
  background: var(--teal-soft); border: 1px solid #bcd9ce; color: var(--teal);
}
.tag:hover { text-decoration: none; background: #d8ebe3; }
.tag-intro { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }

/* 进阶折叠 */
.advanced { border: 1px solid var(--border); border-radius: 4px; background: var(--card); overflow: hidden; }
.advanced summary {
  cursor: pointer; padding: clamp(13px, 3.2vw, 17px) clamp(15px, 3.6vw, 20px);
  font-size: 15px; font-weight: 600; color: var(--accent); list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.advanced summary::-webkit-details-marker { display: none; }
.advanced summary::after { content: "+"; font-size: 19px; font-weight: 400; }
.advanced[open] summary::after { content: "\2212"; }
.advanced[open] summary { border-bottom: 1px solid var(--border); }
.advanced-body { padding: clamp(15px, 3.6vw, 22px); }
.advanced-body h3 { font-size: 14px; color: var(--muted); font-weight: 600; margin: 18px 0 9px; letter-spacing: 1px; }
.advanced-body h3:first-child { margin-top: 0; }
.quote { background: #fcfaf6; border-left: 4px solid var(--accent); padding: 15px 18px; font-size: 14.5px; color: #3a3630; border-radius: 3px; word-break: break-word; line-height: 1.9; }
.quote .source { display: block; margin-top: 11px; font-size: 12.5px; color: var(--muted); text-align: right; }
.quote .note { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.position-list { display: grid; gap: 10px; }
.position-group { border: 1px solid var(--border); border-radius: 4px; padding: 11px 14px; }
.position-group .g-label { font-size: 12px; color: var(--muted); letter-spacing: 1px; margin-bottom: 5px; }
.position-group .g-items { font-size: 13.5px; line-height: 1.9; }
.position-group .here { color: var(--accent); font-weight: 600; }
.position-note { font-size: 12.5px; color: var(--muted); margin-top: 10px; line-height: 1.7; }

/* 上下篇 */
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: clamp(36px, 8vw, 54px); padding-top: 20px; border-top: 1px solid var(--border); }
.pager a { font-size: 14px; max-width: 48%; }
.pager .p-label { display: block; font-size: 11.5px; color: var(--muted); letter-spacing: 1px; }
.pager .next { text-align: right; margin-left: auto; }

/* 概念页 */
.concept-list { display: grid; gap: 12px; }
.concept-item { background: var(--card); border: 1px solid var(--border); border-left: 3px solid var(--teal); border-radius: 4px; padding: clamp(14px, 3.4vw, 20px); }
.concept-item h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.concept-item p { font-size: 14px; color: var(--muted); line-height: 1.8; }
.concept-item .appear { margin-top: 11px; font-size: 12.5px; color: var(--muted); }
.concept-item .appear a { margin-right: 10px; }
.concept-item mark { background: #f6e9a8; color: inherit; padding: 0 2px; }
.prose { color: #4a463f; }
.prose p + p { margin-top: 12px; }
.prose ul { margin: 10px 0 0 20px; }
.prose li + li { margin-top: 7px; }
.callout { background: var(--accent-soft); border-left: 4px solid var(--accent); padding: 14px 18px; border-radius: 3px; margin-top: 16px; font-size: 14px; color: #4a2b25; line-height: 1.8; }
.empty { text-align: center; color: var(--muted); font-size: 14px; padding: 36px 0; }

.site-foot { border-top: 1px solid var(--border); padding: 22px clamp(14px, 4vw, 24px) 34px; text-align: center; font-size: 12px; color: var(--muted); line-height: 1.9; }

/* ---- 多部经：经目、分组、单经页 ---- */
.path-intro { font-size: 13.5px; color: var(--muted); margin: -6px 0 14px; line-height: 1.75; }
.path-item em { font-style: normal; font-size: 11.5px; color: var(--teal); background: var(--teal-soft); padding: 2px 7px; border-radius: 10px; margin-left: 4px; white-space: nowrap; }
.path-foot { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 13.5px; }

.sutra-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: clamp(10px, 2.6vw, 14px); }
.sutra-card {
  background: var(--card); border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: 4px; padding: clamp(15px, 3.6vw, 20px); display: block; color: var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.sutra-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 4px 14px rgba(44,42,38,.07); }
.sutra-no { font-size: 11.5px; color: var(--accent); font-weight: 700; letter-spacing: 1px; }
.sutra-card h3 { font-size: clamp(17px, 4vw, 20px); margin: 7px 0 9px; font-weight: 600; letter-spacing: 1px; }
.sutra-q { font-size: 13.5px; color: #4a463f; line-height: 1.7; min-height: 46px; }
.sutra-meta { font-size: 12px; color: var(--muted); margin-top: 10px; line-height: 1.7; }
.sutra-count { font-size: 12.5px; color: var(--teal); margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }

.group-block { margin-top: 22px; }
.group-block:first-of-type { margin-top: 0; }
.group-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-bottom: 1px solid var(--border); padding-bottom: 8px; margin-bottom: 12px; }
.group-title a { font-size: 16px; font-weight: 600; }
.group-title span { font-size: 12px; color: var(--muted); }

.sutra-head { margin-bottom: 22px; }
.sutra-head .chapter { font-size: 12.5px; color: var(--muted); }
.sutra-head h1 { font-size: clamp(24px, 5.6vw, 34px); letter-spacing: 2px; margin: 9px 0 12px; font-weight: 600; line-height: 1.4; }
.sutra-oneq { background: var(--accent-soft); border-left: 4px solid var(--accent); padding: 13px 17px; border-radius: 3px; font-size: 15px; color: #4a2b25; line-height: 1.7; }
.sutra-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.sutra-facts span { font-size: 12px; color: var(--muted); background: var(--table-head); border: 1px solid var(--border); border-radius: 12px; padding: 3px 10px; }
.head-sutra { margin-top: 12px; font-size: 12.5px; color: var(--muted); }
/* 佛经地图是 4 列对照表；上面 td:first-child{width:40%} 是给两列表的，
   套到这里会让「经」在手机上独占 224px（首屏约 337px 的 2/3），把「在回答什么」
   挤成窄竖条。改为固定布局显式分配比例：经名窄列（最长 9 字折两行），
   问题列优先读全，其余两列分剩下的宽度；宽屏下各列按比例自然放大。 */
.map-table { table-layout: fixed; min-width: 560px; }
.map-table th:nth-child(1) { width: 21%; }
.map-table th:nth-child(2) { width: 34%; }
.map-table th:nth-child(3) { width: 23%; }
.map-table th:nth-child(4) { width: 22%; }
.map-table th, .map-table td { overflow-wrap: break-word; }
.map-table th { white-space: normal; }
.cross { margin-top: 26px; }

/* ---- 概念分域 ---- */
.concept-item h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.scope-badge { font-size: 11px; font-weight: 400; color: var(--teal); background: var(--teal-soft); border: 1px solid #bcd9ce; border-radius: 10px; padding: 1px 8px; letter-spacing: 0; }
.scope-note { font-size: 12px !important; color: var(--accent) !important; margin-top: 6px; }
.variants { margin-top: 12px; border: 1px solid #e0cfc6; border-radius: 4px; background: #fcf8f5; padding: 11px 13px; }
.variants-title { font-size: 11.5px; color: var(--accent); font-weight: 700; letter-spacing: 1px; margin-bottom: 8px; }
.variant { font-size: 13px; color: #4a463f; line-height: 1.75; }
.variant + .variant { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--border); }
.variant span { display: inline-block; font-size: 11.5px; color: var(--accent); border: 1px solid #d8b9a4; border-radius: 3px; padding: 0 6px; margin-right: 7px; }
.concept-item .appear a { display: inline-block; margin-right: 10px; }
.concept-item .appear small, .tag small { font-size: 10.5px; color: var(--muted); margin-left: 4px; }
.tag small { color: var(--teal); opacity: .8; }

/* ---- 单经页：完整度进度（先做完一部经，再做下一部） ---- */
.plan-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 10px; }
.plan-item { display: inline-block; font-size: 13px; padding: 5px 11px; border: 1px dashed var(--border); border-radius: 3px; background: #fbf8f3; color: var(--muted); text-decoration: none; }
.plan-item.done { border-style: solid; border-color: #bcd9ce; background: var(--teal-soft); color: var(--teal); }
.plan-item.done:hover { border-color: var(--teal); text-decoration: none; }

/* ---- 内容类型角标 ---- */
.kind-badge {
  display: inline-block; margin-right: 8px; padding: 1px 7px;
  border: 1px solid #d8b9a4; border-radius: 2px;
  color: var(--accent); background: var(--accent-soft);
  font-size: 11.5px; letter-spacing: 1px;
}

/* ---- 全经坐标：按底本卷次与品第 ---- */
.chapter-map { margin-top: 6px; }
.chapter-group {
  display: grid; grid-template-columns: 76px 1fr; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.chapter-group:last-child { border-bottom: 0; }
.chapter-label { font-size: 14px; color: var(--accent); font-weight: 600; padding-top: 5px; }
.chapter-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px; }
.chapter-item {
  display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap;
  padding: 7px 9px; border: 1px solid var(--border); border-radius: 3px;
  background: #f7f5f0; font-size: 12.5px; color: var(--muted);
}
.chapter-item .ch-n { color: #a9a198; font-size: 11.5px; }
.chapter-item .ch-name { color: var(--ink); font-size: 13px; }
.chapter-item .ch-note { width: 100%; color: var(--muted); font-size: 12px; line-height: 1.55; }
.chapter-item .ch-go { margin-left: auto; color: var(--accent); }
.chapter-item.has-link { background: var(--card); border-color: #d8b9a4; }
.chapter-item.has-link .ch-name { color: var(--accent); }
.chapter-item.has-link:hover { border-color: var(--accent); text-decoration: none; }

/* ---- 分辑完整度 ---- */
.plan-group { margin: 0 0 18px; }
.plan-label { font-size: 13.5px; color: var(--accent); font-weight: 600; margin-bottom: 8px; }

/* ---- 底本核对 ---- */
.source-link {
  display: inline-block; padding: 7px 13px; border: 1px solid var(--teal);
  border-radius: 3px; color: var(--teal); background: var(--teal-soft);
  font-size: 13.5px;
}
.source-link:hover { background: var(--teal); color: #fff; text-decoration: none; }
.source-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 10px 0 18px; }
.source-row span { font-size: 12.5px; color: var(--muted); }
.source-note {
  font-size: 12.5px; line-height: 1.8; color: var(--muted);
  margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border);
}

/* ---- 手机端字号整体上调一档 ----
   390px 视口实测：正文 15px、辅助 12.5~13px，比舒适阅读小一档。
   只在这个断点覆盖，桌面端保持原样。 */
@media (max-width: 560px) {
  body { font-size: 17px; line-height: 1.9; }
  .page { padding: 0 18px clamp(48px, 10vw, 80px); }
  .crumb, .article-head .chapter { font-size: 13.5px; }
  .article-head .subtitle, .home-hero p, .home-hero .hero-line { font-size: 16px; }
  .hook { font-size: 17px; line-height: 1.8; }
  .gloss, .figure figcaption { font-size: 14px; line-height: 1.8; }
  table { font-size: 15.5px; }
  .cue strong { font-size: 15px; }
  .cue div > span, .cover-cta > span, .speak-lead > span { font-size: 13.5px; }
  .article-card .card-hook { font-size: 14.5px; }
  .cover-label { font-size: 13px; }
}

@media (max-width: 560px) {
  .flow-row { flex-direction: column; align-items: stretch; }
  .flow-node { flex: 1 1 auto; }
  .arrow { transform: rotate(90deg); padding: 2px 0; }
  /* 首屏主图整张可见：原本 min-width:480px 会让「大白牛车／只给了一辆」
     那半边被横滑裁在屏幕外，而它正是钩子的答案。字小由图下三条提示兜底。 */
  .cover-figure { overflow-x: visible; }
  .cover-figure svg { min-width: 0; }
  .site-nav { gap: 9px; font-size: 13px; }
  .brand-name { font-size: 15px; }
  .site-head-inner { flex-wrap: wrap; gap: 6px; }
  .group-title span { width: 100%; }
  .sutra-q { min-height: 0; }
  .chapter-group { grid-template-columns: 1fr; gap: 6px; }
  .chapter-items { grid-template-columns: 1fr; }
  .chapter-item { font-size: 14px; }
  .chapter-item .ch-name { font-size: 15px; }
  .chapter-item .ch-note { font-size: 13px; }
  .chapter-label { font-size: 15px; }
  .source-link { font-size: 15px; }
  .source-row span, .source-note { font-size: 13.5px; }
  .kind-badge { font-size: 12px; }
}

/* ---- 讲座站首页「全篇主线：几组对照」---- */
.pair-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: clamp(10px, 2.2vw, 14px); margin-top: 16px; }
.pair-card { position: relative; background: var(--card); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 4px; padding: 14px 15px 15px; }
.pair-no { font-size: 10.5px; font-weight: 700; letter-spacing: 1.5px; color: #a98a80; }
.pair-terms { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 9px 0 8px; }
.pair-terms span { font-size: clamp(15px, 3.4vw, 17px); font-weight: 600; color: var(--accent); letter-spacing: 1px; }
.pair-terms em { font-style: normal; color: #b9a99a; font-size: 15px; }
.pair-card p { font-size: 12.5px; line-height: 1.75; color: var(--muted); padding-right: 26px; }
@media (max-width: 560px) {
  .pair-grid { grid-template-columns: 1fr; }
  .pair-terms span { font-size: 16px; }
  .pair-card p { font-size: 13.5px; }
}

/* ---- 多讲座站：讲座列表首页 + 讲座总览/导读 ---- */
.sutra-feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(12px, 2.6vw, 18px); margin-top: 18px; }
.sutra-feature { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-top: 3px solid var(--accent); border-radius: 5px; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.sutra-feature:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 5px 16px rgba(44,42,38,.08); }
.sutra-thumb { background: #f6eee3; padding: 10px 12px 0; border-bottom: 1px solid var(--border); }
.sutra-thumb svg { width: 100%; height: auto; }
.sutra-feature-body { position: relative; padding: 15px 17px 17px; }
.sutra-feature-body h3 { font-size: clamp(18px, 4vw, 22px); margin: 7px 0 9px; font-weight: 600; letter-spacing: 1px; line-height: 1.45; color: var(--ink); }
.sutra-feature-body .sutra-q { min-height: 0; color: #4a463f; font-size: 13.5px; line-height: 1.7; }
.sutra-feature-body .sutra-count { margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.sutra-feature-body .sutra-count .go { color: var(--accent); font-weight: 700; }
.sutra-feature-body .speak-mini { position: absolute; right: 14px; bottom: 12px; }

.lecture-head { padding: clamp(26px, 6vw, 46px) 0 clamp(18px, 4vw, 28px); border-bottom: 1px solid var(--border); margin-bottom: 26px; }
.lecture-head .kicker { color: var(--accent); font-size: 12.5px; letter-spacing: 2px; font-weight: 700; }
.lecture-head h1 { font-size: clamp(23px, 5.4vw, 33px); font-weight: 600; letter-spacing: 2px; margin: 11px 0; line-height: 1.4; text-wrap: balance; }
.lecture-head .hero-line { color: var(--muted); font-size: clamp(14px, 3.2vw, 16px); max-width: 660px; }
.sutra-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.sutra-facts span { font-size: 11.5px; color: var(--accent); background: var(--accent-soft); border-radius: 20px; padding: 4px 12px; letter-spacing: .5px; }
@media (max-width: 560px) {
  .sutra-feature-body .speak-mini { position: static; display: inline-flex; margin-top: 10px; }
}

/* =====================================================================
   适老大字档 · 2026-11-11
   受众以长者为主：成段正文统一到 --fs-body（默认 25px），辅助与微标签
   同步放大，手机端不再把字号压小；标题用 clamp 保证小屏也有下限。
   本块集中在文件最末尾，同特异性靠源码顺序覆盖上面的原值与两个
   560px 断点；唯一带 !important 的 .scope-note 在此同权覆盖。
   回退：删除本块即回到标准字号。全站联动：只改下面一组变量即可。
   ===================================================================== */
:root {
  --fs-body: 25px;    /* 成段正文：钩子、白话、表格、引文、概念说明 */
  --fs-lead: 26px;    /* 开场钩子、经页一句话 */
  --fs-card: 23px;    /* 卡片钩子、导航性正文、目录条目 */
  --fs-note: 20px;    /* 出处、图注、meta、面包屑、提示 */
  --fs-label: 18px;   /* 序号、角标、状态、页脚、small */
  --fs-sub: 22px;     /* 副标题、hero 说明、按钮、输入框 */
  --fs-ui: 22px;      /* 导航、按钮、标签、胶囊 */
  --fs-h3: 27px;      /* 卡片标题、概念名 */
  --fs-h2: 30px;      /* 区块标题 */
  --fs-h1: 40px;      /* 篇名、经名 */
}

/* ---- 1. 成段正文（最主要，锁 25px）---- */
body { font-size: var(--fs-body); line-height: 1.75; }
.plain-text, .prose, .quote, .callout, .concept-item p,
.card .desc, .position-group .g-items, .sutra-q, table, .empty { font-size: var(--fs-body); }
.hook, .sutra-oneq { font-size: var(--fs-lead); line-height: 1.7; }
.gloss { font-size: 24px; }
th, td { padding: 14px 18px; }

/* ---- 2. 卡片钩子与导航性正文（23px）---- */
.article-card .card-hook, .path-item, .flow-hint, .flow-state, .flow-down,
.seek-trait, .seek-hint, .seek-quote, .seek-notes p, .seek-pending, .seek-ask,
.variant, .path-intro, .path-foot, .position-note, .chapter-item,
.chapter-item .ch-name, .plan-item, .chapter-label, .plan-label,
.sutra-count, .source-link, .flow-node .top, .path-item .why,
.cue strong { font-size: var(--fs-card); }

/* ---- 3. 辅助说明（20px）---- */
.figure figcaption, .quote .source, .quote .note, .table-note, .crumb,
.article-head .chapter, .sutra-head .chapter, .head-sutra, .sutra-meta,
.article-card .card-meta, .card-meta, .tag-intro, .group-title span,
.sutra-facts span, .source-row span, .chapter-item .ch-note,
.concept-item .appear, .speak-lead > span, .cover-cta > span,
.search-box .hint, .seek-group-head span, .seek-from, .cue div > span,
.advanced-body h3, .source-note, .flow-node .bottom,
.seek-quote a { font-size: var(--fs-note); }
.scope-note { font-size: var(--fs-note) !important; }

/* ---- 4. 微标签与页脚（18px）---- */
.article-card .num, .card .num, .sutra-no, .path-item .step, .cue-n,
.seek-no, .seek-state, .seek-vehicle, .seek-field, .seek-trait > span,
.variants-title, .variant span, .position-group .g-label,
.flow-state .label, .flow-lane-label, .pager .p-label, .chapter-item .ch-n,
.concept-item .appear small, .tag small, .scope-badge, .kind-badge,
.site-foot, .home-hero .kicker, .cover-label, .path-item em,
.sutra-seeks span { font-size: var(--fs-label); }

/* ---- 5. 副标题 / 按钮 / 导航（22px）---- */
.article-head .subtitle, .home-hero p, .home-hero .hero-line,
.seek-hero .hero-line, .cover-line, .speak-btn, .cover-cta .btn,
.speak-lead .speak-btn, #dis, .search-box input, .tag, .seek-pills a,
.seek-tag, .seek-classic, .seek-start, .pager a, .advanced summary,
.site-nav, .brand-name { font-size: var(--fs-ui); }
.speak-btn, .cover-cta .btn, .speak-lead .speak-btn { padding: 12px 22px; }
#dis { padding: 12px 22px; }
.brand-mark { font-size: 20px; width: 38px; height: 38px; }

/* ---- 6. 标题（clamp 保底，小屏也不缩）---- */
.home-hero h1, .seek-hero h1 { font-size: clamp(36px, 9vw, 54px); }
.article-head h1, .sutra-head h1 { font-size: clamp(34px, 8vw, 48px); }
.cover-title { font-size: clamp(28px, 6.5vw, 38px); }
.path-block h2, section > h2 { font-size: clamp(28px, 6.5vw, 36px); }
.article-card h3, .card .title, .sutra-card h3,
.seek-group-head h3 { font-size: clamp(25px, 5.8vw, 31px); }
.concept-item h3, .group-title a { font-size: var(--fs-h3); }
.arrow, .advanced summary::after { font-size: 26px; }

/* ---- 7. 布局守住：字大后不横滑、不撑破、不被吸顶导航遮住 ---- */
.page { max-width: 900px; }
.path-item { flex-wrap: wrap; }                 /* 大字下允许折行，避免横向溢出 */
.chapter-group { grid-template-columns: 110px 1fr; }
.chapter-items { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.flow-node { flex: 1 1 160px; }
.seek-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); }
.article-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.sutra-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.cover-cues { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.seek-card-top { padding-right: 44px; }         /* 给放大后的小喇叭留位 */
/* 适老字号下吸顶导航换行后约 114px 高，留白抬到 130px，锚点标题不被压住 */
.seek-group, .seek-card, section[id], [id^="c-"] { scroll-margin-top: 130px; }
table { min-width: 560px; }                     /* 两列表横滑，不撑破 body */
.map-table { min-width: 940px; }                /* 四列地图表横滑，列不被挤成竖条 */

/* =====================================================================
   适老大字档 · 善导站独有组件补丁
   上面通用块覆盖了各站共用的类名；下列是当前站独有的首页课件卡、
   「几组对照」与讲座总览页，通用块未含其选择器（且 .sutra-feature-body
   等后代选择器特异性更高会挡住通用规则），在此同块一并放大，保持可整块回退。
   ===================================================================== */
/* 首页课件卡：标题 / 钩子 / 计数（后代选择器需单独覆盖） */
.sutra-feature-body h3 { font-size: clamp(25px, 5.8vw, 31px); }
.sutra-feature-body .sutra-q { font-size: var(--fs-card); line-height: 1.7; min-height: 0; }
.sutra-feature-body .sutra-count { font-size: var(--fs-note); margin-top: 12px; }
.sutra-feature-body { padding: 16px 18px 18px; padding-right: 58px; }  /* 给放大后的喇叭留位 */
.sutra-feature-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); }
/* 首页「全篇主线：几组对照」 */
.pair-no { font-size: var(--fs-label); }
.pair-terms span { font-size: var(--fs-h3); }
.pair-terms em { font-size: var(--fs-sub); }
.pair-card p { font-size: var(--fs-body); line-height: 1.75; padding-right: 0; }
.pair-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
@media (max-width: 560px) {
  .pair-terms span { font-size: 25px; }
  .pair-card p { font-size: var(--fs-body); }
  .sutra-feature-body .speak-mini { position: static; display: inline-flex; margin-top: 12px; }
  .sutra-feature-body { padding-right: 18px; }  /* 手机上喇叭转流式，不需右侧留位 */
}
/* 讲座总览页页头与 facts */
.lecture-head .kicker { font-size: var(--fs-label); }
.lecture-head h1 { font-size: clamp(34px, 8vw, 48px); }
.lecture-head .hero-line { font-size: var(--fs-sub); }
.sutra-facts span { font-size: var(--fs-note); }

/* ---- 卡片小喇叭：构建时拼入，唯一来源 assets/speak.css ---- */
/* 卡片右上角的小喇叭：点一下播放卡片文字，再点一下停止。
   这一份由 build.js 内联进每页 <head>（根 index.html 用 <link> 引它），
   故意不放进外链 style.css —— 只要 HTML 更新了就必定生效，
   不会出现「页面是新版、CSS 还是浏览器旧缓存」时 SVG 退回
   默认 300×150 黑色大块、掉进文档流的事故。
   颜色写字面值，不依赖 style.css 里的 :root 变量。 */
.card, .article-card, .sutra-card, .concept-item, .path-item { position: relative; }
.speak-mini {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  display: inline-flex; align-items: center; justify-content: center;
  box-sizing: border-box; width: 40px; height: 40px;
  border: 1px solid #ddcabd; border-radius: 50%;
  background: #ffffff; color: #8b3a2f;
  cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.speak-mini:hover { background: #f3e9e5; border-color: #8b3a2f; transform: scale(1.07); }
.speak-mini:focus-visible { outline: 2px solid #8b3a2f; outline-offset: 2px; }
.speak-mini svg { width: 23px; height: 23px; }
.speak-mini .ico-play path:first-child { fill: currentColor; stroke: none; }
.speak-mini .ico-stop { display: none; }
.speak-mini .ico-stop rect { fill: currentColor; stroke: none; }
.speak-mini.playing { background: #8b3a2f; color: #fff8f2; border-color: #8b3a2f; }
.speak-mini.playing:hover { background: #742f26; }
.speak-mini.playing .ico-play { display: none; }
.speak-mini.playing .ico-stop { display: block; }
/* 给右上角留位，避免压住标题 */
.card .title, .concept-item h3, .article-card .num,
.sutra-card h3, .sutra-card .sutra-no { padding-right: 50px; }
/* 阅读路径是一行 flex，喇叭作为末项靠右，不用绝对定位 */
.path-item .speak-mini {
  position: static; margin-left: auto; flex: 0 0 auto;
  width: 36px; height: 36px;
}
@media (max-width: 560px) {
  .speak-mini { width: 40px; height: 40px; top: 8px; right: 8px; }
  .path-item .speak-mini { width: 36px; height: 36px; }
}
