/* ================================================================== *
 * home.css — 主页（index.html）
 * 深空质感 + 视差星空 + 3D 轨道 + 柔和扫光
 * ================================================================== */

:root {
  --bg: #05070d;
  --bg-soft: #0a0f1a;
  --line: rgba(148, 163, 184, 0.16);
  --line-hi: rgba(94, 225, 255, 0.42);
  --text: #eaf1ff;
  --muted: #93a3bd;
  --cyan: #5ee7ff;
  --violet: #a78bfa;
  --amber: #ffb347;
  --orange: #ff7043;
  --radius: 20px;
  --ease: cubic-bezier(0.22, 0.72, 0.24, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 "PingFang SC", "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

[hidden] {
  display: none !important;
}

/* ------------------------------ 背景层 ------------------------------ */

.starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  width: 46vw;
  height: 46vw;
  min-width: 380px;
  min-height: 380px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.34;
  animation: drift 26s var(--ease) infinite alternate;
}

.blob-a {
  top: -14vw;
  left: -10vw;
  background: radial-gradient(circle, #1e6fff 0%, rgba(30, 111, 255, 0) 70%);
}

.blob-b {
  top: 8vw;
  right: -14vw;
  background: radial-gradient(circle, #8b5cf6 0%, rgba(139, 92, 246, 0) 70%);
  animation-delay: -9s;
}

.blob-c {
  bottom: -18vw;
  left: 28vw;
  background: radial-gradient(circle, #ff7043 0%, rgba(255, 112, 67, 0) 70%);
  opacity: 0.22;
  animation-delay: -16s;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(5vw, 4vh, 0) scale(1.14);
  }
}

.grid-lines {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(circle at 50% 20%, #000 0%, transparent 74%);
  mask-image: radial-gradient(circle at 50% 20%, #000 0%, transparent 74%);
  opacity: 0.6;
}

/* 鼠标柔光：跟随但带惯性，混合模式只提亮不糊字 */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  transition: opacity 0.7s ease;
  background: radial-gradient(circle,
      rgba(94, 225, 255, 0.13) 0%,
      rgba(126, 160, 255, 0.08) 34%,
      rgba(167, 139, 250, 0.05) 52%,
      transparent 70%);
  will-change: transform;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 80;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--violet) 58%, var(--amber) 100%);
  box-shadow: 0 0 14px rgba(94, 225, 255, 0.6);
  pointer-events: none;
}

main,
.nav,
.footer {
  position: relative;
  z-index: 1;
}

/* ------------------------------ 导航 ------------------------------ */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px clamp(16px, 4vw, 48px);
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(6, 9, 16, 0.7);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  color: #061018;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  box-shadow: 0 8px 22px rgba(94, 225, 255, 0.35);
  transition: transform 0.4s var(--ease), box-shadow 0.4s ease;
}

/* 箭头取自游戏本体的 Arrow.Tip 素材：反色成深色，压在亮渐变上 */
.brand-mark img {
  width: 21px;
  height: auto;
  filter: brightness(0) drop-shadow(0 1px 1px rgba(255, 255, 255, 0.35));
  transform: rotate(-6deg);
  transition: transform 0.4s var(--ease);
}

.brand:hover .brand-mark img {
  transform: rotate(6deg) scale(1.08);
}

.brand:hover .brand-mark {
  transform: rotate(-8deg) scale(1.06);
  box-shadow: 0 12px 30px rgba(94, 225, 255, 0.5);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  font-size: 15px;
}

.brand-sub {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.nav-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 14px;
}

.nav-links a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1.5px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.32s var(--ease);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

/* ------------------------------ 按钮 ------------------------------ */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.4s ease,
    background-position 0.9s var(--ease),
    border-color 0.3s ease,
    color 0.3s ease;
}

.btn-sm {
  padding: 8px 15px;
  font-size: 13px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}

/* 主按钮：渐变沿按钮内部缓慢流转，不做任何硬边扫光 */
.btn-primary {
  color: #05121c;
  background-image: linear-gradient(100deg,
      #8ef2ff 0%,
      #a9ddff 26%,
      #c9b8fd 56%,
      #ffdcc0 82%,
      #8ef2ff 100%);
  background-size: 240% 100%;
  background-position: 0% 50%;
  box-shadow:
    0 14px 34px rgba(94, 225, 255, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 0 rgba(0, 0, 0, 0.06);
}

.btn-primary:hover {
  background-position: 100% 50%;
  transform: translateY(-2px);
  box-shadow:
    0 22px 52px rgba(94, 225, 255, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -1px 0 rgba(0, 0, 0, 0.08);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary .btn-ico {
  transition: transform 0.35s var(--ease);
}

.btn-primary:hover .btn-ico {
  transform: translateX(3px);
}

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(148, 163, 184, 0.3);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  color: #fff;
  transform: translateY(-2px);
  border-color: var(--line-hi);
  background: rgba(94, 225, 255, 0.1);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(94, 225, 255, 0.16) inset;
}

.btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.btn-ico {
  font-size: 11px;
}

/* ------------------------------ HERO ------------------------------ */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 40px;
  padding: clamp(28px, 6vw, 84px) clamp(16px, 5vw, 64px) clamp(40px, 7vw, 96px);
  max-width: 1240px;
  margin: 0 auto;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  font-size: 12.5px;
  color: var(--muted);
}

.pill-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6b7280;
}

.pill-dot.ok,
.pill-dot.bad {
  box-shadow: 0 0 12px currentColor;
}

.pill-dot.ok {
  background: #34d399;
  color: #34d399;
}

.pill-dot.bad {
  background: #f87171;
  color: #f87171;
}

.pill-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid currentColor;
  opacity: 0;
}

.pill-dot.ok::after,
.pill-dot.bad::after {
  animation: ping 2.8s var(--ease) infinite;
}

@keyframes ping {
  0% { transform: scale(0.6); opacity: 0.7; }
  70%, 100% { transform: scale(1.7); opacity: 0; }
}

