/* ============================================================
   style.css · 500 Days of Us
   浪漫梦幻 + 高级质感：深色星空渐变背景 + 毛玻璃 + 光晕粒子
   ============================================================ */

/* ---------- 主题变量（改这里即可整体换色） ---------- */
:root {
  --color-deep-purple: #1a0a2e;   /* 深紫 */
  --color-space-blue: #16213e;    /* 星空蓝 */
  --color-rose-gold: #e8b4b8;     /* 玫瑰金 */
  --color-warm-gold: #ffd700;     /* 暖金 */

  --color-text: #f5eef8;
  --color-text-muted: rgba(245, 238, 248, 0.62);
  --color-text-faint: rgba(245, 238, 248, 0.38);

  --glass-bg: rgba(255, 255, 255, 0.055);
  --glass-bg-strong: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.12);

  --font-display: "Playfair Display", "Noto Serif SC", serif;
  --font-serif: "Noto Serif SC", "Playfair Display", serif;
  --font-body: "Noto Sans SC", -apple-system, BlinkMacSystemFont, sans-serif;

  --nav-height: 72px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 基础重置 ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-deep-purple);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 深紫到星空蓝的渐变背景 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 90% at 15% 0%, rgba(232, 180, 184, 0.12) 0%, transparent 45%),
    radial-gradient(120% 100% at 85% 10%, rgba(255, 215, 0, 0.08) 0%, transparent 42%),
    linear-gradient(160deg, var(--color-deep-purple) 0%, #24104a 35%, var(--color-space-blue) 100%);
}

/* ---------- 星空画布 ---------- */
#starfield {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* ---------- 噪点叠加层 ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================================
   开场动画
   ============================================================ */
#opening {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 50%, #2a1140 0%, var(--color-deep-purple) 60%, #0d061a 100%);
  transition: opacity 1.1s var(--ease-out), visibility 1.1s;
}
#opening.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.burst {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.burst-particle {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  box-shadow: 0 0 8px 1px currentColor;
  animation: burst 1.5s var(--ease-out) forwards;
}
@keyframes burst {
  0%   { transform: translate(-50%, -50%) translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -50%) translate(var(--dx), var(--dy)) scale(0.15); opacity: 0; }
}

.opening-center {
  text-align: center;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
.opening-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 8vw, 5.5rem);
  letter-spacing: 0.02em;
  background: linear-gradient(120deg, var(--color-warm-gold), var(--color-rose-gold), #fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out);
}
.opening-title.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.opening-subtitle {
  margin-top: 22px;
  min-height: 2em;
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 3vw, 1.7rem);
  letter-spacing: 0.35em;
  color: var(--color-rose-gold);
  text-shadow: 0 0 18px rgba(232, 180, 184, 0.55);
}
.opening-subtitle.typing::after,
.opening-subtitle.done::after {
  content: "|";
  margin-left: 4px;
  color: var(--color-warm-gold);
  animation: blink 0.9s steps(1) infinite;
}
@keyframes blink {
  50% { opacity: 0; }
}

/* ============================================================
   顶部导航
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 56px);
  transition: background 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out), backdrop-filter 0.45s;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: transparent;
}
/* 滚动后加深 */
.navbar.scrolled {
  background: rgba(26, 10, 46, 0.62);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid var(--glass-border);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.logo-accent {
  margin-left: 6px;
  background: linear-gradient(120deg, var(--color-warm-gold), var(--color-rose-gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 30px);
}
.nav-link {
  position: relative;
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  transition: color 0.3s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--color-warm-gold), var(--color-rose-gold));
  transform: translateX(-50%);
  transition: width 0.35s var(--ease-out);
}
.nav-link:hover,
.nav-link.active {
  color: var(--color-text);
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* 汉堡菜单 */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  cursor: pointer;
  padding: 0 10px;
}
.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.35s var(--ease-out), opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Hero 首页
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 40px) 24px 40px;
  position: relative;
}

.hero-inner {
  max-width: 880px;
  width: 100%;
}
/* 开场动画结束后逐个浮现 */
.hero-inner > * {
  opacity: 0;
  transform: translateY(24px);
}
.hero-inner.revealed > * {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.hero-inner.revealed > *:nth-child(1) { transition-delay: 0.05s; }
.hero-inner.revealed > *:nth-child(2) { transition-delay: 0.16s; }
.hero-inner.revealed > *:nth-child(3) { transition-delay: 0.27s; }
.hero-inner.revealed > *:nth-child(4) { transition-delay: 0.38s; }
.hero-inner.revealed > *:nth-child(5) { transition-delay: 0.5s; }
.hero-inner.revealed > *:nth-child(6) { transition-delay: 0.62s; }

.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.5em;
  color: var(--color-warm-gold);
  text-transform: uppercase;
  margin-bottom: 18px;
  text-shadow: 0 0 14px rgba(255, 215, 0, 0.4);
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 8.5vw, 6rem);
  line-height: 1.08;
  background: linear-gradient(120deg, var(--color-warm-gold) 10%, var(--color-rose-gold) 50%, #fff 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-subtitle {
  margin-top: 18px;
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 3.4vw, 1.6rem);
  letter-spacing: 0.4em;
  color: var(--color-rose-gold);
  text-shadow: 0 0 20px rgba(232, 180, 184, 0.5);
}

/* 计数器 */
.counter {
  margin-top: 44px;
}
.counter-days {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
}
#counterDays {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(5rem, 18vw, 11rem);
  line-height: 1;
  color: var(--color-warm-gold);
  text-shadow: 0 0 24px rgba(255, 215, 0, 0.65), 0 0 60px rgba(255, 215, 0, 0.35);
  animation: pulse-glow 3s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { text-shadow: 0 0 24px rgba(255, 215, 0, 0.6), 0 0 60px rgba(255, 215, 0, 0.3); }
  50%      { text-shadow: 0 0 36px rgba(255, 215, 0, 0.9), 0 0 90px rgba(255, 215, 0, 0.5); }
}
.counter-unit {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  color: var(--color-rose-gold);
}
.counter-detail {
  margin-top: 14px;
  font-size: clamp(0.9rem, 2.6vw, 1.1rem);
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}

/* 情话轮播 */
.quote-box {
  position: relative;
  margin: 48px auto 0;
  max-width: 640px;
  padding: 28px 34px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}
.quote-mark {
  position: absolute;
  top: -14px;
  left: 22px;
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--color-warm-gold);
  opacity: 0.85;
}
.quote-text {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 3vw, 1.3rem);
  letter-spacing: 0.05em;
  color: var(--color-text);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.quote-text.fade {
  opacity: 0;
  transform: translateY(10px);
}

