/* ============================================================
   TOKENS · GERMAN INDUSTRIAL · AUTOMOTIVE
   ============================================================ */
:root {
  /* 哑光深灰底（车身烤漆质感） */
  --bg: #111111;
  --bg-2: #161616;
  --bg-3: #1c1c1c;
  --bg-elev: #222222;
  --bg-hover: #262626;

  /* 文字层级 */
  --ink: #E8E8E8;
  --ink-soft: #B8B8B8;
  --ink-dim: #7A7A7A;
  --ink-mute: #4A4A4A;

  /* 强调色 — 赛道红 + 工业银 */
  --red: #D43F00;
  --red-bright: #FF5A1F;
  --red-dark: #8A2800;
  --silver: #C8C8C8;
  --silver-dim: #8A8A8A;

  /* 分隔线 */
  --line: rgba(232, 232, 232, 0.08);
  --line-strong: rgba(232, 232, 232, 0.16);
  --line-red: rgba(212, 63, 0, 0.35);

  /* 布局 */
  --max: 1280px;
  --radius: 2px;  /* 德系风 — 几乎无圆角 */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* 字体 */
  --display: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
  --font: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.005em;
}

::selection { background: var(--red); color: #fff; }

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
strong { color: #fff; font-weight: 600; }

/* ============================================================
   BACKGROUND · 车间网格 + 金属拉丝
   ============================================================ */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(232, 232, 232, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 232, 232, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
}
.bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 30%, rgba(212, 63, 0, 0.06), transparent 70%),
    radial-gradient(ellipse 50% 40% at 85% 80%, rgba(200, 200, 200, 0.03), transparent 70%);
}
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0 63px,
    rgba(212, 63, 0, 0.15) 63px 64px
  );
  opacity: 0.5;
}

/* ============================================================
   CURSOR GLOW
   ============================================================ */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 380px; height: 380px;
  margin: -190px 0 0 -190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 63, 0, 0.1), transparent 65%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s;
  will-change: transform;
}

/* ============================================================
   SCROLL PROGRESS · 红线
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  z-index: 120;
  background: var(--bg-3);
}
.scroll-progress i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--red);
  box-shadow: 0 0 12px rgba(212, 63, 0, 0.6);
}

/* ============================================================
   NAV · 极简 + 红线激活
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 48px);
  transition: padding 0.3s var(--ease), background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding: 10px clamp(20px, 4vw, 48px);
  background: rgba(17, 17, 17, 0.92);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand-mark {
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: var(--bg-elev);
  position: relative;
}
.brand-mark::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid var(--red);
  opacity: 0.8;
}
.brand-mark svg { width: 16px; height: 16px; }
.brand-text {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--ink);
  text-transform: uppercase;
}
.brand-text em {
  font-style: normal;
  color: var(--red);
  font-weight: 400;
  margin-left: 4px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-links a {
  position: relative;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
  text-transform: uppercase;
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--ink-soft); }
.nav-links a.active {
  color: #fff;
}
.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--red);
}
.nav-right { display: flex; align-items: center; gap: 12px; }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ink-dim);
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  white-space: nowrap;
  text-transform: uppercase;
}
.status-pill .dot {
  width: 7px; height: 7px;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(212, 63, 0, 0.5);
  animation: ping 2s infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(212, 63, 0, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(212, 63, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 63, 0, 0); }
}
.menu-btn {
  display: none;
  width: 38px; height: 38px;
  border: 1px solid var(--line-strong);
  position: relative;
  background: var(--bg-2);
}
.menu-btn span {
  position: absolute;
  left: 50%; top: 50%;
  width: 14px; height: 1.5px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.menu-btn span:first-child { margin-top: -4px; }
.menu-btn span:last-child { margin-top: 4px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translate(-50%, -50%) rotate(-45deg); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 0;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s, background 0.25s;
  will-change: transform;
  white-space: nowrap;
  font-family: var(--mono);
}
.btn svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary {
  color: #fff;
  background: var(--red);
  border: 1px solid var(--red);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--red-bright);
  border-color: var(--red-bright);
  box-shadow: 0 8px 28px -8px rgba(212, 63, 0, 0.6);
}
.btn-line {
  color: var(--ink);
  border: 1px solid var(--line-strong);
  background: transparent;
}
.btn-line:hover {
  transform: translateY(-2px);
  border-color: var(--red);
  color: var(--red);
}
.btn-ghost {
  padding: 9px 18px;
  font-size: 11px;
  color: var(--ink-soft);
  border: 1px solid var(--line-strong);
  background: transparent;
  letter-spacing: 0.14em;
}
.btn-ghost:hover { border-color: var(--red); color: var(--red); }
.btn-lg { padding: 16px 34px; font-size: 13px; }

/* ============================================================
   BOOT
   ============================================================ */
