/* ============================================================
   常州道声 · 汽车音响主题设计系统
   暗黑声场风格：碳纤维质感 + 琥珀金/电光蓝双色调
   ============================================================ */

:root {
  --void: #07080b;
  --carbon: #0d1015;
  --panel: #131820;
  --panel-2: #1a212c;
  --line: #242d3a;
  --line-soft: #1c2430;
  --amber: #3b82f6;
  --amber-hot: #2563eb;
  --amber-soft: #60a5fa;
  --cyan: #35e0ff;
  --cyan-dim: #1a8fb0;
  --text: #e9eef4;
  --text-mid: #a7b3c0;
  --text-dim: #6b7888;
  --font-display: 'Orbitron', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  --font-head: 'Rajdhani', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  --font-body: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--void);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
}

/* ---------- 碳纤维纹理背景 ---------- */
.bg-carbon {
  background-color: var(--carbon);
  background-image:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(59,130,246,0.06), transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 100%, rgba(53,224,255,0.05), transparent 60%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.012) 0 2px, transparent 2px 4px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,0.012) 0 2px, transparent 2px 4px);
}
.bg-grid {
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ---------- 文字效果 ---------- */
.font-display { font-family: var(--font-display); }
.font-head { font-family: var(--font-head); }

.text-outline {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(233,238,244,0.35);
}
.text-amber-glow {
  color: var(--amber);
  text-shadow: 0 0 24px rgba(59,130,246,0.45), 0 0 60px rgba(59,130,246,0.2);
}
.text-gradient-amber {
  background: linear-gradient(100deg, var(--amber-soft), var(--amber) 45%, var(--amber-hot));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* 眉标 */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--amber);
}
.eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, var(--amber), transparent);
}

/* ---------- 均衡器动画（核心视觉） ---------- */
.equalizer {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 100%;
}
.equalizer .bar {
  flex: 1;
  min-width: 3px;
  background: linear-gradient(to top, var(--amber-hot), var(--amber) 60%, var(--amber-soft));
  border-radius: 2px 2px 0 0;
  animation: eq-bounce 1s ease-in-out infinite;
  transform-origin: bottom;
  box-shadow: 0 0 8px rgba(59,130,246,0.3);
}
@keyframes eq-bounce {
  0%, 100% { transform: scaleY(0.15); opacity: 0.5; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* 迷你均衡器（装饰用） */
.eq-mini { display: inline-flex; align-items: flex-end; gap: 2px; height: 16px; }
.eq-mini span {
  width: 3px;
  background: var(--amber);
  border-radius: 1px;
  animation: eq-bounce 0.9s ease-in-out infinite;
  transform-origin: bottom;
}
.eq-mini span:nth-child(1) { height: 40%; animation-delay: 0s; }
.eq-mini span:nth-child(2) { height: 90%; animation-delay: 0.15s; }
.eq-mini span:nth-child(3) { height: 60%; animation-delay: 0.3s; }
.eq-mini span:nth-child(4) { height: 100%; animation-delay: 0.1s; }
.eq-mini span:nth-child(5) { height: 50%; animation-delay: 0.25s; }

/* ---------- 扬声器音圈（旋转装饰） ---------- */
.woofer {
  animation: woofer-spin 24s linear infinite;
}
@keyframes woofer-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.woofer-pulse {
  animation: woofer-thump 1.6s ease-in-out infinite;
  transform-origin: center;
}
@keyframes woofer-thump {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.04); opacity: 1; }
}

/* ============================================================
   音响系统布局图（俯视图）· AUDIO SYSTEM LAYOUT
   数据驱动节点 + 信号流动画 + 悬停联动 + 试听钩子
   纯 SVG + CSS/SMIL，零额外请求、零服务器开销
   ============================================================ */
.sys-svg { width: 100%; height: auto; overflow: visible; display: block; }

