﻿/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 120px; text-align: center;
  max-width: var(--max-width); margin: 0 auto;
}
.hero-tag {
  display: inline-block;
  font-size: 12px; font-weight: 500; color: var(--paper);
  letter-spacing: 0.03em; text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.32); border-radius: var(--radius-pill);
  padding: 4px 16px; margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.20);
  position: relative; z-index: 2;
}
.hero h1 {
  font-family: 'RuiZiZongYi', 'Inter Tight', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 72px; font-weight: 500;
  line-height: 1.2; letter-spacing: 0.06em;
  color: var(--paper); margin: 0 auto 20px;
  max-width: 900px; overflow: visible;
  position: relative; z-index: 2;
}
.hero h1 em {
  font-style: italic; color: var(--paper);
  padding-right: 0.05em; display: block; text-align: center;
}

/* ── Floating Particles ── */
.hero-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}
.hero-particle {
  position: absolute;
  bottom: -10px;
  border-radius: 50%;
  background: var(--electric);
  opacity: 0;
  animation: floatUp var(--dur) var(--delay) ease-in infinite;
}
@keyframes floatUp {
  0% {
    transform: translateY(0) translateX(0) scale(0);
    opacity: 0;
  }
  8% {
    opacity: 0.9;
  }
  25% {
    transform: translateY(-35vh) translateX(var(--drift)) scale(1);
    opacity: 0.65;
  }
  55% {
    opacity: 0.30;
  }
  100% {
    transform: translateY(-100vh) translateX(var(--drift2)) scale(0.4);
    opacity: 0;
  }
}
.hero-desc {
  font-size: 16px; color: var(--silver); line-height: 1.6;
  max-width: 520px; margin: 0 auto 36px;
  position: relative; z-index: 2;
}
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 2; }

/* ── Hero 背景视频 — 仅首屏显示（随页面滚动离开），位于粒子效果与流星效果之下 ── */
.hero-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
  pointer-events: none;
  opacity: 1;                             /* 不透明：直接显示原视频 */
}

/* ── Scroll Indicator ── */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  z-index: 10;
  transition: opacity 0.6s ease;
}
.scroll-indicator.hidden {
  opacity: 0;
}
.scroll-indicator svg {
  width: 100px;
  height: 70px;
  overflow: visible;
}
/* 箭头 */
.scroll-indicator .scroll-arrow {
  fill: none;
  stroke: rgba(255, 255, 255, 0.50);
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transition: opacity 0.35s ease 0.35s;
}
.scroll-indicator.animate .scroll-arrow {
  opacity: 1;
}
.scroll-indicator .scroll-arrow-2 {
  transition: opacity 0.35s ease 0.5s;
}
/* 箭头微动 — 用独立属性避免覆盖 opacity */
@keyframes arrowPulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}
.scroll-indicator.animate svg {
  animation: none;
}
.scroll-indicator.animate .scroll-arrow {
  animation: arrowPulse 1.4s ease-in-out infinite;
}
.scroll-indicator.animate .scroll-arrow-2 {
  animation: arrowPulse 1.4s ease-in-out 0.2s infinite;
}
/* 文字 */
.scroll-indicator .scroll-text {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  fill: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.02em;
}
@media (max-width: 768px) {
  .scroll-indicator { bottom: 16px; }
  .scroll-indicator svg { width: 72px; height: 50px; }
  .hero-particle:nth-child(n+8) { display: none; }
}
.btn-primary {
  background: var(--brand-blue); color: var(--paper);
  padding: 10px 22px; border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 500; text-decoration: none;
  border: none; cursor: pointer;
  transition: background 0.25s, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s;
}
.btn-primary:hover {
  background: #0435d9;
  box-shadow: 0 8px 24px -6px rgba(3, 43, 171, 0.4);
}
.btn-ghost {
  background: transparent; color: var(--paper);
  padding: 10px 22px; border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 500; text-decoration: none;
  border: 1px solid rgba(255,255,255,0.18); cursor: pointer;
  transition: border-color 0.25s, background 0.25s, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.04); }

/* ── Trust Logo Strip ── */
.trust-strip {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px 28px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
}
.trust-label {
  font-family: var(--font-body);
  text-align: left;
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.50);
  letter-spacing: 0.02em;
  line-height: 1.7;
  text-transform: none;
  margin-bottom: 28px;
  padding-left: 0;
}
.trust-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: trustMarquee 60s linear infinite;
}
.trust-track:hover {
  animation-play-state: paused;
}
.trust-track > span {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  transition: opacity 0.35s ease;
  cursor: default;
  opacity: 0.78;
}
.trust-track > span:hover {
  opacity: 1;
}
.trust-track > span > img {
  height: 24px;
  width: auto;
  display: block;
}
.trust-track > span > span {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
}

