/* =========================================================
   爱心驿站 · 领取页
   视觉与动效对齐国际服 thatskygame.com：
   全屏影像 + 云层 splash + GSAP 式滚动揭示 + 胶囊按钮 + 柔和光晕
   配色取自其站点：深青 #0a1f2a / #2e7090、亮青 #57d3f9、
   冰蓝 #ddf0f8、奶白 #fff9e2、暖金 #f4db6a
   ========================================================= */

:root {
  --ink: #061620;
  --ink-2: #0a1f2a;
  --teal: #2e7090;
  --teal-deep: #123241;
  --cyan: #57d3f9;
  --cyan-soft: #6abfe8;
  --ice: #ddf0f8;
  --cream: #fff9e2;
  --gold: #f4db6a;
  --warm: #f4a261;
  --line: rgba(221, 240, 248, 0.16);
  --line-soft: rgba(221, 240, 248, 0.08);
  --text: #f4f8fb;
  --muted: rgba(221, 240, 248, 0.62);
  --dim: rgba(221, 240, 248, 0.42);
  --font-title: "Songti SC", "宋体", SimSun, "Noto Serif SC", serif;
  --font-body: "GenSenRounded2TW", "微软雅黑", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "SF Mono", Consolas, "Courier New", monospace;
  --r-card: 1.5rem;
  --r-box: 1rem;
  --r-pill: 9999px;
  --ease: cubic-bezier(0.22, 0.8, 0.25, 1);
  --shadow-soft: 0 30px 80px rgba(3, 12, 18, 0.55);
}

* { box-sizing: border-box; }

/* hidden 属性优先于组件 display */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100%;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-loading { overflow: hidden; }

a { color: var(--cyan); text-decoration: none; }

/* ---------------- 开场 splash ---------------- */

.splash {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--ink-2);
  transition: opacity 0.9s var(--ease), visibility 0.9s;
}

.splash.is-hidden { opacity: 0; visibility: hidden; }

.splash-sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 50% 105%, rgba(87, 211, 249, 0.28), transparent 60%),
    radial-gradient(90% 60% at 50% -10%, rgba(46, 112, 144, 0.55), transparent 65%),
    linear-gradient(180deg, #071d27 0%, #0d3040 55%, #16465c 100%);
}

.splash-clouds {
  position: absolute;
  left: 50%;
  bottom: -8vh;
  width: 160vw;
  max-width: none;
  transform: translateX(-50%);
  opacity: 0.5;
  animation: cloudsDrift 26s ease-in-out infinite alternate;
  filter: blur(1px);
}

@keyframes cloudsDrift {
  0%   { transform: translate(-52%, 2%) scale(1); }
  100% { transform: translate(-48%, -2%) scale(1.06); }
}

.splash-inner {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 18px;
  animation: splashRise 1s var(--ease) both;
}

@keyframes splashRise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.splash-logo { width: 148px; filter: drop-shadow(0 8px 26px rgba(87, 211, 249, 0.35)); }

.splash-dots { display: flex; gap: 8px; }
.splash-dots i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan);
  opacity: 0.35;
  animation: dotPulse 1.4s ease-in-out infinite;
}
.splash-dots i:nth-child(2) { animation-delay: 0.18s; }
.splash-dots i:nth-child(3) { animation-delay: 0.36s; }

@keyframes dotPulse {
  0%, 100% { opacity: 0.25; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-4px); }
}

.splash-text {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.4em;
  color: var(--muted);
}

/* ---------------- 滚动进度 + 光标光 ---------------- */

.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 120;
  background: rgba(221, 240, 248, 0.08);
}
.scroll-progress i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--teal), var(--cyan), var(--gold));
  box-shadow: 0 0 12px rgba(87, 211, 249, 0.7);
  transition: width 0.12s linear;
}

.cursor-light {
  position: fixed;
  width: 420px; height: 420px;
  left: 0; top: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0);
  background: radial-gradient(circle, rgba(87, 211, 249, 0.16), rgba(87, 211, 249, 0) 62%);
  transition: opacity 0.4s ease;
  will-change: transform;
}


/* ---------------- 卡内装饰：云角 / 星轨 ---------------- */

