/* ==============================================
   婚礼请柬 H5 — 暖金轻奢风
   比 hunbei3 更精致：衬线标题 + 烫金分隔 + 动效花瓣 + 倒计时大数字 + 渐变背景
   ============================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold: #C4A268;
  --gold-deep: #8E7B52;
  --gold-light: #E5D2A6;
  --rose: #D9A1A8;
  --bg: #FAF6EE;
  --bg-soft: #F5EFE3;
  --text: #3A332B;
  --text-dim: #8E8378;
  --shadow: 0 12px 40px rgba(80, 60, 40, 0.08);
  --serif: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "SimSun", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft Yahei", sans-serif;
}

html, body {
  width: 100%;
  background: #1a1410;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--sans);
  color: var(--text);
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

img { display: block; max-width: 100%; }

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

input, textarea {
  font-family: inherit;
  border: none;
  outline: none;
  background: transparent;
  -webkit-appearance: none;
}

/* ============= Loader ============= */
.loader {
  position: fixed; inset: 0;
  background: #1a1410;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #d8c896;
  font-size: 13px;
  letter-spacing: 0.15em;
  transition: opacity 0.6s;
}
.loader.hidden { opacity: 0; pointer-events: none; }
.loader-ring {
  width: 44px; height: 44px;
  border: 1.5px solid rgba(212, 175, 55, 0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 24px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============= 封面 ============= */
.cover {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  color: #F1E8D5;
}
.cover-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #2b2018;
  transition: transform 1.2s ease, filter 1.2s ease;
  filter: brightness(0.65) saturate(1.05);
}
.cover.opened .cover-bg {
  transform: scale(1.08);
  filter: brightness(0.55) saturate(1.05);
}
.cover-vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 35%, rgba(0,0,0,0) 30%, rgba(0,0,0,0.55) 100%),
    linear-gradient(180deg, rgba(26,20,16,0.25) 0%, rgba(26,20,16,0.0) 25%, rgba(26,20,16,0.0) 65%, rgba(26,20,16,0.85) 100%);
  pointer-events: none;
}
.cover-content {
  position: relative; z-index: 4;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  text-align: center;
}
.cover-monogram {
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: 0.4em;
  color: var(--gold);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1.4s 0.4s forwards;
  text-indent: 0.4em;
}
.cover-names {
  font-family: var(--serif);
  font-size: 38px;
  letter-spacing: 0.08em;
  color: #fff;
  margin: 28px 0 18px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1.4s 0.8s forwards;
  text-shadow: 0 4px 24px rgba(0,0,0,0.4);
}
.cover-heart {
  display: inline-block;
  color: var(--rose);
  margin: 0 12px;
  animation: heartbeat 1.6s ease-in-out infinite;
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  10% { transform: scale(1.18); }
  20% { transform: scale(0.95); }
}
.cover-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 8px 0 22px;
  color: var(--gold-light);
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 1.4s 1.1s forwards;
}
.cover-line span {
  width: 36px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.cover-line em {
  font-style: normal;
  letter-spacing: 0.4em;
}
.cover-date {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.3em;
  color: #f1e8d5;
  margin-bottom: 18px;
  opacity: 0;
  animation: fadeUp 1.4s 1.3s forwards;
}
.cover-quote {
  font-size: 12px;
  color: rgba(255,255,255,0.78);
  letter-spacing: 0.2em;
  opacity: 0;
  animation: fadeUp 1.4s 1.6s forwards;
  max-width: 280px;
  line-height: 1.8;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 音乐按钮 */
.cover-music {
  position: absolute;
  top: 18px; right: 18px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  z-index: 6;
  border: 1px solid rgba(255,255,255,0.15);
  transition: opacity 0.3s;
}
.cover-music:active { transform: scale(0.92); }
.cm-disc {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.cm-disc::after {
  content: '';
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #1a1410;
}
.cm-eq {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
  position: relative;
  z-index: 2;
  margin-bottom: -2px;
}
.cm-eq i {
  display: inline-block;
  width: 2px; height: 6px;
  background: #1a1410;
  border-radius: 1px;
  animation: eq 1s ease-in-out infinite;
}
.cm-eq i:nth-child(1) { animation-delay: 0s; }
.cm-eq i:nth-child(2) { animation-delay: 0.2s; }
.cm-eq i:nth-child(3) { animation-delay: 0.4s; }
@keyframes eq {
  0%, 100% { height: 4px; }
  50% { height: 12px; }
}
.cover-music.paused .cm-eq { display: none; }
.cover-music.paused .cm-disc::before {
  content: '';
  position: absolute;
  width: 22px; height: 22px;
  background: linear-gradient(135deg, transparent 49%, #1a1410 50%, #1a1410 60%, transparent 61%);
  transform: rotate(-90deg);
  z-index: 3;
}

.cover-hint {
  position: absolute;
  bottom: 28px; left: 0; right: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.78);
  font-size: 12px;
  letter-spacing: 0.3em;
  opacity: 0;
  animation: fadeUp 1.4s 2.2s forwards;
}
.arrow-up {
  width: 1px; height: 30px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.8));
  position: relative;
  animation: arrowMove 1.4s ease-in-out infinite;
}
@keyframes arrowMove {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(10px); opacity: 0; }
}

