/* 字体子集是 tools/build_fonts.py 按当前文案生成的，文件名不变、内容会变。
   图片/字体在服务器上缓存 30 天，所以这里带 ?v=：改了文案重建字体后，
   把 v 换成当天日期（和 index.html 里的 preload 保持一致），否则老访客拿到的是旧子集，
   新增的字会掉回系统宋体。 */
@font-face {
  font-family: 'Xuyang Serif';
  src: url('../assets/fonts/serif-regular.woff2?v=20261031p') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Xuyang Serif';
  src: url('../assets/fonts/serif-bold.woff2?v=20261031p') format('woff2');
  font-weight: 700;
  font-display: swap;
}

/* ================= 设计令牌 ================= */
:root {
  --paper: #fdf5ea;
  --paper-2: #faefdf;
  --paper-3: #f6e6d1;
  --ink: #3f3a34;
  --ink-2: #5f574d;
  --ink-3: #75695d;
  --orange: #ba590d;
  /* 小字号（12–15px）用这一档：原橙色在纸底上对比度只有 4.3，大面积标题够用，
     小字却发飘。这档 4.7，肉眼几乎看不出色差，读起来实一些。 */
  --orange-text: #b1530a;
  --orange-2: #d1791f;
  --gold: #e8a94e;
  --line: rgba(63, 58, 52, 0.13);
  --line-warm: rgba(186, 89, 13, 0.2);
  --dark: #2b241d;

  --pad: clamp(20px, 5vw, 76px);
  --maxw: 1280px;
  --edge: max(var(--pad), calc((100vw - 1280px) / 2 + var(--pad)));

  --fs-h1: clamp(38px, 5.4vw, 78px);
  --fs-display: clamp(28px, 3.9vw, 56px);
  --fs-h3: clamp(20px, 1.7vw, 25px);
  --fs-lead: clamp(15.5px, 1.22vw, 18px);
  --fs-body: clamp(15px, 1.05vw, 16.5px);
  /* 小标题（栏目名 / 章节标记 / 样章标签）——12px 配 0.3em 字距在宋体里太细太散，
     远看像一条灰线。放大到 14px 并把字距收回一点，笔画才立得住。 */
  --fs-cap: 15px;

  --ease: cubic-bezier(0.22, 0.78, 0.28, 1);
  --nav-h: 88px;
}

/* ================= 基础 ================= */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Xuyang Serif', 'Source Han Serif SC', 'Songti SC', serif;
  font-size: var(--fs-body);
  line-height: 1.9;
  letter-spacing: 0.012em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, figure, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
em { font-style: normal; }

::selection { background: rgba(232, 169, 78, 0.34); color: var(--ink); }

/* 中文默认任意两字之间都能断行，浏览器不认识词，于是会把「而是」「记取」这类词
   拆到两行。tools/wrap_words.py 用分词把词包成 .nw，靠 nowrap 让它整体换行。 */
.nw { white-space: nowrap; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { padding-block: clamp(88px, 11vw, 168px); position: relative; }

/* ================= 滚动进度条 ================= */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 120;
  pointer-events: none;
}
.progress i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--orange));
  transition: width 0.1s linear;
}

/* ================= 胶囊导航 ================= */
/* 三个胶囊统一 64px 高、中线对齐：之前 logo 胶囊按 72px（图 56 + 上下留白）、
   另两个 46px，并排看是一高一低一窄，像没装齐。 */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--pad);
  pointer-events: none;
}
.nav-left { display: flex; gap: 10px; align-items: center; }

.pill {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 64px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(253, 248, 241, 0.82);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  color: var(--ink);
  font-size: 14px;
  letter-spacing: 0.1em;
  transition: background 0.35s var(--ease), border-color 0.35s, transform 0.35s var(--ease);
}
.pill:hover { background: #fff; border-color: var(--line-warm); }

/* 头部 logo：直接用官方完整锁定版（图形 + 字标 + 标语的原始排版），不重排、不裁切。
   整图 52px 高时标语约 8.2px，是位图缩放下还能认得出的下限，再小就糊成灰线。
   胶囊 64px、图垂直居中，与旁边两个胶囊等高。 */
.pill.pill-logo { height: 64px; padding: 0 22px 0 20px; }
.pill-logo img { display: block; height: 52px; width: auto; }

.pill-tel { letter-spacing: 0.1em; }
.pill-tel svg { width: 15px; height: 15px; fill: none; stroke: var(--orange); stroke-width: 1.6; }

.pill-menu { gap: 10px; padding-inline: 20px; }
.pill-menu svg {
  width: 13px; height: 13px; fill: none; stroke: currentColor;
  stroke-width: 1.7; transition: transform 0.45s var(--ease);
}
.pill-menu[aria-expanded='true'] svg { transform: rotate(135deg); }

.nav.is-pinned .pill {
  background: rgba(253, 248, 241, 0.95);
  box-shadow: 0 10px 30px -20px rgba(63, 58, 52, 0.55);
}

/* 滚动后给导航垫一层纸色渐隐：不给的话，正文会从胶囊之间的缝隙里透出来，
   尤其在手机上，看起来像字压在 logo 上。首屏不加，保持清爽。 */
.nav::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: calc(100% + 52px);
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper) 72%, rgba(253, 245, 234, 0) 100%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
  z-index: -1;
}
.nav.is-pinned::before { opacity: 1; }

/* ================= 目录 ================= */
.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--paper);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s var(--ease), visibility 0.55s;
}
.menu.is-open { opacity: 1; visibility: visible; }

.menu-bg { position: relative; overflow: hidden; }
.menu-bg::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 320px;
  background: linear-gradient(0deg, var(--paper) 8%, rgba(253, 245, 234, 0.72) 46%, rgba(253, 245, 234, 0) 100%);
  pointer-events: none;
}
.menu-bg img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 1.4s var(--ease);
}
.menu.is-open .menu-bg img { transform: scale(1); }

.menu-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 120px clamp(28px, 6vw, 90px) 100px;
}
.menu-list a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), color 0.3s;
}
.menu.is-open .menu-list a { opacity: 1; transform: none; }
.menu-list a:nth-child(1) { transition-delay: 0.1s; }
.menu-list a:nth-child(2) { transition-delay: 0.15s; }
.menu-list a:nth-child(3) { transition-delay: 0.2s; }
.menu-list a:nth-child(4) { transition-delay: 0.25s; }
.menu-list a:nth-child(5) { transition-delay: 0.3s; }
.menu-list a:nth-child(6) { transition-delay: 0.35s; }
.menu-list a:nth-child(7) { transition-delay: 0.4s; }
.menu-list a:nth-child(8) { transition-delay: 0.45s; }

