/* =========================================================
   四站共用的结构层：布局、组件与交互状态。
   配色、字体与装饰全部来自 themes/<slug>.css（同一组 CSS 变量，三种阅读主题各一套）。
   规则：不用竖条侧边装饰，强调靠字重、字号、底色与横向细线。
   ========================================================= */
:root {
  --bg: #ffffff; --bg2: #ffffff; --card: #f5f5f3; --card-hover: #efefec;
  --line: #e4e4e1; --line-strong: #c9c9c5; --rule: #111111;
  --text: #111111; --text-soft: #2e2e2c; --text-faint: #9b9b97; --muted: #6b6b67;
  --accent: #111111; --accent-hover: #333333; --on-accent: #ffffff; --brand: #b3261e; --on-brand: #ffffff;
  --zh-soft: rgba(0,0,0,.045); --bar-bg: #e6e6e3; --bar-buf: #d2d2ce;
  --bg-glass: rgba(255,255,255,.9); --bg-glass2: rgba(255,255,255,.96); --trans-bg: rgba(0,0,0,.028);
  --thumb-bg: #ededea; --mark-bg: rgba(255,214,10,.42);
  --shadow: 0 14px 40px rgba(0,0,0,.12), 0 2px 6px rgba(0,0,0,.05); --focus: #111111;
  --f-bg: #111111; --f-text: #f2f2ef; --f-soft: #b9b9b4; --f-faint: #7a7a76; --f-line: rgba(255,255,255,.14);
  --radius-card: 0px; --radius-img: 0px;
  --read-size: 18px; --read-lh: 2; --measure: 680px; --toc-w: 232px;
}
:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", sans-serif;
  --font-serif: "Noto Serif SC", "Songti SC", "STSong", "Source Han Serif SC", "Noto Serif CJK SC", serif;
  --font-display: var(--font-serif);
  --font-label: var(--font-sans);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { color-scheme: light; -webkit-text-size-adjust: 100%; }
html[data-theme='dark'] { color-scheme: dark; }
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after { transition: background-color .3s ease, border-color .3s ease, color .3s ease !important; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-autospace: ideograph-alpha ideograph-numeric; /* 中西文之间自动留出细空隙（支持的浏览器） */
}
a { color: inherit; }
button { font: inherit; color: inherit; }
svg { display: block; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
::selection { background: var(--mark-bg); }

/* 小号栏目标签：字距拉开，像杂志的栏目名 */
.ep-kicker, .hero-kicker, .card-kicker, .mast-date, .pop-k, .toc-h, .pn-k, .ap-label {
  font-family: var(--font-label); font-size: 11.5px; letter-spacing: .16em; color: var(--muted); font-weight: 500;
}

.skip-link { position: absolute; left: 12px; top: -52px; z-index: 200; background: var(--bg); color: var(--text); border: 1px solid var(--rule); padding: 8px 14px; text-decoration: none; font-size: 13px; transition: top .15s ease; }
.skip-link:focus { top: 12px; }

/* ---------- 首页报头（结构；视觉见主题） ---------- */
.masthead { position: relative; }
.mast-top { display: flex; justify-content: space-between; align-items: center; min-height: 44px; }
.mast-actions { display: flex; align-items: center; gap: 16px; }
.mast-link { font-size: 12.5px; color: var(--muted); text-decoration: none; letter-spacing: .04em; }
.mast-link:hover { color: var(--text); }
.mast-brand { padding: 40px 0 26px; }
.mast-kicker { font-family: var(--font-label); font-size: 12px; letter-spacing: .2em; color: var(--brand); }
.mast-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(40px, 7vw, 96px); line-height: 1; margin-top: 14px; letter-spacing: -.02em; }
.mast-title a { text-decoration: none; }
.mast-tagline { margin-top: 18px; font-size: 18px; color: var(--text-soft); max-width: 36em; }
.mast-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mast-facts div { padding: 16px 0; display: flex; flex-direction: column; gap: 4px; }
.mast-facts b { font-family: var(--font-display); font-size: 30px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums lining-nums; }
.mast-facts span { font-size: 12px; color: var(--muted); letter-spacing: .08em; }
.mast-intro { padding: 18px 0 28px; color: var(--muted); font-size: 14px; line-height: 1.85; max-width: 52em; }
.mast-hosts { display: block; margin-top: 6px; color: var(--text-soft); }

/* ---------- 内页报头 ---------- */
.site-header.slim { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header.slim .header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; height: 60px; }
.hdr-back { color: var(--muted); font-size: 13px; text-decoration: none; justify-self: start; letter-spacing: .04em; }
.hdr-back:hover { color: var(--text); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 19px; text-decoration: none; white-space: nowrap; }
.wordmark .wm-cn { font-family: var(--font-label); font-weight: 500; font-size: 11.5px; color: var(--muted); letter-spacing: .14em; }
.mark { display: inline-flex; width: 28px; height: 28px; flex-shrink: 0; }
.mark img { width: 100%; height: 100%; display: block; border-radius: var(--radius-img); }
.header-actions { display: flex; align-items: center; gap: 4px; justify-self: end; }
.hdr-icon { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; color: var(--text-soft); border-radius: 50%; }
.hdr-icon:hover { color: var(--text); background: var(--card); }
.hdr-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

/* 主题切换：SVG 日 / 月 */
.theme-toggle {
  position: relative; width: 34px; height: 34px; flex-shrink: 0; cursor: pointer;
  background: transparent; border: 0; border-radius: 50%; color: var(--text-soft);
  display: inline-flex; align-items: center; justify-content: center; transition: background-color .15s ease, color .15s ease;
}
.theme-toggle:hover { background: var(--card); color: var(--text); }
.theme-toggle svg {
  position: absolute; width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .35s cubic-bezier(.4,.2,.2,1), opacity .25s ease;
}
.theme-toggle .i-moon { fill: currentColor; stroke: none; }
/* 浅色 / 护眼时显示月亮（点击进入深色）；深色时显示太阳 */
.theme-toggle .i-sun { opacity: 0; transform: rotate(70deg) scale(.6); }
[data-theme='dark'] .theme-toggle .i-sun { opacity: 1; transform: none; }
[data-theme='dark'] .theme-toggle .i-moon { opacity: 0; transform: rotate(-70deg) scale(.6); }

