/* ═══════════════════════════════════════════════════
   Wedding H5 Invitation — invite.css
   苏磊磊 & 廖妍敏  2026.10.03
═══════════════════════════════════════════════════ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Noto Serif SC", -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Source Han Serif SC", "Microsoft YaHei", serif;
  color: #4A3A2E;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background: #D8C9B0; /* 宽屏两侧背景 */
}
img { max-width: 100%; display: block; object-fit: cover; }

/* ── 艺术字体工具类 ── */
.font-brush  { font-family: "Ma Shan Zheng", "STKaiti", "KaiTi", cursive; }
.font-script { font-family: "Dancing Script", cursive; }

/* ── Petals ── */
#petals {
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

@keyframes petalFall {
  0%   { transform: translateY(-30px) translateX(0) rotate(0deg) scale(1); opacity: 0.9; }
  25%  { transform: translateY(27vh) translateX(var(--sway, 25px)) rotate(135deg) scale(0.95); }
  50%  { transform: translateY(55vh) translateX(calc(var(--sway, 25px) * -0.6)) rotate(270deg) scale(0.88); opacity: 0.6; }
  75%  { transform: translateY(82vh) translateX(var(--sway, 25px)) rotate(405deg) scale(0.8); opacity: 0.3; }
  100% { transform: translateY(110vh) translateX(0) rotate(540deg) scale(0.7); opacity: 0; }
}

.petal {
  position: absolute;
  top: -30px;
  background: radial-gradient(circle at 35% 35%, #f8c8d0, #e8607a);
  border-radius: 50% 0 50% 0;
  animation: petalFall linear infinite;
}

/* ── Music Button（位置由末尾响应式块控制）── */
.music-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(184, 153, 104, 0.55);
  background: rgba(253, 246, 239, 0.92);
  cursor: pointer;
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  touch-action: manipulation;
}

@keyframes musicSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.music-note {
  font-size: 17px;
  color: #B89968;
  display: block;
  line-height: 1;
}
.music-note.playing { animation: musicSpin 4s linear infinite; }

/* ── Common Section ── */
.sec {
  width: 100%;
  padding: 56px 20px;
  position: relative;
}

/* Section header */
.sec-hd { text-align: center; margin-bottom: 32px; }

.sec-en {
  display: block;
  font-size: 15px;
  letter-spacing: 4px;
  color: #A89580;
  text-transform: uppercase;
  margin-bottom: 6px;
  font-family: "Dancing Script", cursive;
}

.sec-zh {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 4px;
  color: #3A2A1E;
  margin-bottom: 14px;
  font-family: "Ma Shan Zheng", "STKaiti", cursive;
  text-shadow: 0 1px 0 rgba(255,255,255,0.6);
}
/* 标题装饰符号已移除（用户要求纯净，靠字体+留白本身） */

.sec-rule {
  width: 96px; height: 2px;
  background: linear-gradient(to right, transparent, #B89968 50%, transparent);
  margin: 0 auto;
  position: relative;
}
/* 分隔线宝石已移除（纯净，保留纯渐变细线） */

.sec-sub {
  margin-top: 10px;
  font-size: 12px;
  color: #A89580;
  letter-spacing: 1px;
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════
   ① COVER
═══════════════════════════════════════════════════ */
.sec-cover {
  height: 100vh;
  min-height: 620px;
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  /* CSS gradient fallback when cover photo not yet added */
  background: linear-gradient(160deg, #2A1F18 0%, #4A382C 38%, #8B6F5C 72%, #D4B896 100%);
}

.cover-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  transition: transform 8s ease;
}
.sec-cover:hover .cover-bg { transform: scale(1.02); }

.cover-veil {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20, 6, 4, 0.52) 0%,
    rgba(70, 16, 36, 0.42) 35%,
    rgba(14, 4, 2, 0.72) 100%
  );
}

/* Four-corner border ornaments */
.cover-corner {
  position: absolute;
  width: 54px; height: 54px;
  border-color: rgba(215, 175, 110, 0.5);
  border-style: solid;
}
.cover-corner.tl { top: 14px; left: 14px; border-width: 2px 0 0 2px; }
.cover-corner.tr { top: 14px; right: 14px; border-width: 2px 2px 0 0; }
.cover-corner.bl { bottom: 14px; left: 14px; border-width: 0 0 2px 2px; }
.cover-corner.br { bottom: 14px; right: 14px; border-width: 0 2px 2px 0; }