.menu-list i {
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--orange);
  width: 2em;
  flex: none;
}
.menu-list span { font-size: clamp(19px, 2vw, 26px); letter-spacing: 0.06em; }
.menu-list a:hover { color: var(--orange); }

.menu-foot {
  position: absolute;
  left: clamp(28px, 6vw, 90px);
  bottom: 44px;
  font-size: 12.5px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  line-height: 2;
}

/* ================= 首页 ================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 120px;
  overflow: hidden;
}

.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 72% center;
  will-change: transform;
}

.hero-veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(96deg, rgba(253, 245, 234, 0.97) 0%, rgba(253, 245, 234, 0.93) 26%, rgba(253, 245, 234, 0.62) 48%, rgba(253, 245, 234, 0.12) 70%, rgba(253, 245, 234, 0) 86%),
    linear-gradient(180deg, rgba(253, 245, 234, 0.55) 0%, rgba(253, 245, 234, 0) 22%, rgba(253, 245, 234, 0) 74%, rgba(253, 245, 234, 0.88) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.eyebrow {
  font-size: var(--fs-cap);
  letter-spacing: 0.28em;
  color: var(--orange-text);
  margin-bottom: 26px;
}

h1 {
  font-weight: 700;
  line-height: 1.26;
  letter-spacing: 0.02em;
}
.h1-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}
.h1-in {
  display: block;
  font-size: var(--fs-h1);
}
.js .h1-in {
  transform: translateY(108%);
  transition: transform 1.15s var(--ease) var(--d, 0s);
}
.js .h1-in.in { transform: translateY(0); }
.h1-em .h1-in {
  color: var(--orange);
  font-size: clamp(26px, 3.3vw, 46px);
  line-height: 1.4;
  margin-top: 6px;
  letter-spacing: 0.04em;
}

.hero-lead {
  margin-top: 30px;
  max-width: 490px;
  font-size: var(--fs-lead);
  line-height: 2.1;
  color: var(--ink-2);
}

.hero-actions {
  margin-top: 38px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  padding: 0 34px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff8ee;
  font-size: 15px;
  letter-spacing: 0.16em;
  border: 1px solid var(--orange);
  transition: background 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s;
  box-shadow: 0 16px 30px -18px rgba(186, 89, 13, 0.75);
}
.btn:hover {
  background: #a54d09;
  transform: translateY(-2px);
  box-shadow: 0 20px 36px -16px rgba(186, 89, 13, 0.7);
}

.btn-text {
  font-size: 14.5px;
  letter-spacing: 0.14em;
  color: var(--ink);
  border-bottom: 1px solid var(--line-warm);
  padding-bottom: 5px;
  transition: color 0.3s, border-color 0.3s;
}
.btn-text span { display: inline-block; transition: transform 0.35s var(--ease); }
.btn-text:hover { color: var(--orange); border-color: var(--orange); }
.btn-text:hover span { transform: translateX(5px); }

.hero-facts {
  margin-top: 52px;
  display: flex;
  gap: clamp(20px, 3.4vw, 46px);
  flex-wrap: wrap;
}
.hero-facts li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
}
.hero-facts b {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(253, 248, 241, 0.6);
  backdrop-filter: blur(10px);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--ink-2);
  transition: border-color 0.35s, background 0.35s;
}
.scroll-hint:hover { border-color: var(--line-warm); background: rgba(255, 252, 247, 0.9); }
.scroll-hint svg {
  width: 13px; height: 13px;
  fill: none; stroke: var(--orange); stroke-width: 1.6;
  animation: nudge 2.4s var(--ease) infinite;
}
@keyframes nudge {
  0%, 100% { transform: translateY(-1px); }
  50% { transform: translateY(4px); }
}

/* ================= 章节标记 ================= */
.chapter-no {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-cap);
  letter-spacing: 0.22em;
  color: var(--ink-2);
  margin-bottom: 24px;
}
.chapter-no::before {
  content: '';
  width: 26px;
  height: 1px;
  background: var(--orange);
  opacity: 0.55;
  flex: none;
}
.chapter-no i { font-style: normal; color: var(--orange); font-weight: 700; }
.chapter-no.light { color: rgba(253, 245, 234, 0.62); }

.display {
  font-weight: 700;
  font-size: var(--fs-display);
  line-height: 1.38;
  letter-spacing: 0.025em;
}

.display-sub {
  margin-top: 22px;
  font-size: clamp(16px, 1.5vw, 21px);
  line-height: 1.85;
  color: var(--orange);
  letter-spacing: 0.03em;
}

.sec-intro {
  font-size: var(--fs-body);
  line-height: 2.05;
  color: var(--ink-2);
  max-width: 400px;
}

.sec-head { margin-bottom: clamp(48px, 6vw, 82px); }
.sec-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
}
.sec-head-row .sec-intro { padding-bottom: 8px; }

/* ================= 壹 · 序 ================= */
/* 底部不再留 section 级空白：序章图之后就接三幕。
   图与图之间的纸色只留图注那一行，避免一条整幅宽的纯色横带。 */
.overture {
  padding-top: clamp(80px, 10vw, 150px);
  /* 底部留一段余量给图淡出。不留的话图贴着区块下沿被硬切，
     田垄是最深的一段橙，会在页脚前甩出一条横带。 */
  padding-bottom: clamp(40px, 7vw, 96px);
  position: relative;
  /* 梯田插画作为整节的底衬，贴在区块底部，宽度铺满、高度按比例。
     原先是正文之后一条独立的 560px 图带，序章因此有 1.6 屏高，
     看得到文字就看不到图、看到图文字已经滚走，两者永远错开。 */
  background: url('../assets/scene/field.webp') center bottom / 100% auto no-repeat;
  background-color: var(--paper);
  /* 正文背后那层纸洗会略微探到本节下沿之外，裁掉，免得在下一区顶部留一道浅色。 */
  overflow: hidden;
}