.sys-body {
  stroke: var(--amber);
  stroke-width: 2;
  fill: url(#sysBodyGrad);
  filter: drop-shadow(0 0 12px rgba(59,130,246,0.3));
}
.sys-interior { fill: rgba(255,255,255,0.025); stroke: var(--line); stroke-width: 1; }
.sys-interior-line { fill: none; stroke: var(--line); stroke-width: 1; }
.sys-glass { fill: rgba(53,224,255,0.05); stroke: var(--tech-dim); stroke-width: 1; }

/* 信号线：彩色虚线流动 */
.sys-wire {
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: 4 8;
  opacity: 0.45;
  animation: sys-flow 1s linear infinite;
  transition: opacity 0.3s, stroke-width 0.3s;
}
@keyframes sys-flow { to { stroke-dashoffset: -12; } }
.sys-pulse { filter: drop-shadow(0 0 4px currentColor); }

/* 喇叭节点 */
.sys-node { cursor: pointer; }
.sys-halo {
  fill: none;
  stroke-width: 1.5;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: sys-halo 2.6s ease-out infinite;
}
@keyframes sys-halo {
  0% { transform: scale(0.55); opacity: 0.55; }
  100% { transform: scale(1.9); opacity: 0; }
}
.sys-ring {
  fill: none;
  stroke-width: 2.5;
  opacity: 0.85;
  transform-box: fill-box;
  transform-origin: center;
  animation: sys-ring 2.4s ease-in-out infinite;
  transition: stroke-width 0.25s;
}
@keyframes sys-ring { 0%,100% { opacity: 0.55; } 50% { opacity: 1; } }
.sys-cone { fill: rgba(7,8,11,0.55); stroke-width: 1.5; transition: stroke-width 0.25s; }
.sys-dome { transition: r 0.25s; }
.sys-hit { fill: transparent; }

/* 低音炮鼓动 */
.sys-thump { transform-box: fill-box; transform-origin: center; animation: sys-thump 1.05s ease-in-out infinite; }
@keyframes sys-thump { 0%,100% { transform: scale(1); } 45% { transform: scale(1.16); } }

/* 声波扩散 */
.sys-sound { fill: none; stroke-width: 1.6; stroke-linecap: round; opacity: 0; animation: sys-sound 2s ease-out infinite; }
@keyframes sys-sound { 0% { opacity: 0; transform: scale(0.6); } 35% { opacity: 0.8; } 100% { opacity: 0; transform: scale(1.3); } }
.sys-sound { transform-box: fill-box; transform-origin: center; }

/* 引线 + 标注 */
.sys-leader { fill: none; stroke: var(--line); stroke-width: 1; transition: stroke 0.25s; }
.sys-label-pos { font-family: var(--font-head); font-weight: 700; font-size: 12.5px; fill: var(--text); transition: fill 0.25s; }
.sys-label-model { font-family: var(--font-display); font-size: 8.5px; letter-spacing: 0.06em; fill: var(--text-dim); transition: fill 0.25s; }

/* 中央 DSP 节点 */
.dsp-core { fill: var(--panel2); stroke: var(--amber); stroke-width: 1.5; }
.dsp-pulse { fill: none; stroke: var(--amber); stroke-width: 1; opacity: 0; transform-box: fill-box; transform-origin: center; animation: sys-halo 2s ease-out infinite; }
.dsp-label { font-family: var(--font-display); font-size: 9px; letter-spacing: 0.15em; fill: var(--amber-soft); }

/* 交互联动态（JS 切换 .is-active / .is-playing） */
.sys-node.is-active .sys-ring,
.sys-node.is-active .sys-cone { stroke-width: 4; }
.sys-node.is-active .sys-halo { animation-duration: 1.1s; }
.sys-node.is-playing .sys-halo { animation-duration: 0.45s; }
.sys-node.is-playing .sys-ring { animation-duration: 0.45s; }
.sys-labelgrp.is-active .sys-leader { stroke: var(--amber); }
.sys-labelgrp.is-active .sys-label-pos { fill: var(--amber); }
.sys-labelgrp.is-active .sys-label-model { fill: var(--amber-soft); }

/* ---------- 系统配置清单（产品槽，可扩展） ---------- */
.cfg-list { display: flex; flex-direction: column; }
.cfg-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px;
  border-left: 2px solid transparent;
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, padding-left 0.25s;
  position: relative;
}
.cfg-item:last-child { border-bottom: none; }
.cfg-item:hover, .cfg-item.is-active {
  background: rgba(59,130,246,0.06);
  border-left-color: var(--cfg-color, var(--amber));
  padding-left: 16px;
}
.cfg-num {
  font-family: var(--font-display); font-size: 11px; font-weight: 700;
  width: 22px; height: 22px; flex: none;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--cfg-color, var(--line)); color: var(--cfg-color, var(--text-mid));
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}
.cfg-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--cfg-color); box-shadow: 0 0 8px var(--cfg-color); }
.cfg-text { flex: 1; min-width: 0; }
.cfg-pos { font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--text); line-height: 1.2; }
.cfg-model { font-family: var(--font-display); font-size: 10px; letter-spacing: 0.04em; color: var(--text-dim); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cfg-play {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); color: var(--text-dim);
  opacity: 0; transform: scale(0.8); transition: opacity 0.25s, transform 0.25s, color 0.25s, border-color 0.25s;
}
.cfg-item:hover .cfg-play, .cfg-item.is-active .cfg-play { opacity: 1; transform: scale(1); color: var(--cfg-color); border-color: var(--cfg-color); }
.cfg-play svg { width: 11px; height: 11px; margin-left: 1px; }