.cover-body {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #FAF3E8;
  width: 100%;
  max-width: 400px;
  padding: 0 24px;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cover-label {
  font-size: 11px;
  letter-spacing: 4px;
  color: rgba(255, 235, 200, 0.75);
  margin-bottom: 14px;
  animation: fadeSlideIn 1s ease 0.3s both;
}

.cover-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 8px;
  color: #fdf0d8;
  text-shadow: 0 2px 14px rgba(0,0,0,0.5);
  margin-bottom: 16px;
  animation: fadeSlideIn 1s ease 0.6s both;
  font-family: "Ma Shan Zheng", "STKaiti", cursive;
}

.cover-orn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-bottom: 18px;
  animation: fadeSlideIn 1s ease 0.8s both;
}
.orn-line { width: 56px; height: 1px; background: rgba(215, 180, 110, 0.55); }
.orn-gem  { font-size: 9px; color: rgba(215, 180, 110, 0.75); }

.cover-couple {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin-bottom: 14px;
  animation: fadeSlideIn 1s ease 1.0s both;
}
.cover-name {
  font-size: 24px;
  font-weight: 600;
  color: #fff8ec;
  letter-spacing: 3px;
  font-family: "Ma Shan Zheng", "STKaiti", cursive;
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  14%  { transform: scale(1.35); }
  28%  { transform: scale(1); }
  42%  { transform: scale(1.2); }
  70%  { transform: scale(1); }
}
.cover-heart {
  font-size: 20px;
  color: #f28090;
  animation: heartBeat 1.8s ease infinite;
}

.cover-meta {
  font-size: 13px;
  color: rgba(253, 235, 200, 0.8);
  letter-spacing: 2px;
  margin-bottom: 5px;
  animation: fadeSlideIn 1s ease 1.2s both;
}
.cover-sep { margin: 0 8px; opacity: 0.6; }

.cover-place-txt {
  font-size: 12px;
  color: rgba(253, 235, 200, 0.6);
  letter-spacing: 1px;
  margin-bottom: 22px;
  animation: fadeSlideIn 1s ease 1.3s both;
}

/* Countdown */
.cover-cd {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-bottom: 26px;
  animation: fadeSlideIn 1s ease 1.4s both;
}
.cd-blk {
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(215, 180, 110, 0.3);
  border-radius: 8px;
  padding: 6px 8px;
  min-width: 50px;
  backdrop-filter: blur(4px);
}
.cd-n {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: #ffd070;
  line-height: 1.1;
}
.cd-u {
  font-size: 10px;
  color: rgba(253, 235, 200, 0.65);
  letter-spacing: 1px;
}
.cd-col {
  font-size: 20px;
  color: rgba(215, 175, 110, 0.55);
  margin-bottom: 14px;
}

.btn-enter {
  display: inline-block;
  padding: 13px 42px;
  border: 1px solid rgba(215, 175, 110, 0.8);
  background: linear-gradient(135deg, rgba(184, 153, 104, 0.65), rgba(165, 90, 44, 0.65));
  color: #fff8ec;
  font-size: 14px;
  letter-spacing: 5px;
  border-radius: 999px;
  cursor: pointer;
  animation: fadeSlideIn 1s ease 1.6s both;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.2s, background 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 20px rgba(184, 153, 104, 0.35);
}
.btn-enter:active { transform: scale(0.97); }

/* 封面提示文字 - 与其他文字风格一致 */
.cover-hint {
  margin-top: 18px;
  font-size: 11px;
  color: rgba(253, 235, 200, 0.6);
  letter-spacing: 3px;
  animation: fadeSlideIn 1s ease 1.8s both;
  font-family: "Noto Serif SC", serif;
}