.hero-title {
  margin: 20px 0 0;
  font-size: clamp(40px, 7.2vw, 84px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.hero-title .line-1 {
  display: block;
  font-size: 0.42em;
  letter-spacing: 0.34em;
  font-weight: 700;
  color: var(--cyan);
  text-shadow: 0 0 26px rgba(94, 225, 255, 0.45);
}

.hero-title .line-2 {
  display: block;
  margin-top: 6px;
  background-image: linear-gradient(96deg,
      #ffffff 0%,
      #c6ecff 20%,
      #cdbcff 44%,
      #ffe2c2 66%,
      #ffffff 88%,
      #c6ecff 100%);
  background-size: 220% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 10px 34px rgba(124, 162, 255, 0.26));
  animation: title-drift 18s var(--ease) infinite alternate;
}

@keyframes title-drift {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

.hero-desc {
  max-width: 46ch;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.4vw, 17px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 38px 0 0;
  padding: 0;
  list-style: none;
}

.hero-stats li {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(6px);
  transition: border-color 0.3s ease, transform 0.3s var(--ease), background 0.3s ease;
}

.hero-stats li:hover {
  transform: translateY(-3px);
  border-color: var(--line-hi);
  background: linear-gradient(180deg, rgba(94, 225, 255, 0.12), rgba(255, 255, 255, 0.03));
}

.hero-stats b {
  display: block;
  font-size: 17px;
  letter-spacing: 0.02em;
}

.hero-stats span {
  font-size: 11.5px;
  color: var(--muted);
}

/* --------------------------- HERO 视觉 --------------------------- */

.hero-art-wrap {
  display: grid;
  place-items: center;
  width: 100%;
}

.hero-art {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  perspective: 1100px;
  transform-style: preserve-3d;
  transform: translate3d(0, var(--sy, 0px), 0) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  will-change: transform;
}

/* 视频缺失回退时，容器回到正方形，CSS 靶心动画按原比例显示 */
.hero-art.is-fallback {
  aspect-ratio: 1 / 1;
  max-width: 470px;
}

/* --------------------- HERO 视频（实机演示屏） --------------------- */

/* 视频缺失回退时，容器回到正方形，CSS 靶心动画按原比例显示 */
.hero-art.is-fallback {
  aspect-ratio: 1 / 1;
  max-width: 470px;
}

/* 外壳：负责 3D 翻转入场 + 悬浮抬升，内部所有层跟着一起动 */
.hero-screen {
  position: relative;
  z-index: 1;
  width: 100%;
  transform-style: preserve-3d;
  opacity: 0;
  transform: perspective(1200px) rotateY(-18deg) rotateX(11deg) scale(0.9) translateY(30px);
  transition: transform 1.15s var(--ease) 0.12s, opacity 0.85s ease 0.12s;
}

.hero-art.in .hero-screen {
  opacity: 1;
  transform: perspective(1200px) rotateY(0deg) rotateX(0deg) scale(1) translateY(0);
}

.hero-art.in .hero-screen:hover {
  transform: perspective(1200px) translateY(-7px) scale(1.02);
  transition-duration: 0.55s;
  transition-delay: 0s;
}

/* 沿边框流动的光边：背后一层旋转的 conic 渐变，只露出 3px */
.screen-edge {
  position: absolute;
  inset: -3px;
  z-index: 0;
  overflow: hidden;
  border-radius: 23px;
  background: rgba(148, 205, 255, 0.22);
  box-shadow: 0 0 20px rgba(94, 225, 255, 0.16);
}

/* 两段光带对角分布，任意时刻都能看见光在跑 */
.screen-edge::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 170%;
  aspect-ratio: 1 / 1;
  margin: -85% 0 0 -85%;
  background: conic-gradient(from 0deg,
      rgba(94, 225, 255, 0) 0deg,
      rgba(180, 245, 255, 1) 16deg,
      rgba(94, 225, 255, 0.95) 34deg,
      rgba(167, 139, 250, 0.9) 62deg,
      rgba(94, 225, 255, 0) 104deg,
      rgba(94, 225, 255, 0) 180deg,
      rgba(226, 246, 255, 1) 196deg,
      rgba(255, 179, 71, 0.92) 224deg,
      rgba(255, 130, 90, 0.7) 252deg,
      rgba(94, 225, 255, 0) 294deg,
      rgba(94, 225, 255, 0) 360deg);
  animation: edge-spin 5.6s linear infinite;
}

@keyframes edge-spin {
  to { transform: rotate(360deg); }
}

.hero-screen:hover .screen-edge::before {
  animation-duration: 2.1s;
}

.hero-screen:hover .screen-edge {
  background: rgba(148, 205, 255, 0.34);
  box-shadow: 0 0 30px rgba(94, 225, 255, 0.34);
}

/* 屏幕本体 */
.hero-video-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 20px;
  background: radial-gradient(120% 120% at 50% 0%, #0d1526 0%, #060a12 70%);
  box-shadow:
    0 30px 80px rgba(2, 6, 16, 0.8),
    0 0 46px rgba(94, 225, 255, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  cursor: pointer;
  isolation: isolate;
}

/* CRT 开机：从中间一条亮缝上下展开，伴随一次过曝白闪，只播一次 */
.hero-art.in .hero-video-frame {
  animation: screen-on 1.15s var(--ease) 0.28s both;
}

@keyframes screen-on {
  0% {
    clip-path: inset(49.5% 0 49.5% 0);
    filter: brightness(5) saturate(0);
  }
  20% {
    clip-path: inset(49.5% 0 49.5% 0);
    filter: brightness(5) saturate(0);
  }
  38% {
    clip-path: inset(0 0 0 0);
    filter: brightness(2.6) saturate(0.35);
  }
  100% {
    clip-path: inset(0 0 0 0);
    filter: brightness(1) saturate(1);
  }
}

.hero-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #060a12;
  filter: saturate(1.08) contrast(1.06);
  transition: filter 0.5s ease, transform 0.7s var(--ease);
}

.hero-screen:hover .hero-video {
  filter: saturate(1.16) contrast(1.1) brightness(1.06);
  transform: scale(1.03);
}

/* 极淡的暗角，让画面与深空背景自然衔接，不挡主体 */
.hero-video-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(120% 100% at 50% 50%, rgba(5, 7, 13, 0) 56%, rgba(5, 7, 13, 0.52) 100%),
    linear-gradient(180deg, rgba(94, 225, 255, 0.07) 0%, rgba(5, 7, 13, 0) 32%);
}

/* CRT 扫描线：细密横纹缓慢下移 */
.hero-video-scan {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: overlay;
  background: repeating-linear-gradient(to bottom,
      rgba(255, 255, 255, 0.06) 0 1px,
      rgba(0, 0, 0, 0) 1px 4px);
  animation: scan 0.6s linear infinite;
}

@keyframes scan {
  to { transform: translateY(4px); }
}

/* 一道宽光带自上而下巡检，像演示画面的取景扫描 */
.hero-video-sweep {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 32%;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  background: linear-gradient(180deg,
      rgba(94, 225, 255, 0) 0%,
      rgba(190, 236, 255, 0.1) 46%,
      rgba(226, 246, 255, 0.18) 52%,
      rgba(94, 225, 255, 0) 100%);
  animation: sweep-down 6.5s var(--ease) infinite;
}

@keyframes sweep-down {
  0% { opacity: 0; transform: translateY(-45%); }
  14% { opacity: 1; }
  86% { opacity: 1; }
  100% { opacity: 0; transform: translateY(330%); }
}

/* 跟随鼠标的柔光斑，只提亮不糊画面 */
.hero-video-spot {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  transition: opacity 0.4s ease;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%),
      rgba(94, 225, 255, 0.18) 0%,
      rgba(167, 139, 250, 0.1) 40%,
      transparent 72%);
}