/* 纸色蒙版：上浓下淡，最底部再收回纸色接住三幕。
   正文落在 40%~70% 这一段，蒙版必须压到 0.85 以上才够 4.5:1 的对比，
   再往下一路放到透明，让田垄在页面下缘完整露出来。
   横向再叠一层 mask：左侧（标题、正文）压满，越过正文右缘一路放到零。
   插画里那户人家、树影和炊烟落在页面七成半处，原来被这层 0.93 的纸色
   盖成一团浅影，整片天空也跟着糊白；现在只在文字一侧上雾，画留在纸上。 */
.overture::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(253, 245, 234, 0.97) 0%,
    rgba(253, 245, 234, 0.95) 40%,
    rgba(253, 245, 234, 0.9) 62%,
    rgba(253, 245, 234, 0.7) 70%,
    rgba(253, 245, 234, 0.3) 78%,
    rgba(253, 245, 234, 0.08) 86%,
    rgba(253, 245, 234, 0) 92%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    #000 0%,
    #000 52%,
    rgba(0, 0, 0, 0.9) 56%,
    rgba(0, 0, 0, 0.6) 62%,
    rgba(0, 0, 0, 0.18) 68%,
    transparent 74%
  );
  mask-image: linear-gradient(
    90deg,
    #000 0%,
    #000 52%,
    rgba(0, 0, 0, 0.9) 56%,
    rgba(0, 0, 0, 0.6) 62%,
    rgba(0, 0, 0, 0.18) 68%,
    transparent 74%
  );
}

/* 底部接色带单独一层、横向不羽化：上面那层在右侧已经放空，
   靠它把画面下缘收回纸色，三幕接上来时不会甩出一条深色横带。 */
.overture::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 12%;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(253, 245, 234, 0) 0%,
    rgba(253, 245, 234, 0.55) 66%,
    var(--paper) 100%
  );
}

.overture > .wrap { position: relative; z-index: 1; }

.overture-head { max-width: 900px; }
.overture-head .display { margin-top: 4px; }

.overture-body {
  margin-top: clamp(46px, 6vw, 80px);
  display: grid;
  grid-template-columns: minmax(0, 620px) 1fr;
  gap: 60px;
  align-items: start;
}

.prose p {
  color: var(--ink-2);
  line-height: 2.15;
  margin-bottom: 1.3em;
}

/* 序章的正文压在插画上，原来垫的是一枚径向纸雾，中心够浓、边缘掉得太快。
   最后两段正好落在画面最饱和的一段田垄上，橙色水纹从字缝里穿过去，
   实测正文与背景的对比度降到 3.9:1（「奉归本人」那句更低），字和画糊成一片。
   改成一整块「软边纸洗」：横向用纸色渐隐，左右两端都收到 0，切不出矩形轮廓；
   纵向用 mask 做上下羽化，边缘看不出补丁。
   透明度压在 .85，底下的笔触还留 15%，画面没有变成死白，正文对比度提到 6:1。
   右侧外扩 180px 留足洗边；那户人家在页面 72% 一线、正文列之外，
   外头的整节纸色蒙版在这一段正好收到零，两者不打架。 */
.overture-body .prose { position: relative; }
.overture-body .prose::before {
  content: '';
  position: absolute;
  inset: -90px -180px -120px -150px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(253, 245, 234, 0) 0%,
    rgba(253, 245, 234, 0.85) 11%,
    rgba(253, 245, 234, 0.88) 52%,
    rgba(253, 245, 234, 0.85) 84%,
    rgba(253, 245, 234, 0) 100%
  );
  -webkit-mask-image: linear-gradient(
    180deg,
    transparent 0%,
    #000 14%,
    #000 82%,
    transparent 100%
  );
  mask-image: linear-gradient(
    180deg,
    transparent 0%,
    #000 14%,
    #000 82%,
    transparent 100%
  );
}
.prose p:last-child { margin-bottom: 0; }
.prose em, .prose .prose-em {
  color: var(--ink);
  font-size: calc(var(--fs-body) + 1px);
}
.prose strong { color: var(--orange); font-weight: 700; white-space: nowrap; }

.band {
  --band-h: clamp(280px, 46vw, 560px);
  margin-top: clamp(56px, 8vw, 110px);
  margin-bottom: clamp(18px, 3vw, 48px);
  position: relative;
  /* 桌面端已把这张画做成序章整节的底衬，这条独立图带只在手机上用：
     手机一屏装不下「文字 + 图」，压在下面会糊成一片，只能让它跟在文字后头。 */
  display: none;
}
/* 图片视差会放大 1.14，溢出必须由这一层裁掉，
   否则图会压到 figcaption 同一行，底下露出一截残条。 */
.band-frame {
  position: relative;
  height: var(--band-h);
  overflow: hidden;
  background: var(--paper);
}
.band img {
  display: block;
  width: 100%;
  height: var(--band-h);
  object-fit: cover;
  object-position: center 60%;
  will-change: transform;
  transform: scale(1.14);
}
/* 原图 1.78:1，容器约 2.5:1，cover 必然把下沿田垄切成一条平口。
   这里用纸色渐变把上下边缘化掉，让插画自己淡进纸底，不出现直线断口。 */
.band-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--paper) 0%, rgba(253, 245, 234, 0) 6%),
    linear-gradient(180deg, rgba(253, 245, 234, 0) 86%, rgba(253, 245, 234, 0.62) 94%, var(--paper) 99.6%);
  pointer-events: none;
}
/* 图注已去掉，图与下一幕之间只留一段纸色呼吸，不再有文字。
   上下两边都是渐变淡出/淡入，颜色一致，不会形成横带。 */

/* ================= 贰 · 三幕 ================= */
/* 三幕区高度 = 一屏 + 三幕各自的滚动行程。
   行程 400px/幕 ≈ 鼠标滚轮四格（Windows Chrome 一格 100px）。
   200px/幕 时滚轮两格就换一幕，手一快惯性就冲过第二幕；
   400px 让每一幕都停得住，又不至于像原来 340vh 那样滚半天没反应。 */
.chapters {
  position: relative;
  height: calc(100svh + 1200px);
  background: var(--paper);
}
.chap-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
}

.chap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s var(--ease), visibility 0.55s;
}
.chap.is-on { opacity: 1; visibility: visible; }

.chap-media { position: absolute; inset: 0; }
.chap-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 68% center;
  transform: scale(1.08);
  transition: transform 1.6s var(--ease);
}
.chap.is-on .chap-media img { transform: scale(1); }