/* ═══════════════════════════════════════════════════
   ② PREFACE
═══════════════════════════════════════════════════ */
.sec-preface {
  background: linear-gradient(180deg, #FAF3E8 0%, #F0E6D2 100%);
  display: flex; align-items: center; justify-content: center;
  min-height: 340px;
}

.preface {
  text-align: center;
  max-width: 320px;
  margin: 0 auto;
}
.pf-deco {
  font-size: 30px;
  color: #B89968;
  margin-bottom: 16px;
}
.pf-quote {
  font-size: 20px;
  color: #7A6655;
  letter-spacing: 3px;
  margin-bottom: 22px;
  font-style: italic;
  border: none;
  padding: 0;
  font-family: "Ma Shan Zheng", "STKaiti", cursive;
}
.pf-body {
  font-size: 14px;
  line-height: 2.4;
  color: #7A6655;
  margin-bottom: 20px;
}
.pf-sig {
  font-size: 13px;
  color: #A89580;
  letter-spacing: 2px;
}

/* ═══════════════════════════════════════════════════
   ③ STORY — 竖向章节布局
═══════════════════════════════════════════════════ */
.sec-story {
  /* 半透明渐变 → 透出 #app 亚麻底纹，增质感深度 */
  background: linear-gradient(180deg, rgba(251,245,236,0.55) 0%, rgba(240,230,210,0.5) 50%, rgba(251,245,236,0.55) 100%);
}
/* 囍印章已移除（用户反馈"十分丑"），待调研后用优雅中式元素替代（烫金线描/篆刻朱文/竖排落款） */

/* 每个故事章节 */
.story-chapter {
  margin-bottom: 56px;
}

/* 章节标题行 */
.chap-hd {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.chap-num {
  font-size: 48px;                                   /* 放大序号水印 */
  font-weight: 700;
  color: rgba(184, 153, 104, 0.22);
  line-height: 1;
  flex-shrink: 0;
  font-family: Georgia, serif;
  text-shadow: 0 1px 0 rgba(255,255,255,0.5);
}
.chap-info { flex-shrink: 0; }
.chap-yr {
  font-size: 11px;
  color: #B09A82;
  letter-spacing: 3px;
  margin-bottom: 3px;
}
.chap-ev {
  font-size: 26px;                                   /* 标题加大加深，拉开层级 */
  font-weight: 700;
  color: #3A2A1E;
  letter-spacing: 3px;
  font-family: "Ma Shan Zheng", "STKaiti", cursive;
  text-shadow: 0 1px 0 rgba(255,255,255,0.6);
}
.chap-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(201,168,122,0.7), transparent);
  position: relative;
}
/* 章节线末端宝石已移除（纯净） */

/* 文字描述 */
.chap-desc {
  font-size: 14px;
  line-height: 2.2;
  color: #85735F;                                    /* 正文收敛，与深标题拉开层级 */
  margin-bottom: 20px;
  padding: 0 6px;
  text-indent: 2em;                                  /* 中文首行缩进，仪式感 */
}

/* 引言隔断卡 */
.chap-quote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(220, 169, 111, 0.12), rgba(184, 153, 104, 0.08));
  border-left: 3px solid #B89968;
  border-radius: 0 10px 10px 0;
  padding: 14px 16px;
  margin-bottom: 20px;
}
.cq-mark {
  font-size: 28px;
  color: #B89968;
  opacity: 0.5;
  line-height: 1;
  flex-shrink: 0;
}

/* 故事线隔断文字卡 */
.chap-break {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  padding: 0 4px;
}
.cb-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, #C9A87A, transparent);
}
.cb-text {
  font-size: 16px;
  color: #B89968;
  letter-spacing: 2px;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: "Ma Shan Zheng", "STKaiti", cursive;
}
.cq-text {
  font-size: 15px;
  color: #7A6655;
  font-style: italic;
  letter-spacing: 1.5px;
  line-height: 1.7;
  text-align: center;
  font-family: "Ma Shan Zheng", "STKaiti", cursive;
}

/* ── 故事区场景版式（scenes：一大多小定调 + 烟火三连同框，调研知乎#16/#15）── */
.scene { margin: 16px 0; }

/* 通用照片相框（所有 scene 内 .chap-photo） */
.story-chapter .chap-photo {
  border-radius: 10px;                              /* 外框圆角收紧（图4/框10 分层，去 App 化廉价感） */
  padding: 12px;                                   /* mat 白边加宽，装裱感 */
  background: linear-gradient(160deg, #FFFDF6, #FBF3E3);
  border: 1px solid rgba(184, 153, 104, 0.55);
  outline: 1px solid rgba(184, 153, 104, 0.42);
  outline-offset: -5px;
  box-shadow:                                       /* 同色相暖金 4 层物理阴影（Josh Comeau），统一光源 */
    0 1px 2px hsl(38 30% 50% / 0.10),
    0 3px 6px hsl(38 30% 50% / 0.12),
    0 8px 18px hsl(38 30% 50% / 0.15),
    0 16px 32px hsl(38 30% 50% / 0.10),
    inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}
.story-chapter .chap-photo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 4px;                              /* 内图圆角 < 外框，双层相框层次 */
}

