/* Layer 2 · 首屏（hero）组件样式 */
.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  color: var(--bp-content-on-brand);
  background:
    linear-gradient(var(--bp-blueprint-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--bp-blueprint-grid) 1px, transparent 1px),
    var(--bp-gradient-brand);
  background-size: 20px 20px, 20px 20px, auto;
}

.hero::after {
  position: absolute;
  inset: 0;
  content: '';
  pointer-events: none;
  background: radial-gradient(circle at 62% 43%, var(--bp-surface-on-brand-faint), transparent 52%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: var(--bp-space-7);
  width: 100%;
  max-width: calc(var(--bp-layout-content-max) + var(--bp-layout-gutter) + var(--bp-layout-gutter));
  min-height: inherit;
  margin-inline: auto;
  padding: calc(var(--stage-navbar-h) + var(--bp-space-7)) var(--bp-layout-gutter) var(--bp-space-7);
}

.hero__copy {
  min-width: 0;
}

/* 小标签用琥珀金：它在首屏渐变深端（navy-900）上对比度 4.53，小字达标；
   同一色放到白底只有 2.15 会看不清，故金色文字只限深色区使用。 */
.hero__eyebrow {
  margin: 0 0 calc(var(--bp-space-5) + var(--bp-space-1));
  color: var(--bp-accent);
  font-size: var(--bp-font-size-xs);
  letter-spacing: .28em;
}

.hero__headline {
  max-width: 680px;
  margin: 0;
  font-size: clamp(34px, 3.3vw, 56px);
  font-weight: var(--bp-font-weight-bold);
  line-height: 1.35;
  letter-spacing: .035em;
}

.hero__summary {
  margin: calc(var(--bp-space-5) + var(--bp-space-1)) 0 0;
  color: var(--bp-content-on-brand-muted);
  font-size: clamp(var(--bp-font-size-md), 1.25vw, var(--bp-font-size-lg));
  line-height: 1.9;
  letter-spacing: .04em;
}

.hero__domains {
  display: flex;
  flex-wrap: wrap;
  gap: var(--bp-space-2);
  margin: calc(var(--bp-space-5) + var(--bp-space-1)) 0 0;
  padding: 0;
  list-style: none;
  color: var(--bp-content-on-brand);
  font-size: var(--bp-font-size-xs);
  line-height: var(--bp-leading-relaxed);
  letter-spacing: .08em;
}

/* 项与项之间的间隔号：用 CSS 生成而不写进文案，数据层不掺标点。
   琥珀金点缀——装饰符只需 3:1，金色在深蓝底上够用。 */
.hero__domains li:not(:last-child)::after {
  content: '·';
  margin-left: var(--bp-space-2);
  color: var(--bp-accent);
}

.hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--bp-space-6);
  min-width: 200px;
  margin-top: var(--bp-space-6);
  padding: var(--bp-space-4) var(--bp-space-6);
  border: var(--bp-stroke-hairline) solid var(--bp-border-on-brand);
  border-radius: var(--bp-radius-md);
  background: transparent;
  color: var(--bp-content-on-brand);
  font: inherit;
  font-size: var(--bp-font-size-xs);
  font-weight: var(--bp-font-weight-regular);
  cursor: pointer;
  transition: background var(--bp-dur-fast) var(--bp-ease),
    border-color var(--bp-dur-fast) var(--bp-ease),
    transform var(--bp-dur-fast) var(--bp-ease);
}

/* 悬停：填一层极淡的白 + 描边提亮（与导航按钮同一手法）。
   比实底按钮克制——这是首屏的主行动点，靠描边提亮而非整块变白，避免又变成一张白纸。 */
.hero__button:hover {
  background: var(--bp-surface-on-brand-hover);
  border-color: var(--bp-border-on-brand-strong);
  transform: translateY(-2px);
}

.hero__button:focus-visible {
  outline: 2px solid var(--bp-content-on-brand);
  outline-offset: 3px;
}

.hero__button-icon {
  width: var(--bp-font-size-md);
  height: var(--bp-font-size-md);
  flex: none;
}

.hero__button--mobile {
  display: none;
}