/* ---------- 工具条（吸顶） ---------- */
.toolbar { position: sticky; top: 0; z-index: 40; background: var(--bg-glass); -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); }
.toolbar-inner { display: flex; align-items: center; gap: 24px; padding-top: 8px; padding-bottom: 8px; }
.search-box { position: relative; flex: 1; min-width: 220px; }
.search-box .i-search { position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; pointer-events: none; }
#search { width: 100%; background: transparent; color: var(--text); border: 0; border-radius: 0; padding: 10px 64px 10px 28px; font-size: 15px; outline: none; font-family: var(--font-sans); }
#search::placeholder { color: var(--text-faint); }
#search::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.search-box:focus-within .i-search { stroke: var(--text); }
.search-kbd { position: absolute; right: 0; top: 50%; transform: translateY(-50%); font: 500 11px/1 var(--font-sans); color: var(--text-faint); border: 1px solid var(--line); border-radius: 4px; padding: 3px 6px; pointer-events: none; }
.search-clear { position: absolute; right: 0; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 12.5px; padding: 5px 6px; }
.search-clear:hover { color: var(--text); }
.search-box.has-q .search-kbd { display: none; }
.search-box:not(.has-q) .search-clear { display: none; }
.filters { display: flex; gap: 22px; }
.filters button { background: none; border: 0; color: var(--muted); padding: 10px 0 8px; font-size: 13.5px; cursor: pointer; white-space: nowrap; border-bottom: 2px solid transparent; }
.filters button:hover { color: var(--text); }
.filters button.on { color: var(--text); font-weight: 600; border-bottom-color: var(--rule); }
.filters button[hidden] { display: none; }
.filters .n { color: var(--text-faint); font-weight: 400; margin-left: 5px; font-variant-numeric: tabular-nums; }
.sort-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--muted); padding: 8px 0; font-size: 13.5px; cursor: pointer; white-space: nowrap; }
.sort-btn:hover { color: var(--text); }
.sort-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.sort-btn[data-dir='asc'] svg { transform: scaleY(-1); }

/* ---------- 头条 ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 52px; align-items: center; padding: 44px 0 50px; border-bottom: 1px solid var(--line); }
.hero[hidden] { display: none; }
.hero-media { display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--thumb-bg); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .5s ease; }
.hero-text { text-align: center; }
.hero-kicker { color: var(--brand); margin-bottom: 18px; }
.hero-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3.1vw, 40px); line-height: 1.32; letter-spacing: .01em; word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; }
.hero-title a { text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 94%; transition: background-size .4s ease; }
.hero-title a:hover { background-size: 100% 1px; }
.hero-en { color: var(--muted); font-family: var(--font-display); font-style: italic; font-size: 15px; line-height: 1.5; margin-top: 14px; }
.hero-desc { color: var(--text-soft); font-family: var(--font-display); font-size: 17px; line-height: 1.85; margin: 18px auto 0; max-width: 28em; text-wrap: pretty; }
.hero-by { margin-top: 18px; color: var(--muted); font-size: 12.5px; letter-spacing: .08em; }
.hero-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; font-size: 13.5px; font-weight: 600; letter-spacing: .1em; text-decoration: none; border-bottom: 1px solid var(--rule); padding-bottom: 4px; }
.hero-cta svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.hero-cta:hover svg { transform: translateX(4px); }

/* ---------- 栏目标题 ---------- */
.result-line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 44px 0 12px; border-bottom: 1px solid var(--rule); }
.result-line h2 { font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: .02em; }
.result-line h2 small { font-family: var(--font-sans); font-size: 12.5px; color: var(--muted); font-weight: 400; margin-left: 12px; letter-spacing: .06em; }

