* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --white: #ffffff;
  --red: #7b2433;
  --red-dark: #611925;
  --black: #191817;
  --gray: #68615e;
  --line: #e8e2df;
  --soft: #faf8f7;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Segoe UI", "Microsoft YaHei", sans-serif;
}

html { width:100%; max-width:100%; overflow-x:hidden; scroll-behavior: smooth; background: var(--white); }
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  font-family: var(--sans);
  color: var(--black);
  background: var(--white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.scroll-progress {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
  will-change: transform;
}
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease var(--delay, 0s), transform .55s ease var(--delay, 0s);
}
.reveal.visible { opacity: 1; transform: none; }

/* 首屏 */
.hero {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(46px, env(safe-area-inset-top)) 20px 44px;
  text-align: left;
}
.hero-heading {
  position: relative;
  z-index: 2;
  transform-origin: center top;
  will-change: transform, opacity;
}
.hero-kicker {
  --delay: .05s;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .28em;
  color: var(--red);
}
.names {
  --delay: .12s;
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 16px;
  margin-top: 14px;
}
.pname {
  font-size: clamp(25px, 7vw, 31px);
  font-weight: 400;
  letter-spacing: .08em;
  white-space: nowrap;
}
.amp {
  font-size: 29px;
  font-weight: 400;
  line-height: 1;
  color: var(--red);
  transform: translateY(1px);
}
.hero-date {
  --delay: .2s;
  margin-top: 6px;
  font-size: 13px;
  letter-spacing: .16em;
  color: var(--gray);
}
.hero-photo {
  --delay: .26s;
  width: calc(100% + 40px);
  max-width: 480px;
  margin: 28px -20px 0;
}
.photo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #e6e5e0;
  transform-origin: center top;
  will-change: transform;
}
.photo-frame img {
  position: absolute;
  inset: -5% 0;
  width: 100%;
  height: 110%;
  max-width: none;
  object-fit: cover;
  transform: translate3d(0, var(--photo-y, 0px), 0) scale(var(--photo-scale, 1));
  will-change: transform;
}
.hero-invitation {
  --delay: .34s;
  position: relative;
  z-index: 2;
  margin: -34px 10px 0;
  padding: 25px 12px 24px;
  background: var(--white);
  text-align: center;
}
.invitation-content { will-change: transform; }
.invitation-rule {
  display: block;
  width: 28px;
  height: 2px;
  margin: 0 auto 18px;
  background: var(--red);
}
.hero-invitation > p:first-of-type {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: .08em;
  overflow-wrap: anywhere;
}
.hero-invitation b { color: var(--red); font-weight: 500; }
.invite-sub {
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: .05em;
  color: var(--gray);
}
.invitation-date {
  margin-top: 13px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--red);
}
.scroll-hint {
  --delay: .5s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  font-size: 9px;
  letter-spacing: .16em;
  color: var(--gray);
}
.scroll-hint i {
  position: relative;
  width: 1px;
  height: 30px;
  overflow: hidden;
  background: var(--line);
}
.scroll-hint i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--red);
  animation: scroll-line 2.2s ease-in-out infinite;
}
@keyframes scroll-line {
  0% { transform: translateY(-100%); }
  55%, 100% { transform: translateY(100%); }
}

/* 通用区块 */
.section {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 60px 24px;
  border-top: 1px solid var(--line);
}
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 30px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--black);
}
.section-heading h2 {
  order: -1;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: .1em;
}
.en-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--red);
}
.section-sub {
  margin: -12px 0 28px;
  font-size: 11px;
  line-height: 2;
  color: var(--gray);
}
.section-sub b { color: var(--red); font-weight: 500; }

/* 日期与流程 */
.big-date {
  font-size: clamp(31px, 9vw, 40px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -.03em;
  color: var(--red);
}
.lunar {
  margin-top: 7px;
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--gray);
}
.calendar {
  width: 100%;
  max-width: 390px;
  margin: 28px auto 0;
  padding: 20px 12px 22px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  row-gap: 11px;
  background: var(--soft);
  font-size: 13px;
}
.calendar .cal-head {
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: .04em;
  text-align: center;
  color: var(--gray);
}
.calendar .cal-day { position: relative; min-width: 0; padding: 5px 0; text-align: center; }
.calendar .cal-day.today { isolation: isolate; color: var(--white); font-weight: 600; }
.calendar .cal-day.today svg {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 33px;
  height: 33px;
  transform: translate(-50%, -50%);
  color: var(--red);
  z-index: 1;
}
.calendar .cal-day.today span { position: relative; z-index: 2; }
.countdown-line {
  margin-top: 22px;
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--gray);
}
.countdown-line b {
  padding: 0 4px;
  font-size: 21px;
  font-weight: 500;
  color: var(--red);
}
.agenda {
  max-width: 330px;
  margin: 38px auto 0;
  list-style: none;
}
.agenda li {
  position: relative;
  display: grid;
  grid-template-columns: 65px 1fr;
  gap: 22px;
  min-height: 56px;
  padding: 0 0 18px 18px;
  border-left: 1px solid var(--line);
  font-size: 13px;
}
.agenda li:last-child { min-height: 0; padding-bottom: 0; border-left-color: transparent; }
.agenda li::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px var(--white);
}
.agenda b {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}
.agenda span { padding-top: 1px; }

