/* assets/css/components.css - 专题核心组件与交互模块样式 */

/* 1. 证据级别标签 */
.tag {
  font-size: 0.72rem; font-weight: 700; padding: 2px 7px;
  border-radius: var(--radius-sm); display: inline-flex; align-items: center; gap: 4px;
  white-space: nowrap; flex-shrink: 0; line-height: 1.4;
}
.tag.tA { background: rgba(34, 197, 94, 0.15); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.35); }
.tag.tB { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.35); }
.tag.tC { background: rgba(249, 115, 22, 0.15); color: #fb923c; border: 1px solid rgba(249, 115, 22, 0.35); }
.tag.tD { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.35); }

/* 2. 战略研判与高管速览卡片 */
.executive-verdict {
  background: var(--bg-surface-elevated); border: 1px solid var(--border-medium);
  border-left: 4px solid var(--nv-green); border-radius: var(--radius-md);
  padding: 18px 22px; margin-bottom: 28px; font-size: 0.95rem; color: #cbd5e1; line-height: 1.7;
}
.executive-verdict b { color: #fff; font-weight: 700; }

.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 36px;
}
.stat-card {
  background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-md);
  padding: 16px 20px; position: relative; overflow: hidden; transition: all 0.2s ease;
}
.stat-card:hover { border-color: var(--nv-green-border); transform: translateY(-2px); }
.stat-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--nv-green);
}
.stat-label { font-size: 0.75rem; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; white-space: nowrap; }
.stat-value { font-size: 1.85rem; font-weight: 800; color: #fff; font-family: var(--font-mono); margin: 3px 0; white-space: nowrap; }
.stat-unit { font-size: 0.9rem; font-weight: 600; color: var(--nv-green); margin-left: 4px; }
.stat-sub { font-size: 0.8rem; color: var(--text-secondary); white-space: nowrap; }

/* 3. 架构全景层级矩阵 (Portal Layer Map) */
.layer-map-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; margin-bottom: 40px;
}
.portal-card {
  background: var(--bg-surface); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1); text-decoration: none; position: relative;
  overflow: hidden;
}
.portal-card:hover {
  border-color: var(--nv-green); transform: translateY(-3px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.6), 0 0 15px rgba(118, 185, 0, 0.15);
}
.portal-card-badge {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700; color: var(--nv-green);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px;
  white-space: nowrap;
}
.portal-card-title {
  font-size: 1.25rem; font-weight: 700; color: #fff; margin-bottom: 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.portal-card-desc {
  font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 18px; flex-grow: 1;
}
.portal-card-meta {
  display: flex; align-items: center; gap: 8px; font-size: 0.78rem; color: var(--text-tertiary);
  padding-top: 14px; border-top: 1px solid var(--border-subtle); font-family: var(--font-mono);
}
.portal-card-arrow { color: var(--nv-green); font-weight: 800; font-size: 1.1rem; flex-shrink: 0; }