.hero-video-frame:hover .hero-video-spot {
  opacity: 1;
}

/* 悬停时浮现的瞄准准星：十字线 + 中心环，跟着指针走 */
.hero-video-cross {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  background:
    radial-gradient(circle 15px at var(--mx, 50%) var(--my, 50%),
      transparent 0 13px,
      rgba(94, 225, 255, 0.75) 13px 14.5px,
      transparent 15px),
    radial-gradient(circle 2.5px at var(--mx, 50%) var(--my, 50%),
      rgba(94, 225, 255, 0.9) 0 1.5px,
      transparent 2.5px);
}

.hero-video-frame:hover .hero-video-cross {
  opacity: 1;
}

.hero-video-cross::before,
.hero-video-cross::after {
  content: "";
  position: absolute;
  inset: 0;
  -webkit-mask-image: radial-gradient(circle 30px at var(--mx, 50%) var(--my, 50%),
      transparent 0 27px, #000 29px);
  mask-image: radial-gradient(circle 30px at var(--mx, 50%) var(--my, 50%),
      transparent 0 27px, #000 29px);
}

/* 横准线 */
.hero-video-cross::before {
  background: linear-gradient(90deg,
      rgba(94, 225, 255, 0) 0%,
      rgba(94, 225, 255, 0.5) 14%,
      rgba(94, 225, 255, 0.5) 86%,
      rgba(94, 225, 255, 0) 100%);
  background-size: 100% 1px;
  background-position: 0 var(--my, 50%);
  background-repeat: no-repeat;
}

/* 竖准线 */
.hero-video-cross::after {
  background: linear-gradient(180deg,
      rgba(94, 225, 255, 0) 0%,
      rgba(94, 225, 255, 0.5) 14%,
      rgba(94, 225, 255, 0.5) 86%,
      rgba(94, 225, 255, 0) 100%);
  background-size: 1px 100%;
  background-position: var(--mx, 50%) 0;
  background-repeat: no-repeat;
}

/* --------------------------- HUD 抬头显示 --------------------------- */

.hud-corner {
  position: absolute;
  z-index: 3;
  width: 14px;
  height: 14px;
  pointer-events: none;
  border: 1.5px solid rgba(234, 241, 255, 0.6);
  transition: border-color 0.4s ease, transform 0.4s var(--ease);
}

.hud-corner.tl { top: 9px; left: 9px; border-right: 0; border-bottom: 0; border-top-left-radius: 4px; }
.hud-corner.tr { top: 9px; right: 9px; border-left: 0; border-bottom: 0; border-top-right-radius: 4px; }
.hud-corner.bl { bottom: 9px; left: 9px; border-right: 0; border-top: 0; border-bottom-left-radius: 4px; }
.hud-corner.br { bottom: 9px; right: 9px; border-left: 0; border-top: 0; border-bottom-right-radius: 4px; }

.hero-screen:hover .hud-corner.tl { transform: translate(-3px, -3px); }
.hero-screen:hover .hud-corner.tr { transform: translate(3px, -3px); }
.hero-screen:hover .hud-corner.bl { transform: translate(-3px, 3px); }
.hero-screen:hover .hud-corner.br { transform: translate(3px, 3px); }
.hero-screen:hover .hud-corner { border-color: var(--cyan); }

.hud-top {
  position: absolute;
  top: 16px;
  left: 26px;
  right: 26px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}

.hud-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(6, 10, 18, 0.52);
  backdrop-filter: blur(8px);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text);
}

.hud-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f87171;
  box-shadow: 0 0 10px #f87171;
  animation: hud-blink 1.7s ease-in-out infinite;
}

@keyframes hud-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.hud-badge {
  padding: 4px 9px;
  border-radius: 7px;
  border: 1px solid rgba(148, 205, 255, 0.28);
  background: rgba(6, 10, 18, 0.45);
  backdrop-filter: blur(8px);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--cyan);
  text-shadow: 0 0 14px rgba(94, 225, 255, 0.5);
}