/* 向下滚动提示 */
.scroll-hint {
  margin-top: 52px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--color-text-faint);
  text-decoration: none;
  transition: color 0.3s;
}
.scroll-hint:hover { color: var(--color-warm-gold); }
.scroll-hint-text {
  font-size: 0.8rem;
  letter-spacing: 0.35em;
}
.scroll-arrow {
  width: 26px;
  height: 26px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  animation: bounce 1.8s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0) rotate(45deg); opacity: 0.5; }
  50%      { transform: translateY(10px) rotate(45deg); opacity: 1; }
}

/* ============================================================
   通用 section
   ============================================================ */
.section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 110px 24px;
  position: relative;
  scroll-margin-top: var(--nav-height);
}
.section-alt {
  background: linear-gradient(180deg, transparent, rgba(22, 33, 62, 0.45), transparent);
}
.section-inner {
  max-width: 760px;
  width: 100%;
  text-align: center;
}
.section-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.5em;
  color: var(--color-warm-gold);
  text-transform: uppercase;
  margin-bottom: 14px;
  opacity: 0.85;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 6vw, 3.4rem);
  background: linear-gradient(120deg, var(--color-warm-gold), var(--color-rose-gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-divider {
  width: 56px;
  height: 2px;
  margin: 22px auto;
  background: linear-gradient(90deg, transparent, var(--color-rose-gold), transparent);
}
.section-sub {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
}
.placeholder {
  margin-top: 44px;
  padding: 56px 32px;
  border: 1px dashed var(--glass-border);
  border-radius: 22px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--color-text-faint);
}
.placeholder-mark {
  display: block;
  font-size: 1.8rem;
  color: var(--color-warm-gold);
  opacity: 0.7;
  margin-bottom: 12px;
}
.placeholder p {
  letter-spacing: 0.12em;
}

/* ============================================================
   我们的故事
   ============================================================ */
.story-inner {
  max-width: 1100px;
}
.story-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) 1.1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  margin-top: 56px;
  text-align: left;
}

/* 大照片 */
.story-photo {
  position: relative;
}
.photo-placeholder {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(150deg, #2a1140, #16213e);
  border: 1px solid var(--glass-border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.story-photo:hover .photo-placeholder {
  transform: scale(1.03);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

/* 右侧文字 */
.story-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  letter-spacing: 0.06em;
  margin-bottom: 20px;
  background: linear-gradient(120deg, var(--color-warm-gold), var(--color-rose-gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.story-text p {
  color: var(--color-text-muted);
  font-size: 1.02rem;
  line-height: 1.95;
  letter-spacing: 0.04em;
}
.story-text p + p {
  margin-top: 16px;
}

/* 三个里程碑小卡片 */
.story-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 64px;
}
.story-card {
  position: relative;
  text-align: left;
  padding: 28px 24px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: transform 0.4s var(--ease-out), border-color 0.4s, background 0.4s, box-shadow 0.4s;
}
.story-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 215, 0, 0.55);
  background: var(--glass-bg-strong);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35), 0 0 26px rgba(255, 215, 0, 0.28);
}
.story-card:focus-visible {
  outline: 2px solid var(--color-warm-gold);
  outline-offset: 3px;
}
/* hover 浮现的提示文字 */
.story-card-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: rgba(26, 10, 46, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  color: var(--color-warm-gold);
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.story-card:hover .story-card-hover {
  opacity: 1;
}
.story-card-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--color-warm-gold);
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.25);
  margin-bottom: 16px;
}
.story-card-icon svg {
  width: 24px;
  height: 24px;
}
.story-card-date {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--color-warm-gold);
  opacity: 0.9;
  margin-bottom: 8px;
}
.story-card-title {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  line-height: 1.45;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  color: var(--color-text);
}
.story-card-title.title-small {
  font-size: 0.95rem;
}
.story-card-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

/* ============================================================
   时间线
   ============================================================ */
.timeline-inner {
  max-width: 940px;
}
.timeline {
  position: relative;
  margin-top: 60px;
  padding: 10px 0;
}
/* 中间渐变竖线 */
.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, var(--color-rose-gold) 12%, var(--color-warm-gold) 50%, var(--color-rose-gold) 88%, transparent);
  opacity: 0.55;
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 0 44px 56px;
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}
.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}
.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

/* 金色节点圆点（脉动光晕） */
.timeline-dot {
  position: absolute;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-warm-gold);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.8);
  z-index: 1;
}
.timeline-dot::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(255, 215, 0, 0.55);
  animation: dot-pulse 2.4s ease-out infinite;
}
@keyframes dot-pulse {
  0%   { transform: scale(0.5); opacity: 0.9; }
  100% { transform: scale(1.9); opacity: 0; }
}
.timeline-item:nth-child(odd) .timeline-dot {
  right: -7px;
}
.timeline-item:nth-child(even) .timeline-dot {
  left: -7px;
}

/* 时间线内容卡片 */
.timeline-content {
  display: inline-block;
  width: 100%;
  text-align: left;
  padding: 18px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.26);
  transition: transform 0.4s var(--ease-out), border-color 0.4s;
}
.timeline-content:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 180, 184, 0.4);
}
.timeline-photo {
  height: 130px;
  border-radius: 12px;
  margin-top: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(120% 100% at 20% 0%, rgba(255, 215, 0, 0.2) 0%, transparent 55%),
    linear-gradient(140deg, #2a1140, #16213e);
  border: 1px solid var(--glass-border);
  color: var(--color-text-faint);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
}
.timeline-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.timeline-photo--placeholder {
  border-style: dashed;
  color: var(--color-text-faint);
}
.timeline-photo--clickable {
  width: 100%;
  padding: 0;
  cursor: zoom-in;
  position: relative;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
}
.timeline-photo--clickable img {
  transition: transform 0.5s var(--ease-out);
}
.timeline-photo--clickable:hover img {
  transform: scale(1.06);
}
.timeline-photo-zoom {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(10, 5, 24, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--color-warm-gold);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}
.timeline-photo--clickable:hover .timeline-photo-zoom {
  opacity: 1;
  transform: translateY(0);
}
.timeline-photo-zoom svg {
  width: 16px;
  height: 16px;
}
.timeline-photo--cake {
  height: 176px;
  color: var(--color-warm-gold);
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(255, 215, 0, 0.22) 0%, transparent 60%),
    linear-gradient(140deg, #2a1140, #16213e);
}
.timeline-photo--cake svg {
  width: 128px;
  height: 128px;
  filter: drop-shadow(0 0 14px rgba(255, 215, 0, 0.45));
}
.timeline-date {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--color-warm-gold);
  opacity: 0.92;
  margin-bottom: 6px;
}
.timeline-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  color: var(--color-text);
}
.timeline-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-right: 8px;
  vertical-align: -5px;
  color: var(--color-warm-gold);
}
.timeline-icon svg {
  width: 100%;
  height: 100%;
}
.timeline-desc {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--color-text-muted);
}

