:root {
  --paper: #f5f0e8;
  --paper-2: #eee5d8;
  --red: #8d2028;
  --red-soft: #a5484e;
  --ink: #292929;
  --muted: #726d68;
  --line: rgba(41, 41, 41, .16);
  --white: #fffaf3;
  --page-min-height: 100svh;
  --body-size: 17px;
  --hint-size: 13px;
  --eyebrow-size: 13px;
  --h2-size: clamp(27px, 6.8vw, 40px);
  --name-size: clamp(36px, 10vw, 48px);
  --day-size: clamp(76px, 22vw, 112px);

  /* 第一屏专用尺寸 */
  --hero-eyebrow-size: 18px;
  --hero-name-size: clamp(54px, 14vw, 80px);
  --hero-date-size: clamp(30px, 7vw, 40px);
  --hero-place-size: 20px;
  --hero-symbol-size: 88px;
  --hero-symbol-font-size: 46px;
  --hero-seal-size: 82px;
  --hero-seal-font-size: 15px;
  --hero-tip-size: 15px;

  /* 第二屏专用尺寸 */
  --intro-eyebrow-size: 16px;
  --intro-name-size: 36px;
  --intro-body-size: 20px;
  --intro-photo-width: 88%;

  /* 第三页高度：保留配置，但默认跟其他页面等高 */
  --story-min-height: var(--page-min-height);
  --story-padding-bottom: 30px;

  /* 第五页以后专用字号 */
  --later-eyebrow-size: 18px;
  --later-title-size: clamp(40px, 9vw, 52px);
  --location-city-size: 19px;
  --location-hotel-size: 38px;
  --location-date-size: 18px;
  --location-button-size: 17px;
  --location-hint-size: 15px;
  --schedule-time-size: 18px;
  --schedule-item-title-size: 23px;
  --schedule-desc-size: 18px;
  --invite-body-size: 21px;
  --invite-signature-size: 18px;
  --rsvp-label-size: 18px;
  --rsvp-input-size: 19px;
  --rsvp-radio-size: 18px;
  --rsvp-button-size: 17px;
  --ending-eyebrow-size: 18px;
  --ending-date-size: clamp(54px, 13vw, 76px);
  --ending-name-size: clamp(40px, 9vw, 54px);
  --ending-copy-size: 23px;

  /* 婚礼倒计时 */
  --countdown-width: 92px;
  --countdown-number-size: 30px;
  --countdown-unit-size: 14px;
  --countdown-title-size: 12px;
}

/* =========================================================
   V6.7：仅中文字符统一为宋体；英文、数字保持原字体
   WeddingSongCN 只覆盖中文/CJK字符。ASCII 英文、数字、& 等
   不在 unicode-range 内，因此继续使用各元素修改前的字体。
   ========================================================= */
@font-face {
  font-family: "WeddingSongCN";
  src:
    local("Songti SC"),
    local("STSong"),
    local("SimSun"),
    local("NSimSun"),
    local("Noto Serif CJK SC"),
    local("Source Han Serif SC");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range:
    U+2E80-2EFF,
    U+2F00-2FDF,
    U+3000-303F,
    U+31C0-31EF,
    U+3400-4DBF,
    U+4E00-9FFF,
    U+F900-FAFF,
    U+FE30-FE4F;
}


* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "WeddingSongCN", "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.section { position: relative; padding: 88px 24px; overflow: hidden; min-height: var(--page-min-height); }
.full-screen { min-height: 100svh; padding: 0; }
.section-inner { position: relative; z-index: 2; width: min(100%, 1080px); margin: 0 auto; }
.section-inner.narrow { width: min(100%, 720px); }
.center { text-align: center; }
.eyebrow {
  margin: 0 0 16px;
  font: 500 var(--eyebrow-size)/1.5 "WeddingSongCN", Arial, sans-serif;
  letter-spacing: .22em;
  color: var(--red);
}
.eyebrow.light { color: rgba(255,255,255,.9); }
h2 {
  margin: 0 0 28px;
  font-size: var(--h2-size);
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: .035em;
}
h2 span { color: var(--red); font-weight: 400; }
.copy { font-size: var(--body-size); line-height: 2.05; letter-spacing: .065em; }
.hint { margin: 20px auto 0; max-width: 500px; font: var(--hint-size)/1.75 "WeddingSongCN", Arial, sans-serif; color: var(--muted); }
.cn-divider {
  width: min(76%, 280px);
  margin: -4px auto 30px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  color: var(--red);
}
.cn-divider i { height: 1px; background: linear-gradient(90deg, transparent, currentColor); opacity: .42; }
.cn-divider i:last-child { background: linear-gradient(90deg, currentColor, transparent); }
.cn-divider b {
  position: relative; min-width: 36px; height: 32px; padding: 0 6px;
  display: grid; place-items: center; color: currentColor;
  font-family: "WeddingSongCN", "Songti SC", "STSong", serif;
  font-size: 12px; font-weight: 500; line-height: 1; letter-spacing: .04em;
}
.cn-divider b::before {
  content: ""; position: absolute; width: 24px; height: 24px;
  border: 1px solid currentColor; transform: rotate(45deg); opacity: .72;
}
.cn-divider.compact { margin-top: 0; margin-bottom: 26px; width: min(62%, 220px); }
.cn-divider.light { color: #d8b8a0; }
.music-toggle {
  position: fixed; z-index: 30; right: 16px; top: calc(16px + env(safe-area-inset-top));
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  color: var(--red); background: rgba(245,240,232,.88); border: 1px solid rgba(141,32,40,.18);
  backdrop-filter: blur(8px); box-shadow: 0 10px 20px rgba(0,0,0,.08); cursor: pointer; user-select: none;
}
.music-toggle.active { color: white; background: var(--red); }
.photo-placeholder {
  position: relative;
  background:
    linear-gradient(135deg, rgba(255,255,255,.5), rgba(255,255,255,.1)),
    linear-gradient(45deg, #ebe2d5, #f6f0e8);
  border: 1px solid rgba(41,41,41,.08);
  overflow: hidden;
}
.photo-placeholder::before {
  content: attr(data-photo-label);
  position: absolute; inset: auto 14px 14px auto;
  padding: 6px 10px; border-radius: 999px;
  background: rgba(255,250,243,.88); color: rgba(41,41,41,.72);
  font: 12px/1 "WeddingSongCN", Arial, sans-serif; letter-spacing: .08em;
}
.photo-placeholder.has-image::before { display: none; }
.hero { position: relative; color: white; display: grid; place-items: center; text-align: center; }
.hero-photo, .ending-photo { position: absolute; inset: 0; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(20,15,13,.20), rgba(20,15,13,.58)); }
.hero-content { position: relative; z-index: 2; padding: 24px; width: min(100%, 1080px); }
.hero-seal {
  position: absolute; right: 8%; top: 9%; width: var(--hero-seal-size); height: var(--hero-seal-size);
  border: 1px solid rgba(255,255,255,.68); color: rgba(255,255,255,.92);
  display: grid; place-items: center; line-height: 1.18; font-size: var(--hero-seal-font-size); letter-spacing: .08em;
  background: rgba(141,32,40,.28); backdrop-filter: blur(2px);
}
.double-happiness {
  width: var(--hero-symbol-size); height: var(--hero-symbol-size); margin: 0 auto 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: var(--hero-symbol-font-size); color: #fff; border: 1px solid rgba(255,255,255,.55);
  background: rgba(255,255,255,.08);
}
.hero .eyebrow {
  margin-bottom: 22px;
  font-size: var(--hero-eyebrow-size);
}
.hero h1 {
  display: flex; flex-direction: column; gap: 12px; align-items: center;
  margin: 0 0 28px; font-size: var(--hero-name-size); line-height: 1.08; font-weight: 500;
}
.hero h1 span { text-shadow: 0 6px 18px rgba(0,0,0,.14); }
.hero h1 em { font-style: normal; font-size: .62em; color: rgba(255,255,255,.85); }
.hero-date { margin: 0 0 12px; font: 400 var(--hero-date-size)/1.2 "WeddingSongCN", Georgia, serif; letter-spacing: .16em; }
.hero-place { margin: 0; font-size: var(--hero-place-size); letter-spacing: .18em; color: rgba(255,255,255,.88); }
.scroll-tip {
  position: absolute; left: 50%; bottom: max(32px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  z-index: 2; font: var(--hero-tip-size)/1.65 "WeddingSongCN", Arial, sans-serif; letter-spacing: .12em; color: rgba(255,255,255,.82); text-align: center;
  white-space: nowrap;
}
.intro { background: var(--paper); }
.intro::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; opacity: .2;
  background: repeating-linear-gradient(90deg, var(--red) 0 2px, transparent 2px 12px);
}
.intro .eyebrow {
  font-size: var(--intro-eyebrow-size);
  margin-bottom: 20px;
}
.intro h2 { text-align: center; font-size: var(--intro-name-size); margin-bottom: 26px; }
.intro .cn-divider { margin-bottom: 42px; width: min(86%, 360px); }
.portrait { width: var(--intro-photo-width); max-width: 620px; aspect-ratio: 3 / 4; margin: 34px auto 42px; }
.intro .copy { font-size: var(--intro-body-size); line-height: 2.05; }
.story {
  background: #efe7dc;
  min-height: var(--page-min-height);
  padding-top: 48px;
  padding-bottom: var(--story-padding-bottom);
}
.story::before {
  content: "囍"; position: absolute; right: -24px; top: 28px;
  font-size: 180px; line-height: 1; color: var(--red); opacity: .035; pointer-events: none;
}
.section-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.section-head h2 { margin-bottom: 20px; }
.chapter { font: 500 58px/1 "WeddingSongCN", Georgia, serif; color: rgba(141,32,40,.16); }
.photo-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  grid-template-rows: 26svh 30svh;
  gap: 12px;
}
.photo-grid .wide { grid-column: 1 / -1; aspect-ratio: auto; height: 100%; }
.photo-grid .tall { aspect-ratio: auto; height: 100%; }
.photo-grid .square { align-self: stretch; aspect-ratio: auto; height: 100%; }
.story-line { margin: 18px 0 0; text-align: right; font-size: 16px; line-height: 1.8; letter-spacing: .07em; color: #55504c; }
.corner-seal {
  margin: 16px 0 0 auto; width: 50px; height: 50px;
  display: grid; place-items: center; border: 1px solid rgba(141,32,40,.5);
  color: var(--red); font-size: 11px; line-height: 1.25; letter-spacing: .06em; transform: rotate(-3deg);
}
.date-section { background: var(--paper); }
.date-section::after {
  content: "囍"; position: absolute; left: -20px; bottom: 24px;
  font-size: 150px; color: var(--red); opacity: .028; pointer-events: none;
}
.month { margin: 14px 0 0; font: 500 16px/1 "WeddingSongCN", Georgia, serif; letter-spacing: .26em; }
.day { margin: 12px 0 2px; font: 400 var(--day-size)/.92 "WeddingSongCN", Georgia, serif; color: var(--red); }
.year { margin: 0; font: 500 19px/1 "WeddingSongCN", Georgia, serif; letter-spacing: .28em; }
.weekday { margin: 22px 0 24px; font-size: 16px; letter-spacing: .16em; }
.calendar-card {
  position: relative; padding: 28px 20px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background:
    linear-gradient(var(--red), var(--red)) left top/18px 1px no-repeat,
    linear-gradient(var(--red), var(--red)) left top/1px 18px no-repeat,
    linear-gradient(var(--red), var(--red)) right bottom/18px 1px no-repeat,
    linear-gradient(var(--red), var(--red)) right bottom/1px 18px no-repeat;
}
.calendar-title { margin-bottom: 20px; font: 500 16px "WeddingSongCN", Arial, sans-serif; letter-spacing: .18em; color: rgba(41,41,41,.88); }
.calendar-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 8px 4px; }
.calendar-grid span { aspect-ratio: 1; display: grid; place-items: center; font: 15px "WeddingSongCN", Arial, sans-serif; color: rgba(41,41,41,.88); }
.calendar-week { color: rgba(41,41,41,.78); }
.calendar-week span { color: rgba(41,41,41,.78); }
.days .selected { color: white; background: var(--red); border-radius: 50%; }
/* 日期页侧边倒计时：桌面端为竖条，手机端自动变为横条，避免挤压日历 */
.countdown-ribbon {
  position: absolute;
  z-index: 4;
  right: max(24px, calc(50% - 450px));
  top: 0; /* 由 JS 精确对齐日历卡片顶部 */
  transform: none;
  width: var(--countdown-width);
  min-height: 360px;
  padding: 24px 10px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff8ee;
  background:
    radial-gradient(circle at 110% 15%, transparent 0 32px, rgba(255,255,255,.10) 33px 34px, transparent 35px 52px),
    radial-gradient(circle at -10% 73%, transparent 0 28px, rgba(255,255,255,.09) 29px 30px, transparent 31px 48px),
    var(--red);
  text-align: center;
  box-shadow: 0 14px 30px rgba(73,20,25,.15);
  overflow: hidden;
}
.countdown-ribbon::before {
  content: "囍";
  position: absolute;
  right: -13px;
  top: 78px;
  font-size: 78px;
  line-height: 1;
  color: rgba(255,255,255,.045);
  pointer-events: none;
}
.countdown-ribbon::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-top: 1px solid rgba(255,255,255,.13);
  border-bottom: 1px solid rgba(255,255,255,.13);
  pointer-events: none;
}
.countdown-title {
  position: relative; z-index: 1;
  margin: 0 0 13px;
  font-size: var(--countdown-title-size);
  line-height: 1.5;
  letter-spacing: .12em;
  color: rgba(255,248,238,.84);
}
.countdown-unit {
  position: relative; z-index: 1;
  padding: 8px 0;
}
.countdown-unit + .countdown-unit::before {
  content: "";
  position: absolute;
  left: 50%; top: 0;
  width: 24px; height: 1px;
  transform: translateX(-50%);
  background: rgba(255,255,255,.20);
}
.countdown-unit strong {
  position: relative;
  display: block;
  width: 100%;
  height: 1.12em;
  overflow: hidden;
  font: 500 var(--countdown-number-size)/1.08 "WeddingSongCN", Georgia, "Times New Roman", serif;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}
