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

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #050510;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #fff;
}

#fireworks {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 9;
}

/* ── 加载 ── */
.loading {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #050510;
  transition: opacity 0.8s, visibility 0.8s;
}

.loading.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-heart {
  font-size: 3rem;
  color: #ff85a2;
  animation: heartBeat 1.2s ease-in-out infinite;
}

.loading-text {
  margin-top: 1.5rem;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.15em;
}

.loading-bar {
  margin-top: 2rem;
  width: min(240px, 70vw);
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.loading-bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #ff85a2, #ffd93d);
  border-radius: 999px;
  transition: width 0.3s ease;
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* ── 开场邀请卡 ── */
.intro {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s, visibility 1s;
  pointer-events: none;
}

.intro.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.intro.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 20% 30%, rgba(255, 133, 162, 0.14) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 65%, rgba(255, 217, 61, 0.1) 0%, transparent 70%),
    radial-gradient(ellipse 40% 35% at 50% 90%, rgba(126, 184, 232, 0.08) 0%, transparent 70%);
  animation: auroraShift 8s ease-in-out infinite alternate;
}

@keyframes auroraShift {
  from { opacity: 0.7; transform: scale(1); }
  to { opacity: 1; transform: scale(1.04); }
}

.intro-card-wrap {
  position: relative;
  z-index: 1;
  animation: cardFloat 5s ease-in-out infinite;
}

@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.intro-card {
  position: relative;
  width: min(320px, 88vw);
  min-height: 220px;
  padding: 2.4rem 1.8rem 2rem;
  border-radius: 20px;
  background: rgba(12, 12, 28, 0.72);
  backdrop-filter: blur(16px);
  text-align: center;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  transition: transform 1.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 1.2s ease;
}