/* ---------- 图例 ---------- */
.sys-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.leg-item { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-mid); }
.leg-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; box-shadow: 0 0 6px currentColor; }

/* ---------- 信号流程面板 ---------- */
.sig-flow { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
.sig-box {
  border: 1px solid var(--line); background: var(--panel);
  padding: 9px 12px; text-align: center;
  font-family: var(--font-head); font-weight: 600; font-size: 13px; color: var(--text);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.sig-box small { display: block; font-family: var(--font-display); font-size: 9px; letter-spacing: 0.1em; color: var(--text-dim); font-weight: 400; margin-top: 2px; }
.sig-arrow { display: flex; justify-content: center; height: 18px; color: var(--amber); }
.sig-arrow svg { width: 14px; height: 18px; animation: sig-drop 1.2s ease-in-out infinite; }
@keyframes sig-drop { 0%,100% { transform: translateY(-3px); opacity: 0.4; } 50% { transform: translateY(3px); opacity: 1; } }
.sig-fan { display: flex; flex-direction: column; gap: 5px; margin-top: 12px; padding: 12px; border: 1px solid var(--line-soft); background: var(--carbon); }
.sig-fan-row { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text-mid); }
.sig-fan-line { height: 2px; flex: 1; border-radius: 2px; background: var(--cfg-color); position: relative; overflow: hidden; }
.sig-fan-line::after { content: ''; position: absolute; top: 0; left: -40%; width: 40%; height: 100%; background: linear-gradient(90deg, transparent, #fff, transparent); animation: sig-run 1.6s linear infinite; }
@keyframes sig-run { to { left: 120%; } }
/* 声学环境层说明（隔音，非信号流） */
.acoustic-note {
  display: flex; gap: 8px; align-items: flex-start;
  margin-top: 12px; padding: 10px 12px;
  border: 1px solid rgba(52, 211, 153, 0.25);
  background: rgba(52, 211, 153, 0.06);
  border-radius: 6px;
  font-size: 11px; line-height: 1.6; color: var(--text-mid);
}
.acoustic-note b { color: var(--text); }
.acoustic-icon { flex: none; line-height: 1; margin-top: 1px; }

/* ============================================================
   Hero 主视觉 · DSP 声场校准（实时测量仪 · 纯 CSS/SVG 零 JS）
   动效：发光扫描线 + 沿曲线光点 + 漂浮粒子 + 分频虚线流动
   ============================================================ */
.dsp-svg { width: 100%; height: auto; display: block; }
.dsp-title { font-family: var(--font-head); font-weight: 700; font-size: 15px; fill: var(--text); }
.dsp-sub { font-family: var(--font-display); font-size: 9px; letter-spacing: 0.18em; fill: var(--text-dim); }
.dsp-band-label { font-family: var(--font-head); font-weight: 600; font-size: 11px; fill: var(--text-mid); }
.dsp-band-hz { font-family: var(--font-display); font-size: 8px; letter-spacing: 0.08em; fill: var(--text-dim); }
.dsp-axis { font-family: var(--font-display); font-size: 8px; letter-spacing: 0.06em; fill: var(--text-dim); }
.dsp-chip-label { font-family: var(--font-head); font-size: 10px; font-weight: 600; fill: var(--text); }
.dsp-chip-val { font-family: var(--font-display); font-size: 10px; fill: var(--amber-soft); }
.dsp-chip-unit { font-family: var(--font-display); font-size: 8px; fill: var(--text-dim); }

/* 实测曲线辉光 */
.dsp-curve-measured { filter: drop-shadow(0 0 6px rgba(53,224,255,0.55)); }

/* 目标曲线（虚线慢速流动） */
.dsp-target { animation: dsp-target-flow 3.5s linear infinite; }
@keyframes dsp-target-flow { to { stroke-dashoffset: -10; } }

/* 分频虚线流动 */
.dsp-xo-line { animation: dsp-xo-flow 1.2s linear infinite; }
@keyframes dsp-xo-flow { to { stroke-dashoffset: -7; } }

/* 发光扫描线（左→右循环扫频，两端淡入淡出） */
.dsp-scan { animation: dsp-scan 6s linear infinite; }
.dsp-scan line { filter: drop-shadow(0 0 4px rgba(53,224,255,0.9)); }
@keyframes dsp-scan {
  0% { transform: translateX(80px); opacity: 0; }
  6% { opacity: 1; }
  94% { opacity: 1; }
  100% { transform: translateX(720px); opacity: 0; }
}

/* 测量光点（沿曲线移动由 SMIL animateMotion 驱动，这里只加辉光） */
.dsp-cursor circle { filter: drop-shadow(0 0 4px rgba(53,224,255,0.85)); }

/* 背景光晕呼吸 */
.dsp-glow { animation: dsp-glow 8s ease-in-out infinite; }
.dsp-glow.g2 { animation-delay: -4s; }
@keyframes dsp-glow { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }

/* 漂浮粒子（负 delay 错开相位） */
.dsp-particle { animation: dsp-float 7s ease-in-out infinite; opacity: 0; }
@keyframes dsp-float {
  0%, 100% { transform: translateY(0); opacity: 0; }
  25% { opacity: 0.7; }
  50% { transform: translateY(-12px); opacity: 0.4; }
  75% { opacity: 0.15; }
}

/* RTA LIVE 呼吸点 */
.dsp-live { animation: dsp-live 1.6s ease-in-out infinite; }
@keyframes dsp-live {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@media (prefers-reduced-motion: reduce) {
  .dsp-live,
  .dsp-scan,
  .dsp-target,
  .dsp-xo-line,
  .dsp-particle,
  .dsp-glow { animation: none; }
  .dsp-cursor { opacity: 0; }
}

/* Hero 技术要点清单 */
.hero-tech { display: flex; flex-direction: column; gap: 12px; }
.hero-tech li {
  position: relative; padding-left: 22px;
  font-size: 14px; line-height: 1.5;
}
.hero-tech li::before {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 10px; height: 10px;
  border: 1.5px solid var(--amber); border-radius: 2px;
  background: linear-gradient(135deg, rgba(59,130,246,0.35), transparent);
}
.hero-tech li b { color: var(--text); font-weight: 600; margin-right: 8px; }
.hero-tech li span { color: var(--text-dim); font-size: 13px; }

/* ---------- 品牌跑马灯 ---------- */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}
.marquee::before, .marquee::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--void), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--void), transparent); }
.marquee-track {
  display: inline-flex;
  gap: 56px;
  padding-right: 56px;
  animation: marquee-scroll 30s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- 滚动显现 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px) scale(0.97);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.reveal.revealed { opacity: 1; transform: translateY(0) scale(1); }