.card-deco {
  position: absolute !important;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* 星轨：横穿卡片的流星拖尾 */
.card-deco .trail {
  position: absolute;
  left: -260px;
  height: 2.5px;
  width: 260px;
  border-radius: 99px;
  background: linear-gradient(
    90deg,
    rgba(87, 211, 249, 0) 0%,
    rgba(87, 211, 249, 0.35) 30%,
    rgba(87, 211, 249, 0.7) 62%,
    rgba(255, 255, 255, 0.95) 92%,
    rgba(255, 255, 255, 0) 100%
  );
  filter: blur(0.5px) drop-shadow(0 0 10px rgba(87, 211, 249, 0.9));
  opacity: 0;
  animation: trailRun 9s linear infinite;
}

.card-deco .trail-1 { top: 20%; animation-delay: -2.5s; }

.card-deco .trail-2 {
  top: 68%;
  width: 170px;
  height: 1.5px;
  filter: drop-shadow(0 0 5px rgba(244, 219, 106, 0.8));
  background: linear-gradient(
    90deg,
    rgba(244, 219, 106, 0) 0%,
    rgba(244, 219, 106, 0.5) 60%,
    rgba(255, 255, 255, 0.9) 100%
  );
  animation-duration: 13s;
  animation-delay: -7s;
}

.card-deco .trail-3 {
  top: 44%;
  width: 120px;
  height: 1px;
  filter: drop-shadow(0 0 4px rgba(221, 240, 248, 0.8));
  background: linear-gradient(90deg, rgba(221, 240, 248, 0) 0%, rgba(221, 240, 248, 0.45) 60%, #fff 100%);
  animation-duration: 11s;
  animation-delay: -5s;
}

@keyframes trailRun {
  0% { transform: translateX(0); opacity: 0; }
  8% { opacity: 1; }
  46% { opacity: 0.7; }
  60% { opacity: 0; }
  100% { transform: translateX(1900px); opacity: 0; }
}

/* 卡内星尘轻微闪烁 */
@keyframes dustTwinkle {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 0.55; }
}

/* ---------------- 背景 ---------------- */

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--ink);
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.74;
  transform: scale(1.06) translate3d(var(--bg-x, 0px), var(--bg-y, 0px), 0);
  transition: transform 1.2s var(--ease);
  filter: saturate(1.05) brightness(0.9);
}

.bg-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(6, 22, 32, 0.25), rgba(6, 22, 32, 0.85) 70%),
    linear-gradient(180deg, rgba(6, 22, 32, 0.42) 0%, rgba(6, 22, 32, 0.78) 55%, #061620 100%);
}

.bg-clouds {
  position: absolute;
  left: -10%;
  width: 120%;
  height: 60vh;
  background: url("/static/img/intl/clouds.png") center bottom / cover no-repeat;
  opacity: 0.16;
  filter: blur(2px);
  will-change: transform;
}

.bg-clouds-a {
  bottom: -6vh;
  animation: cloudFloatA 34s ease-in-out infinite alternate;
}

.bg-clouds-b {
  top: 6vh;
  opacity: 0.09;
  transform: scaleY(-1);
  animation: cloudFloatB 46s ease-in-out infinite alternate;
}

@keyframes cloudFloatA {
  0%   { transform: translate3d(-2%, 0, 0) scale(1); }
  100% { transform: translate3d(3%, -3%, 0) scale(1.08); }
}
@keyframes cloudFloatB {
  0%   { transform: scaleY(-1) translate3d(2%, 0, 0); }
  100% { transform: scaleY(-1) translate3d(-3%, 4%, 0); }
}

#stars {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  display: block;
  opacity: 0.7;
}

.embers { position: absolute; inset: 0; pointer-events: none; }

.ember {
  position: absolute;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  animation: emberUp linear infinite;
}

@keyframes emberUp {
  0%   { transform: translate3d(0, 0, 0) scale(0.8); opacity: 0; }
  12%  { opacity: 0.85; }
  100% { transform: translate3d(var(--dx, 18px), -68vh, 0) scale(1.15); opacity: 0; }
}

.bg-grain {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: radial-gradient(rgba(255, 255, 255, 0.6) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
}

/* ---------------- 顶栏 ---------------- */

.topbar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  padding: 20px clamp(16px, 4vw, 56px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px 8px 10px;
  border-radius: var(--r-pill);
  background: rgba(6, 22, 32, 0.42);
  border: 1px solid var(--line-soft);
  backdrop-filter: blur(10px);
  transition: transform 0.4s var(--ease), background 0.4s ease;
}
.brand:hover { transform: translateY(-2px); background: rgba(6, 22, 32, 0.6); }

.brand-logo { height: 26px; }

.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-text b {
  font-family: var(--font-title);
  font-size: 15px;
  letter-spacing: 0.1em;
}
.brand-text i {
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--dim);
  text-transform: uppercase;
}

/* ---------------- 主舞台 ---------------- */

.stage {
  position: relative;
  z-index: 3;
  width: min(940px, 92vw);
  margin: 0 auto;
  padding-bottom: 60px;
}

/* 主视觉 */
.hero {
  min-height: clamp(340px, 60vh, 620px);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
  text-align: center;
  padding: 28px 0 34px;
}

.hero-kicker {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.5em;
  color: var(--cyan);
  text-transform: uppercase;
  text-shadow: 0 0 22px rgba(87, 211, 249, 0.5);
}

.hero-title {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.28;
  display: grid;
  gap: 6px;
  transform: translate3d(var(--hero-x, 0px), var(--hero-y, 0px), 0);
  transition: transform 0.8s var(--ease);
}

.hero-title .line1 {
  font-size: clamp(34px, 6.4vw, 68px);
  letter-spacing: 0.08em;
  color: #ffffff;
  text-shadow: 0 12px 46px rgba(3, 12, 18, 0.85);
}

.hero-title .line2 {
  font-size: clamp(14px, 2.2vw, 20px);
  font-weight: 400;
  letter-spacing: 0.34em;
  color: var(--gold);
  text-shadow: 0 6px 24px rgba(3, 12, 18, 0.9);
}

