/* 波多书屋 ·《世界看中国》译丛 —— 版式
   取自丛书封面的用色：纸、墨、屏风上的靛青、书口的金线。 */

:root {
  --paper:    #ece3d2;
  --veil:     236, 227, 210;
  --leaf:     #faf6ec;
  --sink:     #ded2b8;   /* 比纸再沉一档，用于侧栏、筛选条 */
  --ink:      #1c1810;
  --ink-soft: #463e31;   /* 次级墨色：够沉，别把正文读成灰的 */
  --dim:      #79705f;
  --indigo:   #3b5568;
  --gold:     #8a6828;
  --rule:     #cdbc9a;
  --hair:     #d6c7a6;
  --shadow:   0 1px 2px rgba(60,44,20,.08), 0 10px 28px rgba(60,44,20,.10);
  --lift:     0 2px 5px rgba(60,44,20,.12), 0 18px 40px rgba(60,44,20,.16);

  --serif: "Noto Serif SC", "Songti SC", "Source Han Serif SC", "SimSun", serif;
  --serif-en: "EB Garamond", Georgia, "Times New Roman", serif;
  --latin: "EB Garamond", "Times New Roman", serif;
  --sans:  "Noto Sans SC", "PingFang SC", system-ui, sans-serif;

  --measure: 34em;
  --bar: 6.6rem;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:  #14171b;  --leaf: #1b1f25;  --sink: #1f242a;  --veil: 20, 23, 27;
    --ink:    #eae1cd;  --ink-soft: #bcb2a0;  --dim: #8b8272;
    --indigo: #93aec3;  --gold: #c3a25f;
    --rule:   #3a424b;  --hair: #2b3138;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px rgba(0,0,0,.42);
    --lift:   0 2px 6px rgba(0,0,0,.5), 0 20px 46px rgba(0,0,0,.5);
    color-scheme: dark;
  }
  :root:not([data-theme="light"]) .hero-books img {
    box-shadow: 0 2px 6px rgba(0,0,0,.5), 0 18px 38px rgba(0,0,0,.5);
  }
}
:root[data-theme="dark"] {
  --paper:  #14171b;  --leaf: #1b1f25;  --sink: #1f242a;  --veil: 20, 23, 27;
  --ink:    #eae1cd;  --ink-soft: #bcb2a0;  --dim: #8b8272;
  --indigo: #93aec3;  --gold: #c3a25f;
  --rule:   #3a424b;  --hair: #2b3138;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px rgba(0,0,0,.42);
  --lift:   0 2px 6px rgba(0,0,0,.5), 0 20px 46px rgba(0,0,0,.5);
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1.95;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 3px;
}
h1, h2, h3 { text-wrap: balance; font-weight: 500; }
p { text-wrap: pretty; }