/* 最后一个节点（500 天高潮）：更大的圆点 + 更强光晕 */
.timeline-item--finale .timeline-dot {
  width: 21px;
  height: 21px;
  box-shadow: 0 0 22px rgba(255, 215, 0, 1), 0 0 46px rgba(255, 215, 0, 0.55);
}
.timeline-item--finale .timeline-dot::after {
  inset: -8px;
  border-width: 2px;
  border-color: rgba(255, 215, 0, 0.65);
}
.timeline-item:nth-child(odd).timeline-item--finale .timeline-dot {
  right: -10.5px;
  left: auto;
}
.timeline-item:nth-child(even).timeline-item--finale .timeline-dot {
  left: -10.5px;
  right: auto;
}
.timeline-finale-tag {
  display: inline-block;
  margin-top: 16px;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 215, 0, 0.4);
  background: rgba(255, 215, 0, 0.08);
  color: var(--color-warm-gold);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

/* ============================================================
   页脚
   ============================================================ */
.footer {
  text-align: center;
  padding: 64px 24px 48px;
  border-top: 1px solid var(--glass-border);
  background: rgba(26, 10, 46, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.04em;
}
.footer-logo span {
  background: linear-gradient(120deg, var(--color-warm-gold), var(--color-rose-gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.footer-note {
  margin-top: 10px;
  color: var(--color-text-faint);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
}
.footer-quote {
  max-width: 640px;
  margin: 0 auto;
  font-family: var(--font-serif);
  font-size: 1.02rem;
  line-height: 2;
  letter-spacing: 0.06em;
  color: var(--color-rose-gold);
  opacity: 0.92;
}
.footer .footer-quote + .footer-note {
  margin-top: 22px;
}

/* 回到顶部按钮 */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 180;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg-strong);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--color-warm-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: transform 0.35s var(--ease-out), opacity 0.35s, visibility 0.35s, background 0.3s, color 0.3s, border-color 0.3s;
}
.back-to-top svg {
  width: 22px;
  height: 22px;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--color-warm-gold);
  color: var(--color-deep-purple);
  border-color: var(--color-warm-gold);
}

/* ============================================================
   异地恋地图
   ============================================================ */
.distance-inner {
  max-width: 900px;
}
.distance-title-icon {
  display: inline-block;
  margin-left: 10px;
  font-size: 0.9em;
  vertical-align: middle;
  animation: titlePlane 3s ease-in-out infinite;
}
@keyframes titlePlane {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.distance-sub {
  font-size: 0.98rem;
  color: rgba(255, 215, 0, 0.72);
  letter-spacing: 0.04em;
  line-height: 1.9;
}
.distance-km {
  color: var(--color-warm-gold);
  font-weight: 600;
}

/* 地图容器 */
.distance-map {
  position: relative;
  margin-top: 52px;
  width: min(800px, 100%);
  opacity: 0;
  transition: opacity 1s var(--ease-out);
}
.distance-map.show {
  opacity: 1;
}
.distance-svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--glass-border);
  background: linear-gradient(160deg, rgba(20, 14, 40, 0.55), rgba(26, 10, 46, 0.45));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

/* 经纬度网格线 */
.map-grid-line {
  stroke: rgba(255, 215, 0, 0.06);
  stroke-width: 1;
}

/* 中国各省份轮廓（GeoJSON 渲染） */
.map-province-path {
  fill: rgba(130, 112, 176, 0.22);
  stroke: rgba(255, 255, 255, 0.20);
  stroke-width: 0.6;
  stroke-linejoin: round;
  cursor: pointer;
  transition: fill 0.25s ease, stroke 0.25s ease;
}
.map-province-path:hover {
  fill: rgba(232, 180, 184, 0.32);
  stroke: rgba(255, 215, 0, 0.75);
}
.map-province-path--key {
  fill: rgba(150, 128, 190, 0.28);
  stroke: rgba(255, 215, 0, 0.34);
}

/* 南海诸岛缩略图 */
.map-inset {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 104px;
  height: 135px;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  background: rgba(18, 12, 38, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: none;
}
.map-inset-jd {
  fill: none;
  stroke: rgba(255, 215, 0, 0.55);
  stroke-width: 1;
  stroke-dasharray: 3 3;
}
.map-inset-hainan {
  fill: rgba(130, 112, 176, 0.4);
  stroke: rgba(255, 255, 255, 0.3);
  stroke-width: 0.5;
}
.map-inset-label {
  fill: rgba(245, 238, 248, 0.72);
  font-size: 11px;
  letter-spacing: 0.12em;
}

/* 地图加载提示 */
.map-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  z-index: 2;
  pointer-events: none;
}
.map-loading.hidden {
  display: none;
}

/* 航线弧线 */
.arc-glow {
  fill: none;
  stroke: rgba(255, 215, 0, 0.35);
  stroke-width: 8;
  stroke-linecap: round;
  filter: blur(5px);
}
.arc-line {
  fill: none;
  stroke: var(--color-warm-gold);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 7 7;
  stroke-dashoffset: 1000;
}
.distance-map.draw .arc-line {
  animation: drawArc 1.4s ease-out forwards;
}
@keyframes drawArc {
  to { stroke-dashoffset: 0; }
}

/* 沿线流动粒子 */
.flow-dot {
  fill: var(--color-warm-gold);
  opacity: 0.9;
  filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.9));
}

/* 飞机 */
.plane-body {
  fill: var(--color-warm-gold);
  filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.9));
}

/* 城市光点 */
.city-core {
  fill: var(--color-warm-gold);
  filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.9));
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
}
.city-ring {
  fill: rgba(255, 215, 0, 0.5);
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
}
.city-core.show {
  opacity: 1;
}
.city-ring.show {
  opacity: 1;
  animation: cityPulse 2.6s ease-out infinite;
}
.city-ring--her.show {
  animation-delay: 1.3s;
}
@keyframes cityPulse {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(3); opacity: 0; }
}

/* 城市标签 */
.city-label {
  position: absolute;
  transform: translate(-50%, -100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 14px;
  border-radius: 10px;
  background: rgba(18, 12, 38, 0.62);
  border: 1px solid rgba(255, 215, 0, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
}
.city-label.show {
  opacity: 1;
}
.city-label-name {
  font-size: 0.82rem;
  color: #fff;
  letter-spacing: 0.06em;
}
.city-label-desc {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}
.city-label--me .city-label-desc {
  color: var(--color-warm-gold);
}
.city-label--her .city-label-desc {
  color: #ff9eb5;
}

/* 向上飘散的金色粒子 */
.distance-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.distance-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-warm-gold);
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.85);
  pointer-events: none;
  animation: particleRise var(--dur) ease-out forwards;
}
@keyframes particleRise {
  0% { transform: translate(-50%, -50%); opacity: 0.9; }
  100% { transform: translate(-50%, -50%) translateY(var(--rise)); opacity: 0; }
}