.cover-curtain {
  position: absolute;
  inset: 0;
  background: rgba(20, 14, 10, 0.85);
  backdrop-filter: blur(8px);
  z-index: 50;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.8s, visibility 0.8s;
}
.cover-curtain.hidden { opacity: 0; visibility: hidden; }
.cover-open {
  width: 220px; height: 56px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.4em;
  background: rgba(196, 162, 104, 0.05);
  position: relative;
  text-indent: 0.4em;
  overflow: hidden;
}
.cover-open::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(196,162,104,0.25), transparent);
  transition: left 0.6s;
}
.cover-open:active::before { left: 100%; transition: left 0.8s; }
.cover-open:active { transform: scale(0.97); }

.cover.opened .cover-content { opacity: 0.95; }

/* 花瓣飘落 (canvas) */
.cover::before, .cover::after {
  content: '';
  position: absolute;
  z-index: 3;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'><g fill='%23E5D2A6' fill-opacity='0.4'><circle cx='15' cy='10' r='4'/><circle cx='10' cy='13' r='3'/><circle cx='20' cy='13' r='3'/><circle cx='12' cy='20' r='3'/><circle cx='18' cy='20' r='3'/></g></svg>");
  background-size: 30px 30px;
  width: 30px; height: 30px;
  animation: petalFall linear infinite;
}
.cover::before {
  left: 10%;
  animation-duration: 12s;
  animation-delay: -2s;
}
.cover::after {
  right: 20%;
  animation-duration: 18s;
  animation-delay: -10s;
}
@keyframes petalFall {
  from {
    top: -50px;
    transform: translateX(0) rotate(0);
    opacity: 0.4;
  }
  to {
    top: 110vh;
    transform: translateX(60px) rotate(720deg);
    opacity: 0;
  }
}

/* ============= 主体 ============= */
.main {
  background: var(--bg);
  position: relative;
}
.section {
  min-height: 100vh;
  padding: 88px 28px 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.section.in-view { opacity: 1; transform: translateY(0); }

/* section 标题 */
.section-title {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}
.st-cn {
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: 0.3em;
  color: var(--text);
  text-indent: 0.3em;
  margin-bottom: 12px;
}
.st-en {
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--gold-deep);
  text-transform: uppercase;
}
.section-title::before, .section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  width: 1px;
  height: 22px;
  background: linear-gradient(180deg, transparent, var(--gold), transparent);
  transform: translateX(-50%);
}
.section-title::before { bottom: -32px; }
.section-title::after { top: -36px; }