.fishtail { width: 17px; height: 10px; color: var(--gold); flex: none; }
.eyebrow {
  margin: 0 0 .55rem; font-family: var(--sans); font-weight: 300;
  font-size: .71rem; letter-spacing: .3em; text-indent: .3em; color: var(--dim);
}
.eyebrow a {
  color: inherit; border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.eyebrow a:hover { color: var(--gold); border-bottom-color: var(--gold); }
.dim { color: var(--dim); }
.eyebrow .eno {
  margin-left: -.12em; letter-spacing: .1em;
  color: var(--gold); font-variant-numeric: tabular-nums;
}

/* ── 常驻横条 ─────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 1rem; height: var(--bar);
  padding-inline: max(clamp(1rem, 4vw, 2.2rem), calc((100% - 76rem) / 2));
  max-width: 100%;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--hair);
}
.brand { display: flex; align-items: center; gap: .7rem; }
.brand img {
  width: 64px; height: 64px; border-radius: 50%;
  border: 1px solid var(--gold); padding: 2px; background: var(--leaf);
}
.imprint { font-size: 1rem; font-weight: 500; letter-spacing: .3em; text-indent: .3em; }
.topbar .mid {
  font-size: .88rem; color: var(--ink-soft); text-align: center;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nav { display: flex; gap: 1.4rem; justify-content: flex-end; align-items: baseline; }
.nav a {
  font-size: .84rem; letter-spacing: .12em; color: var(--ink-soft);
  padding-bottom: 2px; border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--gold); }
.nav a.nav-btn {
  color: var(--gold); border: 1px solid var(--gold); border-radius: 2px;
  padding: .3rem .85rem; letter-spacing: .1em;
}
.nav a.nav-btn:hover { color: var(--leaf); background: var(--gold); border-color: var(--gold); }
.back-link { font-size: .85rem; color: var(--ink-soft); letter-spacing: .08em; }
.back-link:hover { color: var(--ink); }
.toc-btn {
  justify-self: end; display: none;
  font-family: var(--serif); font-size: .82rem; letter-spacing: .14em;
  color: var(--ink-soft); background: none; border: 1px solid var(--rule);
  border-radius: 2px; padding: .22rem .7rem; cursor: pointer;
}

/* ── 首页报头：小标识压左上，大字主张占满一屏宽 ─────────
   气质来自字号落差和留白，不靠任何纹样。 */
/* ── 首页报头 ──────────────────────────────────────────
   左：大标题 + 一段说明 + 两个入口；右：三本书斜倚着。 */
.hero {
  max-width: 62rem; margin: 0 auto;
  padding: clamp(1.8rem, 4vw, 2.6rem) 1.5rem clamp(2.2rem, 4vw, 3rem);
}
.hero-main { display: block; }

/* 报头通栏图：横贯整个页面，不受内容栏宽度限制。
   原图 1.9:1，满宽之后会高得离谱，所以限高并上下裁切——
   画面上方是墙、下方是石台，裁掉不影响文字和书。 */
.hero-banner {
  display: block; width: 100%;
  /* 原图 2560×1000，正是页面上的显示比例：常规屏幕几乎不裁，
     只有超宽屏才从上下各收一点（那里是墙面和台面）。 */
  aspect-ratio: 2560 / 1000; height: auto; max-height: 660px;
  object-fit: cover; object-position: center 45%;
  border: 0; border-bottom: 1px solid var(--hair);
}
/* 同样的话留一份在 HTML 里：搜索引擎和读屏软件看不见图上的字 */
.hero-say {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.headline {
  margin: 0 0 1.2rem; font-weight: 600;
  font-size: clamp(1.6rem, 6.4vw, 2.2rem); line-height: 1.6;
  letter-spacing: .04em; color: var(--ink);
}
.subhead {
  margin: 0 0 1.6rem; font-size: 1rem; line-height: 2.05;
  color: var(--ink-soft); letter-spacing: .03em;
}
.hero-scene { margin: 0; }
.hero-scene img {
  display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border: 1px solid var(--hair); box-shadow: var(--shadow);
}

.hero-acts { display: flex; gap: .8rem; flex-wrap: wrap; margin: 0; }
.btn {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .66rem 1.5rem; border-radius: 2px;
  font-size: .95rem; letter-spacing: .12em;
  border: 1px solid var(--gold); transition: background .2s ease, color .2s ease;
}
.btn-solid { background: var(--gold); color: var(--leaf); }
.btn-solid:hover { background: var(--ink); border-color: var(--ink); }
.btn-line { color: var(--gold); background: none; }
.btn-line:hover { background: var(--gold); color: var(--leaf); }

/* 手机上通栏图里的字会小到看不清，换成真的文字 + 竖幅的那张图 */
@media (max-width: 700px) {
  .hero-banner { display: none; }
  .hero-say {
    position: static; width: auto; height: auto;
    overflow: visible; clip-path: none; white-space: normal;
  }
}

/* 分隔带：左边主题大字，右边题材排两行——不让最后一个甩出小尾巴 */
.strip {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(1.2rem, 4vw, 2.8rem); flex-wrap: wrap;
  max-width: 62rem; margin: 0 auto; padding: 1.5rem 1.5rem;
  border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair);
}
.strip-k {
  flex: none; font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  letter-spacing: .14em; line-height: 1.5; color: var(--ink);
}
.strip-cats {
  display: grid; grid-template-columns: repeat(5, auto);
  gap: .45rem 1.6rem; justify-items: start;
}
.strip-cats a {
  font-size: .92rem; letter-spacing: .1em; color: var(--ink-soft);
  padding-bottom: 2px; border-bottom: 1px solid transparent;
  transition: color .16s ease, border-color .16s ease; white-space: nowrap;
}
.strip-cats a:hover { color: var(--gold); border-bottom-color: var(--gold); }
@media (max-width: 760px) {
  .strip { flex-direction: column; align-items: flex-start; gap: .9rem; }
  .strip-cats { grid-template-columns: repeat(3, auto); gap: .4rem 1.2rem; }
}

/* 数据：作为「世界看中国译丛」的提示行 */
.series-stats {
  display: flex; flex-wrap: wrap; gap: .15rem 1.4rem;
  justify-content: center; max-width: 30em; margin: 0 auto 1.3rem;
  font-variant-numeric: tabular-nums; text-indent: 0 !important;
}
.series-stats span { font-size: 1.05rem; color: var(--gold); letter-spacing: .02em; }
.series-stats i {
  font-style: normal; font-family: var(--sans); font-weight: 300;
  font-size: .73rem; color: var(--ink-soft); margin-left: .2rem;
}

/* ── 从这里开始：横向条目，封面在左，题解有地方展开 ── */
.rows { display: flex; flex-direction: column; }
.row {
  display: grid; grid-template-columns: clamp(96px, 12vw, 136px) minmax(0, 1fr);
  gap: clamp(1.1rem, 3vw, 2rem); align-items: start;
  padding: 1.9rem 0; border-top: 1px solid var(--hair);
}
/* 封面和右侧文字顶边对齐。
   与其靠负边距去"猜"行距留了多少空，不如让第一行本身不留空：
   题材那行的 line-height 设成 1，字顶就等于块顶，两边自然齐平。 */
.row-cover { display: block; margin-top: 0; }
.row-text { margin-top: 0; }
.row-text > :first-child { margin-top: 0; }
.row .cat { line-height: 1; margin: 0 0 .45rem; }
.row:first-child { border-top: 0; padding-top: .6rem; }
.row-cover img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--hair); box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.row-cover:hover img { transform: translateY(-3px); box-shadow: var(--lift); }
.row-text { padding-top: 0; }
.row-text h3 {
  margin: .1rem 0 .3rem; font-size: 1.2rem; letter-spacing: .1em; line-height: 1.5;
}
.row-text h3 a:hover { border-bottom: 1px solid var(--gold); }
.row-text .by { margin: 0 0 .7rem; font-size: .88rem; color: var(--ink-soft); }
.row-blurb {
  margin: 0 0 1rem; font-size: .96rem; line-height: 1.9; color: var(--ink-soft);
  max-width: 34em;
}
.row-acts { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin: 0; }
.act {
  font-size: .92rem; letter-spacing: .1em; color: var(--gold);
  border-bottom: 1px solid var(--hair); padding-bottom: 2px;
}
.act:hover { border-bottom-color: var(--gold); }
.act.play span { font-size: .8rem; }
.row-weight {
  margin-left: auto; font-family: var(--sans); font-weight: 300;
  font-size: .76rem; color: var(--dim); font-variant-numeric: tabular-nums;
}
.sec-sub {
  margin: .4rem 0 0; font-family: var(--sans); font-weight: 300;
  font-size: .78rem; letter-spacing: .1em; color: var(--gold);
}

/* 题材：一列带箭头的条目 */
.cat-rows { list-style: none; margin: 0; padding: 0; }
.cat-rows li { border-top: 1px solid var(--hair); }
/* 版块本身已经有一条分隔线，第一行再来一条就成了双线 */
.cat-rows li:first-child { border-top: none; }
.cat-rows a {
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem .2rem; font-size: 1rem; letter-spacing: .1em;
  color: var(--ink); transition: color .18s ease, padding .18s ease;
}
.cat-rows a span { color: var(--rule); font-size: 1.1rem; }
.cat-rows a:hover { color: var(--gold); padding-left: .55rem; }
.cat-rows a:hover span { color: var(--gold); }
.series-more { margin: 1.4rem auto 0 !important; text-indent: 0 !important; text-align: center; }
.series-more a { color: var(--gold); border-bottom: 1px solid var(--hair); padding-bottom: 2px; }
.series-more a:hover { border-bottom-color: var(--gold); }

/* 顶栏全站常驻——报头图上方必须看得见猫徽和社名 */

/* 关于：她的两行文案——一行主张，一行说明 */
.about-h { display: flex; align-items: baseline; justify-content: center;
  gap: .85rem; margin: 0 0 1.5rem; }
.about-h .pre {
  font-family: var(--sans); font-weight: 300; font-size: .71rem;
  letter-spacing: .3em; text-indent: .3em; color: var(--dim);
}