.boot {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-content: center;
  gap: 32px;
  background: var(--bg);
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
.boot.done { opacity: 0; visibility: hidden; }
.boot-mark { display: grid; justify-items: center; gap: 22px; }
.boot-glyph {
  font-family: var(--mono);
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--red);
  line-height: 1;
  animation: breathe 2s ease-in-out infinite;
}
.boot-glyph::before { content: "["; color: var(--ink-mute); margin-right: 6px; font-weight: 400; }
.boot-glyph::after { content: "]"; color: var(--ink-mute); margin-left: 6px; font-weight: 400; }
.boot-bar {
  width: 140px;
  height: 2px;
  background: var(--bg-3);
  overflow: hidden;
  position: relative;
}
.boot-bar i {
  display: block;
  width: 30%;
  height: 100%;
  background: var(--red);
  animation: bootSlide 1.2s var(--ease) infinite;
}
.boot-text {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--ink-dim);
  text-transform: uppercase;
}
@keyframes bootSlide {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(420%); }
}
@keyframes breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ============================================================
   LAYOUT
   ============================================================ */
main { position: relative; z-index: 2; }
.hero-inner,
.section-head,
.about-grid,
.spec-grid,
.work-grid,
.work-more,
.timeline,
.contact-inner,
.footer-inner {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 0 80px;
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(30px, 5vw, 80px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 28px;
}
.eyebrow-line {
  width: 40px;
  height: 1px;
  background: var(--red);
}
.hero-title {
  font-size: clamp(3.2rem, 7.6vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 800;
  margin-bottom: 32px;
  color: var(--ink);
  text-transform: uppercase;
}
.hero-title .line { display: block; }
.hero-title .line-accent { color: var(--red); }
.hero-sub {
  max-width: 34em;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.1vw, 16.5px);
  line-height: 1.8;
}
.hero-sub .hl { color: #fff; border-bottom: 2px solid var(--red); padding-bottom: 1px; }
.hero-typer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--silver);
  min-height: 20px;
  letter-spacing: 0.06em;
}
.typer-prefix { color: var(--red); font-weight: 700; }
.caret {
  width: 2px;
  height: 14px;
  background: var(--red);
  animation: blink 1.05s steps(2, start) infinite;
  margin-left: 2px;
}
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