/* 花纹分隔线 */
.deco-line {
  width: 220px;
  height: 22px;
  margin: 32px auto;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 22'><g fill='none' stroke='%23C4A268' stroke-width='0.6'><circle cx='20' cy='11' r='3'/><circle cx='200' cy='11' r='3'/><circle cx='110' cy='11' r='6'/><circle cx='110' cy='11' r='2' fill='%23C4A268'/><line x1='30' y1='11' x2='100' y2='11'/><line x1='120' y1='11' x2='190' y2='11'/></g></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* ============= 邀请函 ============= */
.section-invite {
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}
.invite-body {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--text);
  line-height: 2.2;
  text-align: center;
  letter-spacing: 0.08em;
  max-width: 480px;
  position: relative;
}
.invite-body b {
  color: var(--gold-deep);
  font-weight: 600;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}
.invite-body p + p { margin-top: 18px; }
.invite-sign {
  margin-top: 36px !important;
  font-size: 14px;
  color: var(--text-dim);
  letter-spacing: 0.15em;
}
.invite-sign em { font-style: normal; color: var(--gold-deep); margin: 0 4px; }

/* ============= 两位新人 ============= */
.couple-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: 100%;
  max-width: 360px;
}
.couple-card {
  background: #fff;
  border-radius: 18px;
  padding: 32px 24px;
  text-align: center;
  width: 100%;
  box-shadow: var(--shadow);
  position: relative;
}
.couple-card::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid var(--gold-light);
  border-radius: 12px;
  pointer-events: none;
}
.couple-avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  margin: 0 auto 18px;
  background: var(--bg-soft) center/cover;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px;
  color: var(--gold-deep);
  border: 2px solid var(--gold);
  position: relative;
}
.couple-avatar::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px dashed var(--gold);
  opacity: 0.6;
}
.couple-name {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--text);
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.couple-tag {
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--gold-deep);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.couple-intro {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.9;
  letter-spacing: 0.05em;
}
.couple-and {
  font-family: var(--serif);
  font-size: 32px;
  color: var(--rose);
  margin: 22px 0;
  position: relative;
}
.couple-and::before, .couple-and::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.couple-and::before { right: calc(100% + 12px); }
.couple-and::after { left: calc(100% + 12px); transform: scaleX(-1); }

/* ============= 时间轴 ============= */
.section-timeline { background: var(--bg-soft); }
.timeline {
  position: relative;
  max-width: 460px;
  margin: 0 auto;
  padding: 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold-deep) 10%, var(--gold-deep) 90%, transparent);
}
.timeline-item {
  position: relative;
  padding: 8px 0 32px 40px;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.8s ease;
}
.timeline-item.in-view { opacity: 1; transform: translateX(0); }
.timeline-item::before {
  content: '';
  position: absolute;
  left: 4px; top: 16px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--gold-deep);
  z-index: 1;
}
.timeline-item::after {
  content: '';
  position: absolute;
  left: 8px; top: 22px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  z-index: 2;
}
.timeline-item .ti-date {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--gold-deep);
  margin-bottom: 4px;
}
.timeline-item .ti-title {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 6px;
}
.timeline-item .ti-desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.8;
}
.timeline-empty, .photos-empty, .msg-empty {
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
  padding: 40px 0;
  letter-spacing: 0.15em;
}

/* ============= 相册 ============= */
.photos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 480px;
  width: 100%;
}
.photos-grid .p-item {
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-soft);
  position: relative;
  cursor: pointer;
  aspect-ratio: 3/4;
  box-shadow: 0 6px 18px rgba(80, 60, 40, 0.1);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.6s ease;
}
.photos-grid .p-item.in-view { transform: translateY(0); opacity: 1; }
.photos-grid .p-item:nth-child(odd) { transform: translateY(-12px); }
.photos-grid .p-item:nth-child(odd).in-view { transform: translateY(0); }
.photos-grid .p-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}
.photos-grid .p-item:active img { transform: scale(1.05); }
.photos-grid .p-item::after {
  content: '';
  position: absolute; inset: 0;
  border: 1px solid rgba(196, 162, 104, 0.3);
  border-radius: 12px;
  pointer-events: none;
}

