:root {
  /* 电光紫 · 霓虹粉蓝（bilibili 周年庆风） */
  --bg-deep: #1a1140;
  --bg-mid: #3a1e78;
  --bg-hi: #6a3bd6;
  --neon-pink: #ff5fb0;
  --neon-pink-2: #ff9ad4;
  --neon-blue: #22d3ff;
  --neon-blue-2: #7ee8ff;
  --neon-purple: #b57bff;
  --gold: #ffd76a;
  --ink: #fdf4ff;          /* 主文字：近白 */
  --ink-soft: #d6c8ff;     /* 次要文字：淡紫白 */
  --glass: rgba(255, 255, 255, 0.09);
  --glass-brd: rgba(255, 255, 255, 0.28);
  --shadow: 0 20px 55px -18px rgba(120, 40, 200, 0.6);
  --glow-pink: 0 0 18px rgba(255, 95, 176, 0.7), 0 0 40px rgba(255, 95, 176, 0.35);
  --glow-blue: 0 0 18px rgba(34, 211, 255, 0.7), 0 0 40px rgba(34, 211, 255, 0.35);
  --sans: "Noto Sans SC", system-ui, sans-serif;
  --hand: "ZCOOL KuaiLe", "Noto Sans SC", cursive;
}

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

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

body {
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(ellipse 90% 60% at 20% 8%, rgba(255, 95, 176, 0.28), transparent 55%),
    radial-gradient(ellipse 80% 60% at 85% 25%, rgba(34, 211, 255, 0.24), transparent 55%),
    radial-gradient(ellipse 100% 80% at 50% 100%, rgba(181, 123, 255, 0.3), transparent 60%),
    linear-gradient(165deg, #1a1140 0%, #2d1866 45%, #4a2499 100%);
  background-attachment: fixed;
  line-height: 1.9;
  overflow: hidden;               /* 翻页模式:禁用整页滚动 */
  -webkit-font-smoothing: antialiased;
}

/* ---------- 翻页容器 ---------- */
#deck {
  position: fixed; inset: 0;
  transition: transform .9s cubic-bezier(.7, 0, .2, 1);
  will-change: transform;
  z-index: 2;
}
#deck > .section {
  height: 100svh;
  overflow-y: auto;               /* 单屏内容超高时可内部滚动 */
  -webkit-overflow-scrolling: touch;
}

/* 翻页指示点 */
.dots {
  position: fixed; right: 18px; top: 50%; transform: translateY(-50%);
  z-index: 45; display: flex; flex-direction: column; gap: 12px;
}
.dots button {
  width: 10px; height: 10px; padding: 0; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.6); background: transparent;
  cursor: pointer; transition: all .3s;
}
.dots button.active {
  background: var(--neon-pink);
  border-color: var(--neon-pink);
  box-shadow: 0 0 10px var(--neon-pink);
  transform: scale(1.25);
}
@media (max-width: 480px) { .dots { right: 10px; gap: 9px; } }

/* ---------- 0. 入场礼盒 ---------- */
.intro {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse 70% 50% at 50% 35%, rgba(255, 95, 176, 0.35), transparent 60%),
    radial-gradient(ellipse 90% 70% at 50% 100%, rgba(34, 211, 255, 0.3), transparent 60%),
    linear-gradient(165deg, #1a1140 0%, #3a1e78 50%, #5a2fb8 100%);
  transition: opacity .8s ease, visibility .8s ease;
  overflow: hidden;
}
.intro::before {
  /* 霓虹光圈 */
  content: ""; position: absolute; width: 130vw; height: 130vw;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: repeating-radial-gradient(circle, transparent 0 44px, rgba(126, 232, 255, 0.06) 44px 46px);
  pointer-events: none;
}
.intro.gone { opacity: 0; visibility: hidden; pointer-events: none; }

.intro__stage {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  transform: translateY(4vh);
}

.giftbox {
  position: relative;
  width: 150px; height: 130px;
  cursor: pointer;
  transform-origin: bottom center;
  animation: drop 3s cubic-bezier(.3, 0, .5, 1) forwards;
  filter: drop-shadow(0 0 22px rgba(255, 95, 176, 0.55));
}
.giftbox.settled { animation: breathe 2.4s ease-in-out infinite; }

