/* ==========================================================================
   限时活动 · 流星夜的珍藏（event.php） —— 类名前缀 ev-
   ① 首屏（夜色 + 流星雨 + 盲盒） ② 活动故事（四章插画 + 流星进度线）
   ③ 拉布布图鉴 ④ 试开盲盒（网页演示） ⑤ 活动规则 ⑥ 结尾号召
   ========================================================================== */

.page-event {
  --ev-night: #050817;
  --ev-night-2: #0a0f26;
  --ev-star: #c9d3ff;
  --ev-star-2: #a9b8ff;
  --ev-line: rgba(169, 184, 255, 0.18);
  --ev-warm: #f1ddae;
}

/* 共用渐变定义（不可 display:none，否则 Firefox 不能引用） */
.ev-defs { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }

/* 活动截止前 / 后的内容切换：body.ev-ended 由服务端输出，倒计时结束时 event.js 实时加上 */
body:not(.ev-ended) [data-ev-when="ended"],
body.ev-ended [data-ev-when="open"] { display: none !important; }

/* 流星雨画布（首屏 / 结尾共用） */
.ev-sky { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }

/* ==========================================================================
   ① 首屏
   ========================================================================== */
.ev-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: max(680px, 100svh);
  padding: calc(var(--header-h) + 40px) 0 0;
  overflow: hidden;
  background: var(--ev-night);
}
.ev-hero__bg { position: absolute; inset: -6% 0; z-index: -3; }
.ev-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 70%;
  /* 白昼的桃林 → 月夜：去饱和、偏蓝、压暗 */
  filter: grayscale(0.3) sepia(0.6) hue-rotate(186deg) saturate(1.6) brightness(0.48) contrast(1.08);
  animation: tl-kenburns 32s var(--ease-in-out) infinite alternate;
}
.ev-hero__tint {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 50% 40% at 80% 16%, rgba(140, 160, 255, 0.16), transparent 70%),
    radial-gradient(ellipse 60% 40% at 72% 70%, rgba(232, 135, 159, 0.14), transparent 70%),
    linear-gradient(180deg, #03050f 0%, rgba(4, 7, 22, 0.94) 16%, rgba(7, 11, 32, 0.66) 40%, rgba(9, 12, 32, 0.2) 62%, rgba(13, 10, 11, 0.5) 84%, var(--c-bg) 100%),
    linear-gradient(90deg, rgba(3, 5, 15, 0.86) 0%, rgba(3, 5, 15, 0.46) 42%, rgba(3, 5, 15, 0) 72%);
}
.ev-hero__moon {
  position: absolute;
  top: calc(var(--header-h) + 5vh);
  right: 7vw;
  z-index: -1;
  width: clamp(46px, 5vw, 84px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 34%, #fffdf6 0%, #f6e9c9 52%, #d9c69c 100%);
  box-shadow: 0 0 36px 8px rgba(255, 240, 210, 0.22), 0 0 140px 50px rgba(140, 160, 255, 0.13);
  opacity: 0.92;
}
.ev-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(20px, 4vw, 64px);
  flex: 1;
}
.ev-hero__copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding-block: 24px; }
.ev-hero__copy .kicker { color: var(--ev-star); }
.ev-hero__title {
  font-size: clamp(2.8rem, 6.1vw, 5.6rem);
  line-height: 1.08;
  white-space: nowrap;
  background: linear-gradient(180deg, #ffffff 0%, #f7e4e8 48%, #f1ddae 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 30px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 22px rgba(169, 184, 255, 0.22));
}
html[lang="en"] .ev-hero__title { font-size: clamp(2.1rem, 4vw, 3.5rem); line-height: 1.12; white-space: normal; }
.ev-hero__sub {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 12px;
  border: 1px solid rgba(241, 221, 174, 0.38);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(241, 221, 174, 0.12), rgba(241, 221, 174, 0.03));
  color: var(--c-gold-2);
  font-family: var(--f-serif);
  font-weight: 600;
  letter-spacing: 0.12em;
}
html[lang="en"] .ev-hero__sub { letter-spacing: 0.04em; font-size: 0.95rem; }
.ev-hero__sub .icon { color: var(--c-peach-2); }
.ev-hero__desc { max-width: 560px; color: var(--c-text-2); font-size: clamp(1rem, 1.5vw, 1.1rem); }

/* 倒计时 */
.ev-timer { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.ev-timer__label { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-serif); font-weight: 600; letter-spacing: 0.18em; color: var(--ev-star); font-size: 0.92rem; }
html[lang="en"] .ev-timer__label { letter-spacing: 0.08em; }
.ev-timer__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-peach); box-shadow: 0 0 0 0 rgba(232, 135, 159, 0.6); animation: ev-ping 1.8s var(--ease-out) infinite; }
.ev-timer .countdown__unit b { border-color: rgba(169, 184, 255, 0.3); background: linear-gradient(180deg, rgba(20, 26, 66, 0.75), rgba(6, 8, 22, 0.8)); color: #fff; text-shadow: 0 0 18px rgba(169, 184, 255, 0.5); }
.ev-timer .countdown__sep { color: var(--ev-star); }
.ev-timer__date { display: inline-flex; align-items: center; gap: 8px; font-size: 0.86rem; color: var(--c-muted); }
.ev-timer__date .icon { color: var(--c-gold); }

.ev-closed { display: flex; align-items: center; gap: 14px; max-width: 520px; margin-top: 6px; padding: 14px 18px; border: 1px solid rgba(232, 135, 159, 0.4); border-radius: var(--radius); background: rgba(13, 10, 11, 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.ev-closed__icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid var(--c-peach); color: var(--c-peach-2); }
.ev-closed__body { display: flex; flex-direction: column; gap: 2px; }
.ev-closed__body strong { font-family: var(--f-serif); font-size: 1.15rem; color: #fff; letter-spacing: 0.08em; }
.ev-closed__body small { font-size: 0.88rem; color: var(--c-text-2); line-height: 1.6; }

.ev-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }

/* 盲盒 */
.ev-hero__art { position: relative; height: min(72vh, 660px); min-height: 380px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(14px, 2.4vh, 26px); }
.ev-hero__halo { position: absolute; inset: 0 0 12%; display: grid; place-items: center; pointer-events: none; }
.ev-hero__rays, .ev-hero__glow { position: absolute; width: min(120%, 760px); aspect-ratio: 1; border-radius: 50%; }
.ev-hero__rays {
  background: repeating-conic-gradient(from 0deg, rgba(255, 238, 205, 0) 0deg 8deg, rgba(255, 238, 205, 0.13) 10deg 12deg, rgba(255, 238, 205, 0) 14deg 22.5deg);
  -webkit-mask-image: radial-gradient(circle, #000 18%, transparent 66%);
  mask-image: radial-gradient(circle, #000 18%, transparent 66%);
  animation: tl-spin 80s linear infinite;
}
.ev-hero__glow {
  width: min(86%, 540px);
  background: radial-gradient(circle, rgba(245, 185, 199, 0.42) 0%, rgba(169, 184, 255, 0.18) 42%, transparent 68%);
  animation: ev-breathe 5s var(--ease-in-out) infinite;
}
.ev-hero__boxwrap { position: relative; height: 76%; aspect-ratio: 675 / 900; flex: none; }
.ev-hero__box { position: relative; width: 100%; height: 100%; animation: ev-float 6.5s var(--ease-in-out) infinite; }
.ev-hero__box img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 34px 34px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 26px rgba(245, 185, 199, 0.28)); }
/* 包装上的一道流光（只在盒面区域内） */
.ev-hero__sheen {
  position: absolute; inset: 0;
  overflow: hidden;
  -webkit-mask: url("../../img/event/labubu-box.webp") center / contain no-repeat;
  mask: url("../../img/event/labubu-box.webp") center / contain no-repeat;
  pointer-events: none;
}
.ev-hero__sheen::before {
  content: "";
  position: absolute; top: -10%; bottom: -10%; left: 0;
  width: 45%;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.32) 50%, transparent 100%);
  transform: translateX(-120%) skewX(-12deg);
  animation: ev-sweep 6.5s var(--ease-in-out) infinite;
}
.ev-hero__shadow { position: absolute; left: 14%; right: 14%; bottom: -6%; height: 9%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.6), transparent); animation: ev-shadow 6.5s var(--ease-in-out) infinite; }