/* ---------- 继续 ---------- */
.continue { padding-top: 36px; }
.continue[hidden] { display: none; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--rule); margin-bottom: 18px; }
.sec-h h2 { font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: .02em; }
.sec-h button { background: none; border: 0; color: var(--muted); font-size: 12.5px; cursor: pointer; }
.sec-h button:hover { color: var(--text); }
.continue-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 24px; }
.cont-item { display: flex; gap: 14px; align-items: center; text-decoration: none; }
.cont-thumb { position: relative; width: 112px; flex-shrink: 0; aspect-ratio: 16/9; overflow: hidden; background: var(--thumb-bg); }
.cont-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter .4s ease; }
.cont-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cont-title { font-family: var(--font-display); font-size: 14.5px; font-weight: 700; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cont-item:hover .cont-title { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.cont-meta { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.prog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(0,0,0,.35); }
.prog i { display: block; height: 100%; background: #fff; }

/* ---------- 列表 ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 44px 32px; padding: 28px 0 30px; }
.card { display: flex; flex-direction: column; text-decoration: none; }
.thumb { position: relative; aspect-ratio: 16/9; background: var(--thumb-bg); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .45s ease; }
@media (hover: hover) {
  .card:hover .thumb img, .hero:hover .hero-media img { transform: scale(1.025); }
}
.thumb .no-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--text-faint); font: 700 28px/1 var(--font-display); letter-spacing: .2em; }
.card-body { padding-top: 14px; display: flex; flex-direction: column; gap: 7px; }
.card-kicker { display: flex; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; }
.card-kicker .ep-n { color: var(--text); font-weight: 600; }
.card-kicker .zh-tag { color: var(--brand); }
.card-title { font-family: var(--font-display); font-size: 18.5px; font-weight: 700; line-height: 1.45; letter-spacing: .01em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card:hover .card-title { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.card-title-en { color: var(--muted); font-family: var(--font-display); font-style: italic; font-size: 13.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.card-desc { color: var(--text-soft); font-size: 13.5px; line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
mark { background: var(--mark-bg); color: inherit; padding: 0 1px; }
.sentinel { display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--text-faint); padding: 28px 0 40px; font-size: 12.5px; }
.sentinel .end { letter-spacing: .24em; font-size: 12px; }
.more-btn { background: none; border: 1px solid var(--rule); color: var(--text); border-radius: 999px; padding: 10px 30px; font-size: 13.5px; font-weight: 600; letter-spacing: .1em; cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.more-btn:hover { background: var(--accent); color: var(--on-accent); }
.more-sub { color: var(--muted); }
.more-sub a { color: var(--text-soft); text-underline-offset: 3px; }
.empty { grid-column: 1 / -1; text-align: center; padding: 80px 20px; color: var(--muted); }
.empty h3 { color: var(--text); font-family: var(--font-display); font-size: 24px; font-weight: 700; margin-bottom: 10px; }
.empty p { font-size: 14px; }
.empty .chips { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.chip { background: none; border: 1px solid var(--line-strong); color: var(--text-soft); border-radius: 999px; padding: 5px 14px; font-size: 13px; cursor: pointer; white-space: nowrap; }
.chip:hover { border-color: var(--rule); color: var(--text); }

/* =========================================================
   单集页
   ========================================================= */
.ep-main { max-width: calc(var(--measure) + 48px); }
/* 有目录时：正文 + 目录作为一个整体居中，左右不失衡 */
@media (min-width: 1180px) {
  .ep-main.has-toc {
    max-width: calc(var(--measure) + var(--toc-w) + 72px + 48px);
    display: grid; grid-template-columns: minmax(0, var(--measure)) var(--toc-w); column-gap: 72px; align-items: start;
  }
  .ep-main.has-toc .ep-toc { display: block; }
  .ep-main.has-toc .tool-btn[data-tool='toc'] { display: none; }
}
.ep-head { text-align: center; padding: 56px 0 36px; }
.ep-kicker { display: flex; justify-content: center; align-items: center; gap: 10px; }
.ep-kicker .k-zh { color: var(--brand); }
.k-sep { color: var(--line-strong); }
.ep-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 4vw, 42px); line-height: 1.3; letter-spacing: .01em; margin: 18px auto 0; max-width: 17em; word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; }
.ep-title-en { color: var(--muted); font-family: var(--font-display); font-style: italic; font-size: 16px; line-height: 1.5; margin-top: 14px; }
.ep-dek { font-family: var(--font-display); font-size: 18.5px; line-height: 1.8; color: var(--text-soft); max-width: 28em; margin: 22px auto 0; text-wrap: pretty; }
.ep-byline { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 22px; font-size: 12.5px; color: var(--muted); letter-spacing: .06em; }

/* 媒体区：视频缩略图（点击展开）+ 音频播放器，上粗下细两条线收边 */
.media { display: flex; align-items: stretch; margin-bottom: 34px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--line); }
.media:not(.has-audio) { border: 0; }
.media:not(.has-audio) .video-facade { width: 100%; aspect-ratio: 16/9; margin: 0; }
.media.video-open { flex-direction: column; }
.media iframe { width: 100%; aspect-ratio: 16/9; border: 0; display: block; margin-top: 16px; }
.video-facade { position: relative; width: 196px; flex-shrink: 0; align-self: center; aspect-ratio: 16/9; background: #000; border: 0; padding: 0; cursor: pointer; overflow: hidden; color: #fff; margin: 16px 0; }
.video-facade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: filter .3s ease, opacity .3s ease; }
.video-facade:hover img { filter: none; opacity: 1; }
.vf-play { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 5px; background: rgba(0,0,0,.78); color: #fff; padding: 4px 10px 4px 7px; font-size: 12px; font-weight: 600; letter-spacing: .06em; }
.vf-play svg { width: 13px; height: 13px; fill: currentColor; }
.media:not(.has-audio) .vf-play { left: 50%; top: 50%; bottom: auto; transform: translate(-50%, -50%); padding: 12px 22px 12px 18px; font-size: 15px; }
.audio-player { flex: 1; min-width: 0; display: flex; gap: 16px; align-items: center; padding: 16px 0 16px 22px; }
.media > .audio-player:first-child { padding-left: 0; }
.ap-play { width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; background: var(--accent); color: var(--on-accent); border: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform .12s ease, background-color .15s ease; }
.ap-play:hover { background: var(--accent-hover); }
.ap-play:active { transform: scale(.94); }
.ap-play svg, .mp-play svg { width: 20px; height: 20px; fill: currentColor; }
.ap-play .i-play, .mp-play .i-play { margin-left: 2px; }
.ap-play .i-pause, .mp-play .i-pause { display: none; }
.is-playing .ap-play .i-play, .is-playing .mp-play .i-play { display: none; }
.is-playing .ap-play .i-pause, .is-playing .mp-play .i-pause { display: block; }
.ap-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ap-line1 { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; }
.ap-time { color: var(--muted); font-variant-numeric: tabular-nums; }
.ap-bar { position: relative; height: 16px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.ap-bar::before { content: ''; position: absolute; left: 0; right: 0; height: 3px; background: var(--bar-bg); }
.ap-buf { position: absolute; left: 0; height: 3px; background: var(--bar-buf); width: 0; }
.ap-fill { position: absolute; left: 0; height: 3px; background: var(--accent); width: 0; }
.ap-fill::after { content: ''; position: absolute; right: -6px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform .15s ease; }
.ap-bar:hover .ap-fill::after, .ap-bar:focus-visible .ap-fill::after { transform: scale(1); }
.ap-line2 { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: 12.5px; }
.ap-line2 button { background: none; color: var(--muted); border: 0; padding: 2px 0; font-size: 12.5px; cursor: pointer; font-variant-numeric: tabular-nums; }
.ap-line2 button:hover { color: var(--text); }
.ap-line2 .ap-video { display: none; align-items: center; gap: 4px; }
.ap-video svg { width: 11px; height: 11px; fill: currentColor; }
.ap-resume { color: var(--text-soft); }
.ap-resume[hidden] { display: none; }
.ap-resume button { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* 内容 tabs（吸顶）：左 tab，右阅读工具；与正文同宽 */
.content-tabs { margin-top: 4px; }
.tabs { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px; background: var(--bg-glass); -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); margin: 0 0 28px; }
.tab-btn { display: none; }
body.epjs .tab-btn { display: block; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 14px; letter-spacing: .1em; font-weight: 600; padding: 14px 0 12px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
body.epjs .tab-btn:hover { color: var(--text); }
body.epjs .tab-btn.on { color: var(--text); border-bottom-color: var(--rule); }
.tab-tools { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.tool-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px; border-radius: 999px; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 13px; white-space: nowrap; }
.tool-btn:hover, .tool-btn[aria-expanded='true'] { color: var(--text); background: var(--card); }
.tool-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tool-btn .aa { font: 700 15px/1 var(--font-display); letter-spacing: -.02em; }
.tool-btn .aa small { font-size: 11.5px; }
.read-progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }

/* 弹出层：阅读设置 / 目录 */
.pop { position: absolute; right: 0; top: calc(100% + 10px); z-index: 30; width: 340px; max-height: calc(100vh - 110px); overflow-y: auto; overscroll-behavior: contain; background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 18px; font-size: 13px; animation: pop-in .16s ease-out; }
.pop[hidden] { display: none; }
@keyframes pop-in { from { opacity: 0; transform: translateY(-4px); } }
.pop-row + .pop-row { margin-top: 18px; }
.pop-k { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 9px; }
.pop-k b { color: var(--text); font-weight: 600; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.seg { display: flex; padding: 3px; gap: 2px; background: var(--card); border-radius: 10px; }
.seg button { flex: 1; background: none; border: 0; color: var(--muted); border-radius: 7px; padding: 7px 0; cursor: pointer; font-size: 13px; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed='true'] { background: var(--bg2); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); font-weight: 600; }
.seg button:disabled { opacity: .35; cursor: default; }
.seg .sz { display: flex; align-items: center; justify-content: center; flex: 1.2; color: var(--text); font-variant-numeric: tabular-nums; font-size: 13px; }
.seg .lh-ico { display: inline-block; width: 16px; vertical-align: -3px; }
.swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.swatches button { display: flex; flex-direction: column; align-items: center; gap: 7px; background: none; border: 0; cursor: pointer; color: var(--muted); font-size: 12px; padding: 0; }
.swatches i { display: block; width: 100%; height: 42px; border-radius: 9px; border: 1px solid rgba(0,0,0,.12); font: 700 16px/40px var(--font-display); font-style: normal; text-align: center; }
.swatches button[aria-pressed='true'] { color: var(--text); font-weight: 600; }
.swatches button[aria-pressed='true'] i { box-shadow: 0 0 0 2px var(--bg2), 0 0 0 3.5px var(--accent); }
.font-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.font-list button { text-align: left; background: var(--card); border: 1px solid transparent; border-radius: 9px; padding: 9px 12px; cursor: pointer; color: var(--text); line-height: 1.35; }
.font-list button span { display: block; font-size: 16px; }
.font-list button small { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; font-family: var(--font-sans); }
.font-list button:hover { border-color: var(--line-strong); }
.font-list button[aria-pressed='true'] { border-color: var(--accent); background: var(--bg2); }
.pop-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--text-faint); font-size: 12px; }
.pop-foot button { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 12.5px; text-decoration: underline; text-underline-offset: 3px; }
.pop-foot button:hover { color: var(--text); }
.pop-toc { width: min(340px, calc(100vw - 32px)); max-height: 60vh; padding: 8px; }

