/* VacuumAnalyzerPro · v0.4.0
   Engineering Portal · 浅色现代工程门户风
   --------------------------------------------------------
   定位: 项目蓝图 / 子系统设计 / 路线图 / 知识库
   不再装作"运行中的车间监控"。
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ── Reset ──────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: #EEF2F7;
  color: #0F172A;
  font-family: "Inter", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01", "ss03";
  scroll-behavior: smooth;
}

/* 柔和色彩光晕 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 600px at 18% -5%, rgba(8, 145, 178, 0.08), transparent 60%),
    radial-gradient(700px 500px at 85% 0%, rgba(124, 58, 237, 0.07), transparent 60%),
    radial-gradient(600px 400px at 95% 60%, rgba(37, 99, 235, 0.04), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* subtle 网格背景 (印象上像工程绘图纸) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.025) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 80%);
}

#react-entry-point {
  position: relative;
  z-index: 1;
}

/* ── 滚动条 ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.15);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(15, 23, 42, 0.28); }

/* ── 工具 class ─────────────────────────────────────── */
.me-1 { margin-right: 0.25rem; }
.me-2 { margin-right: 0.5rem; }

.gradient-text {
  background: linear-gradient(135deg, #0891B2 0%, #2563EB 50%, #7C3AED 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.inline-code {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85em;
  background: rgba(8, 145, 178, 0.10);
  color: #0891B2;
  padding: 1px 7px;
  border-radius: 5px;
  border: 1px solid rgba(8, 145, 178, 0.20);
}

/* ── 主壳 ──────────────────────────────────────────── */
.app-shell {
  display: grid;
  grid-template-columns: 232px 1fr;
  min-height: 100vh;
}
.main-content {
  padding: 0;
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
}

/* ═════════════════════════════════════════════════════
   主侧栏
   ═════════════════════════════════════════════════════ */
.sidebar-modern {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-right: 1px solid rgba(15, 23, 42, 0.06);
  height: 100vh;
  padding: 22px 14px;
  position: sticky;
  top: 0;
}

.nav-link-modern {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 9px;
  color: #475569;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 2px;
  transition: all 0.15s ease;
  cursor: pointer;
  position: relative;
}
.nav-link-modern:hover {
  background: rgba(15, 23, 42, 0.04);
  color: #0F172A;
}
.nav-link-modern.active {
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.14), rgba(37, 99, 235, 0.08));
  color: #0891B2;
  font-weight: 600;
}
.nav-link-modern.active::before {
  content: "";
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, #0891B2, #2563EB);
}
.nav-link-modern .nav-icon {
  width: 16px;
  text-align: center;
  font-size: 14px;
  opacity: 0.85;
}
.nav-link-modern.active .nav-icon { opacity: 1; }
.nav-link-modern.disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.nav-link-modern .nav-badge {
  margin-left: auto;
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 10px;
  background: rgba(100, 116, 139, 0.14);
  color: #64748B;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ═════════════════════════════════════════════════════
   顶部条
   ═════════════════════════════════════════════════════ */
.topbar {
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 28px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 100;
}
.topbar-left {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.topbar-dot {
  font-size: 5px;
  color: #0891B2;
  margin-right: 12px;
}
.topbar-crumb-main {
  color: #0F172A;
  font-weight: 600;
  font-size: 14px;
}
.topbar-crumb-sep {
  margin: 0 10px;
  color: #94A3B8;
  font-weight: 300;
}
.topbar-crumb-sub {
  color: #64748B;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.phase-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.10), rgba(37, 99, 235, 0.08));
  border: 1px solid rgba(8, 145, 178, 0.25);
  text-decoration: none;
  transition: all 0.15s ease;
}
.phase-pill:hover {
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.16), rgba(37, 99, 235, 0.12));
  transform: translateY(-1px);
}
.phase-pill-icon { color: #0891B2; font-size: 11px; }
.phase-pill-name {
  color: #0891B2;
  font-weight: 700;
  font-size: 12px;
  font-family: "JetBrains Mono", monospace;
}
.phase-pill-desc {
  color: #475569;
  font-size: 11px;
}
.topbar-version {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: #94A3B8;
}

/* ═════════════════════════════════════════════════════
   Hero
   ═════════════════════════════════════════════════════ */
.hero-section {
  position: relative;
  padding: 64px 40px 56px;
  overflow: hidden;
}
.hero-content { max-width: 920px; position: relative; z-index: 2; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(8, 145, 178, 0.22);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  margin-bottom: 22px;
}
.hero-eyebrow-icon {
  color: #0891B2;
  font-size: 12px;
}
.hero-eyebrow-text {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  color: #0891B2;
  letter-spacing: 1.5px;
}
.hero-eyebrow-sep { color: #CBD5E1; }
.hero-eyebrow-sub {
  font-size: 11px;
  color: #475569;
  font-weight: 500;
}

.hero-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.08;
  margin: 0 0 22px;
  letter-spacing: -1.2px;
}
.hero-title-soft {
  color: #334155;
  font-weight: 600;
}
.hero-title-strong {
  background: linear-gradient(135deg, #0891B2 0%, #2563EB 45%, #7C3AED 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-title-dot {
  color: #0891B2;
}

.hero-subtitle {
  font-size: 16px;
  color: #475569;
  line-height: 1.7;
  margin: 0 0 28px;
  max-width: 760px;
}
.hero-subtitle b {
  color: #0F172A;
  font-weight: 600;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-btn {
  display: inline-flex;
  align-items: center;
  padding: 11px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.18s ease;
  cursor: pointer;
  border: none;
}
.hero-btn-primary {
  background: linear-gradient(135deg, #0891B2, #2563EB);
  color: white;
  box-shadow: 0 6px 20px -4px rgba(8, 145, 178, 0.4);
}
.hero-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -4px rgba(8, 145, 178, 0.5);
}
.hero-btn-ghost {
  background: rgba(255, 255, 255, 0.75);
  color: #334155;
  border: 1px solid rgba(15, 23, 42, 0.10);
}
.hero-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(8, 145, 178, 0.35);
  color: #0891B2;
  transform: translateY(-2px);
}

.hero-deco {
  position: absolute;
  right: -40px;
  top: 30px;
  font-size: 280px;
  color: rgba(8, 145, 178, 0.05);
  pointer-events: none;
  line-height: 1;
  z-index: 1;
}
.hero-deco-icon { display: inline-block; }

/* ═════════════════════════════════════════════════════
   工艺事实条 (5 个静态卡)
   ═════════════════════════════════════════════════════ */
.fact-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  padding: 0 40px 56px;
}
.fact-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-top: 3px solid;
  border-radius: 12px;
  padding: 18px 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: all 0.2s ease;
}
.fact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px -6px rgba(15, 23, 42, 0.10);
}
.fact-card > i[data-fact-icon] {
  font-size: 22px;
  padding-top: 4px;
  flex-shrink: 0;
}
.fact-text { flex: 1; min-width: 0; }
.fact-label {
  font-size: 10px;
  letter-spacing: 1.6px;
  color: #64748B;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 4px;
}
.fact-value {
  font-size: 20px;
  font-weight: 700;
  color: #0F172A;
  letter-spacing: -0.4px;
  font-feature-settings: "tnum" 1;
  margin-bottom: 4px;
}
.fact-detail {
  font-size: 11px;
  color: #64748B;
}

