/* ========================================
   Fonts
   ======================================== */

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url('assets/fonts/space-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ========================================
   CSS Variables
   ======================================== */

:root {
  --color-secondary: #ff9f43;
  --accent-rgb: 255, 159, 67;
  --white-rgb: 240, 245, 255;

  --text-primary: #e6edf3;
  --text-secondary: #8b949e;

  --font-display: 'Space Grotesk', sans-serif;
  --font-cn: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --content-width: 1200px;
  --page-progress: 0;

  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-reveal: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ========================================
   Reset & Base
   ======================================== */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: #050510;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

main {
  display: block;
}

main:focus {
  outline: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10000;
  padding: 10px 14px;
  border-radius: 8px;
  color: #050510;
  background: var(--color-secondary);
  font-family: var(--font-cn);
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(var(--white-rgb), 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--white-rgb), 0.018) 1px, transparent 1px),
    radial-gradient(ellipse at 76% 26%, rgba(var(--accent-rgb), 0.09) 0%, transparent 34%),
    radial-gradient(ellipse at 24% 76%, rgba(var(--white-rgb), 0.025) 0%, transparent 42%);
  background-size: 64px 64px, 64px 64px, auto, auto;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.28) 72%, transparent);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.28) 72%, transparent);
  pointer-events: none;
  z-index: 0;
}

/* Grain texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px 128px;
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
}

/* CC0 circuit-board pattern backdrop */
.circuit-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(var(--accent-rgb), 0.075);
  -webkit-mask-image: url('assets/circuit-board-pattern.svg');
  mask-image: url('assets/circuit-board-pattern.svg');
  -webkit-mask-size: 960px 600px;
  mask-size: 960px 600px;
  -webkit-mask-repeat: repeat;
  mask-repeat: repeat;
  opacity: 0.38;
  pointer-events: none;
  z-index: 0;
}

/* Continuous acquisition feedback */
.system-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 80;
  pointer-events: none;
  background: rgba(var(--white-rgb), 0.035);
}

.system-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(var(--page-progress));
  transform-origin: left center;
  background: linear-gradient(90deg, var(--color-secondary), #ffd76f);
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.55);
}

.system-hud {
  position: fixed;
  top: 22px;
  right: 4%;
  z-index: 60;
  display: grid;
  grid-template-columns: repeat(3, max-content);
  pointer-events: none;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.4);
  box-shadow: 0 1px 18px -6px rgba(var(--accent-rgb), 0.5);
  background: linear-gradient(90deg, transparent, rgba(5, 5, 16, 0.82) 16%);
}

.system-hud > span {
  min-width: 112px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 14px 10px;
}

.system-hud > span + span {
  border-left: 1px solid rgba(var(--white-rgb), 0.06);
}

.system-hud small,
.system-hud strong {
  font-family: var(--font-mono);
  white-space: nowrap;
}

.system-hud small {
  color: rgba(var(--white-rgb), 0.34);
  font-size: 8px;
  letter-spacing: 1.1px;
}

.system-hud strong {
  color: rgba(var(--white-rgb), 0.82);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-shadow: 0 0 14px rgba(var(--white-rgb), 0.2);
}

.system-hud-verified strong {
  color: #ffd76f;
  text-shadow: 0 0 14px rgba(var(--accent-rgb), 0.6);
}

.system-hud-verified i {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 5px;
  border-radius: 50%;
  background: #ffd76f;
  box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.7);
}

a {
  color: inherit;
  text-decoration: none;
}

/* ========================================
   Page Indicator
   ======================================== */

.page-nav {
  position: fixed;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: linear-gradient(rgba(var(--accent-rgb), 0.13), rgba(var(--accent-rgb), 0.13)) 4px 0 / 1px 100% no-repeat;
}

.page-nav::before {
  content: '';
  position: absolute;
  left: calc((8px - var(--dot-w, 8px)) / 2);
  top: var(--dot-top, 0px);
  width: var(--dot-w, 8px);
  height: var(--dot-height, 8px);
  border-radius: var(--dot-br, 50%);
  background: rgba(var(--accent-rgb), 0.5);
  box-shadow: 0 0 6px rgba(var(--accent-rgb), 0.2);
  pointer-events: none;
  z-index: 2;
}

.page-nav::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 0;
  width: 1px;
  height: 100%;
  transform: scaleY(var(--page-progress));
  transform-origin: top center;
  background: linear-gradient(180deg, var(--color-secondary), #ffd76f);
  box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.38);
  pointer-events: none;
  z-index: 0;
}

.page-dot {
  position: relative;
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(var(--white-rgb), 0.15);
  z-index: 1;
}

.page-dot span {
  position: absolute;
  left: 64px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-cn);
  font-size: 12px;
  color: rgba(var(--white-rgb), 0.5);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.page-dot::after {
  content: attr(data-code);
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(var(--white-rgb), 0.3);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1px;
  opacity: 0;
  transition: opacity 0.25s ease, color 0.25s ease;
}

.page-dot:focus-visible span {
  opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
  .page-dot:hover span {
    opacity: 1;
  }

  .page-dot:hover::after {
    opacity: 1;
  }
}

.page-dot.active span {
  color: var(--color-secondary);
}

.page-dot.active::after {
  color: var(--color-secondary);
  opacity: 1;
}


/* ========================================
   Cursor Glow
   ======================================== */

.cursor-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(
    360px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(var(--accent-rgb), 0.1),
    rgba(var(--accent-rgb), 0.03) 34%,
    transparent 62%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cursor-glow::before,
.cursor-glow::after {
  content: '';
  position: absolute;
  left: var(--mouse-x, 50%);
  top: var(--mouse-y, 50%);
  transform: translate(-50%, -50%);
}

.cursor-glow::before {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  clip-path: polygon(0 0, 12px 0, 12px 1px, 1px 1px, 1px 12px, 0 12px, 0 0, 100% 0, 100% 12px, calc(100% - 1px) 12px, calc(100% - 1px) 1px, calc(100% - 12px) 1px, calc(100% - 12px) 0, 100% 0, 100% 100%, calc(100% - 12px) 100%, calc(100% - 12px) calc(100% - 1px), calc(100% - 1px) calc(100% - 1px), calc(100% - 1px) calc(100% - 12px), 100% calc(100% - 12px), 100% 100%, 0 100%, 0 calc(100% - 12px), 1px calc(100% - 12px), 1px calc(100% - 1px), 12px calc(100% - 1px), 12px 100%, 0 100%);
}

.cursor-glow::after {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--color-secondary);
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.7);
}

.cursor-glow.active {
  opacity: 1;
}

/* ========================================
   Hero Section
   ======================================== */

.section-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 0 8%;
  z-index: 2;
  overflow: hidden;
}

.section-hero::before {
  content: '';
  position: absolute;
  top: 48px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.55), rgba(var(--accent-rgb), 0.08) 34%, transparent 72%);
}

.section-hero::after {
  content: 'SILICON TRACE LAB / SYSTEM READY';
  position: absolute;
  top: 28px;
  left: 8%;
  color: rgba(var(--accent-rgb), 0.48);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1.8px;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: left;
  max-width: 720px;
}

@keyframes heroFadeUp {
  0%   { opacity: 0; transform: translateY(25px); }
  100% { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  color: var(--color-secondary);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  opacity: 0;
  animation: heroFadeUp 0.7s ease-out 0.1s both;
}

.hero-eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--color-secondary);
  box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.4);
}

