@font-face {
  font-family: "Noto Serif SC";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/serif-400.woff2") format("woff2");
}

@font-face {
  font-family: "Noto Serif SC";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/serif-600.woff2") format("woff2");
}

:root {
  --paper: #f7f0df;
  --paper-2: #fdf9ef;
  --red: #9d2b25;
  --red-2: #b23a2c;
  --ink: #43302a;
  --muted: #8b7461;
  --line: rgba(157, 43, 37, 0.24);
  --shadow: 0 26px 60px -34px rgba(74, 42, 28, 0.55);
  --serif: "Noto Serif SC", "Songti SC", "STSong", "Source Han Serif SC", "SimSun", serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: #efe4cd;
  /* 整页禁止捏合缩放 / 双击缩放，只有大图可以缩放 */
  touch-action: pan-y;
  overscroll-behavior-y: none;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.8;
  touch-action: pan-y;
  background-color: var(--paper);
  background-image:
    radial-gradient(120% 70% at 50% -10%, #fffdf6 0%, rgba(255, 253, 246, 0) 62%),
    radial-gradient(90% 50% at 50% 108%, rgba(216, 190, 150, 0.22) 0%, rgba(216, 190, 150, 0) 70%);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

.wx-thumb {
  position: absolute;
  left: -9999px;
  top: 0;
  width: 300px;
  height: 300px;
  border: 0;
  opacity: 0.01;
}

.page {
  position: relative;
  overflow: hidden;
  background: transparent;
}

/* ---------- shared bits ---------- */

html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1s ease, transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}

html.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

.zxi {
  position: absolute;
  font-weight: 600;
  color: rgba(157, 43, 37, 0.055);
  line-height: 0.8;
  pointer-events: auto;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* 背景大囍很慢地飘一下，页面不至于太死板 */
@keyframes zxiDrift {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(-8px, 12px, 0) rotate(-1.2deg); }
}

@keyframes zxiDriftCenter {
  0%, 100% { transform: translateX(-50%) translate3d(0, 0, 0); }
  50% { transform: translateX(-50%) translate3d(0, -14px, 0); }
}

/* ---------- cover ---------- */

.cover {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 42px 22px 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.zxi--cover {
  top: 1%;
  right: 4%;
  font-size: min(46vw, 360px);
  animation: zxiDrift 24s ease-in-out infinite;
}

.eyebrow {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.46em;
  text-indent: 0.46em;
  text-transform: uppercase;
  color: var(--red);
}

.flourish {
  position: relative;
  z-index: 1;
  width: 108px;
  height: auto;
  margin: 14px 0 4px;
  color: var(--red);
}

.cover__cn {
  position: relative;
  z-index: 1;
  margin: 0 0 26px;
  font-size: 13px;
  letter-spacing: 0.52em;
  text-indent: 0.52em;
  color: var(--ink);
  opacity: 0.86;
}

.cover__photo {
  position: relative;
  z-index: 1;
  width: min(74vw, 340px);
  margin: 0;
  padding: 9px;
  background: linear-gradient(180deg, #fffdf7, #fbf3e4);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.cover__photo::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(157, 43, 37, 0.12);
  pointer-events: none;
}

.cover__photo img {
  display: block;
  width: 100%;
  height: auto;
}

.names {
  position: relative;
  z-index: 1;
  margin: 30px 0 0;
  font-size: clamp(27px, 8.6vw, 40px);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  color: var(--red);
  line-height: 1.3;
}

.amp {
  margin: 0 0.16em;
  font-size: 0.62em;
  font-weight: 400;
  letter-spacing: 0;
  opacity: 0.75;
  vertical-align: 0.12em;
}

.cover__date {
  position: relative;
  z-index: 1;
  margin: 16px 0 0;
  font-size: 11.5px;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  color: var(--muted);
}

.cover__date .dash {
  margin: 0 0.2em;
  opacity: 0.6;
}

.scroll-hint {
  position: relative;
  z-index: 1;
  margin: 30px 0 0;
  font-size: 9.5px;
  letter-spacing: 0.38em;
  text-indent: 0.38em;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}

.scroll-hint i {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--line), rgba(157, 43, 37, 0));
  animation: hint 2.6s ease-in-out infinite;
}

@keyframes hint {
  0%, 100% { transform: scaleY(0.45); opacity: 0.35; transform-origin: top; }
  50% { transform: scaleY(1); opacity: 0.9; transform-origin: top; }
}

/* ---------- invitation text ---------- */

.invite {
  padding: 70px 28px 76px;
  text-align: center;
}

.invite__title {
  margin: 0 0 20px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.52em;
  text-indent: 0.52em;
  color: var(--red);
}

.rule {
  width: 38px;
  height: 1px;
  margin: 0 auto 30px;
  background: var(--line);
  position: relative;
}

.rule::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  margin: -2px 0 0 -2px;
  background: var(--red);
  opacity: 0.55;
  transform: rotate(45deg);
}