.countdown-unit strong .roll-static,
.countdown-unit strong .roll-old,
.countdown-unit strong .roll-new {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform, opacity;
}
.countdown-unit strong .roll-old { transform: translateY(0); opacity: 1; }
.countdown-unit strong .roll-new { transform: translateY(110%); opacity: .28; }
.countdown-unit strong.rolling .roll-old {
  animation: countdownRollOld .38s cubic-bezier(.42,0,.2,1) forwards;
}
.countdown-unit strong.rolling .roll-new {
  animation: countdownRollNew .38s cubic-bezier(.42,0,.2,1) forwards;
}
@keyframes countdownRollOld {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(-110%); opacity: .22; }
}
@keyframes countdownRollNew {
  from { transform: translateY(110%); opacity: .28; }
  to { transform: translateY(0); opacity: 1; }
}
.countdown-unit span {
  display: block;
  margin-top: 7px;
  font-size: var(--countdown-unit-size);
  line-height: 1;
  letter-spacing: .08em;
}
.countdown-ribbon.finished .countdown-unit { display: none; }
.countdown-ribbon.finished .countdown-title { margin: 18px 0; font-size: 17px; line-height: 1.8; }

.location { background: #231f1c; color: var(--white); }
.location::before {
  content: ""; position: absolute; inset: 18px; pointer-events: none; opacity: .35;
  background:
    linear-gradient(#b98d70,#b98d70) left top/52px 1px no-repeat,
    linear-gradient(#b98d70,#b98d70) left top/1px 52px no-repeat,
    linear-gradient(#b98d70,#b98d70) right top/52px 1px no-repeat,
    linear-gradient(#b98d70,#b98d70) right top/1px 52px no-repeat,
    linear-gradient(#b98d70,#b98d70) left bottom/52px 1px no-repeat,
    linear-gradient(#b98d70,#b98d70) left bottom/1px 52px no-repeat,
    linear-gradient(#b98d70,#b98d70) right bottom/52px 1px no-repeat,
    linear-gradient(#b98d70,#b98d70) right bottom/1px 52px no-repeat;
}
.location .eyebrow { color: #d9b8a3; font-size: var(--later-eyebrow-size); }
.location h2 { margin-bottom: 20px; font-size: var(--later-title-size); }
.location-mark { margin-top: 6px; font-size: 38px; color: #d9b8a3; }
.city { margin: 18px 0 10px; font-size: var(--location-city-size); letter-spacing: .12em; color: rgba(255,255,255,.76); }
.location h3 { margin: 0 0 12px; font-size: var(--location-hotel-size); font-weight: 500; letter-spacing: .07em; }
.date-small { margin: 0 0 30px; color: rgba(255,255,255,.80); font-size: var(--location-date-size); }
.primary-btn {
  display: inline-block; min-width: 260px; padding: 18px 28px; border-radius: 999px; border: 1px solid var(--red);
  background: var(--red); color: white; text-decoration: none; text-align: center;
  font: 500 var(--location-button-size)/1 "WeddingSongCN", Arial, sans-serif; letter-spacing: .1em; cursor: pointer;
  transition: transform .2s ease, opacity .2s ease;
}
.primary-btn:active { transform: scale(.98); }
.location .hint { color: rgba(255,255,255,.62); font-size: var(--location-hint-size); }
.schedule { background: var(--paper); }
.schedule .eyebrow { font-size: var(--later-eyebrow-size); }
.schedule h2 { font-size: var(--later-title-size); }
.timeline { position: relative; margin-top: 40px; }
.timeline::before { content: ""; position: absolute; left: 70px; top: 5px; bottom: 5px; width: 1px; background: rgba(141,32,40,.24); }
.timeline-item { position: relative; display: grid; grid-template-columns: 58px 1fr; gap: 34px; padding-bottom: 34px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::after { content: ""; position: absolute; left: 66px; top: 6px; width: 9px; height: 9px; background: var(--paper); border: 1.5px solid var(--red); transform: rotate(45deg); }
.time { font: 500 var(--schedule-time-size)/1.5 "WeddingSongCN", Arial, sans-serif; color: var(--red); }
.timeline-item strong { display: block; margin-bottom: 7px; font-size: var(--schedule-item-title-size); letter-spacing: .055em; }
.timeline-item p { margin: 0; color: var(--muted); font-size: var(--schedule-desc-size); line-height: 1.6; }
.invite { background: #efe7dc; }
.invite .eyebrow { font-size: var(--later-eyebrow-size); }
.invite h2 { font-size: var(--later-title-size); }
.invite .copy { font-size: var(--invite-body-size); line-height: 1.95; }
.invite::before {
  content: "囍"; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-48%);
  font-size: min(50vw, 280px); color: var(--red); opacity: .026; pointer-events: none;
}
.signature { margin-top: 30px; font-size: var(--invite-signature-size); letter-spacing: .09em; }
.signature span { color: var(--red); padding: 0 8px; }
.rsvp { background: var(--paper); }
.rsvp .eyebrow { font-size: var(--later-eyebrow-size); }
.rsvp h2 { font-size: var(--later-title-size); }
.rsvp-form { display: grid; gap: 22px; margin-top: 30px; }
.rsvp-form > label { display: grid; gap: 10px; font-size: var(--rsvp-label-size); letter-spacing: .055em; }
.rsvp-form input[type="text"], .rsvp-form select {
  width: 100%; border: 0; border-bottom: 1px solid rgba(41,41,41,.24); background: transparent;
  padding: 14px 4px; color: var(--ink); font-size: var(--rsvp-input-size); outline: none; border-radius: 0;
}
.rsvp-form input[type="text"]:focus, .rsvp-form select:focus { border-bottom-color: var(--red); }
.radio-group { display: flex; flex-wrap: wrap; gap: 18px 28px; padding: 8px 0; font-size: var(--rsvp-radio-size); }
.radio-group label { cursor: pointer; }
.button { border: 0; margin: 8px auto 0; font-family: inherit; font-size: var(--rsvp-button-size); }
.form-message { min-height: 24px; margin: 0; text-align: center; color: var(--red); font-size: 14px; }
.ending { min-height: var(--page-min-height); color: white; display: grid; place-items: center; padding: 50px 24px; }
.ending::before, .ending::after {
  content: ""; position: absolute; z-index: 2; width: 48px; height: 48px; opacity: .6; pointer-events: none;
}
.ending::before { left: 24px; top: 24px; border-left: 1px solid #ead7c1; border-top: 1px solid #ead7c1; }
.ending::after { right: 24px; bottom: 24px; border-right: 1px solid #ead7c1; border-bottom: 1px solid #ead7c1; }
.ending-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(20,15,13,.2), rgba(20,15,13,.56)); }
.ending-content { position: relative; z-index: 2; }
.ending .eyebrow { font-size: var(--ending-eyebrow-size); }
.ending-date { margin: 16px 0 24px; font: 400 var(--ending-date-size)/1 "WeddingSongCN", Georgia, serif; letter-spacing: .02em; }
.ending h2 { margin-bottom: 30px; font-size: var(--ending-name-size); }
.ending-copy { margin: 0; font-size: var(--ending-copy-size); letter-spacing: .16em; }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .85s ease, transform .85s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.hero.reveal, .ending.reveal { transform: none; }
@media (min-width: 768px) {
  .section { padding: 108px 36px; }
  .story { padding-top: 48px; padding-bottom: var(--story-padding-bottom); }
  .portrait { width: min(var(--intro-photo-width), 72%); }
  .hero h1 { flex-direction: row; gap: 16px; }
  .hero h1 em { margin: 0 8px; }
  .photo-grid { gap: 18px; }
  .hero-seal { right: 16%; }
}

/* V4.7：仅优化桌面端日期页右侧倒计时条字号与四组时间的纵向均匀排布 */
@media (min-width: 901px) {
  .countdown-ribbon {
    display: grid;
    grid-template-rows: auto repeat(4, minmax(0, 1fr));
    justify-content: initial;
  }
  .countdown-title {
    margin: 0 0 6px;
    font-size: 14px;
  }
  .countdown-unit {
    min-height: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .countdown-unit strong {
    font-size: 34px;
  }
  .countdown-unit span {
    margin-top: 8px;
    font-size: 17px;
  }
}
@media (max-width: 900px) {
  .countdown-ribbon {
    position: relative;
    right: auto; top: auto;
    transform: none;
    width: min(100% - 48px, 560px);
    height: auto !important;
    min-height: 0;
    margin: 28px auto 0;
    padding: 16px 18px;
    display: grid;
    grid-template-columns: 1.35fr repeat(4, 1fr);
    align-items: center;
    gap: 0;
  }
  .countdown-ribbon::before { right: 2%; top: -13px; font-size: 92px; }
  .countdown-ribbon::after { inset: 7px; }
  .countdown-title { margin: 0; padding-right: 10px; font-size: 12px; }
  .countdown-unit { padding: 5px 8px; }
  .countdown-unit + .countdown-unit::before {
    left: 0; top: 50%; width: 1px; height: 28px; transform: translateY(-50%);
  }
  .countdown-unit strong { font-size: 24px; }
  .countdown-unit span { margin-top: 5px; font-size: 12px; }
}

@media (max-width: 380px) {
  .section { padding-left: 20px; padding-right: 20px; }
  .hero-seal { top: 10%; right: 8%; }
  .timeline::before { left: 64px; }
  .timeline-item { grid-template-columns: 54px 1fr; gap: 28px; }
  .timeline-item::after { left: 60px; }
}


/* ====== V4.3 中式装饰层（参考：龙凤呈祥、团圆囍、长条囍挂饰、祥云回纹） ====== */
.ornament-layer { position:absolute; inset:0; z-index:1; pointer-events:none; }
.orn { position:absolute; pointer-events:none; user-select:none; }
.round-xi {
  width: 240px; aspect-ratio: 1; border-radius: 50%;
  display:grid; place-items:center; font-size: 90px; font-weight: 600; line-height: 1;
  color: rgba(190,145,70,.35); background: radial-gradient(circle at 50% 50%, rgba(255,248,230,.2), rgba(255,248,230,0) 62%);
  border: 3px double currentColor; box-shadow: inset 0 0 0 1px rgba(190,145,70,.12);
}
.round-xi::before, .round-xi::after {
  content:""; position:absolute; inset: 14px; border-radius:50%; border:1px solid currentColor; opacity:.55;
}
.round-xi::after { inset:-10px; border-color: rgba(190,145,70,.22); }
.xi-soft { opacity:.26; }
.gold-medallion { color: rgba(214,176,107,.42); opacity:.46; }
.xi-banner {
  width: 88px; height: 300px; border-radius: 3px; display:grid; place-items:center;
  color: #f4d89a; font-size: 64px; font-weight: 700; line-height:1;
  background: linear-gradient(180deg, #a52128 0%, #8d2028 100%);
  border: 2px solid rgba(215,178,116,.9);
  box-shadow: 0 10px 24px rgba(90,26,18,.14), inset 0 0 0 1px rgba(255,243,210,.18);
}
.xi-banner::before, .xi-banner::after {
  content:""; position:absolute; left:10px; right:10px; height:14px;
  border-top: 1px solid rgba(244,216,154,.55); border-bottom: 1px solid rgba(244,216,154,.25);
}
.xi-banner::before { top: 18px; }
.xi-banner::after { bottom: 18px; }
.auspice-vertical {
  font-size: 28px; color: rgba(188,144,74,.24); letter-spacing: .22em; line-height: 1.25;
  writing-mode: vertical-rl; text-orientation: mixed; white-space: nowrap;
}
.dark-ornaments .auspice-vertical { color: rgba(214,176,107,.32); }
.intro::before { opacity: .18; }
.invite::before { display:none; }
.ending::before, .ending::after { opacity:.42; }

/* page-specific positions */
.banner-left { left: 40px; top: 120px; }
.round-right-bottom { right: 60px; bottom: 70px; }
.auspice-right { right: 24px; top: 110px; }

.round-left-bottom { left: 36px; bottom: 50px; width: 200px; font-size: 74px; }
.banner-right-tall { right: 30px; top: 160px; height: 360px; }

.round-calendar { left: 70px; bottom: 80px; width: 210px; font-size: 82px; }
.auspice-date { left: 34px; top: 170px; }

.location-medallion { width: 300px; font-size: 118px; left: 50%; top: 54%; transform: translate(-50%, -50%); }
.auspice-left-gold { left: 46px; top: 150px; }
.auspice-right-gold { right: 46px; top: 150px; }

.banner-left-short { left: 46px; top: 180px; height: 250px; }
.round-schedule { right: 44px; bottom: 70px; width: 190px; font-size: 72px; }

.invite-medallion { width: 260px; font-size: 102px; left: 50%; top: 56%; transform: translate(-50%, -50%); }
.banner-invite-right { right: 54px; top: 170px; height: 310px; }

.round-rsvp { left: 48px; top: 170px; width: 200px; font-size: 76px; }
.auspice-rsvp-left { right: 46px; top: 150px; }

.ending-medallion { width: 290px; font-size: 110px; left: 50%; top: 52%; transform: translate(-50%, -50%); }
.ending-left { left: 46px; top: 160px; color: rgba(214,176,107,.36); }
.ending-right { right: 46px; top: 160px; color: rgba(214,176,107,.36); }

@media (max-width: 900px) {
  .round-xi { width: 170px; font-size: 64px; }
  .xi-banner { width: 62px; height: 210px; font-size: 46px; }
  .auspice-vertical { font-size: 18px; letter-spacing: .16em; }
  .banner-left, .banner-right-tall, .banner-invite-right, .banner-left-short { top: 90px; }
  .round-right-bottom, .round-left-bottom, .round-calendar, .round-schedule, .round-rsvp { bottom: 34px; top:auto; }
  .location-medallion, .invite-medallion, .ending-medallion { width: 190px; font-size: 74px; }
  .auspice-left-gold, .auspice-right-gold, .ending-left, .ending-right, .auspice-rsvp-left { top: 100px; }
}
@media (max-width: 640px) {
  .banner-left, .banner-right-tall, .banner-invite-right, .banner-left-short, .auspice-date, .auspice-right, .auspice-rsvp-left { display:none; }
  .round-right-bottom { right: 18px; bottom: 22px; width: 120px; font-size: 44px; }
  .round-left-bottom { left: 14px; bottom: 18px; width: 110px; font-size: 40px; }
  .round-calendar { left: 12px; bottom: 18px; width: 110px; font-size: 44px; opacity:.16; }
  .location-medallion { width: 140px; font-size: 54px; top: 58%; }
  .round-schedule { right: 12px; bottom: 18px; width: 110px; font-size: 42px; opacity:.14; }
  .invite-medallion { width: 140px; font-size: 54px; top: 66%; opacity:.18; }
  .round-rsvp { left: 10px; top: auto; bottom: 18px; width: 110px; font-size: 42px; opacity:.16; }
  .ending-medallion { width: 140px; font-size: 54px; top: 58%; opacity:.22; }
  .auspice-left-gold, .auspice-right-gold, .ending-left, .ending-right { font-size: 15px; opacity:.4; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* =========================================================
   V4.1 布局填充调整：按实际桌面截图重新分配页面空间
   ========================================================= */
:root {
  --calendar-title-size: 20px;
  --calendar-font-size: 19px;
}

/* 1. 封面姓名严格居中，避免单行姓名组合产生视觉偏移 */
.hero-content {
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.hero h1 {
  width: 100%;
  justify-content: center;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.hero h1 > span {
  display: block;
  width: auto;
  text-align: center;
}

/* 2. “关于我们”：扩大照片区，并让内容在整屏垂直居中 */
.story {
  display: flex;
  align-items: center;
  padding-top: 38px;
  padding-bottom: 38px;
}
.story .section-inner {
  width: min(100%, 1120px);
}
.story .section-head {
  margin-bottom: 16px;
}
.story .section-head h2 {
  font-size: clamp(42px, 5vw, 58px);
}
.story .chapter {
  font-size: 68px;
}
.story .photo-grid {
  grid-template-rows: 30svh 34svh;
  gap: 18px;
}
.story-line {
  margin-top: 20px;
  font-size: 19px;
}
.story .corner-seal {
  width: 58px;
  height: 58px;
  margin-top: 14px;
  font-size: 13px;
}

/* 3. 日历：只放大文字和日期数字，不改变整体结构 */
.calendar-title {
  font-size: var(--calendar-title-size);
  margin-bottom: 22px;
}
.calendar-grid span {
  font-size: var(--calendar-font-size);
  font-weight: 500;
}
.calendar-week span {
  font-weight: 500;
}
.days .selected {
  font-size: calc(var(--calendar-font-size) + 1px);
}

/* 4~7. 统一让内容真正占满页面中部，而不是只靠 min-height 撑出空白 */
.location,
.schedule,
.invite,
.rsvp {
  display: flex;
  align-items: center;
}
.location .section-inner,
.schedule .section-inner,
.invite .section-inner,
.rsvp .section-inner {
  min-height: calc(100svh - 176px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* 4. 婚礼地点 */
.location .section-inner.narrow {
  width: min(100%, 820px);
}
.location .eyebrow {
  margin-bottom: 24px;
}
.location h2 {
  margin-bottom: 30px;
}
.location .cn-divider {
  margin-bottom: 34px;
}
.location-mark {
  margin-top: 10px;
  margin-bottom: 12px;
  font-size: 46px;
}
.city {
  margin: 22px 0 14px;
}
.location h3 {
  margin-bottom: 18px;
}
.date-small {
  margin-bottom: 38px;
}
.location .primary-btn {
  min-width: 300px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.location .hint {
  max-width: 660px;
  margin-top: 28px;
  line-height: 1.9;
}

/* 5. 婚礼当天：时间轴加宽并居中，增加纵向占用 */
.schedule .section-inner.narrow {
  width: min(100%, 800px);
}
.schedule .eyebrow {
  margin-bottom: 22px;
}
.schedule h2 {
  margin-bottom: 34px;
}
.schedule .cn-divider {
  margin-bottom: 22px;
}
.schedule .timeline {
  width: min(100%, 660px);
  margin: 46px auto 0;
}
.schedule .timeline-item {
  grid-template-columns: 76px 1fr;
  gap: 42px;
  padding-bottom: 46px;
}
.schedule .timeline::before {
  left: 91px;
}
.schedule .timeline-item::after {
  left: 86px;
  width: 11px;
  height: 11px;
}
.schedule .hint {
  margin-top: 34px;
}

/* 6. 邀请页：正文块加大并拉开层级 */
.invite .section-inner.narrow {
  width: min(100%, 800px);
}
.invite .eyebrow {
  margin-bottom: 24px;
}
.invite h2 {
  margin-bottom: 34px;
}
.invite .cn-divider {
  margin-bottom: 42px;
}
.invite .copy {
  line-height: 2.05;
}
.invite .signature {
  margin-top: 46px;
}

/* 7. RSVP：表单加宽、增大间距，视觉占据页面中部 */
.rsvp .section-inner.narrow {
  width: min(100%, 820px);
}
.rsvp .eyebrow {
  margin-bottom: 22px;
}
.rsvp h2 {
  margin-bottom: 34px;
}
.rsvp .cn-divider {
  margin-bottom: 34px;
}
.rsvp-form {
  width: min(100%, 760px);
  margin: 36px auto 0;
  gap: 30px;
}
.rsvp-form > label {
  gap: 14px;
}
.rsvp-form input[type="text"],
.rsvp-form select {
  padding: 18px 4px;
}
.radio-group {
  gap: 24px 36px;
  padding: 12px 0;
}
.rsvp .button {
  min-width: 300px;
  padding-top: 19px;
  padding-bottom: 19px;
  margin-top: 14px;
}
.rsvp .hint {
  max-width: 660px;
  margin-top: 34px;
}

@media (max-width: 900px) {
  /* 手机仍以不溢出为优先，避免桌面填充规则把内容撑出屏幕 */
  .story,
  .location,
  .schedule,
  .invite,
  .rsvp {
    display: block;
  }
  .location .section-inner,
  .schedule .section-inner,
  .invite .section-inner,
  .rsvp .section-inner {
    min-height: 0;
    display: block;
  }
  .story .photo-grid {
    grid-template-rows: 26svh 30svh;
  }
  .schedule .timeline {
    width: 100%;
  }
  .schedule .timeline-item {
    grid-template-columns: 58px 1fr;
    gap: 34px;
    padding-bottom: 34px;
  }
  .schedule .timeline::before { left: 70px; }
  .schedule .timeline-item::after { left: 66px; width: 9px; height: 9px; }
}


/* ====== V4.4 调整：去掉生硬喜字，改为更深的龙凤/祥云暗纹；封面亮金字 ====== */
.hero-overlay { background: linear-gradient(to bottom, rgba(20,15,13,.30), rgba(20,15,13,.68)); }
.hero::before {
  content: "龙凤呈祥";
  position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%);
  z-index: 1; font-size: clamp(130px, 20vw, 240px); line-height: 1; white-space: nowrap;
  letter-spacing: .12em; font-weight: 600; color: rgba(244, 216, 154, .16);
  text-shadow: 0 0 1px rgba(244,216,154,.18);
}
.hero::after {
  content: "祥云";
  position: absolute; right: 10%; bottom: 16%; z-index: 1;
  font-size: clamp(70px, 8vw, 110px); letter-spacing: .18em; font-weight: 500;
  color: rgba(244, 216, 154, .12);
}
.double-happiness { display: none; }
.hero .eyebrow,
.hero h1 span,
.hero-date,
.hero-place,
.scroll-tip { color: #f4d89a; }
.hero h1 span,
.hero-date,
.hero-place { text-shadow: 0 8px 22px rgba(0,0,0,.18); }
.hero h1 em { color: rgba(244,216,154,.9); }
.hero-seal {
  background: rgba(141,32,40,.38);
  border-color: rgba(244,216,154,.7);
  color: #f4d89a;
}

/* 去掉生硬的长条喜与圆圈喜，改成更柔和的大暗纹 */
.xi-banner,
.round-xi { display: none !important; }
.auspice-vertical {
  color: rgba(153, 96, 56, .36);
  text-shadow: 0 1px 0 rgba(255,255,255,.14);
}
.dark-ornaments .auspice-vertical { color: rgba(214,176,107,.42); }

/* 各页装饰改成龙凤/祥云暗纹 */
.intro .ornament-layer::before,
.intro .ornament-layer::after,
.story .ornament-layer::before,
.story .ornament-layer::after,
.date-section .ornament-layer::before,
.date-section .ornament-layer::after,
.location .ornament-layer::before,
.location .ornament-layer::after,
.schedule .ornament-layer::before,
.schedule .ornament-layer::after,
.invite .ornament-layer::before,
.invite .ornament-layer::after,
.rsvp .ornament-layer::before,
.rsvp .ornament-layer::after,
.ending .ornament-layer::before,
.ending .ornament-layer::after {
  position: absolute; pointer-events: none; z-index: 0; white-space: nowrap;
}

.intro .ornament-layer::before {
  content: "祥云"; right: 38px; top: 70px;
  font-size: 120px; color: rgba(168,112,72,.16); letter-spacing: .14em;
}
.intro .ornament-layer::after {
  content: "龙凤"; left: 38px; bottom: 42px;
  font-size: 150px; color: rgba(191,150,79,.12); letter-spacing: .08em;
}

.story .ornament-layer::before {
  content: "龙凤呈祥"; left: 40px; top: 52%; transform: translateY(-50%);
  font-size: 120px; color: rgba(180,132,94,.11); letter-spacing: .12em;
}
.story .ornament-layer::after {
  content: "祥云"; right: 42px; bottom: 38px;
  font-size: 110px; color: rgba(156,101,63,.15); letter-spacing: .16em;
}

.date-section .ornament-layer::before {
  content: "祥云"; left: 42px; bottom: 56px;
  font-size: 120px; color: rgba(175,132,79,.18); letter-spacing: .14em;
}
.date-section .ornament-layer::after {
  content: "龙凤"; right: 54px; top: 120px;
  font-size: 112px; color: rgba(166,116,72,.14); letter-spacing: .08em;
}

.location .ornament-layer::before {
  content: "龙凤呈祥"; left: 50%; top: 54%; transform: translate(-50%, -50%);
  font-size: 150px; color: rgba(214,176,107,.18); letter-spacing: .12em;
}
.location .ornament-layer::after {
  content: "祥云"; left: 50%; bottom: 70px; transform: translateX(-50%);
  font-size: 90px; color: rgba(214,176,107,.12); letter-spacing: .2em;
}

.schedule .ornament-layer::before {
  content: "祥云"; left: 46px; top: 140px;
  font-size: 110px; color: rgba(171,121,86,.16); letter-spacing: .18em;
}
.schedule .ornament-layer::after {
  content: "花好月圆"; right: 42px; top: 160px;
  font-size: 28px; color: rgba(156,101,63,.32); letter-spacing: .22em;
  writing-mode: vertical-rl; text-orientation: mixed;
}

.invite .ornament-layer::before {
  content: "龙凤呈祥"; left: 50%; top: 62%; transform: translate(-50%, -50%);
  font-size: 126px; color: rgba(191,150,79,.13); letter-spacing: .12em;
}
.invite .ornament-layer::after {
  content: "祥云"; right: 40px; top: 100px;
  font-size: 100px; color: rgba(164,112,72,.14); letter-spacing: .16em;
}

.rsvp .ornament-layer::before {
  content: "祥云"; left: 38px; bottom: 42px;
  font-size: 110px; color: rgba(166,116,72,.15); letter-spacing: .14em;
}
.rsvp .ornament-layer::after {
  content: "百年好合"; right: 44px; top: 150px;
  font-size: 28px; color: rgba(156,101,63,.34); letter-spacing: .22em;
  writing-mode: vertical-rl; text-orientation: mixed;
}

.ending .ornament-layer::before {
  content: "龙凤呈祥"; left: 50%; top: 52%; transform: translate(-50%, -50%);
  font-size: 150px; color: rgba(244,216,154,.18); letter-spacing: .12em;
}
.ending .ornament-layer::after {
  content: "祥云"; left: 50%; bottom: 80px; transform: translateX(-50%);
  font-size: 92px; color: rgba(244,216,154,.14); letter-spacing: .2em;
}

/* 页内装饰文字再深一点，避免太虚 */
.location-medallion,
.invite-medallion,
.ending-medallion { display: none !important; }

@media (max-width: 900px) {
  .hero::before { font-size: clamp(90px, 17vw, 150px); top: 43%; }
  .hero::after { font-size: 62px; right: 8%; bottom: 18%; }
  .intro .ornament-layer::before,
  .story .ornament-layer::after,
  .date-section .ornament-layer::before,
  .invite .ornament-layer::after,
  .rsvp .ornament-layer::before,
  .ending .ornament-layer::after { font-size: 78px; }
  .story .ornament-layer::before,
  .date-section .ornament-layer::after,
  .location .ornament-layer::before,
  .invite .ornament-layer::before,
  .ending .ornament-layer::before { font-size: 92px; }
  .location .ornament-layer::after { font-size: 64px; }
}
@media (max-width: 640px) {
  .hero::before { font-size: clamp(64px, 15vw, 100px); top: 41%; letter-spacing: .08em; }
  .hero::after { display: none; }
  .intro .ornament-layer::after,
  .story .ornament-layer::before,
  .date-section .ornament-layer::after,
  .schedule .ornament-layer::after,
  .invite .ornament-layer::before,
  .rsvp .ornament-layer::after,
  .ending .ornament-layer::before { font-size: 64px; }
  .intro .ornament-layer::before,
  .story .ornament-layer::after,
  .date-section .ornament-layer::before,
  .schedule .ornament-layer::before,
  .invite .ornament-layer::after,
  .rsvp .ornament-layer::before,
  .ending .ornament-layer::after { font-size: 52px; }
  .location .ornament-layer::before { font-size: 76px; }
  .location .ornament-layer::after { font-size: 48px; }
  .auspice-vertical { font-size: 16px; opacity: .75; }
}


/* ====== V4.5：使用真实“龙凤呈祥”与“祥云纹”素材，替代文字假暗纹 ====== */
.orn, .auspice-vertical { display: none !important; }

/* 封面：亮金字 + 龙凤呈祥大图暗纹 + 祥云纹 */
.hero::before {
  content: "";
  position: absolute; left: 50%; top: 48%; transform: translate(-50%, -50%);
  width: min(62vw, 760px); aspect-ratio: 1 / 1; z-index: 1;
  background: url('../assets/ornaments/dragon_phoenix_red.png') center/contain no-repeat;
  opacity: .18;
  filter: sepia(1) saturate(5) hue-rotate(345deg) brightness(2.15) contrast(.9);
}
.hero::after {
  content: "";
  position: absolute; left: 50%; bottom: 13%; transform: translateX(-50%);
  width: min(38vw, 440px); height: min(12vw, 120px); z-index: 1;
  background: url('../assets/ornaments/cloud_2.png') center/contain no-repeat;
  opacity: .24;
}
.double-happiness {
  width: 120px; height: 120px; margin: 0 auto 12px; border: 0; border-radius: 0;
  background: url('../assets/ornaments/dragon_phoenix_red.png') center/contain no-repeat;
  background-color: transparent; color: transparent; font-size: 0;
  filter: sepia(1) saturate(5) hue-rotate(345deg) brightness(2.3) contrast(.92);
}
.hero .eyebrow,
.hero h1 span,
.hero-date,
.hero-place,
.scroll-tip { color: #f6dca2; }
.hero h1 span, .hero-date, .hero-place { text-shadow: 0 10px 24px rgba(0,0,0,.24); }
.hero h1 { position: relative; z-index: 2; }
.hero-content { position: relative; z-index: 2; }
.hero-seal { color: #f6dca2; border-color: rgba(246,220,162,.8); }

/* 通用：装饰图更深、更像纹样而不是字 */
.intro .ornament-layer::before,
.story .ornament-layer::before,
.date-section .ornament-layer::before,
.schedule .ornament-layer::before,
.invite .ornament-layer::before,
.rsvp .ornament-layer::before,
.ending .ornament-layer::before,
.intro .ornament-layer::after,
.story .ornament-layer::after,
.date-section .ornament-layer::after,
.location .ornament-layer::before,
.location .ornament-layer::after,
.schedule .ornament-layer::after,
.invite .ornament-layer::after,
.rsvp .ornament-layer::after,
.ending .ornament-layer::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  background-position: center; background-repeat: no-repeat; background-size: contain;
}

/* 第2页 关于我们 */
.intro .ornament-layer::before {
  left: -20px; bottom: 20px; width: 360px; height: 360px;
  background-image: url('../assets/ornaments/dragon_phoenix_red.png');
  opacity: .08; mix-blend-mode: multiply;
}
.intro .ornament-layer::after {
  right: 40px; top: 90px; width: 280px; height: 120px;
  background-image: url('../assets/ornaments/cloud_1.png');
  opacity: .28;
}

/* 第3页 图片故事 */
.story .ornament-layer::before {
  right: -10px; top: 60px; width: 340px; height: 340px;
  background-image: url('../assets/ornaments/dragon_phoenix_red.png');
  opacity: .06; mix-blend-mode: multiply;
}
.story .ornament-layer::after {
  left: 40px; bottom: 36px; width: 300px; height: 120px;
  background-image: url('../assets/ornaments/cloud_3.png');
  opacity: .28;
}

/* 第4页 日历 */
.date-section .ornament-layer::before {
  left: 18px; bottom: 40px; width: 300px; height: 140px;
  background-image: url('../assets/ornaments/cloud_4.png');
  opacity: .26;
}
.date-section .ornament-layer::after {
  right: 36px; top: 90px; width: 250px; height: 250px;
  background-image: url('../assets/ornaments/dragon_phoenix_red.png');
  opacity: .07; mix-blend-mode: multiply;
}

/* 第5页 婚礼地点（黑底） */
.location .ornament-layer::before {
  left: 50%; top: 53%; transform: translate(-50%, -50%); width: 460px; height: 460px;
  background-image: url('../assets/ornaments/dragon_phoenix_red.png');
  opacity: .18; filter: sepia(1) saturate(5) hue-rotate(345deg) brightness(2.15) contrast(.9);
}
.location .ornament-layer::after {
  left: 50%; bottom: 64px; transform: translateX(-50%); width: 340px; height: 120px;
  background-image: url('../assets/ornaments/cloud_5.png');
  opacity: .20; filter: brightness(1.25);
}

/* 第6页 婚礼当天 */
.schedule .ornament-layer::before {
  right: 36px; bottom: 34px; width: 280px; height: 120px;
  background-image: url('../assets/ornaments/cloud_6.png');
  opacity: .28;
}
.schedule .ornament-layer::after {
  left: 24px; top: 100px; width: 220px; height: 220px;
  background-image: url('../assets/ornaments/dragon_phoenix_red.png');
  opacity: .06; mix-blend-mode: multiply;
}

/* 第7页 邀请页 */
.invite .ornament-layer::before {
  left: 50%; top: 60%; transform: translate(-50%, -50%); width: 380px; height: 380px;
  background-image: url('../assets/ornaments/dragon_phoenix_red.png');
  opacity: .07; mix-blend-mode: multiply;
}
.invite .ornament-layer::after {
  right: 46px; top: 90px; width: 280px; height: 110px;
  background-image: url('../assets/ornaments/cloud_2.png');
  opacity: .26;
}

/* 第8页 RSVP */
.rsvp .ornament-layer::before {
  left: 40px; bottom: 36px; width: 280px; height: 110px;
  background-image: url('../assets/ornaments/cloud_3.png');
  opacity: .26;
}
.rsvp .ornament-layer::after {
  right: 40px; top: 100px; width: 230px; height: 230px;
  background-image: url('../assets/ornaments/dragon_phoenix_red.png');
  opacity: .06; mix-blend-mode: multiply;
}

/* 最后一页 */
.ending .ornament-layer::before {
  left: 50%; top: 52%; transform: translate(-50%, -50%); width: 480px; height: 480px;
  background-image: url('../assets/ornaments/dragon_phoenix_red.png');
  opacity: .16; filter: sepia(1) saturate(5) hue-rotate(345deg) brightness(2.1) contrast(.88);
}
.ending .ornament-layer::after {
  left: 50%; bottom: 70px; transform: translateX(-50%); width: 320px; height: 120px;
  background-image: url('../assets/ornaments/cloud_1.png');
  opacity: .24;
}

@media (max-width: 900px) {
  .hero::before { width: min(72vw, 580px); top: 47%; }
  .hero::after { width: 300px; height: 90px; bottom: 14%; }
  .double-happiness { width: 96px; height: 96px; }
  .intro .ornament-layer::before,
  .story .ornament-layer::before,
  .date-section .ornament-layer::after,
  .schedule .ornament-layer::after,
  .rsvp .ornament-layer::after { width: 180px; height: 180px; }
  .invite .ornament-layer::before { width: 250px; height: 250px; }
  .location .ornament-layer::before,
  .ending .ornament-layer::before { width: 300px; height: 300px; }
}
@media (max-width: 640px) {
  .hero::before { width: 82vw; top: 46%; opacity: .16; }
  .hero::after { width: 220px; height: 72px; bottom: 15%; opacity: .18; }
  .double-happiness { width: 80px; height: 80px; margin-bottom: 10px; }
  .intro .ornament-layer::before,
  .story .ornament-layer::before,
  .date-section .ornament-layer::after,
  .schedule .ornament-layer::after,
  .rsvp .ornament-layer::after { width: 130px; height: 130px; }
  .intro .ornament-layer::after,
  .story .ornament-layer::after,
  .date-section .ornament-layer::before,
  .schedule .ornament-layer::before,
  .invite .ornament-layer::after,
  .rsvp .ornament-layer::before,
  .ending .ornament-layer::after,
  .location .ornament-layer::after { width: 160px; height: 70px; }
  .location .ornament-layer::before,
  .invite .ornament-layer::before,
  .ending .ornament-layer::before { width: 180px; height: 180px; }
}


/* ====== V4.6：按指定反馈做局部位置与姓名调整，未提及内容保持 V4.5 不变 ====== */
/* 第一页：良辰/吉日印章继续向右移，避开居中的姓名与龙凤主纹样 */
.hero-seal {
  right: 2%;
}

/* 第二页：龙凤置左、祥云置右，拉开水平距离，避免装饰互相重叠 */
.intro .ornament-layer::before {
  left: -34px;
  right: auto;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  width: 300px;
  height: 300px;
}
.intro .ornament-layer::after {
  left: auto;
  right: 24px;
  top: 88px;
  bottom: auto;
  width: 240px;
  height: 100px;
}

/* 倒数第4页（婚礼当天）：龙凤左侧、祥云右侧，进一步错开 */
.schedule .ornament-layer::after {
  left: -18px;
  right: auto;
  top: 108px;
  bottom: auto;
  width: 210px;
  height: 210px;
}
.schedule .ornament-layer::before {
  left: auto;
  right: -10px;
  top: auto;
  bottom: 40px;
  width: 250px;
  height: 104px;
}

/* 第二页与末页姓名使用紧凑的“沈学文&张培培”排版 */
.intro h2 > span + span,
.ending h2 > span + span {
  margin-left: 0;
}

@media (min-width: 768px) {
  .hero-seal { right: 3%; }
}
@media (max-width: 640px) {
  .hero-seal { right: 4%; }
  .intro .ornament-layer::before {
    left: -26px;
    width: 130px;
    height: 130px;
  }
  .intro .ornament-layer::after {
    right: 10px;
    top: 72px;
    width: 150px;
    height: 64px;
  }
  .schedule .ornament-layer::after {
    left: -24px;
    top: 96px;
    width: 126px;
    height: 126px;
  }
  .schedule .ornament-layer::before {
    right: -14px;
    bottom: 28px;
    width: 150px;
    height: 64px;
  }
}


/* V4.8：仅将日期页红框内字体整体放大 5px；不改红框外内容与结构 */
.date-section .year {
  font-size: 24px;
}
.date-section .weekday {
  font-size: 21px;
}
.date-section .cn-divider b,
.date-section .cn-divider.compact b,
.date-section #dateDivider {
  font-size: 17px;
}
.date-section .calendar-title {
  font-size: calc(var(--calendar-title-size) + 5px);
}
.date-section .calendar-week span,
.date-section .calendar-grid.days span {
  font-size: calc(var(--calendar-font-size) + 5px);
}
.date-section .days .selected {
  font-size: calc(var(--calendar-font-size) + 6px);
}

@media (min-width: 901px) {
  .date-section .countdown-title {
    font-size: 19px;
  }
  .date-section .countdown-unit strong {
    font-size: 39px;
  }
  .date-section .countdown-unit span {
    font-size: 22px;
  }
}

@media (max-width: 900px) {
  .date-section .countdown-title {
    font-size: 17px;
  }
  .date-section .countdown-unit strong {
    font-size: 29px;
  }
  .date-section .countdown-unit span {
    font-size: 17px;
  }
}


/* V4.9：仅将日期页倒计时中的“时 / 分 / 秒”数字再放大 5px；其他不变 */
@media (min-width: 901px) {
  .date-section .countdown-unit:nth-of-type(2) strong,
  .date-section .countdown-unit:nth-of-type(3) strong,
  .date-section .countdown-unit:nth-of-type(4) strong {
    font-size: 44px;
  }
}

@media (max-width: 900px) {
  .date-section .countdown-unit:nth-of-type(2) strong,
  .date-section .countdown-unit:nth-of-type(3) strong,
  .date-section .countdown-unit:nth-of-type(4) strong {
    font-size: 34px;
  }
}


/* V5.1：按确认方案修正首页/末页暗纹压图，以及第三页三张照片的显示重心 */

/* 1) 首页：龙凤暗纹更像暗纹，缩小并下移，避开脸部与姓名 */
.hero::before {
  width: min(50vw, 560px);
  top: 59%;
  left: 52%;
  opacity: .10;
}

/* 2) 第三页：保持 cover，不改布局；分别调整三张照片的显示重心，确保露出头部 */
.story .photo-grid .wide.has-image {
  background-position: center 24%;
}
.story .photo-grid .tall.has-image {
  background-position: center 14%;
}
.story .photo-grid .square.has-image {
  background-position: center 20%;
}

/* 3) 末页：龙凤暗纹弱化、缩小、下移并略偏右；遮罩稍加强；姓名换成更清晰的亮金色 */
.ending .ornament-layer::before {
  width: 360px;
  height: 360px;
  left: 52%;
  top: 62%;
  opacity: .09;
}
.ending-overlay {
  background: linear-gradient(to bottom, rgba(20,15,13,.28), rgba(20,15,13,.62));
}
#endingBride,
#endingGroom,
.ending h2 > span + span {
  color: #f6dca2;
  text-shadow: 0 8px 18px rgba(0,0,0,.28);
}

@media (max-width: 900px) {
  .hero::before {
    width: min(62vw, 420px);
    top: 58%;
    left: 52%;
    opacity: .10;
  }
  .ending .ornament-layer::before {
    width: 250px;
    height: 250px;
    left: 52%;
    top: 61%;
    opacity: .09;
  }
  .story .photo-grid .wide.has-image {
    background-position: center 22%;
  }
  .story .photo-grid .tall.has-image {
    background-position: center 12%;
  }
  .story .photo-grid .square.has-image {
    background-position: center 18%;
  }
}

@media (max-width: 640px) {
  .hero::before {
    width: 72vw;
    top: 57%;
    left: 52%;
    opacity: .10;
  }
  .ending .ornament-layer::before {
    width: 180px;
    height: 180px;
    left: 52%;
    top: 60%;
    opacity: .08;
  }
}


/* V5.2：按最新确认，仅调整首页龙凤位置、第三页照片重心、末页去除龙凤 */

/* 1) 首页：保留现有弱化效果，将龙凤整体移至左上角，彻底避开姓名与人物面部 */
.hero::before {
  left: 4%;
  top: 7%;
  transform: none;
  width: min(38vw, 440px);
  opacity: .10;
}

/* 2) 第三页：继续 cover，但强制覆盖 JS 写入的 inline background-position */
.story .photo-grid .wide.has-image {
  background-position: center top !important;
}
.story .photo-grid .tall.has-image {
  background-position: center top !important;
}
.story .photo-grid .square.has-image {
  background-position: center 42% !important;
}

/* 3) 最后一页：仅去掉龙凤暗纹，祥云、遮罩、姓名颜色及其他内容保持不变 */
.ending .ornament-layer::before {
  display: none !important;
}

@media (max-width: 900px) {
  .hero::before {
    left: 3%;
    top: 7%;
    transform: none;
    width: min(48vw, 360px);
    opacity: .10;
  }
}

@media (max-width: 640px) {
  .hero::before {
    left: 2%;
    top: 8%;
    transform: none;
    width: 54vw;
    opacity: .10;
  }
}


/* =========================================================
   V5.3 手机端专用适配：装饰贴边/轻微出界，避开正文；PC 端保持 V5.2 不变
   ========================================================= */
@media (max-width: 640px) {
  /* 统一原则：手机竖屏装饰作为“页角暗纹”，允许部分出界；section 本身已 overflow:hidden */

  /* 1. 首页：姓名单行；印章贴右上；龙凤更靠左上；祥云贴右下 */
  .hero h1 {
    font-size: clamp(40px, 10.8vw, 46px);
    line-height: 1.08;
    white-space: nowrap;
    gap: 0;
  }
  .hero h1 > span {
    white-space: nowrap;
  }
  .hero-seal {
    right: -6px;
    top: 9%;
    width: 70px;
    height: 70px;
    font-size: 14px;
  }
  .hero::before {
    left: -12vw;
    top: 5%;
    transform: none;
    width: 58vw;
    opacity: .09;
  }
  .hero::after {
    display: block;
    left: auto;
    right: -42px;
    bottom: 9%;
    transform: none;
    width: 190px;
    height: 64px;
    opacity: .16;
  }

  /* 2. 第二页：祥云贴右上，龙凤更贴左侧，均避开姓名和正文 */
  .intro .ornament-layer::before {
    left: -82px;
    right: auto;
    bottom: 24%;
    width: 190px;
    height: 190px;
    opacity: .065;
  }
  .intro .ornament-layer::after {
    right: -58px;
    left: auto;
    top: 54px;
    width: 175px;
    height: 76px;
    opacity: .22;
  }

  /* 3. 第三页：照片保持 V5.2；只把背景装饰继续往页角收 */
  .story .ornament-layer::before {
    right: -88px;
    left: auto;
    top: 18px;
    width: 190px;
    height: 190px;
    opacity: .05;
  }
  .story .ornament-layer::after {
    left: -62px;
    right: auto;
    bottom: 8px;
    width: 180px;
    height: 74px;
    opacity: .20;
  }

  /* 4. 日期页：龙凤贴右上、祥云贴左下，不进入日期和日历中心区域 */
  .date-section .ornament-layer::after {
    right: -80px;
    left: auto;
    top: 68px;
    width: 185px;
    height: 185px;
    opacity: .05;
  }
  .date-section .ornament-layer::before {
    left: -64px;
    right: auto;
    bottom: 12px;
    width: 180px;
    height: 76px;
    opacity: .20;
  }

  /* 倒计时标题手机端保持单行，其他倒计时字号和结构不改 */
  .date-section .countdown-title {
    white-space: nowrap;
    font-size: 15px;
    padding-right: 6px;
    letter-spacing: .06em;
  }

  /* 5. 婚礼地点：龙凤移出酒店名称中心，放右下角；祥云贴左下 */
  .location .ornament-layer::before {
    left: auto;
    right: -86px;
    top: auto;
    bottom: 76px;
    transform: none;
    width: 230px;
    height: 230px;
    opacity: .13;
  }
  .location .ornament-layer::after {
    left: -62px;
    right: auto;
    bottom: 16px;
    transform: none;
    width: 185px;
    height: 72px;
    opacity: .16;
  }

  /* 6. 婚礼当天：龙凤贴左上且部分出界；祥云贴右下 */
  .schedule .ornament-layer::after {
    left: -74px;
    right: auto;
    top: 58px;
    width: 180px;
    height: 180px;
    opacity: .05;
  }
  .schedule .ornament-layer::before {
    right: -64px;
    left: auto;
    bottom: 8px;
    width: 185px;
    height: 76px;
    opacity: .20;
  }

  /* 7. 邀请页：龙凤从正文背后移到左下角；祥云更靠右上 */
  .invite .ornament-layer::before {
    left: -86px;
    right: auto;
    top: auto;
    bottom: 76px;
    transform: none;
    width: 210px;
    height: 210px;
    opacity: .05;
  }
  .invite .ornament-layer::after {
    right: -58px;
    left: auto;
    top: 42px;
    width: 175px;
    height: 72px;
    opacity: .20;
  }

  /* 8. RSVP：龙凤贴右上并部分出界；祥云贴左下 */
  .rsvp .ornament-layer::after {
    right: -78px;
    left: auto;
    top: 48px;
    width: 185px;
    height: 185px;
    opacity: .05;
  }
  .rsvp .ornament-layer::before {
    left: -64px;
    right: auto;
    bottom: 12px;
    width: 180px;
    height: 72px;
    opacity: .20;
  }

  /* 9. 末页：龙凤继续保持删除；仅将祥云贴到右下边缘 */
  .ending .ornament-layer::before {
    display: none !important;
  }
  .ending .ornament-layer::after {
    left: auto;
    right: -58px;
    bottom: 22px;
    transform: none;
    width: 185px;
    height: 72px;
    opacity: .18;
  }
}


/* =========================================================
   V5.4：移动端封面/倒计时细调 + 照片轮播 + 双地图导航 + 字体柔化
   ========================================================= */

/* 全局中文黑色文字：使用更柔和的宋体/楷体组合，不引入外部字体文件 */
body {
  font-family: "WeddingSongCN", "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
}
h2,
.location h3,
.timeline-item strong,
.rsvp-form > label,
.invite .copy,
.signature,
.story-line {
  font-family: "WeddingSongCN", "Kaiti SC", "STKaiti", "KaiTi", "Songti SC", "STSong", serif;
  font-weight: 400;
}
.copy,
.timeline-item p,
.city,
.date-small,
.rsvp-form input,
.rsvp-form select,
.radio-group {
  font-family: "WeddingSongCN", "Songti SC", "STSong", "Noto Serif SC", "SimSun", serif;
  font-weight: 400;
}

/* 第一页：彻底去掉龙凤暗纹，保留祥云 */
.hero::before {
  display: none !important;
}

/* 第二、三页照片轮播：保持原照片框尺寸，只在框内部横向滚动 */
.photo-carousel {
  position: relative;
  isolation: isolate;
}
.photo-carousel-track {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  touch-action: pan-x pan-y;
}
.photo-carousel-track::-webkit-scrollbar { display: none; }
.photo-carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.story .photo-grid .wide .photo-carousel-slide { background-position: center top; }
.story .photo-grid .tall .photo-carousel-slide { background-position: center top; }
.story .photo-grid .square .photo-carousel-slide { background-position: center 42%; }
.photo-carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  z-index: 4;
  display: flex;
  gap: 7px;
  transform: translateX(-50%);
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(20, 15, 13, .22);
  backdrop-filter: blur(3px);
}
.photo-carousel-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.48);
  cursor: pointer;
}
.photo-carousel-dot.active { background: rgba(255,255,255,.96); }

/* 地点页：小汽车线稿图标 + 高德/百度双导航入口 */
.car-mark {
  width: 58px;
  height: 42px;
  margin-left: auto;
  margin-right: auto;
}
.car-mark svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.location-nav-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  width: min(100%, 620px);
  margin: 0 auto;
}
.location-nav-actions .map-btn {
  min-width: 0;
  flex: 1 1 0;
  max-width: 260px;
}
.location-nav-actions .map-btn.secondary {
  background: transparent;
  color: #f6dca2;
  border-color: rgba(246,220,162,.68);
}
#locationHint:empty { display: none; }

/* 最后一页：所有文字统一为姓名所用的亮金色 */
.ending-content,
.ending .eyebrow.light,
.ending-date,
.ending h2,
.ending h2 span,
.ending-copy {
  color: #f6dca2 !important;
}

@media (max-width: 640px) {
  .scroll-tip {
    font-size: clamp(12px, 3.8vw, 15px);
    letter-spacing: .06em;
  }

  /* 第一页：整组主信息上移到人物头顶区域，并适当缩小，避免压人 */
  .hero-content {
    position: absolute;
    left: 0;
    right: 0;
    top: 24%;
    width: 100%;
    padding: 18px 18px;
    transform: translateY(-50%);
  }
  .hero .eyebrow {
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.35;
    letter-spacing: .20em;
  }
  .hero h1 {
    margin-bottom: 14px;
    font-size: clamp(34px, 9.2vw, 40px);
    line-height: 1.05;
    letter-spacing: -.015em;
  }
  .hero-date {
    margin-bottom: 8px;
    font-size: clamp(27px, 7.2vw, 32px);
    line-height: 1.05;
    letter-spacing: .12em;
  }
  .hero-place {
    font-size: 17px;
    letter-spacing: .15em;
  }
  .hero-seal {
    right: 8px;
    top: 112%;
    width: 62px;
    height: 62px;
    font-size: 12px;
  }

  /* 第四页：红色 03 在当前手机字号基础上缩小约 3px */
  .date-section .day {
    font-size: clamp(73px, calc(22vw - 3px), 109px);
  }

  /* 手机倒计时：第一行标题，第二行 XX天 XX时 XX分 XX秒 */
  .date-section .countdown-ribbon {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: auto auto;
    padding: 16px 12px 15px;
    gap: 8px 0;
  }
  .date-section .countdown-title {
    grid-column: 1 / -1;
    grid-row: 1;
    margin: 0;
    padding: 0;
    font-size: 15px;
    line-height: 1.2;
    white-space: nowrap;
    letter-spacing: .08em;
    text-align: center;
  }
  .date-section .countdown-unit {
    grid-row: 2;
    min-width: 0;
    padding: 2px 4px;
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: center;
    gap: 3px;
  }
  .date-section .countdown-unit + .countdown-unit::before {
    left: 0;
    top: 50%;
    width: 1px;
    height: 26px;
    transform: translateY(-50%);
  }
  .date-section .countdown-unit strong,
  .date-section .countdown-unit:nth-of-type(2) strong,
  .date-section .countdown-unit:nth-of-type(3) strong,
  .date-section .countdown-unit:nth-of-type(4) strong {
    flex: 0 0 2.05ch;
    width: 2.05ch;
    height: 1.08em;
    font-size: 27px;
    line-height: 1.05;
  }
  .date-section .countdown-unit span {
    margin: 0;
    font-size: 15px;
    line-height: 1;
  }

  /* 地图导航按钮在手机上并排，保持可点击尺寸 */
  .location-nav-actions {
    width: min(100%, 360px);
    gap: 10px;
  }
  .location-nav-actions .map-btn {
    padding-left: 12px;
    padding-right: 12px;
    font-size: 16px;
  }
  .car-mark {
    width: 52px;
    height: 38px;
  }

  /* 手机端轮播指示点稍小，不遮挡人物 */
  .photo-carousel-dots {
    bottom: 8px;
    gap: 6px;
    padding: 4px 7px;
  }
  .photo-carousel-dot { width: 6px; height: 6px; }
}


/* =========================================================
   V5.5：日期页微调 + 百度驾车导航 + 超跑线稿 + 照片比例 + 全站行楷
   ========================================================= */

/* 全网页统一行楷：不引入外部字体文件，系统无行楷时回退到楷体 */
body,
body *:not(svg):not(path):not(circle) {
  font-family: "WeddingSongCN", "STXingkai", "华文行楷", "Xingkai SC", "Kaiti SC", "STKaiti", "KaiTi", cursive !important;
}

/* 高德按钮：透明底、红字、红边框 */
.location-nav-actions #amapLink {
  background: transparent;
  color: #c23a45;
  border-color: rgba(194,58,69,.88);
  box-shadow: none;
}
.location-nav-actions #amapLink:hover,
.location-nav-actions #amapLink:focus-visible {
  background: rgba(194,58,69,.10);
  color: #d54a55;
}

/* 更低趴的超跑线稿图标 */
.car-mark {
  width: 72px;
  height: 38px;
}
.car-mark svg {
  stroke-width: 1.7;
}

@media (max-width: 640px) {
  /* 日期页：03 再缩小约 5px，并压缩其下方空隙，让后续内容整体上移 */
  .date-section .day {
    font-size: clamp(63px, calc(22vw - 13px), 99px);
    margin-top: 7px;
    margin-bottom: -4px;
  }
  .date-section .year {
    margin-top: -2px;
  }
  .date-section .weekday {
    margin-top: 15px;
    margin-bottom: 17px;
  }
  .date-section .cn-divider.compact {
    margin-top: -6px;
    margin-bottom: 22px;
  }

  /* “距离婚礼还有”放大 3px；下方倒计时数字与单位保持 V5.4 大小 */
  .date-section .countdown-title {
    font-size: 18px;
  }

  /* 当前第三页右下第 1 张照片：缩小显示比例，减少左右人物裁切；红色底色填充空白区域 */
  .story .photo-grid .square .photo-carousel-slide[data-slide-index="0"] {
    background-size: 122% auto;
    background-position: center center;
    background-color: #a93c3a;
  }

  /* 最后一页：前景照片完整显示；后方继续用同一张照片 cover 填充，避免 contain 留白突兀 */
  .ending-photo.has-image {
    background-size: contain !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
  }

  .car-mark {
    width: 66px;
    height: 35px;
  }
}


/* =========================================================
   V5.6：分层婚礼字体 + 日期数字字体恢复 + 末页单图全屏 + 地点名称/百度 App 直跳
   ========================================================= */

/* 正文基础：思源宋体 / Noto Serif SC */
body,
body *:not(svg):not(path):not(circle) {
  font-family: "WeddingSongCN", "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif !important;
}

/* 中文姓名与主要标题：霞鹜文楷 */
.hero h1,
.intro h2,
.story h2,
.location h2,
.location h3,
.schedule h2,
.invite h2,
.rsvp h2,
.ending h2,
#heroBride, #heroGroom,
#introBride, #introGroom,
#endingBride, #endingGroom {
  font-family: "WeddingSongCN", "LXGW WenKai GB", "LXGW WenKai", "Kaiti SC", "STKaiti", "KaiTi", serif !important;
  font-weight: 400 !important;
}

/* 正文、时间轴、说明、表单：思源宋体 */
.copy,
.story-line,
.timeline,
.timeline-item,
.timeline-item strong,
.timeline-item p,
.city,
.date-small,
.hint,
.signature,
.rsvp-form,
.rsvp-form input,
.rsvp-form select,
.radio-group,
.location-nav-actions .map-btn {
  font-family: "WeddingSongCN", "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif !important;
}

/* 英文标题与日期数字：Cormorant Garamond */
.eyebrow,
.month,
.hero-date,
.ending-date,
.calendar-title,
.calendar-grid.days span,
.countdown-unit strong,
#dayNumber,
#yearNumber {
  font-family: "WeddingSongCN", "Cormorant Garamond", Georgia, "Times New Roman", serif !important;
}

/* 日期页大号 03：尺寸保持 V5.5，仅恢复优雅衬线数字形态 */
.date-section .day,
#dayNumber {
  font-family: "WeddingSongCN", "Cormorant Garamond", Georgia, "Times New Roman", serif !important;
  font-weight: 500 !important;
}

/* 末页：不再显示 V5.5 的 contain 前景层；仅使用一个全屏背景图 */
.ending .ending-photo {
  display: none !important;
}

@media (max-width: 640px) {
  .ending {
    background-image:
      linear-gradient(to bottom, rgba(20,15,13,.22), rgba(20,15,13,.52)),
      var(--ending-mobile-image) !important;
    background-size: cover, cover !important;
    background-position: center, center !important;
    background-repeat: no-repeat, no-repeat !important;
  }

  /* 第三页右下第 3 张：利用原片红底，按宽度完整一些地显示，减少人物裁切 */
  .story .photo-grid .square .photo-carousel-slide[data-slide-index="0"] {
    background-size: 100% auto !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-color: #a53b39 !important;
  }
}


/* =========================================================
   V5.7：第二页照片填充 + 末页照片恢复 + 百度直链 + 全站中文楷体
   ========================================================= */

/* 全站中文改为楷体体系；英文与日期数字保留衬线体 */
body,
body *:not(svg):not(path):not(circle) {
  font-family: "WeddingSongCN", "Kaiti SC", "STKaiti", "KaiTi", "楷体", serif !important;
}

.eyebrow,
.month,
.hero-date,
.ending-date,
.calendar-title,
.calendar-grid.days span,
.countdown-unit strong,
#dayNumber,
#yearNumber {
  font-family: "WeddingSongCN", Georgia, "Times New Roman", serif !important;
}

/* 第二页 4 张轮播照片：竖图保持 cover；横图以人物为中心裁切 */
.intro .photo-carousel-slide {
  background-size: cover;
  background-position: center center;
}
.intro .photo-carousel-slide[data-slide-index="0"],
.intro .photo-carousel-slide[data-slide-index="1"] {
  background-position: center 30%;
}
.intro .photo-carousel-slide[data-slide-index="2"],
.intro .photo-carousel-slide[data-slide-index="3"] {
  background-position: center center;
}

/* 末页恢复原来的中式照片层，不再隐藏照片，也不再依赖手机背景 CSS 变量 */
.ending {
  background-image: none !important;
}
.ending .ending-photo {
  display: block !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

@media (max-width: 640px) {
  .ending {
    background-image: none !important;
  }
  .ending .ending-photo {
    display: block !important;
    background-size: cover !important;
    background-position: center center !important;
  }
}


/* =========================================================
   V6.0：第三页首框扩展为五图轮播 + 日期页 03 上移防重叠
   ========================================================= */
@media (max-width: 640px) {
  /* 第四页日期页：将红色 03 略微上移，并与年份重新拉开，避免相交。 */
  .date-section .month {
    margin-bottom: 6px;
  }
  .date-section .day {
    margin-top: -2px;
    margin-bottom: 8px;
    line-height: .88;
    transform: translateY(-4px);
  }
  .date-section .year {
    margin-top: 6px;
  }

  /* 第三页第一个大图框：保留首张并新增 4 张轮播图；新图按完整画面优先显示。 */
  .story .photo-grid .wide .photo-carousel-slide[data-slide-index="1"],
  .story .photo-grid .wide .photo-carousel-slide[data-slide-index="2"],
  .story .photo-grid .wide .photo-carousel-slide[data-slide-index="3"],
  .story .photo-grid .wide .photo-carousel-slide[data-slide-index="4"] {
    background-size: cover;
    background-position: center center;
  }
}


/* =========================================================
   V6.1：第三页第 2 个照片框扩展为五图轮播
   ========================================================= */
@media (max-width: 640px) {
  /* 第三页左下竖图框：保留首张，同时新增 4 张轮播图。
     新增轮播图统一采用 cover，显示重心略偏上，优先保留人物头部与上半身。 */
  .story .photo-grid .tall .photo-carousel-slide[data-slide-index="1"],
  .story .photo-grid .tall .photo-carousel-slide[data-slide-index="2"],
  .story .photo-grid .tall .photo-carousel-slide[data-slide-index="3"],
  .story .photo-grid .tall .photo-carousel-slide[data-slide-index="4"] {
    background-size: cover;
    background-position: center 24%;
    background-repeat: no-repeat;
  }
}


/* =========================================================
   V6.2：第三页第 3 个照片框扩展为五图轮播
   ========================================================= */
@media (max-width: 640px) {
  /* 右下照片框保留首张；新增 4 张采用 cover，显示重心略偏上以保留人物头部。 */
  .story .photo-grid .square .photo-carousel-slide[data-slide-index="1"],
  .story .photo-grid .square .photo-carousel-slide[data-slide-index="2"],
  .story .photo-grid .square .photo-carousel-slide[data-slide-index="3"],
  .story .photo-grid .square .photo-carousel-slide[data-slide-index="4"] {
    background-size: cover !important;
    background-position: center 24% !important;
    background-repeat: no-repeat !important;
  }
}


/* =========================================================
   V6.4：图片 WebP/懒加载 + “期待与你相见”照片背景柔和重构
   ========================================================= */
.invite {
  --invite-bg-image: none;
  position: relative;
  min-height: 100svh;
  padding: 0 28px;
  background-color: #c4c8c9;
  background-image: var(--invite-bg-image);
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: contain;
  color: #f6ead3;
  display: block;
}
.invite-photo-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(33,31,29,.16) 0%, rgba(33,31,29,.02) 24%, rgba(33,31,29,.04) 50%, rgba(33,31,29,.18) 72%, rgba(33,31,29,.38) 100%);
}
.invite .ornament-layer { display: none !important; }
.invite .section-inner,
.invite .section-inner.narrow {
  position: relative;
  z-index: 2;
  width: min(100%, 760px);
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(58px, 7svh, 90px) 0 clamp(46px, 6svh, 76px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  box-sizing: border-box;
}
.invite .eyebrow {
  margin: 0 0 16px;
  color: #efd9ae;
  font-family: "WeddingSongCN", Georgia, "Times New Roman", serif !important;
  font-size: clamp(14px, 2vw, 18px);
  letter-spacing: .24em;
  line-height: 1.35;
  text-shadow: 0 2px 8px rgba(0,0,0,.20);
}
.invite h2 {
  margin: 0 0 22px;
  color: #f2d39a;
  font-family: "WeddingSongCN", "Kaiti SC", "STKaiti", "KaiTi", "楷体", serif !important;
  font-size: clamp(42px, 6.4vw, 68px);
  font-weight: 400 !important;
  line-height: 1.14;
  letter-spacing: .05em;
  text-shadow: 0 3px 12px rgba(0,0,0,.20);
}
.invite .cn-divider { width: min(78%, 430px); margin: 0; color: #e9cf9e; }
.invite .cn-divider i { background: rgba(239,217,174,.62); }
.invite .cn-divider b {
  border-color: rgba(239,217,174,.78);
  color: #a42d35;
  background: rgba(240,224,197,.12);
}
.invite .copy {
  max-width: 680px;
  margin: auto auto 28px;
  color: #fbf5ea;
  font-family: "WeddingSongCN", "Kaiti SC", "STKaiti", "KaiTi", "楷体", serif !important;
  font-size: clamp(19px, 2.7vw, 27px);
  font-weight: 400 !important;
  line-height: 1.95;
  letter-spacing: .055em;
  text-shadow: 0 3px 12px rgba(0,0,0,.46);
}
.invite .signature {
  margin: 0;
  color: #f0debf;
  font-family: "WeddingSongCN", "Kaiti SC", "STKaiti", "KaiTi", "楷体", serif !important;
  font-size: clamp(16px, 2.2vw, 21px);
  font-weight: 400;
  letter-spacing: .10em;
  text-shadow: 0 3px 10px rgba(0,0,0,.44);
}
.invite .signature span { color: #a92b34; }

@media (max-width: 640px) {
  .invite {
    padding: 0 20px;
    background-image: url('../assets/photos/invite_couple_bg_mobile.webp') !important;
    background-position: center center;
    background-size: cover;
    background-color: #cfd5d8;
  }
  .invite .section-inner,
  .invite .section-inner.narrow {
    width: 100%;
    min-height: 100svh;
    padding-top: max(52px, 6.5svh);
    padding-bottom: max(38px, 5svh);
  }
  .invite .eyebrow { margin-bottom: 12px; font-size: 14px; letter-spacing: .18em; }
  .invite h2 { margin-bottom: 18px; font-size: clamp(38px, 10.6vw, 48px); letter-spacing: .025em; }
  .invite .cn-divider { width: 78%; }
  .invite .copy {
    width: 100%;
    max-width: 360px;
    margin-top: auto;
    margin-bottom: 26px;
    font-size: clamp(17px, 4.65vw, 20px);
    line-height: 1.85;
    letter-spacing: .035em;
    color: #fffaf4;
    text-shadow: 0 4px 14px rgba(0,0,0,.58);
  }
  .invite .signature {
    font-size: clamp(15px, 4.1vw, 17px);
    letter-spacing: .06em;
    white-space: nowrap;
    color: #f5e6c9;
    text-shadow: 0 4px 12px rgba(0,0,0,.56);
  }
  .invite-photo-overlay {
    background: linear-gradient(to bottom, rgba(31,29,28,.06) 0%, rgba(31,29,28,0) 28%, rgba(31,29,28,.03) 50%, rgba(31,29,28,.20) 70%, rgba(31,29,28,.50) 100%);
  }
}

/* =========================================================
   V6.9：父母版长称谓适配
   仅在 ?from=groom / ?from=bride 生效；新人版不受影响。
   ========================================================= */
body.invite-groom .hero h1,
body.invite-bride .hero h1 {
  font-size: clamp(34px, 6vw, 58px) !important;
  line-height: 1.12;
  letter-spacing: 0 !important;
  white-space: nowrap;
}

body.invite-groom .intro h2,
body.invite-bride .intro h2 {
  font-size: clamp(30px, 5vw, 40px) !important;
  line-height: 1.35;
  letter-spacing: 0 !important;
}

body.invite-groom .ending h2,
body.invite-bride .ending h2 {
  font-size: clamp(30px, 5vw, 42px) !important;
  line-height: 1.3;
  letter-spacing: 0 !important;
}

body.invite-groom .scroll-tip,
body.invite-bride .scroll-tip {
  font-size: clamp(13px, 2.5vw, 16px) !important;
  line-height: 1.6;
  letter-spacing: .045em !important;
}

@media (max-width: 640px) {
  body.invite-groom .hero h1,
  body.invite-bride .hero h1 {
    font-size: clamp(21px, 5.9vw, 27px) !important;
    line-height: 1.12;
    letter-spacing: -.02em !important;
  }

  body.invite-groom .intro h2,
  body.invite-bride .intro h2,
  body.invite-groom .ending h2,
  body.invite-bride .ending h2 {
    font-size: clamp(20px, 5.7vw, 26px) !important;
    line-height: 1.35;
    letter-spacing: -.02em !important;
    white-space: nowrap;
  }

  body.invite-groom .scroll-tip,
  body.invite-bride .scroll-tip {
    font-size: clamp(12px, 3.45vw, 14px) !important;
    line-height: 1.55;
    letter-spacing: .02em !important;
  }

  body.invite-groom .invite h2,
  body.invite-bride .invite h2 {
    font-size: clamp(32px, 8.7vw, 40px) !important;
    white-space: nowrap;
  }
}