.hero-avatars {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.hero-avatars img {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(221, 240, 248, 0.35);
  box-shadow: 0 0 0 6px rgba(87, 211, 249, 0.06);
  transition: transform 0.5s var(--ease), box-shadow 0.5s ease;
}
.hero-avatars img:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 0 0 8px rgba(87, 211, 249, 0.12);
}

.hero-cta {
  margin-top: 22px;
  animation: ctaFloat 4s ease-in-out infinite;
}

@keyframes ctaFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.scroll-cue {
  margin-top: 18px;
  display: grid;
  justify-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.34em;
}

.cue-dot {
  width: 1px; height: 46px;
  background: linear-gradient(180deg, rgba(87, 211, 249, 0.9), rgba(87, 211, 249, 0));
  position: relative;
}
.cue-dot::after {
  content: "";
  position: absolute;
  left: 50%; top: 0;
  width: 5px; height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  animation: cueDrop 1.8s var(--ease) infinite;
}

@keyframes cueDrop {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(38px); opacity: 0; }
  100% { transform: translateY(38px); opacity: 0; }
}


/* ---------------- 公告 ---------------- */

.notice {
  position: relative;
  margin: 0 0 18px;
  padding: 18px 20px 16px;
  border-radius: 1.4rem;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 18px 44px rgba(3, 12, 18, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.26);
  animation: noticeIn 0.6s var(--ease) both;
}

@keyframes noticeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.notice::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--cyan), rgba(244, 219, 106, 0.8));
  box-shadow: 0 0 12px rgba(87, 211, 249, 0.6);
}

.notice-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding-left: 4px;
}

.notice-badge {
  flex: 0 0 auto;
  padding: 2px 10px;
  border-radius: var(--r-pill);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--ink);
  background: var(--gold);
}

.notice-title {
  font-family: var(--font-title);
  font-size: 14px;
  letter-spacing: 0.06em;
  color: #fff;
}

.notice-time {
  font-style: normal;
  font-size: 11px;
  color: var(--dim);
  font-family: var(--font-mono);
}

.notice-close {
  margin-left: auto;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.08);
  transition: all 0.3s var(--ease);
}

.notice-close:hover {
  color: var(--ice);
  background: rgba(255, 255, 255, 0.18);
  transform: rotate(90deg);
}

.notice-body {
  padding-left: 4px;
  font-size: 12.5px;
  line-height: 1.9;
  color: rgba(221, 240, 248, 0.82);
}

.notice-body p { margin: 0 0 8px; }
.notice-body p:last-child { margin-bottom: 0; }
.notice-body strong, .notice-body b { color: #fff; }
.notice-body a { color: var(--cyan); text-decoration: underline; }
.notice-body ul, .notice-body ol { margin: 6px 0; padding-left: 20px; }
.notice-body li { margin: 2px 0; }
.notice-body img { max-width: 100%; border-radius: 10px; }
.notice-body h1, .notice-body h2, .notice-body h3 {
  margin: 8px 0 6px;
  font-family: var(--font-title);
  font-size: 14px;
  color: #fff;
}
.notice-body blockquote {
  margin: 8px 0;
  padding: 6px 12px;
  border-left: 2px solid rgba(87, 211, 249, 0.6);
  color: var(--muted);
}

/* ---------------- 卡片 ---------------- */

.card-wrap { position: relative; }

.card {
  position: relative;
  padding: clamp(22px, 3.4vw, 40px);
  /* 不完全方正：四角半径各不相同，像云团一角 */
  border-radius: 2.6rem 1.6rem 2.4rem 1.8rem;
  background:
    radial-gradient(1.6px 1.6px at 14% 22%, rgba(255, 255, 255, 0.5), transparent 100%),
    radial-gradient(1.4px 1.4px at 78% 14%, rgba(255, 255, 255, 0.42), transparent 100%),
    radial-gradient(1.2px 1.2px at 42% 8%, rgba(244, 219, 106, 0.5), transparent 100%),
    radial-gradient(1.6px 1.6px at 88% 62%, rgba(255, 255, 255, 0.36), transparent 100%),
    radial-gradient(1.2px 1.2px at 6% 74%, rgba(87, 211, 249, 0.45), transparent 100%),
    radial-gradient(1.4px 1.4px at 62% 88%, rgba(255, 255, 255, 0.34), transparent 100%),
    linear-gradient(
      155deg,
      rgba(255, 255, 255, 0.17) 0%,
      rgba(255, 255, 255, 0.09) 40%,
      rgba(255, 255, 255, 0.05) 100%
    );
  border: 1px solid rgba(255, 255, 255, 0.26);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  backdrop-filter: blur(24px) saturate(150%);
  box-shadow:
    0 30px 76px rgba(3, 12, 18, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -40px 80px rgba(6, 22, 32, 0.18);
  overflow: hidden;
}

/* 内容层抬升；装饰层保持绝对定位 */
.card > *:not(.card-deco) {
  position: relative;
  z-index: 1;
}

.card::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 0;
  right: 0;
  top: 0;
  height: 92px;
  background: url("/static/img/clouds/cloud-white--top.png") center top / 100% auto no-repeat;
  opacity: 0.28;
  mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.55) 42%, transparent 88%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.55) 42%, transparent 88%);
  pointer-events: none;
}

