﻿:root {
  --pitch: #146336;
  --lime: #d4ff4f;
  --gold: #f0c14b;
  --ink: #07110a;
  --fog: rgba(255, 255, 255, 0.9);
  --delay: 10;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--ink);
  font-family: "Noto Sans", sans-serif;
  -webkit-tap-highlight-color: transparent;
}

.fullscreen-iframe {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.65s ease;
}

.fullscreen-iframe.is-ready {
  opacity: 1;
  pointer-events: auto;
}

.gate {
  position: fixed;
  inset: 0;
  z-index: 10;
  color: #fff;
  overflow: hidden;
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}

.gate.is-done {
  opacity: 0;
  transform: scale(1.06);
  pointer-events: none;
}

/* —— 背景层 —— */
.gate__stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.gate__media {
  position: absolute;
  inset: -4%;
  transform: scale(1.12);
  animation: drift 10s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
  will-change: transform;
}

@keyframes drift {
  to { transform: scale(1); }
}

.gate__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  opacity: 0;
  transition: opacity 1s ease;
}

.gate__slide.is-active {
  opacity: 1;
}

.gate__slide:nth-child(2) {
  object-position: center 30%;
}

.gate__slide:nth-child(3) {
  object-position: center 35%;
}

.gate__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 17, 10, 0.45) 0%, rgba(7, 17, 10, 0.08) 28%, rgba(7, 17, 10, 0.2) 52%, rgba(7, 17, 10, 0.92) 100%),
    radial-gradient(ellipse 90% 55% at 50% 0%, rgba(240, 193, 75, 0.22), transparent 60%),
    radial-gradient(ellipse 70% 40% at 80% 70%, rgba(20, 99, 54, 0.35), transparent 55%);
  pointer-events: none;
}

.gate__rays {
  position: absolute;
  inset: -20%;
  background: conic-gradient(
    from 200deg at 30% 18%,
    transparent 0deg,
    rgba(255, 236, 180, 0.12) 18deg,
    transparent 36deg,
    transparent 70deg,
    rgba(212, 255, 79, 0.08) 88deg,
    transparent 110deg
  );
  animation: rays 8s ease-in-out infinite alternate;
  mix-blend-mode: screen;
  pointer-events: none;
}

@keyframes rays {
  from { transform: rotate(-4deg) scale(1); opacity: 0.55; }
  to { transform: rotate(6deg) scale(1.08); opacity: 0.95; }
}

.gate__pitch {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(90deg, transparent 0 48%, rgba(255, 255, 255, 0.5) 49.5%, rgba(255, 255, 255, 0.5) 50.5%, transparent 52%),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 14px,
      rgba(255, 255, 255, 0.06) 14px,
      rgba(255, 255, 255, 0.06) 28px
    );
  mask-image: linear-gradient(180deg, transparent 40%, #000 78%);
  pointer-events: none;
  animation: pitchShift 10s linear forwards;
}

@keyframes pitchShift {
  from { transform: translateY(12px); }
  to { transform: translateY(0); }
}

.gate__grain {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.gate__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.gate__particles span {
  position: absolute;
  bottom: -8%;
  width: 5px;
  height: 5px;
  background: rgba(212, 255, 79, 0.55);
  border-radius: 1px;
  animation: floatUp linear infinite;
  opacity: 0;
}

.gate__particles span:nth-child(1) { left: 12%; animation-duration: 7s; animation-delay: 0s; }
.gate__particles span:nth-child(2) { left: 28%; width: 3px; height: 3px; animation-duration: 9s; animation-delay: 1.2s; background: rgba(240, 193, 75, 0.5); }
.gate__particles span:nth-child(3) { left: 46%; animation-duration: 6.5s; animation-delay: 0.6s; }
.gate__particles span:nth-child(4) { left: 63%; width: 4px; height: 4px; animation-duration: 8s; animation-delay: 2s; }
.gate__particles span:nth-child(5) { left: 78%; animation-duration: 7.5s; animation-delay: 0.3s; background: rgba(255, 255, 255, 0.45); }
.gate__particles span:nth-child(6) { left: 88%; width: 3px; height: 3px; animation-duration: 10s; animation-delay: 1.8s; }

@keyframes floatUp {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  12% { opacity: 0.8; }
  100% { transform: translateY(-110vh) rotate(160deg); opacity: 0; }
}

.gate__watermark {
  position: absolute;
  left: -4%;
  bottom: 18%;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(7rem, 42vw, 14rem);
  line-height: 0.8;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.06);
  white-space: nowrap;
  pointer-events: none;
  animation: watermarkIn 1.2s ease both;
  user-select: none;
}

@keyframes watermarkIn {
  from { opacity: 0; transform: translateX(-24px); }
  to { opacity: 1; transform: translateX(0); }
}