.hero-eyebrow span {
  color: rgba(var(--white-rgb), 0.36);
}

.hero-badge {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(44px, 8.6vw, 92px);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 16px;
  background: linear-gradient(100deg, #ff9f43 0%, #ffd76f 22%, #fff6e2 34%, #ffd76f 46%, #ff9f43 68%, #ff9f43 100%);
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 28px rgba(var(--accent-rgb), 0.42));
  animation:
    heroFadeUp 0.8s ease-out 0.25s both,
    logoShimmer 7s linear 1.1s infinite;
}

@keyframes logoShimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 300% center; }
}

.hero-title {
  font-family: var(--font-cn);
  font-size: clamp(18px, 3.2vw, 32px);
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.4;
  color: rgba(var(--white-rgb), 0.95);
  margin-bottom: 20px;
  opacity: 0;
  animation: heroFadeUp 0.8s ease-out 0.6s both;
}

.hero-tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  opacity: 0;
  animation: heroFadeUp 0.8s ease-out 0.85s both;
}

.hero-tag {
  display: inline-block;
  padding: clamp(5px, 0.8vw, 8px) clamp(12px, 2vw, 20px);
  font-family: var(--font-cn);
  font-size: clamp(12px, 1.4vw, 14px);
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-secondary);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: 2px;
  background: rgba(var(--accent-rgb), 0.04);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

.hero-actions {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin-top: 28px;
  opacity: 0;
  animation: heroFadeUp 0.8s ease-out 1.05s both;
}

.hero-action {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(var(--accent-rgb), 0.24);
  font-family: var(--font-cn);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.hero-action-primary {
  min-width: 220px;
  flex-direction: column;
  align-items: flex-start;
  padding: 10px 18px;
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  color: #050510;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.hero-action-primary span {
  font-size: 14px;
  font-weight: 700;
}

.hero-action-primary small {
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 1px;
  opacity: 0.58;
}

.hero-action-secondary {
  padding: 0 22px;
  color: rgba(var(--white-rgb), 0.72);
  font-size: 13px;
  background: rgba(var(--white-rgb), 0.015);
}

@media (hover: hover) and (pointer: fine) {
  .hero-action:hover {
    transform: translateY(-2px);
  }

  .hero-action-primary:hover {
    background: #ffd76f;
    border-color: #ffd76f;
  }

  .hero-action-secondary:hover {
    color: var(--text-primary);
    border-color: rgba(var(--accent-rgb), 0.55);
    background: rgba(var(--accent-rgb), 0.06);
  }
}

.hero-status {
  width: min(100%, 680px);
  display: grid;
  grid-template-columns: 0.9fr 1.5fr 1.25fr;
  margin-top: 24px;
  border-top: 1px solid rgba(var(--white-rgb), 0.08);
  opacity: 0;
  animation: heroFadeUp 0.8s ease-out 1.2s both;
}

.hero-status > span {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 14px 0 0;
}

.hero-status > span + span {
  padding-left: 14px;
  border-left: 1px solid rgba(var(--white-rgb), 0.06);
}

.hero-status small,
.hero-status strong {
  overflow: hidden;
  font-family: var(--font-mono);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hero-status small {
  color: rgba(var(--accent-rgb), 0.5);
  font-size: 8px;
  letter-spacing: 1.2px;
}

.hero-status strong {
  color: rgba(var(--white-rgb), 0.5);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.5px;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 64px;
  left: 8%;
  padding: 12px;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: inherit;
  opacity: 0;
  animation: heroFadeUp 0.8s ease-out 1.45s both;
}

.scroll-arrow {
  display: block;
  width: 24px;
  height: 24px;
  border-right: 2px solid #ff9f43;
  border-bottom: 2px solid #ffd76f;
  transform: rotate(45deg);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.6; }
  50%      { transform: rotate(45deg) translateY(10px); opacity: 1; }
}

/* Hero MCU and active signal traces */
.hero-mcu {
  position: absolute;
  right: max(-40px, -3vw);
  top: 50%;
  width: min(52vw, 720px);
  aspect-ratio: 1;
  --mcu-rx: 0deg;
  --mcu-ry: 0deg;
  transform: translateY(-50%) perspective(1200px) rotateX(var(--mcu-rx)) rotateY(var(--mcu-ry)) rotate(2deg);
  transform-style: preserve-3d;
  transition: transform 180ms ease-out;
  will-change: transform;
  pointer-events: none;
  z-index: 1;
  opacity: 0.95;
  filter:
    drop-shadow(0 28px 54px rgba(var(--accent-rgb), 0.16))
    drop-shadow(0 0 120px rgba(var(--accent-rgb), 0.1));
}

/* 芯片背后的一团光，让首屏右半边不再是死黑 */
.hero-mcu-halo {
  position: absolute;
  right: -6vw;
  top: 50%;
  width: min(70vw, 940px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  background:
    radial-gradient(circle at 50% 50%, rgba(var(--accent-rgb), 0.16) 0%, rgba(var(--accent-rgb), 0.05) 32%, transparent 62%);
  pointer-events: none;
  z-index: 0;
  animation: heroHaloBreath 6.5s ease-in-out infinite;
}

@keyframes heroHaloBreath {
  0%, 100% { opacity: 0.72; transform: translateY(-50%) scale(0.97); }
  50% { opacity: 1; transform: translateY(-50%) scale(1.03); }
}

.hero-mcu::before {
  content: '';
  position: absolute;
  inset: 25%;
  z-index: 3;
  background:
    linear-gradient(rgba(var(--accent-rgb), 0.82), rgba(var(--accent-rgb), 0.82)) left top / 28px 1px no-repeat,
    linear-gradient(rgba(var(--accent-rgb), 0.82), rgba(var(--accent-rgb), 0.82)) left top / 1px 28px no-repeat,
    linear-gradient(rgba(var(--accent-rgb), 0.82), rgba(var(--accent-rgb), 0.82)) right top / 28px 1px no-repeat,
    linear-gradient(rgba(var(--accent-rgb), 0.82), rgba(var(--accent-rgb), 0.82)) right top / 1px 28px no-repeat,
    linear-gradient(rgba(var(--accent-rgb), 0.82), rgba(var(--accent-rgb), 0.82)) left bottom / 28px 1px no-repeat,
    linear-gradient(rgba(var(--accent-rgb), 0.82), rgba(var(--accent-rgb), 0.82)) left bottom / 1px 28px no-repeat,
    linear-gradient(rgba(var(--accent-rgb), 0.82), rgba(var(--accent-rgb), 0.82)) right bottom / 28px 1px no-repeat,
    linear-gradient(rgba(var(--accent-rgb), 0.82), rgba(var(--accent-rgb), 0.82)) right bottom / 1px 28px no-repeat;
  opacity: 0;
  transform: scale(1.12);
  animation: heroReticleLock 0.9s var(--ease-smooth) 1.15s forwards;
  pointer-events: none;
}

.hero-mcu::after {
  content: 'ACQ // TRACE LOCK';
  position: absolute;
  left: 27%;
  top: 23%;
  z-index: 4;
  color: rgba(var(--accent-rgb), 0.66);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 1.1px;
  opacity: 0;
  animation: heroReticleLabel 0.45s ease-out 1.85s forwards;
  pointer-events: none;
}

@keyframes heroReticleLock {
  0% { opacity: 0; transform: scale(1.12); }
  58% { opacity: 0.7; }
  100% { opacity: 0.38; transform: scale(1); }
}

@keyframes heroReticleLabel {
  to { opacity: 1; }
}

.hero-scan-line {
  position: absolute;
  left: 30%;
  top: 30%;
  width: 40%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ffd76f, transparent);
  box-shadow: 0 0 14px rgba(var(--accent-rgb), 0.55);
  opacity: 0;
  z-index: 4;
  animation: heroChipScan 4.8s ease-in-out 1.4s infinite;
}

@keyframes heroChipScan {
  0%, 12% { top: 30%; opacity: 0; }
  18% { opacity: 0.85; }
  52% { top: 69%; opacity: 0.75; }
  60%, 100% { top: 69%; opacity: 0; }
}

.hero-probe {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-left: 22px;
  font-family: var(--font-mono);
  line-height: 1;
  z-index: 4;
}

.hero-probe::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 1px;
  background: rgba(var(--accent-rgb), 0.55);
  box-shadow: 0 0 6px rgba(var(--accent-rgb), 0.35);
}