@keyframes trustMarquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (max-width: 768px) {
  .hero { padding: 180px 24px 40px; }
  .hero h1 { font-size: 36px; }
  .hero h1 em { font-size: 36px; }
  .hero-tag { font-size: 11px; padding: 3px 12px; }
  .hero-btns { flex-direction: column; gap: 10px; width: 100%; }
  .hero-btns .btn-primary, .hero-btns .btn-ghost { width: 100%; justify-content: center; }
  .trust-strip { padding: 28px 24px 20px; }
  .trust-track { gap: 24px; }
  .trust-track > span > img { height: 16px; }
  .trust-track > span > span { font-size: 12px; }
}

@media (max-width: 480px) {
  .hero { padding: 160px 16px 30px; min-height: 100vh; }
  .hero h1, .hero h1 em { font-size: 24px; }
  .hero-tag { font-size: 10px; }
  .trust-strip { padding: 20px 12px 16px; }
  .trust-label { font-size: 9px; }
  .trust-track { gap: 16px; }
  .trust-track > span > img { height: 14px; }
  .trust-track > span > span { font-size: 11px; }
}

/* ═══ 移动端重构覆盖（追加） ═══ */
/* iOS 下用 100svh 避免地址栏吃掉首屏高度（不支持时自动回退到 100vh） */
@media (max-width: 480px) {
  .hero { min-height: 100svh; }
}

/* Hero 按钮：手机端去掉滑动箭头动效、缩小、一排并排 */
@media (max-width: 768px) {
  .hero-btns { flex-direction: row; gap: 12px; width: 100%; justify-content: center; }
  .hero-btns .btn-primary, .hero-btns .btn-ghost {
    width: auto;
    padding: 9px 22px;
    font-size: 12px;
    justify-content: center;
  }
  .hero-btns .btn-arrow-slide:hover { transform: none; }
  .hero-btns .btn-arrow-slide:hover .btn-text { transform: none; }
  .hero-btns .btn-arrow-slide .btn-arrow { display: none; }
}

/* ═══ Hero 布局重构：公司标签居中在导航栏下方，主标题移至右下角，按钮移至左下角与客服按钮并排 ═══ */
.hero-tag {
  position: absolute;
  top: 76px;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 0;
}
/* 主标题 → 右下角（右对齐） */
.hero h1 {
  position: absolute;
  right: 24px;
  bottom: 140px;
  text-align: right;
  margin: 0;
}
.hero h1 em {
  text-align: right;
}
.hero-btns {
  position: absolute;
  left: 104px;        /* 客服按钮 24px边距 + 64px宽 + 16px间隙 = 104px，紧挨其右侧 */
  bottom: 32px;       /* 与客服按钮垂直居中对齐 */
  width: auto;
  justify-content: flex-start;
}
@media (min-width: 1801px) {
  /* 超宽屏（>1800px）时 .hero 有居中留白，补偿回去让按钮仍贴住客服按钮 */
  .hero-btns { left: calc(104px - (100vw - 1800px) / 2); }
}
@media (max-width: 768px) {
  /* 移动端：标题回到居中，按钮回到正常流居中显示在标题下方 */
  .hero h1 {
    position: static;
    right: auto;
    bottom: auto;
    text-align: center;
    margin: 120px auto 20px;
  }
  .hero h1 em { text-align: center; }
  .hero-btns {
    position: static;
    width: 100%;
    justify-content: center;
  }
}
@media (max-width: 480px) {
  .hero-tag { top: 64px; }
}

/* ── Hero 按钮：毛玻璃效果（两按钮样式一致） ── */
.hero-btns .btn-primary,
.hero-btns .btn-ghost {
  background: rgba(3, 43, 171, 0.3);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.5);
  transform: translateZ(0);
  will-change: transform;
}
.hero-btns .btn-primary:hover,
.hero-btns .btn-ghost:hover {
  background: rgba(3, 43, 171, 0.5);
  border-color: rgba(255, 255, 255, 0.45);
}

/* ── Hero 标题 3D 倾斜 ── */
.hero h1 {
  transform-style: preserve-3d;
  will-change: transform;
}

/* ── Hero 标题：鼠标周围局部变黄，黄色光斑随鼠标移动 ── */
.hero h1 {
  color: transparent;
  -webkit-text-fill-color: transparent;
  --mx: -50%;
  --my: -50%;
  background-image: radial-gradient(
    circle 180px at var(--mx) var(--my),
    var(--electric) 0%,
    var(--electric) 38%,
    var(--paper) 85%
  );
  background-size: 100% 100%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
}
.hero h1 em {
  display: inline;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
/* 移动端（触屏）去掉光斑交互，标题为黄色文字 */
@media (max-width: 768px) {
  .hero h1 {
    color: var(--electric);
    -webkit-text-fill-color: var(--electric);
    background-image: none;
  }
  .hero h1 em {
    color: var(--electric);
    -webkit-text-fill-color: var(--electric);
  }
}