/* ==========================================================================
   hero.css —— 首屏 Hero 区与背景蒙版特效
   ========================================================================== */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 120px 24px;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 50%, #3b82f6 100%);
  isolation: isolate;
}

/* ---------- 蒙版背景特效层（替代原粒子） ---------- */
.hero__fx {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* 极光光斑：更大、更柔的彩色模糊圆，缓慢漂移，边缘完全虚化 */
.hero__aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.5;
  mix-blend-mode: screen;
  will-change: transform;
  animation: aurora-drift 22s ease-in-out infinite;
}

.hero__aurora--1 {
  width: 64vw;
  height: 64vw;
  min-width: 520px;
  min-height: 520px;
  left: -14%;
  top: -20%;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.85), transparent 70%);
}

.hero__aurora--2 {
  width: 56vw;
  height: 56vw;
  min-width: 460px;
  min-height: 460px;
  right: -12%;
  top: 4%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.8), transparent 70%);
  animation-delay: -7s;
}

.hero__aurora--3 {
  width: 50vw;
  height: 50vw;
  min-width: 420px;
  min-height: 420px;
  left: 22%;
  bottom: -28%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.32), transparent 66%);
  animation-delay: -13s;
}

@keyframes aurora-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(4%, -3%, 0) scale(1.12);
  }
}

/* 点阵蒙版：白色小点 + 径向遮罩，更稀疏更淡，仅作隐约肌理 */
.hero__grid {
  position: absolute;
  inset: -10%;
  background-image: radial-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1.8px);
  background-size: 38px 38px;
  opacity: 0.1;
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 80%);
  mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 80%);
  animation: grid-pan 36s linear infinite;
}

@keyframes grid-pan {
  to {
    background-position: 30px 60px;
  }
}

/* 暗角 + 顶部高光蒙版，增强层次 */
.hero__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.16), transparent 46%),
    radial-gradient(circle at 50% 78%, rgba(8, 17, 31, 0.38), transparent 62%);
}

/* ---------- 交互蒙版画布（鼠标光晕 + 点击水波纹） ---------- */
#pixel-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ---------- 蓝色 Hero 与下方白色区块之间的颜色过渡 ---------- */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 180px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(59, 130, 246, 0) 0%,
    rgba(96, 165, 250, 0.12) 35%,
    rgba(219, 234, 254, 0.45) 70%,
    rgba(248, 250, 252, 0.85) 90%,
    var(--bg-white) 100%
  );
}

/* ---------- Hero 内容 ---------- */
.hero__inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 820px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  color: #eaf2ff;
  font-size: 14px;
  font-weight: 600;
}

.hero__badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber-400);
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.9);
}

.hero__title {
  margin: 28px 0 20px;
  font-size: clamp(32px, 5.4vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero__subtitle {
  max-width: 560px;
  margin: 0 auto 18px;
  color: rgba(234, 242, 255, 0.9);
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 400;
}

.hero__intro {
  max-width: 640px;
  margin: 0 auto 36px;
  color: rgba(234, 242, 255, 0.82);
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.75;
}

.hero__subtitle strong {
  color: #fff;
  font-weight: 600;
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  z-index: 3;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  letter-spacing: 0.1em;
  animation: bob 2.2s ease-in-out infinite;
}

@keyframes bob {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 6px);
  }
}