.chap::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    /* 顶部与上一区块（纸色）柔接：否则全屏插画顶上是一条笔直的切口。
       只留 10%（约 100px）做过渡，再长就又是一条白带。 */
    linear-gradient(180deg, var(--paper) 0%, rgba(253, 245, 234, 0.55) 3.5%, rgba(253, 245, 234, 0) 10%),
    linear-gradient(92deg, rgba(253, 245, 234, 0.96) 0%, rgba(253, 245, 234, 0.88) 30%, rgba(253, 245, 234, 0.34) 56%, rgba(253, 245, 234, 0) 78%),
    linear-gradient(0deg, rgba(253, 245, 234, 0.96) 0%, rgba(253, 245, 234, 0) 10%);
  pointer-events: none;
}

.chap-copy {
  position: relative;
  z-index: 2;
  width: min(100% - 2 * var(--pad), 560px);
  margin-left: var(--edge);
  padding-block: 40px;
}

.chap-tag {
  font-size: var(--fs-cap);
  letter-spacing: 0.24em;
  color: var(--orange-text);
  margin-bottom: 20px;
}
.chap-copy h3 {
  font-size: clamp(24px, 2.9vw, 40px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.02em;
}
.chap-sub {
  margin-top: 18px;
  font-size: clamp(15px, 1.35vw, 18px);
  /* 15~18px 的橙色落在纸底上只有 4.26，长句读起来发飘；
     换到专为小字调深过的那一档，色差肉眼看不出，对比度到 4.9。 */
  color: var(--orange-text);
  letter-spacing: 0.04em;
  line-height: 1.9;
}
.chap-body {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line-warm);
  color: var(--ink-2);
  line-height: 2.05;
  max-width: 430px;
}

.chap > .chap-copy > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.chap.is-on .chap-copy > * { opacity: 1; transform: none; }
.chap.is-on .chap-copy > *:nth-child(1) { transition-delay: 0.05s; }
.chap.is-on .chap-copy > *:nth-child(2) { transition-delay: 0.1s; }
.chap.is-on .chap-copy > *:nth-child(3) { transition-delay: 0.16s; }
.chap.is-on .chap-copy > *:nth-child(4) { transition-delay: 0.22s; }

.chap-hud {
  position: absolute;
  z-index: 3;
  left: var(--edge);
  bottom: 42px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
}
.chap-idx { font-size: 17px; color: var(--orange); font-weight: 700; }
.chap-rule {
  width: 86px;
  height: 1px;
  background: var(--line);
  display: block;
  overflow: hidden;
}
.chap-rule i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--orange);
  transition: width 0.3s linear;
}

/* ================= 叁 · 服务 ================= */
.services { background: var(--paper); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
}
.service {
  position: relative;
  padding: clamp(30px, 3.4vw, 48px) clamp(22px, 3vw, 46px) clamp(34px, 3.6vw, 52px);
  border-bottom: 1px solid var(--line);
  transition: background 0.45s var(--ease);
}
.service:nth-child(odd) { border-right: 1px solid var(--line); }
.service:hover { background: var(--paper-2); }

.service-no {
  display: block;
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--orange);
  margin-bottom: 22px;
}
.service h3 {
  font-size: var(--fs-h3);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}
.service p { color: var(--ink-2); line-height: 2.05; max-width: 42ch; }
.service-points {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.service-points li {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-2);
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

/* ================= 肆 · 流程 ================= */
.process { background: var(--paper-2); }
.process-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.process-aside { position: sticky; top: calc(var(--nav-h) + 34px); }
.process-aside .display { margin-bottom: 26px; }

.steps { position: relative; }
.steps::before {
  content: '';
  position: absolute;
  left: 18.5px;
  top: 14px;
  bottom: 40px;
  width: 1px;
  background: var(--line);
}
.steps::after {
  content: '';
  position: absolute;
  left: 18.5px;
  top: 14px;
  width: 1px;
  height: var(--fill, 0%);
  background: linear-gradient(180deg, var(--orange), var(--gold));
  transition: height 0.25s linear;
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 0 0 clamp(36px, 4vw, 54px);
}
.step:last-child { padding-bottom: 0; }
.step-no {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper-2);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--ink-3);
  transition: color 0.4s, border-color 0.4s, background 0.4s;
}
.step.on .step-no {
  color: #fff8ee;
  background: var(--orange);
  border-color: var(--orange);
}
.step h3 {
  font-size: var(--fs-h3);
  font-weight: 700;
  letter-spacing: 0.04em;
  padding-top: 4px;
}
.step p {
  margin-top: 10px;
  color: var(--ink-2);
  line-height: 2.05;
  max-width: 40ch;
}

/* ================= 伍 · 成书 ================= */
.works { background: var(--paper); overflow: hidden; }

.gallery-wrap { position: relative; }
.gallery-wrap:not(.is-scrollable) .gallery-hud { display: none; }
.gallery-wrap:not(.is-scrollable) .gallery { cursor: default; }
.gallery {
  display: flex;
  gap: clamp(20px, 2.6vw, 40px);
  padding: 8px var(--edge) 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--edge);
  scrollbar-width: none;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery.is-drag { cursor: grabbing; scroll-snap-type: none; }

.slide {
  flex: 0 0 auto;
  width: clamp(240px, 25vw, 348px);
  scroll-snap-align: start;
}
.slide-btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid rgba(63, 58, 52, 0.09);
  background: var(--paper-3);
  overflow: hidden;
  box-shadow:
    0 26px 46px -34px rgba(63, 58, 52, 0.55),
    0 2px 6px rgba(63, 58, 52, 0.05);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), border-color 0.6s;
}
/* 卡片里的版式图缩到 300 多像素，字必然看不清。
   右下角给一个放大标记，让人知道能点开；触屏没有 hover，就常显。 */
.slide-btn::after {
  content: '';
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  /* 颜色必须用 background-color 单独给：写进 background 简写里跟 url 并列是无效语法，
     整条声明会被丢弃，圆标只剩一圈阴影、图标不出现。 */
  background-color: rgba(253, 248, 241, 0.97);
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23BA590D' stroke-width='1.9' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.8'/%3E%3Cpath d='M15.6 15.6 21 21'/%3E%3Cpath d='M10.5 7.6v5.8M7.6 10.5h5.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 19px 19px;
  box-shadow:
    inset 0 0 0 1px rgba(186, 89, 13, 0.38),
    0 4px 14px -4px rgba(63, 58, 52, 0.34);
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), background-color 0.3s;
}
.slide-btn:hover::after,
.slide-btn:focus-visible::after { opacity: 1; transform: none; }
@media (hover: none) {
  .slide-btn::after { opacity: 0.9; transform: none; }
}
.slide-btn img {
  width: 100%;
  transition: transform 1s var(--ease);
}
.slide-btn:hover { transform: translateY(-6px); box-shadow: 0 40px 70px -40px rgba(63, 58, 52, 0.55); }
.slide-btn:hover img { transform: scale(1.02); }