/* 目录（侧栏与弹层共用）：当前节用字重 + 浅底色标记，不用竖线 */
.toc-list { list-style: none; counter-reset: toc; }
.toc-list a { display: flex; gap: 10px; text-decoration: none; color: var(--muted); font-size: 13px; line-height: 1.55; padding: 6px 10px; border-radius: 6px; transition: color .15s ease, background-color .15s ease; }
.toc-list a::before { counter-increment: toc; content: counter(toc, decimal-leading-zero); flex-shrink: 0; font: 400 11px/1.55 var(--font-display); color: var(--text-faint); padding-top: 1px; font-variant-numeric: tabular-nums lining-nums; }
.toc-list a:hover { color: var(--text); }
.toc-list a.on { color: var(--text); background: var(--zh-soft); font-weight: 600; }
.toc-list a.on::before { color: var(--text); }
.ep-toc { display: none; position: sticky; top: 76px; max-height: calc(100vh - 100px); overflow-y: auto; padding-top: 56px; scrollbar-width: thin; }
.ep-toc.is-off { visibility: hidden; }
.ep-toc .toc-h { margin: 0 0 12px 10px; }

.tab-panel { margin-bottom: 10px; }
body.epjs .tab-panel { display: none; }
body.epjs .tab-panel.active { display: block; }
.zh-note, .tr-note { color: var(--text-faint); font-size: 12.5px; line-height: 1.7; margin-bottom: 30px; }
.zh-note a { color: var(--muted); }

/* =========================================================
   中文正文排版（Markdown 渲染结果）
   版心约 36–38 字一行；两端对齐 + 标点挤压；段间留白而非首行缩进（可在设置中切换）。
   ========================================================= */
.zh-article {
  font-size: var(--read-size); line-height: var(--read-lh); letter-spacing: .02em; color: var(--text-soft);
  text-align: justify; text-justify: inter-ideograph; hanging-punctuation: allow-end; overflow-wrap: break-word;
  font-kerning: normal; counter-reset: sec;
}
[data-font='sans'] .zh-article { font-family: "Noto Sans SC", var(--font-sans); }
[data-font='serif'] .zh-article { font-family: "Noto Serif SC", var(--font-serif); letter-spacing: .03em; }
[data-font='kai'] .zh-article { font-family: "LXGW WenKai Screen", "Kaiti SC", "STKaiti", var(--font-serif); letter-spacing: .03em; }
[data-font='wei'] .zh-article { font-family: "ZCOOL XiaoWei", var(--font-serif); letter-spacing: .04em; }

.zh-article p { margin: 0 0 1.1em; }
/* 小节标题：上方一行小号序号，标题用衬线，留足呼吸 */
.zh-article h2 {
  counter-increment: sec; font-family: var(--font-display); font-weight: 700; color: var(--text);
  font-size: 1.32em; line-height: 1.5; letter-spacing: .02em; margin: 2.6em 0 1em; text-align: left;
  text-wrap: balance; scroll-margin-top: 76px; word-break: keep-all; overflow-wrap: anywhere;
}
.zh-article h2::before {
  content: counter(sec, decimal-leading-zero); display: block; margin-bottom: .55em;
  font: 400 .62em/1 var(--font-display); letter-spacing: .2em; color: var(--muted); font-variant-numeric: lining-nums;
}
.zh-article h3 { font-family: var(--font-display); font-weight: 700; color: var(--text); font-size: 1.08em; line-height: 1.6; margin: 1.9em 0 .7em; scroll-margin-top: 76px; text-align: left; }
.zh-article strong { color: var(--text); font-weight: 650; }
.zh-article a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: .25em; text-decoration-thickness: 1px; }
.zh-article a:hover { text-decoration-color: currentColor; }
/* em：中文用着重号，西文保留斜体 */
.zh-article em { font-style: normal; text-emphasis: filled dot; -webkit-text-emphasis: filled dot; text-emphasis-position: under right; -webkit-text-emphasis-position: under; text-emphasis-color: var(--muted); -webkit-text-emphasis-color: var(--muted); }
.zh-article em.latin { font-style: italic; text-emphasis: none; -webkit-text-emphasis: none; }

/* 引语 → 杂志摘句：上下细线收束，衬线放大，开引号悬挂在行外，说话人另起一行 */
.zh-article blockquote {
  margin: 2em 0; padding: 1.15em 0 1.2em; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-size: 1.1em; line-height: 1.85; color: var(--text); text-align: left;
}
.zh-article blockquote.hang { text-indent: -.5em; }
.zh-article blockquote p { margin: 0; }
.zh-article blockquote cite { display: block; margin-top: .7em; text-indent: 0; font: normal 500 12px/1.4 var(--font-sans); letter-spacing: .16em; color: var(--muted); }
.zh-article blockquote cite::before { content: '—— '; letter-spacing: 0; }

/* 列表：方块项目符号（与文末终止符同一语汇）+ 细线分隔，像杂志的「要点」栏 */
.zh-article ul, .zh-article ol { list-style: none; margin: 1.4em 0 1.6em; padding: 0; border-top: 1px solid var(--rule); }
.zh-article li { position: relative; padding: .75em 0 .75em 1.6em; border-bottom: 1px solid var(--line); margin: 0; }
.zh-article ul > li::before { content: ''; position: absolute; left: .2em; top: calc(.75em + (var(--read-lh) * 1em - .4em) / 2); width: .4em; height: .4em; background: var(--text); }
.zh-article ol { counter-reset: li; }
.zh-article ol > li { counter-increment: li; padding-left: 2.2em; }
.zh-article ol > li::before { content: counter(li, decimal-leading-zero); position: absolute; left: 0; top: .75em; font: 400 .82em/calc(var(--read-lh) * 1.22em) var(--font-display); color: var(--muted); font-variant-numeric: tabular-nums lining-nums; }
.zh-article li > p { margin: 0; }
.zh-article hr { border: 0; text-align: center; margin: 2.4em 0; height: 1em; }
.zh-article hr::before { content: '◆ ◆ ◆'; font-size: .5em; letter-spacing: 1.2em; color: var(--text-faint); }
.zh-article img { max-width: 100%; }