.card::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: 104px;
  background:
    url("/static/img/clouds/cloud-dark--bottom.png") center bottom / 100% auto no-repeat,
    radial-gradient(50% 100% at 50% 100%, rgba(87, 211, 249, 0.16), transparent 72%);
  opacity: 0.42;
  mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.5) 45%, transparent 88%);
  mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.5) 45%, transparent 88%);
  pointer-events: none;
}

/* 步骤条 */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  counter-reset: step;
}

.steps::before,
.steps::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 16%;
  right: 16%;
  height: 1px;
  background: var(--line-soft);
}

.steps::after {
  right: auto;
  width: calc(68% * var(--progress, 0));
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  box-shadow: 0 0 12px rgba(87, 211, 249, 0.6);
  transition: width 0.7s var(--ease);
}

.step {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--dim);
  font-size: 12px;
  letter-spacing: 0.06em;
  transition: color 0.35s ease;
}

.step .en {
  font-style: normal;
  font-size: 8.5px;
  letter-spacing: 0.3em;
  color: rgba(221, 240, 248, 0.3);
  text-transform: uppercase;
  transition: color 0.35s ease, letter-spacing 0.4s var(--ease);
}

.step.is-active .en {
  color: var(--cyan);
  letter-spacing: 0.36em;
}

.step.is-done .en { color: rgba(244, 219, 106, 0.7); }

.step .dot {
  position: relative;
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: all 0.4s var(--ease);
}

.step.is-active { color: var(--ice); }
.step.is-active .dot {
  color: var(--ink);
  background: var(--cyan);
  border-color: transparent;
  box-shadow: 0 0 0 6px rgba(87, 211, 249, 0.14), 0 0 22px rgba(87, 211, 249, 0.55);
  transform: scale(1.06);
}

.step.is-done { color: var(--muted); }
.step.is-done .dot {
  color: var(--gold);
  border-color: rgba(244, 219, 106, 0.5);
  background: rgba(244, 219, 106, 0.1);
}
.step.is-done .dot .num { display: none; }
.step.is-done .dot::after {
  content: "";
  width: 6px; height: 11px;
  border: solid var(--gold);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
  animation: checkPop 0.45s var(--ease) both;
}

@keyframes checkPop {
  from { opacity: 0; transform: rotate(45deg) scale(0.4) translate(-1px, -1px); }
  to { opacity: 1; transform: rotate(45deg) scale(1) translate(-1px, -1px); }
}

/* 视图切换 */
.view { position: relative; }
.view:not([hidden]) { animation: viewIn 0.55s var(--ease) both; }