.ev-sparks { position: absolute; inset: 4% 6%; pointer-events: none; }
.ev-sparks i {
  position: absolute;
  left: var(--x); top: var(--y);
  width: 22px; height: 22px;
  margin: -11px 0 0 -11px;
  clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%);
  background-color: #fff8ec;
  opacity: 0;
  scale: var(--s);
  animation: ev-spark 3.2s var(--ease-in-out) infinite;
  animation-delay: var(--d);
}

.ev-hero__tag {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 6px 6px 16px;
  border: 1px solid rgba(241, 221, 174, 0.35);
  border-radius: 999px;
  background: rgba(6, 8, 22, 0.66);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.84rem;
  color: var(--c-text-2);
  white-space: nowrap;
  transition: border-color 0.3s, transform 0.4s var(--ease-out);
}
.ev-hero__tag b { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--grad-peach); color: #fff; font-weight: 600; letter-spacing: 0.06em; }
.ev-hero__tag .icon { width: 14px; height: 14px; transition: transform 0.35s var(--ease-out); }
.ev-hero__tag:hover { border-color: var(--c-gold); transform: translateY(-2px); }
.ev-hero__tag:hover .icon { transform: translateY(2px); }

/* 页内导航 */
.ev-hero__nav { position: relative; z-index: 2; margin-top: clamp(16px, 3vh, 32px); border-top: 1px solid var(--ev-line); background: linear-gradient(180deg, rgba(6, 8, 22, 0.5), rgba(13, 10, 11, 0.85)); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.ev-hero__navin { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ev-hero__nav a { position: relative; display: flex; align-items: baseline; justify-content: center; gap: 10px; padding: 18px 8px; font-family: var(--f-serif); font-weight: 600; letter-spacing: 0.1em; color: var(--c-text-2); transition: color 0.3s; }
html[lang="en"] .ev-hero__nav a { letter-spacing: 0.04em; }
.ev-hero__nav a + a::before { content: ""; position: absolute; left: 0; top: 30%; bottom: 30%; width: 1px; background: var(--ev-line); }
.ev-hero__nav a::after { content: ""; position: absolute; left: 50%; right: 50%; top: -1px; height: 1px; background: var(--grad-peach); box-shadow: var(--glow-peach); transition: left 0.4s var(--ease-out), right 0.4s var(--ease-out); }
.ev-hero__nav a:hover { color: #fff; }
.ev-hero__nav a:hover::after { left: 20%; right: 20%; }
.ev-hero__nav small { font-family: var(--f-num); font-size: 0.74rem; color: var(--ev-star-2); letter-spacing: 0.1em; }

@media (max-width: 900px) {
  .ev-hero { min-height: auto; padding-top: calc(var(--header-h) + 8px); }
  .ev-hero__inner { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ev-hero__art { order: -1; height: clamp(300px, 82vw, 480px); min-height: 0; gap: 12px; }
  .ev-hero__boxwrap { height: 76%; }
  .ev-hero__moon { top: calc(var(--header-h) + 20px); right: 6vw; }
  .ev-hero__copy { padding-top: 18px; }
  .ev-hero__actions .btn { flex: 1 1 200px; }
}
@media (max-width: 640px) {
  .ev-hero__navin { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ev-hero__nav a { padding: 13px 6px; font-size: 0.92rem; }
  .ev-hero__nav a:nth-child(3)::before { display: none; }
  .ev-hero__nav a:nth-child(n + 3) { border-top: 1px solid var(--ev-line); }
  .ev-timer .countdown__unit { min-width: 0; flex: 1; }
  .ev-timer .countdown { width: 100%; }
  .ev-hero__tag { font-size: 0.78rem; }
}

/* ==========================================================================
   ② 活动故事
   ========================================================================== */
.ev-story {
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(40, 52, 130, 0.28), transparent 70%),
    linear-gradient(180deg, var(--c-bg) 0%, #090b17 25%, #0b0a14 75%, var(--c-bg) 100%);
  overflow: hidden;
}
.ev-story .kicker { color: var(--ev-star); }
.ev-story__track { position: relative; max-width: 1140px; margin-inline: auto; }
.ev-story__rail { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: linear-gradient(180deg, transparent, var(--ev-line) 4%, var(--ev-line) 96%, transparent); }
.ev-story__fill {
  position: absolute; inset: 0;
  transform-origin: 50% 0;
  transform: scaleY(0);
  background: linear-gradient(180deg, rgba(169, 184, 255, 0) 0%, #a9b8ff 18%, #f5b9c7 72%, #fff 100%);
  box-shadow: 0 0 12px rgba(169, 184, 255, 0.7);
  will-change: transform;
}
.ev-story__head {
  position: absolute; top: 0; left: 50%;
  width: 16px; height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0 28%, rgba(255, 240, 220, 0.65) 44%, transparent 70%);
  box-shadow: 0 0 18px 6px rgba(255, 240, 220, 0.5), 0 0 44px 14px rgba(169, 184, 255, 0.35);
  will-change: transform;
}
.no-js .ev-story__fill { transform: none; }
.no-js .ev-story__head { display: none; }

.ev-chapters { position: relative; display: flex; flex-direction: column; gap: clamp(72px, 10vw, 150px); padding-block: 24px; }
.ev-chapter { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 112px minmax(0, 1fr); align-items: center; }
.ev-chapter__art { grid-column: 1; grid-row: 1; position: relative; margin: 0; }
.ev-chapter__node { grid-column: 2; grid-row: 1; justify-self: center; }
.ev-chapter__text { grid-column: 3; grid-row: 1; position: relative; max-width: 460px; }
.ev-chapter:nth-child(even) .ev-chapter__art { grid-column: 3; }
.ev-chapter:nth-child(even) .ev-chapter__text { grid-column: 1; justify-self: end; text-align: right; }

/* 插画面板 */
.ev-scene {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 6px;
  background: var(--ev-night);
  border: 1px solid var(--ev-line);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(0, 0, 0, 0.5);
  transition: box-shadow 0.8s var(--ease-out), border-color 0.8s;
}
.ev-scene::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 40%, transparent 55%, rgba(3, 4, 12, 0.55) 100%); }
.ev-chapter.is-active .ev-scene { border-color: rgba(201, 211, 255, 0.4); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 60px rgba(169, 184, 255, 0.16); }
.ev-layer { position: absolute; left: 0; top: -4%; width: 100%; height: 108%; overflow: visible; will-change: transform; }
.ev-chapter__corner { position: absolute; top: 10px; right: 12px; z-index: 2; font-family: var(--f-brush); font-size: 1.05rem; color: rgba(241, 221, 174, 0.75); text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8); }
html[lang="en"] .ev-chapter__corner { font-family: var(--f-en); font-size: 0.82rem; letter-spacing: 0.2em; }
.ev-chapter:nth-child(even) .ev-chapter__corner { right: auto; left: 12px; }
/* 四角金线 */
.ev-chapter__art::before, .ev-chapter__art::after { content: ""; position: absolute; z-index: 2; width: 26px; height: 26px; border: 1px solid var(--c-gold); opacity: 0.6; pointer-events: none; transition: all 0.6s var(--ease-out); }
.ev-chapter__art::before { top: -7px; left: -7px; border-right: 0; border-bottom: 0; }
.ev-chapter__art::after { bottom: -7px; right: -7px; border-left: 0; border-top: 0; }
.ev-chapter.is-active .ev-chapter__art::before, .ev-chapter.is-active .ev-chapter__art::after { width: 44px; height: 44px; opacity: 1; }

/* 进度节点 */
.ev-chapter__node {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid var(--ev-line);
  background: radial-gradient(circle at 50% 35%, #18204a, #070916 72%);
  color: rgba(201, 211, 255, 0.5);
  transition: color 0.6s, border-color 0.6s, box-shadow 0.6s, scale 0.6s var(--ease-out);
}
.ev-chapter__node b { font-family: var(--f-brush); font-weight: 400; font-size: 1.5rem; line-height: 1; }
html[lang="en"] .ev-chapter__node b { font-family: var(--f-en); font-weight: 600; font-size: 1rem; letter-spacing: 0.04em; }
.ev-chapter__node::before { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 1px dashed rgba(201, 211, 255, 0.22); transition: border-color 0.6s; }
.ev-chapter.is-lit .ev-chapter__node { color: #fff; border-color: rgba(245, 185, 199, 0.8); box-shadow: 0 0 0 4px rgba(245, 185, 199, 0.08), 0 0 30px rgba(245, 185, 199, 0.45); }
.ev-chapter.is-lit .ev-chapter__node::before { border-color: rgba(241, 221, 174, 0.55); animation: tl-spin 18s linear infinite; }
.ev-chapter.is-active .ev-chapter__node { scale: 1.12; }

/* 文字 */
.ev-chapter__no { font-family: var(--f-serif); font-weight: 600; font-size: 0.86rem; letter-spacing: 0.3em; color: var(--ev-star-2); }
html[lang="en"] .ev-chapter__no { font-family: var(--f-en); letter-spacing: 0.24em; font-size: 0.76rem; text-transform: uppercase; }
.ev-chapter__title { margin: 6px 0 14px; font-family: var(--f-brush); font-weight: 400; font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.15; color: #fff; text-shadow: 0 0 30px rgba(169, 184, 255, 0.25); }
html[lang="en"] .ev-chapter__title { font-family: var(--f-en); font-weight: 600; font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: 0.02em; }
.ev-chapter__body { font-family: var(--f-serif); font-size: 1.04rem; line-height: 2; color: var(--c-text-2); }
html[lang="en"] .ev-chapter__body { font-family: var(--f-sans); line-height: 1.85; }
.ev-chapter__text::before {
  content: "";
  display: block;
  width: 48px;
  height: 1px;
  margin-bottom: 18px;
  background: linear-gradient(90deg, var(--c-gold), transparent);
}
.ev-chapter:nth-child(even) .ev-chapter__text::before { margin-left: auto; background: linear-gradient(270deg, var(--c-gold), transparent); }

/* 插画内的小动画（仅当前章节播放） */
.ev-tw { animation: ev-twinkle 3.2s ease-in-out infinite; animation-delay: var(--d, 0s); }
.ev-met { opacity: 0; animation: ev-meteor var(--t, 4.2s) linear infinite; animation-delay: var(--d, 0s); }
.ev-fire { transform-box: fill-box; transform-origin: 50% 100%; animation: ev-fire 0.9s ease-in-out infinite alternate; }
.ev-flash { opacity: 0; animation: ev-flash 5s ease-in-out infinite; }
.ev-win { animation: ev-window 4s steps(1) infinite; animation-delay: var(--d, 0s); }
.ev-dot { fill: #ffd994; opacity: 0.45; }
.ev-blink { animation: ev-blink 1.6s steps(1) infinite; }
.ev-neon { animation: ev-neon 5s steps(1) infinite; filter: drop-shadow(0 0 3px #f5b9c7); }
.ev-mote { animation: ev-mote 7s ease-in-out infinite; animation-delay: var(--d, 0s); }
.ev-glint { opacity: 0.35; animation: ev-breathe 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.ev-aura { transform-box: fill-box; transform-origin: center; animation: ev-breathe 3s ease-in-out infinite; }
.ev-bundle { animation: ev-bundle 1.6s ease-in-out infinite alternate; }
.ev-petal { transform-box: fill-box; transform-origin: center; animation: ev-petal 9s linear infinite; animation-delay: var(--d, 0s); }
.js .ev-chapter:not(.is-active) .ev-scene *,
.js .ev-chapter:not(.is-active) .ev-chapter__node::before { animation-play-state: paused; }

@media (max-width: 900px) {
  .ev-story__rail { left: 22px; }
  .ev-chapters { gap: 56px; }
  .ev-chapter { grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; row-gap: 22px; align-items: start; }
  .ev-chapter__node { grid-column: 1; grid-row: 1; width: 44px; height: 44px; margin-top: 8px; }
  .ev-chapter__node b { font-size: 1.15rem; }
  .ev-chapter__art, .ev-chapter:nth-child(even) .ev-chapter__art { grid-column: 2; grid-row: 1; }
  .ev-chapter__text, .ev-chapter:nth-child(even) .ev-chapter__text { grid-column: 2; grid-row: 2; justify-self: start; text-align: left; max-width: none; }
  .ev-chapter:nth-child(even) .ev-chapter__text::before { margin-left: 0; background: linear-gradient(90deg, var(--c-gold), transparent); }
  .ev-chapter:nth-child(even) .ev-chapter__corner { left: auto; right: 12px; }
  .ev-chapter__art::before { top: -5px; left: -5px; }
  .ev-chapter__art::after { bottom: -5px; right: -5px; }
  .ev-chapter__text::before { margin-bottom: 12px; }
  .ev-chapter__title { margin-bottom: 10px; }
}
@media (max-width: 480px) {
  .ev-chapter { grid-template-columns: 34px minmax(0, 1fr); column-gap: 12px; }
  .ev-story__rail { left: 17px; }
  .ev-chapter__node { width: 34px; height: 34px; }
  .ev-chapter__node::before { inset: -5px; }
  .ev-chapter__node b { font-size: 0.95rem; }
  html[lang="en"] .ev-chapter__node b { font-size: 0.78rem; }
  .ev-chapter__body { font-size: 0.98rem; line-height: 1.9; }
}

/* ==========================================================================
   ③ 拉布布图鉴
   ========================================================================== */
.ev-dex__grid { --gap: clamp(14px, 2vw, 28px); display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.ev-dex__grid > li { flex: 0 0 calc((100% - 3 * var(--gap)) / 4); min-width: 0; }
@media (max-width: 1024px) { .ev-dex__grid > li { flex-basis: calc((100% - 2 * var(--gap)) / 3); } }
@media (max-width: 640px) { .ev-dex__grid { --gap: 12px; } .ev-dex__grid > li { flex-basis: calc((100% - var(--gap)) / 2); } }

.ev-pet {
  --pet: var(--c-peach);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 60% at 50% 30%, color-mix(in srgb, var(--pet) 20%, transparent), transparent 70%),
    linear-gradient(180deg, #17121a, #0f0c10 70%);
  transition: transform 0.5s var(--ease-out), border-color 0.4s, box-shadow 0.5s var(--ease-out);
}
.ev-pet::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, transparent, var(--pet), transparent); opacity: 0.85; }
.ev-pet:hover, .ev-pet:focus-within { transform: translateY(-6px); border-color: color-mix(in srgb, var(--pet) 55%, transparent); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5), 0 0 44px color-mix(in srgb, var(--pet) 22%, transparent); }

.ev-pet__flipbtn { position: relative; display: block; width: 100%; aspect-ratio: 4 / 4.6; perspective: 1000px; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.ev-pet__flipbtn::before {
  content: "";
  position: absolute; left: 18%; right: 18%; bottom: 6%; height: 10%;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--pet) 55%, transparent), transparent);
  filter: blur(2px);
}
.ev-pet__flipbtn:focus-visible { outline-offset: -4px; }
.ev-pet__flip { position: absolute; inset: 8% 12% 8%; transform-style: preserve-3d; transition: transform 0.85s var(--ease-out); }
.ev-pet__face { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.ev-pet__face img { width: auto; height: 100%; max-width: 100%; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 14px 16px rgba(0, 0, 0, 0.5)); transition: scale 0.6s var(--ease-out); }
.ev-pet__face--back { transform: rotateY(180deg); }
.ev-pet__flipbtn[aria-pressed="true"] .ev-pet__flip { transform: rotateY(180deg); }
.ev-pet__turn {
  position: absolute; right: 10px; top: 10px;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px 3px 7px;
  border: 1px solid var(--c-line-strong);
  border-radius: 999px;
  background: rgba(13, 10, 11, 0.55);
  font-size: 0.72rem;
  color: var(--c-text-2);
  letter-spacing: 0.06em;
  transition: border-color 0.3s, color 0.3s;
}
.ev-pet__turn .icon { width: 13px; height: 13px; transition: rotate 0.6s var(--ease-out); }
.ev-pet__turn-back { display: none; }
.ev-pet__flipbtn[aria-pressed="true"] .ev-pet__turn-front { display: none; }
.ev-pet__flipbtn[aria-pressed="true"] .ev-pet__turn-back { display: inline; }
.ev-pet__flipbtn[aria-pressed="true"] .ev-pet__turn .icon { rotate: 180deg; }
/* 鼠标设备：悬停即转身；点击可固定（悬停时再点一下会转回来） */
@media (hover: hover) and (pointer: fine) {
  .ev-pet:hover .ev-pet__flipbtn:not([aria-pressed="true"]) .ev-pet__flip { transform: rotateY(180deg); }
  .ev-pet:hover .ev-pet__flipbtn[aria-pressed="true"] .ev-pet__flip { transform: none; }
  .ev-pet:hover .ev-pet__turn { border-color: var(--pet); color: #fff; }
  .ev-pet:hover .ev-pet__turn .icon { rotate: 180deg; }
}

.ev-pet__info { position: relative; display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 14px 16px 18px; border-top: 1px solid var(--c-line); background: rgba(10, 8, 10, 0.5); }
.ev-pet__no { font-family: var(--f-num); font-size: 0.72rem; letter-spacing: 0.22em; color: color-mix(in srgb, var(--pet) 70%, #fff); }
.ev-pet__name { font-family: var(--f-serif); font-size: 1.12rem; font-weight: 700; color: #fff; line-height: 1.35; }
html[lang="en"] .ev-pet__name { font-size: 1.02rem; }
.ev-pet__color { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 0.84rem; color: var(--c-text-2); }
.ev-pet__color i { width: 14px; height: 14px; border-radius: 50%; background: var(--pet); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12), 0 0 12px color-mix(in srgb, var(--pet) 60%, transparent); }
.ev-pet__color code { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 0.76rem; color: var(--c-muted); letter-spacing: 0.04em; }
.ev-pet__stat { display: flex; flex-direction: column; gap: 1px; margin-top: auto; padding: 7px 10px; border-left: 2px solid var(--pet); background: rgba(255, 255, 255, 0.035); }
.ev-pet__stat small { font-size: 0.7rem; letter-spacing: 0.16em; color: var(--c-muted); }
.ev-pet__stat b { font-family: var(--f-serif); font-size: 0.94rem; color: var(--c-gold-2); line-height: 1.45; }

/* 隐藏款：只有问号 */
.ev-pet--hidden {
  background:
    radial-gradient(ellipse 80% 55% at 50% 34%, rgba(241, 221, 174, 0.12), transparent 70%),
    linear-gradient(180deg, #0d0b10, #060508 70%);
  border-style: dashed;
  border-color: rgba(241, 221, 174, 0.3);
}
.ev-pet--hidden::before { background: linear-gradient(90deg, transparent, var(--c-gold-2), transparent); }
.ev-pet--hidden:hover { border-color: rgba(241, 221, 174, 0.6); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5), 0 0 50px rgba(241, 221, 174, 0.14); }
.ev-pet__stage { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 4.6; overflow: hidden; }
.ev-pet__stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.07) 50%, transparent 65%); background-size: 260% 100%; animation: ev-sheen 5s var(--ease-in-out) infinite; }
.ev-q { position: relative; display: grid; place-items: center; width: 62%; aspect-ratio: 1; }
.ev-q b {
  position: relative;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: clamp(4.2rem, 9vw, 6.4rem);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(180deg, #fffaf0, #f1ddae 55%, #b89558);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(241, 221, 174, 0.55));
  animation: ev-qpulse 3s var(--ease-in-out) infinite;
}
.ev-q__ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(241, 221, 174, 0.4); animation: tl-spin 24s linear infinite; }
.ev-q__ring--2 { inset: 14%; border-style: solid; border-color: rgba(241, 221, 174, 0.14); box-shadow: inset 0 0 30px rgba(241, 221, 174, 0.12); animation-direction: reverse; animation-duration: 36s; }
.ev-pet__secret { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding: 7px 10px; border-left: 2px solid var(--c-gold); background: rgba(241, 221, 174, 0.05); font-family: var(--f-serif); font-size: 0.92rem; color: var(--c-gold-2); }
.ev-pet__secret .icon { width: 15px; height: 15px; }

@media (max-width: 640px) {
  .ev-pet__info { padding: 11px 11px 13px; gap: 4px; }
  .ev-pet__name, html[lang="en"] .ev-pet__name { font-size: 0.96rem; }
  .ev-pet__stat b { font-size: 0.86rem; }
  .ev-pet__turn { top: 7px; right: 7px; padding: 3px 7px 3px 6px; font-size: 0.66rem; }
}

/* ==========================================================================
   ④ 试开盲盒
   ========================================================================== */
.ev-demo {
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 50% 55%, rgba(50, 62, 150, 0.24), transparent 70%),
    var(--c-bg);
}
.ev-demo__wrap { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.ev-demo__notice { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border: 1px solid rgba(241, 221, 174, 0.4); border-radius: 999px; background: rgba(241, 221, 174, 0.07); color: var(--c-gold-2); font-size: 0.92rem; font-weight: 600; letter-spacing: 0.06em; text-align: center; }
.ev-demo__notice .icon { color: var(--c-gold); }
.ev-demo__stage { position: relative; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; width: min(100%, 560px); height: clamp(380px, 54vw, 500px); }
.ev-demo__stage > * { grid-area: 1 / 1; }
.ev-demo__glow { width: 78%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(245, 185, 199, 0.32), rgba(169, 184, 255, 0.12) 45%, transparent 68%); transition: scale 0.6s var(--ease-out), opacity 0.6s; animation: ev-breathe 4.5s var(--ease-in-out) infinite; pointer-events: none; }
.ev-demo__rays {
  width: 130%; aspect-ratio: 1; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 240, 210, 0) 0deg 9deg, rgba(255, 240, 210, 0.24) 11deg 13deg, rgba(255, 240, 210, 0) 15deg 22.5deg);
  -webkit-mask-image: radial-gradient(circle, transparent 12%, #000 24%, transparent 62%);
  mask-image: radial-gradient(circle, transparent 12%, #000 24%, transparent 62%);
  opacity: 0; scale: 0.6;
  transition: opacity 0.8s var(--ease-out), scale 1.2s var(--ease-out);
  animation: tl-spin 40s linear infinite;
  pointer-events: none;
}
.ev-demo__flash { width: 40%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #fff 0%, rgba(255, 246, 230, 0.8) 30%, transparent 70%); opacity: 0; scale: 0.2; pointer-events: none; }
.ev-demo__fx { position: absolute; left: -30%; top: -20%; width: 160%; height: 140%; max-width: none; pointer-events: none; z-index: 3; }
.ev-demo__box { position: relative; z-index: 2; height: 80%; aspect-ratio: 675 / 900; border-radius: 14px; touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: scale 0.4s var(--ease-out); }
.ev-demo__box:hover { scale: 1.03; }
.ev-demo__box:focus-visible { outline-offset: 8px; }
.ev-demo__shake { position: absolute; inset: 0; display: block; filter: drop-shadow(0 26px 30px rgba(0, 0, 0, 0.6)); animation: ev-float 5s var(--ease-in-out) infinite; }
.ev-demo__shake img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.ev-demo__lid { clip-path: inset(0 0 86% 0); transform-origin: 30% 100%; }
.ev-demo__base { clip-path: inset(13.6% 0 0 0); }
.ev-demo__tap { align-self: end; z-index: 2; margin-bottom: -4px; font-size: 0.82rem; color: var(--c-muted); letter-spacing: 0.1em; transition: opacity 0.3s; pointer-events: none; }

/* 摇一摇 → 打开 */
.ev-demo__wrap.is-shaking .ev-demo__shake { animation: ev-shake 1.1s cubic-bezier(0.36, 0.07, 0.19, 0.97) both; }
.ev-demo__wrap.is-shaking .ev-demo__glow { scale: 1.25; animation: none; opacity: 1; }
.ev-demo__wrap.is-shaking .ev-demo__tap, .ev-demo__wrap.is-burst .ev-demo__tap { opacity: 0; }
.ev-demo__wrap.is-burst .ev-demo__shake { animation: none; }
.ev-demo__wrap.is-burst .ev-demo__lid { transform: translate(-18%, -150%) rotate(-28deg); opacity: 0; transition: transform 0.75s var(--ease-out), opacity 0.5s 0.25s; }
.ev-demo__wrap.is-burst .ev-demo__base { transform: translateY(10%) scale(0.88); opacity: 0; transition: transform 0.6s var(--ease-out) 0.08s, opacity 0.45s 0.15s; }
.ev-demo__wrap.is-burst .ev-demo__flash { animation: ev-flashout 0.9s var(--ease-out) both; }
.ev-demo__wrap.is-open .ev-demo__rays { opacity: 1; scale: 1; }
.ev-demo__wrap.is-open .ev-demo__glow { --c: var(--pet, #f5b9c7); background: radial-gradient(circle, color-mix(in srgb, var(--c) 45%, transparent), rgba(169, 184, 255, 0.1) 45%, transparent 68%); scale: 1.15; }
.ev-demo__wrap.is-hidden-pull .ev-demo__glow { background: radial-gradient(circle, rgba(241, 221, 174, 0.38), rgba(169, 184, 255, 0.1) 45%, transparent 68%); }
.ev-demo__wrap.is-returning .ev-demo__shake { animation: ev-dropin 0.7s var(--ease-out) both; }

/* 开出的结果 */
.ev-demo__result { position: relative; z-index: 4; display: grid; place-items: center; width: 100%; height: 100%; }
.ev-reveal { --pet: #f5b9c7; display: flex; flex-direction: column; align-items: center; gap: 4px; width: min(340px, 92%); text-align: center; animation: ev-reveal 0.9s var(--ease-out) both; }
.ev-reveal__art { position: relative; height: clamp(190px, 30vw, 270px); aspect-ratio: 440 / 760; }
.ev-reveal__art img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 20px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 24px color-mix(in srgb, var(--pet) 45%, transparent)); animation: ev-hop 2.6s var(--ease-in-out) 0.9s infinite; }
.ev-reveal__got { margin-top: 8px; font-size: 0.8rem; letter-spacing: 0.24em; color: var(--c-muted); }
html[lang="en"] .ev-reveal__got { letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.72rem; }
.ev-reveal__name { font-family: var(--f-serif); font-size: clamp(1.35rem, 2.6vw, 1.7rem); font-weight: 900; color: #fff; text-shadow: 0 0 24px color-mix(in srgb, var(--pet) 55%, transparent); }
.ev-reveal__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 4px; }
.ev-reveal__chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border: 1px solid var(--c-line-strong); border-radius: 999px; background: rgba(13, 10, 11, 0.6); font-size: 0.8rem; color: var(--c-text-2); }
.ev-reveal__chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--pet); box-shadow: 0 0 8px var(--pet); }
.ev-reveal__chip--stat { color: var(--c-gold-2); border-color: rgba(241, 221, 174, 0.35); }
.ev-reveal--hidden .ev-reveal__art { display: grid; place-items: center; aspect-ratio: 1; }
.ev-reveal--hidden .ev-q { width: 100%; }
.ev-reveal--hidden .ev-reveal__name { background: linear-gradient(180deg, #fffaf0, #f1ddae 55%, #c9a466); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 0 16px rgba(241, 221, 174, 0.5)); }
.ev-reveal__text { max-width: 300px; font-size: 0.9rem; color: var(--c-text-2); line-height: 1.7; }

.ev-demo__controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.ev-demo__controls .btn[disabled] { opacity: 0.6; }

/* 演示收集记录 */
.ev-demo__log { display: flex; flex-direction: column; align-items: center; gap: 12px; width: min(100%, 560px); margin-top: 10px; padding: 18px 20px; border: 1px solid var(--c-line); border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.02); }
.ev-demo__logtitle { font-family: var(--f-serif); font-weight: 600; letter-spacing: 0.16em; font-size: 0.9rem; color: var(--c-text-2); }
html[lang="en"] .ev-demo__logtitle { letter-spacing: 0.06em; }
.ev-demo__slots { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ev-slot { --pet: #888; position: relative; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--c-line-strong); background: #0f0c10; overflow: hidden; transition: border-color 0.5s, box-shadow 0.5s, background-color 0.5s; }
.ev-slot img { width: 70%; height: 86%; object-fit: contain; object-position: 50% 100%; margin-top: 14%; filter: grayscale(1) brightness(0.2); opacity: 0.8; transition: filter 0.6s, opacity 0.6s; }
.ev-slot.is-met { border-color: var(--pet); background: color-mix(in srgb, var(--pet) 16%, #0f0c10); box-shadow: 0 0 16px color-mix(in srgb, var(--pet) 40%, transparent); }
.ev-slot.is-met img { filter: none; opacity: 1; }
.ev-slot.is-new { animation: ev-pop 0.6s var(--ease-out); }
.ev-slot__q { font-family: Georgia, serif; font-weight: 700; font-size: 1.4rem; color: rgba(241, 221, 174, 0.35); transition: color 0.5s, text-shadow 0.5s; }
.ev-slot--hidden { border-style: dashed; }
.ev-slot--hidden.is-met { border-color: var(--c-gold); border-style: solid; background: rgba(241, 221, 174, 0.08); box-shadow: 0 0 18px rgba(241, 221, 174, 0.35); }
.ev-slot--hidden.is-met .ev-slot__q { color: var(--c-gold-2); text-shadow: 0 0 12px rgba(241, 221, 174, 0.8); }
.ev-demo__lognote { max-width: 440px; font-size: 0.8rem; color: var(--c-muted); text-align: center; line-height: 1.6; }

@media (max-width: 480px) {
  .ev-demo__stage { height: 380px; }
  .ev-slot { width: 40px; height: 40px; }
  .ev-demo__slots { gap: 7px; }
  .ev-demo__controls .btn { width: 100%; }
  .ev-demo__log { padding: 16px 12px; }
}

/* ==========================================================================
   ⑤ 活动规则
   ========================================================================== */
.ev-rules__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.ev-rules__main .section-head { margin-bottom: 24px; }
.ev-rules__deadline { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 14px; padding: 9px 16px; border: 1px solid rgba(169, 184, 255, 0.28); border-radius: var(--radius); background: rgba(169, 184, 255, 0.06); font-size: 0.92rem; color: var(--c-text-2); }
.ev-rules__deadline .icon { color: var(--ev-star); }
.ev-rules__deadline b { font-family: var(--f-serif); color: #fff; letter-spacing: 0.04em; }
.ev-rules__list li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--c-line); }
.ev-rules__list li:first-child { border-top: 1px solid var(--c-line); }
.ev-rules__num { font-family: var(--f-num); font-size: 1.7rem; font-weight: 700; line-height: 1; background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ev-rules__list p { color: var(--c-text-2); font-size: 1.02rem; }
.ev-note { display: flex; gap: 14px; margin-top: 26px; padding: 18px 20px; border: 1px solid rgba(232, 135, 159, 0.36); border-radius: var(--radius); background: linear-gradient(90deg, rgba(232, 135, 159, 0.1), rgba(232, 135, 159, 0.03)); }
.ev-note__icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: rgba(232, 135, 159, 0.16); color: var(--c-peach-2); }
.ev-note p { font-size: 0.96rem; color: var(--c-text-2); }
.ev-note strong { display: block; margin-bottom: 2px; font-family: var(--f-serif); color: #fff; letter-spacing: 0.08em; }

.ev-how {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(169, 184, 255, 0.12), transparent 70%),
    linear-gradient(180deg, var(--c-surface-2), var(--c-surface));
  box-shadow: var(--shadow-1);
}
.ev-how__title { font-family: var(--f-brush); font-weight: 400; font-size: 2rem; color: #fff; }
html[lang="en"] .ev-how__title { font-family: var(--f-en); font-weight: 600; font-size: 1.35rem; }
.ev-how__steps { position: relative; display: flex; flex-direction: column; gap: 18px; }
.ev-how__steps::before { content: ""; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 1px; background: linear-gradient(180deg, var(--c-peach), rgba(169, 184, 255, 0.6)); opacity: 0.5; }
.ev-how__steps li { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; }
.ev-how__num { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--c-peach); background: #1a1216; font-family: var(--f-num); font-weight: 700; color: var(--c-peach-2); }
.ev-how__steps b { display: block; font-family: var(--f-serif); color: #fff; font-size: 1.02rem; letter-spacing: 0.04em; }
.ev-how__steps p { font-size: 0.9rem; color: var(--c-text-2); line-height: 1.7; }
.ev-how__actions { display: flex; flex-direction: column; gap: 10px; }
.ev-how__app { margin-bottom: -10px; font-size: 0.82rem; color: var(--c-muted); letter-spacing: 0.06em; }

@media (max-width: 900px) {
  .ev-rules__grid { grid-template-columns: minmax(0, 1fr); }
  .ev-how { position: relative; top: auto; }
}
@media (max-width: 480px) {
  .ev-rules__list li { grid-template-columns: 40px minmax(0, 1fr); gap: 10px; }
  .ev-rules__num { font-size: 1.35rem; }
}

/* ==========================================================================
   ⑥ 结尾号召
   ========================================================================== */
.ev-cta { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(110px, 14vw, 190px); text-align: center; background: var(--ev-night); }
.ev-cta__bg { position: absolute; inset: 0; z-index: -2; }
.ev-cta__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; filter: grayscale(0.3) sepia(0.6) hue-rotate(188deg) saturate(1.5) brightness(0.36) contrast(1.08); }
.ev-cta__bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 50% 55%, rgba(5, 8, 23, 0.25), rgba(5, 8, 23, 0.8) 100%),
    linear-gradient(180deg, var(--c-bg) 0%, rgba(5, 8, 23, 0.4) 25%, rgba(5, 8, 23, 0.35) 70%, var(--c-bg) 100%);
}
.ev-cta__inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.ev-cta .kicker { color: var(--ev-star); }
.ev-cta__title { font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1.12; color: #fff; text-shadow: 0 6px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(169, 184, 255, 0.25); }
html[lang="en"] .ev-cta__title { font-size: clamp(1.8rem, 4.4vw, 3.2rem); }
.ev-cta__desc { max-width: 600px; color: var(--c-text-2); font-size: clamp(1rem, 1.5vw, 1.12rem); }
.ev-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 12px; }
@media (max-width: 480px) { .ev-cta__actions .btn { width: 100%; } }

/* ==========================================================================
   动画
   ========================================================================== */
@keyframes ev-float { 0%, 100% { transform: translateY(0) rotate(-1.2deg); } 50% { transform: translateY(-16px) rotate(1.2deg); } }
@keyframes ev-shadow { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.82); opacity: 0.65; } }
@keyframes ev-breathe { 0%, 100% { opacity: 0.7; transform: scale(0.96); } 50% { opacity: 1; transform: scale(1.04); } }
@keyframes ev-sweep { 0%, 50% { transform: translateX(-120%) skewX(-12deg); } 80%, 100% { transform: translateX(260%) skewX(-12deg); } }
@keyframes ev-sheen { 0%, 55% { background-position: 130% 0; } 85%, 100% { background-position: -30% 0; } }
@keyframes ev-spark { 0%, 100% { opacity: 0; transform: scale(0.2) rotate(0deg); } 45% { opacity: 1; transform: scale(1) rotate(45deg); } 70% { opacity: 0; transform: scale(0.4) rotate(90deg); } }
@keyframes ev-ping { 0% { box-shadow: 0 0 0 0 rgba(232, 135, 159, 0.6); } 80%, 100% { box-shadow: 0 0 0 10px rgba(232, 135, 159, 0); } }
@keyframes ev-twinkle { 0%, 100% { opacity: 0.2; } 50% { opacity: 1; } }
@keyframes ev-meteor { 0% { opacity: 0; transform: translateX(90px); } 4% { opacity: 1; } 22% { opacity: 0; transform: translateX(-200px); } 100% { opacity: 0; transform: translateX(-200px); } }
@keyframes ev-fire { from { transform: scale(0.92, 0.9); opacity: 0.85; } to { transform: scale(1.06, 1.1); opacity: 1; } }
@keyframes ev-flash { 0%, 60%, 100% { opacity: 0; transform: scale(0.6); } 72% { opacity: 1; transform: scale(1.1); } 86% { opacity: 0.2; transform: scale(1.3); } }
@keyframes ev-window { 0%, 100% { opacity: 0.9; } 40% { opacity: 0.15; } 70% { opacity: 0.8; } }
@keyframes ev-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.15; } }
@keyframes ev-neon { 0%, 100% { opacity: 1; } 62% { opacity: 0.3; } 64% { opacity: 1; } 66% { opacity: 0.4; } 68% { opacity: 1; } }
@keyframes ev-mote { 0%, 100% { transform: translate(0, 0); opacity: 0.2; } 50% { transform: translate(6px, -16px); opacity: 0.9; } }
@keyframes ev-bundle { from { opacity: 0.75; } to { opacity: 1; } }
@keyframes ev-petal { 0% { transform: translate(0, 0) rotate(0deg); opacity: 0; } 10% { opacity: 0.9; } 100% { transform: translate(-60px, 140px) rotate(320deg); opacity: 0; } }
@keyframes ev-qpulse { 0%, 100% { filter: drop-shadow(0 0 12px rgba(241, 221, 174, 0.35)); transform: scale(1); } 50% { filter: drop-shadow(0 0 26px rgba(241, 221, 174, 0.75)); transform: scale(1.05); } }
@keyframes ev-shake {
  0% { transform: none; }
  10% { transform: translateX(-3px) rotate(-2deg); }
  20% { transform: translateX(3px) rotate(2deg); }
  30% { transform: translateX(-5px) rotate(-4deg); }
  40% { transform: translateX(5px) rotate(4deg); }
  50% { transform: translateX(-7px) rotate(-6deg) scale(1.02); }
  60% { transform: translateX(7px) rotate(6deg) scale(1.03); }
  70% { transform: translateX(-8px) rotate(-8deg) scale(1.04); }
  80% { transform: translateX(8px) rotate(8deg) scale(1.05); }
  90% { transform: translateX(-4px) rotate(-3deg) scale(1.07) translateY(-6px); }
  100% { transform: translateY(-10px) scale(1.1); }
}
@keyframes ev-flashout { 0% { opacity: 0; scale: 0.2; } 25% { opacity: 1; scale: 1.2; } 100% { opacity: 0; scale: 3.2; } }
@keyframes ev-reveal { 0% { opacity: 0; transform: translateY(40px) scale(0.6); } 60% { opacity: 1; transform: translateY(-6px) scale(1.04); } 100% { opacity: 1; transform: none; } }
@keyframes ev-hop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes ev-dropin { 0% { opacity: 0; transform: translateY(-50px) scale(0.9); } 70% { opacity: 1; transform: translateY(4px) scale(1.01); } 100% { opacity: 1; transform: none; } }
@keyframes ev-pop { 0% { scale: 1; } 40% { scale: 1.25; } 100% { scale: 1; } }

@media (prefers-reduced-motion: reduce) {
  .ev-met, .ev-flash { opacity: 0.6; }
  .ev-sparks i { opacity: 0.6; }
}

/* 结尾标题：两个短语之间用小菱形分隔（不用全角逗号），手机上自然折行 */
.ev-cta__phrase { display: inline-block; }
.ev-cta__sep { display: inline-block; width: 0.2em; height: 0.2em; margin-inline: 0.45em; vertical-align: 0.32em; border: 1px solid var(--c-gold); transform: rotate(45deg); opacity: 0.85; }


html[lang="en"] .ev-cta__sep { width: 0.3em; height: auto; margin: 0; border: 0; transform: none; }
@media (max-width: 640px) {
  .ev-cta__sep { display: none; }
  .ev-cta__phrase { display: block; }
}
@media (max-width: 400px) {
  .ev-slot { width: 36px; height: 36px; }
  .ev-demo__slots { gap: 6px; }
  .ev-slot__q { font-size: 1.1rem; }
}

/* ==========================================================================
   通用模板（后台「活动管理」新建的活动）—— 类名前缀 evg-
   与拉布布模板共用：.ev-hero__sub .ev-timer .ev-closed .ev-hero__nav .ev-rules__list .ev-rules__deadline .ev-cta .ev-q .ev-pet__secret
   ========================================================================== */
.evg-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: max(640px, 94svh);
  padding: calc(var(--header-h) + 40px) 0 0;
  overflow: hidden;
  background: var(--c-bg);
}
.evg-hero--empty { min-height: max(560px, 78svh); }
.evg-hero__bg { position: absolute; inset: -6% 0; z-index: -3; }
.evg-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; filter: saturate(0.92) brightness(0.56) contrast(1.05); animation: tl-kenburns 32s var(--ease-in-out) infinite alternate; }
.evg-hero__tint {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 50% 45% at 78% 42%, rgba(232, 135, 159, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(13, 10, 11, 0.88) 0%, rgba(13, 10, 11, 0.3) 28%, rgba(13, 10, 11, 0.4) 68%, var(--c-bg) 100%),
    linear-gradient(90deg, rgba(13, 10, 11, 0.9) 0%, rgba(13, 10, 11, 0.55) 42%, rgba(13, 10, 11, 0) 76%);
}
.evg-hero .petals-layer { z-index: -1; }
.evg-hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); align-items: center; gap: clamp(24px, 4vw, 64px); flex: 1; padding-bottom: clamp(28px, 5vh, 56px); }
.evg-hero__inner--solo { grid-template-columns: minmax(0, 780px); }
.evg-hero__copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding-block: 24px; }
.evg-hero__title {
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: 1.08;
  background: linear-gradient(180deg, #ffffff 0%, #f7e4e8 50%, #f1ddae 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 30px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 22px rgba(232, 135, 159, 0.2));
}
html[lang="en"] .evg-hero__title { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.12; }
.evg-hero__desc { display: flex; flex-direction: column; gap: 10px; max-width: 600px; color: var(--c-text-2); font-size: clamp(1rem, 1.5vw, 1.1rem); }

/* 状态标签：即将开始 / 进行中 / 已结束 */
.evg-state { display: inline-flex; align-items: center; gap: 9px; padding: 5px 14px 5px 11px; border-radius: 999px; border: 1px solid var(--c-line-strong); background: rgba(13, 10, 11, 0.55); font-size: 0.86rem; font-weight: 600; letter-spacing: 0.12em; color: var(--c-text-2); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.evg-state__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-muted); }
.evg-state--live { border-color: rgba(99, 179, 163, 0.5); color: #9fe0cf; }
.evg-state--live .evg-state__dot { background: #63b3a3; box-shadow: 0 0 0 0 rgba(99, 179, 163, 0.6); animation: evg-ping 1.8s var(--ease-out) infinite; }
.evg-state--scheduled { border-color: rgba(241, 221, 174, 0.45); color: var(--c-gold-2); }
.evg-state--scheduled .evg-state__dot { background: var(--c-gold); }
.evg-state--ended { border-color: rgba(232, 135, 159, 0.4); color: var(--c-peach-2); }
.evg-state--ended .evg-state__dot { background: var(--c-peach); }

/* 活动时间 */
.evg-period { display: inline-flex; align-items: flex-start; gap: 10px; max-width: 600px; padding: 10px 16px; border: 1px solid var(--c-line); border-left: 2px solid var(--c-gold); border-radius: var(--radius); background: rgba(13, 10, 11, 0.5); font-size: 0.95rem; color: var(--c-text-2); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.evg-period > .icon { flex: none; margin-top: 3px; color: var(--c-gold); }
.evg-period > span { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.evg-period b { font-family: var(--f-serif); font-weight: 600; letter-spacing: 0.1em; color: var(--c-gold-2); }
.evg-period__value { color: #fff; }
.evg-period small { flex-basis: 100%; font-size: 0.84rem; color: var(--c-muted); }
.evg-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }

/* 主视觉（金线画框 + 鼠标视差） */
.evg-hero__art { position: relative; display: grid; place-items: center; min-height: 340px; }
.evg-frame { position: relative; margin: 0; max-width: min(100%, 560px); padding: 10px; border: 1px solid rgba(241, 221, 174, 0.35); border-radius: var(--radius-lg); background: linear-gradient(160deg, rgba(241, 221, 174, 0.1), rgba(13, 10, 11, 0.6)); box-shadow: 0 34px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(232, 135, 159, 0.12); }
.evg-frame img { display: block; width: 100%; height: auto; max-height: min(64vh, 620px); object-fit: contain; border-radius: calc(var(--radius-lg) - 4px); }
.evg-frame__corner { position: absolute; width: 34px; height: 34px; border: 1px solid var(--c-gold); pointer-events: none; }
.evg-frame__corner--a { top: -8px; left: -8px; border-right: 0; border-bottom: 0; }
.evg-frame__corner--b { bottom: -8px; right: -8px; border-left: 0; border-top: 0; }

/* 页内导航：项目数可变（--n） */
.evg-hero__nav { --ev-line: var(--c-line); background: linear-gradient(180deg, rgba(13, 10, 11, 0.4), rgba(13, 10, 11, 0.9)); }
.evg-hero__nav .ev-hero__navin { grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); }

@media (max-width: 900px) {
  .evg-hero { min-height: auto; padding-top: calc(var(--header-h) + 12px); }
  .evg-hero__inner { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .evg-hero__art { order: -1; min-height: 0; padding-top: 12px; }
  .evg-frame img { max-height: 46vh; }
  .evg-hero__actions .btn { flex: 1 1 200px; }
}
@media (max-width: 640px) {
  .evg-hero__nav .ev-hero__navin { grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); }
  .evg-hero__nav .ev-hero__navin a:nth-child(3)::before { display: block; }
  .evg-hero__nav .ev-hero__navin a:nth-child(n + 3) { border-top: 0; }
  .evg-hero__nav a small { display: none; }
}

/* ② 活动介绍：图文左右交替 */
.evg-blocks { display: flex; flex-direction: column; gap: clamp(48px, 7vw, 96px); max-width: 1100px; margin-inline: auto; }
.evg-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 5vw, 72px); }
.evg-block--flip .evg-block__media { order: 2; }
.evg-block--text { grid-template-columns: minmax(0, 760px); justify-content: center; }
.evg-block__media { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--c-line); box-shadow: 0 26px 60px rgba(0, 0, 0, 0.5); }
.evg-block__media img { display: block; width: 100%; height: auto; }
.evg-block__no { font-family: var(--f-num); font-size: 0.86rem; letter-spacing: 0.3em; color: var(--c-gold); }
.evg-block__title { margin: 6px 0 14px; font-family: var(--f-brush); font-weight: 400; font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.15; color: #fff; }
html[lang="en"] .evg-block__title { font-family: var(--f-en); font-weight: 600; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.evg-block__text { display: flex; flex-direction: column; gap: 12px; font-family: var(--f-serif); font-size: 1.04rem; line-height: 1.95; color: var(--c-text-2); }
@media (max-width: 800px) {
  .evg-block { grid-template-columns: minmax(0, 1fr); }
  .evg-block--flip .evg-block__media { order: 0; }
}

/* ③ 活动奖励 */
.evg-rewards__grid { --gap: clamp(14px, 2vw, 26px); display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.evg-rewards__grid > li { flex: 0 0 calc((100% - 3 * var(--gap)) / 4); min-width: 0; }
@media (max-width: 1024px) { .evg-rewards__grid > li { flex-basis: calc((100% - 2 * var(--gap)) / 3); } }
@media (max-width: 640px) { .evg-rewards__grid { --gap: 12px; } .evg-rewards__grid > li { flex-basis: calc((100% - var(--gap)) / 2); } }
.evg-reward {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  background: radial-gradient(ellipse 80% 50% at 50% 30%, rgba(232, 135, 159, 0.12), transparent 70%), linear-gradient(180deg, var(--c-surface-2), var(--c-surface));
  transition: transform 0.45s var(--ease-out), border-color 0.45s, box-shadow 0.45s;
}
.evg-reward::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, transparent, var(--c-peach), transparent); opacity: 0.8; }
.evg-reward:hover { transform: translateY(-6px); border-color: rgba(232, 135, 159, 0.45); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5); }
.evg-reward__media { position: relative; display: grid; place-items: center; aspect-ratio: 1; padding: 12%; overflow: hidden; }
.evg-reward__media img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 14px 16px rgba(0, 0, 0, 0.5)); }
.evg-reward__icon { display: grid; place-items: center; width: 46%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(241, 221, 174, 0.35); background: rgba(241, 221, 174, 0.06); color: var(--c-gold-2); }
.evg-reward__icon .icon { width: 42%; height: 42%; }
.evg-reward__info { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 14px 16px 18px; border-top: 1px solid var(--c-line); background: rgba(10, 8, 10, 0.5); }
.evg-reward__no { font-family: var(--f-num); font-size: 0.72rem; letter-spacing: 0.22em; color: var(--c-peach-2); }
.evg-reward__name { font-family: var(--f-serif); font-weight: 700; font-size: 1.12rem; line-height: 1.35; color: #fff; }
.evg-reward__desc { display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; line-height: 1.7; color: var(--c-text-2); }
.evg-reward--hidden { border-style: dashed; border-color: rgba(241, 221, 174, 0.3); background: radial-gradient(ellipse 80% 55% at 50% 34%, rgba(241, 221, 174, 0.12), transparent 70%), linear-gradient(180deg, #0d0b10, #060508 70%); }
.evg-reward--hidden::before { background: linear-gradient(90deg, transparent, var(--c-gold-2), transparent); }
.evg-reward--hidden .evg-reward__media { padding: 8%; }
.evg-reward--hidden .ev-pet__secret { margin-top: auto; }

/* ④ 活动规则 */
.evg-rules__inner { max-width: 900px; }
.evg-rules .ev-rules__deadline { border-color: rgba(241, 221, 174, 0.3); background: rgba(241, 221, 174, 0.05); }
.evg-rules .ev-rules__deadline .icon { color: var(--c-gold); }

/* ⑤ 结尾号召 */
.evg-cta .ev-cta__bg img { filter: saturate(0.85) brightness(0.4) contrast(1.05); }
.evg-cta .kicker { color: var(--c-gold); }
.evg-cta .petals-layer { z-index: -1; }
.evg-cta__desc { display: flex; flex-direction: column; gap: 8px; }

@keyframes evg-ping { 0% { box-shadow: 0 0 0 0 rgba(99, 179, 163, 0.6); } 80%, 100% { box-shadow: 0 0 0 10px rgba(99, 179, 163, 0); } }