.about-lead {
  margin: 0 0 .9rem; text-indent: 0;
  font-size: 1.16rem; line-height: 1.75; letter-spacing: .05em; color: var(--ink);
}
.about-body { font-size: 1.02rem; color: var(--ink); max-width: 30em; }

/* ── 通用区块 ─────────────────────────────────────────── */
.home, .catalog { max-width: 62rem; margin: 0 auto; padding: 0 1.5rem 4rem; }
/* 首页最后接的是底色带，容器底下不用再留一大截白 */
.home { padding-bottom: .4rem; }
.sec-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem;
}
/* 全站版块标题只有一个规格：字号、字重、字距、行高都一样 */
.sec-head h2, .series-text h2, .about-h, .sup-k, .subscribe h2 {
  font-size: 1.5rem; font-weight: 500; letter-spacing: .15em; line-height: 1.5;
}
.sec-head h2, .series-text h2 { margin: 0; }
.more { font-size: .85rem; color: var(--indigo); }
.more:hover { text-decoration: underline; text-underline-offset: 4px; }
.note {
  margin: 1.4rem 0 0; font-family: var(--sans); font-weight: 300;
  font-size: .76rem; letter-spacing: .1em; color: var(--gold);
}

/* ── 译丛概览 ─────────────────────────────────────────── */
.series-block {
  display: grid; grid-template-columns: minmax(0, 41.5em) 9rem; gap: 3.5rem;
  justify-content: center; align-items: center;
  padding: 3rem 0 2.4rem; border-top: 1px solid var(--hair);
}
.series-text p {
  margin: 0 auto 1rem; color: var(--ink); text-indent: 2em;
  font-size: 1.01rem; line-height: 2.05; max-width: 30em;
}
/* 标题、统计、尾链都对正文那一块的中线，而不是整栏的中线 */
.series-text h2 { text-align: center; }
.series-text h2 { margin-bottom: .9rem; }
.series-lead { /* 与下面两段同级：都是在解释这套书，别弄出第三层 */ }
.cat-h.named { margin-top: 1.2rem; }
.names { margin: 0; font-size: .83rem; line-height: 1.85; color: var(--ink-soft); }
.series-side {
  background: var(--sink); border: 1px solid var(--hair);
  padding: 1.4rem 1.3rem; align-self: start;
}
.stats { margin: 0 0 1.5rem; display: grid; gap: .75rem; }
.stats > div {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: .6rem; padding-bottom: .55rem; border-bottom: 1px solid var(--hair);
}
.stats > div:last-child { border-bottom: 0; padding-bottom: 0; }
.stats dt {
  font-family: var(--sans); font-weight: 300; font-size: .72rem;
  letter-spacing: .24em; color: var(--dim);
}
.stats dd {
  margin: 0; font-size: 1.32rem; color: var(--gold);
  font-variant-numeric: tabular-nums; line-height: 1.2;
}
.stats dd span { font-size: .74rem; color: var(--ink-soft); margin-left: .25rem; }
.cat-h {
  margin: 0 0 .55rem; font-family: var(--sans); font-weight: 300;
  font-size: .72rem; letter-spacing: .24em; color: var(--dim);
}
.cats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem .9rem; }
.cats li { font-size: .86rem; color: var(--ink-soft); }

/* ── 书架 ─────────────────────────────────────────────── */
.shelf-block { padding: 3rem 0 0; border-top: 1px solid var(--hair); }
.shelf {
  display: grid; gap: 2.4rem 1.8rem;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
}
.card { display: flex; flex-direction: column; gap: .8rem; }
.card-cover {
  aspect-ratio: 2 / 3; background: var(--leaf);
  border: 1px solid var(--hair); box-shadow: var(--shadow); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nocover { font-size: .95rem; color: var(--dim); padding: 1rem; text-align: center; }
.card:hover .card-cover { transform: translateY(-4px); box-shadow: var(--lift); }
.card .cat, .row .cat {
  margin: 0 0 .15rem; font-family: var(--sans); font-weight: 300;
  font-size: .7rem; letter-spacing: .22em; color: var(--gold);
  line-height: 1.4;
}
.card h3 { margin: .15rem 0 0; font-size: 1.04rem; line-height: 1.6; letter-spacing: .1em; }
.card .en {
  margin: .2rem 0 0; font-family: var(--latin); font-style: italic;
  font-size: .84rem; color: var(--indigo); line-height: 1.4;
}
.card .by {
  margin: .3rem 0 0; font-family: var(--sans); font-weight: 300;
  font-size: .75rem; letter-spacing: .06em; color: var(--dim);
}

/* ── 分类入口 / 筛选按钮 ──────────────────────────────── */
.browse-block {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 2rem 3rem; margin-top: 3.4rem; padding-top: 2.6rem;
  border-top: 1px solid var(--hair);
}
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips a, .chips button {
  display: inline-block; font-family: var(--serif); font-size: .84rem;
  letter-spacing: .04em; color: var(--ink-soft); background: transparent;
  border: 1px solid var(--rule); border-radius: 999px;
  padding: .24rem .85rem; cursor: pointer; line-height: 1.8;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.chips a:hover, .chips button:hover { color: var(--ink); border-color: var(--gold); }
.chips button.on {
  color: var(--leaf); background: var(--indigo); border-color: var(--indigo);
}

/* ── 关于书屋 ─────────────────────────────────────────── */
/* 整条深一档的米色，上下两段靠底色区隔，不画线——
   页面顶上那条常驻横条本身带一道线，再加一条就撞上了 */
.aboutband {
  background: var(--sink);
  padding: clamp(3.8rem, 7vw, 5.8rem) 1.5rem clamp(3rem, 4.5vw, 3.8rem);
}
.about-block {
  display: grid; grid-template-columns: minmax(0, 41em) auto; gap: 4rem;
  align-items: center; justify-content: center;
  max-width: 62rem; margin: 0 auto;
}
.about-text p { max-width: 41em; margin: 0 auto .9rem; color: var(--ink-soft); text-align: center; font-size: .99rem; }

.about-mark {
  display: flex; flex-direction: column; align-items: center;
  width: 9rem; max-width: 100%;
  align-self: center;       /* 文字只剩四行，画改为与之垂直居中 */
}
/* 波多本人：旧书卷首插画的做法——椭圆开光，里一道细线、外一道金线 */
.boduo-portrait {
  width: 100%; height: auto; aspect-ratio: 5 / 6; object-fit: cover; display: block;
  border-radius: 50%;
  box-shadow:
    0 0 0 1px var(--hair),
    0 0 0 7px var(--paper),
    0 0 0 8px color-mix(in srgb, var(--gold) 55%, transparent),
    0 14px 30px rgba(60, 44, 20, .13);
}

/* ── 订阅 ─────────────────────────────────────────────── */
.subscribe {
  background: var(--paper);
  padding: clamp(2.4rem, 5vw, 3.6rem) 1.5rem clamp(2rem, 4vw, 2.8rem);
}
.sub-inner {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 1.6rem; max-width: 62rem; margin: 0 auto;
}
.subscribe h2 { margin: 0 0 .5rem; }
.subscribe p { margin: 0 auto; font-size: .95rem; color: var(--ink-soft); max-width: 30em; line-height: 1.9; }
.subscribe.tint { background: var(--sink); }
.contact-at { margin-top: .9rem !important; }
.contact-at a {
  font-size: 1rem; letter-spacing: .04em; color: var(--indigo);
  border-bottom: 1px solid color-mix(in srgb, var(--indigo) 40%, transparent);
  padding-bottom: .2rem;
}
.contact-at a:hover { color: var(--ink); border-color: var(--ink); }
/* 支持书屋：不画框、不做卡片，靠留白和字号落差立起来 */
.support {
  background: var(--paper);
  padding: clamp(3rem, 6vw, 4.6rem) 1.5rem clamp(2rem, 3.5vw, 2.6rem);
  text-align: center;
}
.sup-k { margin: 0 0 1.5rem; }
.sup-t {
  max-width: 48em; margin: 0 auto 1.8rem;
  font-size: 1.06rem; line-height: 2.05; color: var(--ink);
}
.sup-act { margin: 0; }
.sup-link {
  font-size: 1rem; letter-spacing: .14em; color: var(--gold);
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
  padding-bottom: .22rem; transition: color .2s ease, border-color .2s ease;
}
.sup-link:hover { color: var(--ink); border-color: var(--ink); }
.foot-crest {
  width: 62px; height: 62px; border-radius: 50%;
  border: 1px solid var(--gold); padding: 2px; background: var(--leaf);
  margin-bottom: .2rem;
}

#prog {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: var(--gold); z-index: 30; transition: width .12s linear;
}
/* 回到顶部：书叶正下方一枚宽大的半透明箭头，无框无字 */
#totop {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 1.1rem; z-index: 25;
  display: block; padding: .5rem 1.1rem; cursor: pointer;
  color: var(--gold); background: none; border: 0;
  opacity: .3; transition: opacity .22s ease, transform .22s ease;
}
#totop svg { display: block; width: 48px; height: 24px; }
#totop.show { opacity: .5; }
#totop:hover { opacity: .95; transform: translateX(-50%) translateY(-3px); }