.hero-probe small {
  color: rgba(var(--accent-rgb), 0.52);
  font-size: 8px;
  letter-spacing: 1px;
}

.hero-probe strong {
  color: rgba(var(--white-rgb), 0.64);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.7px;
}

.hero-probe-a { top: 18%; right: 6%; }
.hero-probe-b { right: 8%; bottom: 18%; }
.hero-probe-c { left: 5%; bottom: 22%; }

.hero-mcu svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.hero-trace-base path,
.hero-trace-current path {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.hero-trace-base path {
  stroke: rgba(var(--accent-rgb), 0.2);
  stroke-width: 1.5;
}

.hero-trace-current path {
  stroke: #ffd76f;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 12 96;
  stroke-dashoffset: 108;
  animation: heroCurrentFlow 2.8s linear infinite;
  animation-delay: var(--flow-delay);
}

@keyframes heroCurrentFlow {
  to { stroke-dashoffset: 0; }
}

/* 引脚做成镀锡金属，而不是灰色方块 —— 首屏一半的“质感”来自这里 */
.hero-mcu-pins-h {
  fill: url('#heroPinMetalH');
}

.hero-mcu-pins-v {
  fill: url('#heroPinMetalV');
}

.hero-mcu-pins {
  filter: url('#heroPinGlow');
  opacity: 0;
  animation: heroPinPower 0.8s ease-out 0.55s forwards;
}

.hero-mcu-pins-v {
  animation-delay: 0.75s;
}

@keyframes heroPinPower {
  0% { opacity: 0; }
  100% { opacity: 0.86; }
}

.hero-mcu-body {
  fill: url('#heroChipSurface');
  stroke: rgba(var(--accent-rgb), 0.55);
  stroke-width: 2;
}

/* 封装顶面的斜向反光，缓慢扫过 */
.hero-mcu-sheen {
  fill: url('#heroChipSheen');
  opacity: 0;
  mix-blend-mode: screen;
  transform-box: fill-box;
  transform-origin: center;
  animation: heroChipSheen 7s ease-in-out 1.8s infinite;
}

@keyframes heroChipSheen {
  0%, 8% { opacity: 0; transform: translate(-38%, -38%); }
  26% { opacity: 0.9; }
  52% { opacity: 0.55; transform: translate(38%, 38%); }
  62%, 100% { opacity: 0; transform: translate(38%, 38%); }
}

.hero-mcu-bevel {
  fill: none;
  stroke: rgba(var(--white-rgb), 0.16);
  stroke-width: 2;
}

.hero-mcu-die {
  fill: #06060e;
  stroke: rgba(var(--accent-rgb), 0.4);
  stroke-width: 2;
}

.hero-mcu-die-grid {
  fill: url('#heroDieGrid');
  stroke: none;
  opacity: 0.85;
}

.hero-mcu-die-glow {
  fill: url('#heroDieGlow');
  stroke: none;
  animation: heroDiePulse 4.2s ease-in-out 1.6s infinite;
}

@keyframes heroDiePulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.hero-mcu-pin-one {
  fill: #ffd76f;
  opacity: 0.9;
  filter: drop-shadow(0 0 6px rgba(var(--accent-rgb), 0.9));
  animation: heroDiePulse 2.6s ease-in-out infinite;
}

.hero-mcu-brand,
.hero-mcu-label,
.hero-mcu-code {
  font-family: var(--font-display);
  letter-spacing: 2px;
}

.hero-mcu-brand {
  fill: var(--text-primary);
  font-size: 26px;
  font-weight: 700;
}

.hero-mcu-label {
  fill: var(--color-secondary);
  font-size: 12px;
  font-weight: 600;
}

.hero-mcu-code {
  fill: var(--text-primary);
  font-size: 9px;
  opacity: 0.42;
}

/* ========================================
   Section Common Layout
   ======================================== */

.section-hero,
.section-about,
.section-circuit,
.section-works,
.section-contact {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.section-about,
.section-circuit,
.section-works,
.section-contact {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  z-index: 2;
  padding: clamp(112px, 14vh, 144px) max(6vw, 24px) 80px;
}

/* 每屏一个独立光源。位置逐屏移动，滚动时明暗有节奏，
   否则五屏全是同一个 #050510，看起来像同一张图。 */
.section-about {
  background-image:
    radial-gradient(ellipse 62% 54% at 88% 22%, rgba(var(--accent-rgb), 0.09), transparent 68%),
    radial-gradient(ellipse 48% 40% at 6% 88%, rgba(var(--white-rgb), 0.035), transparent 70%);
}

.section-circuit {
  background-image:
    radial-gradient(ellipse 54% 52% at 50% 58%, rgba(var(--accent-rgb), 0.1), transparent 66%),
    radial-gradient(ellipse 40% 34% at 92% 8%, rgba(var(--white-rgb), 0.03), transparent 72%);
}

.section-works {
  background-image:
    radial-gradient(ellipse 60% 50% at 8% 46%, rgba(var(--accent-rgb), 0.085), transparent 66%),
    radial-gradient(ellipse 44% 38% at 96% 92%, rgba(var(--white-rgb), 0.03), transparent 70%);
}

.section-contact {
  background-image:
    radial-gradient(ellipse 66% 56% at 72% 64%, rgba(var(--accent-rgb), 0.1), transparent 68%),
    radial-gradient(ellipse 42% 36% at 4% 14%, rgba(var(--white-rgb), 0.03), transparent 72%);
}

/* ========================================
   About / Narrative Section
   ======================================== */

.about-inner {
  max-width: var(--content-width);
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 48px;
}

/* Timeline */
.timeline {
  display: flex;
  align-items: flex-start;
  width: 100%;
  padding: 28px 0 32px;
  border-top: 1px solid rgba(var(--white-rgb), 0.08);
  border-bottom: 1px solid rgba(var(--white-rgb), 0.08);
}

.timeline-node {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  flex: 0 1 184px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease-out, transform 0.5s var(--ease-spring);
}

.timeline-node.show {
  opacity: 1;
  transform: translateY(0);
}

/* Solder-pad node */
.timeline-dot {
  position: relative;
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.85);
  box-shadow:
    0 0 0 3px rgba(var(--accent-rgb), 0.12),
    0 0 8px rgba(var(--accent-rgb), 0.5),
    0 0 20px rgba(var(--accent-rgb), 0.18);
  margin: 0;
}

/* 当前岗位是这条时间线的“通电端” —— 给它焦点，其余是历史记录 */
.timeline-node-active .timeline-dot {
  width: 11px;
  height: 11px;
  background: #ffd76f;
  box-shadow:
    0 0 0 4px rgba(var(--accent-rgb), 0.16),
    0 0 14px rgba(var(--accent-rgb), 0.8),
    0 0 34px rgba(var(--accent-rgb), 0.32);
  animation: channelPulse 2.2s ease-in-out infinite;
}

.timeline-node-active .timeline-year {
  color: #ffd76f;
  text-shadow: 0 0 14px rgba(var(--accent-rgb), 0.5);
}

.timeline-node-active .timeline-label {
  color: rgba(var(--white-rgb), 0.98);
}

.timeline-company i {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 5px;
  font-style: normal;
  font-size: 7px;
  letter-spacing: 0.9px;
  color: #050510;
  background: var(--color-secondary);
  vertical-align: 1px;
}

.timeline-year {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  color: rgba(var(--accent-rgb), 0.68);
  letter-spacing: 1.2px;
}

.timeline-label {
  font-family: var(--font-cn);
  font-size: 15px;
  font-weight: 600;
  color: rgba(var(--white-rgb), 0.88);
  letter-spacing: 0.5px;
  line-height: 1.45;
}

.timeline-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  width: 100%;
}