@keyframes viewIn {
  from { opacity: 0; transform: translateY(16px) scale(0.995); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------------- 表单 ---------------- */

.form { display: grid; gap: 16px; }

.field {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
}

.field-box {
  position: relative;
  display: block;
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition: border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.field-box:focus-within {
  border-color: rgba(87, 211, 249, 0.62);
  box-shadow: 0 0 0 4px rgba(87, 211, 249, 0.12), 0 14px 34px rgba(3, 12, 18, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
}

.field-box input {
  width: 100%;
  padding: 24px 18px 12px;
  background: none;
  border: 0;
  outline: none;
  color: var(--text);
  font-size: 15px;
  font-family: var(--font-body);
}

#cardInput { font-family: var(--font-mono); letter-spacing: 0.12em; }

.field-label {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13.5px;
  color: var(--dim);
  letter-spacing: 0.08em;
  pointer-events: none;
  transition: all 0.28s var(--ease);
}

.field-box input:focus + .field-label,
.field-box input:not(:placeholder-shown) + .field-label {
  top: 13px;
  transform: none;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--cyan);
}

.field-line {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  transform: scaleX(0);
  transition: transform 0.45s var(--ease);
}
.field-box:focus-within .field-line { transform: scaleX(1); }

.field-hint {
  margin: -6px 2px 2px;
  font-size: 11.5px;
  color: var(--dim);
  letter-spacing: 0.03em;
}

/* ---------------- 按钮 ---------------- */

.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 420px;
  margin: 6px auto 0;
  padding: 16px 30px;
  border: 0;
  border-radius: var(--r-pill);
  cursor: pointer;
  overflow: hidden;
  font-family: var(--font-title);
  font-size: 16px;
  letter-spacing: 0.22em;
  color: #14242c;
  background: linear-gradient(135deg, #ffe89a, var(--gold) 45%, #e9c95a);
  box-shadow: 0 14px 36px rgba(244, 219, 106, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease, filter 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 46px rgba(244, 219, 106, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  filter: brightness(1.04);
}

.btn-primary:active { transform: translateY(0) scale(0.985); }
.btn-primary[disabled] { cursor: wait; filter: grayscale(0.25) brightness(0.9); }

.btn-primary .btn-shine {
  position: absolute;
  top: 0; bottom: 0;
  width: 46%;
  left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  transform: skewX(-18deg);
  animation: shineSweep 4.6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shineSweep {
  0%, 62% { left: -60%; }
  85%, 100% { left: 120%; }
}

.btn-primary.compact { width: auto; max-width: none; padding: 13px 26px; font-size: 14px; }

.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 20px;
  border-radius: var(--r-pill);
  cursor: pointer;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--ice);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.32s var(--ease);
  white-space: nowrap;
}

.pill-btn:hover {
  transform: translateY(-2px);
  background: rgba(87, 211, 249, 0.18);
  border-color: rgba(87, 211, 249, 0.5);
  box-shadow: 0 10px 26px rgba(3, 12, 18, 0.45);
}

.pill-btn:active { transform: translateY(0) scale(0.98); }

.pill-btn.ghost { background: transparent; color: var(--muted); }
.pill-btn.ghost:hover { color: var(--ice); background: rgba(221, 240, 248, 0.07); }
.pill-btn.small { padding: 8px 14px; font-size: 11.5px; }

/* 点击涟漪 */
.ripple {
  position: absolute;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: rgba(255, 255, 255, 0.55);
  pointer-events: none;
  animation: rippleOut 0.65s ease-out forwards;
}

@keyframes rippleOut {
  to { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

/* ---------------- 确认页 ---------------- */

.confirm-title {
  margin: 2px 0 20px;
  text-align: center;
  font-family: var(--font-title);
  font-size: 15px;
  letter-spacing: 0.24em;
  color: var(--ice);
}

.quota-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.quota {
  padding: 22px 10px 16px;
  border-radius: 1.3rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  animation: quotaIn 0.6s var(--ease) both;
}
.quota:nth-child(2) { animation-delay: 0.08s; }
.quota:nth-child(3) { animation-delay: 0.16s; }

@keyframes quotaIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.quota b {
  display: block;
  font-family: var(--font-mono);
  font-size: 30px;
  line-height: 1.05;
  color: var(--ice);
  text-shadow: 0 0 22px rgba(87, 211, 249, 0.3);
}

.quota span {
  display: block;
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.quota.is-key b { color: var(--gold); text-shadow: 0 0 24px rgba(244, 219, 106, 0.4); }

.confirm-note {
  margin: 0 0 22px;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--muted);
}
.confirm-note.warn { color: #ffd8a8; }

.confirm-actions,
.fail-actions {
  display: grid;
  justify-items: center;
  gap: 12px;
}

/* ---------------- 进度页 ---------------- */

.status-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 20px;
  margin-bottom: 16px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.status-line b { font-size: 14px; color: var(--ice); letter-spacing: 0.05em; }
.status-tip { font-size: 12px; color: var(--muted); }

.pulse {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(87, 211, 249, 0.6);
  animation: pulseRing 2s ease-out infinite;
}

@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(87, 211, 249, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(87, 211, 249, 0); }
  100% { box-shadow: 0 0 0 0 rgba(87, 211, 249, 0); }
}


/* 实时心跳徽标 */
.hb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 4px 11px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: color 0.3s ease, border-color 0.3s ease;
}

.hb-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7ef0c0;
  box-shadow: 0 0 8px rgba(126, 240, 192, 0.9);
  animation: hbPulse 2s ease-in-out infinite;
}

.hb.warn { color: var(--gold); border-color: rgba(244, 219, 106, 0.35); }
.hb.warn .hb-dot { background: var(--gold); box-shadow: 0 0 8px rgba(244, 219, 106, 0.8); }

.hb.off { color: #ffb3a7; border-color: rgba(244, 162, 97, 0.4); }
.hb.off .hb-dot { background: #ff9b8a; box-shadow: none; animation: none; }

@keyframes hbPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.55; }
}

.target-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding-left: 4px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.target-line b { color: var(--gold); font-family: var(--font-mono); font-size: 13px; }
.target-line .sep { opacity: 0.4; }

.code-panel {
  padding: 24px;
  margin-bottom: 18px;
  border-radius: 1.4rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26), 0 16px 40px rgba(3, 12, 18, 0.32);
}

.code-caption {
  margin: 0 0 14px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.code-big {
  text-align: center;
  font-family: var(--font-mono);
  font-size: clamp(24px, 4.8vw, 36px);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--cyan);
  text-shadow: 0 0 30px rgba(87, 211, 249, 0.45);
  user-select: all;
  word-break: break-all;
  line-height: 1.3;
  min-height: 1.4em;
  padding: 2px 0 4px;
}

.code-big .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(12px) rotate(4deg);
  animation: chIn 0.36s var(--ease) forwards;
}

@keyframes chIn {
  to { opacity: 1; transform: translateY(0) rotate(0); }
}

.code-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 20px 0 14px;
}

.code-hint {
  margin: 0 0 18px;
  text-align: center;
  font-size: 11.5px;
  color: var(--dim);
  letter-spacing: 0.05em;
}

.app-tip {
  margin: 0 auto 18px;
  max-width: 470px;
  padding: 18px 20px;
  border-radius: 1.2rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  animation: viewIn 0.45s var(--ease) both;
}

.app-tip-title { margin: 0 0 8px; font-size: 13px; color: var(--gold); }
.app-tip-desc { margin: 0 0 14px; font-size: 12px; line-height: 1.8; color: var(--muted); }
.app-tip-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.qr-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}

