/* ============================================================
 * 5.8GHz.cn — 科技感仪表盘风格
 * 辉光 · 网格 · 频谱可视化
 * ============================================================ */
:root {
  --bg: #070a10;
  --panel: rgba(15, 20, 30, .78);
  --panel2: rgba(22, 28, 42, .85);
  --line: #1d2636;
  --line-hi: #2b3a55;
  --txt: #e3e9f1;
  --dim: #8b98a9;
  --cyan: #22d3ee;
  --cyan-soft: rgba(34, 211, 238, .12);
  --amber: #f59e0b;
  --red: #f87171;
  --green: #34d399;
  --violet: #a78bfa;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --glow-cyan: 0 0 18px rgba(34, 211, 238, .35);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--txt);
  font: 15px/1.7 "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  overflow-x: hidden;
}
/* 网格 + 辉光背景 */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1100px 520px at 72% -8%, rgba(34, 211, 238, .10), transparent 60%),
    radial-gradient(900px 480px at 8% 108%, rgba(167, 139, 250, .07), transparent 60%),
    linear-gradient(rgba(148, 163, 184, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .05) 1px, transparent 1px);
  background-size: auto, auto, 46px 46px, 46px 46px;
  mask-image: radial-gradient(ellipse 120% 90% at 50% 0%, #000 55%, transparent 100%);
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
a { color: var(--cyan); text-decoration: none; }
.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.dim { color: var(--dim); }
::selection { background: rgba(34, 211, 238, .3); }

/* 滚动条 */
.table-wrap::-webkit-scrollbar { height: 8px; width: 8px; }
.table-wrap::-webkit-scrollbar-track { background: transparent; }
.table-wrap::-webkit-scrollbar-thumb { background: #243048; border-radius: 4px; }
.table-wrap::-webkit-scrollbar-thumb:hover { background: var(--cyan); }

/* ---------- 头部 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 10, 16, .82); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header::after {
  content: ""; display: block; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, .55) 30%, rgba(167, 139, 250, .45) 70%, transparent);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 58px; }
.logo {
  font-family: var(--mono); font-size: 21px; font-weight: 800; color: var(--txt);
  letter-spacing: .5px; text-shadow: 0 0 24px rgba(34, 211, 238, .45);
}
.logo span {
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  color: var(--dim); font-size: 13px; padding: 6px 13px; border-radius: 6px;
  border: 1px solid transparent; white-space: nowrap; transition: .15s;
  font-family: var(--mono); letter-spacing: .5px;
}
.nav a:hover { color: var(--cyan); text-shadow: var(--glow-cyan); }
.nav a.active {
  color: var(--cyan); background: var(--cyan-soft);
  border-color: rgba(34, 211, 238, .4); text-shadow: 0 0 10px rgba(34, 211, 238, .55);
}

/* ---------- 状态条 ---------- */
.status-bar {
  border-bottom: 1px solid var(--line);
  background: rgba(7, 10, 16, .55);
  font-family: var(--mono); font-size: 11px; letter-spacing: 1.2px; color: var(--dim);
}
.status-inner { display: flex; align-items: center; gap: 26px; height: 32px; }
.st-item { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.st-item .live-dot { width: 5px; height: 5px; }
.st-green { color: var(--green); }
.st-right { margin-left: auto; color: var(--cyan); font-variant-numeric: tabular-nums; }

/* ---------- Hero ---------- */
.hero { padding: 60px 0 36px; position: relative; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 3px;
  color: var(--cyan); border: 1px solid rgba(34, 211, 238, .35);
  background: rgba(34, 211, 238, .06);
  padding: 4px 12px; margin-bottom: 22px; border-radius: 4px;
  box-shadow: inset 0 0 18px rgba(34, 211, 238, .06);
}
.live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 8px var(--green); animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: .25; } }
.hero h1 {
  font-size: clamp(30px, 4.8vw, 50px); line-height: 1.22; font-weight: 800;
  letter-spacing: .5px;
}
.hero h1 .grad {
  background: linear-gradient(92deg, var(--cyan) 20%, var(--violet) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 22px rgba(34, 211, 238, .35));
  font-family: var(--mono);
}
.hero-sub { max-width: 660px; color: var(--dim); margin: 20px 0 30px; font-size: 16px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 11px 26px; border: 1px solid var(--line);
  border-radius: 6px; color: var(--txt); font-size: 14px; transition: .18s;
  font-family: var(--mono); letter-spacing: 1px;
}
.btn.ghost:hover { border-color: var(--cyan); color: var(--cyan); box-shadow: var(--glow-cyan); }
.btn.primary {
  background: linear-gradient(135deg, #22d3ee, #0ea5c4); color: #04222b;
  font-weight: 700; border: none; box-shadow: 0 4px 24px rgba(34, 211, 238, .35);
}
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 6px 30px rgba(34, 211, 238, .5); }

/* 统计条 */
.hero-stats {
  display: flex; margin-top: 44px; border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; background: var(--panel); backdrop-filter: blur(8px);
}
.stat { flex: 1; padding: 18px 22px; border-right: 1px solid var(--line); position: relative; }
.stat:last-child { border-right: none; }
.stat::after {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, .5), transparent);
  opacity: 0; transition: .25s;
}
.stat:hover::after { opacity: 1; }
.stat b {
  display: block; font-family: var(--mono); font-size: 24px; font-weight: 700;
  color: #fff; text-shadow: 0 0 18px rgba(34, 211, 238, .4);
}
.stat b i { font-style: normal; font-size: 13px; color: var(--cyan); margin-left: 2px; }
.stat span { color: var(--dim); font-size: 12px; font-family: var(--mono); letter-spacing: 1px; }