/* 3D 渲染画布区：加大占比与最小高度，充分展现机械模型 */
.hero__visual {
  position: relative;
  min-width: 0;
  min-height: 480px;
  align-self: stretch;
}

.hero__model,
.hero__model-mount {
  position: absolute;
  inset: 0;
}

.hero__model-canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}

.hero__model-canvas:active {
  cursor: grabbing;
}

.hero__scribble {
  position: absolute;
  right: 0;
  bottom: 10%;
  /* 不能拦截指针：本元素浮在三维画布之上，画布支持拖动旋转，
     若这里吃掉 pointerdown，在这块文字上起手拖模型会没反应。
     纯装饰文字无需交互，放行事件由画布接手。 */
  pointer-events: none;
  margin: 0;
  color: var(--bp-content-on-brand);
  font-size: clamp(var(--bp-font-size-sm), 1.25vw, var(--bp-font-size-lg));
  font-style: italic;
  line-height: 1.8;
  letter-spacing: .12em;
  transform: rotate(-9deg);
  /* 模型自动适配后，本行仍可能压在浅色模型件上。模型身上有
     浅蓝与米黄件，白字压上去对比度只剩 1.3~2.1:1（远低于小字要求的 4.5）。
     故加一层品牌深色投影作衬：在深蓝背景上它与底色几乎同色、看不出变化，
     压在浅色模型件上则形成一圈暗描边，保住白字可读。用令牌，不写死色值。 */
  text-shadow:
    0 1px 8px var(--bp-surface-brand),
    0 0 3px var(--bp-surface-brand);
}

#stage[data-breakpoint="tablet"] .hero__inner {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--bp-space-4);
}

#stage[data-breakpoint="tablet"] .hero__headline {
  font-size: clamp(30px, 3.4vw, 42px);
}

#stage[data-breakpoint="mobile"] .hero {
  min-height: 100svh;
}

#stage[data-breakpoint="mobile"] .hero__inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  min-height: inherit;
  padding-top: calc(var(--stage-navbar-h) + var(--bp-space-8));
}

#stage[data-breakpoint="mobile"] .hero__eyebrow {
  margin-bottom: var(--bp-space-5);
  font-size: var(--bp-font-size-xs);
  letter-spacing: .16em;
}

#stage[data-breakpoint="mobile"] .hero__headline {
  font-size: clamp(28px, 7.5vw, 32px);
}

#stage[data-breakpoint="mobile"] .hero__summary {
  margin-top: var(--bp-space-5);
  font-size: var(--bp-font-size-sm);
  line-height: var(--bp-leading-relaxed);
}

#stage[data-breakpoint="mobile"] .hero__domains {
  margin-top: var(--bp-space-5);
  font-size: var(--bp-font-size-xs);
}


#stage[data-breakpoint="mobile"] .hero__visual {
  min-height: 250px;
  flex: 1;
}

#stage[data-breakpoint="mobile"] .hero__model {
  inset: 3% 4%;
}

#stage[data-breakpoint="mobile"] .hero__button--desktop {
  display: none;
}

#stage[data-breakpoint="mobile"] .hero__button--mobile {
  display: inline-flex;
  align-self: flex-start;
  min-width: 0;
  gap: var(--bp-space-4);
  margin-top: var(--bp-space-4);
  padding: var(--bp-space-3) var(--bp-space-4);
}

#stage[data-breakpoint="mobile"] .hero__scribble {
  right: var(--bp-space-2);
  bottom: 12%;
  font-size: var(--bp-font-size-xs);
}

@media (max-height: 720px) {
  #stage[data-breakpoint="mobile"] .hero__inner {
    padding-top: calc(var(--stage-navbar-h) + var(--bp-space-6));
    padding-bottom: var(--bp-space-6);
  }

  #stage[data-breakpoint="mobile"] .hero__visual {
    min-height: 230px;
  }
}

@media (max-height: 600px) {
  #stage[data-breakpoint="mobile"] .hero__button--mobile {
    position: absolute;
    z-index: 2;
    left: var(--bp-layout-gutter);
    top: calc(100svh - 45px - var(--bp-space-4));
    margin-top: 0;
  }
}