/* —— 顶栏 —— */
.gate__top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(18px, env(safe-area-inset-top)) 22px 0;
  animation: topIn 0.8s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes topIn {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

.gate__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Bebas Neue", "Noto Sans", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.gate__logo-mark {
  width: 28px;
  height: 28px;
  background: var(--lime);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.gate__match {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  display: flex;
  align-items: center;
  gap: 8px;
}

.gate__match i {
  width: 7px;
  height: 7px;
  background: #ff4d4d;
  display: inline-block;
  animation: blink 1.2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

/* —— 主内容 —— */
.gate__content {
  position: relative;
  z-index: 2;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 24px max(28px, env(safe-area-inset-bottom));
}

.gate__intro {
  animation: rise 0.95s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(36px); }
  to { opacity: 1; transform: translateY(0); }
}

.gate__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--gold);
  margin-bottom: 12px;
  animation: rise 0.9s 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.gate__brand {
  font-family: "Bebas Neue", "Noto Sans", sans-serif;
  font-size: clamp(2.6rem, 12vw, 4.2rem);
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--lime);
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  position: relative;
}

.gate__brand::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 14px;
  background: linear-gradient(90deg, var(--lime), var(--gold));
  animation: lineGrow 0.8s 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  transform-origin: left;
}

@keyframes lineGrow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.gate__headline {
  margin-top: 18px;
  font-size: clamp(1.45rem, 6vw, 1.95rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.4;
  max-width: 12em;
  animation: rise 0.95s 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.gate__headline em {
  font-style: normal;
  color: var(--lime);
}

.gate__sub {
  margin-top: 12px;
  max-width: 20em;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--fog);
  opacity: 0.92;
  animation: rise 0.95s 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.gate__hook {
  margin-top: 14px;
  min-height: 1.5em;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--gold);
  animation: rise 0.95s 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.gate__hook span {
  display: inline-block;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.gate__hook span.is-on {
  opacity: 1;
  transform: translateY(0);
}

/* —— CTA + 环形倒计时 —— */
.gate__cta {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  animation: rise 0.95s 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.gate__btn {
  appearance: none;
  border: 0;
  background: var(--lime);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 15px 24px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, background 0.2s ease;
}

.gate__btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.35) 50%, transparent 60%);
  transform: translateX(-120%);
  animation: sheen 2.8s ease-in-out infinite;
}

@keyframes sheen {
  0%, 55% { transform: translateX(-120%); }
  80%, 100% { transform: translateX(120%); }
}

.gate__btn:active {
  transform: scale(0.97);
  background: #e3ff7a;
}

.gate__btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s ease;
}

.gate__btn:hover svg {
  transform: translateX(3px);
}

.gate__ring {
  position: relative;
  width: 58px;
  height: 58px;
  flex-shrink: 0;
}

.gate__ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.gate__ring-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 3.5;
}

.gate__ring-bar {
  fill: none;
  stroke: var(--lime);
  stroke-width: 3.5;
  stroke-linecap: butt;
  stroke-dasharray: 138.2;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear;
}

.gate__ring-num {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: #fff;
}

.gate__ring-num span {
  color: var(--lime);
}

/* —— 底部滚动条 —— */
.gate__ticker {
  margin-top: 26px;
  margin-left: -24px;
  margin-right: -24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 14px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  animation: rise 0.95s 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.gate__ticker-track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: marquee 18s linear infinite;
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
}

.gate__ticker-track span {
  padding: 0 18px;
}

.gate__ticker-track em {
  font-style: normal;
  color: var(--gold);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* —— 进度条 —— */
.gate__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
  z-index: 3;
  overflow: hidden;
}

.gate__progress i {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--pitch), var(--lime), var(--gold));
  transform: scaleX(0);
  transform-origin: left center;
}

body:not(.is-booting) .gate__progress i {
  animation: gateFill 10s linear forwards;
}

@keyframes gateFill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes fillBar {
  to { width: 100%; }
}

.gate.is-done .gate__progress i,
.gate.is-done .gate__ring-bar {
  animation: none;
  transform: scaleX(1);
}

/* —— 进站开场缓冲（黑底橙标） —— */
.splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse 80% 50% at 50% 20%, rgba(20, 99, 54, 0.55), transparent 60%),
    radial-gradient(ellipse 70% 45% at 70% 80%, rgba(212, 255, 79, 0.08), transparent 55%),
    var(--ink);
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.splash.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash__flash {
  position: absolute;
  inset: 0;
  background: var(--lime);
  opacity: 0;
  pointer-events: none;
  animation: introFlash 0.55s ease-out both;
}

@keyframes introFlash {
  0% { opacity: 0.35; }
  100% { opacity: 0; }
}

.splash__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  padding: 0 28px;
  color: #fff;
  text-align: center;
}

