/**
 * PCB 中心页 · 段1 Hero
 *
 * 数值取自 Figma 实测（节点 1:513 / 1:211 / 1:514 / 1:515 / 1:516 / 1:517 /
 * 1:518 / 1:519 / 1:521 / 1:525 / 1:526 / 1:530 / 1:534 / 1:548）：
 *   Hero 主体 1920×783；左侧渐变块 1135×783；标题 32px 白 + 48px 品牌绿（行高 58）；
 *   正文 #FFFFFF 16px/28（宽 790）；主按钮 #008C11 实心 330×60 圆角 6；
 *   次按钮 透明 + 白描边 330×60 圆角 6；按钮内圆 32×32；
 *   统计条 #071D16 + 描边 #3A6A50（1920×120，4 格）；统计大字 24px/28；
 *   锚点激活下划线 86×2 品牌绿。
 */

/* ── Hero 主体：783 高，右侧实景 + 左侧压暗 ────────── */

.pcb-hero__stage {
  position: relative;
  display: flex;
  align-items: center;
  /* 客户需求表第 2 行「这里空太大了，设计稿下面的数据是有展示出来大部分的」：
     写死 783 在 ~810 高的笔记本视口里会把数据条整个推出屏外。
     改为随视口收缩（下限 560），保证 头部（实测 122）+ 舞台 + 数据条（120）一屏放得下；
     1080 视口仍取 783，与设计稿一致。 */
  min-height: max(560px, min(783px, calc(100vh - 252px)));
  overflow: hidden;
  background-color: #07231a;
  background-image: var(--pcb-hero-bg, linear-gradient(135deg, #0a3d2a 0%, #041a12 100%));
  background-position: center right;
  background-size: cover;
}

/* 左侧渐变块（设计稿 1:513，1135×783）——压暗左半以突出文字 */
.pcb-hero__stage::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: min(1135px, 64%);
  background: linear-gradient(
    90deg,
    rgba(3, 30, 21, 0.97) 0%,
    rgba(3, 30, 21, 0.92) 42%,
    rgba(3, 30, 21, 0.55) 72%,
    rgba(3, 30, 21, 0) 100%
  );
  pointer-events: none;
}

.pcb-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1718px; /* = 设计稿内容宽 1638 + 左右各 40 padding */
  margin: 0 auto;
  padding: 0 40px;
}

/* 标题：行1 白 32px，行2 品牌绿 48px */
.pcb-hero__title {
  margin: 0 0 26px;
  font-family: var(--pcb-font-display);
  font-weight: 900;
  line-height: 58px;
}

.pcb-hero__title-line {
  display: block;
  /* 设计稿：标题行1 为 Orbitron Bold（700），行2 为 Orbitron Black（900）。
     父级 .*__title 统一写了 900，会让行1 也按 Black 渲染。 */
  font-weight: 700;
  font-size: 32px;
  color: #ffffff;
}

.pcb-hero__title-accent {
  display: block;
  font-size: 48px;
  color: #008c11;
}

.pcb-hero__lead {
  max-width: 790px;
  margin: 0 0 34px;
  /* 客户 9/28 新增 r2「文字两端对齐」。 */
  text-align: justify;
  font-size: 16px;
  line-height: 28px;
  color: #ffffff;
}

/* 双按钮（330×60 / 圆角 6） */
.pcb-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 44px;
}

.pcb-hero__btn {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  min-width: 330px;
  min-height: 60px;
  padding: 0 14px 0 22px;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.24s ease, box-shadow 0.24s ease, transform 0.24s ease;
}

.pcb-hero__btn--primary {
  background: #008c11;
  border: 1px solid #008c11;
}

.pcb-hero__btn--primary:hover { background: #007a0f; }

.pcb-hero__btn--ghost {
  background: transparent;
  border: 1px solid #ffffff;
}

.pcb-hero__btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }

.pcb-hero__btn-dot {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #008c11;
  background: #ffffff;
  border-radius: 50%;
}

.pcb-hero__btn--ghost .pcb-hero__btn-dot {
  color: #ffffff;
  background: transparent;
  border: 1px solid #ffffff;
}