/* 动态频谱柱 */
.spectrum { display: flex; gap: 7px; height: 72px; align-items: flex-end; margin-top: 38px; }
.spectrum span {
  flex: 1; height: 12%; border-radius: 2px 2px 0 0;
  background: linear-gradient(to top, rgba(34, 211, 238, .04), rgba(34, 211, 238, .12) 60%, rgba(34, 211, 238, .6));
  box-shadow: 0 0 10px rgba(34, 211, 238, .18);
  animation: eq 2.6s ease-in-out infinite; animation-delay: var(--d, 0s);
}
@keyframes eq { 0%, 100% { height: 10%; } 50% { height: var(--h, 60%); } }

/* ---------- 频谱地图 ---------- */
.ruler {
  position: relative; height: 158px; margin-top: 6px; overflow: hidden;
  background: linear-gradient(180deg, rgba(34, 211, 238, .04), rgba(34, 211, 238, 0) 70%);
  border: 1px solid var(--line); border-radius: 8px;
}
.ruler-cn {
  position: absolute; top: 22px; bottom: 30px; z-index: 1;
  background: rgba(52, 211, 153, .07);
  border-left: 1px dashed rgba(52, 211, 153, .65);
  border-right: 1px dashed rgba(52, 211, 153, .65);
}
.ruler-cn::after {
  content: "CN 5725–5850"; position: absolute; top: 3px; left: 50%; transform: translateX(-50%);
  font: 700 10px var(--mono); color: var(--green); white-space: nowrap; letter-spacing: 1px;
}
.ruler-band {
  position: absolute; height: 11px; border-radius: 2px; z-index: 2;
  top: calc(34px + var(--row) * 15px);
  background: var(--bc); opacity: .32;
  border: 1px solid var(--bc); transition: opacity .15s;
}
.ruler-band:hover { opacity: .6; }
.ruler-band span {
  position: absolute; left: 4px; top: 50%; transform: translateY(-50%);
  font: 700 9px var(--mono); color: #07131a; background: var(--bc);
  padding: 0 5px; border-radius: 2px; letter-spacing: 1px;
}
.ruler-tick {
  position: absolute; width: 3px; height: 3px; border-radius: 50%; z-index: 3;
  top: calc(38px + var(--row) * 15px);
  background: var(--bc); box-shadow: 0 0 5px var(--bc);
}
.ruler-mark {
  position: absolute; bottom: 6px; transform: translateX(-50%);
  font: 500 10px var(--mono); color: var(--dim); z-index: 4; letter-spacing: .5px;
}
.ruler::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 26px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 8%, var(--line) 92%, transparent);
}
.ruler-scan {
  position: absolute; top: 0; bottom: 0; width: 2px; z-index: 5; opacity: .75;
  background: linear-gradient(180deg, transparent, var(--cyan) 30%, var(--cyan) 70%, transparent);
  box-shadow: 0 0 14px var(--cyan); animation: scan 8s linear infinite;
}
@keyframes scan { from { left: -2px; } to { left: 100%; } }