/* 数据统计卡片 */
.distance-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.distance-stat {
  padding: 28px 18px;
  border-radius: 18px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: center;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out), box-shadow 0.3s, border-color 0.3s;
}
.distance-stat.show {
  opacity: 1;
  transform: translateY(0);
}
.distance-stat:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 215, 0, 0.5);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 24px rgba(255, 215, 0, 0.25);
}
.distance-stat-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 8px;
}
.distance-stat-num {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-warm-gold);
  text-shadow: 0 0 18px rgba(255, 215, 0, 0.45);
}
.distance-stat-unit {
  font-size: 0.9rem;
  color: #fff;
  letter-spacing: 0.06em;
}
.distance-stat-label {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}
.distance-stat-value--text {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--color-warm-gold);
  line-height: 1.5;
}

/* 文案区域 */
.distance-copy {
  margin-top: 52px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.distance-copy::before {
  content: "";
  display: block;
  width: 140px;
  height: 1px;
  margin: 0 auto 30px;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.6), transparent);
}
.distance-copy-main {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  line-height: 2.1;
  color: var(--color-warm-gold);
  letter-spacing: 0.04em;
}
.distance-copy-sub {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  line-height: 1.9;
}

/* ============================================================
   情书
   ============================================================ */
.letter-inner {
  max-width: 760px;
}
.letter-stage {
  position: relative;
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.letter-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

/* 漂浮花瓣 / 爱心粒子 */
.letter-particle {
  position: absolute;
  top: -6vh;
  left: var(--left);
  will-change: transform, opacity;
  animation: letterFall var(--dur) linear infinite;
  animation-delay: var(--delay);
  opacity: 0;
}
.letter-particle.heart {
  color: rgba(255, 215, 0, 0.85);
  font-size: var(--size);
}
.letter-particle.petal {
  background: linear-gradient(140deg, #ffd9e2, #f7b6c9);
  border-radius: 70% 30% 70% 30%;
  width: var(--size);
  height: var(--size);
}
.letter-particle.burst {
  top: 50%;
  left: 50%;
  opacity: 1;
  animation: letterBurst var(--dur) ease-out forwards;
}
@keyframes letterFall {
  0% { transform: translate3d(0, -6vh, 0) rotate(0deg); opacity: 0; }
  8% { opacity: var(--opacity, 0.7); }
  92% { opacity: var(--opacity, 0.7); }
  100% { transform: translate3d(var(--sway, 30px), 106vh, 0) rotate(360deg); opacity: 0; }
}
@keyframes letterBurst {
  0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(0.2); opacity: 0; }
}

/* 信封 */
.envelope-float {
  position: relative;
  z-index: 1;
  animation: envelopeFloat 4s ease-in-out infinite;
}
@keyframes envelopeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.envelope {
  position: relative;
  width: 400px;
  height: 268px;
  cursor: pointer;
  perspective: 1400px;
  transition: transform 0.45s var(--ease-out), opacity 0.45s;
}
.envelope:hover {
  transform: scale(1.03);
}
.envelope-pocket {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(160deg, #f8eadb, #efd3bd);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 60%;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: linear-gradient(165deg, #f4dcc6, #e6bf9f);
  transform-origin: top center;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transition: transform 0.7s var(--ease-out);
  z-index: 2;
}
.envelope.flipped .envelope-flap {
  transform: rotateX(180deg);
}
.envelope-seal {
  position: absolute;
  left: 50%;
  top: 58%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 34% 30%, #ffe58a, #d9a22a 62%, #a86f16);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.28), 0 4px 16px rgba(0, 0, 0, 0.35), 0 0 22px rgba(255, 215, 0, 0.55);
  transition: transform 0.45s var(--ease-out), opacity 0.45s, box-shadow 0.4s;
}
.seal-heart {
  color: #7a4a12;
  font-size: 1.5rem;
  line-height: 1;
}
.envelope:hover .envelope-seal {
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.28), 0 4px 18px rgba(0, 0, 0, 0.4), 0 0 34px rgba(255, 215, 0, 0.85);
}
.envelope.opening .envelope-seal {
  transform: translate(-50%, -50%) scale(1.75);
  opacity: 0;
}
.envelope.hidden {
  opacity: 0.35;
  transform: scale(0.82) translateY(-16px);
  pointer-events: none;
}
.envelope-hint {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  color: var(--color-text-muted);
}

/* 信纸 */
.letter-paper {
  position: relative;
  z-index: 1;
  width: min(600px, 100%);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(24px);
  transition: max-height 0.95s var(--ease-out), opacity 0.7s var(--ease-out), transform 0.95s var(--ease-out);
}
.letter-paper.open {
  max-height: 1600px;
  opacity: 1;
  transform: translateY(0);
}
.letter-paper-inner {
  position: relative;
  border-radius: 16px;
  padding: 44px 42px 38px;
  background: linear-gradient(180deg, #fdf6ea, #f7ead4);
  border: 1px solid rgba(217, 162, 42, 0.45);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  text-align: left;
}
.letter-gold-line {
  width: 100%;
  height: 1px;
  margin-bottom: 30px;
  background: linear-gradient(90deg, transparent, #d9a22a, transparent);
}
.letter-content p {
  font-family: "Kaiti SC", "STKaiti", "KaiTi", "Noto Serif SC", serif;
  font-size: 1.06rem;
  line-height: 2.1;
  color: #4b3a28;
  margin-bottom: 1.15em;
  text-indent: 2em;
}
.letter-greeting {
  text-indent: 0 !important;
  font-size: 1.2rem !important;
  font-weight: 600;
}
.letter-sign-block {
  margin-top: 1.6em;
  text-align: right;
}
.letter-sign {
  font-family: "Ma Shan Zheng", "Kaiti SC", "STKaiti", cursive;
  font-size: 1.6rem;
  color: #4b3a28;
}
.letter-date {
  margin-top: 6px;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: #9a8466;
}
.letter-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.letter-btn {
  padding: 11px 24px;
  border-radius: 999px;
  border: 1px solid rgba(217, 162, 42, 0.7);
  background: transparent;
  color: #a86f16;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}
.letter-btn:hover {
  background: var(--color-warm-gold);
  color: var(--color-deep-purple);
  border-color: var(--color-warm-gold);
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.35);
}

/* 异地恋地图 & 情书响应式 */
@media (max-width: 768px) {
  .distance-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .distance-stat {
    padding: 22px 12px;
  }
  .distance-stat-num {
    font-size: 2rem;
  }
  .distance-stat-value--text {
    font-size: 1.05rem;
  }
  .distance-copy-main {
    font-size: 1rem;
  }
  .distance-map {
    margin-top: 40px;
  }
  .map-inset {
    width: 74px;
    height: 96px;
    right: 6px;
    bottom: 6px;
  }
  .map-inset-label {
    font-size: 9px;
  }

  .envelope {
    width: min(86vw, 360px);
    height: 240px;
  }
  .envelope-flap {
    height: 58%;
  }
  .letter-paper-inner {
    padding: 30px 24px 26px;
  }
  .letter-content p {
    font-size: 1.05rem;
  }
  .letter-sign {
    font-size: 1.4rem;
  }
  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    right: 16px;
    left: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 18px;
    background: rgba(26, 10, 46, 0.92);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.35s var(--ease-out), opacity 0.35s, visibility 0.35s;
  }
  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav-link {
    width: 100%;
    padding: 12px 10px;
    font-size: 1.05rem;
  }
  .nav-link::after { display: none; }
  .hamburger { display: flex; }

  .counter-detail { letter-spacing: 0.06em; }

  /* 故事板块：单列堆叠 */
  .story-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .story-cards {
    grid-template-columns: 1fr;
  }

  /* 时间线：全部靠左 */
  .timeline::before {
    left: 18px;
    transform: none;
  }
  .timeline-item,
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    width: 100%;
    left: 0;
    text-align: left;
    padding: 0 0 48px 46px;
  }
  .timeline-item:nth-child(odd) .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot {
    left: 11px;
    right: auto;
  }
  .timeline-item:nth-child(odd).timeline-item--finale .timeline-dot,
  .timeline-item:nth-child(even).timeline-item--finale .timeline-dot {
    left: 7.5px;
    right: auto;
  }

  /* 灯箱：手机端铺满 */
  .lightbox {
    padding: 12px;
  }
  .lightbox-panel {
    padding: 24px 18px;
  }
  .lightbox-title {
    font-size: 1.2rem;
  }
}

/* ============================================================
   聊天记录截图灯箱
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s;
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
}

/* 黑色半透明毛玻璃遮罩（从中心扩散） */
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 6, 28, 0.68);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  transform: scale(0.6);
  opacity: 0;
  transition: transform 0.5s var(--ease-out), opacity 0.4s ease;
}
.lightbox.open .lightbox-backdrop {
  transform: scale(1);
  opacity: 1;
}