/* 地点 */
.venue { font-size: 21px; font-weight: 500; letter-spacing: .05em; }
.addr {
  max-width: 340px;
  margin: 10px 0 26px;
  font-size: 12px;
  line-height: 1.9;
  color: var(--gray);
  overflow-wrap: anywhere;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 26px;
  border: 1px solid var(--red);
  border-radius: 3px;
  background: var(--white);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-decoration: none;
  color: var(--red);
  cursor: pointer;
  transition: background .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--red); color: var(--white); }
.btn:active { transform: scale(.98); }
.btn:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.pin-icon { width: 16px; height: 16px; }

/* 回执 */
#rsvp { background: var(--soft); }
.rsvp-form {
  width: 100%;
  max-width: 370px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 21px;
}
.rsvp-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  font-size: 11px;
  color: var(--black);
}
.req { color: var(--red); }
.rsvp-form input[type="text"], .rsvp-form input[type="number"], .rsvp-form textarea {
  width: 100%;
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 3px;
  outline: none;
  background: var(--white);
  font-family: var(--sans);
  font-size: 14px;
  color: var(--black);
  transition: border-color .2s;
}
.rsvp-form textarea { resize: vertical; min-height: 82px; max-height: 180px; line-height: 1.7; }
.rsvp-form input:focus, .rsvp-form textarea:focus { border-color: var(--red); }
.rsvp-form input::placeholder, .rsvp-form textarea::placeholder { color: #b3aca8; font-size: 11px; }
.checkbox { flex-direction: row !important; align-items: center; gap: 9px !important; }
.checkbox input { flex: 0 0 auto; width: 16px; height: 16px; accent-color: var(--red); }
.btn-solid { width: 100%; margin-top: 4px; background: var(--red); color: var(--white); }
.btn-solid:hover { background: var(--red-dark); }
.btn-solid:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.form-msg { min-height: 20px; font-size: 11px; text-align: center; }
.form-msg.ok { color: #47704e; }
.form-msg.err { color: var(--red); }

/* 页脚 */
.footer {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 54px 24px calc(58px + env(safe-area-inset-bottom));
  text-align: center;
}
.footer-en { font-size: 16px; font-weight: 400; line-height: 1.5; color: var(--red); }
.cn-quote { margin-top: 9px; font-size: 12px; font-weight: 300; letter-spacing: .14em; }
.footer-mark {
  display: block;
  margin: 25px 0 14px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--red);
}
.footer-names { font-size: 12px; letter-spacing: .1em; }
.tiny {
  margin-top: 26px;
  font-size: 7px;
  letter-spacing: .12em;
  line-height: 1.8;
  color: var(--gray);
}

@media (max-width: 340px) {
  .names { gap: 10px; }
  .pname { font-size: 23px; }
  .section { padding-left: 18px; padding-right: 18px; }
  .section-heading { gap: 10px; }
  .section-heading h2 { font-size: 18px; }
  .en-label { font-size: 9px; }
  .agenda li { grid-template-columns: 58px 1fr; gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-hint i::after { animation: none; transform: none; }
  .photo-frame img { transform: none; }
  html { scroll-behavior: auto; }
}


/* 强化动效与结果反馈 */
.hero-invitation .invitation-content > p:first-of-type {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: .08em;
  overflow-wrap: anywhere;
}
.calendar .cal-day.today::before,
.calendar .cal-day.today::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 33px;
  height: 33px;
  border: 1px solid var(--red);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
  animation: date-pulse 2.8s ease-out infinite;
}
.calendar .cal-day.today::after { animation-delay: -1.4s; }
@keyframes date-pulse {
  0% { opacity: .32; transform: translate(-50%, -50%) scale(1); }
  85%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.55); }
}
.btn-solid {
  position: relative;
  box-shadow: 0 8px 22px rgba(123, 36, 51, .16);
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(123, 36, 51, .24); }
.btn-solid.is-loading::after {
  content: "";
  width: 13px;
  height: 13px;
  margin-left: 4px;
  border: 1.5px solid rgba(255, 255, 255, .4);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: loading-spin .7s linear infinite;
}
@keyframes loading-spin { to { transform: rotate(360deg); } }
.form-msg.err {
  padding: 10px 12px;
  border: 1px solid rgba(123, 36, 51, .22);
  border-radius: 3px;
  background: #f9eff1;
  font-size: 12px;
  animation: feedback-shake .38s ease;
}
@keyframes feedback-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-3px); }
}