/* ---------- 视图切换（标签页工作台） ---------- */
.view { display: none; }
.view.active { display: block; animation: viewIn .3s ease both; }
@keyframes viewIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 卡片 ---------- */
.card {
  position: relative;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 26px; margin-bottom: 30px; backdrop-filter: blur(10px);
  transition: border-color .2s;
}
.card:hover { border-color: #2a3a55; }
/* HUD 角标（左上 / 右下，悬停放大） */
.card::before, .card::after {
  content: ""; position: absolute; width: 16px; height: 16px; z-index: 1;
  pointer-events: none; border: 0 solid rgba(34, 211, 238, .55);
  transition: width .2s, height .2s;
}
.card::before {
  top: -1px; left: -1px; border-top-left-radius: 12px;
  border-top-width: 2px; border-left-width: 2px;
}
.card::after {
  bottom: -1px; right: -1px; border-bottom-right-radius: 12px;
  border-bottom-width: 2px; border-right-width: 2px;
}
.card:hover::before, .card:hover::after { width: 26px; height: 26px; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.card-head h2 { font-size: 20px; letter-spacing: .5px; }
.card-note { color: var(--dim); font-size: 13px; font-family: var(--mono); }
.foot-note {
  color: var(--dim); font-size: 13px; margin-top: 16px; line-height: 1.8;
  border-left: 2px solid var(--line-hi); padding-left: 12px;
}
.hint { color: var(--dim); font-size: 14px; margin-bottom: 10px; }

/* ---------- 工具栏 / 筛选 ---------- */
.toolbar { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font-family: var(--mono); font-size: 13px; font-weight: 700; padding: 5px 16px;
  border: 1px solid var(--line); border-radius: 4px; background: transparent; color: var(--dim);
  cursor: pointer; transition: .12s; letter-spacing: 1px;
}
.chip:hover { color: var(--txt); border-color: var(--bc, var(--cyan)); }
.chip.active {
  color: var(--bc, var(--cyan)); border-color: var(--bc, var(--cyan));
  box-shadow: inset 0 0 0 1px var(--bc, var(--cyan)), 0 0 12px color-mix(in srgb, var(--bc, var(--cyan)) 25%, transparent);
  text-shadow: 0 0 8px var(--bc, var(--cyan));
}
.toolbar-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.toolbar-right input[type="text"] {
  background: rgba(7, 10, 16, .8); border: 1px solid var(--line); border-radius: 6px;
  color: var(--txt); padding: 8px 12px; font-family: var(--mono); font-size: 13px; width: 220px;
  transition: .15s;
}
.toolbar-right input[type="text"]:focus { outline: none; border-color: var(--cyan); box-shadow: var(--glow-cyan); }
.switch { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--dim); cursor: pointer; }
.switch input { accent-color: var(--cyan); width: 15px; height: 15px; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.tbl th {
  position: sticky; top: 0; background: var(--panel2); color: var(--cyan);
  font-size: 11px; font-weight: 700; text-align: left; padding: 10px 14px;
  border-bottom: 1px solid #2b3a55; white-space: nowrap;
  font-family: var(--mono); letter-spacing: 1.5px; text-transform: uppercase;
}
.tbl td { padding: 8px 14px; border-bottom: 1px solid rgba(29, 38, 54, .6); white-space: nowrap; }
.tbl th.num, .tbl td.num { text-align: right; }
.tbl tbody tr:nth-child(even) { background: rgba(148, 163, 184, .03); }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl tbody tr { transition: background .1s; }
.tbl tbody tr:hover { background: rgba(34, 211, 238, .05); }
.imd-tbl td { font-family: var(--mono); font-size: 13px; }
.imd-tbl td:nth-child(2), .imd-tbl td:nth-child(6) { font-family: inherit; }

.band-chip {
  display: inline-block; font-family: var(--mono); font-size: 12px; font-weight: 700;
  color: var(--bc, var(--cyan)); border: 1px solid var(--bc, var(--cyan));
  border-radius: 4px; padding: 1px 7px; background: color-mix(in srgb, var(--bc, var(--cyan)) 8%, transparent);
}
.tag {
  display: inline-block; font-size: 12px; border-radius: 3px; padding: 1px 8px;
  border: 1px solid; font-family: var(--mono); letter-spacing: .5px;
}
.tag.ok   { color: var(--green); border-color: rgba(52, 211, 153, .4); background: rgba(52, 211, 153, .06); }
.tag.bad  { color: var(--red);   border-color: rgba(248, 113, 113, .5); background: rgba(248, 113, 113, .07); text-shadow: 0 0 8px rgba(248, 113, 113, .4); }
.tag.warn { color: var(--amber); border-color: rgba(245, 158, 11, .45); background: rgba(245, 158, 11, .06); }
.tag.dim  { color: var(--dim);   border-color: var(--line); }

/* ---------- IMD 计算器 ---------- */
.imd-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; }
.imd-band { margin-bottom: 14px; }
.imd-band-title {
  font-family: var(--mono); font-size: 12px; color: var(--dim); margin-bottom: 7px;
  border-left: 3px solid var(--bc, var(--cyan)); padding-left: 8px; letter-spacing: 1px;
}
.imd-ch {
  display: inline-flex; flex-direction: column; align-items: center; min-width: 60px;
  margin: 0 6px 6px 0; padding: 5px 8px; border: 1px solid var(--line); border-radius: 5px;
  background: rgba(7, 10, 16, .6); color: var(--dim); cursor: pointer; transition: .12s;
}
.imd-ch b { font-family: var(--mono); font-size: 13px; letter-spacing: 1px; }
.imd-ch i { font-family: var(--mono); font-style: normal; font-size: 11px; opacity: .65; }
.imd-ch:hover { border-color: var(--cyan); color: var(--txt); }
.imd-ch.on {
  border-color: var(--cyan); color: var(--cyan);
  background: var(--cyan-soft); box-shadow: inset 0 0 0 1px var(--cyan), 0 0 14px rgba(34, 211, 238, .25);
  text-shadow: 0 0 8px rgba(34, 211, 238, .6);
}
.verdict { border-radius: 8px; padding: 13px 16px; font-weight: 600; margin-bottom: 12px; border: 1px solid; font-size: 14px; }
.verdict.ok  { color: var(--green); border-color: rgba(52, 211, 153, .4); background: rgba(52, 211, 153, .07); box-shadow: 0 0 20px rgba(52, 211, 153, .08); }
.verdict.bad { color: var(--red);   border-color: rgba(248, 113, 113, .5); background: rgba(248, 113, 113, .08); box-shadow: 0 0 20px rgba(248, 113, 113, .1); animation: alarm .8s ease-in-out; }
@keyframes alarm { 0%, 100% { box-shadow: 0 0 20px rgba(248, 113, 113, .1); } 50% { box-shadow: 0 0 34px rgba(248, 113, 113, .35); } }
.imd-result .tbl tr.sev-severe td { background: rgba(248, 113, 113, .09); }
.imd-result .tbl tr.sev-warn td { background: rgba(245, 158, 11, .06); }

/* ---------- 推荐面板 ---------- */
.rec-panel { margin-top: 26px; border-top: 1px dashed var(--line); padding-top: 22px; }
.rec-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.rec-head h3 { font-size: 16px; }
.rec-ctl { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--dim); font-family: var(--mono); }
.rec-ctl input[type="range"] { accent-color: var(--cyan); width: 140px; }
.rec-list { display: grid; gap: 10px; }
.rec-set {
  display: flex; gap: 16px; align-items: center; background: var(--panel2);
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 16px; transition: .15s;
}
.rec-set:hover { border-color: rgba(34, 211, 238, .5); box-shadow: var(--glow-cyan); }
.rec-rank { font-family: var(--mono); font-weight: 800; color: var(--cyan); text-shadow: 0 0 10px rgba(34, 211, 238, .5); }
.rec-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.rec-meta { font-family: var(--mono); font-size: 12px; color: var(--dim); margin-top: 4px; letter-spacing: .5px; }