/* 底部控制条：静音 / 进度 / 全屏 */
.hud-bar {
  position: absolute;
  bottom: 16px;
  left: 26px;
  right: 26px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.62;
  transition: opacity 0.4s ease;
}

.hero-video-frame:hover .hud-bar {
  opacity: 1;
}

.hud-btn {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(6, 10, 18, 0.55);
  backdrop-filter: blur(8px);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s var(--ease), color 0.3s ease;
}

.hud-btn:hover {
  color: var(--cyan);
  border-color: var(--line-hi);
  background: rgba(94, 225, 255, 0.14);
  transform: translateY(-2px);
}

.hud-btn.is-on {
  color: var(--cyan);
  border-color: var(--line-hi);
  background: rgba(94, 225, 255, 0.16);
}

.hud-btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* 静音 / 有声两套图标，按状态二选一 */
.hud-btn .ico-mute { display: none; }
.hud-btn.is-muted .ico-sound { display: none; }
.hud-btn.is-muted .ico-mute { display: block; }
.hud-btn.is-muted { color: var(--muted); }

.hud-track {
  position: relative;
  flex: 1 1 auto;
  height: 3px;
  border-radius: 999px;
  background: rgba(234, 241, 255, 0.18);
  overflow: hidden;
}

.hud-fill {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  transform: scaleX(var(--p, 0));
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--violet) 62%, var(--amber));
  box-shadow: 0 0 12px rgba(94, 225, 255, 0.6);
}

/* 全屏观看：铺满屏幕、去掉圆角、画面完整显示 */
.hero-video-frame:fullscreen {
  display: grid;
  place-items: center;
  width: 100vw;
  height: 100vh;
  aspect-ratio: auto;
  border-radius: 0;
  background: #000;
}

.hero-video-frame:fullscreen .hero-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 屏幕背光：缓慢旋转的极光晕，营造「屏幕在发光」
   旋转放在内部、外层裁剪，靠 blur 向外扩散柔光，不撑出横向滚动 */
.hero-video-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
  filter: blur(42px);
  opacity: 0.9;
  animation: breathe 7s var(--ease) infinite alternate;
}

.hero-video-glow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  aspect-ratio: 1 / 1;
  margin: -75% 0 0 -75%;
  background: conic-gradient(from 0deg,
      rgba(94, 225, 255, 0) 0deg,
      rgba(94, 225, 255, 0.3) 70deg,
      rgba(167, 139, 250, 0.28) 150deg,
      rgba(255, 179, 71, 0.16) 220deg,
      rgba(94, 225, 255, 0) 330deg);
  animation: edge-spin 22s linear infinite;
}

.hero-video-glow::after {
  content: "";
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background: radial-gradient(circle,
      rgba(94, 225, 255, 0.26) 0%,
      rgba(126, 139, 255, 0.15) 42%,
      transparent 72%);
}

/* 视频不可用（缺文件 / 解码失败 / 自动播放被拦）时的状态 */
.hero-art.is-fallback .hero-screen,
.hero-art.is-fallback .hero-video-glow {
  display: none;
}

.art-fallback {
  display: none;
  position: absolute;
  inset: 0;
  place-items: center;
  overflow: hidden; /* 轨道旋转到某些相位时会撑出容器，裁掉避免出现横向滚动 */
}

.hero-art.is-fallback .art-fallback {
  display: grid;
}

/* 自动播放被浏览器拦下：中间给一个轻提示，点一下即可播放 */
.hero-art.is-paused .hero-video-frame::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 5;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  border: 1px solid rgba(234, 241, 255, 0.6);
  background: rgba(6, 10, 18, 0.42);
  backdrop-filter: blur(6px);
  box-shadow: 0 0 30px rgba(94, 225, 255, 0.4);
  transition: transform 0.3s var(--ease), background 0.3s ease;
}

.hero-art.is-paused .hero-video-frame::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 6;
  margin: -9px 0 0 -5px;
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent rgba(234, 241, 255, 0.95);
  pointer-events: none;
}

.hero-art.is-paused .hero-video-frame:hover::after {
  transform: scale(1.08);
  background: rgba(94, 225, 255, 0.2);
}

.art-glow {
  position: absolute;
  inset: -14%;
  border-radius: 50%;
  background: radial-gradient(circle,
      rgba(94, 225, 255, 0.22) 0%,
      rgba(126, 139, 255, 0.12) 38%,
      transparent 68%);
  filter: blur(24px);
  animation: breathe 7s var(--ease) infinite alternate;
}

@keyframes breathe {
  from { transform: scale(0.94); opacity: 0.75; }
  to { transform: scale(1.06); opacity: 1; }
}

/* 倾斜的 3D 轨道环：虚线沿椭圆缓慢漂移 */
.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed currentColor;
  transform-style: preserve-3d;
}

.orbit-1 {
  inset: 3%;
  color: rgba(148, 205, 255, 0.34);
  border-width: 1px;
  border-style: dashed;
  animation: orbit-spin 42s linear infinite;
}

.orbit-2 {
  inset: 15%;
  color: rgba(167, 139, 250, 0.42);
  animation: orbit-spin 30s linear infinite reverse;
}

.orbit-3 {
  inset: 27%;
  color: rgba(255, 179, 71, 0.34);
  animation: orbit-spin 22s linear infinite;
}

@keyframes orbit-spin {
  from { transform: rotateX(66deg) rotateZ(0deg); }
  to { transform: rotateX(66deg) rotateZ(360deg); }
}

/* 沿轨道运行的光点 */
.orbit-2::after,
.orbit-3::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 14px currentColor, 0 0 30px currentColor;
}

.orbit-3::after {
  width: 4px;
  height: 4px;
  margin-left: -2px;
  top: -2px;
}

.target {
  position: relative;
  display: grid;
  place-items: center;
  width: 52%;
  aspect-ratio: 1 / 1;
  color: rgba(148, 205, 255, 0.7);
}

.target .ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid currentColor;
}

