/* DESIGN
   气质：星火 · 青春纪念 · 暖橙金
   主 #E85D04 金 #C9A227 墨 #2C2416 纸 #FFF8F0
   禁：紫白渐变、厚卡片墙、霓虹 glow、emoji 主视觉
*/
:root {
  --ember: #e85d04;
  --ember-deep: #c4320a;
  --gold: #c9a227;
  --gold-soft: #e8d59a;
  --ink: #2c2416;
  --muted: #7a6a58;
  --paper: #fff8f0;
  --paper-2: #f7efe4;
  --line: rgba(44, 36, 22, 0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --st: env(safe-area-inset-top, 0px);
  --sb: env(safe-area-inset-bottom, 0px);
  --display: "Noto Serif SC", "Songti SC", serif;
  --brush: "Ma Shan Zheng", "Kaiti SC", cursive;
  --sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --micro: "DM Sans", "Helvetica Neue", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(120% 80% at 90% 0%, rgba(232, 93, 4, 0.12), transparent 55%),
    radial-gradient(90% 60% at 0% 30%, rgba(201, 162, 39, 0.14), transparent 50%),
    linear-gradient(180deg, #fffaf3 0%, var(--paper) 40%, #fff4e8 100%);
  font-family: var(--sans);
  line-height: 1.65;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

.page {
  width: min(100%, 430px);
  margin: 0 auto;
  position: relative;
}

.music-btn {
  position: fixed;
  top: calc(12px + var(--st));
  right: 12px;
  z-index: 50;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 248, 240, 0.88);
  border: 1px solid rgba(201, 162, 39, 0.45);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(44, 36, 22, 0.1);
}

.music-btn svg {
  width: 18px;
  height: 18px;
  fill: var(--ember-deep);
}

.music-btn.is-off svg {
  opacity: 0.45;
}

.music-btn.is-on {
  animation: spin-slow 8s linear infinite;
}

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

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(18px + var(--st)) 18px calc(28px + var(--sb));
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(44, 36, 22, 0.05) 0%, transparent 28%, rgba(44, 36, 22, 0.55) 78%, rgba(28, 18, 10, 0.82) 100%);
  pointer-events: none;
}

.hero__copy {
  position: relative;
  z-index: 2;
  color: #fff8f0;
  max-width: 18em;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 1s var(--ease) 0.2s forwards;
  text-shadow: 0 2px 18px rgba(28, 18, 10, 0.45);
}

.hero__kicker {
  margin: 0 0 10px;
  font-family: var(--micro);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--gold-soft);
}

.hero__title {
  margin: 0;
  font-family: var(--brush);
  font-size: clamp(34px, 10vw, 42px);
  line-height: 1.15;
  font-weight: 400;
}

.hero__sub {
  margin: 10px 0 0;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: rgba(255, 248, 240, 0.88);
}

.hero__meta {
  margin: 18px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 13px;
  color: rgba(255, 248, 240, 0.9);
}

.hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero__meta i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

.hero__scroll {
  position: relative;
  z-index: 2;
  margin-top: 26px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 248, 240, 0.8);
  font-size: 12px;
  letter-spacing: 0.16em;
}

.hero__scroll i {
  width: 1px;
  height: 22px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: drip 1.6s ease-in-out infinite;
}

@keyframes drip {
  0%,
  100% {
    transform: scaleY(0.55);
    opacity: 0.4;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

/* —— Sections —— */
.section {
  padding: 64px 22px 12px;
  position: relative;
}

.section__kicker {
  margin: 0 0 8px;
  font-family: var(--micro);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ember);
}

.section__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(26px, 7vw, 32px);
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.section__title em {
  font-style: normal;
  color: var(--ember-deep);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

/* letter */
.letter {
  margin-top: 22px;
  padding: 26px 22px 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 248, 240, 0.92)),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 27px,
      rgba(201, 162, 39, 0.08) 28px
    );
  border: 1px solid rgba(201, 162, 39, 0.28);
  border-radius: 4px 22px 4px 22px;
  box-shadow: 0 18px 40px rgba(196, 50, 10, 0.06);
}

.letter__to {
  margin: 0 0 16px;
  font-family: var(--brush);
  font-size: 26px;
  color: var(--ember-deep);
}

.letter p {
  margin: 0 0 14px;
  font-size: 15px;
  color: var(--ink);
  text-align: justify;
}