/* 飘散粒子层 */
.lightbox-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.particle {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  animation: particle-float var(--dur, 1.6s) ease-out forwards;
}
.particle.dot {
  background: var(--color-warm-gold);
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.8);
}
.particle.heart {
  display: grid;
  place-items: center;
  color: var(--color-rose-gold);
  text-shadow: 0 0 10px rgba(232, 180, 184, 0.9);
  line-height: 1;
}
@keyframes particle-float {
  0%   { transform: translate(-50%, -50%) translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -50%) translate(var(--tx), var(--ty)) scale(0.2); opacity: 0; }
}

/* 灯箱内容面板 */
.lightbox-panel {
  position: relative;
  z-index: 2;
  width: min(600px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  background: rgba(26, 10, 46, 0.78);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
  transform: scale(0.75);
  opacity: 0;
  transition: transform 0.5s var(--ease-out), opacity 0.45s ease;
}
.lightbox.open .lightbox-panel {
  transform: scale(1);
  opacity: 1;
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  transition: background 0.3s, color 0.3s, transform 0.3s;
}
.lightbox-close:hover {
  background: rgba(255, 215, 0, 0.2);
  color: var(--color-warm-gold);
  transform: rotate(90deg);
}

.lightbox-header {
  text-align: center;
  margin-bottom: 20px;
  padding-right: 30px;
}
.lightbox-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  color: var(--color-text);
}
.lightbox-date {
  margin-top: 6px;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--color-warm-gold);
}

.lightbox-shot {
  margin-bottom: 18px;
}
.lightbox-shot img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 62vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}

.lightbox-caption {
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.75;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}

/* 微信聊天气泡模拟截图占位 */
.mock-chat {
  text-align: left;
  border-radius: 12px;
  overflow: hidden;
  background: #ededed;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.mock-chat-bar {
  padding: 10px 14px;
  text-align: center;
  font-size: 0.82rem;
  color: #444;
  background: #f7f7f7;
  border-bottom: 1px solid #ddd;
}
.mock-bubble {
  max-width: 75%;
  margin: 10px 14px;
  padding: 8px 12px;
  font-size: 0.9rem;
  line-height: 1.4;
  border-radius: 10px;
  color: #1a1a1a;
}
.mock-bubble.left {
  background: #ffffff;
  border-top-left-radius: 2px;
}
.mock-bubble.right {
  background: #95ec69;
  border-top-right-radius: 2px;
  margin-left: auto;
}
.mock-replace {
  padding: 16px;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: #888;
  background: #f2f2f2;
  border-top: 1px dashed #ccc;
}

/* ============================================================
   照片墙
   ============================================================ */
.gallery-inner {
  max-width: 1200px;
}
.gallery-count {
  font-family: var(--font-body);
  font-size: 0.42em;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--color-warm-gold);
  opacity: 0.85;
  margin-left: 10px;
  vertical-align: middle;
}

.gallery-toolbar {
  margin-top: 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.gallery-random-btn {
  padding: 14px 32px;
  border: none;
  border-radius: 999px;
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: #1a0a2e;
  font-weight: 500;
  cursor: pointer;
  background: linear-gradient(120deg, var(--color-warm-gold), #ffe98a, var(--color-rose-gold));
  animation: btn-breathe 2.6s ease-in-out infinite;
  transition: transform 0.3s var(--ease-out);
}
.gallery-random-btn:hover {
  transform: translateY(-2px) scale(1.03);
}
@keyframes btn-breathe {
  0%, 100% { box-shadow: 0 0 18px rgba(255, 215, 0, 0.35); }
  50%      { box-shadow: 0 0 36px rgba(255, 215, 0, 0.7); }
}
.gallery-random-quote {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--color-rose-gold);
  text-shadow: 0 0 14px rgba(232, 180, 184, 0.35);
  min-height: 1.6em;
}

/* 瀑布流网格（CSS columns） */
.gallery-grid {
  column-count: 4;
  column-gap: 18px;
  margin-top: 44px;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 18px;
  opacity: 0;
  transform: translateY(30px) scale(0.7) rotate(-3deg);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.gallery-item.visible {
  opacity: 1;
  transform: translateY(0) scale(1) rotate(0);
}

.gallery-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.32);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s, border-color 0.4s;
}
.gallery-card:hover {
  transform: rotate(0deg) scale(1.08);
  border-color: rgba(255, 215, 0, 0.6);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 26px rgba(255, 215, 0, 0.35);
}