/* ============= 信息 ============= */
.section-info {
  background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
}
.countdown {
  display: flex;
  gap: 14px;
  margin-bottom: 42px;
}
.cd-cell {
  width: 64px; height: 80px;
  background: #fff;
  border-radius: 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--bg-soft);
  position: relative;
}
.cd-cell span {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 600;
  color: var(--gold-deep);
  line-height: 1;
}
.cd-cell i {
  font-style: normal;
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 6px;
  letter-spacing: 0.2em;
}

.info-card {
  background: #fff;
  border-radius: 18px;
  padding: 28px 24px;
  width: 100%;
  max-width: 460px;
  box-shadow: var(--shadow);
  position: relative;
}
.info-card::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid var(--gold-light);
  border-radius: 14px;
  pointer-events: none;
}
.info-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px dashed rgba(196,162,104,0.3);
}
.info-row:last-child { border-bottom: none; }
.info-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: var(--bg-soft);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  border: 1px solid var(--gold-light);
}
.info-label {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--gold-deep);
  margin-bottom: 4px;
}
.info-value {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--text);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.info-sub {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.7;
}

.map-wrap {
  margin-top: 32px;
  text-align: center;
  width: 100%;
  max-width: 460px;
}
.map-title {
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--gold-deep);
  margin-bottom: 12px;
}
.map-box {
  width: 100%; height: 240px;
  background: var(--bg-soft);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--gold-light);
}
.map-navigate {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #fff;
  border-radius: 100px;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(196,162,104,0.3);
  transition: transform 0.2s;
}
.map-navigate:active { transform: scale(0.96); }

.info-contact {
  margin-top: 24px;
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.15em;
}
.info-contact-item { margin: 4px 0; }
.info-contact-item span { color: var(--gold-deep); }

/* ============= 留言 ============= */
.section-message { background: var(--bg); }
.msg-form {
  width: 100%;
  max-width: 480px;
  margin-bottom: 36px;
}
.msg-form input, .msg-form textarea {
  display: block;
  width: 100%;
  background: #fff;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--text);
  border: 1px solid transparent;
  transition: border 0.3s;
  letter-spacing: 0.05em;
}
.msg-form input:focus, .msg-form textarea:focus {
  border-color: var(--gold);
}
.msg-form textarea {
  min-height: 90px;
  resize: vertical;
  line-height: 1.6;
}
#msgSubmit {
  display: block;
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #fff;
  border-radius: 100px;
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  box-shadow: 0 8px 20px rgba(196,162,104,0.3);
  transition: transform 0.2s;
}
#msgSubmit:active { transform: scale(0.97); }
#msgSubmit:disabled { opacity: 0.6; }

.msg-list {
  width: 100%;
  max-width: 480px;
}
.msg-item {
  background: #fff;
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(80, 60, 40, 0.06);
  position: relative;
}
.msg-item::before {
  content: '"';
  position: absolute;
  top: 4px; left: 8px;
  font-family: var(--serif);
  font-size: 36px;
  color: var(--gold-light);
  line-height: 1;
}
.msg-item .mi-name {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--gold-deep);
  margin-bottom: 6px;
  letter-spacing: 0.1em;
}
.msg-item .mi-content {
  font-size: 13px;
  color: var(--text);
  line-height: 1.7;
  letter-spacing: 0.05em;
}
.msg-item .mi-time {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 6px;
  text-align: right;
}

