/* ============================================================
   首页专属：Hero 轮播 / 三步玩法 / 核心能力 / 产品叙事 / 信任带
   ============================================================ */

/* ---------- Hero：满屏轮播 + 视频背景 ---------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  color: #fff;
  /* 视频未加载/不可播时的兜底底色 */
  background: radial-gradient(120% 90% at 50% 0%, var(--navy-3) 0%, var(--navy-2) 46%, var(--navy-1) 100%);
}
/* 特斯拉式持久视频层：轮播切屏时视频不中断 */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
/* 压暗渐晕：顶部保导航可读、底部保圆点与文案可读 */
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(10, 16, 32, 0.66) 0%,
    rgba(10, 16, 32, 0.14) 30%,
    rgba(10, 16, 32, 0.18) 62%,
    rgba(10, 16, 32, 0.88) 100%);
}
.hero__slide {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.15s ease, visibility 0s linear 1.15s;
}
.hero__slide.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 1.15s ease;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(880px, calc(100% - 48px));
  padding-top: var(--nav-h);
  text-shadow: 0 2px 26px rgba(0, 0, 0, 0.55);
}
.hero__content .eyebrow { animation-delay: 0.05s; }
.hero__content .h-display { margin: 22px 0 18px; animation-delay: 0.15s; }
.hero__content .lead {
  color: rgba(255, 255, 255, 0.78);
  margin: 0 auto 34px;
  animation-delay: 0.25s;
}
html.js .hero__content .eyebrow,
html.js .hero__content .h-display,
html.js .hero__content .lead,
html.js .hero__content .hero__actions { opacity: 0; }
.hero__slide.active .hero__content > * { animation: fadeUp 0.95s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
/* 延迟必须声明在 animation shorthand 之后，否则会被重置为 0 */
.hero__slide.active .hero__content .eyebrow { animation-delay: 0.05s; }
.hero__slide.active .hero__content .h-display { animation-delay: 0.15s; }
.hero__slide.active .hero__content .lead { animation-delay: 0.25s; }
.hero__slide.active .hero__content .hero__actions { animation-delay: 0.38s; }

.hero__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* 首屏底部：八表情条 */
.hero__mascots {
  position: absolute;
  left: 0; right: 0;
  bottom: 64px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: clamp(8px, 1.6vw, 16px);
}
html.js .hero__mascots { opacity: 0; }
.hero__slide.active .hero__mascots { animation: fadeUp 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.55s both; }
.hero__mascots img {
  width: clamp(44px, 6.2vw, 62px);
  height: clamp(44px, 6.2vw, 62px);
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35));
  transition: transform 0.25s ease;
}
.hero__mascots img:hover { transform: translateY(-8px) scale(1.1); }

/* 端列表（第三屏） */
.hero__devices {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 30px;
}
.hero__devices span {
  font-size: 13.5px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-dark);
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.05);
}

.hero__dots {
  position: absolute;
  bottom: 26px; left: 0; right: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.hero__dot {
  width: 26px; height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.3);
  transition: background 0.3s ease, width 0.3s ease;
}
.hero__dot.active { background: #fff; width: 40px; }

/* 向下提示 */
.hero__scroll {
  position: absolute;
  bottom: 24px; right: 28px;
  z-index: 3;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.5);
  writing-mode: vertical-rl;
  animation: nudge 2.4s ease-in-out infinite;
}
@keyframes nudge {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(8px); opacity: 0.9; }
}

/* ---------- 三步玩法 ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 56px);
}
.step__no {
  font-size: 52px;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.4px rgba(23, 26, 32, 0.28);
  margin-bottom: 18px;
  font-variant-numeric: tabular-nums;
}
.step h3 { font-size: 21px; font-weight: 600; margin-bottom: 10px; }
.step p { font-size: 15px; line-height: 1.8; color: var(--ink-2); }

/* ---------- 核心能力 ---------- */
.abilities__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.ability {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 30px 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.ability:hover {
  transform: translateY(-6px);
  border-color: rgba(125, 176, 255, 0.55);
  background: linear-gradient(180deg, rgba(47, 124, 246, 0.12), rgba(47, 124, 246, 0.03));
}
.ability__icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 22px;
  background: rgba(47, 124, 246, 0.16);
  margin-bottom: 20px;
}
.ability h3 { font-size: 17.5px; font-weight: 600; margin-bottom: 10px; }
.ability p { font-size: 14px; line-height: 1.75; color: rgba(255, 255, 255, 0.62); }

/* 八表情条（能力区下方） */
.expressions {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
  align-items: end;
}
.expressions figure { text-align: center; }
.expressions img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  margin: 0 auto 10px;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.4));
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.expressions figure:hover img { transform: translateY(-10px) scale(1.08); }
.expressions figcaption {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.14em;
}

/* ---------- 产品叙事（满屏一屏一产品） ---------- */
.product {
  min-height: 92svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.product .wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(36px, 6vw, 90px);
  align-items: center;
}
.product__media { position: relative; }
.product__media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.product__tag {
  position: absolute;
  left: 14px; bottom: 14px;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(10, 16, 32, 0.6);
  backdrop-filter: blur(6px);
  padding: 5px 12px;
  border-radius: 999px;
}
.product h2 { margin: 16px 0 14px; }
.product .pills { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.product .pills span {
  font-size: 12.5px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(23, 26, 32, 0.16);
  color: var(--ink-2);
}
.product--dark .pills span { border-color: var(--line-dark); color: rgba(255, 255, 255, 0.72); }
.product__actions { margin-top: 30px; display: flex; gap: 13px; flex-wrap: wrap; }

/* 挂件屏：表情宫格直接当主视觉 */
.mascot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.mascot-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  padding: 8px;
  box-shadow: var(--shadow-card);
}

/* ---------- 信任带 ---------- */
.trust__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.trust-item {
  text-align: center;
  padding: 34px 22px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(23, 26, 32, 0.03);
}
.trust-item .t-icon { font-size: 30px; margin-bottom: 14px; }
.trust-item h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.trust-item p { font-size: 13.5px; line-height: 1.75; color: var(--ink-2); }

/* ---------- CTA 收尾带 ---------- */
.cta-band {
  background: radial-gradient(110% 130% at 50% 0%, var(--navy-3), var(--navy-1) 70%);
  color: #fff;
  text-align: center;
}
.cta-band .h-section { margin: 16px 0 14px; }
.cta-band .lead { margin: 0 auto 34px; }
.cta-band .hero__actions { opacity: 1; animation: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .abilities__grid { grid-template-columns: repeat(2, 1fr); }
  .expressions { grid-template-columns: repeat(4, 1fr); row-gap: 26px; }
  .product .wrap { grid-template-columns: 1fr; gap: 34px; }
  .product__media { order: -1; max-width: 560px; }
  .steps { grid-template-columns: 1fr; gap: 38px; }
  .trust__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero__mascots img { display: none; }
  .hero__mascots img:nth-child(-n + 4) { display: block; }
  .hero__scroll { display: none; }
}