.slide figcaption {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 18px;
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
}
.slide figcaption b { color: var(--ink); font-weight: 700; letter-spacing: 0.14em; }

.gallery-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: var(--maxw);
  margin: clamp(28px, 3vw, 42px) auto 0;
  padding-inline: var(--pad);
}
.g-num { font-size: 12px; letter-spacing: 0.14em; color: var(--ink-3); }
.g-num b { color: var(--orange); font-size: 16px; }
.g-arrows { display: flex; gap: 8px; }
.g-arrows button {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 15px;
  color: var(--ink-2);
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.g-arrows button:hover { background: var(--orange); border-color: var(--orange); color: #fff8ee; }

.works-note {
  margin-top: clamp(30px, 3.6vw, 46px);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  max-width: 620px;
  padding-left: 16px;
  border-left: 2px solid var(--line-warm);
  line-height: 1.95;
}

/* ================= 伍 · 样章 ================= */
.excerpt {
  padding-block: clamp(64px, 8.5vw, 118px);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255, 252, 245, 0.9) 0%, rgba(246, 230, 209, 0) 62%),
    var(--paper-3);
  border-top: 1px solid rgba(63, 58, 52, 0.07);
  border-bottom: 1px solid rgba(63, 58, 52, 0.07);
}

.excerpt-inner {
  width: min(100% - 2 * var(--pad), 700px);
  margin-inline: auto;
}

.excerpt-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: clamp(30px, 4vw, 46px);
  font-size: var(--fs-cap);
  letter-spacing: 0.24em;
  color: var(--ink-2);
}
.excerpt-eyebrow i {
  font-style: normal;
  color: var(--orange);
  font-weight: 700;
  letter-spacing: 0.26em;
}
.excerpt-eyebrow span { letter-spacing: 0.14em; }

/* 书页 */
.page-card {
  position: relative;
  background: #fffbf2;
  padding: clamp(32px, 4.6vw, 64px) clamp(24px, 4.6vw, 60px) clamp(24px, 3.4vw, 42px);
  border: 1px solid rgba(63, 58, 52, 0.07);
  box-shadow:
    0 44px 80px -54px rgba(63, 58, 52, 0.72),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.page-tag {
  position: absolute;
  top: -11px;
  right: clamp(18px, 4vw, 46px);
  padding: 5px 13px 5px 15px;
  background: var(--orange);
  color: #fff6e8;
  font-size: 10.5px;
  letter-spacing: 0.34em;
  line-height: 1.5;
  box-shadow: 0 10px 22px -14px rgba(186, 89, 13, 0.9);
}

.page-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  color: var(--ink-3);
}

.page-title {
  margin: clamp(26px, 3.6vw, 44px) 0 clamp(20px, 3vw, 34px);
  text-align: center;
  font-size: clamp(23px, 2.8vw, 32px);
  font-weight: 700;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  color: var(--ink);
}

.page-body p {
  margin-bottom: 1.05em;
  font-size: clamp(14.6px, 1.3vw, 16.8px);
  line-height: 2.16;
  letter-spacing: 0.015em;
  color: var(--ink-2);
  text-indent: 2em;
}
.page-body p:first-of-type {
  text-indent: 0;
  font-size: clamp(16.6px, 1.5vw, 19px);
  line-height: 2.05;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.page-body blockquote {
  margin: 2em 0 1.8em;
  padding: 1.45em 1.1em;
  border-top: 1px solid var(--line-warm);
  border-bottom: 1px solid var(--line-warm);
  font-size: clamp(15.8px, 1.46vw, 18.2px);
  line-height: 2.06;
  letter-spacing: 0.035em;
  color: var(--ink);
  text-indent: 0;
}

.page-sign {
  text-align: right;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  text-indent: 0 !important;
}

.page-foot {
  margin-top: clamp(20px, 2.6vw, 30px);
  text-align: center;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  color: var(--ink-3);
}
.page-foot::before { content: '— '; }
.page-foot::after { content: ' —'; }

.excerpt-note {
  margin-top: clamp(22px, 3vw, 32px);
  text-align: center;
  font-size: 12.5px;
  line-height: 2;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}

/* ================= 陆 · 关于 ================= */
.about { background: var(--paper-2); }
.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(40px, 5.4vw, 88px);
  align-items: start;
}
.about-copy .display { margin-bottom: 30px; }
.about-copy > p { color: var(--ink-2); line-height: 2.15; margin-bottom: 1.1em; max-width: 46ch; }

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 34px;
}
.about-tags li {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--ink-2);
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.about-card {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  padding: clamp(26px, 3vw, 40px);
  position: sticky;
  top: calc(var(--nav-h) + 30px);
}
.about-card dl > div {
  display: grid;
  grid-template-columns: 5.6em 1fr;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.about-card dl > div:first-child { padding-top: 0; }
.about-card dt { font-size: 12.5px; letter-spacing: 0.14em; color: var(--ink-3); }
.about-card dd { font-size: 14px; line-height: 1.85; color: var(--ink); }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  font-size: 13.5px;
  letter-spacing: 0.12em;
  color: var(--orange);
  border-bottom: 1px solid var(--line-warm);
  padding-bottom: 4px;
}
.card-link span { transition: transform 0.35s var(--ease); }
.card-link:hover span { transform: translateX(5px); }

/* ================= 柒 · 顾虑 ================= */
.faq { background: var(--paper); }
.faq-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(36px, 5vw, 84px);
  align-items: start;
}
.faq-head { position: sticky; top: calc(var(--nav-h) + 34px); }
.faq-head .display { margin-bottom: 24px; }

.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 24px 54px 24px 0;
  font-size: clamp(15.5px, 1.3vw, 17.5px);
  letter-spacing: 0.03em;
  transition: color 0.3s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--orange); }
