/* =========================================================
 * hero.css —— 影院式首屏 + 裸眼3D车模舞台 + 数据条
 * =======================================================*/

.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
  background: #0b120f;
  color: var(--hero-ink);
}

.hero__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .52; filter: saturate(1.05);
  transform: scale(1.04);
}

.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 14, 11, .55) 0%, rgba(8, 14, 11, .25) 42%, rgba(8, 14, 11, .82) 100%),
    radial-gradient(720px 520px at 78% 42%, rgba(14, 157, 124, .22), transparent 70%);
}

/* 赛道网格装饰线 */
.hero__grid-lines {
  position: absolute; inset: 0; pointer-events: none; opacity: .1;
  background-image:
    linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(600px 480px at 76% 46%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(600px 480px at 76% 46%, #000 30%, transparent 75%);
}

.hero__inner {
  position: relative; z-index: 2;
  width: min(1320px, 94vw); margin: 0 auto;
  flex: 1;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center; gap: 30px;
  padding-top: 110px;
}

/* ---- 文案区 ---- */
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13.5px; font-weight: 600; letter-spacing: .14em;
  color: rgba(242, 247, 244, .85);
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .07);
  padding: 7px 16px 7px 8px; border-radius: 999px;
  backdrop-filter: blur(6px);
}
.hero__eyebrow img { width: 26px; height: 26px; border-radius: 50%; background: #fff; }

.hero__title {
  margin: 26px 0 18px;
  font-size: clamp(40px, 6.2vw, 74px);
  line-height: 1.16; letter-spacing: .02em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, .45);
}
.hero__title .grad {
  background: linear-gradient(100deg, #35e0b2 10%, #ffd23d 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { font-size: clamp(15px, 1.6vw, 18px); color: rgba(242, 247, 244, .82); line-height: 1.9; }

.hero__cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

.hero__hint { margin-top: 26px; font-size: 12.5px; color: rgba(242, 247, 244, .5); letter-spacing: .06em; }

/* ---- 裸眼3D 车模舞台 ---- */
.stage3d {
  position: relative; height: min(58vh, 560px);
  perspective: 1100px;
  display: grid; place-items: center;
  cursor: grab;
  touch-action: pan-y;
}
.stage3d:active { cursor: grabbing; }

/* 地面光环 */
.stage3d__ring {
  position: absolute; bottom: 4%; left: 50%; translate: -50% 0;
  width: 74%; aspect-ratio: 2.2;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, transparent 54%, rgba(53, 224, 178, .38) 62%, transparent 72%),
    radial-gradient(closest-side, rgba(14, 157, 124, .18), transparent 70%);
  filter: blur(1px);
  animation: ringPulse 4.5s ease-in-out infinite;
}
@keyframes ringPulse {
  0%, 100% { transform: scaleX(1); opacity: .85; }
  50% { transform: scaleX(.94); opacity: 1; }
}

/* 车底投影 */
.stage3d__shadow {
  position: absolute; bottom: 10%; left: 50%; translate: -50% 0;
  width: 46%; height: 26px;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .55), transparent);
  border-radius: 50%;
  animation: shadowPulse 4.5s ease-in-out infinite;
}
@keyframes shadowPulse {
  0%, 100% { transform: scaleX(1); opacity: .8; }
  50% { transform: scaleX(.9); opacity: .95; }
}

/* 3D 容器：JS 写 rotateY / rotateX */
.stage3d__orbit {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}

.stage3d__car {
  max-width: min(46vw, 620px);
  max-height: 100%;
  object-fit: contain;
  filter:
    drop-shadow(0 30px 34px rgba(0, 0, 0, .5))
    drop-shadow(0 0 26px rgba(53, 224, 178, .16));
  animation: carHover 4.5s ease-in-out infinite;
  will-change: transform;
  user-select: none; -webkit-user-drag: none; pointer-events: none;
}
@keyframes carHover {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.stage3d__tag {
  position: absolute; bottom: -4px; left: 50%; translate: -50% 0;
  font-size: 11.5px; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(242, 247, 244, .55);
  white-space: nowrap;
}

/* ---- 数据条 ---- */
.hero__stats {
  position: relative; z-index: 2;
  width: min(1320px, 94vw); margin: 0 auto;
  padding: 22px 0 30px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.stat { text-align: center; }
.stat__num {
  font-family: var(--font-num);
  font-size: clamp(30px, 3.6vw, 46px); font-weight: 800;
  background: linear-gradient(120deg, #35e0b2, #7be2ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat__star { color: var(--c-gold); -webkit-text-fill-color: var(--c-gold); font-size: .5em; vertical-align: super; }
.stat span { display: block; font-size: 13px; color: rgba(242, 247, 244, .66); margin-top: 2px; }

/* ---- 响应式 ---- */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; padding-top: 130px; }
  .stage3d { height: 46vh; order: -1; }
  .stage3d__car { max-width: 78vw; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 12px 8px; }
}