.timeline-company {
  color: rgba(var(--accent-rgb), 0.56);
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.4;
  letter-spacing: 0.9px;
}

.timeline-detail {
  color: rgba(var(--white-rgb), 0.5);
  font-family: var(--font-cn);
  font-size: 12px;
  line-height: 1.65;
}

/* Timeline signal bus */
.timeline-line {
  position: relative;
  flex: 1;
  height: 1px;
  margin: 26px 10px 0;
}

.timeline-line::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.35), rgba(255, 215, 111, 0.15));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease-out;
}

.timeline-line.show::before {
  transform: scaleX(1);
}

.timeline-current {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: -30px;
  width: 30px;
  height: 3px;
  border-radius: 0;
  background: linear-gradient(90deg, transparent, rgba(var(--white-rgb), 0.15), rgba(var(--accent-rgb), 0.8), #ffd76f);
  box-shadow: 0 0 6px rgba(var(--accent-rgb),0.5), 0 0 12px rgba(var(--accent-rgb),0.2);
  opacity: 0;
}

.timeline-current.show {
  animation: timelineCurrentSweep 0.5s ease-out forwards;
}

@keyframes timelineCurrentSweep {
  0%   { left: -30px; opacity: 1; }
  85%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* Stats */
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  border-top: 1px solid rgba(var(--white-rgb), 0.08);
  border-bottom: 1px solid rgba(var(--white-rgb), 0.08);
}

.stat-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-height: 168px;
  padding: 24px 32px;
  overflow: hidden;
}

/* 数据格底部的一层电流辉光，把三个数字托起来 */
.stat-item::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -60%;
  height: 100%;
  background: radial-gradient(ellipse 60% 100% at 24% 100%, rgba(var(--accent-rgb), 0.14), transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.stat-item.visible::after {
  opacity: 1;
}

.stat-item + .stat-item {
  border-left: 1px solid rgba(var(--white-rgb), 0.08);
}

.stat-code {
  color: rgba(var(--accent-rgb), 0.6);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1.2px;
}

.stat-number {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(40px, 5.4vw, 64px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -1px;
  background: linear-gradient(160deg, #ffe4ad 0%, #ffb35c 42%, #ff9f43 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 22px rgba(var(--accent-rgb), 0.4));
}

.stat-plus,
.stat-unit {
  font-size: 0.42em;
  vertical-align: 0.62em;
  letter-spacing: 0;
}

.stat-label {
  font-family: var(--font-cn);
  font-size: 14px;
  color: rgba(var(--white-rgb), 0.52);
  letter-spacing: 0.5px;
}

/* Quote */
.about-principle {
  display: grid;
  /* 与 .section-heading 的 kicker 列对齐 */
  grid-template-columns: 210px minmax(0, 1fr);
  column-gap: 32px;
  align-items: start;
  padding-top: 8px;
}

.about-principle > span {
  padding-top: 10px;
  color: rgba(var(--accent-rgb), 0.45);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1.2px;
}

.about-quote {
  position: relative;
  max-width: 820px;
  padding-left: 24px;
  border-left: 2px solid var(--color-secondary);
  font-family: var(--font-cn);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 600;
  line-height: 1.45;
  text-align: left;
  letter-spacing: -0.5px;
  color: rgba(var(--white-rgb), 0.82);
}

/* ========================================
   Signal Map Section
   ======================================== */

.section-heading {
  position: relative;
  width: min(var(--content-width), 100%);
  display: grid;
  /* 210px：让最长的 kicker（OUTPUT / TECHNICAL ARTIFACTS）也能单行排下 */
  grid-template-columns: 210px minmax(0, 1fr);
  column-gap: 32px;
  align-items: end;
  margin: 0 auto 56px;
}

.section-heading::after {
  content: '';
  position: absolute;
  left: 242px;
  right: 0;
  bottom: -24px;
  height: 1px;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.38), #ffd76f, transparent);
  pointer-events: none;
}

.section-active .section-heading::after {
  animation: sectionSignalSweep 0.9s var(--ease-smooth) both;
}

@keyframes sectionSignalSweep {
  0% { opacity: 0; transform: scaleX(0); }
  18% { opacity: 0.9; }
  72% { opacity: 0.72; }
  100% { opacity: 0; transform: scaleX(1); }
}

.section-kicker {
  position: relative;
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 13px;
  color: rgba(var(--accent-rgb), 0.58);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: 1.2px;
}

.section-kicker::before {
  content: '';
  width: 16px;
  height: 1px;
  flex: 0 0 auto;
  background: var(--color-secondary);
  box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.7);
}

.section-kicker::after {
  content: '';
  position: absolute;
  left: -12px;
  top: 15px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffd76f;
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.85);
  animation: channelPulse 2.4s ease-in-out infinite;
}