.qr-ring {
  position: relative;
  padding: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(87, 211, 249, 0.22), transparent 70%);
  animation: qrGlow 4s ease-in-out infinite;
}

@keyframes qrGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(87, 211, 249, 0.18); }
  50% { box-shadow: 0 0 34px 6px rgba(87, 211, 249, 0.16); }
}

.qr {
  width: 138px; height: 138px;
  padding: 10px;
  border-radius: 1.1rem;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(3, 12, 18, 0.35);
  display: grid;
  place-items: center;
}

.qr img, .qr canvas { width: 100% !important; height: 100% !important; display: block; }

.qr-side { max-width: 320px; }
.qr-title { margin: 0 0 8px; font-size: 13px; color: var(--gold); letter-spacing: 0.06em; }
.qr-desc { margin: 0 0 10px; font-size: 11.5px; line-height: 1.8; color: var(--muted); }
.countdown {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan);
  letter-spacing: 0.08em;
}

/* 时间线 */
.timeline { display: grid; gap: 4px; margin-bottom: 18px; }

.tl-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 9px 4px;
  font-size: 12.5px;
  color: var(--muted);
  animation: tlIn 0.5s var(--ease) both;
}

@keyframes tlIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

.tl-item i {
  flex: 0 0 auto;
  width: 6px; height: 6px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(87, 211, 249, 0.7);
}

.tl-item.ok i { background: #7ef0c0; box-shadow: 0 0 10px rgba(126, 240, 192, 0.7); }
.tl-item.warn i { background: var(--gold); }
.tl-item.error i { background: var(--warm); }
.tl-item span { line-height: 1.7; }
.tl-item em {
  font-style: normal;
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--dim);
}

.progress-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.foot-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.tiny { font-size: 11px; color: var(--dim); font-family: var(--font-mono); }

/* ---------------- 完成 / 失败 ---------------- */

#viewDone, #viewFail { text-align: center; padding: 6px 0 4px; }

#viewDone { position: relative; }

.burst {
  position: absolute;
  inset: -30px 0 auto;
  width: 100%;
  height: 260px;
  pointer-events: none;
}

.done-heart {
  position: relative;
  height: 116px;
  display: grid;
  place-items: center;
}

.done-heart .heart {
  position: absolute;
  width: 30px; height: 30px;
  fill: var(--gold);
  filter: drop-shadow(0 0 12px rgba(244, 219, 106, 0.55));
  animation: heartRise 3.4s ease-in-out infinite;
}
.done-heart .h1 { left: 26%; }
.done-heart .h2 { width: 46px; height: 46px; fill: var(--cyan); animation-delay: 0.9s; filter: drop-shadow(0 0 16px rgba(87, 211, 249, 0.6)); }
.done-heart .h3 { left: 71%; width: 22px; height: 22px; animation-delay: 1.8s; }

@keyframes heartRise {
  0% { transform: translateY(26px) scale(0.8); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(-46px) scale(1.1); opacity: 0; }
}

.done-heart .halo {
  width: 120px; height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 219, 106, 0.22), transparent 68%);
  animation: haloPulse 3s ease-in-out infinite;
}

@keyframes haloPulse {
  0%, 100% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.12); opacity: 1; }
}

.done-title, .fail-title {
  margin: 8px 0 12px;
  font-family: var(--font-title);
  font-size: clamp(21px, 3.4vw, 28px);
  letter-spacing: 0.16em;
  color: #fff;
  text-shadow: 0 0 28px rgba(87, 211, 249, 0.35);
}

.done-sub, .fail-sub {
  margin: 0 auto 18px;
  max-width: 470px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
}

.done-tags {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 0 22px;
}

.tag {
  padding: 7px 16px;
  border-radius: var(--r-pill);
  font-size: 11.5px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: tagIn 0.5s var(--ease) both;
}