/* 仪表板 stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 56px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 22px 18px;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; }
.stat dt {
  font-family: var(--mono);
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.stat dt em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.5em;
  color: var(--red);
  margin-left: 4px;
}
.stat dd {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--ink-dim);
  text-transform: uppercase;
}

/* Hero 视觉 — 速度表 SVG 容器 */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 480px;
}
.speedometer-wrap {
  position: relative;
  width: min(420px, 92%);
  aspect-ratio: 1;
}
.speedometer-wrap svg {
  width: 100%;
  height: 100%;
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.34em;
  color: var(--ink-mute);
  text-transform: uppercase;
}
.scroll-hint i {
  width: 1px;
  height: 44px;
  background: var(--red);
  animation: scrollDown 2.2s ease-in-out infinite;
}
@keyframes scrollDown {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================================
   MARQUEE · 赛道线
   ============================================================ */
.marquee {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  padding: 14px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 32px;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee-track span {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: var(--ink-dim);
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee-track b { color: var(--red); font-size: 10px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   SECTION
   ============================================================ */
.section {
  position: relative;
  z-index: 2;
  padding: clamp(80px, 11vw, 140px) 0;
  border-bottom: 1px solid var(--line);
}
.section-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 18px;
  margin-bottom: clamp(40px, 6vw, 72px);
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.section-index {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--red);
  padding: 6px 12px;
  border: 1px solid var(--red);
  text-transform: uppercase;
}
.section-head h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-transform: uppercase;
}
.section-en {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--ink-mute);
  text-transform: uppercase;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(30px, 4vw, 60px);
  align-items: start;
}
.about-card {
  position: relative;
  padding: 0;
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
  overflow: hidden;
}
.about-card > * { position: relative; z-index: 1; }
.avatar {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3.4;
  background: var(--bg-3);
  border-bottom: 1px solid var(--line);
  display: grid;
  place-items: center;
}
.avatar-inner {
  position: relative;
  width: 110px; height: 110px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid var(--line-strong);
  background: var(--bg-elev);
}
.avatar-inner svg { width: 70%; height: 70%; color: var(--red); }
.avatar-badge {
  position: absolute;
  left: 0; bottom: 0; right: 0;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--ink-dim);
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  background: var(--bg-3);
  display: flex;
  justify-content: space-between;
  text-transform: uppercase;
}
.avatar-badge .dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--red);
  margin-right: 8px;
  animation: ping 2s infinite;
}
.about-meta { padding: 22px 24px 26px; }
.about-meta h3 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.role {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--red);
  margin-top: 4px;
  text-transform: uppercase;
}
.meta-list {
  list-style: none;
  margin-top: 20px;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.meta-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.meta-list li span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--ink-dim);
  text-transform: uppercase;
}
.meta-list li b { font-weight: 500; color: var(--ink); }
.socials {
  display: flex;
  gap: 0;
  margin-top: 0;
  border-top: 1px solid var(--line);
}
.socials a {
  flex: 1;
  text-align: center;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--ink-dim);
  padding: 14px 6px;
  border-right: 1px solid var(--line);
  text-transform: uppercase;
  transition: color 0.25s, background 0.25s;
}
.socials a:last-child { border-right: none; }
.socials a:hover {
  color: var(--red);
  background: var(--bg-elev);
}
.about-text .lead {
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink);
  letter-spacing: -0.01em;
  padding-left: 16px;
  border-left: 3px solid var(--red);
  margin-bottom: 24px;
}
.about-text > p:not(.lead) {
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.9;
  margin-bottom: 16px;
}
.specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 32px;
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
}
.spec {
  padding: 22px 20px;
  border-right: 1px solid var(--line-strong);
  transition: background 0.25s;
}
.spec:last-child { border-right: none; }
.spec:hover { background: var(--bg-3); }
.spec-num {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.spec h4 {
  font-size: 14px;
  font-weight: 700;
  margin: 10px 0 6px;
  text-transform: uppercase;
  letter-spacing: -0.005em;
}
.spec p { font-size: 12.5px; color: var(--ink-dim); line-height: 1.7; }

/* ============================================================
   SPECS (CAPABILITIES RENAME)
   ============================================================ */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
}
.spec-card {
  position: relative;
  padding: 28px 22px;
  border-right: 1px solid var(--line-strong);
  transition: background 0.3s, transform 0.3s var(--ease);
  will-change: transform;
}
.spec-card:last-child { border-right: none; }
.spec-card:hover {
  background: var(--bg-3);
  transform: translateY(-2px);
}
.spec-icon {
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: var(--bg-3);
  color: var(--red);
  margin-bottom: 20px;
}
.spec-icon svg { width: 24px; height: 24px; }
.spec-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: -0.005em;
}
.spec-card p { font-size: 13px; color: var(--ink-soft); line-height: 1.75; }
.spec-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}
.spec-tags span {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink-dim);
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  background: var(--bg-3);
  text-transform: uppercase;
}
.perf-bars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 0;
  border: 1px solid var(--line-strong);
  border-top: none;
  background: var(--bg-2);
}
.perf-item {
  padding: 22px 24px;
  border-right: 1px solid var(--line-strong);
}
.perf-item:last-child { border-right: none; }
.perf-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.perf-head b { color: var(--red); font-size: 12px; font-weight: 700; }
.perf-bar {
  height: 3px;
  background: var(--bg-elev);
  overflow: hidden;
}
.perf-bar i {
  display: block;
  height: 100%;
  width: var(--v);
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s var(--ease);
}
.perf-bar.in i { transform: scaleX(1); }