.section-title {
  grid-column: 2;
  font-family: var(--font-cn);
  font-size: clamp(36px, 4.4vw, 58px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin: 0;
  text-align: left;
  background: linear-gradient(168deg, #ffffff 4%, #e6edf3 38%, rgba(180, 190, 205, 0.72) 96%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 6px 26px rgba(var(--white-rgb), 0.14));
}

.section-summary {
  grid-column: 2;
  max-width: 680px;
  margin-top: 14px;
  color: rgba(var(--white-rgb), 0.62);
  font-family: var(--font-cn);
  font-size: 15px;
  line-height: 1.7;
}

/* MCU-centred trace network */
.signal-map {
  position: relative;
  width: 100%;
  max-width: 1000px;
  aspect-ratio: 5 / 3;
  margin: 0 auto;
}

.signal-map::before {
  content: '';
  position: absolute;
  inset: 8% 26%;
  border: 1px solid rgba(var(--accent-rgb), 0.08);
  background: rgba(var(--accent-rgb), 0.015);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.signal-map-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.signal-traces-base path,
.signal-traces-current path {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.signal-traces-base path {
  stroke: rgba(var(--accent-rgb), 0.16);
  stroke-width: 2;
}

.signal-traces-current path {
  stroke: #ffd76f;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 8 92;
  stroke-dashoffset: 100;
  opacity: 0;
  filter: drop-shadow(0 0 5px rgba(var(--accent-rgb), 0.7));
}

.signal-traces-current path.energized {
  opacity: 1;
  animation: signalCurrentFlow 1.35s linear infinite;
}

@keyframes signalCurrentFlow {
  to { stroke-dashoffset: 0; }
}

.signal-vias circle {
  fill: #050510;
  stroke: rgba(var(--accent-rgb), 0.35);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

/* core 的四边引脚。必须放在 .signal-core 外面 ——
   core 有 clip-path 切角，任何伸出边界的子元素都会被裁掉 */
.signal-core-pins {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 160px;
  height: 160px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 1;
}

.signal-map.powered .signal-core-pins {
  opacity: 1;
}

.signal-core-pins::before,
.signal-core-pins::after {
  content: '';
  position: absolute;
  top: 26px;
  bottom: 26px;
  width: 14px;
  background: repeating-linear-gradient(
    180deg,
    rgba(var(--accent-rgb), 0.75) 0 5px,
    transparent 5px 15px
  );
  filter: drop-shadow(0 0 4px rgba(var(--accent-rgb), 0.5));
}

.signal-core-pins::before { left: -14px; }
.signal-core-pins::after { right: -14px; }

.signal-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 160px;
  height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(ellipse 90% 80% at 30% 20%, rgba(var(--accent-rgb), 0.12), transparent 62%),
    linear-gradient(150deg, #16121f, #07060f 58%);
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px), 0 12px);
  opacity: 0.72;
  transition: opacity 0.5s ease, box-shadow 0.5s ease;
  z-index: 2;
}

.signal-core::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(var(--white-rgb), 0.08);
  pointer-events: none;
}

.signal-core::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-secondary);
  box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.65);
}

.signal-map.powered .signal-core {
  opacity: 1;
  animation: signalCoreBreath 3.8s ease-in-out infinite;
}

@keyframes signalCoreBreath {
  0%, 100% {
    box-shadow: 0 0 40px rgba(var(--accent-rgb), 0.12), inset 0 0 26px rgba(var(--accent-rgb), 0.04);
  }
  50% {
    box-shadow: 0 0 78px rgba(var(--accent-rgb), 0.24), inset 0 0 34px rgba(var(--accent-rgb), 0.09);
  }
}

.signal-core strong,
.signal-core small {
  font-family: var(--font-display);
  letter-spacing: 2px;
}

.signal-core strong {
  color: var(--text-primary);
  font-size: 24px;
}

.signal-core small {
  color: var(--color-secondary);
  font-size: 10px;
}

.signal-node {
  --node-y: 0%;
  position: absolute;
  width: 280px;
  min-height: 112px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  background:
    linear-gradient(135deg, rgba(var(--accent-rgb), 0.07), rgba(var(--accent-rgb), 0.012) 52%, rgba(5, 5, 16, 0.86));
  border: 1px solid rgba(var(--accent-rgb), 0.08);
  border-radius: 0;
  opacity: 0.24;
  transform: translateY(var(--node-y)) scale(0.97);
  transition: opacity 0.45s ease, transform 0.45s var(--ease-reveal), border-color 0.45s ease, box-shadow 0.45s ease;
  z-index: 2;
}

.signal-node-1 { left: 0; top: 3%; }
.signal-node-2 { right: 0; top: 3%; }
.signal-node-3 { --node-y: -50%; left: 0; top: 50%; }
.signal-node-4 { --node-y: -50%; right: 0; top: 50%; }
.signal-node-5 { left: 0; bottom: 3%; }
.signal-node-6 { right: 0; bottom: 3%; }

/* 四角定位标记：不能用 clip-path 切角，那会把外侧的连接焊盘 ::after 一起裁掉 */
.signal-node::before {
  content: '';
  position: absolute;
  inset: 5px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  background:
    linear-gradient(var(--corner-c), var(--corner-c)) left top / 12px 1px no-repeat,
    linear-gradient(var(--corner-c), var(--corner-c)) left top / 1px 12px no-repeat,
    linear-gradient(var(--corner-c), var(--corner-c)) right bottom / 12px 1px no-repeat,
    linear-gradient(var(--corner-c), var(--corner-c)) right bottom / 1px 12px no-repeat;
  --corner-c: rgba(var(--accent-rgb), 0.6);
}

.signal-node.energized {
  opacity: 1;
  transform: translateY(var(--node-y)) scale(1);
  border-color: rgba(var(--accent-rgb), 0.3);
  box-shadow:
    inset 0 0 30px rgba(var(--accent-rgb), 0.06),
    0 12px 40px rgba(var(--accent-rgb), 0.1);
}

.signal-node.energized::before {
  opacity: 1;
}

.signal-node::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #050510;
  border: 1px solid rgba(var(--accent-rgb), 0.5);
  transform: translateY(-50%);
}

.signal-node-1::after,
.signal-node-3::after,
.signal-node-5::after {
  right: -6px;
}

.signal-node-2::after,
.signal-node-4::after,
.signal-node-6::after {
  left: -6px;
}

.signal-port {
  flex: 0 0 46px;
  padding-top: 3px;
  padding-right: 12px;
  border-right: 1px solid rgba(var(--accent-rgb), 0.16);
  color: var(--color-secondary);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
}

.signal-info h3 {
  margin-bottom: 8px;
  color: rgba(var(--white-rgb), 0.86);
  font-family: var(--font-cn);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 1px;
}

.signal-info p {
  color: rgba(var(--white-rgb), 0.55);
  font-family: var(--font-cn);
  font-size: 14px;
  line-height: 1.6;
}

/* ========================================
   Works Section
   ======================================== */

.works-inner {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
}

.works-grid {
  display: flex;
  flex-direction: column;
  width: 100%;
  border-top: 1px solid rgba(var(--white-rgb), 0.1);
  counter-reset: workline;
}

.works-grid .work-card + .work-card {
  margin: 0;
}

.work-card {
  position: relative;
  width: 100%;
  min-height: 112px;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 150px 128px;
  align-items: center;
  gap: 24px;
  padding: 20px 24px;
  overflow: hidden;
  cursor: pointer;
  counter-increment: workline;
  border: 0;
  border-bottom: 1px solid rgba(var(--white-rgb), 0.08);
  color: inherit;
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
  /* OUT/05 是 <button>，不写死 background-color 会露出 UA 默认的 ButtonFace 白底 */
  background-color: transparent;
  /* 第一层：hover 时扫过整行的光。第二层：常驻的左强右弱底色 */
  background-image:
    linear-gradient(100deg, transparent 26%, rgba(var(--accent-rgb), 0.13) 47%, rgba(255, 215, 111, 0.06) 53%, transparent 74%),
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.05), rgba(var(--white-rgb), 0.014) 46%, transparent);
  background-size: 240% 100%, 100% 100%;
  background-position: -140% 0, 0 0;
  background-repeat: no-repeat;
  transition:
    background-position 0.75s var(--ease-smooth),
    border-color 0.3s ease,
    transform 0.35s var(--ease-smooth);
}

.work-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--color-secondary), #ffd76f);
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.55);
  transform: scaleY(0.14);
  transform-origin: center;
  opacity: 0.5;
  pointer-events: none;
  transition: transform 0.35s var(--ease-smooth), opacity 0.3s ease;
}