.reveal-left { transform: translateX(-48px) scale(0.97); }
.reveal-left.revealed { transform: translateX(0) scale(1); }
.reveal-right { transform: translateX(48px) scale(0.97); }
.reveal-right.revealed { transform: translateX(0) scale(1); }

/* ---------- 卡片 / 面板 ---------- */
.panel {
  background: linear-gradient(160deg, var(--panel), var(--carbon));
  border: 1px solid var(--line-soft);
  position: relative;
  overflow: hidden;
}
.panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--amber) 30%, var(--amber-hot) 50%, transparent 80%);
  opacity: 0;
  transition: opacity 0.4s;
}
.panel:hover::before { opacity: 1; }
.panel-hover {
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), border-color 0.4s, box-shadow 0.4s;
}
.panel-hover:hover {
  transform: translateY(-6px);
  border-color: rgba(59,130,246,0.35);
  box-shadow: 0 20px 50px -12px rgba(0,0,0,0.7), 0 0 40px -10px rgba(59,130,246,0.15);
}

/* 切角面板（科技感斜角） */
.clip-corner {
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

/* ---------- 按钮 ---------- */
.btn-amber {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: linear-gradient(120deg, var(--amber), var(--amber-hot));
  color: #0a0a0a;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.btn-amber::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transition: left 0.5s;
}
.btn-amber:hover::after { left: 120%; }
.btn-amber:hover {
  box-shadow: 0 0 30px rgba(59,130,246,0.5);
  transform: translateY(-2px);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 30px;
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  transition: all 0.3s;
  background: rgba(255,255,255,0.02);
}
.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 24px rgba(53,224,255,0.2);
}