/* ═════════════════════════════════════════════════════
   Section 通用样式
   ═════════════════════════════════════════════════════ */
.page-section {
  padding: 64px 40px;
  position: relative;
  scroll-margin-top: 76px;
}
.section-head {
  margin-bottom: 36px;
  max-width: 760px;
}
.section-head-with-link {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  max-width: 100%;
}
.section-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  color: #0891B2;
  letter-spacing: 2px;
  margin-bottom: 10px;
  text-transform: uppercase;
  padding: 4px 10px;
  background: rgba(8, 145, 178, 0.08);
  border-radius: 6px;
}
.section-h2 {
  font-size: 32px;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 10px;
  letter-spacing: -0.6px;
}
.section-lead {
  font-size: 15px;
  color: #64748B;
  margin: 0;
}
.section-link {
  font-size: 13px;
  color: #0891B2;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.15s ease;
}
.section-link:hover {
  color: #0E7490;
  transform: translateX(2px);
}

/* ── Section-title (用在卡片内部) ───────────────────── */
.section-title {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 14px;
  background: linear-gradient(180deg, #0891B2, #2563EB);
  border-radius: 2px;
}

/* ═════════════════════════════════════════════════════
   子系统卡片
   ═════════════════════════════════════════════════════ */
.subsys-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1280px) {
  .subsys-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .subsys-grid { grid-template-columns: repeat(2, 1fr); }
}

