/* ===== rj_invite 邀请函样式(纸感版式 · 横屏 · 红绳贯穿) ===== */

/* Source Han Serif CN subset (思源宋体 子集,字符表来自 public/index.html + invite.js)
   重新打包: export SHS_SRC=...; ./scripts/build-fonts.sh */
@font-face {
  font-family: 'SHS CN Subset';
  src: url('/assets/fonts/shs-cn-regular-subset.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'SHS CN Subset';
  src: url('/assets/fonts/shs-cn-semibold-subset.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'SHS CN Subset';
  src: url('/assets/fonts/shs-cn-bold-subset.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper:      #f6f3ec;
  --paper-soft: #f0ece3;
  --ink:        #1a1a1a;
  --ink-soft:   #4a4a4a;
  --ink-faint:  #8a8a8a;
  --line:       #cdc8be;
  --line-soft:  #e2dccf;
  --bg-name:    #d8d3c7;
  --accent:     #9b3939;
  --accent-soft:#c98686;
  --shadow:     0 6px 24px rgba(70, 50, 30, 0.06);

  --font-serif:
    'SHS CN Subset',
    "Source Han Serif CN", "Source Han Serif SC", "Noto Serif CJK SC",
    "STSong", "SimSun", serif;
  --font-sans:
    -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-en:
    "Helvetica Neue", "Inter", "SF Pro Text", "Helvetica", "Arial", sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
body { overflow: hidden; height: 100vh; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

/* ============ 竖屏强制提示 ============ */
.portrait-hint {
  display: none;
  position: fixed; inset: 0; z-index: 1100;
  background: var(--paper);
  color: var(--ink-soft);
  align-items: center; justify-content: center;
  text-align: center; padding: 30px;
}
.portrait-hint__inner { max-width: 280px; }
.portrait-hint__icon {
  width: 64px; height: 64px;
  margin: 0 auto 22px;
  color: var(--ink);
  animation: tilt 2.4s ease-in-out infinite;
  transform-origin: 50% 50%;
}
@keyframes tilt {
  0%, 100% { transform: rotate(0deg); }
  50%      { transform: rotate(-90deg); }
}
.portrait-hint__title {
  font-family: var(--font-serif);
  font-size: 17px; letter-spacing: 0.18em;
  color: var(--ink); margin: 0 0 8px;
}
.portrait-hint__sub {
  font-family: var(--font-en);
  font-size: 12px; letter-spacing: 0.28em;
  color: var(--ink-faint); margin: 0;
  text-transform: uppercase;
}
@media (orientation: portrait) {
  .portrait-hint { display: flex; }
  .pages, .intro-overlay { visibility: hidden; }
}

/* ============ 加载/启动提示页 ============ */
.intro-overlay {
  position: fixed; inset: 0; z-index: 900;
  background:
    radial-gradient(ellipse at 30% 30%, #fff7ee 0%, transparent 60%),
    radial-gradient(ellipse at 80% 70%, #f6e6e0 0%, transparent 55%),
    var(--paper);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.intro-overlay.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.intro-card {
  text-align: center;
  padding: 28px 36px 22px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: var(--shadow);
  max-width: 320px;
  animation: intro-breath 3.4s ease-in-out infinite;
}
@keyframes intro-breath {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}
.intro-illust {
  width: 120px; height: auto;
  display: block; margin: 0 auto 12px;
  color: var(--ink-soft);
}
.intro-card__title {
  font-family: var(--font-serif);
  font-size: 18px; font-weight: 600;
  letter-spacing: 0.22em;
  margin: 0 0 6px;
  color: var(--ink);
}
.intro-card__sub {
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  margin: 0 0 16px;
}
.intro-card__btn {
  display: inline-block;
  padding: 10px 30px;
  font-family: var(--font-en);
  font-size: 12.5px; letter-spacing: 0.4em;
  background: var(--ink); color: var(--paper);
  border: none; border-radius: 0;
  cursor: pointer;
  transition: background 0.15s, transform 0.08s;
}
.intro-card__btn:active { transform: translateY(1px); }
.intro-card__btn:hover  { background: var(--accent); }
.intro-card__hint {
  margin: 14px 0 0;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  color: var(--ink-faint);
  font-family: var(--font-serif);
}

/* ============ 横向翻页 ============ */
.pages {
  width: 100vw; height: 100vh;
  display: flex; flex-direction: row; flex-wrap: nowrap;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.pages::-webkit-scrollbar { display: none; }

.page {
  position: relative;
  flex: 0 0 100vw;
  width: 100vw; height: 100vh;
  scroll-snap-align: start;
  display: flex; flex-direction: column;
  overflow-x: hidden; overflow-y: auto;
  background: var(--paper);
  -webkit-overflow-scrolling: touch;
}

/* 每页背景色调差异 */
.page--ch-beginning {
  background:
    radial-gradient(ellipse at 80% 30%, #e6ecf3 0%, transparent 55%),
    var(--paper);
}
.page--ch-spark {
  background:
    radial-gradient(ellipse at 75% 28%, #f6e3e1 0%, transparent 55%),
    var(--paper);
}
.page--ch-distance {
  background:
    radial-gradient(ellipse at 70% 50%, #dfe5ec 0%, transparent 55%),
    var(--paper);
}
.page--ch-fate {
  background:
    radial-gradient(ellipse at 75% 35%, #f3e0db 0%, transparent 55%),
    var(--paper);
}
.page--info {
  background: var(--paper);
}
.page--invitation {
  background:
    radial-gradient(ellipse at 80% 30%, #f2ddd9 0%, transparent 60%),
    var(--paper);
}
.page--footer {
  background:
    radial-gradient(ellipse at 30% 70%, #f3e0db 0%, transparent 55%),
    radial-gradient(ellipse at 80% 30%, #e6ecf3 0%, transparent 55%),
    var(--paper);
}

/* ============ 1: 封面 ============ */
.page--cover {
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  flex-direction: row;
  align-items: stretch;
  justify-content: flex-end;
  overflow: hidden;
}
.cover-frame {
  position: relative; z-index: 2;
  align-self: center;
  padding: 0 6vw 0 4vw;
  text-align: right;
  max-width: 50vw;
}
.cover-label {
  font-family: var(--font-serif);
  font-size: 28px; font-weight: 700;
  /* 关键:不用 letter-spacing,改用全角空格 U+3000 制造字间距,
     避免末字 "函" 后的 letter-spacing 让其视觉右缘超出 box */
  letter-spacing: 0;
  color: var(--ink);
  margin: 0 0 18px 0;
}
.cover-pitch {
  font-family: var(--font-serif);
  font-size: 15.5px; line-height: 1.95;
  letter-spacing: 0.06em;
  color: var(--ink);
  font-weight: 600;
  margin: 0 0 24px 0;
  /* 抵消末字符多余 letter-spacing 让最后一字 ink 贴齐 box 右缘 */
  padding-right: 0;
}
.cover-couple {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.32em;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.cover-bg-names {
  position: absolute;
  left: -2vw; top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  pointer-events: none;
  display: flex; flex-direction: column;
  gap: 0.6vh;
}
.bg-name {
  font-family: var(--font-en);
  font-weight: 900;
  font-size: 30vh;
  line-height: 0.85;
  letter-spacing: -0.02em;
  color: var(--bg-name);
  white-space: nowrap;
  user-select: none;
}
.bg-name--bride { text-align: left; margin-left: -0.04em; }
.bg-name--groom { text-align: left; margin-left: 0.06em; opacity: 0.92; }

.cover-hint {
  position: absolute;
  left: 0; right: 0; bottom: 14px;
  z-index: 3; margin: 0;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-faint);
  animation: float-x 2.4s ease-in-out infinite;
}
@keyframes float-x {
  0%,100% { transform: translateX(0); opacity: 0.55; }
  50%     { transform: translateX(6px); opacity: 0.95; }
}

/* ============ 通用章节版式:左 head 列 + 中 流式内容 + 右 illust 列 ============ */
.page--ch {
  display: grid;
  grid-template-columns: 24vw minmax(0, 1fr) 30vw;
  align-content: center;
  align-items: stretch;
  padding: 6vh 0;
  gap: 0;
  min-height: 100vh;
}
.page--ch > * { min-width: 0; }
.ch-head, .ch-body, .ch-illust, .info-icons {
  position: relative; z-index: 2;
}
/* 左列:头部 */
.page--ch > .ch-head {
  grid-column: 1;
  grid-row: 1 / -1;
  align-self: center;
  padding: 0 2vw 0 5vw;
  margin: 0;
  border-right: 1px solid var(--line-soft);
}
/* 右列:简笔画 / 图标(右 padding 更大,让画面整体往左收一点,不贴页面右缘) */
.page--ch > .ch-illust,
.page--ch > .info-icons {
  grid-column: 3;
  grid-row: 1 / -1;
  align-self: center;
  padding: 0 5vw 0 2vw;
}
.page--ch > .info-icons {
  display: flex; flex-direction: column; gap: 14px;
}
.page--ch > .info-icons svg { width: 42px; height: 42px; color: var(--ink); opacity: 0.85; }
/* 中列:所有正文内容包在 ch-body 内,整体在 grid 行内垂直居中 */
.page--ch > .ch-body {
  grid-column: 2;
  align-self: center;
  margin: 0 4vw 0 5vw;
}
.ch-body > .ch-prose   { margin: 0 0 14px; }
.ch-body > .ch-marker  { margin: 12px 0 0; }
.ch-body > .info-list  { margin: 0 0 6px; }
.ch-body > .invite-sign{ margin: 18px 0 0; }
.ch-body > .footer-thanks {
  margin: 8px 0 0;
  text-align: center;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-serif);
  font-size: 13.5px;
  letter-spacing: 0.18em;
  color: var(--accent);
}
.beian {
  display: block;
  margin: 14px 0 0;
  text-align: center;
  font-family: var(--font-en);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  text-decoration: none;
}
.beian:hover { color: var(--ink-soft); }

.ch-head { margin: 0 0 18px; }
.ch-num {
  font-family: var(--font-en);
  font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.32em;
  color: var(--ink-soft); margin: 0 0 12px;
}
.ch-rule {
  display: block;
  width: 28px; height: 1px;
  background: var(--ink);
  margin: 0 0 16px;
}
.ch-cn {
  font-family: var(--font-serif);
  font-size: 26px; font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink); margin: 0 0 6px;
  line-height: 1.2;
  /* 光学对齐:衬线中文 side bearing 比 sans-serif 英文大,首字向左 ~3px 让笔画起点视觉对齐 'C'/'O' */
  margin-left: -3px;
}
.ch-en {
  font-family: var(--font-en);
  font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.32em;
  color: var(--ink-faint);
  text-transform: uppercase;
  margin: 0;
}

.ch-prose { margin: 0 0 18px; }
.ch-prose p {
  font-family: var(--font-serif);
  font-size: 15px; line-height: 1.85;
  letter-spacing: 0.04em;
  color: var(--ink);
  font-weight: 600;
  margin: 0 0 12px;
  text-align: justify;
}
.ch-prose p:last-child { margin-bottom: 0; }
.ch-prose__quiet {
  color: var(--ink-soft) !important;
  font-size: 13.5px !important;
  margin-top: 14px !important;
  border-top: 1px solid var(--line-soft);
  padding-top: 12px;
}
.ch-prose--letter p { line-height: 1.95; }

.ch-marker {
  margin: 0;
  font-family: var(--font-en);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--ink-faint);
}

/* ============ 简笔画通用 ============ */
.ch-illust svg {
  width: 100%; height: auto;
  max-height: 52vh;
  color: var(--ink-soft);
  opacity: 0.92;
}
.ch-illust .figure { transform-origin: center; animation: fig-drift 5.6s ease-in-out infinite; }
.ch-illust .figure-r { animation-delay: 0.6s; }
.ch-illust .firework {
  transform-origin: center;
  animation: spark 2.8s ease-in-out infinite;
}
.ch-illust .firework + .firework { animation-delay: 1s; }
@keyframes fig-drift {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-2px); }
}
@keyframes spark {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.92); }
}

/* ============ 6: 婚礼信息 ============ */
/* 字号 / 间距 / 图标全部走 clamp(min, vh, max),随横屏高度连续缩放;
   .ch-body 改 flex 列,info-list 顶、ch-marker 底,中间空白吸收 */
.page--info {
  grid-template-columns: 24vw max-content 1fr;
  align-content: stretch;

  --pad-y:     clamp(16px, 5vh, 56px);
  --row-pad:   clamp(6px, 1.6vh, 14px);
  --col-gap:   clamp(10px, 2vh, 20px);
  --label-w:   clamp(64px, 11vh, 96px);
  --label-fz:  clamp(10px, 1.8vh, 12px);
  --label-cn:  clamp(12px, 2.2vh, 15px);
  --value-fz:  clamp(13px, 2.6vh, 17px);
  --sub-fz:    clamp(11px, 2.2vh, 14px);
  --head-fz:   clamp(20px, 4.5vh, 30px);
  --num-fz:    clamp(9px, 1.8vh, 12px);
  --en-fz:     clamp(10px, 2vh, 13px);
  --icon-sz:   clamp(28px, 6.5vh, 50px);
  --icon-gap:  clamp(10px, 2.5vh, 20px);
  --marker-fz: clamp(9px, 1.8vh, 12px);
}
.page--info > .ch-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: var(--pad-y) 0;
  margin-right: 5vw;
}
.page--info > .ch-head .ch-cn  { font-size: var(--head-fz); }
.page--info > .ch-head .ch-num { font-size: var(--num-fz); }
.page--info > .ch-head .ch-en  { font-size: var(--en-fz); }

.page--info > .info-icons {
  padding-left: 5vw;
  padding-right: 0;
  gap: var(--icon-gap);
}
.page--info > .info-icons svg {
  width: var(--icon-sz);
  height: var(--icon-sz);
}

.page--info .info-list {
  width: max-content;
  max-width: 100%;
}
.page--info .info-row {
  display: grid;
  grid-template-columns: var(--label-w) max-content;
  column-gap: var(--col-gap);
  padding: var(--row-pad) 0;
  border-bottom: 1px solid var(--line-soft);
}
.page--info .info-row:last-child { border-bottom: none; }
.page--info .info-row > dt {
  grid-column: 1;
  display: flex; flex-direction: column; gap: 4px;
}
.page--info .info-row > dd { grid-column: 2; align-self: center; }
.page--info .info-row__en {
  font-family: var(--font-en);
  font-size: var(--label-fz);
  letter-spacing: 0.28em;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.page--info .info-row__cn {
  font-family: var(--font-serif);
  font-size: var(--label-cn);
  letter-spacing: 0.15em;
  color: var(--ink-soft);
}
.page--info .info-row dd {
  margin: 0;
  font-family: var(--font-serif);
  font-size: var(--value-fz);
  line-height: 1.6;
  color: var(--ink);
  letter-spacing: 0.03em;
}
.page--info .info-row .info-sub {
  margin-top: 4px;
  font-size: var(--sub-fz);
  color: var(--ink-faint);
  letter-spacing: 0.05em;
}
.page--info .info-row .info-sub a { color: var(--accent); }
.page--info .ch-marker { font-size: var(--marker-fz); }

/* ============ 7: 川西婚纱照页 ============ */
.page--photo {
  position: relative;
  background: var(--paper);
  overflow: hidden;
  --photo-url: url("/assets/cover.jpg");
}
.photo-bg {
  position: absolute; inset: 0;
  z-index: 0;
}
.photo-bg svg {
  width: 100%; height: 100%;
  display: block;
}
.photo-bg::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--photo-url, none);
  background-size: cover;
  background-position: 30% center;
  z-index: 1;
}
.photo-mask {
  position: absolute; inset: 0;
  z-index: 2;
  /* 右侧加深以承载文字,左侧保持清澈不遮人物 */
  background:
    linear-gradient(90deg,
      rgba(0,0,0,0) 0%,
      rgba(0,0,0,0) 40%,
      rgba(0,0,0,0.25) 65%,
      rgba(0,0,0,0.55) 100%);
}
.photo-content {
  position: relative; z-index: 3;
  align-self: flex-end;
  margin: auto 0;
  width: 50%;
  text-align: center;
  padding: 0 4vw;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,0.45);
}
.photo-eyebrow {
  font-family: var(--font-en);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.42em;
  color: rgba(255,255,255,0.85);
  margin: 0 0 14px;
  text-transform: uppercase;
}
.photo-title {
  font-family: var(--font-serif);
  font-size: 40px; font-weight: 700;
  letter-spacing: 0.2em;
  margin: 0 0 14px;
  color: #fff;
}
.photo-sub {
  font-family: var(--font-serif);
  font-size: 15px;
  letter-spacing: 0.28em;
  color: rgba(255,255,255,0.92);
  margin: 0 0 30px;
}
.photo-couple {
  display: flex; justify-content: center; align-items: baseline;
  gap: 18px;
  font-family: var(--font-serif);
  font-size: 16px;
  letter-spacing: 0.18em;
  margin: 0;
  color: #fff;
}
.photo-couple em {
  display: block;
  font-style: normal;
  font-family: var(--font-en);
  font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.36em;
  color: rgba(255,255,255,0.7);
  margin-bottom: 4px;
}
.photo-couple__sep {
  font-family: var(--font-en); font-weight: 300;
  opacity: 0.7;
}
.photo-note {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%);
  z-index: 3; margin: 0;
  font-family: var(--font-en);
  font-size: 10.5px; letter-spacing: 0.22em;
  color: rgba(255,255,255,0.5);
}
.photo-note code {
  font-family: ui-monospace, "SF Mono", monospace;
  background: rgba(0,0,0,0.18);
  padding: 1px 6px; border-radius: 2px;
}
/* ============ 8: 邀请语 ============ */
.invite-sign {
  font-family: var(--font-serif);
  font-size: 15px; font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--ink);
  text-align: right;
  padding-right: 4px;
}

/* ============ 9: 回执页 ============ */
.page--footer { padding-bottom: 4vh; }
.rsvp-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.rsvp-intro {
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink-soft);
  text-align: center;
  letter-spacing: 0.04em;
  margin: 0 0 6px;
}
a.btn { text-decoration: none; text-align: center; }

.btn {
  display: block; width: 100%;
  padding: 13px 18px;
  font-size: 13.5px;
  font-family: var(--font-en);
  letter-spacing: 0.24em;
  border: none; border-radius: 0;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.08s;
  text-transform: uppercase;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
  margin-top: 10px;
}
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  margin-top: 6px;
}
.btn-secondary:active { transform: translateY(1px); }

/* ============ Toast ============ */
.toast {
  position: fixed;
  left: 50%; bottom: 80px;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--paper);
  padding: 12px 22px;
  border-radius: 2px;
  font-size: 13.5px;
  letter-spacing: 0.08em;
  z-index: 200;
  max-width: 84vw;
  text-align: center;
  animation: toast-in 0.3s ease;
}
@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* ============ Calendar fallback modal (微信 / 拦截下载场景) ============ */
.cal-modal {
  position: fixed; inset: 0;
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 5vh 6vw;
}
.cal-modal[hidden] { display: none; }
.cal-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(28, 24, 18, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.cal-modal__card {
  position: relative;
  z-index: 1;
  background: var(--paper);
  padding: 26px 24px 22px;
  max-width: 460px;
  width: 100%;
  font-family: var(--font-serif);
  color: var(--ink);
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.22);
  animation: cal-modal-in 0.22s ease;
}
@keyframes cal-modal-in {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.cal-modal__close {
  position: absolute; top: 4px; right: 10px;
  background: transparent; border: none;
  font-size: 24px; line-height: 1;
  color: var(--ink-faint); cursor: pointer;
  padding: 6px 10px;
}
.cal-modal__close:hover { color: var(--ink-soft); }
.cal-modal__title {
  font-family: var(--font-en);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 14px;
}
.cal-modal__info {
  user-select: text;
  -webkit-user-select: text;
  font-size: 14.5px;
  line-height: 1.85;
  letter-spacing: 0.04em;
  color: var(--ink);
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 0 0 16px;
  white-space: pre-line;
  text-align: left;
}
.cal-modal__copy { margin-top: 0; }
.cal-modal__hint {
  margin: 14px 0 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-faint);
  letter-spacing: 0.03em;
  text-align: center;
}
.cal-modal__hint strong { color: var(--ink-soft); font-weight: 600; }
.cal-modal__hint code {
  font-family: var(--font-en);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}

/* ============ 矮屏 landscape 适配 ============ */
@media (orientation: landscape) and (max-height: 420px) {
  .cover-label { font-size: 24px; margin-bottom: 14px; }
  .cover-pitch { font-size: 14px; line-height: 1.8; margin-bottom: 16px; }
  .cover-couple{ font-size: 13px; padding-top: 12px; }
  .bg-name     { font-size: 26vh; }

  .ch-cn       { font-size: 22px; }
  .ch-prose p  { font-size: 14px; line-height: 1.75; margin-bottom: 8px; }
  .photo-title { font-size: 32px; }
  .photo-sub   { font-size: 13px; margin-bottom: 18px; }
}

/* ============ 底部"两人相向而行"交互(chapter 1 → chapter 4) ============ */
/* 通过 JS 在 .footwalk 上设置 --p (0..1) 表示进度,
   左右两个小人各自从边缘 translateX 到中央,p=1 时手臂在 50vw 相接 */
.footwalk {
  position: fixed;
  left: 0; right: 0;
  bottom: 3.5vh;
  height: 44px;
  pointer-events: none;
  z-index: 50;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.footwalk.is-visible { opacity: 1; }
.footwalk__road {
  position: absolute;
  left: 6vw; right: 6vw;
  bottom: 6px;
  height: 1px;
  background: var(--line);
  opacity: 0.5;
}
.footwalk__figure {
  position: absolute;
  bottom: 7px;
  width: 24px; height: 36px;
  color: var(--ink-soft);
  opacity: 0.85;
  transition: opacity 0.4s ease;
}
.footwalk__figure--l {
  left: 6vw;
  transform: translateX(calc((44vw - 22px) * var(--p, 0)));
}
.footwalk__figure--r {
  left: calc(100vw - 6vw - 24px);
  transform: translateX(calc((44vw - 22px) * var(--p, 0) * -1));
}
.footwalk__bob {
  width: 100%; height: 100%;
  animation: footwalk-bob 0.95s ease-in-out infinite alternate;
}
.footwalk__figure--r .footwalk__bob { animation-delay: 0.48s; }
.footwalk__bob svg { display: block; width: 100%; height: 100%; }
@keyframes footwalk-bob {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-2px); }
}
/* 牵手后停止行走起伏,稳稳站定 */
.footwalk.is-united .footwalk__bob { animation-play-state: paused; transform: translateY(0); }
/* 牵手时上方升起小红心 */
.footwalk__united {
  position: absolute;
  left: 50%;
  bottom: 40px;
  width: 14px; height: 14px;
  transform: translate(-50%, 6px) scale(0.5);
  opacity: 0;
  transition: opacity 0.45s ease, transform 0.5s cubic-bezier(.4,1.6,.6,.95);
}
.footwalk__united svg { display: block; width: 100%; height: 100%; }
.footwalk.is-united .footwalk__united {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}
/* 竖屏时跟随主页面一并隐藏 */
@media (orientation: portrait) {
  .footwalk { visibility: hidden; }
}