/* ============================================================
   WORK · 作品/车辆
   ============================================================ */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line-strong);
  background: var(--line-strong);
}
.work-card {
  position: relative;
  background: var(--bg-2);
  overflow: hidden;
  transition: background 0.3s;
  will-change: transform;
}
.work-card:hover { background: var(--bg-3); }
.work-visual {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: var(--bg-3);
  display: grid;
  place-items: center;
}
.work-visual svg {
  width: 85%;
  height: 85%;
  color: var(--ink-soft);
  transition: transform 0.6s var(--ease);
}
.work-card:hover .work-visual svg { transform: scale(1.04); }
.work-chip {
  position: absolute;
  top: 14px; left: 14px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--red);
  padding: 6px 10px;
  border: 1px solid var(--red);
  background: var(--bg);
  text-transform: uppercase;
}
.work-body { padding: 22px 24px 26px; border-top: 1px solid var(--line); }
.work-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.work-top h3 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.work-top .year {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 0.1em;
}
.work-body p {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-top: 10px;
}
.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}
.work-tags span {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink-dim);
  padding: 5px 10px;
  border: 1px solid var(--line-strong);
  text-transform: uppercase;
}
.work-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 0;
  padding: 28px 0 0;
}
.work-more p {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-dim);
  text-transform: uppercase;
}

/* ============================================================
   TIMELINE · 玩车履历
   ============================================================ */
.timeline {
  position: relative;
  display: grid;
  gap: 0;
  border-left: 2px solid var(--line-strong);
  padding-left: 32px;
}
.tl-item {
  position: relative;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.tl-item:last-child { border-bottom: none; }
.tl-dot {
  position: absolute;
  left: -38px;
  top: 32px;
  width: 12px; height: 12px;
  background: var(--bg);
  border: 2px solid var(--red);
  transition: background 0.3s, box-shadow 0.3s;
}
.tl-item:hover .tl-dot {
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(212, 63, 0, 0.2);
}
.tl-time {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--red);
  text-transform: uppercase;
}
.tl-body {
  padding-top: 6px;
  transition: transform 0.35s var(--ease);
}
.tl-item:hover .tl-body { transform: translateX(4px); }
.tl-body h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}
.tl-org {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ink-dim);
  margin: 4px 0 10px;
  text-transform: uppercase;
}
.tl-body p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.8;
  max-width: 62ch;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact { padding-bottom: clamp(70px, 9vw, 110px); }
