/* ============================================================
   安兴宇联 · 首页 Hero 科技感 v2（浅色 Apple 风）
   文件名称：hero.css
   所属项目：安兴宇联官网
   最后更新：2026-08-24
   ============================================================ */

.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 56px) 0 84px;   /* 顶部留白：导航高度 + 呼吸空间 */
  overflow: hidden;
  background:
    radial-gradient(1100px 560px at 80% 12%, rgba(0, 102, 255, 0.10), transparent 62%),
    radial-gradient(760px 460px at 8% 88%, rgba(0, 102, 255, 0.06), transparent 58%),
    #fafbfd;
}

/* 背景层 */
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0, 102, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 102, 255, 0.05) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 90% 75% at 60% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 75% at 60% 40%, #000 30%, transparent 75%);
}
.hero-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(700px 420px at 72% 30%, rgba(0, 102, 255, 0.08), transparent 65%),
    radial-gradient(520px 380px at 18% 78%, rgba(61, 139, 255, 0.06), transparent 60%);
}

/* 扫描线（动画，淡蓝） */
.scanline {
  position: absolute; left: 0; right: 0; height: 2px; z-index: 1;
  background: linear-gradient(90deg, transparent, rgba(0, 102, 255, 0.35), transparent);
  opacity: 0.5;
  animation: scan 6s linear infinite;
}
@keyframes scan {
  0% { top: 0%; opacity: 0; }
  8% { opacity: 0.55; }
  92% { opacity: 0.55; }
  100% { top: 100%; opacity: 0; }
}

/* 浮动粒子 */
.hero-particles { position: absolute; inset: 0; z-index: 1; }
.dot {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: var(--blue); opacity: 0.35;
  box-shadow: 0 0 8px var(--blue-glow);
  animation: floaty linear infinite;
}
@keyframes floaty {
  0% { transform: translateY(0); opacity: 0; }
  10% { opacity: 0.5; }
  90% { opacity: 0.5; }
  100% { transform: translateY(-46vh); opacity: 0; }
}

/* 内容 */
.hero-content { position: relative; z-index: 5; width: min(var(--container), 92%); margin-inline: auto; }

/* Hero 左右布局 */
.hero-main { max-width: 640px; }

/* Hero 右侧装饰机器人 */
.hero-art {
  position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  width: 420px; height: 420px;
  display: grid; place-items: center;
  pointer-events: none;
}
.hero-art-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(0, 102, 255, 0.14);
}
.hero-art-ring.ring-1 { width: 400px; height: 400px; animation: ringSpin 26s linear infinite; }
.hero-art-ring.ring-2 { width: 300px; height: 300px; border-style: dashed; animation: ringSpin 40s linear infinite reverse; }
@keyframes ringSpin { to { transform: rotate(360deg); } }
.hero-art-ring.ring-1::before,
.hero-art-ring.ring-1::after {
  content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%;
  background: var(--blue); box-shadow: 0 0 12px var(--blue-glow);
}
.hero-art-ring.ring-1::before { top: 18px; left: 50%; }
.hero-art-ring.ring-1::after { bottom: 42px; right: 26px; }
.hero-art-ring.ring-2::before {
  content: ""; position: absolute; top: -4px; left: 50%;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--orange); box-shadow: 0 0 12px rgba(255, 58, 23, 0.5);
}
.hero-art-robot {
  position: relative; width: 220px; height: 220px;
  display: grid; place-items: center;
  border-radius: 44px;
  background:
    radial-gradient(120% 120% at 30% 20%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 55%),
    linear-gradient(160deg, rgba(0, 102, 255, 0.16), rgba(0, 102, 255, 0.04));
  border: 1px solid rgba(0, 102, 255, 0.22);
  box-shadow: 0 30px 70px rgba(0, 60, 160, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  animation: heroFloat 6s ease-in-out infinite;
}
.hero-art-robot img { width: 150px; height: 150px; }
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.hero-art-orb {
  position: absolute; width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(0, 102, 255, 0.25);
  box-shadow: 0 10px 26px rgba(0, 60, 160, 0.12);
  color: var(--blue);
  animation: orbFloat 5.5s ease-in-out infinite;
}
.hero-art-orb svg { width: 22px; height: 22px; }
.hero-art-orb.orb-a { top: -16px; right: -12px; animation-delay: 0.6s; }
.hero-art-orb.orb-b { bottom: -8px; left: -18px; animation-delay: 1.4s; }
.hero-art-orb.orb-c { top: 50%; right: -34px; transform: translateY(-50%); animation-delay: 2.2s; }
@keyframes orbFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.hero-art-orb.orb-c { animation-name: orbFloatC; }
@keyframes orbFloatC {
  0%, 100% { transform: translateY(-50%); }
  50% { transform: translateY(calc(-50% - 8px)); }
}

@media (max-width: 1080px) {
  .hero-art { opacity: 0.55; transform: translateY(-50%) scale(0.82); transform-origin: center right; }
}
@media (max-width: 860px) {
  .hero-art { display: none; }
  .hero-main { max-width: none; }
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-size: var(--fs-tiny); letter-spacing: 0.32em;
  color: var(--blue); text-transform: uppercase;
  border: 1px solid rgba(0, 102, 255, 0.3); border-radius: 40px;
  padding: 0.45rem 1.1rem; margin-bottom: 1.6rem;
  background: rgba(0, 102, 255, 0.06);
}
.hero-eyebrow .pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 10px rgba(10, 158, 84, 0.5);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: 0.55; } }