.giftbox__base {
  position: absolute; bottom: 0; left: 0;
  width: 150px; height: 92px; border-radius: 8px;
  background: linear-gradient(145deg, #ff7ac2, #b14bff 70%);
  box-shadow: 0 16px 34px -8px rgba(180, 60, 255, .6), inset 0 -8px 16px rgba(90, 20, 160, .4);
}
.giftbox__lid {
  position: absolute; top: 24px; left: -8px;
  width: 166px; height: 42px; border-radius: 9px;
  background: linear-gradient(145deg, #ff9ad4, #c65bff);
  box-shadow: 0 6px 16px rgba(120, 40, 200, .5);
  z-index: 3;
  transform-origin: left center;
  transition: transform .6s cubic-bezier(.6,-0.2,.4,1.4), top .6s ease, opacity .6s ease;
}
.giftbox__ribbon-v {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 24px; height: 100%;
  background: linear-gradient(#7ee8ff, #22d3ff);
  box-shadow: 0 0 12px rgba(34, 211, 255, .6);
}
.giftbox__bow {
  position: absolute; top: -20px; left: 50%; transform: translateX(-50%);
  width: 70px; height: 30px;
}
.bow-loop {
  position: absolute; top: 0; width: 30px; height: 30px;
  background: linear-gradient(145deg, #7ee8ff, #22d3ff);
  border-radius: 60% 60% 40% 40%;
  box-shadow: 0 0 10px rgba(34, 211, 255, .5);
}
.bow-loop--l { left: -2px; transform: rotate(-28deg); }
.bow-loop--r { right: -2px; transform: rotate(28deg); }
.bow-knot {
  position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 18px; height: 18px; border-radius: 50%;
  background: #7ee8ff; z-index: 2;
}

@keyframes drop {
  0%   { transform: translateY(-115vh) scaleY(.94); }
  30%  { transform: translateY(0) scaleY(1); }
  36%  { transform: translateY(0) scaleY(.7) scaleX(1.22); }
  50%  { transform: translateY(-26vh) scaleY(1.12) scaleX(.9); }
  60%  { transform: translateY(0) scaleY(.78) scaleX(1.16); }
  70%  { transform: translateY(-13vh) scaleY(1.08) scaleX(.94); }
  78%  { transform: translateY(0) scaleY(.85) scaleX(1.1); }
  86%  { transform: translateY(-5vh) scaleY(1.04) scaleX(.97); }
  92%  { transform: translateY(0) scaleY(.93) scaleX(1.05); }
  96%  { transform: translateY(-1.5vh) scaleY(1.01); }
  100% { transform: translateY(0) scale(1); }
}
@keyframes breathe {
  0%,100% { transform: translateY(0) scale(1); }
  50%     { transform: translateY(-5px) scale(1.02); }
}

.giftbox.opening { animation: none; }
.giftbox.opening .giftbox__lid { transform: translateY(-70px) rotate(-14deg); opacity: 0; }
.giftbox.opening .giftbox__base { animation: box-pop .5s ease forwards; }
@keyframes box-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.08); }
  100% { transform: scale(1.35); opacity: 0; }
}

.intro__hint {
  margin-top: 1.6em;
  font-family: var(--hand);
  font-size: clamp(1.5rem, 7vw, 2.2rem);
  color: #fff;
  text-shadow: var(--glow-pink);
  opacity: 0; animation: fadeUp .8s ease 2.9s forwards;
}
.intro__tap {
  margin-top: .9em;
  font-size: .95rem; letter-spacing: .25em;
  color: var(--neon-blue-2);
  text-shadow: var(--glow-blue);
  opacity: 0; animation: fadeUp .8s ease 3.3s forwards, pulse 1.8s ease-in-out 4.1s infinite;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- 粒子 & 进度 ---------- */
#petals {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 1;
}
#progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--neon-pink), var(--neon-purple), var(--neon-blue));
  box-shadow: 0 0 10px rgba(255, 95, 176, .8);
  z-index: 50; transition: width .15s ease-out;
}

/* ---------- 通用 section ---------- */
.section {
  position: relative; z-index: 2;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 12vh 7vw;
  text-align: center;
}
.section__title {
  font-family: var(--hand);
  font-size: clamp(2.2rem, 8vw, 3.8rem);
  color: #fff;
  margin-bottom: 1.4em;
  letter-spacing: .04em;
  text-shadow: 0 0 16px rgba(255, 95, 176, .75), 0 0 34px rgba(181, 123, 255, .5);
}

/* ---------- 出现动画 ---------- */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 1.1s ease, transform 1.1s ease;
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

/* 打字机效果 */
.tw {
  font-size: clamp(1.08rem, 4.6vw, 1.3rem);
  color: var(--ink);
  font-weight: 300;
  margin-bottom: 1.5em;
  min-height: 1.9em;          /* 占位,避免打字时页面跳动 */
  visibility: hidden;         /* 未开始打字时隐藏 */
}
.tw.typing, .tw.done { visibility: visible; }
.tw .tw-caret {
  display: inline-block;
  width: 2px; height: 1.05em;
  background: var(--neon-pink);
  box-shadow: 0 0 8px var(--neon-pink);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: caret-blink .7s step-end infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }

/* ---------- 1. Hero ---------- */
.hero { min-height: 100svh; overflow: hidden; }
.hero__inner { max-width: 760px; position: relative; z-index: 3; }

/* 顶部彩旗串 */
.bunting {
  position: absolute; top: 0; left: -2%; right: -2%;
  height: 46px; display: flex; justify-content: space-between;
  z-index: 2; padding: 0 2%;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,.25));
}
.bunting span {
  width: 0; height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 26px solid var(--neon-pink);
  transform-origin: top center;
  animation: flag-sway 3s ease-in-out infinite;
}
.bunting span:nth-child(3n+1) { border-top-color: var(--neon-pink); }
.bunting span:nth-child(3n+2) { border-top-color: var(--neon-blue); }
.bunting span:nth-child(3n+3) { border-top-color: var(--neon-purple); }
.bunting span:nth-child(even) { animation-delay: .4s; }
.bunting::before {
  content: ""; position: absolute; top: 2px; left: 2%; right: 2%; height: 2px;
  background: rgba(255,255,255,.4);
}
@keyframes flag-sway {
  0%,100% { transform: rotate(-3deg); }
  50%     { transform: rotate(3deg); }
}

/* 漂浮气球 */
.balloons { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.balloon {
  position: absolute; bottom: -140px; left: var(--x);
  width: 46px; height: 58px; border-radius: 50% 50% 48% 48%;
  animation: float-up var(--dur, 8s) ease-in var(--delay, 0s) infinite;
  opacity: .85;
}
.balloon::before { /* 高光 */
  content: ""; position: absolute; top: 10px; left: 12px;
  width: 12px; height: 16px; border-radius: 50%;
  background: rgba(255,255,255,.5);
}
.balloon::after { /* 气球线 */
  content: ""; position: absolute; top: 100%; left: 50%;
  width: 1px; height: 40px; background: rgba(255,255,255,.35);
}
.balloon--pink { background: radial-gradient(circle at 35% 30%, #ff9ad4, #ff5fb0); box-shadow: 0 0 18px rgba(255,95,176,.5); }
.balloon--blue { background: radial-gradient(circle at 35% 30%, #7ee8ff, #22d3ff); box-shadow: 0 0 18px rgba(34,211,255,.5); }
.balloon--purple { background: radial-gradient(circle at 35% 30%, #c9a3ff, #b57bff); box-shadow: 0 0 18px rgba(181,123,255,.5); }
@keyframes float-up {
  0%   { transform: translateY(0) rotate(-4deg); opacity: 0; }
  12%  { opacity: .85; }
  88%  { opacity: .85; }
  100% { transform: translateY(-118vh) rotate(4deg); opacity: 0; }
}

/* 漂浮 emoji */
.floaties { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.floatie {
  position: absolute; bottom: -60px; left: var(--x);
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  animation: drift-up 9s ease-in var(--delay, 0s) infinite;
  opacity: 0;
}
@keyframes drift-up {
  0%   { transform: translateY(0) rotate(-8deg); opacity: 0; }
  15%  { opacity: .9; }
  85%  { opacity: .9; }
  100% { transform: translateY(-115vh) rotate(8deg); opacity: 0; }
}
.hero__hbd {
  font-family: var(--sans); font-weight: 900;
  font-size: clamp(1rem, 4.6vw, 1.7rem);
  letter-spacing: .22em;
  color: #fff;
  margin-bottom: 1em;
  text-shadow:
    0 0 8px #fff,
    0 0 18px var(--neon-pink),
    0 0 34px var(--neon-pink),
    0 0 54px var(--neon-purple);
  animation: hbd-flicker 4s ease-in-out infinite;
}
@keyframes hbd-flicker {
  0%,100% { opacity: 1; }
  48% { opacity: 1; }
  50% { opacity: .72; }
  52% { opacity: 1; }
  70% { opacity: .9; }
}
.hero__eyebrow {
  font-size: clamp(.82rem, 3.4vw, 1rem);
  letter-spacing: .1em;
  color: var(--ink-soft);
  margin-bottom: 2em;
  display: flex; flex-wrap: wrap; gap: 10px 14px;
  align-items: center; justify-content: center;
}
.date-badge {
  display: inline-block;
  padding: .32em 1em; border-radius: 40px;
  background: linear-gradient(135deg, rgba(255,95,176,.25), rgba(34,211,255,.25));
  border: 1px solid var(--glass-brd);
  color: #fff; letter-spacing: .12em;
  box-shadow: 0 0 14px rgba(255,95,176,.4);
}
.date-lunar { color: var(--neon-blue-2); text-shadow: var(--glow-blue); letter-spacing: .12em; }
.hero__title {
  font-family: var(--hand);
  font-size: clamp(3.2rem, 16vw, 6.4rem);
  line-height: 1.18;
  color: #fff;
  text-shadow:
    0 0 18px rgba(255, 95, 176, .85),
    0 0 44px rgba(181, 123, 255, .6),
    0 0 70px rgba(34, 211, 255, .35);
}
.hero__title span { display: inline-block; }

/* 霓虹灯牌闪烁(仅在 reveal 淡入完成后启动,不干扰 opacity) */
.hero__title--neon span.in {
  color: #fff;
  animation: neon-sign 3.6s 1.2s infinite;
}
.hero__title--neon span:nth-child(2).in { animation-delay: 1.9s; }
@keyframes neon-sign {
  0%, 100% {
    text-shadow: 0 0 6px #fff, 0 0 14px var(--neon-pink), 0 0 28px var(--neon-pink), 0 0 48px var(--neon-purple), 0 0 78px var(--neon-purple);
    filter: brightness(1);
  }
  42% { text-shadow: 0 0 6px #fff, 0 0 14px var(--neon-pink), 0 0 28px var(--neon-pink), 0 0 48px var(--neon-purple); filter: brightness(1); }
  43% { text-shadow: none; filter: brightness(.55); }
  44% { text-shadow: 0 0 6px #fff, 0 0 14px var(--neon-pink), 0 0 28px var(--neon-pink); filter: brightness(1); }
  45% { text-shadow: none; filter: brightness(.6); }
  46% { text-shadow: 0 0 6px #fff, 0 0 16px var(--neon-pink), 0 0 30px var(--neon-purple), 0 0 52px var(--neon-purple); filter: brightness(1); }
  70% { text-shadow: 0 0 6px #fff, 0 0 16px var(--neon-blue), 0 0 30px var(--neon-blue), 0 0 52px var(--neon-purple); filter: brightness(1); }
  71% { text-shadow: none; filter: brightness(.5); }
  72% { text-shadow: 0 0 6px #fff, 0 0 16px var(--neon-blue), 0 0 30px var(--neon-blue), 0 0 52px var(--neon-purple); filter: brightness(1); }
}
.hero__sub {
  margin-top: 1.4em;
  font-size: clamp(.82rem, 4vw, 1.35rem);
  color: var(--ink-soft);
  font-weight: 400;
  white-space: nowrap;   /* 不折行 */
  max-width: 100%;
}
.hero__scroll {
  margin-top: 4em;
  font-size: .8rem; letter-spacing: .3em;
  color: var(--ink-soft);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.hero__arrow {
  width: 20px; height: 20px;
  border-right: 2px solid var(--neon-blue);
  border-bottom: 2px solid var(--neon-blue);
  transform: rotate(45deg);
  animation: bob 1.8s ease-in-out infinite;
  filter: drop-shadow(0 0 6px rgba(34, 211, 255, .8));
}
@keyframes bob {
  0%,100% { transform: rotate(45deg) translate(0,0); opacity:.4; }
  50% { transform: rotate(45deg) translate(4px,4px); opacity:1; }
}

/* ---------- 2. 时光线 ---------- */
.story { justify-content: flex-start; padding-top: 6vh; padding-bottom: 5vh; }
.story .section__title { margin-bottom: .7em; }
.timeline {
  position: relative;
  max-width: 640px; width: 100%;
  margin: 0 auto;
  padding-left: 30px;
}
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--neon-pink), var(--neon-purple), var(--neon-blue), transparent);
  box-shadow: 0 0 10px rgba(181, 123, 255, .6);
}
.tl-item {
  position: relative; margin-bottom: 1.6em; text-align: left;
}
.tl-item::before {
  content: ""; position: absolute; left: -30px; top: 6px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--neon-pink);
  box-shadow: 0 0 0 5px rgba(255, 95, 176, .2), 0 0 14px rgba(255, 95, 176, .9);
}
.tl-year {
  font-family: var(--hand);
  font-size: 1.4rem; color: #fff; margin-bottom: .2em;
  text-shadow: var(--glow-blue);
}
.tl-card {
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-brd);
  border-radius: 14px;
  padding: .85em 1.1em; box-shadow: var(--shadow);
}
.tl-card h3 {
  font-family: var(--hand); font-weight: 400;
  font-size: 1.2rem; margin-bottom: .25em; color: var(--neon-pink-2);
  text-shadow: 0 0 12px rgba(255, 95, 176, .5);
}
.tl-card p { font-size: .95rem; line-height: 1.55; color: var(--ink); font-weight: 300; }

.tl-photos {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px; margin-top: 1em;
}
.tl-photos img {
  width: 100%; border-radius: 14px; box-shadow: var(--shadow);
  transform: rotate(-1.5deg);
  background: linear-gradient(145deg, #fff, #f0e6ff);
  padding: 6px 6px 26px;
  border: 1px solid var(--glass-brd);
}
.tl-photos img:nth-child(even){ transform: rotate(1.5deg); }

/* ---------- 3 & 4. 文字段落 ---------- */
.prose { max-width: 640px; }
.prose p {
  font-size: clamp(1.08rem, 4.6vw, 1.3rem);
  color: var(--ink);
  font-weight: 300;
  margin-bottom: 1.5em;
}
.prose p b, .prose p strong { color: var(--neon-pink-2); font-weight: 500; }

.promise {
  margin-top: 2.4em;
  background: var(--glass);
  backdrop-filter: blur(10px);
  border-radius: 20px; padding: 1.8em;
  box-shadow: var(--shadow);
  border: 1px solid var(--neon-blue);
  text-align: left;
}
.promise__label {
  display: inline-block;
  font-family: var(--hand); color: #fff;
  font-size: 1.5rem; margin-bottom: .5em;
  text-shadow: var(--glow-blue);
}
.promise p { font-size: 1.08rem; margin-bottom: .6em; color: var(--ink); }
.promise__wink { color: var(--neon-pink-2); }

/* ---------- 5. 承诺页 + 心形照片墙 ---------- */
.promise-page { justify-content: flex-start; padding-top: 5vh; padding-bottom: 4vh; gap: 2vh; }
.promise-page .section__title { margin-bottom: .6em; }
.promise-page .promise { max-width: 560px; margin: 0 auto; padding: 1.2em 1.4em; }
.promise-page .promise p { margin-bottom: .4em; }
.heart-tip {
  margin: 1em 0 .6em;
  color: var(--neon-blue-2); font-size: .95rem; letter-spacing: .08em;
  text-shadow: var(--glow-blue);
}
/* 照片墙:爱心相框墙 —— 照片按爱心轮廓排布,保留白边相框,无挂绳 */
.photo-wall {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 0 3vw;
  margin-top: 4vh;                    /* 整体下移一点 */
  --pw-w: clamp(30px, 7.5vw, 44px);   /* 相框宽度(缩小) */
}
/* 照片区:每列宽=相框宽,网格整体在容器内居中 → 心形不再偏移 */
.pw-board {
  display: grid;
  grid-template-columns: repeat(var(--pw-cols, 9), var(--pw-w));
  justify-content: center;
  justify-items: center;
  align-items: center;
  gap: 2px;
}
/* 空格子占位,保持爱心轮廓对齐 */
.pw-hole { width: var(--pw-w); aspect-ratio: 1 / 1; }
/* 白边相框照片 */
.pw-photo {
  position: relative; z-index: 1;
  width: var(--pw-w);
  background: #fff;
  padding: 3px;
  border-radius: 3px;
  box-shadow: 0 2px 7px rgba(0,0,0,.4);
  cursor: pointer;
  opacity: 0;
  animation: pw-hang .5s ease forwards;
  transition: transform .25s, box-shadow .25s, z-index 0s;
  transform-origin: center;
}
.pw-photo img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block;
  border-radius: 2px;
}
.pw-photo:hover {
  z-index: 20 !important;
  transform: rotate(0deg) scale(1.18) !important;
  box-shadow: 0 8px 22px rgba(255,95,176,.6);
}
/* 走马灯:循环点亮的照片 */
.pw-photo.lit {
  z-index: 15;
  transform: scale(1.42) !important;
  box-shadow: 0 0 22px 5px rgba(255,95,176,1), 0 0 44px rgba(181,123,255,.85);
}
@keyframes pw-hang {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}
@media (max-width: 480px) {
  .photo-wall { padding: 0 1vw; }
}
/* 无照片时的占位提示 */
.photo-wall__empty {
  display: flex; align-items: center; justify-content: center;
  min-height: 120px;
  color: var(--ink-soft); font-size: .9rem; text-align: center; padding: 1em;
  border: 1px dashed var(--glass-brd); border-radius: 16px;
}

/* 照片放大灯箱 */
.lightbox {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(10, 6, 30, .92);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 6vw;
  animation: lb-in .3s ease;
}
.lightbox[hidden] { display: none; }   /* 修复:hidden 时强制隐藏,避免遮罩常驻 */
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox img {
  max-width: 92vw; max-height: 86vh;
  border-radius: 14px;
  box-shadow: 0 0 40px rgba(255,95,176,.5);
  border: 2px solid rgba(255,255,255,.5);
}
.lightbox__close {
  position: absolute; top: 20px; right: 24px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.15); border: 1px solid var(--glass-brd);
  color: #fff; font-size: 1.2rem; cursor: pointer;
}
.lightbox__close:hover { background: var(--neon-pink); }

/* ---------- 6. 抽奖 ---------- */
.draw__inner { max-width: 640px; width: 100%; }
.draw__hint { color: var(--ink-soft); margin-bottom: 2.5em; font-weight: 300; }

.envelope {
  position: relative; width: min(320px, 82vw); height: min(210px, 54vw);
  margin: 0 auto; cursor: pointer;
  transition: transform .4s ease;
  filter: drop-shadow(0 0 24px rgba(255, 95, 176, .5));
}
.envelope:hover { transform: translateY(-4px) scale(1.02); }
.env-body {
  position: absolute; inset: 0; border-radius: 14px;
  background: linear-gradient(135deg, #ff7ac2, #b14bff);
  box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
}
.env-seal {
  font-family: var(--hand);
  position: relative; z-index: 4;   /* 压在顶部三角封盖之上,居中不被挡 */
  width: 60px; height: 60px; border-radius: 50%;
  background: #fff; color: var(--neon-pink);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; box-shadow: 0 4px 16px rgba(120,40,200,.4);
}
.env-flap {
  position: absolute; top: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(135deg, #ff9ad4, #c65bff);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top; transition: transform .7s ease;
  z-index: 3; border-radius: 14px 14px 0 0;
}
.env-hint {
  position: absolute; bottom: -2.4em; left: 0; right: 0;
  font-size: .88rem; color: var(--neon-blue-2); letter-spacing: .1em;
  text-shadow: var(--glow-blue);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:.5} 50%{opacity:1} }
.envelope.open .env-flap { transform: rotateX(180deg); }
.envelope.open .env-hint { opacity: 0; }
.envelope.open { pointer-events: none; }

/* 抽奖进度条 */
.draw-progress {
  margin: 2.4em auto 0; width: min(360px, 84vw);
}
.draw-progress__label {
  color: var(--neon-blue-2); font-size: 1rem; letter-spacing: .06em;
  text-shadow: var(--glow-blue); margin-bottom: .9em;
}
.draw-progress__bar {
  width: 100%; height: 14px; border-radius: 20px;
  background: rgba(255,255,255,.12);
  border: 1px solid var(--glass-brd);
  overflow: hidden;
}
.draw-progress__bar span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--neon-pink), var(--neon-purple), var(--neon-blue));
  box-shadow: 0 0 12px rgba(255,95,176,.8);
  border-radius: 20px;
  transition: width .2s ease;
}
.draw-progress__pct {
  margin-top: .6em; font-size: 1.4rem; font-weight: 700; color: #fff;
  font-family: var(--hand);
  text-shadow: var(--glow-pink);
}
/* 九宫格抽奖 */
.grid9 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: min(340px, 86vw);
  margin: 0 auto 1.6em;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--neon-purple);
  box-shadow: 0 0 22px rgba(181,123,255,.4), inset 0 0 18px rgba(181,123,255,.2);
}
.g9-cell {
  aspect-ratio: 1/1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  border-radius: 12px;
  background: rgba(30,16,60,.7);
  border: 1px solid rgba(255,255,255,.14);
  transition: transform .12s, box-shadow .12s, background .12s;
}
.g9-ico { font-size: clamp(1.6rem, 7vw, 2.2rem); line-height: 1; }
.g9-name { font-size: .72rem; color: var(--ink-soft); letter-spacing: .04em; }
/* 中间格 */
.g9-center {
  background: linear-gradient(135deg, #ff5fb0, #b57bff);
  border: none;
}
.g9-center__txt {
  font-family: var(--hand); font-size: 1.15rem; color: #fff; line-height: 1.1;
  text-align: center; text-shadow: 0 0 10px rgba(255,255,255,.5);
}
/* 高亮块(跑马灯) */
.g9-cell.lit {
  background: linear-gradient(135deg, #fff2, #b57bff55);
  border-color: var(--neon-pink);
  box-shadow: 0 0 18px rgba(255,95,176,.9), inset 0 0 12px rgba(255,95,176,.5);
  transform: scale(1.06);
}
.g9-cell.lit .g9-name { color: #fff; }
/* 中奖格定格闪耀 */
.g9-cell.win {
  animation: g9-win .6s ease-in-out infinite alternate;
}
@keyframes g9-win {
  0%   { box-shadow: 0 0 18px rgba(255,215,106,.8), inset 0 0 12px rgba(255,215,106,.5); }
  100% { box-shadow: 0 0 34px rgba(255,215,106,1), inset 0 0 20px rgba(255,215,106,.8); transform: scale(1.12); }
}

/* ===== 中奖弹窗「恭喜获得」 ===== */
body.modal-open { overflow: hidden; }
.prize-modal[hidden] { display: none !important; }
.prize-modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 6vw;
  background: radial-gradient(circle at 50% 42%, rgba(60,30,110,.85), rgba(8,4,24,.96));
  backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .35s ease;
}
.prize-modal.show { opacity: 1; }
.prize-modal__close {
  position: absolute; top: 18px; right: 18px; z-index: 3;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.4);
  color: #fff; font-size: 1.3rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s;
}
.prize-modal__close:hover { background: var(--neon-pink); transform: scale(1.08); }
/* 背后旋转光芒 */
.prize-modal__rays {
  position: absolute; top: 42%; left: 50%;
  width: 150vmax; height: 150vmax; transform: translate(-50%,-50%);
  background: repeating-conic-gradient(from 0deg,
    rgba(255,215,120,.16) 0deg 8deg, transparent 8deg 16deg);
  animation: rays-spin 18s linear infinite;
  pointer-events: none;
}
@keyframes rays-spin { to { transform: translate(-50%,-50%) rotate(360deg); } }
.prize-modal__inner {
  position: relative; z-index: 1;
  max-width: 420px; width: 100%;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.prize-modal.show .prize-modal__inner {
  animation: prize-pop .5s cubic-bezier(.34,1.56,.5,1) both;
}
@keyframes prize-pop {
  0% { opacity: 0; transform: scale(.7) translateY(20px); }
  100% { opacity: 1; transform: none; }
}
.prize-modal__congrats {
  font-family: var(--hand);
  font-size: clamp(1.8rem, 8vw, 2.6rem); font-weight: 700;
  color: #ffe07a; letter-spacing: .06em; margin-bottom: .5em;
  text-shadow: 0 0 18px rgba(255,215,106,.9), 0 0 40px rgba(255,150,60,.5);
}
/* 奖品卡片(门票)——从天砸下 */
.prize-card {
  position: relative;
  width: min(280px, 70vw);
  padding: 10px; border-radius: 16px;
  background: linear-gradient(160deg, #ff7ac2, #b14bff);
  box-shadow: 0 12px 40px rgba(255,95,176,.5), 0 0 0 3px rgba(255,255,255,.25) inset;
}
.prize-card img {
  width: 100%; display: block; border-radius: 10px;
  max-height: 46vh; object-fit: contain;
  background: #fff;
}
.prize-modal.show .prize-card {
  animation: slam-drop .6s cubic-bezier(.5, 0, .75, 1) both;
}
@keyframes slam-drop {
  0%   { opacity: 0; transform: translateY(-80vh) scale(1.15); }
  70%  { opacity: 1; transform: translateY(0) scale(1); }
  80%  { transform: translateY(0) scaleY(.9) scaleX(1.05); }
  90%  { transform: translateY(0) scaleY(1.02) scaleX(.99); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.prize-card.slam-shake { animation: slam-shake .4s ease; }
@keyframes slam-shake {
  0%,100% { transform: translate(0,0); }
  20% { transform: translate(-6px, 4px); }
  40% { transform: translate(6px, -3px); }
  60% { transform: translate(-4px, 3px); }
  80% { transform: translate(4px, -2px); }
}
.prize-modal__name {
  font-family: var(--hand);
  font-size: clamp(1.3rem, 6vw, 1.8rem); color: #fff; margin: .7em 0 .1em;
  text-shadow: 0 0 16px rgba(255,95,176,.8);
}
.prize-modal__sub { color: var(--neon-blue-2); font-size: .98rem; letter-spacing: .08em; }
.prize-modal__desc {
  font-size: 1rem; color: var(--ink); font-weight: 300;
  max-width: 360px; margin: .9em auto 0; line-height: 1.7;
}
.prize-modal__code {
  font-family: var(--hand);
  font-size: 1.5rem; color: #fff; margin-top: .8em;
  text-shadow: var(--glow-pink);
}
.prize-modal__btn {
  margin-top: 1.4em; padding: .7em 2.2em;
  border: none; border-radius: 999px; cursor: pointer;
  font-size: 1.05rem; color: #fff; font-weight: 600;
  background: linear-gradient(135deg, #ff5fb0, #b57bff);
  box-shadow: 0 6px 20px rgba(255,95,176,.6);
  transition: transform .2s;
}
.prize-modal__btn:hover { transform: translateY(-2px) scale(1.04); }
/* 尘土 */
.dust {
  position: absolute; left: 50%; bottom: 0;
  width: 1px; height: 1px; pointer-events: none;
}
.dust span {
  position: absolute; left: 0; bottom: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230,215,190,.85), rgba(200,180,150,0));
  opacity: 0;
}
.dust.burst span { animation: dust-puff .9s ease-out forwards; }
@keyframes dust-puff {
  0% { opacity: 0; transform: translate(0,0) scale(.3); }
  20% { opacity: .8; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1.6); }
}

/* ---------- 6. 结尾 ---------- */
.ending__inner { max-width: 620px; }
.ending p { font-size: clamp(1.12rem, 4.6vw, 1.38rem); color: var(--ink); font-weight: 300; margin-bottom: .6em; }
.ending__sign {
  font-family: var(--hand);
  font-size: clamp(1.7rem, 9vw, 3.4rem);
  color: #fff; margin: .8em 0 .4em;
  text-shadow: 0 0 18px rgba(255, 95, 176, .85), 0 0 44px rgba(34, 211, 255, .45);
  white-space: nowrap;
}
.ending__from { color: var(--ink-soft); font-size: 1.05rem; }
.ending__replay {
  margin-top: 3em;
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
  border: none;
  color: #fff; font-family: var(--sans); font-weight: 500;
  padding: .8em 2em; border-radius: 40px;
  font-size: .98rem; cursor: pointer;
  box-shadow: var(--glow-pink);
  transition: transform .3s, box-shadow .3s;
}
.ending__replay:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 0 24px rgba(255,95,176,.9), 0 0 50px rgba(181,123,255,.6); }

/* ---------- 音乐控件 ---------- */
.player {
  position: fixed; right: 16px; bottom: 16px; z-index: 40;
  display: flex; align-items: center; gap: 10px;
  background: rgba(40, 20, 90, 0.6);
  backdrop-filter: blur(12px);
  border-radius: 40px; padding: 8px 14px 8px 8px;
  box-shadow: var(--shadow);
  border: 1px solid var(--glass-brd);
  max-width: 78vw;
}
/* 黑胶唱片 */
.player__disc {
  position: relative;
  width: 44px; height: 44px; border-radius: 50%;
  border: none; cursor: pointer; flex-shrink: 0; padding: 0;
  background:
    repeating-radial-gradient(circle at 50% 50%, #2a2a2a 0 1px, #111 1px 3px);
  box-shadow: 0 0 12px rgba(255, 95, 176, .5), inset 0 0 6px rgba(0,0,0,.8);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.player__disc::after { /* 唱片高光 */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,.18), transparent 55%);
}
.player__disc-label { /* 中心图片标签 */
  position: absolute; width: 26px; height: 26px; border-radius: 50%;
  background-image: url("assets/img/disc.jpeg");
  background-size: cover; background-position: center 20%;
  box-shadow: 0 0 0 2px rgba(255,255,255,.35), inset 0 0 4px rgba(0,0,0,.4);
  z-index: 2;
}
.player__disc-icon {
  position: absolute; z-index: 3; color: #fff; font-size: .72rem;
  text-shadow: 0 0 4px rgba(0,0,0,.9);
  opacity: 0; transition: opacity .25s;
}
.player__disc:hover .player__disc-icon { opacity: 1; } /* 悬停显示播放/暂停图标 */
.player__icon-pause { display: none; }
.player[data-state="playing"] .player__icon-play { display: none; }
.player[data-state="playing"] .player__icon-pause { display: inline; }
/* 播放时黑胶顺时针旋转 */
.player[data-state="playing"] .player__disc { animation: spin 3.2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.player__track {
  font-size: .82rem; color: var(--ink);
  max-width: 116px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.player__ctrl { display: flex; gap: 4px; flex-shrink: 0; }
.player__mini {
  background: none; border: none; cursor: pointer;
  color: var(--neon-blue-2); font-size: 1.3rem; line-height: 1; padding: 0 3px;
  transition: transform .2s, color .2s;
}
.player__mini:hover { color: var(--neon-pink); transform: scale(1.2); }

/* ---------- 响应式 ---------- */
@media (max-width: 480px) {
  .section { padding: 10vh 6vw; }
  .player__track { max-width: 90px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { transition-duration: .01ms; }
  .giftbox { animation: none; }
  .intro__hint, .intro__tap { animation: none; opacity: 1; }
  .hero__arrow, .env-hint, .player[data-state="playing"] .player__btn { animation: none; }
}