.contact-inner {
  position: relative;
  padding: clamp(48px, 7vw, 88px) clamp(28px, 5vw, 72px);
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
  overflow: hidden;
  text-align: center;
}
.contact-inner .eyebrow { justify-content: center; }
.contact-inner h2 {
  font-size: clamp(2rem, 4.8vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  line-height: 1.05;
}
.contact-sub {
  max-width: 52ch;
  margin: 22px auto 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.85;
}
.contact-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 48px;
  padding-top: 0;
  border-top: 1px solid var(--line-strong);
}
.contact-cell {
  padding: 20px;
  border-right: 1px solid var(--line-strong);
  text-align: center;
}
.contact-cell:last-child { border-right: none; }
.contact-cell span {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--ink-dim);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.contact-cell b {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.contact-cell b.ok { color: var(--red); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line-strong);
  background: var(--bg-2);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-block: 28px;
}
.footer-brand .brand-text {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.footer-brand p {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--ink-dim);
  margin-top: 4px;
  text-transform: uppercase;
}
.footer-nav { display: flex; gap: 28px; }
.footer-nav a {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--ink-dim);
  text-transform: uppercase;
  transition: color 0.25s;
}
.footer-nav a:hover { color: var(--red); }
.footer-copy {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  text-transform: uppercase;
}

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translate(-50%, 20px);
  z-index: 200;
  padding: 12px 22px;
  border: 1px solid var(--red);
  background: var(--bg-2);
  color: var(--red);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============================================================
   REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec-card { border-bottom: 1px solid var(--line-strong); }
  .spec-card:nth-child(2) { border-right: none; }
  .perf-bars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .perf-item { border-bottom: 1px solid var(--line-strong); }
  .perf-item:nth-child(2) { border-right: none; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 12px 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--line-strong);
  }
  .nav-links.open a {
    padding: 14px clamp(20px, 4vw, 48px);
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open a:last-child { border-bottom: none; }
  .nav-links a.active::after { display: none; }
  .nav-links a.active { color: var(--red); }
  .menu-btn { display: block; }
  .status-pill, .nav-cta { display: none; }

  .hero { padding-top: 100px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { min-height: 320px; order: -1; }
  .speedometer-wrap { width: min(300px, 80vw); }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 40px; }
  .stat { border-bottom: 1px solid var(--line); }
  .stat:nth-child(2) { border-right: none; }
  .scroll-hint { display: none; }

  .about-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; gap: 0; }
  .work-card:not(:last-child) { border-bottom: 1px solid var(--line-strong); }
  .section-head { grid-template-columns: auto 1fr; }
  .section-en { display: none; }
  .specs { grid-template-columns: 1fr; }
  .spec { border-right: none; border-bottom: 1px solid var(--line-strong); }
  .spec:last-child { border-bottom: none; }
}
@media (max-width: 640px) {
  .hero-title { font-size: clamp(2.6rem, 12vw, 4rem); }
  .hero-actions .btn { flex: 1; }
  .hero-stats { margin-top: 32px; }
  .spec-grid { grid-template-columns: 1fr; }
  .spec-card { border-right: none !important; border-bottom: 1px solid var(--line-strong); }
  .spec-card:last-child { border-bottom: none; }
  .perf-bars { grid-template-columns: 1fr; }
  .perf-item { border-right: none !important; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-cell { border-right: none !important; border-bottom: 1px solid var(--line-strong); }
  .contact-cell:last-child { border-bottom: none; }
  .footer-inner { flex-direction: column; text-align: center; gap: 16px; }
  .work-visual { height: 200px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   HMI NAV · 赛车仪表盘水平条（覆盖基础导航样式）
   ============================================================ */
.nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: stretch;
  gap: 0;
  height: 60px;
  padding: 0 clamp(14px, 2.5vw, 28px);
  background: linear-gradient(180deg, #131313, #0C0C0C);
  border-bottom: 1px solid var(--line-strong);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03), 0 12px 30px -22px #000;
}
.nav::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--red-bright) 38%, #3A3A3A 72%, #2A2A2A);
}
.nav.scrolled {
  padding: 0 clamp(14px, 2.5vw, 28px);
  background: linear-gradient(180deg, #101010, #090909);
  border-bottom-color: var(--red-dark);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.nav .brand { align-self: center; }
.nav-links {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  border: 0;
}
.nav-links a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 clamp(8px, 1.3vw, 18px);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--ink-dim);
  text-transform: uppercase;
  border-right: 1px solid var(--line);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:last-child { border-right: none; }
.nav-links a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.03); }
.nav-links a .tab-idx {
  font-size: 8px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
}
.nav-links a.active {
  color: #fff;
  background: linear-gradient(180deg, rgba(212, 63, 0, 0.22), rgba(212, 63, 0, 0.05));
  box-shadow: inset 0 -2px 0 var(--red);
}
.nav-links a.active .tab-idx { color: var(--red); }
.nav-links a.active::after { display: none; }
.nav-right { display: flex; align-items: center; gap: 14px; }
.hmi-tel {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  padding-left: 16px;
  border-left: 1px solid var(--line);
}
.tel-item { display: grid; gap: 2px; justify-items: end; }
.tel-item span {
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.2em;
  color: var(--ink-mute);
}
.tel-item b {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}
.tel-rpm {
  width: 74px;
  height: 6px;
  background: #1C1C1C;
  border: 1px solid #2A2A2A;
  overflow: hidden;
}
.tel-rpm i {
  display: block;
  height: 100%;
  width: 8%;
  background: linear-gradient(90deg, #2E5D3E, #C8C8C8 62%, var(--red));
  transition: width 0.12s linear;
}

/* 顶部滚动进度改为分段 LED */
.scroll-progress { height: 3px; background: #1A1A1A; }
.scroll-progress i {
  background: repeating-linear-gradient(90deg, var(--red) 0 5px, rgba(0, 0, 0, 0) 5px 9px);
  box-shadow: 0 0 10px rgba(212, 63, 0, 0.45);
}

/* 速度表指针 */
#needle {
  transform-box: view-box;
  transform-origin: 200px 210px;
  will-change: transform;
}

/* ============================================================
   CIRCUIT · 纽北赛道图
   ============================================================ */
.circuit-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
}
.circuit-map {
  position: relative;
  padding: clamp(16px, 2.5vw, 30px);
  border-right: 1px solid var(--line-strong);
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.012) 0 1px, transparent 1px 40px);
}
.circuit-map svg { width: 100%; height: auto; }
.track-line {
  stroke-dasharray: 8 14;
  animation: trackFlow 18s linear infinite;
}
@keyframes trackFlow { to { stroke-dashoffset: -440; } }
.circuit-side { display: grid; grid-template-rows: repeat(3, 1fr); }
.circuit-stat {
  padding: clamp(18px, 2.4vw, 26px) clamp(18px, 2.4vw, 26px);
  border-bottom: 1px solid var(--line-strong);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.circuit-stat:last-child { border-bottom: none; }
.cs-label {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--ink-mute);
  text-transform: uppercase;
}
.cs-val {
  font-family: var(--mono);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.1;
  margin: 6px 0 6px;
  font-variant-numeric: tabular-nums;
}
.cs-val span { font-size: 0.42em; color: var(--red); margin-left: 4px; letter-spacing: 0.05em; }
.circuit-stat p { font-size: 12.5px; color: var(--ink-dim); line-height: 1.7; }