.ring.r1 { inset: 0; opacity: 0.3; }
.ring.r2 { inset: 19%; opacity: 0.5; }
.ring.r3 { inset: 36%; opacity: 0.75; }

.bullseye {
  position: absolute;
  width: 13%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0%, var(--amber) 46%, var(--orange) 100%);
  box-shadow: 0 0 30px rgba(255, 150, 70, 0.65), 0 0 70px rgba(255, 112, 67, 0.28);
  animation: bull 4.2s var(--ease) infinite;
}

@keyframes bull {
  0%, 100% { transform: scale(1); }
  30% { transform: scale(1.12); }
  52% { transform: scale(0.97); }
}

/* 命中冲击波，与箭的飞行周期对齐 */
.impact {
  position: absolute;
  width: 46%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 2px solid rgba(255, 205, 140, 0.9);
  box-shadow: 0 0 26px rgba(255, 180, 100, 0.5);
  opacity: 0;
  animation: impact 4.2s var(--ease) infinite;
}

@keyframes impact {
  0%, 23% { opacity: 0; transform: scale(0.32); }
  29% { opacity: 0.9; transform: scale(0.72); }
  46% { opacity: 0.35; transform: scale(1.25); }
  62%, 100% { opacity: 0; transform: scale(1.7); }
}

.arrow-flight {
  position: absolute;
  width: 62%;
  height: auto;
  color: #e9f7ff;
  filter: drop-shadow(0 0 10px rgba(94, 225, 255, 0.55)) drop-shadow(0 3px 6px rgba(0, 0, 0, 0.6));
  animation: shoot 4.2s var(--ease) infinite;
}

/* 素材原图朝右；飞行方向是自右下射向靶心（左上），故转 -135° 让箭头始终朝着去向 */
@keyframes shoot {
  0% { opacity: 0; transform: translate(34px, 34px) rotate(-135deg) scale(0.97); }
  12% { opacity: 1; }
  27% { opacity: 1; transform: translate(0, 0) rotate(-135deg) scale(1); }
  38% { transform: translate(-2px, -2px) rotate(-135deg) scale(1); }
  56% { opacity: 1; transform: translate(-14px, -14px) rotate(-135deg) scale(0.99); }
  72%, 100% { opacity: 0; transform: translate(-22px, -22px) rotate(-135deg) scale(0.98); }
}

.arrow-flight .trail {
  stroke-dasharray: 3 10;
  stroke-width: 2;
  opacity: 0.45;
  animation: trail-fade 4.2s var(--ease) infinite;
}

@keyframes trail-fade {
  0% { opacity: 0; }
  14% { opacity: 0.5; }
  30%, 100% { opacity: 0; }
}

.arrow-flight .head {
  stroke-width: 3.4;
}

.arrow-flight .vane {
  stroke-width: 2.4;
  opacity: 0.8;
}

/* 星尘：只做柔和明暗呼吸，不再乱窜 */
.spark {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(94, 225, 255, 0.85);
  animation: twinkle 5.4s var(--ease) infinite;
}

.spark.s1 { top: 13%; left: 21%; }
.spark.s2 { top: 31%; right: 13%; animation-delay: -1.4s; background: var(--violet); box-shadow: 0 0 12px rgba(167, 139, 250, 0.85); }
.spark.s3 { bottom: 19%; left: 15%; animation-delay: -2.8s; background: var(--amber); box-shadow: 0 0 12px rgba(255, 179, 71, 0.85); }
.spark.s4 { bottom: 31%; right: 23%; animation-delay: -4.1s; }

@keyframes twinkle {
  0%, 100% { opacity: 0.28; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1.12); }
}

/* ------------------------------ 区块通用 ------------------------------ */

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(46px, 7vw, 96px) clamp(16px, 5vw, 48px) 0;
}

.section-head {
  max-width: 620px;
  margin: 0 auto clamp(28px, 4vw, 52px);
  text-align: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--cyan);
  text-transform: uppercase;
}

.kicker::before,
.kicker::after {
  content: "";
  width: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan));
}

.kicker::after {
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.section-head h2,
.save-copy h2,
.cta h2 {
  margin: 12px 0 10px;
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 850;
  letter-spacing: -0.01em;
}

.section-head p,
.muted {
  margin: 0;
  color: var(--muted);
}

/* ------------------------------ 卡片 ------------------------------ */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.card {
  position: relative;
  padding: 24px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018));
  backdrop-filter: blur(12px) saturate(130%);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%),
      rgba(94, 225, 255, 0.14), transparent 62%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%),
      rgba(126, 234, 255, 0.8), transparent 62%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 52px rgba(0, 0, 0, 0.55);
}

.card:hover::before,
.card:hover::after {
  opacity: 1;
}

.card-ico {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 205, 255, 0.24);
  background:
    radial-gradient(120% 120% at 50% 115%, rgba(94, 225, 255, 0.22), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  box-shadow: 0 10px 26px rgba(2, 8, 20, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  overflow: hidden;
  transition: transform 0.45s var(--ease), border-color 0.35s ease, box-shadow 0.35s ease;
}

/* 素材原图多为白色剪影，深色玻璃底上直接可用 */
.card-ico img {
  width: auto;
  height: auto;
  max-width: 34px;
  max-height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.5));
  transition: transform 0.45s var(--ease), filter 0.35s ease;
}

.card:hover .card-ico {
  transform: rotate(-4deg) scale(1.05);
  border-color: var(--line-hi);
  box-shadow: 0 14px 32px rgba(2, 8, 20, 0.55), 0 0 22px rgba(94, 225, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

/* 竖长素材（弓、锁）斜一点放，小方框里才不显空 */
.card-ico img.ico-tall {
  transform: rotate(16deg);
}

.card:hover .card-ico img {
  filter: drop-shadow(0 3px 8px rgba(94, 225, 255, 0.45));
}

/* 对战 / 练习：两顶头盔前后错开，暗示两个人 */
.card-ico.ico-duo img {
  position: absolute;
}

.card-ico.ico-duo .duo-a {
  width: 40%;
  left: 8%;
  bottom: 22%;
  opacity: 0.72;
  transform: rotate(-8deg);
}

.card-ico.ico-duo .duo-b {
  width: 46%;
  right: 7%;
  top: 14%;
}

.card:hover .card-ico.ico-duo .duo-a {
  transform: rotate(-8deg) translateX(-2px);
}

.card:hover .card-ico img.ico-tall {
  transform: rotate(6deg) scale(1.08);
}

/* 卡内通往其它玩法区块的跳转 */
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--cyan);
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.25s ease, gap 0.25s var(--ease);
}