/* ---------- 区块标题 ---------- */
.section-title {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.section-num {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--amber);
  letter-spacing: 0.3em;
}

/* ---------- 斜切分隔线 ---------- */
.divider-slant {
  height: 80px;
  background: var(--carbon);
  clip-path: polygon(0 0, 100% 60%, 100% 100%, 0 100%);
}

/* ---------- 数字统计 ---------- */
.stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(180deg, #fff, var(--amber-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 案例卡片图片缩放 ---------- */
.case-img {
  transition: transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.group:hover .case-img { transform: scale(1.08); }

/* 案例覆盖层 */
.case-overlay {
  background: linear-gradient(to top, rgba(7,8,11,0.95) 0%, rgba(7,8,11,0.4) 50%, transparent 100%);
}

/* ---------- 表单 ---------- */
.input-dark {
  width: 100%;
  padding: 13px 16px;
  background: var(--carbon);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 14px;
  transition: all 0.3s;
  outline: none;
}
.input-dark::placeholder { color: var(--text-dim); }
.input-dark:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12), 0 0 20px rgba(59,130,246,0.08);
}

/* ---------- 脉冲点（营业中指示） ---------- */
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  position: relative;
}
.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid #22c55e;
  animation: pulse-ring 1.8s ease-out infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* ---------- 声波纹背景（Hero） ---------- */
.soundwave-line {
  stroke: url(#waveGradient);
  stroke-width: 1.5;
  fill: none;
  opacity: 0.5;
}

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--amber-hot), var(--amber));
  border-radius: 5px;
}

/* ---------- 文章正文（暗色适配） ---------- */
.article-content { color: var(--text-mid); line-height: 1.9; }
.article-content h2, .article-content h3 {
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 700;
  margin: 2rem 0 1rem;
}
.article-content h2 {
  font-size: 1.5rem;
  padding-left: 14px;
  border-left: 3px solid var(--amber);
}
.article-content h3 { font-size: 1.2rem; }
.article-content p { margin-bottom: 1.1rem; }
.article-content img {
  /* !important 覆盖旧站迁移内容里的内联 width/height（如 style="width:580px;height:386px"），
     避免在窄容器里溢出被裁切，保证图片完整显示 */
  max-width: 100% !important;
  height: auto !important;
  width: auto;
  display: block;
  margin: 1.5rem auto;
  border: 1px solid var(--line-soft);
}
.article-content a { color: var(--cyan); }
.article-content blockquote {
  border-left: 3px solid var(--amber);
  padding: 12px 20px;
  margin: 1.5rem 0;
  background: rgba(59,130,246,0.05);
}
.article-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.article-content th, .article-content td {
  border: 1px solid var(--line);
  padding: 10px 14px;
  text-align: left;
}
.article-content th { background: var(--panel); color: var(--text); }

/* ---------- 行截断 ---------- */
.line-clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- 加载闪烁（骨架感） ---------- */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ---------- 地图（高德 iframe 深色滤镜适配暗色主题） ---------- */
.map-iframe {
  border: 0;
  filter: invert(90%) hue-rotate(180deg) brightness(1.05) contrast(0.9);
}

/* ---------- 改装科普：信号流 / 工艺标签 ---------- */
.sig-line { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.sig-chip {
  display: inline-flex; align-items: center;
  padding: 6px 12px; border: 1px solid var(--line);
  background: var(--panel); color: var(--text-mid);
  font-size: 12px; font-weight: 600; white-space: nowrap;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.sig-chip--key { border-color: var(--amber); color: var(--amber); background: rgba(59, 130, 246, .08); }
.sig-chip--spk { border-color: var(--tech); color: var(--tech); background: rgba(40, 214, 240, .06); }
.sig-arr { color: var(--text-dim); font-size: 14px; }
.sig-split { display: inline-flex; flex-direction: column; gap: 6px; }
.sig-branch { display: inline-flex; align-items: center; gap: 8px; }
.craft-tag {
  display: inline-flex; padding: 4px 10px;
  border: 1px solid var(--line); color: var(--text-dim);
  font-size: 11px; letter-spacing: .05em;
}
.craft-tag--hot { border-color: rgba(59, 130, 246, .5); color: var(--amber); background: rgba(59, 130, 246, .07); }
.craft-item {
  padding: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02);
  transition: border-color .3s, transform .3s;
}
.craft-item:hover { border-color: rgba(59, 130, 246, .5); transform: translateY(-3px); }
.craft-list { list-style: none; padding: 0; margin: 0; }
.craft-list li {
  position: relative; padding-left: 20px; margin-bottom: 10px;
  color: var(--text-dim); font-size: 13px; line-height: 1.6;
}
.craft-list li::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 6px; height: 6px; background: var(--amber); transform: rotate(45deg);
}
.panel-flagship { border: 1px solid rgba(59, 130, 246, .45); box-shadow: 0 0 40px rgba(59, 130, 246, .07); }