.intro-card-border {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg,
    rgba(255, 133, 162, 0.65) 0%,
    rgba(255, 217, 61, 0.35) 45%,
    rgba(126, 184, 232, 0.45) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.intro-card-shine {
  position: absolute;
  top: -50%;
  left: -60%;
  width: 50%;
  height: 200%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  transform: skewX(-15deg);
  animation: cardShine 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes cardShine {
  0%, 70% { left: -60%; }
  100% { left: 130%; }
}

.intro-seal {
  position: relative;
  z-index: 2;
  width: 52px;
  height: 52px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #ffb8cc, #e84a7a 55%, #c42d5a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 24px rgba(255, 133, 162, 0.55),
    0 4px 16px rgba(0, 0, 0, 0.35);
  transition: transform 0.5s ease, opacity 0.5s ease;
  animation: sealPulse 2.5s ease-in-out infinite;
}

.intro-seal span {
  color: #fff;
  font-size: 1.35rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

@keyframes sealPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 24px rgba(255, 133, 162, 0.55); }
  50% { transform: scale(1.06); box-shadow: 0 0 36px rgba(255, 133, 162, 0.85); }
}

.intro-card-face {
  position: relative;
  z-index: 2;
  transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.intro-to {
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  color: rgba(255, 217, 61, 0.85);
  margin-bottom: 0.8rem;
}

.intro-headline {
  font-size: clamp(1.6rem, 6vw, 2rem);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.12em;
  background: linear-gradient(135deg, #fff 10%, #ffd4e5 50%, #ffd93d 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.9rem;
}

.intro-teaser {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.08em;
  line-height: 1.7;
}

.intro-card-letter {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.6rem;
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  transition: opacity 0.7s ease 0.25s, transform 0.8s cubic-bezier(0.34, 1.4, 0.64, 1) 0.2s;
  pointer-events: none;
}

.letter-title {
  font-size: 1.15rem;
  color: #ffb8cc;
  letter-spacing: 0.14em;
  margin-bottom: 1rem;
}

.letter-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.9;
  letter-spacing: 0.06em;
}

.intro-card.open .intro-card-face {
  opacity: 0;
  transform: translateY(-24px) scale(0.95);
}

.intro-card.open .intro-seal {
  opacity: 0;
  transform: scale(0) rotate(20deg);
}

.intro-card.open .intro-card-letter {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.intro-card.open {
  transform: scale(1.04);
  box-shadow: 0 0 60px rgba(255, 133, 162, 0.25);
}

.intro-card-wrap.opening {
  animation: none;
  transform: scale(1.08);
  opacity: 0;
  transition: transform 1.4s ease, opacity 1s ease 0.4s;
}

.btn-intro-open {
  position: relative;
  z-index: 1;
  margin-top: 2rem;
  padding: 0.9rem 2.6rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff85a2 0%, #e05a7a 50%, #c77dff 100%);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  cursor: pointer;
  overflow: hidden;
  box-shadow:
    0 4px 24px rgba(255, 133, 162, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.15) inset;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-intro-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.25) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: btnGlowSweep 3s ease-in-out infinite;
}

@keyframes btnGlowSweep {
  0%, 60% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.btn-intro-text {
  position: relative;
  z-index: 1;
}

.btn-intro-open:hover {
  transform: scale(1.06);
  box-shadow:
    0 6px 32px rgba(255, 133, 162, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.btn-intro-open:active {
  transform: scale(0.98);
}

.btn-intro-open:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.intro-whisper {
  margin-top: 1.2rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.12em;
  z-index: 1;
}

/* ── 按钮 ── */
.btn {
  pointer-events: auto;
  margin-top: 1.2rem;
  padding: 0.75rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.btn-glow:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 24px rgba(255, 180, 80, 0.35);
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.btn-nav {
  position: fixed;
  right: 1.2rem;
  z-index: 25;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 0.75rem;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.2s, box-shadow 0.2s;
}

#btnPause {
  bottom: 3.5rem;
  z-index: 25;
}

#btnMusic {
  bottom: 5.2rem;
  font-size: 1rem;
  z-index: 25;
}

.btn-nav:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-nav.paused {
  box-shadow: 0 0 16px rgba(255, 133, 162, 0.4);
}

.btn-music.playing {
  box-shadow: 0 0 16px rgba(255, 217, 61, 0.45);
  border-color: rgba(255, 217, 61, 0.4);
}

/* ── 章节转场 ── */
.chapter-flash {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(5, 5, 16, 0.85);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.6s, visibility 0.6s;
}

.chapter-flash.show {
  opacity: 1;
  visibility: visible;
  animation: flashPulse 4.2s ease forwards;
}

@keyframes flashPulse {
  0% { opacity: 0; }
  15% { opacity: 1; }
  75% { opacity: 1; }
  100% { opacity: 0; }
}

.chapter-tag {
  font-size: 0.9rem;
  color: rgba(255, 200, 100, 0.8);
  letter-spacing: 0.3em;
  margin-bottom: 0.8rem;
}

.chapter-name {
  font-size: clamp(2.5rem, 10vw, 5rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  background: linear-gradient(135deg, #fff 0%, #ffd93d 50%, #ff85a2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: nameReveal 1.2s ease forwards;
}

.chapter-whisper {
  margin-top: 1.2rem;
  font-size: clamp(0.95rem, 2.5vw, 1.2rem);
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.12em;
  animation: whisperFade 1.5s ease 0.4s forwards;
  opacity: 0;
}

@keyframes nameReveal {
  from { transform: scale(0.8); opacity: 0; filter: blur(8px); }
  to { transform: scale(1); opacity: 1; filter: blur(0); }
}

@keyframes whisperFade {
  to { opacity: 1; }
}

/* ── 旅程主舞台 ── */
.journey {
  position: fixed;
  inset: 0;
  z-index: 5;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s, visibility 1s;
}

.journey.visible {
  opacity: 1;
  visibility: visible;
}

.photo-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.photo-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 0;
  will-change: opacity, transform, filter;
}

.photo-bg {
  position: absolute;
  inset: -8%;
  width: 116%;
  height: 116%;
  object-fit: cover;
  filter: blur(28px) saturate(1.15) brightness(0.4);
  pointer-events: none;
  transition: transform 3.2s ease, filter 3.2s ease;
}

.photo-main {
  position: relative;
  z-index: 11;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transform-origin: center center;
  animation: kenBurns 24s ease-in-out infinite alternate;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
}

.photo-main.ken-burns-alt {
  animation: kenBurnsAlt 24s ease-in-out infinite alternate;
}

@keyframes kenBurns {
  from { transform: scale(1); }
  to { transform: scale(1.015); }
}

@keyframes kenBurnsAlt {
  from { transform: scale(1.015); }
  to { transform: scale(1); }
}

/* ── 照片转场：梦境模糊 ── */
.photo-layer.enter-dream {
  animation: enterDream 3.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.photo-layer.exit-dream {
  animation: exitDream 3.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  z-index: 2;
}

@keyframes enterDream {
  0% { opacity: 0; filter: blur(16px) brightness(1.3); transform: scale(1.06); }
  60% { opacity: 0.85; filter: blur(4px) brightness(1.05); }
  100% { opacity: 1; filter: blur(0) brightness(1); transform: scale(1); }
}

@keyframes exitDream {
  0% { opacity: 1; filter: blur(0); transform: scale(1); }
  100% { opacity: 0; filter: blur(12px) brightness(0.7); transform: scale(0.96); }
}

/* ── 照片转场：电影推拉 ── */
.photo-layer.enter-cinematic {
  animation: enterCinematic 3.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.photo-layer.exit-cinematic {
  animation: exitCinematic 3.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  z-index: 2;
}

@keyframes enterCinematic {
  0% { opacity: 0; transform: scale(1.12) translateX(3%); }
  100% { opacity: 1; transform: scale(1) translateX(0); }
}

@keyframes exitCinematic {
  0% { opacity: 1; transform: scale(1) translateX(0); }
  100% { opacity: 0; transform: scale(0.94) translateX(-4%); }
}

/* ── 照片转场：柔光漂移 ── */
.photo-layer.enter-drift {
  animation: enterDrift 3.2s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}

.photo-layer.exit-drift {
  animation: exitDrift 3.2s cubic-bezier(0.33, 1, 0.68, 1) forwards;
  z-index: 2;
}

@keyframes enterDrift {
  0% { opacity: 0; transform: translateY(6%) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes exitDrift {
  0% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-5%) scale(1.02); }
}

/* ── 照片转场：拍立得飘落 ── */
.photo-layer.enter-polaroid {
  animation: enterPolaroid 3.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.photo-layer.exit-polaroid {
  animation: exitPolaroid 3.2s ease forwards;
  z-index: 2;
}

@keyframes enterPolaroid {
  0% { opacity: 0; transform: scale(0.88) rotate(-2.5deg) translateY(24px); }
  70% { opacity: 1; transform: scale(1.01) rotate(0.4deg) translateY(-4px); }
  100% { opacity: 1; transform: scale(1) rotate(0) translateY(0); }
}

@keyframes exitPolaroid {
  0% { opacity: 1; transform: scale(1) rotate(0); }
  100% { opacity: 0; transform: scale(0.9) rotate(2deg) translateY(-16px); }
}

/* ── 照片转场：金光扫过 ── */
.photo-layer.enter-shimmer {
  animation: enterShimmer 3.2s ease forwards;
}

.photo-layer.exit-shimmer {
  animation: exitShimmer 3.2s ease forwards;
  z-index: 2;
}

@keyframes enterShimmer {
  0% { opacity: 0; transform: scale(1.04); filter: brightness(1.8) saturate(0.5); }
  40% { opacity: 0.6; filter: brightness(1.3) saturate(0.8); }
  100% { opacity: 1; transform: scale(1); filter: brightness(1) saturate(1); }
}

@keyframes exitShimmer {
  0% { opacity: 1; filter: brightness(1); }
  100% { opacity: 0; filter: brightness(0.6) blur(4px); }
}

.photo-transition-flash {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
}

.photo-transition-flash.sweep::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -60%;
  width: 50%;
  height: 140%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 220, 150, 0.15) 35%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(255, 180, 120, 0.2) 65%,
    transparent 100%
  );
  transform: skewX(-12deg);
  animation: lightSweep 1.6s ease-out forwards;
}

@keyframes lightSweep {
  0% { left: -60%; opacity: 0; }
  15% { opacity: 1; }
  100% { left: 120%; opacity: 0; }
}

.photo-grain {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.photo-vignette {
  position: absolute;
  inset: 0;
  z-index: 12;
  background:
    radial-gradient(ellipse at center, transparent 42%, rgba(5, 5, 16, 0.45) 100%),
    linear-gradient(to top, rgba(5, 5, 16, 0.65) 0%, transparent 28%),
    linear-gradient(to bottom, rgba(5, 5, 16, 0.35) 0%, transparent 18%);
  pointer-events: none;
}

.photo-layer.placeholder::after {
  content: attr(data-place);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(2rem, 8vw, 4rem);
  color: rgba(255, 255, 255, 0.15);
  letter-spacing: 0.2em;
}

/* ── 时间轴 ── */
.timeline-rail {
  position: fixed;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 25;
  width: min(140px, 28vw);
  pointer-events: auto;
}

.rail-title {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  position: absolute;
  left: -0.5rem;
  top: 0;
}

.timeline-track {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-left: 1.5rem;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.timeline-dot {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.35rem 0;
  text-align: left;
}

.timeline-dot::before {
  content: '';
  position: absolute;
  left: -1.65rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s;
}

.timeline-dot.active::before {
  background: var(--accent, #ff85a2);
  box-shadow: 0 0 12px var(--accent, #ff85a2);
  transform: scale(1.3);
}

.timeline-dot.done::before {
  background: rgba(255, 255, 255, 0.5);
}

.dot-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.08em;
  transition: color 0.3s;
}

.timeline-dot.active .dot-label {
  color: #fff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.timeline-dot:hover .dot-label {
  color: rgba(255, 255, 255, 0.8);
}

.progress-bar {
  margin-top: 1.2rem;
  margin-left: 1.5rem;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #ff85a2, #ffd93d);
  border-radius: 999px;
  transition: width 0.8s ease;
}

/* ── 地点卡片 ── */
.location-card {
  position: fixed;
  right: 1.5rem;
  bottom: 4rem;
  z-index: 25;
  max-width: min(320px, 55vw);
  padding: 1.2rem 1.5rem;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 3px solid var(--accent, #ff85a2);
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.6s, transform 0.6s;
}

.location-card.card-in {
  opacity: 1;
  transform: translateX(0);
}

.card-date {
  font-size: 0.8rem;
  color: var(--accent, #ff85a2);
  letter-spacing: 0.15em;
  margin-bottom: 0.4rem;
}

.card-place {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.card-sub {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.06em;
  line-height: 1.6;
}

.card-line {
  margin-top: 0.8rem;
  height: 1px;
  background: linear-gradient(90deg, var(--accent, #ff85a2), transparent);
}

/* ── 飘心 & 星光 ── */
.hearts-layer,
.sparkle-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 8;
  overflow: hidden;
}

.float-heart {
  position: absolute;
  font-size: 1.2rem;
  animation: floatUp 2.5s ease-out forwards;
  opacity: 0.9;
  text-shadow: 0 0 8px currentColor;
}

@keyframes floatUp {
  0% { transform: translateY(0) scale(1); opacity: 0.9; }
  100% { transform: translateY(-120px) scale(0.5); opacity: 0; }
}

.sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 6px #ffd93d, 0 0 12px #ff85a2;
  animation: sparklePop 2s ease-out forwards;
}

@keyframes sparklePop {
  0% { transform: scale(0); opacity: 1; }
  50% { transform: scale(1.5); opacity: 1; }
  100% { transform: scale(0); opacity: 0; }
}

/* ── 终章 ── */
.finale {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s, visibility 1.2s;
  background: rgba(5, 5, 16, 0.6);
  backdrop-filter: blur(4px);
}

.finale.visible {
  opacity: 1;
  visibility: visible;
}

.finale-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 133, 162, 0.25) 0%, transparent 70%);
  animation: finaleGlow 3s ease-in-out infinite alternate;
}

.finale-ring {
  position: absolute;
  width: 200px;
  height: 200px;
  border: 1px solid rgba(255, 217, 61, 0.3);
  border-radius: 50%;
  animation: ringExpand 4s ease-in-out infinite;
}

@keyframes finaleGlow {
  from { transform: scale(1); opacity: 0.6; }
  to { transform: scale(1.3); opacity: 1; }
}

@keyframes ringExpand {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.5); opacity: 0.1; }
}

.finale-title {
  font-size: clamp(2rem, 8vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-shadow:
    0 0 20px rgba(255, 200, 100, 0.8),
    0 0 40px rgba(255, 120, 80, 0.4);
  animation: glow 2.5s ease-in-out infinite alternate;
  z-index: 1;
}

.finale-sub {
  margin-top: 1.2rem;
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.1em;
  line-height: 1.9;
  text-align: center;
  z-index: 1;
}

.finale-places {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  justify-content: center;
  max-width: 90vw;
  z-index: 1;
}

.finale-places span {
  padding: 0.35rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.08em;
  animation: tagFade 0.6s ease backwards;
}

.finale-places span:nth-child(1) { animation-delay: 0.1s; }
.finale-places span:nth-child(2) { animation-delay: 0.2s; }
.finale-places span:nth-child(3) { animation-delay: 0.3s; }
.finale-places span:nth-child(4) { animation-delay: 0.4s; }
.finale-places span:nth-child(5) { animation-delay: 0.5s; }
.finale-places span:nth-child(6) { animation-delay: 0.6s; }
.finale-places span:nth-child(7) { animation-delay: 0.7s; }
.finale-places span:nth-child(8) { animation-delay: 0.8s; }

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

.finale-love {
  margin-top: 1.5rem;
  font-size: 1.1rem;
  color: #ff85a2;
  letter-spacing: 0.15em;
  animation: heartBeat 1.5s ease-in-out infinite;
  z-index: 1;
}

@keyframes glow {
  from {
    text-shadow:
      0 0 16px rgba(255, 200, 100, 0.6),
      0 0 32px rgba(255, 120, 80, 0.3);
  }
  to {
    text-shadow:
      0 0 28px rgba(255, 220, 140, 1),
      0 0 56px rgba(255, 100, 60, 0.55);
  }
}

/* ── 备案 ── */
.beian {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  padding: 0.75rem 1rem;
  text-align: center;
  pointer-events: auto;
}

.beian a {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: color 0.2s;
}

.beian a:hover {
  color: rgba(255, 255, 255, 0.75);
}

/* ── 移动端适配 ── */
@media (max-width: 640px) {
  .timeline-rail {
    left: 0.5rem;
    width: auto;
    top: auto;
    bottom: 3.2rem;
    transform: none;
  }

  .rail-title {
    display: none;
  }

  .timeline-track {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    border-left: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-left: 0;
    padding-bottom: 0.5rem;
    gap: 0.3rem;
    max-width: calc(100vw - 1rem);
    scrollbar-width: none;
  }

  .timeline-track::-webkit-scrollbar {
    display: none;
  }

  .timeline-dot::before {
    display: none;
  }

  .dot-label {
    font-size: 0.7rem;
    white-space: nowrap;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
  }

  .timeline-dot.active .dot-label {
    background: rgba(255, 133, 162, 0.25);
  }

  .progress-bar {
    display: none;
  }

  .location-card {
    right: 0.8rem;
    left: 0.8rem;
    bottom: 5.5rem;
    max-width: none;
  }

  #btnPause {
    bottom: 5.5rem;
    right: 0.8rem;
  }

  #btnMusic {
    bottom: 7.2rem;
    right: 0.8rem;
  }
}