.card-link span {
  transition: transform 0.25s var(--ease);
}

.card-link:hover {
  opacity: 1;
}

.card-link:hover span {
  transform: translateX(3px);
}

.card-link:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 750;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* ------------------------------ 步骤 ------------------------------ */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  position: relative;
  padding: 26px 22px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s ease;
}

.steps li:hover {
  transform: translateY(-4px);
  border-color: var(--line-hi);
}

.steps li::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--violet));
  transform: scaleY(0.35);
  transform-origin: 0 0;
  opacity: 0.8;
  transition: transform 0.45s var(--ease);
}

.steps li:hover::before {
  transform: scaleY(1);
}

.step-no {
  display: block;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: transparent;
  background: linear-gradient(120deg, rgba(94, 225, 255, 0.9), rgba(167, 139, 250, 0.9));
  -webkit-background-clip: text;
  background-clip: text;
}

.steps h3 {
  margin: 6px 0 8px;
  font-size: 16px;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* ------------------------------ 存档区 ------------------------------ */

.save-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 36px;
  padding: clamp(24px, 4vw, 44px);
  border-radius: 26px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 12% 0%, rgba(94, 225, 255, 0.13), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(14px);
}

.save-list {
  margin: 20px 0 26px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.save-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--muted);
}

.save-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  box-shadow: 0 0 12px rgba(94, 225, 255, 0.55);
}

.save-list b {
  color: var(--text);
  margin-right: 6px;
}

.save-visual {
  display: grid;
  place-items: center;
}

.save-card {
  width: min(320px, 100%);
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(94, 225, 255, 0.3);
  background: radial-gradient(circle at top left, #0b1220, #020617);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  animation: float 7s var(--ease) infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.save-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #e5e7eb;
}

.save-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.85);
}

.save-bars {
  display: grid;
  gap: 8px;
  margin: 16px 0 14px;
}

.save-bars span {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.save-bars span::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w, 60%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  animation: bar-flow 4.6s var(--ease) infinite alternate;
}

@keyframes bar-flow {
  from { filter: brightness(0.9) saturate(0.9); }
  to { filter: brightness(1.3) saturate(1.15); }
}

.save-foot {
  font-size: 11px;
  color: #7f90a7;
}

/* ------------------------------ FAQ ------------------------------ */

.faq {
  display: grid;
  gap: 12px;
  max-width: 820px;
  margin: 0 auto;
}

.faq details {
  padding: 16px 20px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(10px);
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s var(--ease);
}

.faq details:hover {
  transform: translateY(-2px);
  border-color: rgba(94, 225, 255, 0.3);
}

.faq details[open] {
  border-color: rgba(94, 225, 255, 0.45);
  background: rgba(94, 225, 255, 0.07);
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  float: right;
  color: var(--cyan);
  font-size: 18px;
  line-height: 1.2;
  transition: transform 0.3s var(--ease), color 0.3s ease;
}

.faq details[open] summary::after {
  content: "−";
  transform: rotate(180deg);
}

.faq p {
  margin: 12px 0 2px;
  color: var(--muted);
  font-size: 14px;
}

kbd {
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-family: inherit;
}

/* ------------------------------ CTA / 页脚 ------------------------------ */

.cta {
  position: relative;
  max-width: 900px;
  margin: clamp(56px, 8vw, 110px) auto 0;
  padding: clamp(34px, 5vw, 60px) clamp(20px, 5vw, 48px);
  text-align: center;
  border-radius: 28px;
  border: 1px solid rgba(94, 225, 255, 0.26);
  background:
    radial-gradient(circle at 50% 0%, rgba(94, 225, 255, 0.16), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(14px);
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from 0deg,
      transparent 0deg,
      rgba(94, 225, 255, 0.7) 60deg,
      transparent 130deg,
      transparent 240deg,
      rgba(167, 139, 250, 0.7) 300deg,
      transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0.6;
  animation: ring-rotate 9s linear infinite;
  pointer-events: none;
}

@keyframes ring-rotate {
  to { transform: rotate(360deg); }
}

.cta > * {
  position: relative;
}

.cta p {
  margin: 0 0 24px;
  color: var(--muted);
}

.footer {
  margin-top: clamp(56px, 8vw, 100px);
  padding: 28px 20px 40px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer-sub {
  margin-top: 6px;
  font-size: 12px;
  opacity: 0.75;
}

/* ------------------------------ 入场动画 ------------------------------ */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  will-change: opacity, transform;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ------------------------------ 响应式 ------------------------------ */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 20px;
  }

  .hero-art-wrap,
  .hero-art {
    order: -1;
  }

  .hero-art {
    max-width: 460px;
  }

  .hero-art.is-fallback {
    max-width: 360px;
  }

  .save-wrap {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* 小屏幕上 HUD 收缩一点，别压住画面 */
  .hud-top {
    top: 10px;
    left: 16px;
    right: 16px;
  }

  .hud-bar {
    bottom: 10px;
    left: 16px;
    right: 16px;
  }

  .hud-badge {
    display: none;
  }

  .hud-corner {
    width: 11px;
    height: 11px;
  }

  .brand-sub {
    display: none;
  }

  .btn-lg {
    width: 100%;
  }

  .hero-actions {
    width: 100%;
  }

  .lb-panel {
    padding: 14px 12px 10px;
  }

  .lb-row {
    grid-template-columns: 30px minmax(0, 1fr);
    row-gap: 8px;
  }

  .lb-values {
    grid-column: 2;
    justify-content: flex-start;
    text-align: left;
  }
}

@media (hover: none) {
  .cursor-glow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .cursor-glow {
    display: none;
  }
}

/* ================================================================== *
 * 玩法介绍区块（箭矢图鉴 / 苹果 / 升级 / 操作 / 巨人 / 档案）
 * 图片全部取自游戏本体导出的真实素材
 * ================================================================== */

/* --------------------------- 箭矢图鉴 --------------------------- */

.arrow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 14px;
}

