/* 首屏：左侧文案，右侧一颗大地球（手机在文案下面）。地球区接收拖动，文案区不挡它。 */
#hero {
  --hero-h: max(680px, 100svh);
  --hero-left: max(var(--pad), calc((100vw - var(--maxw)) / 2));
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  isolation: isolate;
  min-height: var(--hero-h);
  overflow: hidden;
  background: radial-gradient(120% 90% at 72% 58%, #12161b 0%, var(--bg) 62%);
}
#hero .hero-inner { position: relative; z-index: 2; min-height: var(--hero-h); display: flex; align-items: center; pointer-events: none; }
#hero .hero-copy {
  pointer-events: auto;
  width: min(44%, 620px);
  padding: calc(var(--nav-h) + 24px) 32px 64px var(--hero-left);
  box-sizing: content-box;
}
#hero .hero-title { font-size: var(--fs-hero); line-height: 1.18; font-weight: 700; letter-spacing: -0.015em; }
#hero .hero-title .ln { display: block; }
#hero .hero-lede { margin-top: 24px; max-width: 28em; color: var(--ink-2); font-size: 17px; line-height: 1.85; }
#hero .hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
#hero .hero-caps { list-style: none; margin: 44px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(3, max-content); justify-content: start; gap: 8px 30px;
  font-size: var(--fs-small); color: var(--ink-3); max-width: 36em; }
#hero .hero-caps li { white-space: nowrap; display: inline-flex; align-items: center; gap: 9px; }
#hero .hero-caps li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--ink-4); }

/* 地球区 */
#hero .hero-globe {
  position: absolute; z-index: 1; inset: 0;
  touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none;
}
#hero .hero-globe.is-dragging { cursor: grabbing; }
#hero .hero-globe canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
#hero .globe-tags { position: absolute; inset: 0; pointer-events: none; }
#hero .globe-tag {
  position: absolute; left: 0; top: 0; opacity: 0;
  display: inline-flex; align-items: baseline; gap: 8px; padding: 5px 9px; white-space: nowrap;
  border-radius: 6px; border: 1px solid rgba(255, 255, 255, .08); background: rgba(14, 16, 18, .74);
  color: var(--ink-1); font-size: 13px; line-height: 1.2; cursor: pointer;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
#hero .globe-tag .n { font-weight: 600; }
#hero .globe-tag .c { color: var(--ink-3); font-size: 12px; font-variant-numeric: tabular-nums; }
#hero .globe-tag .go { display: none; color: var(--amber); font-size: 12px; }
#hero .globe-tag.is-origin { border-color: rgba(242, 179, 61, .32); }
#hero .globe-tag.is-hot, #hero .globe-tag:focus-visible { border-color: rgba(242, 179, 61, .7); background: rgba(28, 22, 8, .9); }
#hero .globe-tag.is-hot .go, #hero .globe-tag:focus-visible .go { display: inline; }
#hero .globe-tag:focus-visible { outline: none; }

#hero .globe-hint { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); margin: 0;
  font-size: 13px; color: var(--ink-3); white-space: nowrap; pointer-events: none; transition: opacity .6s var(--ease); }
#hero .globe-hint .h-mob { display: none; }
#hero .hero-globe.was-dragged .globe-hint { opacity: 0; }

#hero .hero-pause {
  position: absolute; right: max(var(--pad), calc((100vw - var(--maxw)) / 2)); bottom: 22px;
  width: 38px; height: 38px; border-radius: var(--r-btn);
  border: 1px solid var(--line-strong); background: rgba(14, 16, 18, .72); cursor: pointer;
  display: grid; place-items: center; transition: border-color .2s var(--ease);
}
#hero .hero-pause:hover { border-color: var(--ink-3); }
#hero .hero-pause:active { transform: translateY(1px); }
#hero .hero-pause svg { width: 14px; height: 14px; fill: var(--ink-2); }
#hero .hero-pause .i-play { display: none; }
#hero .hero-pause[aria-pressed="true"] .i-play { display: block; }
#hero .hero-pause[aria-pressed="true"] .i-pause { display: none; }

/* 开场编排：标题两行、说明、按钮、能力词依次进来，只播一次；动画不跑时文字照常可见 */
@keyframes hero-rise { from { opacity: 0; transform: translateY(16px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes hero-fade { from { opacity: 0; } to { opacity: 1; } }
#hero .hero-title .ln { animation: hero-rise .9s var(--ease-expo) both; }
#hero .hero-title .ln:nth-child(2) { animation-delay: .12s; }
#hero .hero-lede { animation: hero-rise .9s var(--ease-expo) .28s both; }
#hero .hero-cta { animation: hero-rise .9s var(--ease-expo) .4s both; }
#hero .hero-caps { animation: hero-fade 1.2s var(--ease) .9s both; }
#hero .globe-hint { animation: hero-fade 1s var(--ease) 4.8s both; }

/* 手机：文案在上，地球在下 */
@media (max-width: 900px) {
  #hero { min-height: 0; background: var(--bg); }
  #hero .hero-inner { min-height: 0; display: block; }
  #hero .hero-copy { width: auto; padding: calc(var(--nav-h) + 32px) 16px 0; }
  #hero .hero-title { font-size: clamp(30px, 8vw, 40px); line-height: 1.24; }
  #hero .hero-lede { margin-top: 14px; font-size: 15px; line-height: 1.8; }
  #hero .hero-cta { margin-top: 22px; }
  #hero .hero-cta .hl-btn { flex: 1; justify-content: center; }
  #hero .hero-caps { margin-top: 26px; padding-top: 14px; font-size: 13px; gap: 6px 18px; }
  #hero .hero-globe { position: relative; top: auto; left: auto; right: auto; bottom: auto; height: min(104vw, 460px); margin-top: 8px; }
  #hero .globe-tag { font-size: 12px; padding: 3px 7px; gap: 6px; }
  #hero .globe-tag .c { display: none; }
  #hero .globe-hint { bottom: 10px; font-size: 12px; }
  #hero .globe-hint .h-desk { display: none; }
  #hero .globe-hint .h-mob { display: inline; }
  #hero .hero-pause { right: 12px; bottom: 6px; width: 34px; height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  #hero .hero-title .ln, #hero .hero-lede, #hero .hero-cta, #hero .hero-caps, #hero .globe-hint { animation: none; }
  #hero .globe-hint { transition: none; }
}