/* ============= 尾页 ============= */
.section-footer {
  min-height: 100vh;
  background: linear-gradient(180deg, var(--bg) 0%, #2b2018 100%);
  color: var(--bg);
  text-align: center;
}
.section-footer .section-title .st-cn { color: #f1e8d5; }
.section-footer .section-title .st-en { color: var(--gold); }
.footer-title {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.4em;
  color: #f1e8d5;
  margin-bottom: 32px;
  text-indent: 0.4em;
}
.footer-names {
  font-family: var(--serif);
  font-size: 32px;
  color: var(--gold);
  letter-spacing: 0.15em;
  margin-bottom: 14px;
}
.footer-date {
  font-size: 14px;
  letter-spacing: 0.4em;
  color: rgba(241,232,213,0.6);
  margin-bottom: 60px;
}
.footer-bottom {
  margin-top: auto;
  font-size: 11px;
  color: rgba(241,232,213,0.4);
  letter-spacing: 0.2em;
  padding: 40px 0;
}

/* ============= 大图查看 ============= */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.show { display: flex; }
.lightbox-img {
  max-width: 100%; max-height: 100%;
  animation: zoomIn 0.4s ease;
}
@keyframes zoomIn {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.lightbox-close {
  position: absolute;
  top: 18px; right: 22px;
  font-size: 32px;
  color: #fff;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 12px 22px;
  border-radius: 100px;
  font-size: 13px;
  z-index: 200;
  letter-spacing: 0.1em;
  opacity: 0;
  transition: opacity 0.3s;
}
.toast.show { opacity: 1; }

@media (min-width: 768px) {
  .cover-monogram { font-size: 36px; }
  .cover-names { font-size: 52px; }
  .cover-date { font-size: 22px; }
  .section { padding: 120px 40px 80px; }
  .st-cn { font-size: 36px; }
}

/* ============= 场景板块（15 章 · 双语） ============= */
.lang-toggle {
  position: fixed;
  top: 18px; left: 18px;
  z-index: 90;
  display: flex; align-items: center; gap: 4px;
  padding: 8px 14px;
  border-radius: 100px;
  background: rgba(26,20,16,0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(197,162,104,0.35);
  font-family: var(--serif);
  font-size: 13px;
  color: rgba(250,246,238,0.55);
  letter-spacing: 0.05em;
}
.lang-toggle i { opacity: 0.4; font-style: normal; font-size: 11px; }
.lang-toggle span { transition: color 0.25s; }
.lang-toggle span.on { color: var(--gold-light); }

.scenes-wrap { display: flex; flex-direction: column; gap: 44px; }

.scene-card {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(197,162,104,0.28);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.scene-card.in-view { opacity: 1; transform: translateY(0); }
.scene-card.reverse { flex-direction: row-reverse; }

.scene-img {
  flex: 0 0 46%;
  min-height: 240px;
  background: var(--bg-soft) center/cover no-repeat;
  position: relative;
}
.scene-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.scene-img-empty {
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(229,210,166,0.5), transparent 60%),
    radial-gradient(circle at 75% 80%, rgba(217,161,168,0.25), transparent 55%),
    var(--bg-soft);
}
.scene-img-empty span {
  font-family: var(--serif);
  font-size: 56px;
  color: rgba(142,123,82,0.35);
  letter-spacing: 0.1em;
}
.scene-img::after {
  content: '';
  position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25);
  pointer-events: none;
}

.scene-body {
  flex: 1;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  position: relative;
}
.scene-no {
  position: absolute;
  top: 12px; right: 16px;
  font-family: var(--serif);
  font-size: 13px;
  color: rgba(197,162,104,0.5);
  letter-spacing: 0.2em;
}
.scene-card.reverse .scene-no { right: auto; left: 16px; }
.scene-title {
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: 0.25em;
  text-indent: 0.25em;
  color: var(--gold-deep);
  margin-bottom: 12px;
}
.scene-card.lang-en .scene-title { letter-spacing: 0.08em; text-indent: 0.08em; font-size: 20px; }
.scene-line { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 14px; }
.scene-line span { width: 36px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.scene-line span:last-child { background: linear-gradient(270deg, transparent, var(--gold)); }
.scene-line em { color: var(--gold); font-style: normal; font-size: 10px; }
.scene-text {
  font-size: 14px;
  line-height: 2;
  color: var(--text);
  letter-spacing: 0.08em;
}

@media (max-width: 640px) {
  .scene-card, .scene-card.reverse { flex-direction: column; }
  .scene-img { flex: none; min-height: 0; height: 210px; }
  .scene-title { font-size: 21px; }
}

/* [hidden] 兜底：防止 display:flex 覆盖 hidden 属性 */
[hidden] { display: none !important; }