.arrow-card {
  padding: 16px 16px 18px;
}

.arrow-card h3 {
  margin-bottom: 3px;
  font-size: 15px;
}

.arrow-card .arrow-en {
  margin: 0 0 7px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(148, 205, 255, 0.62);
  font-family: "SFMono-Regular", Consolas, monospace;
  text-transform: uppercase;
}

.arrow-card > p:last-child {
  font-size: 12.8px;
  line-height: 1.55;
}

/* 图片区：斜纹靶场底 + 柔光，箭 hover 时向前窜一下 */
.arrow-pic {
  position: relative;
  display: grid;
  place-items: center;
  height: 74px;
  margin-bottom: 12px;
  border-radius: 13px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background:
    repeating-linear-gradient(115deg,
      rgba(255, 255, 255, 0.035) 0 10px,
      rgba(255, 255, 255, 0) 10px 20px),
    radial-gradient(120% 130% at 50% 120%, rgba(94, 225, 255, 0.1), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012));
  overflow: hidden;
  transition: border-color 0.32s ease, background 0.32s ease;
}

.arrow-pic::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(226, 246, 255, 0.14), transparent);
  transform: translateX(-110%);
  transition: transform 0.75s var(--ease);
  pointer-events: none;
}

.arrow-card:hover .arrow-pic::after {
  transform: translateX(110%);
}

.arrow-card:hover .arrow-pic {
  border-color: var(--line-hi);
}

.arrow-pic img {
  max-width: 88%;
  max-height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 3px 7px rgba(0, 0, 0, 0.55));
  transition: transform 0.45s var(--ease), filter 0.35s ease;
}

.arrow-pic img[src*="minigun"] {
  width: 132px;
  max-width: 132px;
  max-height: none;
}

.arrow-card:hover .arrow-pic img {
  transform: translateX(7px) scale(1.04);
  filter: drop-shadow(0 4px 12px rgba(94, 225, 255, 0.5));
}

/* 展开更多 */
.arsenal-more {
  margin-top: 16px;
}

.arsenal-more > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(8px);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  transition: transform 0.3s var(--ease), border-color 0.3s ease, background 0.3s ease;
}

.arsenal-more > summary::-webkit-details-marker {
  display: none;
}

.arsenal-more > summary:hover {
  transform: translateY(-2px);
  border-color: var(--line-hi);
  background: rgba(94, 225, 255, 0.1);
}

.arsenal-count {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #05121c;
  background: linear-gradient(100deg, var(--cyan), var(--violet));
}

.arsenal-more[open] > summary {
  margin-bottom: 14px;
}

/* --------------------------- 苹果补给 --------------------------- */

.apple-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.apple-card {
  text-align: center;
  padding: 26px 22px 24px;
}

.apple-pic {
  position: relative;
  display: grid;
  place-items: center;
  height: 104px;
  margin: 0 auto 14px;
}

.apple-pic::before {
  content: "";
  position: absolute;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: radial-gradient(circle, currentColor 0%, transparent 66%);
  opacity: 0.26;
  filter: blur(9px);
  animation: breathe 5.6s var(--ease) infinite alternate;
}

.apple-pic img {
  position: relative;
  height: 92px;
  width: auto;
  aspect-ratio: 80 / 94;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.6));
  transition: transform 0.45s var(--ease);
}

.apple-card:hover .apple-pic img {
  transform: translateY(-6px) rotate(-5deg) scale(1.06);
}

.apple-card:nth-child(1) .apple-pic { color: #ff6b6b; }
.apple-card:nth-child(2) .apple-pic { color: #46e39b; }
.apple-card:nth-child(3) .apple-pic { color: #ffca4a; }

.apple-tag {
  display: inline-block;
  margin: 0 0 9px !important;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11.5px !important;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.tag-hp { color: #ffb3b3; background: rgba(248, 113, 113, 0.16); border: 1px solid rgba(248, 113, 113, 0.36); }
.tag-sp { color: #a7f3d0; background: rgba(52, 211, 153, 0.14); border: 1px solid rgba(52, 211, 153, 0.34); }
.tag-both { color: #ffe1a1; background: rgba(255, 179, 71, 0.15); border: 1px solid rgba(255, 179, 71, 0.38); }

/* --------------------------- 骷髅升级 --------------------------- */

.upgrade-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
  padding: clamp(22px, 3.4vw, 38px);
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015));
  backdrop-filter: blur(12px) saturate(130%);
}

.upgrade-visual {
  position: relative;
  display: grid;
  place-items: center;
  justify-self: center;
  width: 100%;
  max-width: 260px;
  aspect-ratio: 1 / 1;
}

.skull-orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 46%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94, 225, 255, 0.2) 0%, transparent 68%);
  animation: breathe 6s var(--ease) infinite alternate;
}

.skull-orb img {
  width: 100%;
  height: auto;
  aspect-ratio: 71 / 61;
  filter: drop-shadow(0 0 16px rgba(226, 246, 255, 0.7)) drop-shadow(0 0 44px rgba(94, 225, 255, 0.35));
  animation: skull-float 5.2s var(--ease) infinite alternate;
}

@keyframes skull-float {
  from { transform: translateY(-5px) rotate(-3deg); }
  to { transform: translateY(6px) rotate(3deg); }
}

.skull-ring {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  border: 1px dashed rgba(148, 205, 255, 0.36);
  animation: orbit-spin 34s linear infinite;
}

.skull-ring.r2 {
  inset: 20%;
  border-color: rgba(255, 179, 71, 0.34);
  animation-duration: 24s;
  animation-direction: reverse;
}

.upgrade-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.upgrade-list li {
  display: grid;
  grid-template-columns: 92px 1fr;
  grid-template-areas: "name en" "bar bar";
  align-items: center;
  gap: 4px 12px;
  padding: 10px 14px;
  border-radius: 13px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
  transition: border-color 0.3s ease, transform 0.3s var(--ease);
}

.upgrade-list li:hover {
  transform: translateX(4px);
  border-color: var(--line-hi);
}

.upgrade-list b {
  grid-area: name;
  font-size: 14.5px;
}

.upgrade-list .up-en {
  grid-area: en;
  text-align: right;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: rgba(148, 205, 255, 0.58);
  font-family: "SFMono-Regular", Consolas, monospace;
}

.upgrade-list i {
  grid-area: bar;
  display: block;
  height: 4px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
  overflow: hidden;
  position: relative;
}

.upgrade-list i::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--v, 50%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  box-shadow: 0 0 12px rgba(94, 225, 255, 0.55);
  transform-origin: 0 50%;
  animation: bar-grow 1.1s var(--ease) both;
}