/* ---------- 系统等级切换 ---------- */
.sys-tier-tab {
  padding: 12px 22px; border: 1px solid var(--line); background: var(--panel);
  text-align: left; cursor: pointer; transition: all .3s;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.sys-tier-tab:hover { border-color: rgba(59, 130, 246, .5); transform: translateY(-2px); }
.sys-tier-tab.is-active { border-color: var(--amber); background: rgba(59, 130, 246, .08); box-shadow: 0 0 24px rgba(59, 130, 246, .12); }
.sys-tier-tab.is-active .font-head { color: var(--amber); }
.sys-tier-panel { display: none; }
.sys-tier-panel.is-active { display: block; animation: tierIn .5s cubic-bezier(.16, 1, .3, 1); }
@keyframes tierIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
  .text-outline { -webkit-text-stroke-width: 1px; }
}

/* 配置清单 · 选装徽章 */
.cfg-opt-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  font-size: 10px;
  line-height: 1.5;
  border-radius: 8px;
  border: 1px solid rgba(251,191,36,.45);
  color: var(--amber);
  background: rgba(251,191,36,.08);
  vertical-align: 1px;
  letter-spacing: .1em;
}
.cfg-optional { border-left-color: rgba(251,191,36,.55) !important; }
.cfg-optional .cfg-dot { box-shadow: 0 0 8px rgba(251,191,36,.5); }

/* ============================================================
   声场可视化雷达（纯CSS · 低内存）
   替代重复俯视图：中央DSP核心 + 扩散声波环 + 声场节点 + 频谱
   ============================================================ */