.faq-list summary::after {
  content: '';
  position: absolute;
  right: 8px;
  top: 50%;
  width: 13px;
  height: 13px;
  margin-top: -6px;
  background:
    linear-gradient(var(--orange), var(--orange)) center/13px 1px no-repeat,
    linear-gradient(var(--orange), var(--orange)) center/1px 13px no-repeat;
  transition: background 0.35s, transform 0.4s var(--ease);
}
.faq-list details[open] summary { color: var(--orange); }
.faq-list details[open] summary::after {
  background: linear-gradient(var(--orange), var(--orange)) center/13px 1px no-repeat;
  transform: rotate(180deg);
}
.faq-body { padding: 0 54px 26px 0; }
.faq-body p { color: var(--ink-2); line-height: 2.1; max-width: 54ch; }

/* ================= 收束 ================= */
.closing {
  position: relative;
  min-height: 74svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.closing-media { position: absolute; inset: 0; }
.closing-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 70% center;
}
.closing::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(94deg, rgba(253, 245, 234, 0.95) 0%, rgba(253, 245, 234, 0.86) 34%, rgba(253, 245, 234, 0.22) 62%, rgba(253, 245, 234, 0) 82%),
    linear-gradient(180deg, var(--paper) 0%, rgba(253, 245, 234, 0) 14%);
}
.closing-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}
/* 品牌标语：一句读完，中间既不断行也不留缝。
   原来用 inline-flex 排短横，句子里每个文本节点（「煦暖」「·」「落笔」……）
   都成了一个 flex item，被 gap 撑成「煦暖 岁月 · 落笔 成田」——恰是最不该断的地方。
   现在短横改为绝对定位的伪元素，整句是一个整体的 inline-block，再锁 nowrap：
   任何宽度下都不会被拆开。字号、字距比章节号各提一档，颜色用正文墨色，
   比原来的 --ink-2 更实，作为整页第一句话先把气势立住。 */
.closing-copy .closing-mark {
  position: relative;
  display: inline-block;
  margin: 0 0 22px;
  padding-left: 52px;
  font-size: clamp(17px, 1.55vw, 21px);
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--ink);
  white-space: nowrap;
}
.closing-copy .closing-mark::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 38px;
  height: 2px;
  background: var(--orange);
  transform: translateY(-50%);
}
.closing-copy h2 {
  font-size: clamp(26px, 3.6vw, 52px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.03em;
  max-width: 15em;
}
.closing-copy p {
  margin-top: 22px;
  font-size: clamp(15px, 1.4vw, 19px);
  color: var(--orange);
  letter-spacing: 0.08em;
}
.closing-tel {
  display: inline-block;
  margin-top: 34px;
  font-size: clamp(30px, 4.4vw, 60px);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  border-bottom: 2px solid var(--line-warm);
  padding-bottom: 6px;
  transition: color 0.35s, border-color 0.35s;
}
.closing-tel:hover { color: var(--orange); border-color: var(--orange); }

/* ================= 捌 · 联系 ================= */
.contact { background: var(--paper-2); }
.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(40px, 5vw, 90px);
  align-items: start;
}
.contact-copy .display { margin-bottom: 26px; }
.contact-lead { color: var(--ink-2); line-height: 2.1; margin-bottom: 34px; }

.contact-list { border-top: 1px solid var(--line); }
.contact-list li {
  display: grid;
  grid-template-columns: 4.6em 1fr;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.contact-list span { font-size: 12.5px; letter-spacing: 0.14em; color: var(--ink-3); }
.contact-list b { font-weight: 400; line-height: 1.8; }
.contact-list a { color: var(--orange); border-bottom: 1px solid var(--line-warm); }

/* 蜜罐字段：人看不到，机器人会填 */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* 微信二维码（CONTACT.wechatQr 有值才显示）。
   图片本身已带 4 个模块的静区，这里只垫一层极薄的底，不要再叠厚白边。 */
.contact-qr {
  margin: 24px 0 0;
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 10px 9px;
  background: #fff;
  border: 1px solid var(--line);
}
.contact-qr img { display: block; width: 160px; height: 160px; }
/* display: inline-flex 会盖掉 hidden 自带的 display:none，
   没配二维码时会露出一个破图框——必须显式隐藏 */
.contact-qr[hidden] { display: none; }
.contact-qr figcaption {
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  text-align: center;
}

.contact-form {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--line);
  padding: clamp(24px, 3.2vw, 44px);
}
.field { margin-bottom: 24px; }
.field label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 9px 0;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  border-radius: 0;
  transition: border-color 0.35s;
}
.field textarea { resize: vertical; line-height: 1.9; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(147, 134, 122, 0.8); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--orange);
}
.field select { appearance: none; background-image: none; }

.btn-block { width: 100%; margin-top: 6px; }

.form-tip {
  margin-top: 16px;
  font-size: 13px;
  color: var(--orange);
  min-height: 1.4em;
  letter-spacing: 0.04em;
}

/* ================= 页脚 ================= */
.footer {
  background: var(--dark);
  color: rgba(253, 245, 234, 0.8);
  padding: clamp(56px, 7vw, 88px) 0 34px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 50px;
  flex-wrap: wrap;
  padding-bottom: 46px;
  border-bottom: 1px solid rgba(253, 245, 234, 0.14);
}
/* 页脚用完整锁定版（图形 + 字标 + 标语都在官方图形里），高度给够，标语才大于 9px。
   深褐底上垫一块纸白标签、放深色版 logo——白色版直接压在深底上会发灰发虚。 */