/* ---------- 3D 仿真 ---------- */
.sim-grid { display: grid; grid-template-columns: 1fr 280px; gap: 20px; }
.sim-viewport {
  position: relative; height: 480px; border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; touch-action: none; cursor: grab;
  background:
    radial-gradient(700px 380px at 60% 0%, rgba(34, 211, 238, .08), transparent 65%),
    radial-gradient(500px 300px at 15% 100%, rgba(167, 139, 250, .06), transparent 60%),
    linear-gradient(180deg, #0a0f18, #070a10);
}
.sim-viewport:active { cursor: grabbing; }
.sim-viewport canvas { display: block; width: 100%; height: 100%; }
.sim-loading {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--dim); font-family: var(--mono); font-size: 13px; letter-spacing: 1px;
  background: rgba(7, 10, 16, .6); z-index: 2;
}
.sim-tip {
  position: absolute; left: 12px; bottom: 10px; z-index: 2;
  color: var(--dim); font: 500 11px var(--mono); letter-spacing: 1px;
  background: rgba(7, 10, 16, .55); border: 1px solid var(--line);
  border-radius: 4px; padding: 3px 10px; pointer-events: none;
}
.sim-panel { display: flex; flex-direction: column; gap: 14px; }
.sim-rssi-box {
  position: relative;
  background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 16px;
}
.sim-dist {
  position: absolute; top: 14px; right: 14px;
  font: 600 12px var(--mono); color: var(--cyan); letter-spacing: 1px;
  border: 1px solid var(--line); border-radius: 4px; padding: 2px 8px;
  background: rgba(7, 10, 16, .55); font-variant-numeric: tabular-nums;
}
.sim-rssi-label { font: 700 11px var(--mono); color: var(--cyan); letter-spacing: 3px; }
.sim-rssi-row { display: flex; align-items: baseline; gap: 6px; margin: 4px 0 10px; }
.sim-rssi-val {
  font-family: var(--mono); font-size: 34px; font-weight: 800; color: #fff;
  text-shadow: 0 0 20px rgba(34, 211, 238, .5); font-variant-numeric: tabular-nums;
}
.sim-rssi-row i { font-style: normal; color: var(--dim); font-family: var(--mono); font-size: 13px; }
.sim-bar { height: 8px; border-radius: 4px; background: rgba(7, 10, 16, .8); border: 1px solid var(--line); overflow: hidden; }
.sim-bar div { height: 100%; width: 0; transition: width .1s linear, background .2s; }
.sim-state { font-family: var(--mono); font-size: 12px; letter-spacing: 1px; }
.sim-state.ok { color: var(--green); }
.sim-state.warn { color: var(--amber); }
.sim-state.bad { color: var(--red); }
#sim-spark {
  width: 100%; height: 56px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--panel2);
}
.sim-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sim-btn.wide { grid-column: 1 / -1; }
.sim-btn {
  font-family: var(--mono); font-size: 13px; font-weight: 600; padding: 9px 0;
  border: 1px solid var(--line); border-radius: 6px; background: transparent;
  color: var(--dim); cursor: pointer; transition: .12s; letter-spacing: 1px;
}
.sim-btn:hover { color: var(--txt); border-color: var(--cyan); }
.sim-btn.on {
  color: var(--cyan); border-color: var(--cyan);
  background: var(--cyan-soft); box-shadow: inset 0 0 0 1px var(--cyan), 0 0 12px rgba(34, 211, 238, .2);
}
.sim-panel .switch { margin: 0 2px; }

