/* ============ 首屏 Hero：视差 / 进场 / 按钮能量感 ============ */
.hero {
  min-height: 100svh;
  --mx: 0;
  --my: 0;
  background: #05060d;
}

/* 鼠标视差：各层不同深度 */
.hero .stage-bg {
  object-position: center center;
  transform: scale(1.018) translate3d(calc(var(--mx) * -10px), calc(var(--my) * -7px), 0);
  will-change: transform;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 6, 13, 0.2) 0%, rgba(5, 6, 13, 0.02) 42%, rgba(5, 6, 13, 0.2) 100%),
    linear-gradient(180deg, rgba(5, 6, 13, 0.04) 0%, rgba(5, 6, 13, 0.02) 66%, rgba(5, 6, 13, 0.56) 100%);
  pointer-events: none;
}

.hero-logo {
  position: absolute;
  z-index: 8;
  left: clamp(18px, 2.4vw, 42px);
  top: clamp(28px, 6.5vh, 74px);
  width: clamp(168px, 15vw, 288px);
  filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.52)) drop-shadow(0 0 16px rgba(137, 88, 255, 0.36));
  transform: translate3d(calc(var(--mx) * 8px), calc(var(--my) * 5px), 0);
  will-change: transform;
}

/* 斜向流光 */
.hero-streaks {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.hero-streaks i {
  position: absolute;
  top: -20%;
  width: 2px;
  height: 36%;
  background: linear-gradient(180deg, transparent, var(--cyan), transparent);
  opacity: 0;
  transform: rotate(24deg);
  animation: streakFall 5.4s linear infinite;
}

.hero-streaks i:nth-child(1) { left: 16%; animation-delay: 0s; }
.hero-streaks i:nth-child(2) { left: 38%; height: 26%; animation-delay: 1.6s; background: linear-gradient(180deg, transparent, var(--lime), transparent); }
.hero-streaks i:nth-child(3) { left: 64%; animation-delay: 3.1s; }
.hero-streaks i:nth-child(4) { left: 86%; height: 30%; animation-delay: 4.2s; background: linear-gradient(180deg, transparent, var(--magenta), transparent); }

@keyframes streakFall {
  0% { transform: rotate(24deg) translateY(-30vh); opacity: 0; }
  12% { opacity: 0.8; }
  46% { opacity: 0.5; }
  70%, 100% { transform: rotate(24deg) translateY(150vh); opacity: 0; }
}

.hero-copy {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.hero-copy p:not(.eyebrow) {
  margin-top: 18px;
  font-size: 17px;
}

.hero-banner {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: auto;
  bottom: clamp(188px, 19vh, 224px);
  width: min(50vw, 956px);
  transform: translate(calc(-50% + var(--mx) * 18px), calc(var(--my) * 12px));
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.62));
  will-change: transform;
}

.hero-action {
  position: absolute;
  z-index: 8;
  left: 50%;
  bottom: clamp(58px, 7.4vh, 86px);
  display: grid;
  justify-items: center;
  gap: clamp(8px, 1.3vh, 16px);
  width: min(37vw, 640px);
  transform: translate(calc(-50% + var(--mx) * 8px), calc(var(--my) * 6px));
}

.hero-title-img {
  width: min(100%, 520px);
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.5));
}

.hero-button {
  position: relative;
  width: min(74%, 440px);
  min-width: 278px;
  overflow: hidden;
  border: 0;
  background: none;
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease;
  animation: btnBreathe 2.6s ease-in-out infinite;
}

/* 扫光 */
.hero-button::after {
  content: "";
  position: absolute;
  top: -24%;
  bottom: -24%;
  left: -34%;
  width: 32%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: skewX(-18deg) translateX(-160%);
  animation: shineSweep 3.4s ease-in-out infinite;
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-button:hover {
  animation: none;
  transform: scale(1.035);
  filter: brightness(1.1) drop-shadow(0 0 26px rgba(182, 255, 61, 0.5));
}

.hero-button:active {
  transform: scale(0.99);
}

@keyframes btnBreathe {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(182, 255, 61, 0.25)); }
  50% { filter: drop-shadow(0 0 26px rgba(182, 255, 61, 0.55)) brightness(1.05); }
}

@keyframes shineSweep {
  0%, 52% { transform: skewX(-18deg) translateX(-160%); }
  78%, 100% { transform: skewX(-18deg) translateX(480%); }
}

.registered-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #10120a;
  font-size: clamp(21px, 2vw, 32px);
  font-weight: 900;
}

