/* ============================================================
   00 HERO · 首屏样式
   选择器均以 #hero 开头，防全局污染；只用 tokens.css 的设计令牌
   首屏不加 [data-reveal]，保证第一个画面立即可见
   ============================================================ */

#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-block: clamp(6rem, 12vh, 8.5rem) clamp(3.5rem, 8vh, 6rem);
}

/* —— 斜向示波器扫描线（纯装饰） —— */
#hero .hero-scan {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
#hero .hero-scan::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -60%;
  width: 60%;
  height: 200%;
  background: linear-gradient(
    100deg,
    transparent 0%,
    var(--cyan-soft) 45%,
    var(--cyan-glow) 50%,
    var(--cyan-soft) 55%,
    transparent 100%
  );
  filter: blur(2px);
  animation: hero-scan-sweep 9s linear infinite;
}
@keyframes hero-scan-sweep {
  0%   { transform: translateX(0)    skewX(-14deg); opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { transform: translateX(280%) skewX(-14deg); opacity: 0; }
}

/* —— 主布局：左文右仪表 —— */
#hero .hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(2.2rem, 5vw, 5rem);
}

/* ============================================================
   左侧 · 文案
   ============================================================ */
#hero .hero-tick { margin-bottom: clamp(1.2rem, 2.6vw, 2rem); }

#hero .hero-title {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1em;
}
#hero .hero-brand {
  color: var(--cyan);
  letter-spacing: -0.02em;
  text-shadow: 0 0 32px var(--cyan-glow);
}
#hero .hero-cn {
  color: var(--text);
  font-weight: 600;
  font-size: 0.62em;
  line-height: 1.3;
  text-wrap: balance;
}

#hero .hero-lead {
  font-size: var(--fs-lead);
  color: var(--text);
  margin-top: clamp(1.2rem, 2.6vw, 1.8rem);
  max-width: 22em;
}
#hero .hero-desc {
  font-size: var(--fs-body);
  color: var(--text-dim);
  margin-top: 0.6rem;
  max-width: 30em;
}

#hero .hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: clamp(1.7rem, 3.4vw, 2.6rem);
}
#hero .hero-btn-primary { animation: hero-btn-breathe 3.6s var(--ease) infinite; }
#hero .hero-btn-primary:hover { animation-play-state: paused; }
@keyframes hero-btn-breathe {
  0%, 100% { box-shadow: 0 0 0 1px var(--cyan-soft), 0 0 22px -12px var(--cyan-glow); }
  50%      { box-shadow: 0 0 0 1px var(--cyan-soft), 0 0 42px -6px var(--cyan-glow); }
}

#hero .hero-trustline {
  margin-top: clamp(1.4rem, 3vw, 2rem);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.1em;
  color: var(--text-mute);
}

/* ============================================================
   右侧 · 真实跑测读数面板
   ============================================================ */
#hero .hero-gauge {
  position: relative;
  padding: clamp(1.25rem, 2.1vw, 1.9rem);
  background: linear-gradient(160deg, var(--ink-2), var(--ink));
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-width: 0;
}

#hero .hero-gauge-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.16em;
  color: var(--text-mute);
}
#hero .hero-gauge-idx { color: var(--cyan); }
#hero .hero-gauge-status { margin-left: auto; color: var(--text-dim); }
#hero .hero-gauge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: hero-pulse 2.4s var(--ease) infinite;
}
@keyframes hero-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.35; transform: scale(0.82); }
}

#hero .hero-gauge-kicker {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  color: var(--text-dim);
}

#hero .hero-gauge-num {
  display: flex;
  align-items: baseline;
  gap: 0.2em;
  font-family: var(--font-mono);
  color: var(--cyan);
  line-height: 1;
}
#hero .hero-num {
  font-size: clamp(2.1rem, 3.4vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.01em;
}
#hero .hero-unit {
  font-size: 0.95rem;
  color: var(--text-dim);
}

/* 读数列表 */
#hero .hero-readout {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
#hero .hero-readout-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
}
#hero .hero-readout-row dt {
  color: var(--text-mute);
  letter-spacing: 0.12em;
  flex: none;
}
#hero .hero-readout-row dd {
  color: var(--text);
  letter-spacing: 0.04em;
  text-align: right;
  min-width: 0;
}

/* 示波曲线 */
#hero .hero-wave {
  width: 100%;
  height: clamp(46px, 6vw, 74px);
  display: block;
}
#hero .hero-wave polyline {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
  opacity: 0.8;
}

/* 证据分级 */
#hero .hero-gauge-scale {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}
#hero .hero-gauge-scale-k {
  color: var(--text-mute);
  letter-spacing: 0.12em;
  margin-right: 0.3rem;
}
#hero .hero-grade {
  padding: 0.1em 0.45em;
  border: 1px solid var(--line-bright);
  color: var(--text-dim);
  border-radius: 2px;
  white-space: nowrap;
}
#hero .hero-grade--gap { border-style: dashed; border-color: var(--grade-todo); color: var(--grade-todo); }

/* 底部刻度尺 */
#hero .hero-ruler {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 14px;
  margin-top: 0.2rem;
}
#hero .hero-ruler span {
  flex: 1;
  height: 5px;
  background: var(--line-bright);
}
#hero .hero-ruler span:nth-child(5n + 1) {
  height: 13px;
  background: var(--cyan-deep);
}

#hero .hero-gauge-foot {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--text-mute);
}

/* ============================================================
   背景描边大字
   ============================================================ */
#hero .hero-ghost {
  position: absolute;
  right: clamp(-1rem, 1vw, 3rem);
  bottom: clamp(-1rem, -1vw, 1rem);
  z-index: 0;
  font-size: clamp(7rem, 20vw, 18rem);
  opacity: 0.45;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1024px) {
  #hero .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 3rem);
  }
  #hero .hero-gauge { max-width: 520px; }
}

@media (max-width: 900px) {
  #hero .hero-gauge { max-width: none; }
}

@media (max-width: 768px) {
  #hero {
    min-height: auto;
    padding-block: clamp(6rem, 16vh, 8rem) clamp(3rem, 8vh, 5rem);
  }
  #hero .hero-lead,
  #hero .hero-desc { max-width: none; }
  #hero .hero-wave,
  #hero .hero-ruler,
  #hero .hero-ghost { display: none; }
  #hero .hero-gauge { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  #hero .hero-scan,
  #hero .hero-btn-primary,
  #hero .hero-gauge-dot { animation: none; }
  #hero .hero-scan { display: none; }
}