/* 行号水印：给这张“清单”一点纵深，不然全是等宽小字 */
.work-card::after {
  content: counter(workline, decimal-leading-zero);
  position: absolute;
  right: 6px;
  bottom: -30px;
  font-family: var(--font-display);
  font-size: 96px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -4px;
  color: rgba(var(--accent-rgb), 0.045);
  pointer-events: none;
  z-index: 0;
  transition: color 0.35s ease, transform 0.5s var(--ease-smooth);
}

/* 水印是绝对定位的，必须把正文抬到它上面，否则会压住右侧的状态与入口文字 */
.work-card > span {
  position: relative;
  z-index: 1;
}

.work-card-code,
.work-card-state,
.work-card-cta {
  font-family: var(--font-mono);
  letter-spacing: 1px;
}

.work-card-code {
  color: rgba(var(--accent-rgb), 0.58);
  font-size: 10px;
}

.work-card-body {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(170px, 230px) minmax(0, 1fr);
  align-items: center;
  gap: 32px;
}

.work-card-heading {
  display: block;
  font-family: var(--font-cn);
  font-size: 19px;
  font-weight: 600;
  color: rgba(var(--white-rgb), 0.88);
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.work-card-copy {
  display: block;
  font-family: var(--font-cn);
  font-size: 14px;
  line-height: 1.65;
  color: rgba(var(--white-rgb), 0.52);
  transition: color 0.3s ease;
}

.work-card-state {
  color: rgba(var(--white-rgb), 0.38);
  font-size: 9px;
  text-align: right;
}

/* 这一格是中文（「了解详情」/「播放演示」），9px 等宽会 fallback 到中文字体后糊成一团 */
.work-card-cta {
  color: rgba(var(--accent-rgb), 0.72);
  font-family: var(--font-cn);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-align: right;
  transition: color 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .work-card:hover {
    background-position: 150% 0, 0 0;
    border-bottom-color: rgba(var(--accent-rgb), 0.32);
    transform: translateX(6px);
  }

  .work-card:hover::before {
    transform: scaleY(1);
    opacity: 1;
  }

  .work-card:hover::after {
    color: rgba(var(--accent-rgb), 0.13);
    transform: translateY(-6px);
  }

  .work-card:hover .work-card-heading,
  .work-card:hover .work-card-copy,
  .work-card:hover .work-card-cta {
    color: var(--text-primary);
  }
}

/* ========================================
   Video Modal
   ======================================== */

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}

.video-modal.active {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.video-modal-content {
  position: relative;
  width: 90vw;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  box-shadow: 0 0 60px rgba(var(--accent-rgb), 0.08), 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: translateY(40px) scale(0.95);
  opacity: 0;
  transition: transform 0.4s var(--ease-reveal), opacity 0.4s ease;
  background: #0a0a0a;
}

.video-modal.active .video-modal-content {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.video-modal-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0a;
  z-index: 1;
  transition: opacity 0.3s ease;
}

.video-modal-loading.hidden {
  opacity: 0;
  pointer-events: none;
}

.video-modal-error {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: rgba(var(--white-rgb), 0.78);
  background: #0a0a0a;
  font-family: var(--font-cn);
  text-align: center;
}

.video-modal-error[hidden] {
  display: none;
}

.video-modal-error button {
  padding: 9px 16px;
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  border-radius: 8px;
  color: var(--color-secondary);
  background: rgba(var(--accent-rgb), 0.08);
  font: inherit;
  cursor: pointer;
}

.video-modal-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(var(--accent-rgb), 0.15);
  border-top-color: rgba(var(--accent-rgb), 0.7);
  border-radius: 50%;
  animation: spinnerRotate 0.8s linear infinite;
}

@keyframes spinnerRotate {
  to { transform: rotate(360deg); }
}

.video-modal-player {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
}

.video-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: rgba(255, 255, 255, 0.8);
  font-size: 22px;
  line-height: 36px;
  text-align: center;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

@media (hover: hover) and (pointer: fine) {
  .video-modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
  }
}

/* ========================================
   Contact Section
   ======================================== */

.section-contact {
  gap: 0;
}

.contact-terminal {
  width: min(var(--content-width), 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  margin: 0 auto;
  border-top: 1px solid rgba(var(--white-rgb), 0.1);
  border-bottom: 1px solid rgba(var(--white-rgb), 0.1);
  background:
    radial-gradient(ellipse 70% 90% at 12% 30%, rgba(var(--accent-rgb), 0.055), transparent 66%),
    linear-gradient(120deg, rgba(var(--white-rgb), 0.026), rgba(var(--white-rgb), 0.008) 60%, transparent);
}

.contact-console {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 48px;
  border-right: 1px solid rgba(var(--white-rgb), 0.08);
}

.contact-availability {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(var(--accent-rgb), 0.7);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1.4px;
}

.contact-availability i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-secondary);
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.65);
  animation: channelPulse 2.4s ease-in-out infinite;
}

@keyframes channelPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.contact-console > p {
  max-width: 540px;
  margin-top: 24px;
  color: rgba(var(--white-rgb), 0.64);
  font-family: var(--font-cn);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: -0.5px;
}

.contact-mail {
  width: min(100%, 520px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 36px;
  padding: 16px 0;
  border-top: 1px solid rgba(var(--accent-rgb), 0.2);
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.2);
  color: var(--color-secondary);
  font-family: var(--font-mono);
}

.contact-mail span {
  font-size: clamp(15px, 1.6vw, 18px);
  letter-spacing: 0.5px;
}

/* 终端光标 —— 这一行是页面唯一的行动入口，让它看起来是活的 */
.contact-mail span::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 1em;
  margin-left: 8px;
  vertical-align: -0.14em;
  background: #ffd76f;
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.7);
  animation: caretBlink 1.15s steps(1, end) infinite;
}

@keyframes caretBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.contact-mail small {
  color: rgba(var(--white-rgb), 0.35);
  font-size: 8px;
  letter-spacing: 1px;
}

@media (hover: hover) and (pointer: fine) {
  .contact-mail:hover {
    color: #ffd76f;
    border-color: rgba(var(--accent-rgb), 0.55);
  }
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.contact-item {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  align-items: center;
  column-gap: 14px;
  row-gap: 4px;
  padding: 28px 24px;
  color: var(--text-secondary);
  text-decoration: none;
  cursor: pointer;
  border: 0;
  border-left: 1px solid rgba(var(--white-rgb), 0.07);
  border-top: 1px solid rgba(var(--white-rgb), 0.07);
  background: transparent;
  font: inherit;
  text-align: left;
  transition: color 0.3s ease, background 0.3s ease;
}

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid rgba(var(--accent-rgb), 0.9);
  outline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {
  .contact-item:hover {
    color: var(--color-secondary);
    background: rgba(var(--accent-rgb), 0.045);
  }
}

.contact-icon {
  position: relative;
  grid-row: 1 / span 2;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  border: 1px solid rgba(var(--accent-rgb), 0.16);
  background: rgba(var(--accent-rgb), 0.03);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  opacity: 0.68;
  transition: opacity 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .contact-item:hover .contact-icon {
    border-color: rgba(var(--accent-rgb), 0.35);
    box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.12);
    background: rgba(var(--accent-rgb), 0.06);
  }
}

@media (hover: hover) and (pointer: fine) {
  .contact-item:hover .contact-icon svg {
    opacity: 1;
  }
}

.contact-item > span:not(.contact-icon):not(.contact-qrcode-popup) {
  grid-column: 2;
  font-family: var(--font-cn);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  white-space: nowrap;
}