/* ---------- 页脚 ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 52px; padding: 28px 0 44px; font-size: 13px; }
.site-footer::before {
  content: ""; display: block; height: 1px; margin-top: -28px; transform: translateY(-13px);
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, .4), transparent);
}
.site-footer p { margin-bottom: 4px; }
.footer-contact { display: flex; align-items: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.footer-contact-label {
  font: 700 11px var(--mono); color: var(--cyan); letter-spacing: 3px;
  border: 1px solid rgba(34, 211, 238, .35); background: rgba(34, 211, 238, .06);
  border-radius: 4px; padding: 3px 10px;
}
.footer-contact a {
  font-family: var(--mono); font-size: 14px; color: var(--txt);
  border-bottom: 1px dashed rgba(34, 211, 238, .4); padding-bottom: 1px; transition: .15s;
}
.footer-contact a:hover {
  color: var(--cyan); border-bottom-color: var(--cyan);
  text-shadow: var(--glow-cyan);
}
.icp { margin-top: 14px; text-align: center; }
.icp a {
  font-family: var(--mono); font-size: 12px; color: var(--dim); letter-spacing: 1px;
  border-bottom: none; transition: .15s;
}
.icp a:hover { color: var(--cyan); }

/* ---------- 响应式 ---------- */
/* ---------- 开源图传硬件 ---------- */
.hw-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 26px; align-items: start; }
.hw-grid > div { min-width: 0; }          /* 允许列内链路条随容器收缩换行 */
.chain {
  display: flex; align-items: stretch; gap: 6px; flex-wrap: wrap;
  max-width: 100%; margin-bottom: 12px;
}
.chain-node {
  flex: 1 1 0; min-width: 88px; text-align: left;
  font-family: var(--mono); font-size: 13px; font-weight: 700; line-height: 1.45;
  padding: 9px 8px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--panel); color: var(--txt); letter-spacing: .5px;
}
.chain-node small { display: block; font-size: 11px; font-weight: 400; color: var(--dim); letter-spacing: 0; }
.chain-node.core { border-color: rgba(34, 211, 238, .45); background: var(--cyan-soft); }
.chain-node.out  { border-color: rgba(52, 211, 153, .45); background: rgba(52, 211, 153, .10); }
.chain-arrow {
  align-self: center; color: var(--dim); font-style: normal; flex: none;
  font-family: var(--mono); font-size: 14px;
}
.hw-meta {
  display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px;
  border: 1px dashed var(--line); border-radius: 8px; padding: 14px 6px;
}
.hw-meta-item {
  flex: 1 1 100px; text-align: left; display: flex; flex-direction: column; gap: 2px;
}
.hw-meta-item b {
  font-family: var(--mono); font-size: 24px; color: var(--cyan);
  text-shadow: var(--glow-cyan); line-height: 1.2;
}
.hw-meta-item b i { font-size: 12px; font-style: normal; }
.hw-meta-item span { font-size: 12px; color: var(--dim); letter-spacing: 1px; }
.hw-links {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px;
}
.hw-links .btn { text-align: center; padding-inline: 14px; }
.hw-links .primary { grid-column: 1 / -1; }
@media (max-width: 520px) { .hw-links { grid-template-columns: 1fr; } }

/* ---------- 微交互 ---------- */
.btn:active { transform: translateY(0) scale(.97); }
.chip:active, .imd-ch:active, .sim-btn:active, .nav a:active { transform: scale(.95); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 4px;
}

@media (max-width: 900px) {
  .imd-grid { grid-template-columns: 1fr; }
  .sim-grid { grid-template-columns: 1fr; }
  .hw-grid { grid-template-columns: 1fr; }
  .sim-viewport { height: 380px; }
  .hero { padding: 52px 0 32px; }
  .hero-stats { flex-wrap: wrap; }
  .stat { flex: 1 1 45%; }
  .stat:nth-child(2n) { border-right: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 720px) {
  .st-item:nth-child(2), .st-item:nth-child(3) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