/* 首字下沉（只在首字是汉字时由脚本加 .dropcap） */
html:not(.indent) .zh-article p.dropcap::first-letter {
  float: left; font-family: var(--font-display); font-weight: 700; color: var(--text);
  font-size: calc(var(--read-lh) * 2em - .3em); line-height: 1; margin: .12em .16em 0 0;
}
/* 文末终止符（形状由主题决定） */
.zh-article .end-mark::after { content: ''; display: inline-block; width: .55em; height: .55em; margin-left: .45em; background: var(--text); vertical-align: 0; }
/* 段首缩进模式（传统书刊排法） */
html.indent .zh-article p { text-indent: 2em; margin-bottom: .5em; }
html.indent .zh-article blockquote p, html.indent .zh-article li p { text-indent: 0; }

.ts-link, .tr-count { font-variant-numeric: tabular-nums; }
.tr-tools { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.tr-search { flex: 1; max-width: 320px; background: transparent; color: var(--text); border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; padding: 7px 2px; font-size: 13.5px; outline: none; }
.tr-search:focus { border-bottom-color: var(--rule); }
.tr-count { color: var(--muted); font-size: 12.5px; display: inline-flex; align-items: center; gap: 4px; }
.tr-count button { background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 6px; width: 24px; height: 24px; cursor: pointer; font-size: 12px; line-height: 1; }
.tr-count button:hover { color: var(--text); border-color: var(--line-strong); }
.tr-hint { color: var(--text-faint); font-size: 12.5px; }
.transcript-text { white-space: pre-wrap; font-family: var(--font-display); font-size: 15.5px; line-height: 1.85; color: var(--text-soft); max-height: 72vh; overflow-y: auto; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--line); padding: 20px 4px; }
.transcript-text mark.cur { outline: 2px solid var(--accent); }
.ts-link { color: var(--text); font-family: var(--font-sans); font-size: .82em; font-weight: 600; cursor: pointer; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.ts-link:hover { text-decoration-color: currentColor; }
.ep-notice { color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; margin-bottom: 28px; text-align: center; }
.ep-notice a { color: var(--text); }

/* 资源与出处 */
.ep-resources { border-top: 1px solid var(--rule); margin-top: 52px; padding-top: 18px; }
.ep-resources h2 { font-family: var(--font-sans); font-size: 11.5px; color: var(--muted); font-weight: 500; letter-spacing: .16em; margin-bottom: 14px; }
.ep-resources ul { list-style: none; display: flex; flex-direction: column; gap: 9px; font-size: 13.5px; }
.ep-resources li { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.res-k { color: var(--muted); flex-shrink: 0; width: 34px; }
.ep-resources a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.ep-resources a:hover { text-decoration-color: currentColor; }
.res-sub { color: var(--text-faint); font-size: 12px; }

/* 上一期 / 下一期 */
.ep-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin: 44px 0 64px; border-top: 1px solid var(--line); padding-top: 22px; }
.ep-prevnext a { min-width: 0; color: var(--text); text-decoration: none; display: flex; flex-direction: column; gap: 7px; }
.ep-prevnext a[rel='next'] { text-align: right; grid-column: 2; }
.pn-t { font-family: var(--font-display); font-size: 17px; font-weight: 700; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ep-prevnext a:hover .pn-t { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

/* 悬浮迷你播放条 / 提示条 */
.mini-player {
  position: fixed; left: 50%; bottom: 16px; z-index: 90; width: min(560px, calc(100vw - 24px));
  background: var(--bg-glass2); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 8px;
  transform: translate(-50%, 140%); opacity: 0; visibility: hidden;
  transition: transform .28s cubic-bezier(.3,.7,.2,1), opacity .2s ease, visibility .28s;
}
.mini-player.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.resume-toast { padding-left: 22px; }
.mp-play { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; border: 0; cursor: pointer; background: var(--accent); color: var(--on-accent); display: flex; align-items: center; justify-content: center; }
.mp-play svg { width: 16px; height: 16px; }
.mp-body { flex: 1; min-width: 0; }
.mp-title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-row { display: flex; align-items: center; gap: 8px; margin-top: 5px; }
.mp-bar { flex: 1; height: 2px; background: var(--bar-bg); overflow: hidden; }
.mp-fill { height: 100%; width: 0; background: var(--accent); }
.mp-time { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mp-close { background: none; border: 0; color: var(--muted); width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 18px; line-height: 1; }
.mp-close:hover { color: var(--text); background: var(--card); }

#toTop { position: fixed; right: 20px; bottom: 20px; z-index: 80; width: 40px; height: 40px; border-radius: 50%; background: var(--bg2); color: var(--text); border: 1px solid var(--line); cursor: pointer; opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease; transform: translateY(6px); display: flex; align-items: center; justify-content: center; }
#toTop svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#toTop.show { opacity: 1; visibility: visible; transform: none; }
body.mini-on #toTop { bottom: 88px; }
#toTop:hover { border-color: var(--line-strong); }

/* ---------- 页脚：墨色通栏 ---------- */
.site-footer { background: var(--f-bg); color: var(--f-text); margin-top: 72px; }
.ft-top { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 56px 0 36px; border-bottom: 1px solid var(--f-line); }
.ft-mark { display: inline-flex; align-items: center; gap: 14px; font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 4vw, 44px); line-height: 1.1; text-decoration: none; }
.ft-mark .mark { width: 44px; height: 44px; }
.ft-mark small { font-family: var(--font-label); font-size: 12px; font-weight: 500; letter-spacing: .16em; color: var(--f-faint); align-self: flex-end; padding-bottom: 6px; }
.ft-social { display: flex; gap: 16px; margin-top: 14px; font-size: 13px; }
.ft-social a { color: var(--f-faint); }
.desc-body { font-size: 16px; line-height: 1.85; color: var(--text-soft); }
.desc-body p { margin: 0 0 1em; }
.ft-tag { font-family: var(--font-display); font-size: 17px; color: var(--f-soft); }
.ft-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.6fr); gap: 36px; padding: 36px 0 44px; }
.ft-col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; font-size: 14px; }
.ft-col h2 { font-family: var(--font-sans); font-size: 11.5px; font-weight: 500; letter-spacing: .16em; color: var(--f-faint); margin-bottom: 6px; }
.ft-col a, .ft-col > button { color: var(--f-soft); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; font-size: 14px; text-align: left; }
.ft-col a:hover, .ft-col > button:hover { color: var(--f-text); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.ft-support p { font-family: var(--font-display); font-size: 15.5px; line-height: 1.85; color: var(--f-soft); max-width: 26em; }
.ft-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.ft-btn { background: var(--f-text); color: var(--f-bg); border: 1px solid var(--f-text); border-radius: 999px; padding: 9px 20px; font-size: 13.5px; font-weight: 600; letter-spacing: .06em; cursor: pointer; transition: opacity .15s ease, transform .15s ease; }
.ft-btn:hover { opacity: .88; }
.ft-btn:active { transform: scale(.97); }
.ft-btn.ghost { background: none; color: var(--f-text); border-color: var(--f-line); }
.ft-btn.ghost:hover { border-color: var(--f-text); opacity: 1; }
.ft-bottom { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; padding: 18px 0 40px; border-top: 1px solid var(--f-line); color: var(--f-faint); font-size: 12px; line-height: 1.8; }

/* ---------- 文末「致读者」 ---------- */
.colophon { margin: 56px 0 8px; padding: 26px 0 28px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--line); text-align: center; }
.colo-k { font-size: 11.5px; letter-spacing: .2em; color: var(--muted); }
.colophon p { font-family: var(--font-display); font-size: 16px; line-height: 1.95; color: var(--text-soft); max-width: 32em; margin: 14px auto 0; text-wrap: pretty; }
.colo-actions { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.colophon .ft-btn { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.colophon .ft-btn.ghost { background: none; color: var(--text); border-color: var(--line-strong); }
.colophon .ft-btn.ghost:hover { border-color: var(--rule); }
.colo-link { font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.colo-link:hover { color: var(--text); }

/* ---------- 单集目录 ---------- */
.ar-main { max-width: 900px; }
.ar-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; padding: 14px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; background: var(--bg-glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.ar-nav a { font-family: var(--font-display); font-size: 15px; color: var(--muted); text-decoration: none; font-variant-numeric: lining-nums; }
.ar-nav a:hover { color: var(--text); }
.ar-year { padding-top: 44px; scroll-margin-top: 50px; }
.ar-year h2 { font-family: var(--font-display); font-size: 34px; font-weight: 700; border-bottom: 1px solid var(--rule); padding-bottom: 10px; font-variant-numeric: lining-nums; }
.ar-year h2 small { font-family: var(--font-sans); font-size: 12.5px; font-weight: 400; color: var(--muted); margin-left: 12px; letter-spacing: .08em; }
.ar-year ol { list-style: none; }
.ar-year li a { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 16px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.ar-n { font-family: var(--font-display); font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums lining-nums; }
.ar-t { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ar-t b { font-family: var(--font-display); font-weight: 700; font-size: 16.5px; line-height: 1.5; }
.ar-t i { font-family: var(--font-display); font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-year li a:hover b { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.ar-d { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; display: flex; gap: 10px; white-space: nowrap; }
.ar-zh { color: var(--brand); letter-spacing: .1em; }

.modal { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-card { background: var(--bg2); color: var(--text); border-radius: 16px; padding: 28px 24px 22px; box-shadow: var(--shadow); max-width: 320px; width: 100%; text-align: center; position: relative; }
.modal-card h3 { font-family: var(--font-display); font-size: 19px; }
.modal-card img { width: 220px; height: 220px; object-fit: contain; margin: 14px auto; display: block; background: #fff; padding: 6px; }
.modal-close { position: absolute; top: 10px; right: 14px; background: none; border: 0; color: var(--muted); font-size: 24px; cursor: pointer; }
.modal-sub { color: var(--muted); font-size: 13px; }
.modal-links { margin-top: 8px; font-size: 13px; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 26px; padding-top: 30px; }
  .search-kbd { display: none; }
}
@media (max-width: 760px) {
  .toolbar-inner { flex-wrap: wrap; gap: 0 20px; }
  .search-box { flex-basis: 100%; border-bottom: 1px solid var(--line); }
  .filters { flex: 1; gap: 20px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
    .mast-brand { padding: 26px 0 18px; }
  .mast-tagline { font-size: 15.5px; margin-top: 12px; }
  .mast-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mast-facts b { font-size: 24px; }
  .mast-intro { font-size: 13.5px; }
  .mast-link { display: none; }
  .wordmark .wm-cn { display: none; }
  #search { font-size: 16px; } /* 16px 防 iOS 聚焦缩放 */
  .sort-btn span { display: none; }
  .hero { padding: 22px 0 30px; gap: 20px; }
  .hero-title { font-size: 25px; }
  .hero-desc { font-size: 15.5px; }
  .result-line { padding-top: 32px; }
  .result-line h2 { font-size: 20px; }
  /* 手机端：图右文左的紧凑列表 */
  .grid { grid-template-columns: 1fr; gap: 0; padding-top: 2px; }
  .card { flex-direction: row-reverse; gap: 14px; border-bottom: 1px solid var(--line); padding: 16px 0; }
  .card .thumb { width: 104px; flex-shrink: 0; align-self: flex-start; margin-top: 3px; }
  .card-body { padding: 0; flex: 1; min-width: 0; gap: 5px; }
  .card-title { font-size: 16px; }
  .card-title-en, .card-desc { display: none; }
  .continue-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
  .cont-item { scroll-snap-align: start; }

  .site-header.slim .header-inner { height: 54px; }
  .hdr-back { font-size: 0; }
  .hdr-back::before { content: '←'; font-size: 18px; }
  .wordmark { font-size: 17px; }
  .wordmark .wm-cn { display: none; }
  .ep-head { padding: 34px 0 26px; }
  .ep-dek { font-size: 16.5px; }
  .zh-article { text-align: left; } /* 窄屏两端对齐会把中西文混排撑出大空隙 */
  .zh-article blockquote { font-size: 1.04em; }
  .media.has-audio:not(.video-open) .video-facade { display: none; }
  .ap-line2 .ap-video { display: inline-flex; }
  .audio-player { padding-left: 0; }
  .ep-prevnext { grid-template-columns: 1fr; gap: 22px; }
  .ep-prevnext a[rel='next'] { grid-column: auto; text-align: left; }
  .tool-btn .lbl { display: none; }
  .pop { width: min(340px, calc(100vw - 24px)); }
  #toTop { right: 14px; bottom: 14px; }
  .ft-top { padding: 40px 0 26px; }
  .ft-cols { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .ft-support { grid-column: 1 / -1; }
  .ar-year li a { grid-template-columns: 40px minmax(0, 1fr); }
  .ar-d { grid-column: 2; }
  .ar-year h2 { font-size: 28px; }
}
@media (min-width: 641px) and (max-width: 900px) {
  .ft-cols { grid-template-columns: repeat(3, 1fr); }
  .ft-support { grid-column: 1 / -1; }
}

@media print {
  .site-header, .masthead, .toolbar, .media, .tabs, .ep-toc, .ep-resources, .ep-prevnext, .site-footer, #toTop, .mini-player { display: none !important; }
  body { background: #fff; color: #000; }
  body.epjs .tab-panel { display: none; }
  body.epjs #panel-zh { display: block; }
}

/* ---------- 404 / 离线页 ---------- */
.special .ep-head { padding-top: 90px; }
.special-actions { display: flex; justify-content: center; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.special-actions a { text-decoration: none; }
.more-btn.ghost { border-color: var(--line-strong); color: var(--muted); }
.special-list { border-top: 1px solid var(--rule); margin: 30px 0 40px; }
.special-list h2 { font-size: 11.5px; letter-spacing: .16em; color: var(--muted); font-weight: 500; padding: 14px 0 6px; }
.special-list ol { list-style: none; }
.special-list a { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.special-list b { font-family: var(--font-display); font-size: 16.5px; }
.special-list i { font-style: normal; font-size: 12px; color: var(--muted); white-space: nowrap; }
.special-list a:hover b { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.install-steps { text-align: left; margin: 18px 6px 4px; padding-left: 1.3em; font-size: 14px; line-height: 2; color: var(--text-soft); }
.install-steps svg { display: inline-block; width: 17px; height: 17px; vertical-align: -3px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
button.colo-link { background: none; border: 0; cursor: pointer; padding: 0; }

/* 缩略图加载完成后淡入，避免灰块闪烁 */
.thumb img, .cont-thumb img, .hero-media img { opacity: 0; }
.thumb img.ok, .cont-thumb img.ok, .hero-media img.ok { opacity: 1; transition: opacity .45s ease, transform .6s cubic-bezier(.2,.7,.2,1), filter .45s ease; }
.no-js .thumb img { opacity: 1; }

/* 站内跳转时的淡入淡出过渡（支持的浏览器） */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* =========================================================
   Training Data · 私人银行年报
   奶油纸面 + 森林绿 + 黄铜金；Cormorant Garamond 大号数字与标题、思源宋体正文；
   金色细线双框、罗马式期号、慢节奏的大留白，像一份写给长期投资人的年度报告。
   ========================================================= */
:root, :root[data-theme='light'] {
  --bg: #f4efe4; --bg2: #f4efe4; --card: #faf7f0; --card-hover: #fdfbf6;
  --line: #e2d9c6; --line-strong: #c9b998; --rule: #12301f;
  --text: #12301f; --text-soft: #2c3d31; --text-faint: #a89e86; --muted: #6f6a58;
  --accent: #12301f; --accent-hover: #1d4430; --on-accent: #f4efe4; --brand: #9a7840; --on-brand: #f4efe4;
  --gold: #b08d57;
  --zh-soft: rgba(176,141,87,.12); --bar-bg: #e4dcc9; --bar-buf: #d4c8ad;
  --bg-glass: rgba(244,239,228,.9); --bg-glass2: rgba(250,247,240,.96); --trans-bg: rgba(18,48,31,.035);
  --thumb-bg: #e6dfcd; --mark-bg: rgba(176,141,87,.28);
  --shadow: 0 16px 44px rgba(18,48,31,.14), 0 2px 6px rgba(18,48,31,.06); --focus: #12301f;
  --f-bg: #12301f; --f-text: #f4efe4; --f-soft: #c8c3ad; --f-faint: #8e9580; --f-line: rgba(197,164,103,.3);
  color-scheme: light;
}
:root[data-theme='sepia'] {
  --bg: #efe5cf; --bg2: #efe5cf; --card: #f6eedc; --card-hover: #f9f3e5;
  --line: #ddcfae; --line-strong: #c4b089; --rule: #2a2a14;
  --text: #2a2a14; --text-soft: #403d24; --text-faint: #a3967a; --muted: #756c52;
  --accent: #2a2a14; --accent-hover: #403d24; --on-accent: #efe5cf; --brand: #93702f; --on-brand: #efe5cf;
  --gold: #a8833f;
  --zh-soft: rgba(168,131,63,.12); --bar-bg: #e0d3b5; --bar-buf: #d0c09c;
  --bg-glass: rgba(239,229,207,.9); --bg-glass2: rgba(246,238,220,.96); --trans-bg: rgba(60,50,10,.04);
  --thumb-bg: #e3d6b8; --mark-bg: rgba(168,131,63,.28);
  --shadow: 0 14px 40px rgba(60,40,10,.14); --focus: #2a2a14;
  --f-bg: #2a2a14; --f-text: #efe5cf; --f-soft: #cdc2a2; --f-faint: #958a6c; --f-line: rgba(168,131,63,.3);
  color-scheme: light;
}
:root[data-theme='dark'] {
  --bg: #0f1a14; --bg2: #0f1a14; --card: #15231b; --card-hover: #1a2b21;
  --line: #24382b; --line-strong: #3a5243; --rule: #d9c08f;
  --text: #ece6d6; --text-soft: #cfc9b6; --text-faint: #66705f; --muted: #9a9d86;
  --accent: #d9c08f; --accent-hover: #e8d4ab; --on-accent: #0f1a14; --brand: #d9c08f; --on-brand: #0f1a14;
  --gold: #d9c08f;
  --zh-soft: rgba(217,192,143,.08); --bar-bg: #24382b; --bar-buf: #314a3a;
  --bg-glass: rgba(15,26,20,.88); --bg-glass2: rgba(21,35,27,.95); --trans-bg: rgba(217,192,143,.04);
  --thumb-bg: #182820; --mark-bg: rgba(217,192,143,.22);
  --shadow: 0 14px 40px rgba(0,0,0,.55); --focus: #d9c08f;
  --f-bg: #0a120d; --f-text: #ece6d6; --f-soft: #a8a993; --f-faint: #66705f; --f-line: rgba(217,192,143,.2);
  color-scheme: dark;
}
:root {
  --font-display: "Cormorant Garamond", "Noto Serif SC", "Songti SC", Georgia, serif;
  --font-label: "Cormorant Garamond", "Noto Serif SC", Georgia, serif;
  --radius-card: 0px; --radius-img: 0px;
}
.ep-kicker, .hero-kicker, .card-kicker, .mast-date, .pop-k, .toc-h, .pn-k, .ap-label { font-size: 13px; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; }
.pop-k, .toc-h { font-family: var(--font-sans); font-size: 11.5px; letter-spacing: .14em; font-weight: 500; }

/* 报头：双金线框里的居中题名，像年报封面 */
.masthead { text-align: center; padding: 22px 0 0; }
.masthead > .wrap { border: 1px solid var(--gold); outline: 1px solid var(--gold); outline-offset: 5px; padding: 0 40px; margin-top: 6px; }
.mast-top { border-bottom: 1px solid var(--line); }
.mast-brand { padding: 54px 0 30px; }
.mast-kicker { color: var(--gold); font-family: var(--font-display); font-size: 14px; letter-spacing: .38em; font-weight: 600; text-transform: uppercase; }
.mast-title { font-weight: 600; letter-spacing: .005em; font-size: clamp(48px, 8vw, 116px); }
.mast-title a::after { content: ''; display: block; width: 120px; height: 1px; background: var(--gold); margin: 22px auto 0; }
.mast-tagline { margin: 22px auto 0; font-family: var(--font-serif); font-size: 18px; color: var(--muted); }
.mast-facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mast-facts div { align-items: center; padding: 22px 0; }
.mast-facts div + div { border-left: 1px solid var(--line); }
.mast-facts b { font-weight: 500; font-size: 46px; color: var(--text); font-variant-numeric: oldstyle-nums proportional-nums; }
.mast-facts span { letter-spacing: .2em; }
.mast-intro { margin: 0 auto; padding: 26px 0 34px; font-family: var(--font-serif); font-size: 15px; color: var(--text-soft); max-width: 42em; }
.mast-hosts { color: var(--gold); font-family: var(--font-display); font-size: 16px; font-style: italic; letter-spacing: .02em; }

.toolbar { margin-top: 28px; border-top: 1px solid var(--line); }
.filters button { letter-spacing: .06em; }
.filters button.on { border-bottom-color: var(--gold); }

/* 头条：右图左文，图片墨绿双色调 + 金框 */
.hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); padding: 60px 0; }
.hero-media { order: 2; outline: 1px solid var(--gold); outline-offset: 10px; }
.hero-media img { filter: sepia(.35) grayscale(.6) contrast(1.05); }
.hero:hover .hero-media img { filter: none; }
.hero-kicker { color: var(--gold); }
.hero-title { font-family: var(--font-serif); font-weight: 900; }
.hero-en { font-size: 18px; }
.hero-desc { font-family: var(--font-serif); }
.hero-cta { border-bottom-color: var(--gold); letter-spacing: .2em; font-family: var(--font-display); font-size: 14px; text-transform: uppercase; }

.result-line { border-bottom: 1px solid var(--gold); justify-content: center; text-align: center; }
.result-line h2 { font-weight: 600; font-size: 30px; letter-spacing: .04em; }
.result-line h2 small { display: block; margin: 6px 0 0; font-family: var(--font-display); font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.sec-h { border-bottom-color: var(--gold); }
.sec-h h2 { font-weight: 600; font-size: 24px; }

/* 列表：三栏卡片，超大旧式数字期号压在图上，金线分隔 */
.grid { gap: 56px 40px; padding-top: 36px; }
.card { position: relative; }
.card .thumb { outline: 1px solid var(--line); outline-offset: 6px; }
.card .thumb img { filter: sepia(.3) grayscale(.55) contrast(1.05); }
.card:hover .thumb img { filter: none; }
.card .thumb + .card-body { padding-top: 22px; }
.card-kicker { justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.card-kicker .ep-n { font-size: 34px; font-weight: 500; letter-spacing: 0; color: var(--gold); font-variant-numeric: oldstyle-nums; line-height: 1; text-transform: none; }
.card-kicker .zh-tag { color: var(--text); }
.card-kicker .dur { display: none; }
.card-title { font-family: var(--font-serif); font-weight: 700; font-size: 18.5px; line-height: 1.55; }
.card-title-en { font-size: 16px; }
.card-desc { display: none; }
.card:hover .card-title { text-decoration-color: var(--gold); }

/* 单集页 */
.site-header.slim { border-bottom: 1px solid var(--gold); }
.wordmark { font-weight: 600; font-size: 22px; letter-spacing: .02em; }
.wordmark .wm-cn { font-family: var(--font-serif); letter-spacing: .2em; }
.ep-head { padding-top: 70px; }
.ep-kicker { color: var(--gold); }
.ep-kicker .k-zh { color: var(--text); }
.ep-title { font-family: var(--font-serif); font-weight: 900; letter-spacing: .02em; }
.ep-title::after { content: ''; display: block; width: 80px; height: 1px; background: var(--gold); margin: 28px auto 0; }
.ep-title-en { font-size: 19px; }
.ep-byline { font-family: var(--font-serif); letter-spacing: .08em; }
.media { border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); }
.video-facade img { filter: sepia(.35) grayscale(.6); }
.ap-play { background: var(--accent); color: var(--on-accent); }
.ap-label { color: var(--gold); }
.ap-fill, .ap-fill::after, .mp-fill { background: var(--gold); }
.read-progress { background: var(--gold); }
body.epjs .tab-btn { font-family: var(--font-display); font-size: 15px; letter-spacing: .16em; text-transform: uppercase; }
body.epjs .tab-btn.on { border-bottom-color: var(--gold); }

/* 正文：思源宋体，小节编号用罗马数字，摘句金线，列表金色菱形 */
.zh-article h2 { font-family: var(--font-serif); font-weight: 900; text-align: center; }
.zh-article h2::before { content: counter(sec, upper-roman); font-family: var(--font-display); font-weight: 500; font-size: .9em; letter-spacing: .1em; color: var(--gold); text-align: center; }
.zh-article h2::after { content: ''; display: block; width: 40px; height: 1px; background: var(--gold); margin: .7em auto 0; }
.zh-article blockquote { text-align: center; border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); font-family: var(--font-serif); font-size: 1.12em; padding: 1.4em 1em; }
.zh-article blockquote.hang { text-indent: 0; }
.zh-article blockquote cite { font-family: var(--font-display); font-size: 14px; color: var(--gold); letter-spacing: .24em; text-transform: uppercase; }
.zh-article ul, .zh-article ol { border-top: 1px solid var(--gold); }
.zh-article ul > li::before { width: .42em; height: .42em; background: var(--gold); transform: rotate(45deg); }
html:not(.indent) .zh-article p.dropcap::first-letter { color: var(--gold); font-family: var(--font-serif); font-weight: 900; }
.zh-article .end-mark::after { content: '❦'; background: none; width: auto; height: auto; color: var(--gold); font-size: 1.1em; vertical-align: -.05em; }
.toc-list a::before { content: counter(toc, upper-roman); font-family: var(--font-display); color: var(--gold); min-width: 2.2em; }
.toc-list a.on { background: var(--zh-soft); }

.colophon { border: 1px solid var(--gold); outline: 1px solid var(--gold); outline-offset: 4px; padding: 30px 28px; }
.colo-k { color: var(--gold); font-family: var(--font-display); font-size: 15px; letter-spacing: .3em; }
.colophon .ft-btn { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.ft-btn { border-radius: 0; letter-spacing: .14em; }
.site-footer .ft-btn:not(.ghost) { background: var(--gold); border-color: var(--gold); color: #12301f; }
.ft-mark { font-weight: 600; }
.ft-top { border-bottom-color: var(--f-line); }
.ft-col h2 { font-family: var(--font-display); font-size: 13px; letter-spacing: .26em; color: #c5a467; }

.ar-year h2 { font-weight: 600; font-size: 52px; color: var(--gold); border-bottom-color: var(--gold); font-variant-numeric: oldstyle-nums; }
.ar-nav a { font-size: 18px; }
.ar-zh { color: var(--gold); }
.more-btn { border-radius: 0; border-color: var(--gold); letter-spacing: .2em; }
.more-btn:hover { background: var(--accent); color: var(--on-accent); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
}
@media (max-width: 640px) {
  .masthead > .wrap { padding: 0 16px; outline-offset: 3px; }
  .mast-facts div + div { border-left: 0; }
  .card .thumb { outline: 0; }
  .card-kicker .ep-n { font-size: 22px; }
}