@keyframes tagIn {
  from { opacity: 0; transform: translateY(8px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.tag.ok { color: #a9f5d4; border-color: rgba(126, 240, 192, 0.35); }
.tag.warn { color: var(--gold); border-color: rgba(244, 219, 106, 0.4); }
.tag.bad { color: #ffb3a7; border-color: rgba(244, 162, 97, 0.4); }

#viewFail.is-shake { animation: shake 0.5s ease; }

@keyframes shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-7px); }
  40%, 60% { transform: translateX(7px); }
}

/* ---------------- 领取流程（国际服同款图片卡片） ---------------- */

.explain {
  margin-top: 56px;
  padding: 0;
  background: none;
  border: 0;
  backdrop-filter: none;
}

.section-head {
  margin-bottom: 22px;
  padding: 0 4px;
}

.section-kicker {
  margin: 0 0 10px;
  font-size: 10px;
  letter-spacing: 0.42em;
  color: var(--cyan);
  text-transform: uppercase;
}

.section-title {
  margin: 0 0 8px;
  font-family: var(--font-title);
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fff;
}

.section-sub {
  margin: 0;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.flow-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 2.2rem 1.2rem 1.8rem 1.4rem;
  min-height: 232px;
  padding: 26px 24px 24px;
  isolation: isolate;
  background:
    radial-gradient(1.4px 1.4px at 22% 26%, rgba(255, 255, 255, 0.45), transparent 100%),
    radial-gradient(1.2px 1.2px at 70% 18%, rgba(244, 219, 106, 0.45), transparent 100%),
    radial-gradient(1.6px 1.6px at 84% 70%, rgba(255, 255, 255, 0.3), transparent 100%),
    linear-gradient(
      155deg,
      rgba(255, 255, 255, 0.13) 0%,
      rgba(255, 255, 255, 0.06) 42%,
      rgba(255, 255, 255, 0.03) 100%
    );
  border: 1px solid rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  box-shadow:
    0 24px 60px rgba(3, 12, 18, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -18px 40px rgba(6, 22, 32, 0.22);
  animation: floatCard 7.5s ease-in-out infinite;
  transition: transform 0.6s var(--ease), border-color 0.4s ease, box-shadow 0.6s ease,
    background 0.5s ease;
}

.flow-card:nth-child(2) { animation-delay: -2.5s; }
.flow-card:nth-child(3) { animation-delay: -5s; }

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* 卡内的呼吸光晕 */
.flow-glow {
  position: absolute;
  top: -40%;
  left: -20%;
  width: 90%;
  height: 120%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(87, 211, 249, 0.22), transparent 62%);
  filter: blur(18px);
  opacity: 0.75;
  transition: opacity 0.6s ease, transform 0.8s var(--ease);
  pointer-events: none;
  z-index: -1;
}

.flow-card:nth-child(2) .flow-glow {
  background: radial-gradient(circle, rgba(244, 219, 106, 0.2), transparent 62%);
  left: 30%;
}

.flow-card:nth-child(3) .flow-glow {
  background: radial-gradient(circle, rgba(221, 240, 248, 0.18), transparent 62%);
  left: 10%;
}

.flow-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 50%;
  color: var(--cyan);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 8px 20px rgba(3, 12, 18, 0.3);
  transition: transform 0.6s var(--ease), color 0.4s ease, background 0.4s ease;
}

.flow-icon svg { width: 22px; height: 22px; }

.flow-card:nth-child(2) .flow-icon { color: var(--gold); }
.flow-card:nth-child(3) .flow-icon { color: var(--ice); }

.flow-body {
  position: relative;
  padding: 0;
}

.flow-en {
  display: block;
  margin-bottom: 8px;
  font-size: 9px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(87, 211, 249, 0.8);
}

.flow-ghost {
  position: absolute;
  top: 10px;
  right: 18px;
  font-family: var(--font-mono);
  font-size: 54px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.16);
  mix-blend-mode: screen;
  transition: color 0.5s ease, transform 0.6s var(--ease);
  pointer-events: none;
}

.flow-title {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-title);
  font-size: 17px;
  letter-spacing: 0.1em;
  color: #fff;
  transition: color 0.35s ease;
}

.flow-desc {
  margin: 0;
  max-width: 92%;
  font-size: 12px;
  line-height: 1.85;
  color: rgba(221, 240, 248, 0.72);
}

.flow-arrow {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 14px;
  color: var(--cyan);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0.8;
  transition: transform 0.45s var(--ease), opacity 0.35s ease, color 0.35s ease,
    border-color 0.35s ease, background 0.35s ease;
}

/* 悬停：暂停漂浮、抬升、泛光 */
.flow-card:hover {
  animation-play-state: paused;
  transform: translateY(-14px) scale(1.02);
  border-color: rgba(87, 211, 249, 0.55);
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.09) 45%,
    rgba(255, 255, 255, 0.05) 100%
  );
  box-shadow:
    0 36px 80px rgba(3, 12, 18, 0.55),
    0 0 0 1px rgba(87, 211, 249, 0.28),
    0 0 42px rgba(87, 211, 249, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.flow-card:hover .flow-glow {
  opacity: 1;
  transform: scale(1.15) translateY(-6px);
}

.flow-card:hover .flow-icon {
  transform: translateY(-3px) rotate(-6deg) scale(1.06);
  background: rgba(255, 255, 255, 0.18);
}

.flow-card:hover .flow-title { color: var(--gold); }

.flow-card:hover .flow-ghost {
  color: rgba(244, 219, 106, 0.42);
  transform: translateY(-4px);
}

.flow-card:hover .flow-arrow {
  transform: translateX(4px) rotate(-45deg);
  opacity: 1;
  color: var(--ink);
  background: var(--gold);
  border-color: transparent;
}

/* 只抬升内容层，绝对定位的编号/箭头不受影响 */
.flow-card > .flow-body,
.flow-card > .flow-icon {
  position: relative;
  z-index: 1;
}

.flow-card::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: -14%;
  right: -14%;
  bottom: -12px;
  height: 76px;
  background: url("/static/img/clouds/cloud-white--bottom.png") center bottom / 150% auto no-repeat;
  opacity: 0.26;
  mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 86%);
  mask-image: linear-gradient(to top, #000 0%, transparent 86%);
  pointer-events: none;
  z-index: 0;
}

.flow-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