.stage-viz {
  position: relative;
  aspect-ratio: 4 / 5;
  min-height: 420px;
  background: radial-gradient(circle at 50% 45%, #161d29 0%, #0b0e13 72%);
  border: 1px solid var(--line-soft, rgba(255,255,255,.08));
  border-radius: 6px;
  overflow: hidden;
}
.stage-viz::before {
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-radial-gradient(circle at 50% 45%, transparent 0 42px, rgba(255,255,255,.035) 42px 43px),
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: auto, 100% 84px, 84px 100%;
  pointer-events: none;
}
/* 声学隔音层（环境层，非信号流节点） */
.stage-insulation {
  position: absolute; inset: 10px;
  border: 1.5px dashed rgba(52, 211, 153, 0.35);
  border-radius: 12px;
  pointer-events: none;
  z-index: 0;
  box-shadow: inset 0 0 32px rgba(52, 211, 153, 0.06);
}
.insul-label {
  position: absolute; left: 14px; top: 11px;
  font-family: var(--font-display);
  font-size: 9px; letter-spacing: 0.22em;
  color: rgba(52, 211, 153, 0.78);
  text-transform: uppercase;
}
/* 中央 DSP 核心 */
.stage-core {
  position: absolute; left: 50%; top: 45%;
  transform: translate(-50%, -50%);
  width: 76px; height: 76px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #1c2533, #0e131c);
  border: 1px solid rgba(251,191,36,.4);
  box-shadow: 0 0 24px rgba(251,191,36,.18), inset 0 0 18px rgba(251,191,36,.08);
  z-index: 3;
}
.stage-core span {
  font-family: var(--font-display);
  font-size: 12px; letter-spacing: .2em; color: var(--amber);
  text-shadow: 0 0 10px rgba(251,191,36,.6);
}
.stage-core::after {
  content: '';
  position: absolute; inset: -6px; border-radius: 18px;
  border: 1px solid rgba(251,191,36,.25);
  animation: coreBreath 2.6s ease-in-out infinite;
}
@keyframes coreBreath { 0%,100% { transform: scale(1); opacity:.5 } 50% { transform: scale(1.18); opacity:1 } }
/* 扩散声波环 */
.stage-wave {
  position: absolute; left: 50%; top: 45%;
  border: 1px solid rgba(251,191,36,.5); border-radius: 50%;
  width: 40px; height: 40px; margin: -20px 0 0 -20px;
  opacity: 0; z-index: 1;
  animation: stagePulse 3.4s ease-out infinite;
}
.stage-wave.w2 { animation-delay: 1.15s; }
.stage-wave.w3 { animation-delay: 2.3s; }
@keyframes stagePulse {
  0% { transform: scale(.5); opacity: .9; }
  100% { transform: scale(6); opacity: 0; }
}
/* 声场节点（每个声道组） */
.stage-node {
  position: absolute; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  z-index: 2;
}
.stage-node .dot {
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--c); box-shadow: 0 0 14px var(--c);
  animation: nodePulse 2.2s ease-in-out infinite;
  border: 1px solid rgba(255,255,255,.25);
}
.stage-node .label {
  font-size: 10px; color: rgba(255,255,255,.72);
  letter-spacing: .08em; white-space: nowrap;
  padding: 2px 8px; border-radius: 10px;
  background: rgba(0,0,0,.45); backdrop-filter: blur(2px);
}
@keyframes nodePulse { 0%,100% { transform: scale(1); opacity: 1 } 50% { transform: scale(1.4); opacity: .65 } }
.stage-node.is-playing .dot {
  animation-duration: .5s;
  box-shadow: 0 0 22px var(--c), 0 0 44px var(--c);
}
.stage-node.is-playing .label { color: #fff; background: rgba(251,191,36,.35); }
/* 底部频谱 */
.stage-eq {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  height: 44px; display: flex; align-items: flex-end; gap: 3px;
  z-index: 2; opacity: .9;
}
.stage-eq span {
  flex: 1; border-radius: 2px 2px 0 0;
  background: linear-gradient(to top, rgba(251,191,36,.85), rgba(251,191,36,.12));
  animation: eqBounce 1.3s ease-in-out infinite;
  transform-origin: bottom;
}
@keyframes eqBounce { 0%,100% { transform: scaleY(.18) } 50% { transform: scaleY(1) } }
/* 案例精选条 */
.viz-cases { margin-top: 16px; }
.viz-cases .vc-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.03); border-radius: 6px;
  transition: border-color .2s, background .2s;
}
.viz-cases .vc-item:hover { border-color: rgba(251,191,36,.4); background: rgba(251,191,36,.05); }
.viz-cases .vc-thumb {
  width: 64px; height: 48px; border-radius: 4px; object-fit: cover; flex-shrink: 0;
  background: rgba(255,255,255,.06);
}
.viz-cases .vc-title { font-size: 13px; color: rgba(255,255,255,.85); line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.viz-cases .vc-meta { font-size: 10px; color: rgba(255,255,255,.4); font-family: var(--font-display); letter-spacing: .1em; margin-top: 2px; }

/* ============================================================
   激进动效 · 全局
   ============================================================ */

/* 顶部滚动进度条 */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, #2563eb, #3b82f6, #35e0ff);
  box-shadow: 0 0 10px rgba(53,224,255,0.6);
  z-index: 100; pointer-events: none;
}

/* Hero 鼠标跟随光斑（探照灯） */
.hero-spotlight {
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 40%), rgba(59,130,246,0.13), transparent 65%);
  opacity: 0; transition: opacity 0.5s ease;
}
[data-hero]:hover .hero-spotlight { opacity: 1; }

/* Hero 标题渐次浮现（加载即播） */
.hero-line { animation: hero-line-in 0.9s cubic-bezier(0.16,1,0.3,1) both; }
.hero-line:nth-child(1) { animation-delay: 0.08s; }
.hero-line:nth-child(2) { animation-delay: 0.20s; }
.hero-line:nth-child(3) { animation-delay: 0.34s; }
@keyframes hero-line-in {
  from { opacity: 0; transform: translateY(30px); filter: blur(10px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* 视差元素：JS 直接写 transform，禁用过渡避免拖影 */
[data-parallax] { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .hero-line { animation: none; }
  #scroll-progress { display: none; }
}