.subsys-card {
  position: relative;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.22s ease;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.subsys-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px -10px rgba(15, 23, 42, 0.16);
  border-color: rgba(15, 23, 42, 0.14);
}
.subsys-top-bar {
  height: 4px;
  width: 100%;
}
.subsys-body { padding: 18px 18px 16px; }
.subsys-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.subsys-id-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.subsys-id {
  font-family: "JetBrains Mono", monospace;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 1px;
}
.subsys-icon {
  font-size: 22px;
  opacity: 0.6;
}
.subsys-name {
  font-size: 16px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 6px;
  letter-spacing: -0.2px;
}
.subsys-headline {
  font-size: 12.5px;
  color: #475569;
  line-height: 1.55;
  margin-bottom: 12px;
  min-height: 38px;
}
.subsys-why {
  font-size: 11px;
  color: #64748B;
  line-height: 1.5;
  padding: 8px 10px;
  background: rgba(15, 23, 42, 0.03);
  border-radius: 6px;
  border-left: 2px solid rgba(15, 23, 42, 0.08);
  font-style: italic;
  margin-bottom: 12px;
  min-height: 50px;
}
.subsys-why-icon {
  font-size: 9px;
  color: #94A3B8;
  margin-right: 6px;
}
.subsys-foot {
  display: flex;
  align-items: center;
  padding-top: 10px;
  border-top: 1px dashed rgba(15, 23, 42, 0.06);
}
.subsys-phase {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: #64748B;
  font-weight: 600;
}

/* ── crosscut note ──────────────────────────────────── */
.crosscut-note {
  margin-top: 24px;
  padding: 16px 22px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(124, 58, 237, 0.04));
  border: 1px dashed rgba(37, 99, 235, 0.30);
  border-radius: 12px;
}
.crosscut-note-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  font-size: 13px;
}

/* ═════════════════════════════════════════════════════
   Phase 路线图
   ═════════════════════════════════════════════════════ */
.phase-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.phase-row {
  display: flex;
  align-items: center;
  gap: 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 12px;
  padding: 16px 22px;
  transition: all 0.2s ease;
}
.phase-row:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(15, 23, 42, 0.13);
  transform: translateX(2px);
}
.phase-row-current {
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.06), rgba(37, 99, 235, 0.04));
  border-color: rgba(8, 145, 178, 0.28);
  box-shadow: 0 0 0 1px rgba(8, 145, 178, 0.15);
}
.phase-row-main { flex: 1; min-width: 0; }
.phase-row-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.phase-row-name {
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 13px;
  color: #0F172A;
  letter-spacing: 0.5px;
}
.phase-row-desc {
  font-size: 13px;
  color: #334155;
  font-weight: 600;
}
.phase-row-chip {
  margin-left: 4px;
}
.phase-row-detail {
  font-size: 11.5px;
  color: #64748B;
  margin-bottom: 10px;
}
.phase-row-bar {
  height: 5px;
  background: rgba(15, 23, 42, 0.06);
  border-radius: 3px;
  overflow: hidden;
}
.phase-row-pct {
  display: flex;
  align-items: baseline;
  font-family: "JetBrains Mono", monospace;
  min-width: 70px;
  justify-content: flex-end;
}
.phase-row-pct-num {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1px;
}
.phase-row-pct-unit {
  font-size: 13px;
  color: #94A3B8;
  margin-left: 2px;
  font-weight: 600;
}

/* ═════════════════════════════════════════════════════
   知识库速览
   ═════════════════════════════════════════════════════ */
.kb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 980px) {
  .kb-grid { grid-template-columns: repeat(2, 1fr); }
}
.kb-tile {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  position: relative;
  overflow: hidden;
}
.kb-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px -8px rgba(15, 23, 42, 0.14);
  border-color: rgba(8, 145, 178, 0.30);
}
.kb-tile-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
}
.kb-tile-body { flex: 1; min-width: 0; }
.kb-tile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}
.kb-tile-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #0F172A;
  letter-spacing: -0.2px;
}
.kb-tile-badge {
  font-size: 10px;
  color: #64748B;
  font-weight: 600;
  padding: 2px 8px;
  background: rgba(15, 23, 42, 0.04);
  border-radius: 8px;
}
.kb-tile-desc {
  font-size: 12px;
  color: #64748B;
  line-height: 1.55;
}
.kb-tile-arrow {
  position: absolute;
  right: 16px;
  bottom: 14px;
  font-size: 11px;
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.2s ease;
}
.kb-tile:hover .kb-tile-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ═════════════════════════════════════════════════════
   差异表
   ═════════════════════════════════════════════════════ */