/* 照片占位（渐变） */
.gallery-photo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(120% 80% at 20% 10%, rgba(255, 215, 0, 0.18) 0%, transparent 55%),
    linear-gradient(150deg, #3a1a5e, #16213e);
}
.gallery-photo.size-normal { aspect-ratio: 4 / 3; }
.gallery-photo.size-tall   { aspect-ratio: 3 / 4; }
.gallery-photo.size-wide   { aspect-ratio: 16 / 10; }
.gallery-photo.size-big    { aspect-ratio: 1 / 1; }
.gallery-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-photo-hint {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--color-text-faint);
  padding: 6px 12px;
  border: 1px dashed var(--glass-border);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
}
/* 轮换渐变色调，让占位错落有致 */
.gallery-item:nth-child(4n+2) .gallery-photo {
  background:
    radial-gradient(120% 90% at 80% 20%, rgba(232, 180, 184, 0.2) 0%, transparent 55%),
    linear-gradient(150deg, #5a2a3e, #1a0a2e);
}
.gallery-item:nth-child(4n+3) .gallery-photo {
  background:
    radial-gradient(120% 90% at 20% 80%, rgba(201, 160, 255, 0.2) 0%, transparent 55%),
    linear-gradient(150deg, #2a1140, #2a3a5e);
}
.gallery-item:nth-child(4n+4) .gallery-photo {
  background:
    radial-gradient(120% 80% at 80% 80%, rgba(255, 215, 0, 0.16) 0%, transparent 55%),
    linear-gradient(150deg, #4a2a1e, #1a0a2e);
}

/* 金色爱心角标 */
.gallery-heart {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: var(--color-warm-gold);
  font-size: 14px;
  line-height: 1;
  background: rgba(26, 10, 46, 0.55);
  border-radius: 50%;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  transition: transform 0.3s;
}
.gallery-card:hover .gallery-heart {
  animation: heart-bounce 0.6s ease;
}
@keyframes heart-bounce {
  0%, 100% { transform: scale(1); }
  40%      { transform: scale(1.4); }
  70%      { transform: scale(0.9); }
}

.gallery-footer {
  margin-top: 52px;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1.02rem;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}

/* ============================================================
   照片墙灯箱
   ============================================================ */
.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s;
}
.photo-lightbox.open {
  opacity: 1;
  visibility: visible;
}
.photo-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 5, 24, 0.74);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  clip-path: circle(0% at 50% 50%);
  transition: clip-path 0.5s var(--ease-out);
}
.photo-lightbox.open .photo-lightbox-backdrop {
  clip-path: circle(150% at 50% 50%);
}
.photo-lightbox-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.photo-lightbox-figure {
  position: relative;
  z-index: 2;
  max-width: min(920px, 94vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.45s ease, transform 0.5s var(--ease-out);
}
.photo-lightbox.open .photo-lightbox-figure {
  opacity: 1;
  transform: scale(1);
}
.photo-lightbox-media {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.photo-lightbox-media.switching {
  opacity: 0;
  transform: scale(0.96);
}
.photo-lightbox-media img {
  display: block;
  max-width: 92vw;
  max-height: 64vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 0 60px rgba(232, 180, 184, 0.28), 0 30px 80px rgba(0, 0, 0, 0.6);
}
.gallery-photo--lightbox {
  aspect-ratio: auto;
  width: min(80vw, 520px);
  height: 56vh;
  border-radius: 12px;
  box-shadow: 0 0 60px rgba(232, 180, 184, 0.28), 0 30px 80px rgba(0, 0, 0, 0.6);
}

.photo-lightbox-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
}
.photo-lightbox-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--color-text);
}
.photo-lightbox-date {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  color: var(--color-warm-gold);
}

.photo-lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--color-text);
  cursor: pointer;
  transition: background 0.3s, color 0.3s, transform 0.3s;
}
.photo-lightbox-close svg {
  width: 20px;
  height: 20px;
}
.photo-lightbox-close:hover {
  background: rgba(255, 215, 0, 0.2);
  color: var(--color-warm-gold);
  transform: rotate(90deg);
}

.photo-lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--color-text);
  cursor: pointer;
  transition: background 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.photo-lightbox-arrow svg {
  width: 22px;
  height: 22px;
}
.photo-lightbox-arrow.prev {
  left: 20px;
}
.photo-lightbox-arrow.next {
  right: 20px;
}
.photo-lightbox-arrow:hover {
  background: rgba(255, 215, 0, 0.2);
  color: var(--color-warm-gold);
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 0 22px rgba(255, 215, 0, 0.4);
}

/* 照片墙响应式 */
@media (max-width: 1200px) {
  .gallery-grid { column-count: 3; }
}
@media (max-width: 900px) {
  .gallery-grid { column-count: 2; }
  .gallery-card { --tilt: 0deg !important; }
}
@media (max-width: 560px) {
  .gallery-grid { column-count: 1; }
  .photo-lightbox { padding: 12px; }
  .photo-lightbox-arrow { width: 40px; height: 40px; }
  .photo-lightbox-arrow.prev { left: 10px; }
  .photo-lightbox-arrow.next { right: 10px; }
  .photo-lightbox-close { top: 12px; right: 12px; }
}

/* ============================================================
   音乐盒（黑胶唱片机 + 歌单）
   ============================================================ */
.music-inner {
  max-width: 1100px;
}
.music-note {
  color: var(--color-warm-gold);
  font-size: 0.85em;
  text-shadow: 0 0 14px rgba(255, 215, 0, 0.6);
}

.music-box {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-top: 48px;
  padding: 36px;
  background: var(--glass-bg);
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: 28px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4), 0 0 40px rgba(255, 215, 0, 0.08);
  overflow: hidden;
}
/* 播放时的氛围光晕流动 */
.music-box::before {
  content: "";
  position: absolute;
  inset: -50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(232, 180, 184, 0.16), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(255, 215, 0, 0.14), transparent 50%),
    radial-gradient(circle at 60% 20%, rgba(130, 130, 255, 0.14), transparent 50%);
  opacity: 0;
  transition: opacity 0.9s ease;
  animation: music-flow 10s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
.music-box.playing::before {
  opacity: 1;
}
@keyframes music-flow {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50%      { transform: translate(4%, -4%) rotate(8deg); }
}