/* hero 大图定调：加深阴影突出主视觉（一整幕的大图） */
.scene-hero { margin: 22px 0; }
.story-chapter .scene-hero.chap-photo {
  padding: 12px;
  box-shadow:
    0 4px 12px rgba(107, 74, 60, 0.14),
    0 20px 40px rgba(107, 74, 60, 0.26),
    inset 0 0 0 1px rgba(255, 255, 255, 0.78);
}

/* trio：她·他 双列 + 我们 全宽（移动端三列 124px 太小看不清，改双列 180px + 第3张跨全宽 380px）*/
.scene-trio {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.scene-trio .scene-cell:nth-child(3) {
  grid-column: 1 / -1;
}

/* side 偏侧大图：单人/竖图偏侧展示（80%≈280px 看得清人脸）。默认偏右，align-l 偏左（她·他错落） */
.scene-side {
  max-width: 80%;
  margin: 14px 0 14px auto;
}
.scene-side.align-l { margin-left: 0; margin-right: auto; }
.scene-side.align-r { margin-left: auto; margin-right: 0; }

/* detail 特写小图：居中缩窄（戒指/细节） */
.scene-detail {
  max-width: 60%;
  margin: 14px auto;
}

/* triptych 烟火三连：竖排三张全宽（用户定：横滑感觉不好→回竖排；每张全宽最大展示，间距16px 呼吸） */
.scene-triptych {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* duo 双列：单人对（她·他）。缩窄 gap+mat 让单人图≥160px 人像清晰阈值（防"小图看不清"） */
.scene-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.scene-duo .chap-photo { padding: 8px; }           /* 双列专用窄 mat，最大化人脸清晰度 */

/* single 全宽单张（收尾/转场/同地区上下排列）*/
.scene-single { margin: 16px 0; }

/* scene 容器内横图不强制跨全宽（覆盖旧 .is-landscape{grid-column:1/-1}，避免破坏 duo 双列 / triptych 横滑） */
.scene-duo .chap-photo.is-landscape,
.scene-triptych .chap-photo.is-landscape,
.scene-trio .chap-photo.is-landscape { grid-column: auto; }

/* 单张居中 - 全宽显示 */
.chap-photos-single {
  grid-template-columns: 1fr;
}
.chap-photos-single .chap-photo {
  width: 100%;
  max-width: 100%;
}

/* ═══ 照片完整显示（绝不裁剪）═══
   所有照片按真实比例渲染：img 撑开容器，竖图竖排、横图横排。
   横图跨全宽，竖图双列；不用 cover 裁剪内容。
   相框化：米白画框 mat + 细金边 + 双层柔阴影 + 内高光。 */
.chap-photo.cp-full,
.chap-photo.cp-half {
  width: 100%;
  border-radius: 14px;
  padding: 12px;                                       /* 米白画框留白 */
  background: linear-gradient(160deg, #FFFDF6, #FBF3E3);
  border: 1px solid rgba(184, 153, 104, 0.55);
  outline: 1px solid rgba(184, 153, 104, 0.4);
  outline-offset: -6px;         /* 细金边 */
  box-shadow:
    0 2px 6px rgba(107, 74, 60, 0.10),
    0 14px 30px rgba(107, 74, 60, 0.20),
    inset 0 0 0 1px rgba(255, 255, 255, 0.7);        /* 内高光柔光 */
  position: relative;
  /* 不设固定 aspect-ratio，由图片真实比例撑开容器 */
}

.chap-photo.cp-full img,
.chap-photo.cp-half img,
.chap-photo.is-landscape img,
.chap-photo.is-portrait img {
  width: 100%;
  height: auto;            /* 关键：按真实比例完整显示，零裁剪 */
  display: block;
  object-fit: contain;
  border-radius: 10px;     /* 内图圆角 < 外框圆角，形成双层相框 */
}

/* 横图（宽>高）— 跨全宽单列显示 */
.chap-photo.is-landscape {
  grid-column: 1 / -1;
}

/* 竖图（高>宽）— 双列中的一张（跟随原图真实竖比例，不强制 3/4） */
.chap-photo.is-portrait {
  /* 不设 aspect-ratio，保留原图 0.67 竖比 */
}

/* 横竖混合时，横图单独一行 */
.chap-photo.is-landscape + .chap-photo.is-portrait,
.chap-photo.is-portrait + .chap-photo.is-landscape {
  margin-top: 10px;
}

/* 占位 */
.cp-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: #A89580;
  font-size: 2rem;
}

/* ═══════════════════════════════════════════════════
   ④ GALLERY
═══════════════════════════════════════════════════ */
.sec-gallery {
  background: linear-gradient(180deg, #F0E6D2 0%, #FAF3E8 100%);
}

.gal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.gal-item {
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #eedec8, #d8be98);
  box-shadow: 0 4px 16px rgba(100, 60, 20, 0.14);
}
.gal-item.gal-wide {
  grid-column: 1 / -1;
}
.gal-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* 照片占位 */
.gal-ph {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: #A89580;
  gap: 6px;
}
.gal-ph-icon { font-size: 2rem; }
.gal-ph-txt  { font-size: 12px; letter-spacing: 1px; }

.gal-banner {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
}
.gb-line {
  flex: 1; height: 1px;
  background: linear-gradient(to right, transparent, #B89968);
}
.gb-line-r {
  background: linear-gradient(to left, transparent, #B89968);
}
.gb-txt {
  font-size: 12px;
  color: #A89580;
  letter-spacing: 1px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════
   ⑤ WEDDING DETAIL
═══════════════════════════════════════════════════ */
.sec-detail { background: #FBF5EC; }

.date-card {
  background: linear-gradient(135deg, #6B4A3C 0%, #A8554A 50%, #B89968 100%);
  border-radius: 18px;
  padding: 30px 20px;
  text-align: center;
  color: #fff8ec;
  margin-bottom: 20px;
  box-shadow: 0 8px 28px rgba(88, 24, 36, 0.28);
  position: relative;
  overflow: hidden;
}
.date-card::after {
  content: "囍";
  position: absolute;
  right: -16px; top: -10px;
  font-size: 120px;
  color: rgba(255, 255, 255, 0.05);
  font-weight: 900;
  pointer-events: none;
}

.dcard-sup {
  font-size: 11px;
  letter-spacing: 3px;
  color: rgba(255, 245, 215, 0.7);
  margin-bottom: 12px;
}
.dcard-main {
  display: flex; align-items: baseline; justify-content: center; gap: 10px;
  margin-bottom: 12px;
}
.dcard-month { font-size: 22px; font-weight: 300; letter-spacing: 2px; }
.dcard-day   { font-size: 76px; font-weight: 700; line-height: 1; text-shadow: 0 2px 10px rgba(0,0,0,0.25); }
.dcard-year  { font-size: 18px; font-weight: 300; }
.dcard-sub   { font-size: 12px; letter-spacing: 3px; color: rgba(255, 245, 215, 0.8); }

.info-cards { display: flex; flex-direction: column; gap: 12px; }

.ic {
  background: #fff;
  border-radius: 14px;
  padding: 16px 18px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: 0 3px 12px rgba(150, 96, 50, 0.08);
}
.ic-icon  { font-size: 1.7rem; flex-shrink: 0; }
.ic-label { font-size: 11px; color: #A89580; letter-spacing: 1px; margin-bottom: 3px; }
.ic-val   { font-size: 14px; font-weight: 600; color: #4A3A2E; }

/* ═══════════════════════════════════════════════════
   ⑥ INVITATION LETTER
═══════════════════════════════════════════════════ */
.sec-invite {
  background: linear-gradient(180deg, #F0E6D2, #FBF5EC);
  display: flex; align-items: center; justify-content: center;
}

.inv-paper {
  background: #fffdf8;
  border: 1px solid rgba(184, 153, 104, 0.22);
  border-radius: 18px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 6px 32px rgba(150, 96, 50, 0.12),
              inset 0 0 0 1px rgba(255,255,255,0.7);
  width: 100%;
  max-width: 390px;
}

.inv-deco-t, .inv-deco-b {
  font-size: 12px;
  color: #B89968;
  letter-spacing: 6px;
  margin-bottom: 16px;
}
.inv-deco-b { margin-top: 16px; margin-bottom: 0; }

.inv-heading {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 5px;
  color: #4A3A2E;
  margin-bottom: 12px;
}

.inv-line {
  width: 80px; height: 1px;
  background: linear-gradient(to right, transparent, #B89968, transparent);
  margin: 0 auto 20px;
}

.inv-body p {
  font-size: 14px;
  line-height: 2.3;
  color: #7A6655;
  margin-bottom: 14px;
}
.inv-body em {
  font-style: normal;
  color: #A8554A;
  font-weight: 600;
}

.inv-sign {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  font-size: 13px;
  color: #7A6655;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(184, 153, 104, 0.18);
}
.inv-h { color: #f08090; font-size: 16px; }

/* ═══════════════════════════════════════════════════
   ⑦ VENUE
═══════════════════════════════════════════════════ */
.sec-venue { background: #FBF5EC; }

.venue {
  background: #fff;
  border-radius: 18px;
  padding: 24px 18px;
  box-shadow: 0 4px 20px rgba(150, 96, 50, 0.10);
}

/* 信息卡（全宽） */
.venue-info-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e8e0d8;
  border-radius: 12px;
  padding: 18px 16px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s;
  margin-bottom: 16px;
}
.venue-info-card:active { box-shadow: 0 2px 12px rgba(150, 96, 50, 0.18); }

.vic-name {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  line-height: 1.4;
  margin-bottom: 6px;
}
.vic-rank {
  font-size: 11px;
  color: #999;
  line-height: 1.4;
  margin-bottom: 10px;
}
.vic-map-icon { margin-top: 4px; }
.vic-map-icon img {
  height: 28px;
  width: auto;
  object-fit: contain;
}
.vic-amap-fallback {
  font-size: 12px;
  color: #3b7cff;
}

/* 地址行 */
.venue-addr-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: #7A6655;
  line-height: 1.6;
  margin-bottom: 14px;
  padding: 0 2px;
}

.venue-tips { display: flex; flex-direction: column; gap: 10px; }
.vtip {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: #7A6655; line-height: 1.65;
}
.vtip-icon { font-size: 1.1rem; flex-shrink: 0; }

/* 电话链接 */
.tel-link {
  color: #4A3A2E;
  text-decoration: none;
  font-weight: 600;
}
.tel-link:active { color: #B89968; }

/* ═══════════════════════════════════════════════════
   ⑧ PARENTS — 感谢养育之恩
═══════════════════════════════════════════════════ */
.sec-parents {
  background: linear-gradient(180deg, #FAF3E8 0%, #F0E6D2 100%);
}

.parents-intro {
  text-align: center;
  font-size: 14px;
  line-height: 2.3;
  color: #7A6655;
  margin-bottom: 28px;
}

.parents-grid {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.parent-card {
  flex: 1;
  max-width: 160px;
  text-align: center;
}

.parent-photo {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, #eedec8, #d8be98);
  margin-bottom: 10px;
  box-shadow: 0 4px 16px rgba(150, 96, 50, 0.14);
  /* 统一为正方形 */
  aspect-ratio: 1/1;
  max-width: 160px;
  margin-left: auto;
  margin-right: auto;
}

.parent-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}

/* 3.17.jpg 特殊处理 - 中心上移（焦点在更上方） */
.chap-photo img[src*="3.17.jpg"],
.parent-photo img[src*="3.17.jpg"] {
  object-position: center 10%;
}

.pp-ph {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: #A89580;
  font-size: 1.8rem;
  gap: 6px;
}
.pp-hint { font-size: 11px; }

.parent-label {
  font-size: 13px;
  color: #7A6655;
  letter-spacing: 1px;
}

/* ═══════════════════════════════════════════════════
   ⑨ BLESSING
═══════════════════════════════════════════════════ */
.sec-blessing {
  background: linear-gradient(160deg, #2A1F18 0%, #5A4034 40%, #A8554A 80%, #B89968 100%);
  min-height: 65vh;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.sec-blessing::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(255, 190, 120, 0.15), transparent 65%);
}

.bl {
  position: relative;
  text-align: center;
  padding: 20px;
  max-width: 340px;
  color: #FAF3E8;
}
.bl-deco  { font-size: 32px; color: #f0c080; margin-bottom: 18px; }
.bl-title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 4px;
  margin-bottom: 22px;
  color: #fff8ec;
  font-family: "Ma Shan Zheng", "STKaiti", cursive;
}
.bl-body {
  font-size: 14px;
  line-height: 2.5;
  color: rgba(253, 236, 200, 0.85);
  margin-bottom: 26px;
}
.bl-couple {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  font-size: 22px;
  font-weight: 600;
  color: #ffd070;
  margin-bottom: 12px;
  font-family: "Ma Shan Zheng", "STKaiti", cursive;
}
.bl-heart {
  color: #f28090;
  animation: heartBeat 1.8s ease infinite;
}
.bl-date  { font-size: 13px; color: rgba(253, 236, 200, 0.65); margin-bottom: 14px; letter-spacing: 2px; }
.bl-quote { font-size: 14px; color: rgba(253, 236, 200, 0.55); font-style: italic; letter-spacing: 2px; margin-bottom: 14px; }
.bl-fin   { font-size: 12px; color: rgba(253, 236, 200, 0.45); letter-spacing: 3px; }

/* ═══════════════════════════════════════════════════
   ⑨ RSVP — 宾客回执
═══════════════════════════════════════════════════ */
.sec-rsvp { background: #FBF5EC; }

.rsvp-form {
  background: #fff;
  border-radius: 18px;
  padding: 24px 20px;
  box-shadow: 0 4px 20px rgba(150, 96, 50, 0.10);
  max-width: 480px;
  margin: 0 auto;
}

.rsvp-field {
  margin-bottom: 20px;
}

.rsvp-label {
  display: block;
  font-size: 12px;
  color: #A89580;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.rsvp-input, .rsvp-textarea {
  width: 100%;
  border: 1px solid rgba(184, 153, 104, 0.3);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  color: #4A3A2E;
  background: #FAF3E8;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
  resize: none;
}
.rsvp-input:focus, .rsvp-textarea:focus {
  border-color: #B89968;
}

.rsvp-count {
  display: flex;
  align-items: center;
  gap: 16px;
}
.rsvp-cnt-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(184, 153, 104, 0.5);
  background: #FAF3E8;
  color: #B89968;
  font-size: 18px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.rsvp-cnt-btn:active { background: #F0E6D2; }
.rsvp-cnt-val {
  font-size: 22px;
  font-weight: 700;
  color: #4A3A2E;
  min-width: 28px;
  text-align: center;
}

.rsvp-radio-group {
  display: flex;
  gap: 16px;
}
.rsvp-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #7A6655;
}
.rsvp-radio input { accent-color: #B89968; width: 16px; height: 16px; }

.rsvp-submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #B89968, #A8554A);
  color: #fff8ec;
  border: none;
  border-radius: 999px;
  font-size: 15px;
  letter-spacing: 4px;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.2s, transform 0.15s;
  margin-top: 4px;
}
.rsvp-submit:active { transform: scale(0.98); opacity: 0.9; }

.rsvp-tip {
  text-align: center;
  font-size: 13px;
  color: #B89968;
  margin-top: 12px;
  min-height: 20px;
  letter-spacing: 1px;
}

/* ═══════════════════════════════════════════════════
   响应式 — 所有设备统一手机宽度显示
   电脑/平板居中显示，固定最大宽度420px
═══════════════════════════════════════════════════ */
html, body {
  min-height: 100%;
}

#app {
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
  /* 亚麻纹理：经纬细线 + 顶部柔光，告别平面纯色 */
  background-color: #FAF3E8;
  background-image:
    repeating-linear-gradient(0deg,  rgba(184,153,104,0.028) 0, rgba(184,153,104,0.028) 1px, transparent 1px, transparent 4px),
    repeating-linear-gradient(90deg, rgba(184,153,104,0.028) 0, rgba(184,153,104,0.028) 1px, transparent 1px, transparent 4px),
    radial-gradient(ellipse at 50% 0%, rgba(255,250,235,0.7), transparent 55%);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0,0,0,0.22);
  min-height: 100vh;
}
/* 纸张噪点叠层：SVG feTurbulence 颗粒 + overlay 混合，替代纯规则亚麻（CSS-Tricks grainy gradients） */
#app::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* 封面高度：在 #app 容器内撑满 */
.sec-cover {
  height: 100vh;
  min-height: 560px;
}

/* 花瓣只在 #app 范围内飘落 */
#petals {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  width: 420px;
  top: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

/* 音乐按钮跟随 #app 右边 */
.music-btn {
  position: fixed;
  top: 14px;
  right: max(14px, calc(50% - 210px + 14px));
}

/* 手机端（≤420px）直接全宽 */
@media (max-width: 420px) {
  #petals {
    left: 0;
    transform: none;
    width: 100%;
  }
  .music-btn {
    right: 14px;
  }
}

/* ═══════════════════════════════════════════════════
   照片 Lightbox - 点击放大查看
═══════════════════════════════════════════════════ */
.photo-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.photo-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
}

.lightbox-img {
  position: relative;
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.photo-lightbox.active .lightbox-img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 32px;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.3);
}

/* Lightbox 左右导航箭头 */
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  z-index: 10;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,0.28);
}
.lightbox-prev:active,
.lightbox-next:active {
  transform: translateY(-50%) scale(0.92);
}

/* Lightbox 计数器 */
.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  letter-spacing: 2px;
  z-index: 10;
  background: rgba(0,0,0,0.35);
  padding: 4px 14px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

/* 图片骨架屏 + 淡入效果 */
.img-loading {
  opacity: 0;
  transition: opacity 0.5s ease;
}
.img-loaded {
  opacity: 1;
  animation: imgFadeIn 0.6s ease;
}
@keyframes imgFadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}

/* 照片悬停效果 */
.chap-photo img,
.gal-item img,
.parent-photo img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chap-photo:hover img,
.gal-item:hover img,
.parent-photo:hover img {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(100, 60, 20, 0.2);
}

/* ═══════════════════════════════════════════════════
   页面加载动画
═══════════════════════════════════════════════════ */
body {
  opacity: 0.95;
  transition: opacity 0.5s ease;
}

body.loaded {
  opacity: 1;
}

/* 优化滚动体验 — scroll-behavior 已在顶部 Reset 块中声明 */

/* 美化照片容器 */
.chap-photos {
  margin: 20px 0;
}

/* 婚纱照画廊优化 */
.gal-grid {
  padding: 0 4px;
}

/* 优化章节标题 */
.chap-hd {
  margin-bottom: 24px;
}

/* 优化引言卡片 */
.chap-quote {
  margin: 24px 0;
  padding: 18px 20px;
}

/* 优化隔断文字 */
.chap-break {
  margin: 24px 0;
}

/* 优化按钮样式 */
.btn-enter {
  margin-top: 10px;
}

/* 优化 RSVP 表单 */
.rsvp-form {
  margin-top: 20px;
}

/* ═══════════════════════════════════════════════════
   ⑫ FOOTER — ICP 备案（固定底栏，始终可见）
═══════════════════════════════════════════════════ */
.site-footer-fixed {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  text-align: center;
  padding: 4px 12px;
  background: rgba(245, 236, 226, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-top: 1px solid rgba(184, 153, 104, 0.1);
  font-size: 10px;
  letter-spacing: 0.5px;
  line-height: 1.6;
}

.site-footer-fixed a {
  color: #A89580;
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer-fixed a:active {
  color: #B89968;
}

.footer-sep {
  margin: 0 6px;
  color: rgba(196,136,74,0.25);
  font-size: 11px;
}

.psb-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.psb-badge {
  vertical-align: middle;
  margin-right: 2px;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════
   响应式优化
═══════════════════════════════════════════════════ */
@media (max-width: 380px) {
  .sec {
    padding: 48px 16px;
  }
  
  .cover-title {
    font-size: 28px;
    letter-spacing: 6px;
  }
  
  .cover-name {
    font-size: 20px;
  }
  
  .sec-zh {
    font-size: 22px;
  }
  
  .chap-ev {
    font-size: 18px;
  }
  
  .chap-desc {
    font-size: 13px;
  }
}

/* ═══════════════════════════════════════════════════
   打印样式优化
═══════════════════════════════════════════════════ */
@media print {
  #petals,
  .music-btn,
  .btn-enter,
  .lightbox-close {
    display: none !important;
  }
  
  .sec {
    page-break-inside: avoid;
  }
}