.diff-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.diff-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.diff-table th {
  background: rgba(15, 23, 42, 0.025);
  color: #475569;
  font-weight: 700;
  font-size: 12px;
  text-align: left;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  letter-spacing: 0.3px;
}
.diff-table th.th-highlight {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(37, 99, 235, 0.06));
  color: #7C3AED;
}
.diff-table td {
  padding: 12px 18px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
  color: #334155;
  vertical-align: top;
}
.diff-table tr:last-child td {
  border-bottom: none;
}
.diff-table td.td-dim {
  color: #64748B;
  font-weight: 600;
  font-size: 12px;
  background: rgba(15, 23, 42, 0.02);
  width: 110px;
}
.diff-table td.td-highlight {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.04), rgba(37, 99, 235, 0.03));
  color: #0F172A;
  font-weight: 500;
}

/* ═════════════════════════════════════════════════════
   Footer
   ═════════════════════════════════════════════════════ */
.site-footer {
  margin-top: 24px;
  padding: 48px 40px 36px;
  background: rgba(255, 255, 255, 0.55);
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(10px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer-col-title {
  font-size: 11px;
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  color: #475569;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
}
.footer-link {
  display: block;
  font-size: 12.5px;
  color: #64748B;
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.15s ease;
}
.footer-link:hover { color: #0891B2; }
.footer-link-static {
  font-size: 12.5px;
  color: #94A3B8;
  margin-bottom: 8px;
}
.footer-brand-row {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}
.footer-logo {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, #0891B2, #2563EB);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 19px;
  color: white;
  margin-right: 12px;
  letter-spacing: -1px;
}
.footer-brand {
  font-size: 15px;
  font-weight: 700;
  color: #0F172A;
}
.footer-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: #94A3B8;
  margin-top: 2px;
}
.footer-tagline {
  font-size: 12px;
  color: #64748B;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.4px;
}

/* ═════════════════════════════════════════════════════
   Chips
   ═════════════════════════════════════════════════════ */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.chip-success { background: rgba(5, 150, 105, 0.10); color: #059669; }
.chip-warning { background: rgba(217, 119, 6, 0.10); color: #D97706; }
.chip-danger  { background: rgba(220, 38, 38, 0.10); color: #DC2626; }
.chip-info    { background: rgba(8, 145, 178, 0.10); color: #0891B2; }
.chip-purple  { background: rgba(124, 58, 237, 0.10); color: #7C3AED; }
.chip-dim     { background: rgba(100, 116, 139, 0.10); color: #64748B; }

/* ═════════════════════════════════════════════════════
   Loading
   ═════════════════════════════════════════════════════ */
._dash-loading {
  color: #0891B2 !important;
}

/* ═══════════════════════════════════════════════════════════
   知识库 (Knowledge Base) - fixed sidebar
   ═══════════════════════════════════════════════════════════ */

.kb-layout {
  position: relative;
  min-height: calc(100vh - 56px);
}

.kb-side {
  position: fixed;
  top: 56px;
  left: 232px;
  bottom: 0;
  width: 264px;
  overflow-y: auto;
  padding: 20px 4px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-right: 1px solid rgba(15, 23, 42, 0.06);
  z-index: 50;
}

.kb-main {
  margin-left: 264px;
  padding: 32px 40px 56px;
  max-width: 1080px;
  min-width: 0;
}

.kb-tree {
  padding: 0 16px;
}
.kb-tree-section {
  margin-bottom: 22px;
}
.kb-tree-group {
  font-size: 11px;
  color: #475569;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0 8px 8px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  margin-bottom: 8px;
}
.kb-tree-item {
  display: block;
  padding: 6px 10px;
  border-radius: 6px;
  color: #475569;
  text-decoration: none;
  font-size: 12px;
  margin-bottom: 1px;
  transition: all 0.15s ease;
}
.kb-tree-item:hover {
  background: rgba(15, 23, 42, 0.04);
  color: #0F172A;
}
.kb-tree-item.active {
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.15), rgba(37, 99, 235, 0.08));
  color: #0891B2;
  font-weight: 600;
  border-left: 2px solid #0891B2;
  padding-left: 8px;
}

/* Markdown 渲染区 */
.kb-md-content {
  color: #1E293B;
  line-height: 1.75;
  font-size: 14px;
}
.kb-md-content h1 {
  font-size: 28px;
  font-weight: 800;
  color: #0F172A;
  margin-top: 0;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid;
  border-image: linear-gradient(90deg, #0891B2, transparent) 1;
  letter-spacing: -0.5px;
}
.kb-md-content h2 {
  font-size: 20px;
  font-weight: 700;
  color: #0891B2;
  margin-top: 32px;
  margin-bottom: 12px;
  padding-left: 12px;
  border-left: 3px solid #0891B2;
}
.kb-md-content h3 {
  font-size: 16px;
  font-weight: 700;
  color: #2563EB;
  margin-top: 24px;
  margin-bottom: 10px;
}
.kb-md-content h4 {
  font-size: 14px;
  font-weight: 700;
  color: #7C3AED;
  margin-top: 18px;
  margin-bottom: 8px;
}
.kb-md-content p {
  margin: 10px 0;
  color: #334155;
}
.kb-md-content ul, .kb-md-content ol {
  margin: 10px 0;
  padding-left: 24px;
}
.kb-md-content li {
  margin: 4px 0;
  color: #334155;
}
.kb-md-content strong {
  color: #0F172A;
  font-weight: 700;
}
.kb-md-content em {
  color: #64748B;
  font-style: italic;
}
.kb-md-content code {
  background: rgba(8, 145, 178, 0.08);
  color: #0891B2;
  padding: 1px 6px;
  border-radius: 4px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  border: 1px solid rgba(8, 145, 178, 0.15);
}
.kb-md-content pre {
  background: #F8FAFC;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  padding: 14px 18px;
  overflow-x: auto;
  margin: 14px 0;
}
.kb-md-content pre code {
  background: transparent;
  border: none;
  color: #1E293B;
  padding: 0;
}
.kb-md-content blockquote {
  border-left: 3px solid #0891B2;
  background: rgba(8, 145, 178, 0.06);
  padding: 12px 18px;
  margin: 14px 0;
  color: #334155;
  border-radius: 0 6px 6px 0;
  font-style: italic;
}
.kb-md-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 12px;
}
.kb-md-content table th {
  background: linear-gradient(135deg, #0891B2, #2563EB);
  color: white;
  padding: 8px 12px;
  text-align: left;
  font-weight: 700;
  border: 1px solid rgba(8, 145, 178, 0.3);
}
.kb-md-content table td {
  padding: 8px 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: #334155;
  vertical-align: top;
}
.kb-md-content table tr:nth-child(even) td {
  background: rgba(15, 23, 42, 0.02);
}
.kb-md-content hr {
  border: 0;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
  margin: 28px 0;
}
.kb-md-content a {
  color: #0891B2;
  text-decoration: none;
  border-bottom: 1px dashed rgba(8, 145, 178, 0.4);
}
.kb-md-content a:hover {
  border-bottom-style: solid;
}
.kb-md-content input[type="checkbox"] {
  margin-right: 6px;
  accent-color: #0891B2;
}

/* 知识库索引页内 glass-card 沿用浅色卡 */
.glass-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  padding: 20px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.glass-card:hover {
  border-color: rgba(15, 23, 42, 0.14);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

/* ── 知识库索引页 micro-stat (复用) ───────────────── */
.micro-stat {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 12px;
  border-bottom: 1px dashed rgba(15, 23, 42, 0.06);
}
.micro-stat:last-child { border-bottom: none; }
.micro-stat .label { color: #64748B; }
.micro-stat .value {
  color: #0F172A;
  font-family: "JetBrains Mono", monospace;
  font-weight: 500;
}
.micro-stat .value.accent { color: #0891B2; }

/* ── 响应式 ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .hero-title { font-size: 40px; }
  .hero-section { padding: 48px 32px 40px; }
  .page-section { padding: 48px 32px; }
  .fact-row { grid-template-columns: repeat(2, 1fr); padding: 0 32px 40px; }
  .site-footer { padding: 36px 32px 28px; }
}
@media (max-width: 760px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar-modern { display: none; }
  .hero-title { font-size: 32px; }
  .section-h2 { font-size: 24px; }
  .fact-row { grid-template-columns: 1fr; }
}