.contact-item > small {
  grid-column: 2;
  color: rgba(var(--white-rgb), 0.28);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.8px;
  white-space: nowrap;
}

.contact-wechat-trigger {
  perspective: 800px;
}

.contact-qrcode-popup {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%) rotateX(-80deg);
  transform-origin: top center;
  padding: 16px;
  background-color: rgba(5, 5, 16, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 159, 67, 0.15);
  border-radius: 2px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, transform 0.45s var(--ease-spring), visibility 0.35s ease;
  pointer-events: none;
  text-align: center;
  z-index: 20;
}

.contact-qrcode-popup img {
  display: block;
  border-radius: 2px;
  margin-bottom: 8px;
}


.contact-qrcode-popup span {
  font-size: 14px;
  color: var(--text-secondary);
}

.contact-item.qr-open .contact-qrcode-popup {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) rotateX(0);
  pointer-events: auto;
}

@media (hover: hover) and (pointer: fine) {
  .contact-wechat-trigger:hover .contact-qrcode-popup {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) rotateX(0);
    pointer-events: auto;
  }
}

/* 产品线总线：填掉联系屏下半屏的空白，内容取自履历里已列出的代理线 */
.line-bus {
  width: min(var(--content-width), 100%);
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  margin: 40px auto 0;
  padding: 14px 0;
  border-bottom: 1px solid rgba(var(--white-rgb), 0.07);
}

.line-bus-label {
  color: rgba(var(--accent-rgb), 0.55);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1.4px;
  white-space: nowrap;
}

.line-bus-track {
  display: flex;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 90%, transparent);
}

.line-bus-run {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 26px;
  padding-right: 26px;
  animation: lineBusScroll 32s linear infinite;
}

.line-bus-run span {
  color: rgba(var(--white-rgb), 0.3);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  white-space: nowrap;
}

.line-bus-run i {
  flex: 0 0 auto;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.45);
  box-shadow: 0 0 6px rgba(var(--accent-rgb), 0.35);
}

@keyframes lineBusScroll {
  to { transform: translateX(-100%); }
}

.contact-copy {
  margin-top: auto;
  padding-bottom: 40px;
  text-align: center;
  font-size: 14px;
  letter-spacing: 1px;
  color: rgba(var(--white-rgb), 0.22);
  font-family: var(--font-mono);
}

/* ========================================
   Section Transitions — Signal Bus
   ======================================== */

.section-about::before,
.section-circuit::before,
.section-works::before,
.section-contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(var(--accent-rgb), 0.12) 20%,
    rgba(var(--white-rgb), 0.12) 50%,
    rgba(var(--accent-rgb), 0.12) 80%,
    transparent
  );
  box-shadow:
    0 0 20px 4px rgba(var(--accent-rgb), 0.05),
    0 0 60px 12px rgba(var(--accent-rgb), 0.025);
  pointer-events: none;
  z-index: 1;
}