.pcb-hero__btn-dot svg { width: 14px; height: 14px; }

.pcb-hero__btn:hover {
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.pcb-hero__scope {
  margin: 0;
  font-size: 18px;
  line-height: 28px;
  color: #ffffff;
}

/* ── 统计条（1:526）：深绿 #071D16 + 描边 #3A6A50 ───── */

.pcb-hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  background: #071d16;
  border-top: 1px solid #3a6a50;
  border-bottom: 1px solid #3a6a50;
}

.pcb-hero__stat {
  display: flex;
  gap: 16px;
  align-items: center;
  min-height: 120px;
  padding: 20px 34px;
  border-left: 1px solid #3a6a50;
}

.pcb-hero__stat:first-child { border-left: 0; }

.pcb-hero__stat-icon {
  display: inline-flex;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  color: #ffffff;
  opacity: 0.92;
}

.pcb-hero__stat-icon svg { width: 100%; height: 100%; }

.pcb-hero__stat-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pcb-hero__stat-value {
  font-size: 24px;
  font-weight: 700;
  line-height: 28px;
  color: #ffffff;
}

.pcb-hero__stat-label {
  font-size: 14px;
  line-height: 24px;
  color: rgba(255, 255, 255, 0.78);
}

/* ── 页内锚点（1:534 / 1:548 下划线 86×2）──────────── */

.pcb-hero__anchors {
  background: #ffffff;
  border-bottom: 1px solid var(--pcb-line);
}

.pcb-hero__anchors-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 40px;
  justify-content: center;
  width: min(1637px, calc(100% - 80px));
  margin: 0 auto;
  padding: 20px 0;
  list-style: none;
}

.pcb-hero__anchor a {
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
  font-size: 15px;
  line-height: 28px;
  color: var(--pcb-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.pcb-hero__anchor a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 86px;
  max-width: 100%;
  height: 2px;
  background: #008c11;
  transform: translateX(-50%) scaleX(0);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.pcb-hero__anchor a:hover { color: #008c11; }

.pcb-hero__anchor a.is-active {
  font-weight: 700;
  color: #008c11;
}

.pcb-hero__anchor a.is-active::after { transform: translateX(-50%) scaleX(1); }

.pcb-hero__anchor a:focus-visible {
  outline: 2px solid #008c11;
  outline-offset: 2px;
}

/* ── 响应式 ─────────────────────────────────────────── */

@media (max-width: 1500px) {
  .pcb-hero__stage { min-height: 640px; }
  .pcb-hero__title-line { font-size: 27px; }
  .pcb-hero__title-accent { font-size: 40px; }
  .pcb-hero__title { line-height: 50px; }
  .pcb-hero__stat { padding: 18px 22px; min-height: 106px; }
  .pcb-hero__stat-value { font-size: 21px; }
}

@media (max-width: 1180px) {
  .pcb-hero__stage { min-height: 0; }
  .pcb-hero__stage::before { width: 100%; background: rgba(3, 30, 21, 0.86); }
  .pcb-hero__content { padding: 72px 40px; }
  .pcb-hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pcb-hero__stat:nth-child(3) { border-left: 0; }
  .pcb-hero__stat:nth-child(n + 3) { border-top: 1px solid #3a6a50; }
}

@media (max-width: 860px) {
  .pcb-hero__content { padding: 56px 24px; }
  .pcb-hero__title-line { font-size: 22px; }
  .pcb-hero__title-accent { font-size: 30px; }
  .pcb-hero__title { line-height: 42px; }
  .pcb-hero__lead { font-size: 15px; line-height: 26px; }
  .pcb-hero__actions { flex-direction: column; gap: 12px; }
  .pcb-hero__btn { width: 100%; min-width: 0; }
  .pcb-hero__scope { font-size: 15px; line-height: 24px; }
  .pcb-hero__stats { grid-template-columns: minmax(0, 1fr); }
  .pcb-hero__stat { border-top: 1px solid #3a6a50; border-left: 0; min-height: 84px; padding: 16px 24px; }
  .pcb-hero__stat:first-child { border-top: 0; }
  .pcb-hero__anchors-list { gap: 6px 20px; padding: 16px 0; }
}