.hero-pills {
  position: absolute;
  z-index: 9;
  right: clamp(26px, 2.6vw, 52px);
  top: 40.5%;
  display: grid;
  gap: clamp(12px, 2vh, 20px);
  width: min(20.5vw, 392px);
  min-width: 292px;
  transform: translate3d(calc(var(--mx) * 22px), calc(var(--my) * 14px), 0);
}

.floating-pill {
  --pill-offset-x: 0px;
  border: 0;
  background: none;
  cursor: pointer;
  animation: floaty 5.6s ease-in-out infinite;
  transform: translateX(var(--pill-offset-x));
  transition: transform 0.18s ease, filter 0.18s ease;
}

.floating-pill:nth-child(2) {
  --pill-offset-x: -10px;
  animation-delay: 0.35s;
}

.floating-pill:nth-child(3) {
  --pill-offset-x: 0px;
  animation-delay: 0.7s;
}

.hero-bottom-strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 7;
  height: clamp(34px, 3.8vh, 46px);
  overflow: hidden;
  background: #050608;
  box-shadow: 0 -10px 18px rgba(0, 0, 0, 0.34);
  pointer-events: none;
}

.strip-left {
  position: absolute;
  inset: 0 auto 0 0;
  width: min(34vw, 660px);
  background: url("../assets/下方条左边.png") left center / 252px 100% repeat-x;
  opacity: 0.22;
  -webkit-mask-image: linear-gradient(90deg, #000 58%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 58%, transparent 100%);
  animation: stripChecker 16s linear infinite;
}

/* 菱形格纹缓慢横移，按整张贴图宽度循环保证无缝 */
@keyframes stripChecker {
  to { background-position-x: -252px; }
}

.strip-right {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(34vw, 660px);
  background: url("../assets/下方条右边.png") right center / cover no-repeat;
  opacity: 0.45;
  -webkit-mask-image: linear-gradient(270deg, #000 64%, transparent 100%);
  mask-image: linear-gradient(270deg, #000 64%, transparent 100%);
}

.strip-text {
  position: absolute;
  right: clamp(14px, 1.8vw, 32px);
  top: 50%;
  height: 48%;
  width: auto;
  transform: translateY(-50%);
}

.floating-pill:hover {
  transform: translateX(var(--pill-offset-x)) scale(1.035);
  filter: brightness(1.08) drop-shadow(0 0 22px rgba(182, 255, 61, 0.4));
}

@keyframes floaty {
  0%, 100% { transform: translateX(var(--pill-offset-x)) translateY(0); }
  50% { transform: translateX(var(--pill-offset-x)) translateY(-13px); }
}

.scroll-cue {
  position: absolute;
  z-index: 9;
  left: 50%;
  bottom: 20px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  transform: translateX(-50%);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.scroll-cue:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 18px rgba(63, 231, 255, 0.4);
}

.scroll-cue span {
  width: 5px;
  height: 10px;
  border-radius: 999px;
  background: var(--cyan);
  animation: cue 1.5s ease-in-out infinite;
}

@keyframes cue {
  0%, 100% { transform: translateY(-6px); opacity: 0.6; }
  50% { transform: translateY(8px); opacity: 1; }
}

/* ---- 开屏后 Hero 进场（preloader 揭开瞬间触发） ---- */
@keyframes bannerIn {
  from {
    opacity: 0;
    transform: translate(-50%, 48px) scale(0.9);
    filter: brightness(2.2) drop-shadow(0 12px 28px rgba(0, 0, 0, 0.62));
  }
}

@keyframes centerRiseIn {
  from { opacity: 0; transform: translate(-50%, 44px); }
}

body.loaded .hero-logo { animation: riseIn 0.8s var(--ease-out) 0.05s backwards; }
body.loaded .hero-banner { animation: bannerIn 0.95s var(--ease-out) 0.3s backwards, imgGlitch 9s 4s infinite; }
body.loaded .hero-action { animation: centerRiseIn 0.95s var(--ease-out) 0.48s backwards; }
body.loaded .floating-pill:nth-child(1) img { animation: slideInRight 0.8s var(--ease-out) 0.55s backwards; }
body.loaded .floating-pill:nth-child(2) img { animation: slideInRight 0.8s var(--ease-out) 0.66s backwards; }
body.loaded .floating-pill:nth-child(3) img { animation: slideInRight 0.8s var(--ease-out) 0.77s backwards; }
body.loaded .scroll-cue { animation: fadeIn 1s ease 1.05s backwards; }
body.loaded .hero-bottom-strip { animation: fadeIn 0.7s ease 0.5s backwards; }