.music-player {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* 黑胶唱片机 */
.turntable {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 0 auto;
}
.vinyl {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #0d0d0d 0%, #1a1a1a 13%),
    repeating-radial-gradient(circle at center, #111 0, #111 2px, #1c1c1c 3px, #151515 4px);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.04), 0 0 50px rgba(255, 215, 0, 0.15), 0 20px 50px rgba(0, 0, 0, 0.5);
  animation: vinyl-spin 8s linear infinite, vinyl-glow 3.5s ease-in-out infinite;
  animation-play-state: paused, paused;
}
.music-box.playing .vinyl {
  animation-play-state: running, running;
}
@keyframes vinyl-spin {
  to { transform: rotate(360deg); }
}
@keyframes vinyl-glow {
  0%, 100% { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.04), 0 0 50px rgba(255, 215, 0, 0.15), 0 20px 50px rgba(0, 0, 0, 0.5); }
  50%      { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.06), 0 0 82px rgba(255, 215, 0, 0.42), 0 20px 50px rgba(0, 0, 0, 0.5); }
}

.vinyl-cover {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 118px;
  height: 118px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}
.vinyl-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.vinyl-cover .cover-hint {
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  padding: 6px;
  letter-spacing: 0.03em;
}
.vinyl-cover .cover-char {
  font-family: var(--font-serif);
  font-size: 2.7rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.85), 0 0 34px rgba(255, 255, 255, 0.45);
  user-select: none;
}
.vinyl-cover.swap {
  animation: cover-swap 0.55s ease;
}
@keyframes cover-swap {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.7); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.tonearm {
  position: absolute;
  top: -8px;
  right: 0;
  width: 120px;
  height: 120px;
  transform-origin: 16px 16px;
  transform: rotate(26deg);
  transition: transform 0.6s ease;
  pointer-events: none;
  z-index: 2;
}
.tonearm svg {
  width: 100%;
  height: 100%;
  display: block;
}
.music-box.playing .tonearm {
  transform: rotate(-10deg);
}

/* 歌曲信息 */
.music-info {
  text-align: center;
  width: 100%;
}
.music-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--color-text);
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.music-title.scroll {
  animation: title-scroll 7s ease-in-out infinite alternate;
}
@keyframes title-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-35%); }
}
.music-artist {
  margin-top: 6px;
  font-size: 1rem;
  letter-spacing: 0.22em;
  color: var(--color-warm-gold);
}
.music-album {
  margin-top: 4px;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}

/* 进度条 */
.music-progress {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
}
.music-time {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  min-width: 36px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.progress-bar {
  position: relative;
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  touch-action: none;
  user-select: none;
}
.progress-buffer {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}
.progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-warm-gold), var(--color-rose-gold));
}
.progress-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-warm-gold);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
  transform: translate(-50%, -50%);
  transition: transform 0.2s, box-shadow 0.2s;
}
.progress-bar:hover .progress-thumb {
  transform: translate(-50%, -50%) scale(1.3);
}
.progress-bar.dragging .progress-thumb {
  transform: translate(-50%, -50%) scale(1.5);
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.9);
}

/* 控制按钮 */
.music-controls {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.mode-btn { margin-right: auto; }
.volume-wrap {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.controls-main {
  display: flex;
  align-items: center;
  gap: 14px;
}
.ctrl-btn {
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  transition: background 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.ctrl-btn svg {
  width: 20px;
  height: 20px;
}
.prev-btn, .next-btn, .mode-btn, .volume-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}
.prev-btn:hover, .next-btn:hover, .mode-btn:hover, .volume-btn:hover {
  background: rgba(255, 215, 0, 0.2);
  color: var(--color-warm-gold);
}
.play-btn {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: none;
  color: #1a0a2e;
  background: linear-gradient(135deg, var(--color-warm-gold), #ffe98a, var(--color-rose-gold));
  animation: btn-breathe 2.6s ease-in-out infinite;
  transition: transform 0.3s var(--ease-out);
}
.play-btn svg {
  width: 28px;
  height: 28px;
}
.play-btn:hover {
  transform: scale(1.08);
}

/* 音量滑块 */
.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 80px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  outline: none;
  cursor: pointer;
}
.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-warm-gold);
  cursor: pointer;
}
.volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: none;
  border-radius: 50%;
  background: var(--color-warm-gold);
  cursor: pointer;
}

/* 动态歌词展示区 */
.lyrics-panel {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.lyrics-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.lyrics-panel-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--color-warm-gold);
}
.lyrics-song {
  margin-left: 6px;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}
.lyrics-toggle {
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.3s, background 0.3s, color 0.3s;
}
.lyrics-toggle svg {
  width: 16px;
  height: 16px;
}
.lyrics-toggle:hover {
  background: rgba(255, 215, 0, 0.2);
  color: var(--color-warm-gold);
}
.lyrics-toggle.expanded {
  transform: rotate(180deg);
}

.lyrics-scroll {
  height: 150px;
  overflow-y: auto;
  padding: 0 6px 0 0;
  scroll-behavior: smooth;
}
.lyrics-scroll::-webkit-scrollbar {
  width: 0;
}
.lyrics-scroll:hover::-webkit-scrollbar {
  width: 5px;
}
.lyrics-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}
.lyrics-scroll::-webkit-scrollbar-thumb {
  background: var(--color-warm-gold);
  border-radius: 999px;
}

.lyrics-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.lyric-line {
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.9;
  padding: 5px 0;
  cursor: pointer;
  opacity: 0.75;
  transition: color 0.35s, transform 0.35s, opacity 0.35s, text-shadow 0.35s;
}
.lyric-line:hover {
  color: var(--color-text);
}
.lyric-line.active {
  color: var(--color-warm-gold);
  font-size: 1.05rem;
  font-weight: 600;
  opacity: 1;
  text-shadow: 0 0 14px rgba(255, 215, 0, 0.5);
}
.lyric-line.empty {
  cursor: default;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  opacity: 0.85;
  padding-top: 40px;
}
.lyric-line.loading {
  cursor: default;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  opacity: 0.85;
  padding-top: 40px;
}

/* 展开歌词 */
.lyrics-panel.expanded .lyrics-scroll {
  height: 320px;
}

/* 歌单 */
.music-list {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.music-list-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}
.music-list-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  color: var(--color-warm-gold);
}
.music-count {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

.song-list {
  list-style: none;
  margin: 0;
  padding: 0 6px 0 0;
  overflow-y: auto;
  max-height: 480px;
}
.song-list::-webkit-scrollbar {
  width: 5px;
}
.song-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}
.song-list::-webkit-scrollbar-thumb {
  background: var(--color-warm-gold);
  border-radius: 999px;
}