@keyframes bar-grow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* --------------------------- 模式与键位 --------------------------- */

.mode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

.mode-card h3 {
  font-size: 17px;
}

.mode-card > p {
  margin-top: 12px;
}

.key-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
}

.keycap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  padding: 5px 9px;
  border-radius: 8px;
  border: 1px solid rgba(148, 205, 255, 0.28);
  border-bottom-width: 2px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  box-shadow: 0 3px 0 rgba(6, 12, 24, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text);
  transition: transform 0.18s var(--ease), border-color 0.25s ease, box-shadow 0.25s ease;
}

.keycap.wide {
  min-width: 76px;
}

.mode-card:hover .keycap {
  border-color: var(--line-hi);
}

.keycap:active,
.mode-card:hover .keycap:hover {
  transform: translateY(2px);
  box-shadow: 0 1px 0 rgba(6, 12, 24, 0.7), 0 0 16px rgba(94, 225, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.key-plus {
  font-size: 12.5px;
  color: var(--muted);
  margin-right: 4px;
}

.key-tag {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #05121c;
}

.tag-p1 { background: linear-gradient(120deg, #8ef2ff, #a9ddff); }
.tag-p2 { background: linear-gradient(120deg, #c9b8fd, #ffdcc0); }

/* --------------------------- 巨人 Boss --------------------------- */

.boss-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(20px, 4vw, 46px);
  padding: clamp(22px, 3.4vw, 40px);
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--line);
  background:
    radial-gradient(90% 120% at 12% 50%, rgba(255, 112, 67, 0.14), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015));
  backdrop-filter: blur(12px) saturate(130%);
  overflow: hidden;
}

.boss-visual {
  position: relative;
  display: grid;
  place-items: center;
}

.boss-visual::before {
  content: "";
  position: absolute;
  width: 78%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 112, 67, 0.28) 0%, transparent 66%);
  filter: blur(14px);
  animation: breathe 6.4s var(--ease) infinite alternate;
}

.boss-helmet {
  position: relative;
  height: 250px;
  max-width: 100%;
  width: auto;
  aspect-ratio: 203 / 344;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 26px rgba(255, 179, 71, 0.3));
  animation: boss-hover 6.8s var(--ease) infinite alternate;
}

@keyframes boss-hover {
  from { transform: translateY(-8px) rotate(-2deg); }
  to { transform: translateY(8px) rotate(2deg); }
}

.boss-copy h2 {
  margin: 10px 0 12px;
  font-size: clamp(24px, 3.1vw, 36px);
  font-weight: 850;
  letter-spacing: -0.01em;
}

.boss-list {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.boss-list li {
  padding-left: 16px;
  position: relative;
  color: var(--muted);
  font-size: 14px;
}

.boss-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 10px rgba(255, 179, 71, 0.8);
}

.boss-list b {
  margin-right: 7px;
  color: var(--text);
}

/* --------------------------- 游戏档案 --------------------------- */

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.spec-cell {
  position: relative;
  padding: 18px 18px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015));
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.3s ease;
}

.spec-cell::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.spec-cell:hover {
  transform: translateY(-4px);
  border-color: var(--line-hi);
}

.spec-cell:hover::before {
  opacity: 1;
}

.spec-cell span {
  display: block;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}

.spec-cell b {
  display: block;
  margin: 7px 0 4px;
  font-size: 19px;
  font-weight: 800;
  background-image: linear-gradient(96deg, #ffffff, #c6ecff 45%, #cdbcff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.spec-cell i {
  font-style: normal;
  font-size: 12px;
  color: rgba(147, 163, 189, 0.85);
}

/* --------------------------- 响应式 --------------------------- */

@media (max-width: 860px) {
  .upgrade-wrap,
  .boss-wrap {
    grid-template-columns: minmax(0, 1fr);
  }

  .upgrade-visual {
    max-width: 180px;
    order: -1;
  }

  .boss-visual {
    order: -1;
  }

  .boss-helmet {
    height: 180px;
  }
}

@media (max-width: 520px) {
  .arrow-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
  }

  .arrow-pic {
    height: 60px;
  }

  .arrow-pic img {
    max-height: 40px;
  }

  .upgrade-list li {
    grid-template-columns: 1fr;
    grid-template-areas: "name" "en" "bar";
  }

  .upgrade-list .up-en {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .arrow-pic::after,
  .apple-pic::before,
  .skull-orb,
  .skull-orb img,
  .skull-ring,
  .boss-visual::before,
  .boss-helmet,
  .upgrade-list i::after {
    animation: none !important;
  }

  .upgrade-list i::after {
    transform: none;
  }
}