.section-about::after,
.section-circuit::after,
.section-works::after,
.section-contact::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 180px;
  background: radial-gradient(ellipse 70% 100% at 50% 0%,
    rgba(var(--accent-rgb), 0.05) 0%,
    rgba(var(--white-rgb), 0.018) 40%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* ========================================
   Scroll Reveal
   ======================================== */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s var(--ease-reveal), transform 0.6s var(--ease-reveal);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   Responsive
   ======================================== */

@media (min-width: 768px) and (max-width: 1366px) {
  .works-inner {
    max-width: 1100px;
  }

  .work-card {
    grid-template-columns: 80px minmax(0, 1fr) 120px 108px;
    gap: 18px;
  }

  .work-card-body {
    grid-template-columns: minmax(160px, 200px) minmax(0, 1fr);
    gap: 24px;
  }
}

@media (max-width: 1023px) {
  .system-hud {
    display: none;
  }

  .about-stats {
    gap: 48px;
  }

  .signal-map {
    max-width: 860px;
  }

  .signal-node {
    width: 240px;
  }

  .hero-mcu {
    right: -18%;
    width: min(68vw, 620px);
    opacity: 0.42;
  }

  .section-heading {
    grid-template-columns: 150px minmax(0, 1fr);
    column-gap: 24px;
  }

  .contact-terminal {
    grid-template-columns: 1fr;
  }

  .contact-console {
    min-height: 0;
    padding: 40px;
    border-right: 0;
    border-bottom: 1px solid rgba(var(--white-rgb), 0.08);
  }

  .contact-links {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .contact-item {
    border-top: 0;
  }
}

@media (max-width: 767px) {
  html { scroll-snap-type: none; }

  .hero-mcu::before,
  .hero-mcu::after {
    display: none;
  }

  .section-heading::after {
    left: 0;
    bottom: -20px;
  }

  .section-hero,
  .section-about,
  .section-circuit,
  .section-works,
  .section-contact {
    scroll-snap-align: none;
    scroll-snap-stop: normal;
  }

  .section-about,
  .section-circuit,
  .section-works,
  .section-contact {
    min-height: auto;
    padding: 96px 20px 64px;
  }

  .section-heading {
    display: block;
    margin-bottom: 40px;
  }

  .section-kicker {
    display: flex;
    padding-top: 0;
    margin-bottom: 14px;
  }

  .section-title {
    font-size: clamp(28px, 9vw, 38px);
    letter-spacing: -0.5px;
  }

  .section-summary {
    margin-top: 12px;
    font-size: 14px;
  }

  .about-stats {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .about-inner {
    gap: 40px;
  }

  .stat-item {
    min-height: 0;
    padding: 22px 8px;
  }

  .stat-item + .stat-item {
    border-left: 0;
    border-top: 1px solid rgba(var(--white-rgb), 0.08);
  }

  .stat-number {
    font-size: 42px;
  }

  .about-principle {
    display: block;
  }

  .about-principle > span {
    display: block;
    margin-bottom: 14px;
    padding-top: 0;
  }

  .about-quote {
    padding-left: 18px;
    font-size: 23px;
  }

  .timeline {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 0;
  }

  .timeline-node {
    width: 100%;
    min-width: 0;
    flex: none;
    display: grid;
    grid-template-columns: 76px 12px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
  }

  .timeline-year {
    grid-column: 1;
    grid-row: 1;
  }

  .timeline-dot {
    grid-column: 2;
    grid-row: 1;
    margin-top: 3px;
  }

  .timeline-copy {
    grid-column: 3;
    grid-row: 1;
  }

  .timeline-line {
    width: 1px;
    height: 40px;
    flex: none;
    margin: 0 0 0 82px;
  }

  .timeline-line::before {
    transform-origin: top;
    transform: scaleY(0);
  }

  .timeline-line.show::before {
    transform: scaleY(1);
  }


  .timeline-label {
    font-size: 14px;
  }

  .timeline-detail {
    max-width: 420px;
    font-size: 12px;
  }

  .timeline-current {
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 30px;
    background: linear-gradient(180deg, transparent, rgba(var(--white-rgb), 0.15), rgba(var(--accent-rgb), 0.8), #ffd76f);
  }

  .timeline-current.show {
    animation: timelineCurrentSweepV 0.5s ease-out forwards;
  }

  @keyframes timelineCurrentSweepV {
    0%   { top: -30px; opacity: 1; }
    85%  { opacity: 1; }
    100% { top: 100%; opacity: 0; }
  }

  .section-circuit {
    padding: 96px 20px 64px;
  }

  .signal-map {
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 96px 0 0 32px;
    width: 100%;
  }

  .signal-map-lines {
    display: none;
  }

  .signal-map::before {
    inset: 118px auto 16px 14px;
    width: 1px;
    border: 0;
    background: rgba(var(--accent-rgb), 0.18);
    clip-path: none;
  }

  .signal-map::after {
    content: '';
    position: absolute;
    left: 13px;
    top: 118px;
    width: 3px;
    height: 64px;
    background: linear-gradient(180deg, transparent, #ffd76f, transparent);
    box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.55);
    opacity: 0;
  }

  .signal-map.powered::after {
    opacity: 1;
    animation: mobileSignalFlow 3s linear infinite;
  }

  @keyframes mobileSignalFlow {
    0% { top: 118px; opacity: 0; }
    10%, 90% { opacity: 1; }
    100% { top: calc(100% - 48px); opacity: 0; }
  }

  .signal-core-pins {
    display: none;
  }

  .signal-core {
    left: 32px;
    top: 0;
    width: 120px;
    height: 72px;
    transform: none;
  }

  .signal-core::before {
    inset: 8px;
  }

  .signal-core::after {
    top: 13px;
    left: 13px;
    width: 5px;
    height: 5px;
  }

  .signal-core strong { font-size: 17px; }
  .signal-core small { font-size: 8px; }

  .signal-node,
  .signal-node-1,
  .signal-node-2,
  .signal-node-3,
  .signal-node-4,
  .signal-node-5,
  .signal-node-6 {
    --node-y: 0%;
    position: relative;
    inset: auto;
    width: 100%;
    min-height: 0;
    padding: 16px;
    opacity: 0.3;
    transform: translateX(8px);
  }

  .signal-node.energized {
    transform: translateX(0);
  }

  .signal-node::before {
    content: '';
    position: absolute;
    left: -18px;
    top: 28px;
    width: 18px;
    height: 1px;
    background: rgba(var(--accent-rgb), 0.24);
  }

  .signal-node::after,
  .signal-node-1::after,
  .signal-node-2::after,
  .signal-node-3::after,
  .signal-node-4::after,
  .signal-node-5::after,
  .signal-node-6::after {
    left: -22px;
    right: auto;
    top: 28px;
  }

  .signal-info h3 { font-size: 15px; }
  .signal-info p { color: var(--text-secondary); font-size: 14px; }

  .cursor-glow {
    display: none;
  }

  .section-hero {
    padding: 0 8%;
  }

  .section-hero::before {
    top: 32px;
  }

  .section-hero::after {
    top: 16px;
    font-size: 8px;
  }

  .hero-eyebrow {
    margin-bottom: 12px;
    font-size: 9px;
  }

  .hero-eyebrow span {
    display: none;
  }

  .hero-badge {
    font-size: clamp(48px, 15vw, 64px);
  }

  .hero-title {
    font-size: clamp(18px, 5.8vw, 22px);
    letter-spacing: 0.5px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 116px;
    gap: 8px;
    margin-top: 22px;
  }

  .hero-action-primary {
    min-width: 0;
    padding-inline: 14px;
  }

  .hero-action-secondary {
    padding: 0 10px;
    font-size: 12px;
  }

  .hero-status {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 18px;
  }

  .hero-status > span:nth-child(2) {
    display: none;
  }

  .hero-status strong {
    font-size: 8px;
  }

  .scroll-hint {
    bottom: 34px;
  }

  .hero-mcu {
    display: block;
    top: 70%;
    right: -238px;
    width: 420px;
    opacity: 0.2;
  }

  /* 手机上 MCU 只是背景纹理，引脚不该发光把自己顶到前景来 */
  .hero-mcu-pins {
    filter: none;
  }

  /* halo 定位跟着桌面版的 MCU（垂直居中），手机上 MCU 在 70%，对不上就是一团散光 */
  .hero-mcu-halo {
    display: none;
  }

  .hero-probe {
    display: none;
  }

  .works-grid {
    gap: 0;
  }

  .work-card {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    min-height: 0;
    padding: 20px 12px;
  }

  .work-card-code {
    grid-column: 1;
    grid-row: 1 / span 3;
    align-self: start;
    padding-top: 4px;
  }

  .work-card-body {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .work-card-heading {
    font-size: 16px;
  }

  .work-card-copy {
    font-size: 14px;
  }

  .work-card-state {
    grid-column: 2;
    text-align: left;
  }

  .work-card-cta {
    display: none;
  }

  /* 用 background-color 而不是 background 简写，否则会连扫描光层一起清掉 */
  .work-card:active {
    background-color: rgba(var(--accent-rgb), 0.06);
    border-bottom-color: rgba(var(--accent-rgb), 0.35);
  }

  .work-card::after {
    right: 2px;
    bottom: -22px;
    font-size: 72px;
    color: rgba(var(--accent-rgb), 0.05);
  }

  .section-contact {
    min-height: 100svh;
    padding: 96px 20px 56px;
  }

  .contact-console {
    padding: 28px 20px;
  }

  .contact-console > p {
    margin-top: 18px;
    font-size: 20px;
  }

  .contact-mail {
    align-items: flex-start;
    margin-top: 28px;
  }

  .contact-mail span {
    font-size: 14px;
  }

  .contact-mail small {
    padding-top: 3px;
  }

  .contact-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    width: 100%;
  }

  .contact-item {
    grid-template-columns: 36px minmax(0, 1fr);
    padding: 20px 14px;
  }

  .contact-icon {
    width: 36px;
    height: 36px;
  }

  .contact-icon svg {
    width: 18px;
    height: 18px;
  }

  .contact-item > span:not(.contact-icon):not(.contact-qrcode-popup) {
    font-size: 12px;
  }

  .contact-item > small {
    overflow: hidden;
    font-size: 7px;
    text-overflow: ellipsis;
  }

  .contact-terminal.reveal.visible {
    transform: none;
  }

  .contact-wechat-trigger {
    perspective: none;
  }

  .contact-qrcode-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    transform-origin: center center;
    z-index: 200;
    border: 1px solid rgba(var(--accent-rgb), 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  }

  .contact-item.qr-open .contact-qrcode-popup {
    transform: translate(-50%, -50%) scale(1);
  }

  .contact-item.qr-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 199;
  }

  /* 手机上 label 和跑马灯并排会把可视轨道压到只剩两三个词 */
  .line-bus {
    display: block;
    margin-top: 28px;
    padding: 12px 0;
  }

  .line-bus-label {
    display: block;
    margin-bottom: 10px;
  }

  .line-bus-run {
    gap: 20px;
    padding-right: 20px;
  }

  .contact-copy {
    margin-top: auto;
    padding-top: 32px;
    padding-bottom: 0;
    font-size: 12px;
  }

  .page-nav {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .cursor-glow,
  .hero-trace-current,
  .signal-traces-current,
  .signal-map::after,
  .timeline-current {
    display: none !important;
  }

  /* 这几条动画的“结束帧”不是可用的静态状态，要单独接管 */
  .line-bus-run {
    animation: none !important;
    transform: none !important;
  }

  .contact-mail span::after {
    animation: none !important;
    opacity: 1;
  }

  .hero-mcu-sheen {
    display: none !important;
  }

  .timeline-node-active .timeline-dot,
  .contact-availability i,
  .section-kicker::after {
    opacity: 1 !important;
  }
}