.splash__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Arial Black", "Helvetica Neue", "Noto Sans", sans-serif;
  font-size: clamp(2rem, 9vw, 2.8rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  user-select: none;
  animation: logoPop 0.7s 0.05s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}

@keyframes logoPop {
  0% { transform: scale(0.2); opacity: 0; filter: brightness(2); }
  55% { transform: scale(1.08); opacity: 1; filter: brightness(1.2); }
  100% { transform: scale(1); opacity: 1; filter: brightness(1); }
}

.splash__logo-text {
  color: #fff;
}

.splash__logo-badge {
  display: inline-block;
  background: var(--lime);
  color: var(--ink);
  padding: 0.12em 0.28em 0.18em;
  border-radius: 0.28em;
  margin-left: 0.06em;
  transform-origin: left center;
  animation: badgeSlide 0.55s 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes badgeSlide {
  from { transform: scaleX(0); opacity: 0; }
  to { transform: scaleX(1); opacity: 1; }
}

.splash__load {
  margin: 28px auto 0;
  width: min(100%, 260px);
  animation: fadeUp 0.5s 0.45s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.splash__load-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.splash__load-bar {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--pitch), var(--lime));
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.splash__meta {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
  font-family: Arial, "Noto Sans", sans-serif;
}

.splash__meta strong {
  color: var(--lime);
  font-weight: 700;
}

.splash__tip {
  margin-top: 24px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
  animation: fadeUp 0.5s 0.6s both;
}

/* —— 进入目标站弹窗（留人） —— */
.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal__mask {
  position: absolute;
  inset: 0;
  background: rgba(4, 10, 6, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 360px);
  padding: 28px 24px 24px;
  background:
    linear-gradient(165deg, rgba(26, 72, 40, 0.96) 0%, rgba(8, 16, 10, 0.98) 55%, rgba(12, 22, 14, 1) 100%);
  border: 1px solid rgba(212, 255, 79, 0.22);
  color: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  transform: translateY(18px) scale(0.96);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

.modal.is-open .modal__panel {
  transform: translateY(0) scale(1);
}

.modal__panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--pitch), var(--lime), var(--gold));
  transform: scaleX(0);
  transform-origin: left center;
}

.modal.is-open .modal__panel::before {
  animation: modalFill 10s linear forwards;
}

@keyframes modalFill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.modal__eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin-bottom: 10px;
}

.modal__title {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.modal__title em {
  font-style: normal;
  color: var(--lime);
}

.modal__desc {
  margin-top: 10px;
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
}

.modal__spin {
  margin: 26px auto 18px;
  width: 92px;
  height: 92px;
  position: relative;
}

.modal__spin-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--lime);
  border-right-color: var(--gold);
  animation: spin 1.1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.modal__spin-core {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.28);
  display: grid;
  place-items: center;
  font-family: "Bebas Neue", sans-serif;
  font-size: 2rem;
  color: var(--lime);
  letter-spacing: 0.04em;
  line-height: 1;
}

.modal__spin-core small {
  display: block;
  margin-top: 2px;
  font-family: "Noto Sans", sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}

.modal__tip {
  text-align: center;
  min-height: 3.2em;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--fog);
}

.modal__tip span {
  display: inline-block;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.modal__tip span.is-on {
  opacity: 1;
  transform: translateY(0);
}

.modal__steps {
  margin-top: 20px;
  display: grid;
  gap: 10px;
}

.modal__step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.42);
  transition: color 0.3s ease;
}

.modal__step i {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  font-style: normal;
  color: transparent;
  transition: all 0.3s ease;
}

.modal__step.is-done {
  color: rgba(212, 255, 79, 0.9);
}

.modal__step.is-done i {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
}

.modal__step.is-active {
  color: #fff;
}

.modal__step.is-active i {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 4px rgba(240, 193, 75, 0.25);
  animation: stepPulse 1s ease-in-out infinite;
}

@keyframes stepPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.modal__foot {
  margin-top: 18px;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
}

body.is-booting .gate,
body.is-booting .modal {
  visibility: hidden;
}

@media (min-width: 768px) {
  .gate__content {
    max-width: 520px;
    margin: 0 auto;
    padding-bottom: 48px;
  }

  .gate__top {
    max-width: 520px;
    margin: 0 auto;
    left: 0;
    right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gate__media,
  .gate__rays,
  .gate__particles span,
  .gate__ticker-track,
  .gate__btn::before,
  .gate__progress i,
  .splash__logo,
  .splash__logo-badge,
  .splash__flash,
  .splash__load,
  .splash__tip,
  .modal__spin-ring,
  .modal__step.is-active i,
  .modal__panel::before {
    animation: none !important;
  }

  .gate__media {
    transform: none;
  }

  .gate__slide {
    transition: none;
  }
}