.footer-mark {
  display: inline-flex;
  align-items: center;
  padding: 15px 20px;
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 20px 46px -30px rgba(0, 0, 0, 0.85);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}
.footer-mark:hover { transform: translateY(-2px); background: #fff; }
.footer-brand .footer-logo { height: 58px; width: auto; }
.footer-brand p {
  margin-top: 14px;
  font-size: 12.5px;
  letter-spacing: 0.18em;
  color: rgba(253, 245, 234, 0.5);
}
.footer-meta { font-size: 13px; line-height: 2.1; text-align: right; }
.footer-meta a { color: rgba(253, 245, 234, 0.9); }
.footer-meta .icp { margin-top: 6px; }
.footer-meta .icp a { color: rgba(253, 245, 234, 0.5); font-size: 12px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 26px;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: rgba(253, 245, 234, 0.42);
}

/* ================= 移动端常驻预约条 ================= */
.m-cta {
  display: none;
  position: fixed;
  z-index: 90;
  inset: auto 0 0 0;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(253, 248, 241, 0.94);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  border-top: 1px solid var(--line);
  transform: translateY(112%);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.4s var(--ease);
}
.m-cta.is-on { transform: translateY(0); opacity: 1; }
.m-cta-tel,
.m-cta-book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  font-size: 14.5px;
  letter-spacing: 0.08em;
}
.m-cta-tel {
  flex: 0 0 38%;
  border: 1px solid var(--line-warm);
  color: var(--orange);
}
.m-cta-tel svg {
  width: 15px; height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.m-cta-book {
  flex: 1;
  background: var(--orange);
  color: #fff7ea;
  font-weight: 700;
  letter-spacing: 0.12em;
}

/* ================= 灯箱 ================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(36, 29, 22, 0.9);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 5vh 5vw;
}
.lightbox[hidden] { display: none; }
.lightbox figure { max-width: min(92vw, 760px); }
.lightbox img {
  max-height: 82vh;
  width: auto;
  margin-inline: auto;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.7);
}
.lightbox figcaption {
  margin-top: 18px;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: rgba(253, 245, 234, 0.72);
}
.lightbox-close {
  position: absolute;
  top: 22px;
  right: 26px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(253, 245, 234, 0.3);
  background: transparent;
  color: rgba(253, 245, 234, 0.85);
  font-size: 22px;
  line-height: 1;
  transition: background 0.3s, border-color 0.3s;
}
.lightbox-close:hover { background: rgba(253, 245, 234, 0.12); border-color: rgba(253, 245, 234, 0.6); }

/* ================= 轻提示（点电话复制号码等） ================= */
.toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  z-index: 300;
  transform: translate(-50%, 14px);
  padding: 12px 22px;
  border-radius: 999px;
  background: rgba(43, 36, 29, 0.94);
  color: var(--paper);
  font-size: 13px;
  letter-spacing: 0.08em;
  box-shadow: 0 18px 40px -18px rgba(43, 36, 29, 0.6);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.toast.is-on { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
/* 手机底部有常驻预约条，提示往上让开 */
@media (max-width: 860px) {
  .toast { bottom: 104px; }

  /* 手机端改回独立图带：文字几乎占满一屏，图垫在下面会把最后一段糊掉。
     图带压到 240px 并紧贴正文，滚一小段就能看到，不至于像以前隔着一整屏。 */
  .overture {
    background-image: none;
  }
  .overture::before { display: none; }
  /* 底部那层接色带同理：手机端没有铺满的底衬，留着只会在图带上压一道纸色 */
  .overture::after { display: none; }
  /* 手机端没有底衬图，纸洗没有对象，关掉省一层绘制 */
  .overture-body .prose::before { display: none; }
  .band {
    display: block;
    --band-h: clamp(200px, 58vw, 300px);
    margin-top: 34px;
    margin-bottom: 26px;
  }
}

/* ================= 入场动画 ================= */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.95s var(--ease) var(--d, 0s),
    transform 0.95s var(--ease) var(--d, 0s);
}
.js [data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .h1-in { transform: none !important; }
  .scroll-hint svg { animation: none; }
  .band img, .chap-media img { transform: none !important; }
  .chap-reveal { transition: none !important; }
}

/* ================= 响应式 ================= */
@media (max-width: 1080px) {
  .about-inner, .contact-inner, .process-inner, .faq-inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .process-aside, .faq-head, .about-card { position: static; }
  .overture-body { grid-template-columns: 1fr; gap: 34px; }
  /* 单栏后正文会拉满整幅，一行排到 80 多个字，读起来很累，
     而且现在文字压在插画上，长行更容易糊。这里锁住阅读宽度。 */
  .overture-body .prose { max-width: 620px; }
  .sec-head-row { gap: 28px; }
}

@media (max-width: 860px) {
  :root { --nav-h: 74px; }
  /* 手机上正文普遍落在 clamp 下限（15~16px），又大量使用 --ink-2/--ink-3 两档灰，
     纸底一反光字就显得淡。手机端三档灰各压深一档、基础字号整体上提一档——
     这组覆盖只作用于 ≤860，桌面端灰阶与字号不动。 */
  :root {
    --ink: #38332c;
    --ink-2: #4a4238;
    --ink-3: #5e5346;
    --fs-body: 16.5px;
    --fs-lead: 17.5px;
  }
  /* 下限正好被手机命中的几个 clamp 字号，逐个上提 */
  .display-sub { font-size: 17.5px; color: var(--orange-text); }
  .chap-sub { font-size: 17px; }
  .page-body p { font-size: 16.5px; }
  .page-body p:first-of-type { font-size: 18px; }
  .page-body blockquote { font-size: 17.5px; }
  .faq-list summary { font-size: 17px; }
  .closing-copy .closing-mark { font-size: 18px; }
  .closing-copy p { font-size: 16.5px; color: var(--orange-text); }
  .about-card dd { font-size: 16px; }
  .contact-list { font-size: 16px; }
  /* logo 保持官方排版完整出现，只是随胶囊整体收小；三颗胶囊仍等高 */
  .pill { height: 54px; }
  .pill.pill-logo { height: 54px; padding: 0 16px 0 14px; }
  .pill-logo img { height: 46px; }
  .menu { grid-template-columns: 1fr; }
  .menu-bg { position: absolute; inset: 0; opacity: 0.5; }
  .menu-list { position: relative; padding-top: 108px; }
  .menu-foot { position: static; padding: 0 clamp(28px, 6vw, 90px) 40px; }

  .service-grid { grid-template-columns: 1fr; }
  .service:nth-child(odd) { border-right: 0; }

  .hero { padding-bottom: 120px; }
  .hero-media img { object-position: 62% center; }
  .hero-veil {
    background:
      linear-gradient(180deg, rgba(253, 245, 234, 0.97) 0%, rgba(253, 245, 234, 0.92) 34%, rgba(253, 245, 234, 0.6) 56%, rgba(253, 245, 234, 0.9) 100%);
  }
  .hero-facts { margin-top: 38px; gap: 18px 28px; }
  /* 这行是首屏最要紧的三个数字，11.5px 在手机上偏小，抬到 12.5 仍不换行 */
  .hero-facts li { font-size: 12.5px; }

  .chap { align-items: flex-start; padding-top: calc(var(--nav-h) + 40px); }
  /* 手机上手指一划是惯性滚动，几百像素起步：行程给到 450px/幕，
     一划正好换一幕，不会一下跳过两幕 */
  .chapters { height: calc(100svh + 1350px); }
  .chap-media img { object-position: center bottom; }
  /* 原来靠整屏一层纵向纸色蒙版压住插画，蒙版按视口高度的百分比节点淡出。
     屏幕一矮（正是手机常态），正文后几行就落到蒙版 74% 之外、完全裸在画上，
     屋檐和樱花从字缝里穿过去——截图里那块糊就是这么来的。
     现在蒙版只负责与上下区块接纸色，正文的可读性交给贴着文字走的纸洗：
     以文案块自身为基准，视口再矮，最后一行也还在纸色里。 */
  .chap::after {
    background:
      linear-gradient(180deg, var(--paper) 0%, rgba(253, 245, 234, 0.6) 3.5%, rgba(253, 245, 234, 0) 9%),
      linear-gradient(0deg, rgba(253, 245, 234, 0.9) 0%, rgba(253, 245, 234, 0) 9%);
  }
  .chap-copy { padding-block: 0; }
  /* 软边纸洗：横向两端都探出视口，切不出直边；顶上 46px 渐入，
     正文之下 70px 收干净，浓区一直罩到最后一行字。 */
  .chap-copy::before {
    content: '';
    position: absolute;
    inset: -46px -40px -70px calc(-1 * var(--pad) - 14px);
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(
      180deg,
      rgba(253, 245, 234, 0) 0%,
      rgba(253, 245, 234, 0.88) 11%,
      rgba(253, 245, 234, 0.92) 46%,
      rgba(253, 245, 234, 0.91) 82%,
      rgba(253, 245, 234, 0.86) 90%,
      rgba(253, 245, 234, 0) 100%
    );
  }
  .chap-body { max-width: none; }
  /* 手机上底部有固定的「电话咨询 / 预约访谈」条（约 64px），页码要抬到它上面 */
  .chap-hud { bottom: 92px; }

  .slide { width: 76vw; }
  .footer-meta { text-align: left; }

  /* 移动端常驻预约条 */
  .m-cta { display: flex; }
  .footer { padding-bottom: 92px; }
}

/* 收束区：只在竖版图这一档（picture 断点 760）改用整屏底衬。
   之前文上图下，文案块与图之间横着一条纸色，竖版 book-p 顶部又是一片淡手写，
   两下一叠就成了两块各自为政的版块，图也只剩半屏、还被常驻预约条切掉一截。
   现在竖版图铺满整屏，文字压在上半，可读性交给贴着文案走的纸洗——
   与三幕同一套做法，图的边缘不再有接缝。
   断点跟着图片走（760）：761~860 是横版图，留在桌面那套左右分栏里，
   否则横版图被竖屏 cover 会只剩书页中间一条。 */
@media (max-width: 760px) {
  /* 收束区在小屏改回「整屏底衬」：文上图下时，文案块与图之间横着一条纸色，
     竖版 book-p 的顶部又是一片淡手写，两下一叠就成了两块各自为政的版块，
     图也只剩半屏、还被常驻预约条切掉一截。
     现在竖版图铺满整屏，文字压在上半，可读性交给贴着文案走的纸洗——
     与三幕同一套做法，图的边缘不再有接缝。 */
  .closing { display: block; min-height: 100svh; }
  .closing-media { position: absolute; inset: 0; height: auto; }
  .closing-media img { object-position: center bottom; }
  .closing-media::after { display: none; }
  .closing-copy { padding: calc(var(--nav-h) + 56px) var(--pad) 44px; }
  .closing-copy::before {
    content: '';
    position: absolute;
    inset: -40px -40px -56px calc(-1 * var(--pad) - 14px);
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(
      180deg,
      rgba(253, 245, 234, 0) 0%,
      rgba(253, 245, 234, 0.94) 10%,
      rgba(253, 245, 234, 0.96) 55%,
      rgba(253, 245, 234, 0.94) 86%,
      rgba(253, 245, 234, 0.88) 92%,
      rgba(253, 245, 234, 0) 100%
    );
  }
  .closing::after {
    display: block;
    background:
      linear-gradient(180deg, var(--paper) 0%, rgba(253, 245, 234, 0) 8%),
      linear-gradient(0deg, rgba(253, 245, 234, 0.92) 0%, rgba(253, 245, 234, 0) 9%);
  }

}

/* 761~860 这段窄桌面仍在左右分栏里，但文字列和图贴得近，
   标题会压到书页上。把横向遮罩的浓区往右多推一档，文字这一侧更干净。 */
@media (min-width: 761px) and (max-width: 860px) {
  .closing::after {
    background:
      linear-gradient(94deg, rgba(253, 245, 234, 0.97) 0%, rgba(253, 245, 234, 0.92) 42%, rgba(253, 245, 234, 0.34) 68%, rgba(253, 245, 234, 0) 86%),
      linear-gradient(180deg, var(--paper) 0%, rgba(253, 245, 234, 0) 14%);
  }
}

/* 矮屏手机（≤720px 高，如 iPhone SE、老安卓）：文案块要占掉七成屏高，
   纸洗的尾巴会压到书页上。这一档把上方留白与纸洗尾长各收一档，把书让出来。 */
@media (max-width: 760px) and (max-height: 720px) {
  .closing-copy { padding: calc(var(--nav-h) + 24px) var(--pad) 26px; }
  .closing-copy::before { inset: -28px -40px -34px calc(-1 * var(--pad) - 14px); }
}

@media (max-width: 600px) {
  :root { --fs-h1: clamp(34px, 9vw, 44px); --fs-cap: 14px; }
  .pill { height: 46px; padding: 0 15px; font-size: 12.5px; }
  .pill.pill-logo { height: 46px; padding: 0 13px 0 11px; }
  .pill-logo img { height: 42px; }
  .footer-brand .footer-logo { height: 52px; }
  .footer-mark { padding: 12px 16px; border-radius: 12px; }
  .pill-tel span { display: none; }
  .pill-tel { padding: 0 15px; }

  .display { line-height: 1.5; }
  .hero-facts { margin-top: 34px; gap: 12px 22px; }
  .hero-facts li { font-size: 11px; gap: 6px; }
  .hero-facts b { font-size: 15px; }
  .scroll-hint span { display: none; }
  .scroll-hint { padding: 10px 14px; }

  .service-points li { font-size: 11.5px; }
  .slide figcaption { font-size: 12px; }
}