/* ============================================================
   BUILD LOG · 轮播
   ============================================================ */
.carousel {
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
  overflow: hidden;
  outline: none;
}
.carousel:focus-visible { border-color: var(--red); }
.carousel-viewport { overflow: hidden; }
.carousel-track {
  display: flex;
  transition: transform 0.65s var(--ease);
  will-change: transform;
}
.carousel-slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
}
.log-visual {
  display: grid;
  place-items: center;
  padding: 28px;
  min-height: 300px;
  background: var(--bg-3);
  border-right: 1px solid var(--line-strong);
  color: var(--ink-soft);
}
.log-visual svg { width: 100%; height: auto; max-height: 220px; }
.log-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 3.4vw, 44px);
}
.log-date {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--red);
  text-transform: uppercase;
}
.log-body h3 {
  font-size: clamp(1.25rem, 2.1vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 12px 0 14px;
}
.log-body p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.85;
  max-width: 46ch;
}
.log-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.log-meta span {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-dim);
  padding: 5px 10px;
  border: 1px solid var(--line-strong);
  text-transform: uppercase;
}
.carousel-ctrl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 2.5vw, 24px);
  border-top: 1px solid var(--line-strong);
  background: var(--bg);
}
.carousel-counter {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--ink-dim);
  font-variant-numeric: tabular-nums;
}
.carousel-dots { display: flex; gap: 6px; }
.carousel-dots button {
  width: 26px;
  height: 3px;
  padding: 0;
  border: 0;
  background: var(--bg-elev);
  cursor: pointer;
  transition: background 0.2s;
}
.carousel-dots button.on { background: var(--red); }
.carousel-btns { display: flex; gap: 8px; }
.carousel-btns button {
  width: 42px;
  height: 32px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.carousel-btns button:hover { border-color: var(--red); color: var(--red); background: rgba(212, 63, 0, 0.08); }

@media (max-width: 900px) {
  .nav { grid-template-columns: 1fr auto; height: 54px; padding: 0 16px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #0B0B0B;
    border-bottom: 1px solid var(--line-strong);
  }
  .nav-links.open a {
    padding: 14px 20px;
    border-right: none;
    border-bottom: 1px solid var(--line);
    box-shadow: none;
    background: none;
  }
  .nav-links.open a.active {
    background: rgba(212, 63, 0, 0.1);
    box-shadow: inset 3px 0 0 var(--red);
  }
  .hmi-tel { display: none; }
  .circuit-grid { grid-template-columns: 1fr; }
  .circuit-map { border-right: none; border-bottom: 1px solid var(--line-strong); }
  .carousel-slide { grid-template-columns: 1fr; }
  .log-visual { border-right: none; border-bottom: 1px solid var(--line-strong); min-height: 220px; }
}
@media (max-width: 640px) {
  .carousel-ctrl { flex-direction: column-reverse; align-items: stretch; }
  .carousel-counter { text-align: center; }
  .carousel-dots { justify-content: center; }
  .carousel-btns button { flex: 1; }
}