.invite p {
  margin: 0 0 13px;
  font-size: 16px;
  line-height: 2.1;
  letter-spacing: 0.1em;
  text-indent: 0.1em;
}

.invite p:last-child {
  margin-bottom: 0;
}

.invite__names {
  margin: 0 0 24px;
  font-size: 15px;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  color: var(--red);
}

/* ---------- time cards ---------- */

.when {
  padding: 0 20px 74px;
}

.card {
  position: relative;
  padding: 36px 22px 32px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 253, 247, 0.92), rgba(252, 246, 234, 0.55));
  border: 1px solid var(--line);
}

.card + .card {
  margin-top: 20px;
}

.card::before,
.card::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(157, 43, 37, 0.5);
  pointer-events: none;
}

.card::before {
  top: 6px;
  left: 6px;
  border-right: 0;
  border-bottom: 0;
}

.card::after {
  bottom: 6px;
  right: 6px;
  border-left: 0;
  border-top: 0;
}

.card__label {
  margin: 0;
  font-size: 9px;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  color: var(--red);
  opacity: 0.8;
}

.card__title {
  margin: 12px 0 20px;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  color: var(--ink);
}

.card__date {
  margin: 0;
  font-size: 46px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--red);
}

.card__date .dot {
  margin: 0 0.06em;
  font-size: 0.62em;
  vertical-align: 0.1em;
  opacity: 0.75;
}

.card__date small {
  display: block;
  margin-top: 16px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: var(--muted);
  line-height: 1.9;
}

.card__place {
  margin: 8px 0 0;
  font-size: 15px;
  letter-spacing: 0.06em;
  line-height: 1.7;
}

.card__big {
  margin: 18px 0 0;
  font-size: 46px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.08em;
  color: var(--red);
}

.card__big .dot {
  margin: 0 0.06em;
  font-size: 0.62em;
  vertical-align: 0.1em;
  opacity: 0.75;
}

.card__lines {
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  letter-spacing: 0.1em;
  line-height: 1.7;
  color: var(--ink);
}

.card__addr {
  margin: 20px 0 0;
  font-size: 10.5px;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  color: var(--muted);
}

.ornament-flutes {
  padding: 26px 0 22px;
  text-align: center;
  color: var(--red);
}

.ornament-flutes svg {
  width: 62px;
  height: auto;
  opacity: 0.82;
}

.card__place small {
  display: block;
  margin-top: 7px;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  color: var(--muted);
}

.place-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0 0 3px;
  font: inherit;
  font-size: 15px;
  letter-spacing: 0.06em;
  line-height: 1.7;
  color: var(--ink);
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(157, 43, 37, 0.3);
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.place-link:active {
  opacity: 0.55;
}

.place-tip {
  margin: 9px 0 0;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
  opacity: 0.7;
}

/* ---------- map chooser sheet ---------- */

.mapsheet {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.mapsheet[hidden] {
  display: none;
}

.mapsheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 13, 10, 0);
  transition: background 0.28s ease;
}