.hero-title {
  font-size: var(--fs-display); font-weight: 800;
  line-height: 1.14; letter-spacing: 0.01em;
  color: var(--text-1);
}
.hero-title .grad {
  background: linear-gradient(120deg, var(--blue) 0%, #4d8bff 70%, #7ba8ff 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-title .stroke {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(0, 102, 255, 0.45);
}

.hero-desc {
  margin-top: 1.6rem; max-width: 560px;
  color: var(--text-2); font-size: 1.06rem;
}

.hero-cta { margin-top: 2.2rem; display: flex; gap: 1rem; flex-wrap: wrap; }

/* Hero 底部数据条 */
.hero-stats {
  margin-top: var(--sp-5);
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-1);
  border-bottom: 1px solid var(--line-1);
}
.hero-stat { padding: 1.1rem 1rem 1.1rem 0; }
.hero-stat + .hero-stat { border-left: 1px solid var(--line-1); padding-left: 1.4rem; }
.hero-stat .num {
  font-family: var(--font-num); font-size: var(--fs-h1);
  font-weight: 700; color: var(--blue);
  line-height: 1.1;
}
.hero-stat .num sup { font-size: 1rem; color: var(--text-2); }
.hero-stat .lbl { color: var(--text-3); font-size: var(--fs-tiny); letter-spacing: 0.18em; margin-top: 0.25rem; }

/* 滚动提示 */
.scroll-hint {
  position: absolute; left: 50%; bottom: 24px; z-index: 5;
  transform: translateX(-50%);
  color: var(--text-3); font-size: var(--fs-tiny);
  letter-spacing: 0.3em; display: flex; flex-direction: column;
  align-items: center; gap: 8px;
}
.scroll-hint .line {
  width: 1px; height: 40px; background: rgba(0, 102, 255, 0.25);
  position: relative; overflow: hidden;
}
.scroll-hint .line::after {
  content: ""; position: absolute; left: 0; top: -100%;
  width: 100%; height: 100%;
  background: var(--blue);
  animation: scrolldrop 1.8s var(--ease-out) infinite;
}
@keyframes scrolldrop {
  0% { top: -100%; }
  60%, 100% { top: 100%; }
}

@media (max-width: 720px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); row-gap: 0.4rem; }
  .hero-stat:nth-child(3) { border-left: 0; }
  .hero-stat .num { font-size: var(--fs-h2); }
}