.letter__lead {
  font-family: var(--display);
  font-size: 17px !important;
  font-weight: 600;
}

.letter__sign {
  margin-top: 22px;
  text-align: right;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.letter__sign strong {
  display: block;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
}

/* facts */
.facts {
  margin: 28px 0 0;
  display: grid;
  gap: 14px;
}

.fact {
  padding: 18px 18px 16px;
  border-left: 3px solid var(--ember);
  background: rgba(255, 255, 255, 0.55);
}

.fact__label {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
  font-family: var(--micro);
}

.fact__value {
  margin: 0;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
}

.fact__sub {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* decade badge */
.decade {
  margin: 28px 0 0;
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-top: 8px;
}

.decade__num {
  font-family: var(--micro);
  font-size: 56px;
  font-weight: 600;
  line-height: 1;
  color: var(--ember);
  letter-spacing: -0.04em;
}

.decade__txt {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.decade__txt strong {
  display: block;
  font-family: var(--display);
  font-size: 18px;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 2px;
}

/* gallery */
.gallery {
  padding-top: 56px;
}

.gallery__intro {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.xfade {
  position: relative;
  margin: 28px 0 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 6px;
}

.xfade img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: xfade 10s ease-in-out infinite;
}

.xfade img:nth-child(1) {
  animation-delay: 0s;
}
.xfade img:nth-child(2) {
  animation-delay: 5s;
}

@keyframes xfade {
  0%,
  42% {
    opacity: 1;
  }
  50%,
  92% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.marquee {
  margin: 28px -22px 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: marquee 38s linear infinite;
}

.marquee--reverse .marquee__track {
  animation-direction: reverse;
  animation-duration: 42s;
}

.marquee__track img {
  width: 168px;
  height: 224px;
  object-fit: cover;
  border-radius: 4px;
  flex: 0 0 auto;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.puzzle {
  margin: 32px 0 0;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 12px;
  align-items: end;
}

.puzzle__main {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--line);
}

.puzzle__main img,
.puzzle__side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.puzzle__side {
  display: grid;
  gap: 12px;
}

.puzzle__side figure {
  margin: 0;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--line);
  transform: translateY(-18px);
}

.puzzle__cap {
  margin: 14px 0 0;
  font-family: var(--brush);
  font-size: 22px;
  color: var(--ember-deep);
  text-align: right;
}

.feature-wide {
  margin: 28px 0 0;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 16 / 10;
}

.feature-wide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* venue */
.venue-card {
  margin-top: 24px;
  display: block;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.venue-card__map {
  height: 168px;
  overflow: hidden;
}

.venue-card__map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.venue-card__body {
  padding: 16px 16px 18px;
}

.venue-card__name {
  margin: 0;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
}

.venue-card__addr {
  margin: 6px 0 14px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

.venue-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ember), var(--ember-deep));
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.06em;
}

/* RSVP / QR */
.rsvp {
  text-align: center;
  padding-bottom: 28px;
}

.rsvp__box {
  margin: 24px auto 0;
  max-width: 280px;
  padding: 22px 18px 20px;
  background: #fff;
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(196, 50, 10, 0.07);
}

.rsvp__box img {
  width: 196px;
  height: 196px;
  margin: 0 auto;
  background: #fff;
}

.rsvp__hint {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

.rsvp__cta {
  display: inline-flex;
  margin-top: 14px;
  min-height: 44px;
  padding: 0 22px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--ember);
  color: var(--ember-deep);
  font-size: 14px;
  letter-spacing: 0.04em;
}

.rsvp__note {
  margin: 18px 22px 0;
  font-size: 13px;
  color: var(--muted);
}

/* closing */
.closing {
  padding: 48px 22px calc(48px + var(--sb));
  text-align: center;
}

.closing__slogan {
  margin: 0;
  font-family: var(--brush);
  font-size: 24px;
  color: var(--ember-deep);
  line-height: 1.5;
}

.closing__years {
  margin: 14px 0 0;
  font-family: var(--micro);
  letter-spacing: 0.22em;
  font-size: 12px;
  color: var(--gold);
}

.closing__from {
  margin: 22px 0 0;
  font-size: 13px;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero__copy,
  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
  .xfade img {
    animation: none;
    opacity: 0;
  }
  .xfade img:first-child {
    opacity: 1;
  }
  .marquee__track,
  .music-btn.is-on {
    animation: none;
  }
  .marquee {
    overflow-x: auto;
    mask-image: none;
  }
}