.mapsheet.is-in .mapsheet__backdrop {
  background: rgba(20, 13, 10, 0.42);
}

.mapsheet__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  padding: 22px 20px calc(20px + env(safe-area-inset-bottom));
  text-align: center;
  background: linear-gradient(180deg, #fffdf7, #f9f0dd);
  border-top: 1px solid rgba(157, 43, 37, 0.28);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -20px 60px -30px rgba(50, 24, 14, 0.6);
  transform: translateY(102%);
  transition: transform 0.32s cubic-bezier(0.2, 0.85, 0.2, 1);
}

.mapsheet.is-in .mapsheet__panel {
  transform: none;
}

.mapsheet__eyebrow {
  margin: 0 0 8px;
  font-size: 9.5px;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  color: var(--red);
  opacity: 0.8;
}

.mapsheet__title {
  margin: 0;
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.mapsheet__addr {
  margin: 7px 0 18px;
  font-size: 10.5px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.mapsheet__links {
  display: grid;
  gap: 9px;
}

.mapsheet__item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 16px;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(157, 43, 37, 0.22);
  border-radius: 10px;
  -webkit-tap-highlight-color: transparent;
}

.mapsheet__item b {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-indent: 0.14em;
  color: var(--red);
}

.mapsheet__item:active {
  opacity: 0.6;
}

.mapsheet__copy,
.mapsheet__cancel {
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  border-radius: 10px;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.mapsheet__copy {
  color: var(--ink);
  background: transparent;
  border: 1px solid rgba(157, 43, 37, 0.26);
}

.mapsheet__cancel {
  color: var(--muted);
  background: transparent;
  border: 1px solid rgba(157, 43, 37, 0.12);
}

.pin {
  flex: none;
  width: 13px;
  height: 13px;
  color: var(--red);
  opacity: 0.78;
}

.place-note {
  font-size: 10.5px !important;
  letter-spacing: 0.06em !important;
  text-indent: 0 !important;
  opacity: 0.85;
}

.card__foot {
  margin: 12px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  color: var(--muted);
}

.card__foot .sep {
  opacity: 0.45;
  letter-spacing: 0;
  text-indent: 0;
}

.place-alt {
  color: var(--red);
  text-decoration: none;
  border-bottom: 1px dotted rgba(157, 43, 37, 0.45);
  letter-spacing: 0.16em;
  text-indent: 0;
}

.place-alt:active {
  opacity: 0.55;
}

/* ---------- photo deck ---------- */

.shots {
  padding: 4px 0 78px;
  text-align: center;
}

.shots__eyebrow {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.44em;
  text-indent: 0.44em;
  color: var(--red);
}

.rule--tight {
  margin: 16px auto 36px;
}

.deck {
  position: relative;
  width: min(72vw, 320px);
  aspect-ratio: 3 / 4;
  margin: 0 auto;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}

.deck__card {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 8px;
  background: linear-gradient(180deg, #fffdf7, #fbf3e4);
  border: 1px solid var(--line);
  box-shadow: 0 22px 46px -28px rgba(60, 30, 20, 0.62);
  transform-origin: 50% 92%;
  transition: transform 0.5s cubic-bezier(0.2, 0.85, 0.2, 1), opacity 0.32s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.deck__card::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(157, 43, 37, 0.1);
  pointer-events: none;
}

.deck__card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fdf8ec;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

.deck__card.is-dragging {
  transition: none;
}

.deck__card.is-out {
  opacity: 0;
}

.deck__caption {
  margin: 48px 0 0;
  min-height: 1.7em;
  font-size: 12.5px;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  color: var(--ink);
}

.deck__count {
  margin: 10px 0 0;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  color: var(--muted);
}

.deck__hint {
  margin: 7px 0 0;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
  opacity: 0.78;
}

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: block;
  /* 这里放开触摸，交给 JS 做双指缩放；页面本身仍然不能缩放 */
  touch-action: none;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: #140d0a;
  opacity: 0;
  transition: opacity 0.28s ease;
}

.lightbox.is-in .lightbox__backdrop {
  opacity: 1;
}

.lightbox__stage {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.28s ease, transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.lightbox.is-in .lightbox__stage {
  opacity: 1;
  transform: none;
}

/* 固定定位 + margin:auto 居中，尺寸用 vw/vh 计算，避免手机浏览器上
   max-height:100% 结合 flex 时图片被撑开/裁切，也避开页面滚动后定位错乱 */
.lightbox__stage img {
  position: fixed;
  inset: 0;
  margin: auto;
  width: auto;
  height: auto;
  max-width: calc(100vw - 22px);
  max-height: calc(100vh - 150px);
  max-height: calc(100svh - 150px);
  object-fit: contain;
  transform-origin: 50% 50%;
  will-change: transform;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.85);
  -webkit-user-drag: none;
  user-select: none;
}

/* 大图还没下载完时先显示已经缓存的缩略图，避免黑屏 */
.lightbox__stage .lightbox__ghost {
  z-index: 0;
  opacity: 1;
  transition: opacity 0.3s ease;
  box-shadow: none;
}

.lightbox__stage #lbImg {
  z-index: 1;
}

.lightbox__close {
  position: absolute;
  top: max(14px, env(safe-area-inset-top));
  right: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.07);
  color: #f7f0df;
  font-size: 14px;
  line-height: 1;
}