.success-overlay {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(25, 24, 23, .48);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity .32s ease;
}
.success-overlay[hidden] { display: none; }
.success-overlay.is-visible { opacity: 1; }
.success-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 340px;
  padding: 38px 26px 28px;
  border-top: 3px solid var(--red);
  background: var(--white);
  box-shadow: 0 28px 80px rgba(25, 24, 23, .2);
  text-align: center;
  transform: translateY(34px) scale(.92);
  transition: transform .55s cubic-bezier(.16, 1, .3, 1);
}
.success-overlay.is-visible .success-card { transform: none; }
.success-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 10px rgba(123, 36, 51, .08);
  animation: check-arrive .65s cubic-bezier(.16, 1, .3, 1) both;
}
.success-check svg { width: 40px; height: 40px; }
.success-check path {
  fill: none;
  stroke: var(--white);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 36;
  stroke-dashoffset: 36;
  animation: check-draw .5s ease .35s forwards;
}
@keyframes check-arrive {
  from { transform: scale(.4) rotate(-16deg); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@keyframes check-draw { to { stroke-dashoffset: 0; } }
.success-eyebrow {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .22em;
  color: var(--red);
}
.success-card h2 { margin-top: 8px; font-size: 24px; font-weight: 500; letter-spacing: .08em; }
.success-copy { margin-top: 18px; font-size: 13px; line-height: 2; color: var(--gray); }
.success-copy span { color: var(--black); font-weight: 500; overflow-wrap: anywhere; }
.success-detail {
  display: inline-block;
  margin: 18px 0 24px;
  padding: 6px 12px;
  background: var(--soft);
  font-size: 11px;
  color: var(--red);
}
.success-card .btn { width: 100%; }
.confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.confetti i {
  position: absolute;
  top: -20px;
  left: var(--x);
  width: 7px;
  height: 11px;
  border-radius: 70% 20% 70% 20%;
  opacity: 0;
  animation: confetti-fall var(--duration) ease-in var(--delay) both;
}
@keyframes confetti-fall {
  0% { opacity: 0; transform: translate3d(0, -8vh, 0) rotate(0); }
  10% { opacity: .8; }
  100% { opacity: 0; transform: translate3d(var(--drift), 112vh, 0) rotate(var(--spin)); }
}

@media (prefers-reduced-motion: reduce) {
  .calendar .cal-day.today::before, .calendar .cal-day.today::after, .confetti { display: none; }
  .btn-solid.is-loading::after { animation-duration: 1.5s; }
  .form-msg.err, .success-check, .success-check path { animation: none; }
  .success-check path { stroke-dashoffset: 0; }
  .success-overlay, .success-card { transition: none; }
}


/* 地图入口与人数选择 */
/* 紧凑的地图图标入口 */
.map-navigation { display: flex; align-items: center; justify-content: flex-start; margin-top: 20px; }
.map-links { display: flex; gap: 16px; }
.map-link { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-width: 52px; min-height: 64px; padding: 4px 0; border-radius: 3px; color: var(--gray); font-size: 12px; line-height: 1.5; text-decoration: none; }
.map-link img { display: block; width: 32px; height: 32px; object-fit: contain; }
.map-link:hover, .map-link:active { color: var(--red); background: rgba(123, 36, 51, .04); }
.map-link:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.rsvp-form select {
  width: 100%;
  min-width: 0;
  min-height: 47px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 3px;
  outline: none;
  background: var(--white);
  font-family: var(--sans);
  font-size: 14px;
  color: var(--black);
  cursor: pointer;
  transition: border-color .2s;
}
.rsvp-form select:focus { border-color: var(--red); }
.rsvp-form select:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }


.wedding-logo {
  display: block;
  width: 110px;
  height: auto;
  margin: 24px auto 14px;
  opacity: .85;
}


/* 婚礼品牌与视觉层次 */
:root { --display: "Didot", "Bodoni 72", "Bodoni MT", "Times New Roman", serif; }
.hero { padding-top: max(26px, env(safe-area-inset-top)); }
.hero-brand { display: flex; justify-content: center; margin-bottom: 20px; }
.hero-brand img { display: block; width: 88px; height: auto; opacity: .88; }
.hero-kicker { text-align: center; }
.names { justify-content: center; }
.hero-english {
  --delay: .18s;
  margin-top: 14px;
  font-family: var(--display);
  font-size: clamp(43px, 12vw, 58px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.035em;
  text-align: center;
  color: var(--red);
}
.hero-date {
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: .16em;
  text-align: center;
}
.hero-photo { position: relative; margin-top: 24px; }
.photo-caption {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
  bottom: 45px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .12em;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .7);
  pointer-events: none;
}
.hero-invitation {
  border: 1px solid var(--line);
  border-top: 0;
  box-shadow: 0 14px 36px rgba(56, 36, 38, .06);
}
.invitation-date, .en-label, .big-date, .agenda b, .countdown-line b, .footer-en {
  font-family: var(--display);
}
.en-label { font-size: 14px; letter-spacing: .06em; }
.big-date { font-weight: 500; letter-spacing: -.025em; }
.agenda b { font-size: 22px; }
.countdown-line b { font-size: 27px; }

.promise {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 58px 24px;
  background: var(--red);
  color: var(--white);
  text-align: center;
}
.promise::before, .promise::after {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 48% 52% 62% 38%;
  pointer-events: none;
}
.promise::before { left: -145px; top: -110px; transform: rotate(24deg); }
.promise::after { right: -150px; bottom: -120px; transform: rotate(-18deg); }
.promise-inner { position: relative; z-index: 1; max-width: 480px; margin: 0 auto; }
.promise-en { font-family: var(--display); font-size: 30px; line-height: 1.25; }
.promise-line { display: block; width: 32px; height: 1px; margin: 20px auto; background: rgba(255, 255, 255, .6); }
.promise-cn { font-size: 14px; font-weight: 300; letter-spacing: .12em; }
.promise-sign { margin-top: 16px; font-family: var(--display); font-size: 16px; letter-spacing: .16em; opacity: .7; }
#time { border-top: 0; padding-top: 66px; }
#location { border-top: 0; padding-top: 24px; }
#rsvp { border-top: 0; }
.footer { border-top: 1px solid var(--line); }
.footer-en { font-size: 24px; line-height: 1.35; }
.wedding-logo { opacity: .9; }

@media (max-width: 340px) {
  .hero-english { font-size: 40px; }
  .promise { padding: 50px 18px; }
  .promise-cn { font-size: 12px; }
}


/* Self-hosted subsets cover all current invitation copy; see scripts/build-fonts.py. */
@font-face {
  font-family: "Wedding Sans SC";
  src: url("fonts/source-han-sans-sc.woff2?v=20261117-admin-2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Wedding Serif SC";
  src: url("fonts/source-han-serif-sc.woff2?v=20261117-admin-2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root {
  --sans: "Wedding Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Segoe UI", "Microsoft YaHei", sans-serif;
  --display: "Wedding Serif SC", "Songti SC", "STSong", serif;
}
.pname, .section-heading h2, .venue, .success-card h2 {
  font-family: var(--display);
  font-weight: 400;
}
.hero-english { letter-spacing: -.015em; }


/* 现代无衬线字体与 logo 暗纹 */
@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
:root {
  --sans: "Manrope", "Wedding Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", sans-serif;
  --display: "Manrope", "Wedding Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
}
.pname, .section-heading h2, .venue, .success-card h2 { font-family: var(--sans); }
.pname { font-weight: 400; letter-spacing: .06em; }
.hero-english {
  font-size: clamp(38px, 10.5vw, 50px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1.15;
}
.hero-date { font-size: 14px; font-weight: 400; }
.big-date { font-weight: 400; }
.promise-en { font-weight: 400; letter-spacing: -.025em; }
.footer-en { font-weight: 400; letter-spacing: -.015em; }

.hero { position: relative; isolation: isolate; }
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -120px;
  bottom: 90px;
  width: 330px;
  height: 165px;
  background: url("photos/wedding-logo.png") center / contain no-repeat;
  opacity: .035;
  transform: rotate(-14deg);
  pointer-events: none;
}
.promise::before, .promise::after {
  width: 420px;
  height: 210px;
  border: 0;
  border-radius: 0;
  background: url("photos/wedding-logo.png") center / contain no-repeat;
  filter: brightness(0) invert(1);
  opacity: .075;
}
.promise::before { left: -190px; top: -35px; transform: rotate(-15deg); }
.promise::after { right: -200px; bottom: -38px; transform: rotate(165deg); }
#time { position: relative; overflow: hidden; }
#time::before {
  content: "";
  position: absolute;
  right: -145px;
  top: 170px;
  width: 340px;
  height: 170px;
  background: url("photos/wedding-logo.png") center / contain no-repeat;
  opacity: .028;
  transform: rotate(12deg);
  pointer-events: none;
}
#time > * { position: relative; z-index: 1; }


/* 海报式字重层级 */
@font-face {
  font-family: "Wedding Sans SC";
  src: url("fonts/source-han-sans-sc-300.woff2?v=20261117-admin-2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Wedding Sans SC";
  src: url("fonts/source-han-sans-sc-500.woff2?v=20261117-admin-2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Wedding Sans SC";
  src: url("fonts/source-han-sans-sc-700.woff2?v=20261117-admin-2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
.hero-kicker { font-weight: 600; }
.pname { font-weight: 700; letter-spacing: .035em; }
.hero-english { font-weight: 300; letter-spacing: -.055em; }
.hero-date { font-weight: 400; }
.section-heading h2 { font-weight: 700; letter-spacing: .06em; }
.en-label { font-weight: 500; }
.big-date { font-weight: 300; letter-spacing: -.045em; }
.lunar, .invite-sub, .section-sub, .addr { font-weight: 300; }
.countdown-line b { font-weight: 300; }
.agenda b { font-weight: 400; }
.agenda span { font-weight: 500; }
.venue { font-weight: 700; }
.promise-en { font-weight: 300; }
.promise-cn { font-weight: 400; }
.promise-sign { font-weight: 500; }
.btn { font-weight: 600; }
.success-card h2 { font-weight: 700; }
.footer-en { font-weight: 300; }
.footer-names { font-weight: 500; }


/* 宋体点缀与后半页内容层次 */
@font-face {
  font-family: "Wedding Serif SC";
  src: url("fonts/source-han-serif-sc.woff2?v=20261117-admin-2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root { --cn-serif: "Wedding Serif SC", "Songti SC", "STSong", serif; }
.pname, .section-heading h2, .venue, .success-card h2, .promise-cn, .cn-quote {
  font-family: var(--cn-serif);
  font-weight: 400;
}
.pname { font-size: clamp(26px, 7.4vw, 32px); letter-spacing: .05em; }
.section-heading h2 { font-size: 22px; letter-spacing: .08em; }
.promise-cn { font-size: 15px; }
.calendar {
  padding: 24px 14px 26px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--red);
  background: var(--white);
  box-shadow: 0 16px 38px rgba(61, 42, 44, .05);
}
.countdown-line {
  width: fit-content;
  margin: 24px auto 0;
  padding: 6px 14px;
  background: var(--soft);
  line-height: 1.8;
}
.agenda-label {
  margin-top: 42px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--black);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  text-align: left;
}
.agenda { margin-top: 24px; }
.agenda li { min-height: 66px; padding-bottom: 24px; }
.agenda li::before {
  left: -5px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 1px var(--red);
}
.agenda b { font-size: 23px; font-weight: 300; }
.agenda span { font-size: 14px; font-weight: 500; }
#location {
  padding-top: 58px;
  padding-bottom: 62px;
  background: var(--soft);
}
.venue { font-size: 26px; letter-spacing: .06em; }
.addr {
  margin-top: 16px;
  padding-left: 14px;
  border-left: 2px solid var(--red);
  line-height: 1.9;
}
#rsvp { padding-top: 58px; padding-bottom: 66px; background: #f7f3f2; }
.rsvp-form {
  padding: 26px 22px 24px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 18px 46px rgba(61, 42, 44, .05);
}
.success-card h2 { font-size: 25px; }
.footer { padding-top: 64px; }
@media (max-width: 340px) {
  .rsvp-form { padding: 22px 16px; }
  .calendar { padding-left: 9px; padding-right: 9px; }
  .promise-cn { font-size: 13px; }
}


/* 宋体字重与英文比例 */
@font-face {
  font-family: "Wedding Serif SC";
  src: url("fonts/source-han-serif-sc-300.woff2?v=20261117-admin-2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Wedding Serif SC";
  src: url("fonts/source-han-serif-sc-500.woff2?v=20261117-admin-2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Wedding Serif SC";
  src: url("fonts/source-han-serif-sc-700.woff2?v=20261117-admin-2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
.pname { font-weight: 500; }
.section-heading h2 { font-weight: 500; }
.venue { font-weight: 700; }
.promise-cn, .cn-quote { font-weight: 300; }
.success-card h2 { font-weight: 500; }
.hero-english {
  font-size: clamp(31px, 8.4vw, 40px);
  letter-spacing: -.025em;
  line-height: 1.2;
}
.hero-date { font-size: 13px; }
.en-label { font-size: 12px; }
.invitation-date { font-size: 13px; }
.big-date { font-size: clamp(29px, 8vw, 36px); }
.promise-en { font-size: 24px; letter-spacing: -.015em; }
.promise-sign { font-size: 13px; }
.agenda b { font-size: 20px; }
.footer-en { font-size: 20px; }


@font-face {
  font-family: "Great Vibes";
  src: url("fonts/great-vibes-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
.hero-english {
  font-family: "Great Vibes", cursive;
  font-size: clamp(30px, 9.2vw, 44px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.15;
}


.hero-invitation #guestName { color: inherit; font-weight: inherit; }
.promise-en {
  font-family: "Great Vibes", cursive;
  font-size: 39px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.25;
  transform: rotate(-2deg);
}


/* 动态餐食选择 */
.meal-field { min-width: 0; font-size: 11px; }
.meal-field > p { margin: 3px 0 10px; color: var(--gray); font-size: 10px; }
.meal-options { display: grid; gap: 8px; }
.meal-option { position: relative; display: block; cursor: pointer; }
.meal-option input { position: absolute; opacity: 0; pointer-events: none; }
.meal-option > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--white);
  transition: border-color .2s, background .2s, color .2s;
}
.meal-option b { font-size: 13px; font-weight: 500; }
.meal-option small { font-size: 10px; color: var(--gray); }
.meal-option input:checked + span { border-color: var(--red); background: #f9f1f3; color: var(--red); }
.meal-option input:checked + span::after { content: "✓"; font-size: 13px; font-weight: 600; }
.meal-option input:checked + span small { margin-left: auto; color: var(--red); }
.meal-option input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }


/* 可横向滑动的照片轨道 */
.photo-track {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.photo-track::-webkit-scrollbar { display: none; }
.photo-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.photo-pagination {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 17px;
  display: flex;
  justify-content: center;
  gap: 7px;
  pointer-events: none;
}
.photo-pagination:empty { display: none; }
.photo-pagination button {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .5);
  box-shadow: 0 1px 5px rgba(0, 0, 0, .12);
  cursor: pointer;
  pointer-events: auto;
  transition: width .25s, background .25s;
}
.photo-pagination button.active { width: 18px; background: var(--white); }
.photo-pagination button:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .photo-track { scroll-behavior: auto; }
}


.saved-notice {
  margin-bottom: 2px;
  padding: 9px 12px;
  border-left: 2px solid var(--red);
  background: var(--soft);
  font-size: 11px;
  color: var(--gray);
}


.saved-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.saved-notice button {
  flex: 0 0 auto;
  padding: 3px 0;
  border: 0;
  border-bottom: 1px solid var(--red);
  background: transparent;
  font-size: 11px;
  color: var(--red);
  cursor: pointer;
}
.saved-notice button:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
@media (max-width: 340px) {
  .saved-notice { align-items: flex-start; flex-direction: column; gap: 5px; }
}


/* 多条回执管理 */
.rsvp-manager { margin-bottom: 4px; }
.rsvp-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}
.rsvp-tabs button {
  padding: 10px 8px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  font-size: 12px;
  color: var(--gray);
  cursor: pointer;
}
.rsvp-tabs button.active { border-bottom-color: var(--red); color: var(--red); font-weight: 600; }
.rsvp-tabs button:focus-visible, .rsvp-list-item:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.rsvp-list { max-height: 156px; margin-top: 10px; overflow-y: auto; }
.rsvp-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.rsvp-list-item:last-child { border-bottom: 0; }
.rsvp-list-item.active { background: #f9f1f3; color: var(--red); }
.rsvp-list-item b { font-size: 13px; font-weight: 500; overflow-wrap: anywhere; }
.rsvp-list-item small { flex: 0 0 auto; font-size: 10px; color: var(--gray); }
@media (max-width: 340px) {
  .rsvp-list-item { align-items: flex-start; flex-direction: column; gap: 2px; }
  .rsvp-list-item small { white-space: normal; }
}


.rsvp-list-row { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); }
.rsvp-list-row:last-child { border-bottom: 0; }
.rsvp-list-row .rsvp-list-item { flex: 1; min-width: 0; border-bottom: 0; }
.rsvp-delete {
  flex: 0 0 auto;
  padding: 0 10px;
  border: 0;
  background: transparent;
  font-size: 10px;
  color: var(--gray);
  cursor: pointer;
}
.rsvp-delete:hover { color: var(--red); }
.rsvp-delete:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }


.rsvp-delete { display: inline-flex; align-items: center; justify-content: center; width: 38px; padding: 0; }
.rsvp-delete svg { width: 16px; height: 16px; }


.rsvp-list-row.active .rsvp-delete { background: #f9f1f3; color: var(--red); }


/* 手机阅读与触控优化 */
.hero { padding-top: max(20px, env(safe-area-inset-top)); padding-bottom: 24px; }
.hero-brand { margin-bottom: 12px; }
.hero-brand img { width: 64px; opacity: 1; }
.names { margin-top: 10px; }
.hero-english { margin-top: 8px; line-height: 1.1; white-space: nowrap; }
.hero-photo { margin-top: 20px; }
.hero-invitation { margin-top: -24px; padding: 18px 12px; }
.invitation-rule { margin-bottom: 12px; }
.invite-sub { font-size: 13px; font-weight: 400; }
.scroll-hint { margin-top: 16px; gap: 8px; font-size: 11px; }
.scroll-hint i { height: 20px; }
.hero::after { opacity: .02; }
.promise::before { opacity: .035; }
.promise::after { display: none; }
.lunar, .section-sub, .addr { font-size: 14px; font-weight: 400; }
.countdown-line { font-size: 13px; }
.btn { font-size: 14px; }
.rsvp-form { max-width: 400px; padding: 24px 16px 18px; }
.rsvp-form label, .meal-field { font-size: 14px; }
.rsvp-form input[type="text"], .rsvp-form input[type="number"], .rsvp-form textarea, .rsvp-form select { font-size: 16px; }
.rsvp-form input::placeholder, .rsvp-form textarea::placeholder { color: #756d69; font-size: 14px; }
.meal-field > p, .meal-option small { font-size: 12px; }
.meal-option > span { flex-wrap: wrap; gap: 6px 10px; padding: 12px; min-height: 48px; }
.meal-option b { font-size: 15px; }
.checkbox { min-height: 44px; }
.checkbox input { width: 20px; height: 20px; }
.form-msg { font-size: 14px; }
.rsvp-tabs button { min-height: 44px; font-size: 14px; }
.rsvp-mode-notice { margin: 12px 0 0; font-size: 13px; color: var(--gray); overflow-wrap: anywhere; }
.rsvp-list { max-height: 220px; }
.rsvp-list-item { align-items: flex-start; flex-direction: column; gap: 3px; }
.rsvp-list-item b { font-size: 15px; }
.rsvp-list-item small { font-size: 12px; overflow-wrap: anywhere; }
.rsvp-delete { width: 44px; min-height: 44px; }
.photo-pagination { bottom: 28px; gap: 0; }
.photo-pagination button, .photo-pagination button.active { position: relative; width: 44px; height: 44px; background: transparent; box-shadow: none; }
.photo-pagination button::before { content: ""; position: absolute; top: 19px; left: 19px; width: 6px; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .65); box-shadow: 0 1px 5px rgba(0, 0, 0, .2); }
.photo-pagination button.active::before { left: 13px; width: 18px; background: var(--white); }
.photo-caption { bottom: 52px; }
@media (max-width: 340px) {
  .section { padding-left: 18px; padding-right: 18px; }
  .rsvp-form { padding: 20px 12px 16px; }
  .promise-en { font-size: 33px; }
}


/* 地址复制入口与反馈 */
.venue-address { display: flex; align-items: flex-start; gap: 12px; margin: 16px 0 26px; }
.venue-address .addr { flex: 1; min-width: 0; max-width: none; margin: 0; user-select: text; -webkit-user-select: text; }
.copy-address { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 3px; background: var(--white); color: var(--red); font: inherit; font-size: 12px; cursor: pointer; }
.copy-address svg { width: 18px; height: 18px; }
.copy-address:hover { border-color: var(--red); }
.copy-address:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.copy-address:disabled { opacity: .6; cursor: wait; }
.copy-address-status { margin: -12px 0 22px; font-size: 13px; line-height: 1.8; color: var(--red); }
.copy-address-status:empty { display: none; }
.copy-address-status.is-error { color: var(--gray); }
.clipboard-helper { position: fixed; top: 0; left: 0; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; font-size: 16px; }
@media (max-width: 340px) {
  .venue-address { gap: 8px; }
  .copy-address { flex-direction: column; gap: 3px; padding: 8px; }
}

/* 邀请验证前不渲染场次资料。 */
[hidden] { display: none !important; }
.invitation-gate { max-width: 420px; min-height: 100svh; margin: 0 auto; padding: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; text-align: center; }
.gate-eyebrow { color: var(--red); font-size: 11px; letter-spacing: .18em; }
.invitation-gate h1 { font-family: "Songti SC", "STSong", serif; font-size: 30px; font-weight: 400; }
.invitation-gate #gateMessage, .invitation-gate noscript { color: var(--gray); font-size: 14px; line-height: 1.9; }
.rsvp-delete:disabled { opacity: .4; cursor: not-allowed; }


/* Keep CJK text and embedded numbers in the same font. */
:root { --system-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Segoe UI", "Microsoft YaHei", sans-serif; }
.big-date, .lunar, .addr, .section-sub, .invitation-date, .footer-names, .success-detail {
  font-family: "Wedding Sans SC", var(--system-sans);
}
/* Guest-provided names and notes need the system's full character coverage. */
#guestName, .rsvp-form input[type="text"], .rsvp-form textarea,
.rsvp-list-item b, .rsvp-mode-notice, .form-msg {
  font-family: var(--system-sans);
}
.theme-sans .pname, .theme-sans .section-heading h2, .theme-sans .venue,
.theme-sans .promise-cn, .theme-sans .cn-quote, .theme-sans .success-card h2 { font-family: var(--system-sans); }
.no-date-ripple .calendar .cal-day.today::before, .no-date-ripple .calendar .cal-day.today::after { display: none; }
.no-intro-animation .reveal { opacity: 1; transform: none; transition: none; }
.no-intro-animation .photo-frame img, .no-intro-animation .hero-heading { transform: none !important; opacity: 1 !important; }
.hero::after, .promise::before, .promise::after, #time::before { background-image: var(--wedding-logo-image, url("photos/wedding-logo.png")); }
.preview-banner { position: sticky; top: 0; z-index: 150; padding: 8px 12px; background: #fff5dc; color: #6e5325; font: 13px/1.6 var(--system-sans); text-align: center; }

/* 可组合的邀请函区块 */
[hidden] { display: none !important; }
.cover-module.hero { min-height: 0; padding-bottom: 0; }
.photos-module { position: relative; width: 100%; max-width: 480px; margin: 20px auto 0; }
.photos-module .hero-photo { width: 100%; margin: 0; }
.invitation-module { position: relative; width: 100%; max-width: 480px; margin: 0 auto; padding: 24px 20px; }
.invitation-module .hero-invitation { margin: 0 10px; }
.invitation-module.follows-photos { padding-top: 0; }
.invitation-module.follows-photos .hero-invitation { margin-top: -24px; }
.schedule-module .agenda-label { margin-top: 0; }
.invitation-preview .reveal { opacity: 1; transform: none; transition: none; }
.invitation-preview .preview-banner { display: none; }
.invitation-preview .scroll-hint { display: none; }

.no-wedding-logo .hero::after, .no-wedding-logo .promise::before, .no-wedding-logo .promise::after, .no-wedding-logo #time::before { display: none; }


/* Optional ambience is independent of the invitation's module order. */
.wedding-effects { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 35; pointer-events: none; }
.music-toggle { position: fixed; top: max(18px, env(safe-area-inset-top)); right: max(16px, env(safe-area-inset-right)); z-index: 140; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #ded1ce; border-radius: 50%; color: var(--red); background: rgba(255,255,255,.9); box-shadow: 0 2px 12px #43252214; cursor: pointer; }
.music-toggle svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.music-toggle:not(.is-playing)::after { content: ''; position: absolute; width: 26px; height: 1px; background: currentColor; transform: rotate(-45deg); }
.music-toggle.is-playing svg { animation: music-turn 8s linear infinite; }
.music-toggle:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.music-status { position: fixed; top: 70px; right: 16px; max-width: 190px; padding: 6px 10px; z-index: 140; background: #fffaf5; color: var(--red); border-radius: 4px; font: 12px/1.6 var(--system-sans); }
.music-status:empty { display: none; }
@keyframes music-turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .music-toggle.is-playing svg { animation: none; } }

html.intro-scrolling { scroll-behavior: auto; }

/* Scroll-driven entrances preserve the existing layout and final typography. */
.scroll-story [data-scroll-reveal]:not([data-scroll-reveal="section"]) {
 opacity: var(--sr-opacity,1);
 transform: translate3d(var(--sr-x,0px),var(--sr-y,0px),0) scale(var(--sr-scale,1));
 transition: none;
 transform-origin: 50% 50%;
}
.scroll-story .scroll-reveal-group { opacity: 1; transform: none; transition: none; }
.scroll-story [data-scroll-reveal="section"] { position: relative; border-bottom-color: transparent; }
.scroll-story [data-scroll-reveal="section"]::after { content:""; position:absolute; left:0; right:0; bottom:-1px; height:1px; background:var(--black); transform:scaleX(var(--sr-line,1)); transform-origin:left; }
.scroll-story [data-scroll-reveal="photo"] .photo-frame { clip-path:inset(var(--sr-cut,0%) var(--sr-cut,0%)); }
.scroll-story [data-scroll-reveal="date"] { clip-path:inset(var(--sr-cut,0%) 0 0); }
.scroll-story [data-scroll-reveal="quote"] { clip-path:inset(0 0 var(--sr-cut,0%) 0); }
.scroll-story [data-scroll-reveal="venue"] { clip-path:inset(0 var(--sr-cut,0%) 0 0); }
.scroll-story [data-scroll-reveal="date"] { transform-origin:left center; }
.scroll-story [data-scroll-reveal="rule"] { transform-origin:center; }
@media (prefers-reduced-motion:reduce) {
 .scroll-story [data-scroll-reveal]:not([data-scroll-reveal="section"]) { opacity:1; transform:none; clip-path:none; }
 .scroll-story [data-scroll-reveal="photo"] .photo-frame { clip-path:none; }
 .scroll-story [data-scroll-reveal="section"]::after { transform:none; }
}

/* Keep translated entrances inside the viewport; mobile page scrolling stays vertical. */
#invitationRoot { width:100%; max-width:100%; min-width:0; }
@supports (overflow-x:clip) { html,body,#invitationRoot { overflow-x:clip; } }
@media (max-width:600px) {
 html { scrollbar-width:none; }
 html::-webkit-scrollbar { display:none; width:0; height:0; }
}