/* ---------------- 滚动揭示 ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.is-in { opacity: 1; transform: none; }

/* ---------------- Toast ---------------- */

.toast {
  position: fixed;
  right: 26px;
  top: 26px;
  z-index: 130;
  max-width: min(340px, 78vw);
  padding: 14px 20px;
  border-radius: 1.1rem;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
  background: rgba(10, 31, 42, 0.94);
  border: 1px solid rgba(221, 240, 248, 0.18);
  box-shadow: 0 18px 44px rgba(3, 12, 18, 0.55);
  backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(-12px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
}

.toast.show { opacity: 1; transform: translateY(0) scale(1); }
.toast.ok { border-color: rgba(126, 240, 192, 0.4); }
.toast.err { border-color: rgba(244, 162, 97, 0.45); }

/* ---------------- 响应式 ---------------- */

@media (max-width: 720px) {
  .topbar { padding: 14px 16px; }
  .brand { padding: 6px 14px 6px 8px; }
  .brand-text i { display: none; }
  .hero { min-height: 56vh; padding: 12px 0 22px; }
  .hero-kicker { font-size: 9px; letter-spacing: 0.22em; padding: 0 14px; }
  .hero-title .line2 { letter-spacing: 0.16em; }
  .steps::before, .steps::after { left: 14%; right: 14%; }
  .step .dot { width: 30px; height: 30px; font-size: 10px; }
  .steps::before, .steps::after { top: 15px; }
  .card { padding: 20px 16px; border-radius: 1.2rem; }
  .field { grid-template-columns: 1fr; }
  .field .pill-btn { justify-self: end; }
  .qr-wrap { flex-direction: column; }
  .qr-side { text-align: center; }
  .progress-foot { flex-direction: column-reverse; align-items: flex-start; }
  .quota-grid { gap: 8px; }
  .quota b { font-size: 24px; }
  .toast { left: 12px; right: 12px; top: 12px; max-width: none; }
  .explain { margin-top: 34px; }
  .flow-grid { grid-template-columns: 1fr; gap: 12px; }
  .flow-card { min-height: 190px; border-radius: 1.6rem 1rem 1.4rem 1.1rem; padding: 20px 18px 18px; }
  .card::before { height: 72px; }
  .card::after { height: 84px; }
  .flow-ghost { font-size: 44px; top: 8px; right: 14px; }
  .flow-icon { width: 38px; height: 38px; margin-bottom: 12px; }
  .flow-icon svg { width: 19px; height: 19px; }
  .flow-body { padding: 18px 18px 20px; }
  .flow-arrow { right: 16px; bottom: 18px; }
  .cursor-light { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .bg-video { display: none; }
}

/* 公告弹窗 */
.notice-modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 20px;
}

.notice-mask {
  position: absolute;
  inset: 0;
  background: rgba(4, 12, 18, 0.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: maskIn 0.35s ease both;
}

@keyframes maskIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.notice-dialog {
  position: relative;
  width: min(560px, 92vw);
  max-height: min(78vh, 640px);
  display: flex;
  flex-direction: column;
  padding: 22px 24px 18px;
  border-radius: 1.5rem;
  background: linear-gradient(155deg, rgba(28, 58, 76, 0.96), rgba(10, 32, 44, 0.97));
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 30px 80px rgba(2, 8, 12, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  animation: noticePop 0.42s var(--ease) both;
}

@keyframes noticePop {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.notice-dialog .notice-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(221, 240, 248, 0.12);
}

.notice-dialog .notice-body {
  flex: 1;
  overflow-y: auto;
  padding-right: 4px;
  font-size: 13px;
  line-height: 1.95;
  color: rgba(221, 240, 248, 0.86);
}

.notice-dialog .notice-body::-webkit-scrollbar { width: 6px; }
.notice-dialog .notice-body::-webkit-scrollbar-thumb {
  background: rgba(221, 240, 248, 0.25);
  border-radius: 3px;
}

.notice-foot {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}

.notice-foot .btn-primary { width: auto; max-width: none; padding: 12px 40px; font-size: 14px; }

/* ---------------- 按钮加载动画（懒加载） ---------------- */

.btn-primary.is-loading,
.pill-btn.is-loading {
  pointer-events: none;
}

.btn-primary.is-loading::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 9px;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  border: 2px solid rgba(11, 26, 34, 0.28);
  border-top-color: #0b1a22;
  animation: spin 0.7s linear infinite;
}

.btn-primary.is-loading {
  padding-top: 28px;
  padding-bottom: 20px;
}

.btn-primary.is-loading::after {
  content: "";
  position: absolute;
  left: 20%;
  right: 20%;
  bottom: 14px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(11, 26, 34, 0.5), transparent);
  background-size: 55% 100%;
  background-repeat: no-repeat;
  animation: lightSweep 1.1s ease-in-out infinite;
}

.pill-btn.is-loading::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  vertical-align: -1px;
  border-radius: 50%;
  border: 2px solid rgba(221, 240, 248, 0.3);
  border-top-color: rgba(221, 240, 248, 0.95);
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes lightSweep {
  from { background-position: -55% 0; }
  to { background-position: 155% 0; }
}