.song-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}
.song-item:hover {
  background: rgba(255, 255, 255, 0.06);
}
.song-item.active {
  background: rgba(255, 215, 0, 0.08);
  border-left-color: var(--color-warm-gold);
}
.song-index {
  width: 28px;
  flex-shrink: 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-faint);
  font-variant-numeric: tabular-nums;
}
.song-item.active .song-index {
  color: var(--color-warm-gold);
}
.song-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.song-name {
  font-size: 0.95rem;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.song-item.active .song-name {
  color: var(--color-warm-gold);
}
.song-album {
  font-size: 0.76rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}
.song-duration {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.song-item.failed {
  opacity: 0.45;
}
.song-item.failed .song-duration {
  color: #ff8a8a;
}

/* 当前播放的跳动音频柱 */
.eq-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}
.eq-bars i {
  width: 3px;
  height: 100%;
  background: var(--color-warm-gold);
  border-radius: 2px;
  animation: eq-bounce 0.8s ease-in-out infinite;
}
.eq-bars i:nth-child(2) { animation-delay: 0.15s; }
.eq-bars i:nth-child(3) { animation-delay: 0.3s; }
@keyframes eq-bounce {
  0%, 100% { height: 30%; }
  50%      { height: 100%; }
}

/* 提示 toast */
.music-toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 12px 22px;
  border-radius: 999px;
  background: rgba(26, 10, 46, 0.92);
  border: 1px solid rgba(255, 215, 0, 0.4);
  color: var(--color-warm-gold);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 300;
}
.music-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* 音乐盒响应式 */
@media (max-width: 900px) {
  .music-box {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  .turntable {
    width: 220px;
    height: 220px;
  }
  .song-list {
    max-height: 320px;
  }
  .lyrics-scroll {
    height: 120px;
  }
  .lyrics-panel.expanded .lyrics-scroll {
    height: 260px;
  }
}

/* ============================================================
   开场加载页面（Splash Screen）
   ============================================================ */
.splash {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(120% 90% at 15% 0%, rgba(232, 180, 184, 0.12) 0%, transparent 45%),
    radial-gradient(120% 100% at 85% 10%, rgba(255, 215, 0, 0.08) 0%, transparent 42%),
    linear-gradient(160deg, #1a0a2e 0%, #24104a 35%, #16213e 100%);
  transition: transform 0.7s var(--ease-out), opacity 0.7s var(--ease-out), visibility 0.7s;
}
.splash.hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-100%);
  pointer-events: none;
}
.splash-stars { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.splash-star {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  animation: splashStarFloat var(--dur, 3s) ease-in-out infinite;
}
@keyframes splashStarFloat {
  0%, 100% { transform: translateY(0); opacity: 0.25; }
  50% { transform: translateY(-14px); opacity: 0.9; }
}
.splash-center { position: relative; z-index: 1; text-align: center; padding: 0 24px; }
.splash-heart {
  font-size: 2.4rem;
  color: var(--color-warm-gold);
  animation: splashHeart 1.1s ease-in-out infinite;
  text-shadow: 0 0 18px rgba(255, 215, 0, 0.6);
}
@keyframes splashHeart {
  0%, 100% { transform: scale(1) translateY(0); }
  30% { transform: scale(1.28) translateY(-4px); }
  50% { transform: scale(1) translateY(0); }
}
.splash-text {
  margin-top: 18px;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
}
.splash-progress {
  width: min(280px, 70vw);
  height: 4px;
  margin: 26px auto 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.splash-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-warm-gold), var(--color-rose-gold));
  box-shadow: 0 0 14px rgba(255, 215, 0, 0.7);
  transition: width 0.22s ease;
}
.splash-percent {
  margin-top: 12px;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--color-warm-gold);
  opacity: 0.85;
}

/* ============================================================
   全局鼠标跟随光晕
   ============================================================ */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 40;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 215, 0, 0.35) 0%, rgba(255, 215, 0, 0.12) 40%, transparent 70%);
  opacity: 0;
  transition: width 0.4s var(--ease-out), height 0.4s var(--ease-out), background 0.4s ease, opacity 0.35s ease;
  will-change: left, top;
}
.cursor-glow.is-visible { opacity: 1; }
.cursor-glow.is-hover {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(232, 180, 184, 0.5) 0%, rgba(255, 215, 0, 0.28) 40%, transparent 72%);
}

/* ============================================================
   顶部滚动进度条
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 400;
  background: linear-gradient(90deg, var(--color-warm-gold), var(--color-rose-gold));
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
  pointer-events: none;
}

/* ============================================================
   背景音乐浮动开关
   ============================================================ */
.music-fab {
  position: fixed;
  right: 24px;
  bottom: 84px;
  z-index: 185;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg-strong);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--color-warm-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.music-fab-icon { width: 22px; height: 22px; }
.music-fab.playing {
  animation: musicFabSpin 4s linear infinite;
  box-shadow: 0 0 22px rgba(255, 215, 0, 0.45);
}
@keyframes musicFabSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.music-fab:hover { background: rgba(255, 215, 0, 0.16); }
.music-fab-tooltip {
  position: absolute;
  right: 58px;
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  padding: 7px 12px;
  border-radius: 8px;
  background: rgba(20, 10, 35, 0.92);
  border: 1px solid var(--glass-border);
  color: var(--color-text);
  font-size: 0.78rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
}
.music-fab:hover .music-fab-tooltip,
.music-fab.tooltip-visible .music-fab-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* ============================================================
   500天隐藏彩蛋
   ============================================================ */
.easter-egg {
  position: fixed;
  inset: 0;
  z-index: 450;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 5, 24, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s;
}
.easter-egg.open { opacity: 1; visibility: visible; }
.easter-egg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.easter-egg-text { position: relative; z-index: 1; text-align: center; padding: 0 24px; }
.easter-egg-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 9vw, 5rem);
  background: linear-gradient(120deg, var(--color-warm-gold), #fff, var(--color-rose-gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 24px rgba(255, 215, 0, 0.45));
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.6s var(--ease-out), transform 0.7s var(--ease-out);
}
.easter-egg.open .easter-egg-title { opacity: 1; transform: scale(1); }
.easter-egg-sub {
  margin-top: 22px;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 3.5vw, 1.5rem);
  letter-spacing: 0.06em;
  color: var(--color-rose-gold);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease 0.25s, transform 0.7s var(--ease-out) 0.25s;
}
.easter-egg.open .easter-egg-sub { opacity: 1; transform: translateY(0); }
/* 彩蛋触发前 4 次点击的缩放反馈 */
.easter-pop { animation: easterPop 0.32s var(--ease-out); }
@keyframes easterPop {
  0% { transform: scale(1); }
  45% { transform: scale(0.92); }
  100% { transform: scale(1); }
}

/* ============================================================
   板块进入视口动画（统一淡入 + 上移）
   ============================================================ */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .cursor-glow { display: none !important; }
  .music-fab.playing { animation: none !important; }
  .splash-star, .splash-heart { animation: none !important; }
  .reveal-on-scroll { opacity: 1 !important; transform: none !important; }
}