.lightbox__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  color: #f2e8d6;
}

.lightbox__nav {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
  color: #f2e8d6;
  font-size: 21px;
  line-height: 1;
}

.lightbox__count {
  font-size: 11px;
  letter-spacing: 0.26em;
}

body.is-locked {
  overflow: hidden;
}

/* ---------- background music ---------- */

.bgm {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  right: 14px;
  z-index: 50;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  /* 播放中：品牌红；暂停：整张唱片变灰 */
  --bgm-ink: var(--red);
  --bgm-bg: rgba(253, 249, 239, 0.97);
  --bgm-line: rgba(157, 43, 37, 0.36);
  border: 1px solid var(--bgm-line);
  background: var(--bgm-bg);
  color: var(--bgm-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px -12px rgba(60, 30, 20, 0.75), 0 0 0 4px rgba(247, 240, 223, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  padding: 0;
  opacity: 0.92;
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

.bgm:not(.is-playing) {
  --bgm-ink: #9d968e;
  --bgm-bg: rgba(247, 245, 241, 0.97);
  --bgm-line: rgba(122, 116, 108, 0.3);
  opacity: 0.86;
}

.bgm.is-playing {
  opacity: 1;
}

.bgm[hidden] {
  display: none;
}

.bgm.is-muted {
  opacity: 0.86;
}

.bgm.is-blocked {
  animation: bgmPulse 1.7s ease-in-out infinite;
}

@keyframes bgmPulse {
  0%, 100% { box-shadow: 0 8px 18px -12px rgba(60, 30, 20, 0.75), 0 0 0 4px rgba(247, 240, 223, 0.55); }
  50% { box-shadow: 0 8px 18px -12px rgba(60, 30, 20, 0.75), 0 0 0 9px rgba(157, 43, 37, 0.16); }
}

.bgm-hint {
  position: fixed;
  top: calc(max(14px, env(safe-area-inset-top)) + 46px);
  right: 12px;
  z-index: 51;
  padding: 7px 12px;
  font: inherit;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--red);
  background: rgba(253, 249, 239, 0.97);
  border: 1px solid rgba(157, 43, 37, 0.28);
  border-radius: 999px;
  box-shadow: 0 8px 18px -14px rgba(60, 30, 20, 0.8);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.bgm-hint.is-in {
  opacity: 1;
  transform: none;
}

.bgm-hint[hidden] {
  display: none;
}


.bgm__disc {
  display: block;
  width: 26px;
  height: 26px;
}

.bgm__disc .bgm__label {
  fill: #fffdf7;
  transition: fill 0.3s ease;
}

.bgm:not(.is-playing) .bgm__disc .bgm__label {
  fill: #f0ede8;
}

/* 播放时整张唱片慢慢转（中间的符会跟着转，所以旋转是看得见的） */
.bgm.is-playing .bgm__disc {
  animation: spin 3.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- ending ---------- */

.end {
  position: relative;
  padding: 66px 26px 92px;
  text-align: center;
  overflow: hidden;
  border-top: 1px solid rgba(157, 43, 37, 0.14);
}

.zxi--end {
  left: 50%;
  bottom: -38%;
  transform: translateX(-50%);
  font-size: min(64vw, 400px);
  color: rgba(157, 43, 37, 0.022);
  animation: zxiDriftCenter 28s ease-in-out infinite;
}

.end__cn {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 17px;
  letter-spacing: 0.36em;
  text-indent: 0.36em;
  color: var(--red);
}

.end__orn {
  position: relative;
  z-index: 1;
  width: 132px;
  height: auto;
  margin: 20px auto 26px;
  color: var(--red);
  display: block;
}

.end__names {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 17px;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
}

.end__date {
  position: relative;
  z-index: 1;
  margin: 12px 0 0;
  font-size: 11px;
  letter-spacing: 0.36em;
  text-indent: 0.36em;
  color: var(--muted);
}

.end__sign {
  position: relative;
  z-index: 1;
  margin: 26px 0 0;
  font-size: 11px;
  letter-spacing: 0.36em;
  text-indent: 0.36em;
  color: var(--muted);
  opacity: 0.85;
}

.end__deco {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 20px 0 30px;
  color: var(--red);
  font-size: 12px;
}

.end__deco i {
  font-style: normal;
  opacity: 0.3;
}

.end__deco .heart {
  display: block;
  width: 11px;
  height: 11px;
  opacity: 0.9;
}

.end__deco .xi {
  font-size: 13px;
  opacity: 0.85;
  letter-spacing: 0;
  padding: 14px;
  margin: -14px;
  pointer-events: auto;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.end__hint {
  position: relative;
  z-index: 1;
  margin: -18px 0 28px;
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  color: var(--muted);
  opacity: 0.62;
}

.end__hearts {
  position: relative;
  z-index: 1;
  display: block;
  width: 132px;
  height: auto;
  margin: 40px auto 0;
  color: var(--red);
  opacity: 0.78;
}

/* ---------- falling festive petals ---------- */

.petals {
  position: fixed;
  inset: 0;
  z-index: 40;
  width: 100%;
  height: 100%;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

/* ---------- desktop framing ---------- */

@media (min-width: 760px) {
  body {
    display: flex;
    justify-content: center;
    padding: 34px 0;
  }

  .page {
    width: 100%;
    max-width: 600px;
    background: var(--paper);
    box-shadow:
      0 0 0 1px rgba(157, 43, 37, 0.12),
      0 46px 90px -44px rgba(70, 40, 20, 0.6);
  }

  .cover {
    min-height: 88vh;
    min-height: 88svh;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .scroll-hint i {
    animation: none;
  }

  .petals {
    display: none;
  }

  .zxi--cover,
  .zxi--end {
    animation: none;
  }
}

/* 备案信息：低调处理，与页面整体色调一致 */
.end__beian {
  margin: 22px auto 0;
  padding: 0 18px 12px;
  text-align: center;
  font-family: var(--serif);
  font-size: 11.5px;
  line-height: 1.9;
  letter-spacing: 0.03em;
  color: rgba(67, 48, 42, 0.56);
}

.end__beian a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(139, 116, 97, 0.2);
}

.end__beian a:hover {
  color: rgba(67, 48, 42, 0.82);
}

.end__beian img {
  height: 12px;
  width: auto;
  vertical-align: -2px;
  margin-right: 3px;
  opacity: 0.5;
}

.end__beian .sep {
  margin: 0 7px;
  opacity: 0.5;
}

@media (max-width: 520px) {
  .end__beian {
    margin-top: 18px;
    font-size: 11px;
  }
}