/* 锚点跳转时给常驻横条让位，不然落点被盖住 */
#series, #about, #contact, #support, #shelf { scroll-margin-top: calc(var(--bar) + 1.2rem); }

.sitefoot {
  display: flex; flex-direction: column; align-items: center; gap: .55rem;
  padding: 2rem 1.5rem 3.4rem;
  max-width: 62rem; margin: 0 auto;
}
.foot-top {
  margin-top: .9rem; font-size: .82rem; letter-spacing: .14em; text-indent: .14em; color: var(--indigo);
  border-bottom: 1px solid transparent; padding-bottom: 2px;
  display: flex; flex-direction: column; align-items: center; gap: .15rem;
  line-height: 1.5;
}
.foot-top:hover { border-bottom-color: var(--indigo); }
/* 箭头移到字的正上方：横着放永远有一边不对称，竖着排就各自居中 */
.foot-top span { font-size: 1.05em; letter-spacing: 0; text-indent: 0; line-height: 1; }
.sitefoot p { margin: 0; font-size: .79rem; letter-spacing: .18em; text-indent: .18em; color: var(--ink-soft); }

/* ── 窄屏 ─────────────────────────────────────────────── */
@media (max-width: 860px) {
  .row { grid-template-columns: 92px minmax(0, 1fr); }
  .row-weight { margin-left: 0; width: 100%; }
}
@media (max-width: 760px) {
  .masthead { flex-wrap: wrap; gap: .6rem; }
  .hero-nav { margin-left: 0; width: 100%; gap: 1.1rem; }
  .motto { line-height: 1.95; }
}
@media (max-width: 620px) {
  .wordmark { letter-spacing: .26em; text-indent: .26em; }
  .hero-nav { gap: .55rem; }
  .hero-nav a { font-size: .86rem; letter-spacing: .12em; text-indent: .12em; }
  .motto { font-size: .95rem; line-height: 2.2; letter-spacing: .06em; }
}
@media (max-width: 880px) {
  .series-block, .about-block { grid-template-columns: 1fr; gap: 1.8rem; }
  .about-mark { width: 14rem; margin: .6rem auto 0; }
  .readroom { grid-template-columns: 1fr; gap: 0; padding-top: 1rem; }
  .toc-btn { display: inline-block; }
  .rail {
    position: fixed; inset: var(--bar) 0 auto 0; z-index: 19;
    max-height: 62vh; margin: 0; padding: 1.1rem 1.4rem 1.4rem;
    background: var(--leaf); border-bottom: 1px solid var(--hair);
    box-shadow: var(--lift);
    transform: translateY(-120%); transition: transform .25s ease;
  }
  .rail.open { transform: translateY(0); }
  .toc { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 0 1rem; }
  .topbar .mid { font-size: .82rem; }
}
@media (max-width: 560px) {
  .titlepage { grid-template-columns: 1fr; gap: 1.3rem; }
  .titlepage .cover { max-width: 180px; }
  .leaf { padding: 2.8rem 1.15rem 1.8rem; }
  .shelf { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1.8rem 1.2rem; }
  .nav { gap: 1rem; }
  .nav a { font-size: .8rem; }
  .imprint { font-size: .78rem; letter-spacing: .2em; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}


/* ── 书目页 ─────────────────────────────────────────── */
.cat-head { padding: clamp(2.4rem, 6vw, 3.6rem) 0 1.8rem; }
.cat-head h1 {
  margin: 0 0 .6rem; font-size: clamp(1.9rem, 4.4vw, 2.6rem);
  letter-spacing: .18em; font-weight: 500; line-height: 1.4;
}
.cat-sub { margin: 0; max-width: 32em; color: var(--ink-soft); font-size: .98rem; line-height: 1.95; }
/* 公版与免费的声明：跟在统计那一行后面，字小色浅 */
.cat-fact { margin: .5rem 0 0; max-width: 36em; font-size: .82rem;
  letter-spacing: .02em; line-height: 1.85; color: var(--dim); }
.headbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem;
  padding-bottom: 1.4rem; border-bottom: 1px solid var(--hair);
}
.headbar .searchrow { flex: 1 1 22rem; margin: 0; }
.morefilters {
  display: flex; gap: 2.6rem; flex-wrap: wrap;
  margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--hair);
}
.searchrow { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.searchrow input {
  flex: 1 1 20rem; min-width: 0; padding: .68rem .9rem;
  font-family: var(--serif); font-size: .98rem; color: var(--ink);
  background: var(--leaf); border: 1px solid var(--rule); border-radius: 2px;
}
.reset {
  padding: .68rem 1.2rem; cursor: pointer; font-family: var(--serif);
  font-size: .92rem; letter-spacing: .1em; color: var(--ink-soft);
  background: none; border: 1px solid var(--rule); border-radius: 2px;
}
.reset:hover { color: var(--ink); border-color: var(--gold); }
.filters { display: flex; gap: 2.4rem; flex-wrap: wrap; }
.fg-h {
  margin: 0 0 .55rem; font-family: var(--sans); font-weight: 300;
  font-size: .72rem; letter-spacing: .26em; color: var(--dim);
}
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.chips button {
  cursor: pointer; font-family: var(--serif); font-size: .86rem; letter-spacing: .06em;
  padding: .28rem .8rem; color: var(--ink-soft);
  background: none; border: 1px solid var(--hair); border-radius: 999px;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.chips button:hover { color: var(--ink); border-color: var(--rule); }
.chips button.on { color: var(--leaf); background: var(--gold); border-color: var(--gold); }
.resultline {
  margin: 1.2rem 0 0; font-family: var(--sans); font-weight: 300;
  font-size: .78rem; letter-spacing: .1em; color: var(--gold);
}
.empty { margin: 3rem 0; text-align: center; color: var(--dim); }
.nocover {
  display: flex; align-items: center; justify-content: center; height: 100%;
  padding: .8rem; font-size: .9rem; color: var(--dim); text-align: center;
  background: var(--sink);
}
.row-text .en {
  margin: .15rem 0 .3rem; font-family: var(--latin); font-style: italic;
  font-size: .88rem; color: var(--indigo); line-height: 1.45;
}


/* ── 书目页：结果栏、排序、分页 ───────────────────────── */
.resultbar {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-top: 1.2rem;
}
.resultline { margin: 0; }
.boxrow { display: inline-flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; }
.sortbox {
  font-family: var(--sans); font-weight: 300; font-size: .78rem;
  letter-spacing: .16em; color: var(--dim);
  display: inline-flex; align-items: center; gap: .5rem;
}
.sortbox select {
  font-family: var(--serif); font-size: .9rem; letter-spacing: .06em;
  color: var(--ink); background: var(--leaf);
  border: 1px solid var(--rule); border-radius: 2px;
  padding: .3rem 1.6rem .3rem .6rem; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%),
                    linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 13px) 55%, calc(100% - 8px) 55%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.pager {
  display: flex; align-items: center; justify-content: center;
  gap: .4rem; flex-wrap: wrap; margin: 2.6rem 0 1rem;
  padding-top: 2rem; border-top: 1px solid var(--hair);
}
.pager button {
  min-width: 2.3rem; padding: .42rem .75rem; cursor: pointer;
  font-family: var(--serif); font-size: .9rem; letter-spacing: .06em;
  color: var(--ink-soft); background: none;
  border: 1px solid var(--hair); border-radius: 2px;
  font-variant-numeric: tabular-nums;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.pager button:hover:not(:disabled) { color: var(--ink); border-color: var(--rule); }
.pager button.on {
  color: var(--leaf); background: var(--gold); border-color: var(--gold);
}
.pager button:disabled { opacity: .38; cursor: default; }
.pager .gap { color: var(--dim); padding: 0 .2rem; }


/* 「上次读到」——几十万字的书，回来接着读 */
#resume {
  position: fixed; left: 50%; bottom: 1.4rem; z-index: 26;
  transform: translate(-50%, 140%);
  display: flex; align-items: center; gap: .8rem; max-width: min(92vw, 34rem);
  padding: .7rem .8rem .7rem 1.1rem;
  background: var(--leaf); border: 1px solid var(--rule); border-radius: 2px;
  box-shadow: var(--lift);
  transition: transform .35s cubic-bezier(.22,.8,.3,1), opacity .3s ease;
  opacity: 0;
}
#resume.in { transform: translate(-50%, 0); opacity: 1; }
#resume .r-k {
  font-family: var(--sans); font-weight: 300; font-size: .7rem;
  letter-spacing: .22em; color: var(--dim); flex: none;
}
#resume .r-t {
  font-size: .92rem; color: var(--ink); min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