/* 4. 硅片路线图卡片 (Silicon Cards) */
.roadmap-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 20px;
}
.rm-card {
  background: var(--bg-surface); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: 22px; display: flex; flex-direction: column;
  transition: all 0.2s ease;
}
.rm-card:hover { border-color: var(--nv-green); transform: translateY(-3px); }
.rm-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; gap: 10px; }
.rm-title { font-size: 1.25rem; font-weight: 800; color: #fff; }
.rm-chips { font-size: 0.84rem; color: var(--nv-green); margin-top: 2px; }
.rm-specs { font-size: 0.85rem; margin-bottom: 16px; flex-grow: 1; }
.rm-spec-row {
  display: flex; justify-content: space-between; align-items: flex-start; padding: 6px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06); gap: 12px;
}
.rm-spec-k { color: var(--text-tertiary); font-size: 0.82rem; white-space: nowrap; flex-shrink: 0; min-width: 90px; line-height: 1.4; }
.rm-spec-v { font-family: var(--font-mono); font-weight: 600; color: #e2e8f0; text-align: right; word-break: break-word; line-height: 1.4; font-size: 0.84rem; flex-grow: 1; }
.rm-summary {
  font-size: 0.84rem; color: var(--text-secondary); line-height: 1.6;
  background: rgba(0, 0, 0, 0.35); padding: 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

/* 5. 机柜工程解剖器 (Rack Anatomy Visualizer) */
.anatomy-layout {
  display: grid; grid-template-columns: 300px 1fr; gap: 24px; margin-top: 20px;
}
.anatomy-selector { display: flex; flex-direction: column; gap: 10px; }
.rack-btn {
  background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-md);
  padding: 16px 18px; text-align: left; cursor: pointer; color: var(--text-secondary); transition: all 0.18s ease;
}
.rack-btn:hover { background: var(--bg-surface-elevated); color: #fff; border-color: var(--border-medium); }
.rack-btn.active {
  background: var(--bg-surface-elevated); border-color: var(--nv-green); color: #fff;
  box-shadow: 0 0 0 1px var(--nv-green);
}
.rack-btn-name { font-weight: 700; font-size: 1rem; color: #fff; margin-bottom: 4px; }
.rack-btn-meta { font-size: 0.78rem; color: var(--text-tertiary); font-family: var(--font-mono); }

.rack-viewer {
  background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
  padding: 24px; display: grid; grid-template-columns: 220px 1fr; gap: 24px;
}
.rack-chassis {
  background: #090c12; border: 2px solid #2a374d; border-radius: var(--radius-md);
  padding: 10px 8px; display: flex; flex-direction: column; gap: 4px; box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.8);
}
.rack-chassis-label {
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-tertiary); text-align: center;
  border-bottom: 1px solid var(--border-subtle); padding-bottom: 6px; margin-bottom: 6px; text-transform: uppercase;
}
.rack-layer {
  padding: 7px 8px; border-radius: 4px; font-size: 0.74rem; font-weight: 600; text-align: center;
  color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8); cursor: pointer; transition: 0.15s;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.rack-layer:hover { filter: brightness(1.25); transform: scale(1.02); }

.rack-details { display: flex; flex-direction: column; justify-content: space-between; }
.rd-title { font-size: 1.35rem; font-weight: 800; color: #fff; margin-bottom: 4px; }
.rd-badge { display: inline-block; font-size: 0.8rem; color: var(--nv-green); font-weight: 700; margin-bottom: 16px; }
.rd-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; }
.rd-box {
  background: var(--bg-surface-elevated); padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}
.rd-box-label { font-size: 0.74rem; color: var(--text-tertiary); text-transform: uppercase; }
.rd-box-val { font-size: 0.92rem; font-weight: 600; color: #fff; font-family: var(--font-mono); margin-top: 3px; }
.rd-drawbacks {
  background: rgba(239, 68, 68, 0.08); border-left: 3px solid #ef4444;
  padding: 12px 16px; font-size: 0.84rem; color: #fca5a5; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* 6. 表格与对比组件 */
.power-comparison {
  margin-top: 20px; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border-subtle); background: var(--bg-surface);
}
table.data-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; text-align: left; }
table.data-table th {
  background: var(--bg-surface-elevated); color: var(--text-secondary);
  font-weight: 600; padding: 14px 18px; border-bottom: 1px solid var(--border-subtle);
}
table.data-table td { padding: 14px 18px; border-bottom: 1px solid var(--border-subtle); color: #cbd5e1; }
table.data-table tr:last-child td { border-bottom: none; }
table.data-table tr:hover { background: rgba(255, 255, 255, 0.02); }
.col-adv { color: var(--nv-green) !important; font-weight: 600; }

/* 7. 配比模拟器 (AI Factory Sizing Simulator) */
.calc-container {
  background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
  padding: 28px; margin-top: 20px;
}
.calc-inputs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 28px; }
.calc-field label { display: block; font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 8px; font-weight: 600; }
.calc-field select, .calc-field input {
  width: 100%; background: var(--bg-surface-elevated); border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm); padding: 10px 14px; color: #fff; font-size: 0.95rem; font-family: inherit; outline: none;
}
.calc-field select:focus, .calc-field input:focus { border-color: var(--nv-green); }
.calc-outputs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.calc-metric-box {
  background: var(--bg-surface-elevated); border: 1px solid var(--border-subtle); border-radius: var(--radius-md);
  padding: 16px; text-align: center;
}
.calc-metric-label { font-size: 0.74rem; color: var(--text-tertiary); text-transform: uppercase; margin-bottom: 4px; }
.calc-metric-num { font-size: 1.6rem; font-weight: 800; color: #fff; font-family: var(--font-mono); }
.calc-metric-unit { font-size: 0.82rem; color: var(--nv-green); margin-left: 2px; }
.calc-metric-sub { font-size: 0.76rem; color: var(--text-secondary); margin-top: 4px; }

/* 8. GTC 档案时间线 (GTC Archive Timeline) */
.gtc-timeline { position: relative; padding-left: 36px; margin-top: 24px; }
.gtc-timeline::before {
  content: ""; position: absolute; left: 11px; top: 12px; bottom: 12px; width: 2px; background: var(--border-subtle);
}
.gtc-item { position: relative; margin-bottom: 28px; }
.gtc-item::before {
  content: ""; position: absolute; left: -31px; top: 18px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--bg-primary); border: 2px solid var(--nv-green); box-shadow: 0 0 8px var(--nv-green);
}
.gtc-card {
  background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-md);
  padding: 20px 24px; transition: 0.15s;
}
.gtc-card:hover { border-color: var(--border-medium); }
.gtc-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; flex-wrap: wrap; gap: 8px; }
.gtc-title { font-size: 1.15rem; font-weight: 700; color: #fff; }
.gtc-date { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-tertiary); }
.gtc-hardware { font-size: 0.86rem; color: #38bdf8; font-weight: 600; margin-bottom: 8px; }
.gtc-highlights { font-size: 0.88rem; color: #cbd5e1; line-height: 1.65; margin-bottom: 12px; }
.gtc-reality {
  background: rgba(0, 0, 0, 0.35); border-left: 3px solid #fb923c;
  padding: 10px 14px; font-size: 0.82rem; color: #fed7aa; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* 9. 生态穿透网格 (Ecosystem Grid) */
.eco-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 20px; }
.eco-card {
  background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 22px;
}
.eco-card h3 {
  font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle); padding-bottom: 10px;
}
.eco-list { list-style: none; }
.eco-list li { margin-bottom: 12px; font-size: 0.86rem; line-height: 1.55; }
.eco-list li b { color: #fff; font-size: 0.92rem; }
.eco-ticker {
  font-family: var(--font-mono); font-size: 0.74rem; background: var(--bg-surface-elevated);
  padding: 1px 5px; border-radius: 3px; color: var(--nv-green); border: 1px solid var(--border-subtle); margin-left: 6px;
}
.eco-link-note { font-size: 0.78rem; color: #38bdf8; font-family: var(--font-mono); margin-top: 3px; }

/* 10. 全局快速检索浮层 (Global Spotlight Search Modal) */
.search-modal-backdrop {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(8px);
  z-index: 1000; display: none; align-items: flex-start; justify-content: center;
  padding-top: 12vh;
}
.search-modal-backdrop.open { display: flex; }
.search-modal {
  background: var(--bg-surface-elevated); border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg); width: 100%; max-width: 620px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 20px rgba(118, 185, 0, 0.2);
  overflow: hidden; display: flex; flex-direction: column;
}
.modal-search-box {
  display: flex; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border-subtle);
  gap: 12px; background: rgba(0, 0, 0, 0.25);
}
.modal-search-box input {
  flex: 1; background: transparent; border: none; outline: none;
  font-size: 1.1rem; color: #fff; font-family: inherit;
}
.modal-search-results { max-height: 420px; overflow-y: auto; padding: 10px; }
.search-result-item {
  padding: 12px 14px; border-radius: var(--radius-sm); text-decoration: none; display: block;
  transition: all 0.15s ease; border: 1px solid transparent;
}
.search-result-item:hover, .search-result-item.selected {
  background: var(--bg-surface); border-color: var(--border-subtle);
}
.sri-title { font-weight: 700; font-size: 0.95rem; color: #fff; display: flex; justify-content: space-between; }
.sri-category { font-size: 0.74rem; font-family: var(--font-mono); color: var(--nv-green); }
.sri-desc { font-size: 0.82rem; color: var(--text-secondary); margin-top: 4px; line-height: 1.45; }
.modal-search-footer {
  padding: 10px 18px; border-top: 1px solid var(--border-subtle);
  display: flex; justify-content: space-between; font-size: 0.74rem; color: var(--text-tertiary);
  background: rgba(0, 0, 0, 0.15);
}

/* 11. 芯片商用时间线 */
.tl-legend, .filter-bar {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 18px;
}
.filter-btn, .legend-chip {
  border: 1px solid var(--border-subtle); background: var(--bg-surface);
  color: var(--text-secondary); border-radius: 999px; padding: 6px 12px;
  font-size: 0.8rem; font-weight: 700; cursor: pointer; font-family: inherit;
}
.filter-btn[data-filter="in-service"] { color: #cbd5e1; }
.filter-btn[data-filter="shipping"] { color: #4ade80; }
.filter-btn[data-filter="ramping"] { color: #38bdf8; }
.filter-btn[data-filter="roadmap"] { color: #fb923c; }
.filter-btn[data-filter="concept"] { color: #c084fc; }
.filter-btn.active { color: #0b0f14; background: var(--nv-green); border-color: var(--nv-green); }
.legend-chip { cursor: default; }
.av-inservice { --av: #94a3b8; }
.av-shipping { --av: #4ade80; }
.av-ramping { --av: #38bdf8; }
.av-roadmap { --av: #fb923c; }
.av-concept { --av: #c084fc; }
.legend-chip.av-inservice { color: #cbd5e1; }
.legend-chip.av-shipping { color: #4ade80; }
.legend-chip.av-ramping { color: #38bdf8; }
.legend-chip.av-roadmap { color: #fb923c; }
.legend-chip.av-concept { color: #c084fc; }

.chip-timeline {
  list-style: none; position: relative; margin: 8px 0 36px; padding: 0;
  display: grid; gap: 0;
}
.chip-timeline::before {
  content: ""; position: absolute; left: 78px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(#4ade80, #38bdf8 55%, #fb923c 78%, #c084fc);
}
.tl-node {
  display: grid; grid-template-columns: 78px 1fr; gap: 22px; position: relative;
}
.tl-year {
  font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-tertiary);
  text-align: right; padding-top: 18px;
}
.tl-card {
  display: block; text-decoration: none; margin: 0 0 14px 14px;
  background: var(--bg-surface); border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--av, var(--nv-green)); border-radius: var(--radius-md);
  padding: 14px 16px; position: relative;
}
.tl-card::before {
  content: ""; position: absolute; left: -24px; top: 22px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--bg-primary); border: 2px solid var(--av, var(--nv-green));
}
.tl-card:hover { border-color: var(--av, var(--nv-green)); color: inherit; }
.tl-kicker { font-size: 0.74rem; font-weight: 800; color: var(--av, var(--nv-green)); letter-spacing: 0.04em; }
.tl-name { color: #fff; font-size: 1.12rem; font-weight: 800; margin-top: 2px; }
.tl-sku { color: var(--text-secondary); font-size: 0.82rem; margin: 2px 0 6px; }
.tl-note { color: #cbd5e1; font-size: 0.84rem; line-height: 1.55; }
.avail-badge {
  display: inline-flex; align-items: center; font-size: 0.72rem; font-weight: 800;
  color: var(--av, var(--nv-green)); border: 1px solid var(--av, var(--nv-green));
  border-radius: 999px; padding: 2px 8px; white-space: nowrap;
}

.tl-strip {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-bottom: 28px;
}
.tl-pill {
  display: flex; flex-direction: column; gap: 2px; min-width: 0;
  background: var(--bg-surface); border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--av, var(--nv-green)); border-radius: var(--radius-md);
  padding: 10px 10px 12px; text-decoration: none;
}
.tl-pill span { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-tertiary); }
.tl-pill b { color: #fff; font-size: 0.92rem; }
.tl-pill em { font-style: normal; font-size: 0.72rem; font-weight: 700; color: var(--av, var(--nv-green)); }
.tl-pill:hover { border-color: var(--av, var(--nv-green)); }

.arch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 28px; }
.arch-card {
  background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 16px 18px;
}
.arch-card h2 { font-size: 1rem; color: #fff; margin-bottom: 8px; }
.arch-card li { margin: 0 0 8px 18px; color: var(--text-secondary); font-size: 0.86rem; line-height: 1.55; }

.read-order { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 28px; }
.read-step {
  background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-md);
  padding: 12px; text-decoration: none; display: flex; flex-direction: column; gap: 4px; min-height: 100%;
}
.read-step b { color: #fff; font-size: 0.88rem; }
.read-step span { color: var(--text-secondary); font-size: 0.78rem; line-height: 1.45; }
.read-index { font-family: var(--font-mono); color: var(--nv-green); font-size: 0.72rem; font-weight: 800; }

.section-block { margin-top: 34px; }
.section-block h2 { font-size: 1.35rem; color: #fff; margin-bottom: 8px; }
.section-lead { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.65; margin-bottom: 14px; }
.step-list { display: grid; gap: 10px; }
.step-item {
  display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: start;
  background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 14px;
}
.step-no { font-family: var(--font-mono); color: var(--nv-green); font-weight: 800; font-size: 1.1rem; }
.step-item h3 { color: #fff; font-size: 1rem; margin-bottom: 4px; }
.step-item p, .plain-list li { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.6; }
.plain-list { padding-left: 18px; }
.plain-list li { margin-bottom: 8px; }

.ladder { display: grid; gap: 10px; }
.ladder-item {
  display: grid; grid-template-columns: 180px 1fr; gap: 14px;
  background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 14px 16px;
}
.ladder-band { color: #fff; font-weight: 800; }
.ladder-fit { color: var(--nv-green); font-size: 0.82rem; font-weight: 700; margin-top: 4px; }
.ladder-item p { color: var(--text-secondary); font-size: 0.86rem; line-height: 1.55; }

.partner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.partner-card {
  background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 16px;
}
.partner-card h3 { color: #fff; font-size: 1.05rem; }
.partner-role { color: var(--nv-green); font-size: 0.8rem; font-weight: 700; margin: 4px 0 8px; }
.partner-card p, .partner-card li { color: var(--text-secondary); font-size: 0.84rem; line-height: 1.55; }
.partner-card li { margin: 0 0 6px 16px; }
.evidence-note { margin-top: 10px; color: #94a3b8; font-size: 0.78rem; }

.glossary-layout { display: grid; grid-template-columns: 220px 1fr; gap: 22px; align-items: start; }
.glossary-side { position: sticky; top: 116px; display: flex; flex-direction: column; gap: 6px; }
.glossary-side a {
  color: var(--text-secondary); background: var(--bg-surface); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm); padding: 8px 10px; font-size: 0.84rem; font-weight: 700; text-decoration: none;
}
.glossary-side a:hover { color: #fff; border-color: var(--nv-green-border); }
.term-search {
  width: 100%; background: var(--bg-surface-elevated); border: 1px solid var(--border-medium);
  color: #fff; border-radius: var(--radius-sm); padding: 10px 12px; font: inherit; margin-bottom: 12px;
}
.term-group { margin-bottom: 26px; }
.term-group h2 { color: #fff; font-size: 1.2rem; margin-bottom: 10px; }
.term-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.term-card {
  background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 14px 16px;
}
.term-card h3 { color: #fff; font-size: 1rem; }
.term-aka { color: var(--text-tertiary); font-size: 0.76rem; margin: 2px 0 8px; }
.term-plain { color: #e2e8f0; font-size: 0.9rem; line-height: 1.55; margin-bottom: 8px; }
.term-card p { color: var(--text-secondary); font-size: 0.84rem; line-height: 1.6; }
.term-use { margin-top: 8px; padding-top: 8px; border-top: 1px dashed rgba(255,255,255,0.08); color: #cbd5e1; font-size: 0.82rem; }
.callout {
  background: rgba(56, 189, 248, 0.08); border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-md); padding: 14px 16px; color: #dbeafe; font-size: 0.88rem; line-height: 1.65; margin: 16px 0;
}
.formula-box {
  font-family: var(--font-mono); background: #090c12; border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); padding: 14px 16px; color: #e2e8f0; font-size: 0.84rem; line-height: 1.6;
}

/* 12. 回到顶部按钮 */
#top-btn {
  position: fixed; right: 24px; bottom: 24px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--nv-green); color: #0b0f14; border: none; cursor: pointer; display: flex;
  align-items: center; justify-content: center; font-weight: 900; font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(118, 185, 0, 0.4); opacity: 0; pointer-events: none; transition: all 0.2s ease; z-index: 80;
}
#top-btn.show { opacity: 1; pointer-events: auto; }
#top-btn:hover { background: var(--nv-green-hover); transform: translateY(-3px); }

/* 响应式调整 */
@media (max-width: 980px) {
  .anatomy-layout, .rack-viewer, .calc-inputs { grid-template-columns: 1fr; }
  .calc-inputs { grid-template-columns: repeat(2, 1fr); }
  .calc-outputs { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .arch-grid, .glossary-layout, .partner-grid, .term-grid { grid-template-columns: 1fr; }
  .read-order, .tl-strip { grid-template-columns: repeat(2, 1fr); }
  .ladder-item { grid-template-columns: 1fr; }
  .glossary-side { position: static; }
  .chip-timeline::before { left: 14px; }
  .tl-node { grid-template-columns: 1fr; }
  .tl-year { text-align: left; padding: 0 0 0 32px; }
  .tl-card { margin-left: 32px; }
  .tl-card::before { left: -24px; }
}
@media (max-width: 640px) {
  .calc-inputs { grid-template-columns: 1fr; }
  .calc-outputs { grid-template-columns: repeat(2, 1fr); }
  .stats-grid, .read-order, .tl-strip { grid-template-columns: 1fr; }
}