#resume .r-go {
  flex: none; cursor: pointer; padding: .36rem .9rem;
  font-family: var(--serif); font-size: .88rem; letter-spacing: .1em;
  color: var(--leaf); background: var(--gold);
  border: 1px solid var(--gold); border-radius: 2px;
}
#resume .r-go:hover { background: var(--ink); border-color: var(--ink); }
#resume .r-x {
  flex: none; cursor: pointer; width: 1.7rem; height: 1.7rem; line-height: 1;
  font-size: 1.1rem; color: var(--dim);
  background: none; border: 0;
}
#resume .r-x:hover { color: var(--ink); }
@media (max-width: 560px) { #resume .r-k { display: none; } }

/* ══════════════ 阅读页 ══════════════════════════════════
   顶上只留一道窄画带，左边目录常驻，右边正文占大头。 */

/* 画带：不铺整张封面，只在栏目下面截一条 */
.banner { width: 100%; overflow: hidden; }
.banner img {
  display: block; width: 100%; height: clamp(150px, 19vw, 260px);
  object-fit: cover; object-position: center 70%;
}
/* 内容往上压一截，目录和正文像两张卡片浮在画的下缘上 */
.readroom { margin-top: clamp(-3.4rem, -4vw, -2rem); position: relative; z-index: 1; }
/* 压在画上的那一段，目录得有自己的底色才读得清 */
.rail {
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(130%) blur(6px);
  border: 1px solid var(--hair); border-radius: 2px;
  padding: 1.9rem 1rem 1.4rem;
}

.readroom {
  display: grid; grid-template-columns: 15rem minmax(0, 1fr);
  gap: clamp(1.6rem, 4vw, 3.2rem);
  max-width: 72rem; margin: 0 auto;
  padding: clamp(3.6rem, 6vw, 5.4rem) 1.5rem 5rem;
  align-items: start;
}

/* 目录：跟着滚，自己滚动，顶部让开常驻横条 */
.rail {
  position: sticky; top: calc(var(--bar) + 1.2rem);
  max-height: calc(100vh - var(--bar) - 3rem);
  overflow-y: auto; padding-right: .4rem;
}
.rail-h {
  margin: 0 0 .9rem; font-family: var(--sans); font-weight: 300;
  font-size: .8rem; letter-spacing: .3em; color: var(--dim);
}
.toc { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.toc a {
  display: flex; gap: .5rem; padding: .3rem .4rem .3rem .7rem;
  font-size: .93rem; line-height: 1.6; color: var(--ink-soft);
  border-left: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.toc a:hover { color: var(--ink); }
.toc .n { color: var(--gold); flex: none; font-size: .88rem; }
.toc a.on { color: var(--ink); border-left-color: var(--gold); }
.toc.clip { max-height: 20rem; overflow: hidden; mask-image: linear-gradient(#000 78%, transparent); }
.toc-more {
  margin-top: .7rem; width: 100%; cursor: pointer;
  font-family: var(--serif); font-size: .82rem; letter-spacing: .1em;
  color: var(--ink-soft); background: none;
  border: 1px solid var(--rule); border-radius: 2px; padding: .34rem .5rem;
}
.toc-more:hover { color: var(--ink); border-color: var(--gold); }

/* 书叶：正文所在的纸面，左侧一道金线取自古籍的界行 */
.leaf {
  position: relative; background: var(--leaf);
  border: 1px solid var(--hair); box-shadow: var(--shadow);
  padding: clamp(3.4rem, 5.4vw, 5rem) clamp(1.3rem, 5vw, 3.6rem) 2.4rem;
}
.leaf::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(var(--gold), transparent 70%); opacity: .5;
}

/* 扉页 */
.titlepage {
  display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 1.9rem;
  padding-bottom: 2.4rem; margin-bottom: .6rem;
  border-bottom: 1px solid var(--hair);
}
.titlepage .cover {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--hair); box-shadow: var(--shadow);
}
.titlepage h1 {
  margin: 0; font-size: 1.85rem; font-weight: 500;
  letter-spacing: .1em; line-height: 1.45;
}
.titlepage .en {
  margin: .35rem 0 0; font-family: var(--latin); font-style: italic;
  font-size: 1rem; letter-spacing: .04em; color: var(--indigo);
}
.weight {
  margin: .6rem 0 1.3rem; font-family: var(--sans); font-weight: 300;
  font-size: .8rem; letter-spacing: .08em; color: var(--dim);
  font-variant-numeric: tabular-nums;
}
.colophon {
  display: grid; grid-template-columns: auto 1fr; gap: .25rem 1.2rem;
  margin: 0 0 1.4rem; font-size: .9rem; line-height: 1.85;
}
.colophon dt {
  font-family: var(--sans); font-weight: 300; font-size: .74rem;
  letter-spacing: .24em; color: var(--dim); padding-top: .25rem;
}
.colophon dd { margin: 0; color: var(--ink); }
.blurb { margin: 0 0 1.1rem; font-size: .98rem; line-height: 1.95; color: var(--ink); max-width: 32em; }
.tp-text { min-width: 0; }
.np.prev { text-align: left; }
.filter-group { min-width: 0; }

/* 试听 */
.listen {
  background: var(--sink); border: 1px solid var(--hair);
  padding: .9rem 1rem 1rem; max-width: 27rem;
}
.listen-h {
  margin: 0 0 .6rem; font-family: var(--sans); font-weight: 300;
  font-size: .72rem; letter-spacing: .26em; color: var(--gold);
}
.listen audio { width: 100%; height: 34px; display: block; }
.listen-ask { margin: .45rem 0 0; font-size: .82rem; }
.listen-ask a {
  color: var(--indigo); letter-spacing: .03em;
  border-bottom: 1px solid color-mix(in srgb, var(--indigo) 38%, transparent);
  padding-bottom: .1rem;
}
.listen-ask a:hover { color: var(--ink); border-color: var(--ink); }
.listen-note {
  margin: .6rem 0 0; font-family: var(--sans); font-weight: 300;
  font-size: .74rem; letter-spacing: .04em; color: var(--dim);
}

/* 版本与出处 */
.source { margin-top: 1.6rem; padding-top: 1.1rem; border-top: 1px solid var(--hair); }
.src-h {
  margin: 0 0 .7rem; font-family: var(--sans); font-weight: 300;
  font-size: .72rem; letter-spacing: .26em; color: var(--dim);
}
.source dl { display: grid; grid-template-columns: auto 1fr; gap: .25rem 1.2rem; margin: 0; }
.source dt {
  font-family: var(--sans); font-weight: 300; font-size: .74rem;
  letter-spacing: .14em; color: var(--dim); padding-top: .2rem;
}
.source dd { margin: 0; font-size: .89rem; color: var(--ink); line-height: 1.75; }
.source i { font-family: var(--latin); }

/* 正文 */
.chapter {
  max-width: var(--measure); margin: 0 auto;
  padding-top: 3.2rem; scroll-margin-top: calc(var(--bar) + 1rem);
}
.chapter h2 {
  display: flex; align-items: baseline; flex-wrap: wrap;
  margin: 0 0 1.8rem; font-size: 1.5rem; font-weight: 500;
  line-height: 1.7; letter-spacing: .1em;
}
.chapter .cn {
  font-family: inherit; font-weight: 500; font-size: 1em;
  letter-spacing: .1em; color: inherit; margin-right: .85em;
}
.chapter .ct { letter-spacing: .1em; }
.chapter p {
  margin: 0 0 1.15rem; text-indent: 2em; font-size: 1.05rem;
  line-height: 2.05; text-align: justify;
}

/* 卷末：上一本 / 全部书目 / 下一本 */
.endleaf {
  display: flex; flex-direction: column; align-items: center; gap: .8rem;
  margin-top: 4rem; padding-top: 2.2rem; border-top: 1px solid var(--hair);
}
.endleaf p { margin: 0; font-size: .85rem; letter-spacing: .5em; text-indent: .5em; color: var(--dim); }
.nextprev {
  display: flex; align-items: stretch; justify-content: space-between;
  gap: .9rem; flex-wrap: wrap; width: 100%; margin-top: .6rem;
}
.np {
  display: flex; flex-direction: column; gap: .3rem;
  flex: 1 1 11rem; min-width: 0; padding: .9rem 1rem;
  border: 1px solid var(--hair); border-radius: 2px;
  transition: border-color .18s ease, background .18s ease;
}
.np:hover { border-color: var(--gold); background: var(--sink); }
.np.next { text-align: right; }
.np.mid {
  flex: 0 0 auto; align-items: center; justify-content: center;
  color: var(--ink-soft); font-size: .88rem; letter-spacing: .12em;
}
.np-k {
  font-family: var(--sans); font-weight: 300; font-size: .7rem;
  letter-spacing: .24em; color: var(--gold);
}
.np-t { font-size: .96rem; letter-spacing: .06em; line-height: 1.5; }

@media (max-width: 900px) {
  .readroom { grid-template-columns: 1fr; gap: 1.4rem; padding-top: 1rem; }
  .rail { position: static; max-height: none; }
  .toc { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 0 1rem; }
  .titlepage { grid-template-columns: 1fr; gap: 1.3rem; }
  .titlepage .cover { max-width: 170px; }
}


/* 封面大图 */
.lightbox {
  position: fixed; inset: 0; z-index: 40; cursor: zoom-out;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  background: rgba(20, 16, 10, .82);
  opacity: 0; transition: opacity .25s ease;
}
.lightbox.in { opacity: 1; }
.lightbox img {
  max-width: min(92vw, 640px); max-height: 90vh; width: auto; height: auto;
  box-shadow: 0 10px 50px rgba(0, 0, 0, .55);
  transform: scale(.97); transition: transform .25s ease;
}
.lightbox.in img { transform: scale(1); }
.lb-x {
  position: absolute; top: 1rem; right: 1.2rem;
  width: 2.4rem; height: 2.4rem; line-height: 1; font-size: 1.5rem;
  color: rgba(255, 252, 245, .85); background: none; border: 0; cursor: pointer;
}
.lb-x:hover { color: #fff; }

/* ══════════════ 英文站 ══════════════
   同一个站的 en/ 一层。配色、纸底、金线全部沿用中文那套，
   只换字体（英文用 Garamond）和少数专有零件。 */

/* 顶栏右侧：语种开关 + 导航 */
.tb-right { display: flex; align-items: center; gap: 1.5rem; justify-content: flex-end; }
.langsw {
  font-family: var(--sans); font-weight: 300; font-size: .78rem;
  letter-spacing: .18em; text-indent: .18em; color: var(--dim);
  border: 1px solid var(--rule); border-radius: 2px; padding: .26rem .7rem;
  transition: color .2s ease, border-color .2s ease;
}
.langsw:hover { color: var(--ink); border-color: var(--gold); }

/* 英文正文：Garamond，字稍大、行距稍松 */
[lang="en"] { font-family: var(--serif-en, "EB Garamond", Georgia, serif); }
.leaf[lang="en"] p { font-size: 1.06rem; line-height: 1.78; text-indent: 1.6em; }
.leaf[lang="en"] .blurb,
.leaf[lang="en"] .weight { text-indent: 0; }
.leaf[lang="en"] .chapter h2 { letter-spacing: .06em; }
.topbar.en .imprint { font-size: .82rem; letter-spacing: .22em; }

/* 书页上的两条小字 */
.ocrnote {
  margin: 0 0 1rem; padding: .7rem .9rem; max-width: 34em;
  font-family: var(--sans); font-weight: 300; font-size: .78rem; line-height: 1.7;
  color: var(--dim); background: var(--sink); border-radius: 2px;
}
.alsoin { margin: 0 0 1.4rem; }
.alsoin a {
  font-size: .95rem; letter-spacing: .04em; color: var(--indigo);
  border-bottom: 1px solid color-mix(in srgb, var(--indigo) 38%, transparent);
  padding-bottom: .12rem;
}
.alsoin a:hover { color: var(--ink); border-color: var(--ink); }

/* 英文首页 */
/* 报头图在上，文字版的同一句话留在 .hero-say 里（视觉隐藏，给搜索引擎和读屏软件） */
.en-hero { padding: clamp(1.8rem, 3.5vw, 2.6rem) 0 1.4rem; text-align: center; }
.en-hero h1 {
  margin: .3rem 0 1rem; font-size: clamp(2rem, 5vw, 2.9rem);
  font-weight: 500; letter-spacing: .03em;
}
.en-lead {
  max-width: 34em; margin: 0 auto 1.6rem;
  font-size: 1.12rem; line-height: 1.72; color: var(--ink-soft);
}
.en-hero .series-stats { justify-content: center; }
.en-intro {
  max-width: 38em; margin: 0 auto; padding: 2.2rem 0 2.6rem;
  border-top: 1px solid var(--hair);
}
.en-intro p { margin: 0 0 1rem; font-size: 1.04rem; line-height: 1.8; color: var(--ink); }
.en-browse {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem 3.4rem; max-width: 52rem; margin: 0 auto; padding: 2.4rem 0 1rem;
  border-top: 1px solid var(--hair);
}
.en-browse h2 { margin: 0 0 .6rem; font-size: 1.02rem; letter-spacing: .16em; color: var(--dim); font-weight: 400; }
.cr-n { color: var(--rule); font-size: .82rem; margin-left: .7rem; }
.en-about {
  max-width: 38em; margin: 0 auto; padding: 2.6rem 0 1rem;
  border-top: 1px solid var(--hair);
}
.en-about h2 { margin: 0 0 1rem; font-size: 1.5rem; font-weight: 500; letter-spacing: .1em; }
.en-about p { margin: 0 0 1rem; font-size: 1.02rem; line-height: 1.8; color: var(--ink-soft); }
.home.en .by { margin: .1rem 0 .5rem; font-size: .9rem; color: var(--ink-soft); }

/* 英文书目：按题材分组的清单 */
.bl-sec { padding: 2rem 0 .4rem; border-top: 1px solid var(--hair); }
.bl-sec h2 { margin: 0 0 .8rem; font-size: 1.2rem; font-weight: 500; letter-spacing: .1em; }
.booklist { list-style: none; margin: 0; padding: 0; }
.booklist li { border-top: 1px solid var(--hair); }
.booklist li:first-child { border-top: none; }
.booklist a {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1.5rem; padding: .62rem .2rem; color: var(--ink);
  transition: color .18s ease, padding .18s ease;
}
.booklist a:hover { color: var(--gold); padding-left: .5rem; }
.bl-t { font-size: 1.02rem; }
.bl-a { flex: 0 0 auto; font-size: .84rem; color: var(--dim); text-align: right; }

@media (max-width: 860px) {
  .booklist a { flex-direction: column; gap: .15rem; }
  .bl-a { text-align: left; }
}

/* 英文书页的字级：英文书名长、章名也长，照中文四个字的尺寸排就显得吵。
   标题收一档、目录收一档，字距放松一点，更像一本书的扉页。 */
.leaf[lang="en"] .titlepage h1 {
  font-size: 1.42rem; letter-spacing: .05em; line-height: 1.4; font-weight: 500;
}
.leaf[lang="en"] .titlepage .en { font-size: .9rem; }
/* 目录栏在 .leaf 外面，得挂到 .readroom 上才匹配得到 */
.readroom[lang="en"] .toc a { font-size: .72rem; line-height: 1.5; letter-spacing: .01em; }
.readroom[lang="en"] .toc .n { font-size: .68rem; }
.readroom[lang="en"] .rail-h { font-size: .6rem; letter-spacing: .22em; }
/* 题眉是个 <p>，会被 .leaf[lang="en"] p 的 1.06rem 盖掉，得多一个类名才压得住 */
.leaf[lang="en"] .eyebrow,
.leaf[lang="en"] .eyebrow a { font-size: .7rem; letter-spacing: .2em; line-height: 1.6; }
/* 基础规则给了 text-indent:.3em（那是为居中排版补字距用的），
   这里是左对齐，留着就会比书名右移一点点——既不左齐也不居中，最难看 */
.leaf[lang="en"] .eyebrow { text-indent: 0; margin-bottom: .2rem; }
.leaf[lang="en"] .chapter h2 { font-size: 1.12rem; letter-spacing: .05em; }

/* 英文扉页的版式：左边封面，右边从题眉到 Rights 顶天立地、与封面等高；
   题解和「中文版」那行落到封面下方，通栏排。 */
/* ① 封面顶与题眉齐——中文版就是这样，切换语言时图片不能跳位
   ② 整个扉页右缘收到与正文同宽：书名、著录、题解的右边都落在正文的右边线上 */
.leaf[lang="en"] .titlepage {
  align-items: stretch;
  margin-right: calc((100% - var(--measure)) / 2);
}
.leaf[lang="en"] .titlepage .cover { align-self: start; }
/* 长书名拆成主标题 + 副标题，副标题小一号、浅一档 */
.leaf[lang="en"] .subtitle {
  margin: .25rem 0 0; font-size: .88rem; line-height: 1.5;
  letter-spacing: .02em; color: var(--ink-soft); text-indent: 0;
}
/* 右栏就五行（题眉、书名、章数、Author、Rights），撑开到与封面差不多高 */
.leaf[lang="en"] .tp-text {
  display: flex; flex-direction: column; justify-content: space-between; gap: .5rem;
}
.leaf[lang="en"] .tp-text .colophon { margin-bottom: 0; }
.leaf[lang="en"] .tp-text .weight { margin: 0; }
/* 题解落到封面下方一点点：左缘跟书名齐（让开封面那一栏），右缘跟正文齐 */
.tp-below {
  grid-column: 1 / -1;
  margin: .2rem 0 0 calc(150px + 1.9rem);
}
/* 封面下方这几行都是 <p>，会吃到 .leaf[lang="en"] p 的 text-indent:1.6em。
   那条带元素名、比纯类名更具体，所以这里也必须带上 p 才压得住。 */
.leaf[lang="en"] .tp-below p { text-indent: 0; }
.tp-below .blurb { max-width: none; margin: 0 0 .9rem; }
.tp-below .alsoin { margin: 0; }
@media (max-width: 640px) { .tp-below { margin-left: 0; } }

/* 英文站的支持栏：跟中文那段同一个分量，底色换一档区隔 */
.en-support {
  max-width: 38em; margin: 0 auto; padding: 2.6rem 0 1rem;
  border-top: 1px solid var(--hair); text-align: center;
}
.en-support h2 { margin: 0 0 1rem; font-size: 1.5rem; font-weight: 500; letter-spacing: .1em; }
.en-support p { margin: 0 0 1.4rem; font-size: 1.02rem; line-height: 1.8; color: var(--ink-soft); }
.en-support .sup-act { margin: 0; }

/* 英文首页「Start here」：把「All titles →」挪到标题旁边，不甩到最右边 */
.en-sec-head { justify-content: flex-start; }
.head-row {
  display: flex; align-items: baseline; gap: 1.1rem; flex-wrap: wrap; margin: 0;
}
.head-row .h2like {
  font-size: 1.5rem; font-weight: 500; letter-spacing: .15em; line-height: 1.5; color: var(--ink);
}

/* 导读：排在扉页与正文之间，像书前那篇序。与正文同宽，字稍小一档，
   底色压深半档，读者一眼能分出「这还不是正文」。 */
.intro {
  max-width: var(--measure); margin: 2.4rem auto 0;
  padding: 1.8rem 0 2rem; border-top: 1px solid var(--hair);
}
.intro h2 {
  margin: 0 0 1.2rem; font-size: .84rem; font-family: var(--sans); font-weight: 300;
  letter-spacing: .34em; text-indent: .34em; color: var(--dim);
}
.intro p {
  margin: 0 0 1rem; font-size: .97rem; line-height: 2.0;
  color: var(--ink-soft); text-indent: 2em;
}
.intro p:last-child { margin-bottom: 0; }
.rail-intro {
  display: block; margin: 0 0 .7rem; padding: .3rem .4rem .3rem .7rem;
  font-size: .9rem; letter-spacing: .1em; color: var(--gold);
  border-left: 2px solid transparent;
}
.rail-intro:hover { border-left-color: var(--gold); }

/* 英文书目分成「按题材」「按作者身份」两部分；锚点跳转要给常驻横条让位 */
.bl-sec { scroll-margin-top: calc(var(--bar) + 1.2rem); }
.bl-part {
  margin: 3rem 0 .4rem; font-family: var(--sans); font-weight: 300;
  font-size: .8rem; letter-spacing: .3em; text-indent: .3em; color: var(--dim);
}
.bl-part:first-child { margin-top: 1.6rem; }
