/* ==========================================================================
   机场大全 (jichangdaquan.homes) — 和風・制御盤 (Wafu Control Panel) Design System
   Dark Indigo / Seigaiha Pattern / Gold & Cyan & Crimson Telemetry UI
   ========================================================================== */

:root {
  --bg-canvas: #080d18;
  --bg-sidebar: #0b1120;
  --bg-panel: #0e1628;
  --bg-panel-alt: #111c32;
  --bg-panel-hover: #14223d;
  --bg-nav-active: #1e3b62;
  --bg-input: #0a101e;

  --border-line: #1c2d48;
  --border-strong: #2b456d;
  --border-subtle: rgba(43, 69, 109, 0.45);

  --text-primary: #e8eff8;
  --text-secondary: #9fb2ce;
  --text-muted: #6c809e;

  --cyan: #38bdf8;
  --cyan-bright: #7dd3fc;
  --cyan-dim: rgba(56, 189, 248, 0.14);
  --cyan-border: rgba(56, 189, 248, 0.35);

  --gold: #d4a64a;
  --gold-bright: #ecc56d;
  --gold-dim: rgba(212, 166, 74, 0.14);
  --gold-border: rgba(212, 166, 74, 0.38);

  --crimson: #c9384a;
  --crimson-bright: #e84d60;
  --crimson-dim: rgba(201, 56, 74, 0.16);
  --crimson-border: rgba(201, 56, 74, 0.42);

  --emerald: #34d399;
  --track-bg: #1a2438;

  --sidebar-width: 236px;
  --header-height: 64px;
  --bottom-bar-height: 6px;

  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;

  --shadow-panel: 0 10px 28px rgba(2, 6, 16, 0.48);
  --shadow-modal: 0 24px 64px rgba(0, 0, 0, 0.72);
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 6px;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--bottom-bar-height);
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

a:hover {
  color: var(--cyan-bright);
}

button {
  font-family: inherit;
  cursor: pointer;
}

img,
svg {
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   App Frame: Fixed Left Sidebar + Right Control Panel Workspace
   ========================================================================== */

.app-layout {
  display: flex;
  min-height: calc(100vh - var(--bottom-bar-height));
}

/* Left Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: var(--bottom-bar-height);
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-line);
  display: flex;
  flex-direction: column;
  z-index: 40;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  min-height: var(--header-height);
  border-bottom: 1px solid var(--border-line);
  color: var(--text-primary);
}

.sidebar-brand:hover {
  color: var(--text-primary);
}

.torii-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: rgba(201, 56, 74, 0.08);
  border: 1px solid rgba(201, 56, 74, 0.28);
  border-radius: var(--radius-sm);
}

.torii-mark svg {
  width: 28px;
  height: 28px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-primary);
}

.brand-text small {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--gold);
  font-family: var(--font-mono);
  margin-top: 3px;
}

.sidebar-nav {
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.sidebar-nav-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
  padding: 4px 12px 8px;
  font-family: var(--font-mono);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-xs);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-left: 2px solid transparent;
  position: relative;
}

.nav-item::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--gold);
  flex-shrink: 0;
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.nav-item:hover {
  background: rgba(30, 59, 98, 0.45);
  color: var(--text-primary);
}

.nav-item.active {
  background: linear-gradient(90deg, #1f3d67 0%, rgba(25, 48, 82, 0.72) 100%);
  color: #ffffff;
  font-weight: 600;
  border-left-color: var(--cyan);
}

.nav-item.active::before {
  background: var(--gold-bright);
  transform: scale(1.15);
}

.nav-badge {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 1px 6px;
  border-radius: var(--radius-xs);
  background: rgba(56, 189, 248, 0.12);
  color: var(--cyan);
  border: 1px solid rgba(56, 189, 248, 0.22);
}

.nav-badge.alert {
  background: var(--crimson-dim);
  color: var(--crimson-bright);
  border-color: var(--crimson-border);
}

.sidebar-status {
  margin: 10px 12px 16px;
  padding: 12px;
  background: var(--bg-panel);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-xs);
}

.sidebar-status-title {
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-status-title span:last-child {
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.status-mini-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.status-mini-row:last-child {
  margin-bottom: 0;
}

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 6px;
}

.dot-cyan { background: var(--cyan); box-shadow: 0 0 8px rgba(56, 189, 248, 0.6); }
.dot-gold { background: var(--gold); box-shadow: 0 0 8px rgba(212, 166, 74, 0.55); }
.dot-crimson { background: var(--crimson-bright); box-shadow: 0 0 8px rgba(232, 77, 96, 0.6); }

/* Right Main Workspace */
.workspace {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Top Header with Authentic Seigaiha (青海波) Wave Motif */
.top-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: var(--header-height);
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background-color: #090f1d;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='32' viewBox='0 0 64 32'%3E%3Cg fill='none' stroke='%23233658' stroke-width='1.1' opacity='0.52'%3E%3Cpath d='M0 32a16 16 0 0 1 32 0M32 32a16 16 0 0 1 32 0M16 16a16 16 0 0 1 32 0M-16 16a16 16 0 0 1 32 0M48 16a16 16 0 0 1 32 0'/%3E%3Cpath d='M6 32a10 10 0 0 1 20 0M38 32a10 10 0 0 1 20 0M22 16a10 10 0 0 1 20 0'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  border-bottom: 1px solid var(--border-line);
  backdrop-filter: blur(8px);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  background: var(--bg-panel);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
}

.header-title-wrap {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.header-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-shadow: 0 1px 12px rgba(212, 166, 74, 0.2);
}

.header-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.version-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--cyan);
  padding: 4px 10px;
  background: rgba(10, 18, 34, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: var(--radius-xs);
  letter-spacing: 0.05em;
}

.circle-action {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #17243b;
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.circle-action:hover {
  background: var(--bg-nav-active);
  border-color: var(--cyan);
  color: var(--cyan-bright);
  transform: translateY(-1px);
}

.circle-action svg {
  width: 18px;
  height: 18px;
}

.action-count {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--crimson);
  color: #fff;
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #090f1d;
}

/* Main Content Container */
.main-container {
  flex: 1;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 26px 28px 56px;
}

/* ==========================================================================
   Hero & Section Headers
   ========================================================================== */

.hero-board {
  background: linear-gradient(135deg, rgba(16, 28, 52, 0.96) 0%, rgba(11, 18, 33, 0.98) 65%, rgba(25, 19, 34, 0.95) 100%);
  border: 1px solid var(--border-strong);
  border-top: 2px solid var(--gold);
  border-radius: var(--radius-xs);
  padding: 28px 30px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-panel);
  position: relative;
  overflow: hidden;
}

.hero-board::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.11) 0%, transparent 70%);
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--crimson);
}

.hero-board h1 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.28;
  font-weight: 800;
  color: #f4f8ff;
  letter-spacing: 0.02em;
}

.hero-lead {
  margin: 0 0 20px;
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 840px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* KPI Strip */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.kpi-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-xs);
  padding: 16px 18px;
  position: relative;
}

.kpi-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--cyan);
}

.kpi-card.gold::before { background: var(--gold); }
.kpi-card.crimson::before { background: var(--crimson); }
.kpi-card.indigo::before { background: #60a5fa; }

.kpi-label {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.kpi-value {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 4px 0 2px;
}

.kpi-note {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Section Heading */
.section-block {
  margin-bottom: 36px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-line);
  flex-wrap: wrap;
}

.section-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-head h2::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--gold);
  flex-shrink: 0;
}

.section-head p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

.section-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--cyan);
  white-space: nowrap;
}

/* ==========================================================================
   Signature Wafu Telemetry Cards (Directly Echoing Uploaded Control Panel)
   ========================================================================== */

.telemetry-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.telemetry-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.telemetry-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-xs);
  padding: 18px 20px;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.telemetry-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-panel-hover);
}

.telemetry-card.status-running {
  border-left: 3px solid var(--cyan);
}

.telemetry-card.status-standby {
  border-left: 3px solid var(--gold);
}

.telemetry-card.status-alert {
  border-left: 3px solid var(--crimson);
}

.telemetry-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.telemetry-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.airport-crest {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-xs);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
  background: #14223b;
  border: 1px solid var(--border-strong);
  color: var(--gold-bright);
}

.airport-crest.cyan { color: var(--cyan); border-color: var(--cyan-border); background: var(--cyan-dim); }
.airport-crest.gold { color: var(--gold-bright); border-color: var(--gold-border); background: var(--gold-dim); }
.airport-crest.crimson { color: var(--crimson-bright); border-color: var(--crimson-border); background: var(--crimson-dim); }

.telemetry-name {
  min-width: 0;
}

.telemetry-name h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.telemetry-name small {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.rank-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-xs);
  background: rgba(212, 166, 74, 0.16);
  color: var(--gold-bright);
  border: 1px solid var(--gold-border);
}

.status-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-label.running { color: var(--cyan); }
.status-label.standby { color: var(--gold-bright); }
.status-label.alert { color: var(--crimson-bright); }

/* Horizontal Signature Progress Bar (Exact Screenshot Motif) */
.meter-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.meter-track {
  width: 100%;
  height: 6px;
  background: var(--track-bg);
  border-radius: 1px;
  overflow: hidden;
  position: relative;
}

.meter-fill {
  height: 100%;
  border-radius: 1px;
  transition: width 0.4s ease;
}

.meter-fill.running { background: linear-gradient(90deg, #0ea5e9, #38bdf8); }
.meter-fill.standby { background: linear-gradient(90deg, #b8892d, #e0b354); }
.meter-fill.alert { background: linear-gradient(90deg, #a82738, #dc3c50); }

.meter-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.telemetry-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px 12px;
  background: rgba(8, 13, 24, 0.65);
  border: 1px solid rgba(28, 45, 72, 0.7);
  border-radius: var(--radius-xs);
  font-size: 12px;
}

.spec-cell span {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
}

.spec-cell strong {
  color: var(--text-primary);
  font-weight: 600;
}

.spec-cell strong.price-accent {
  color: var(--gold-bright);
  font-family: var(--font-mono);
}

.telemetry-desc {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-chip {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  background: rgba(25, 42, 71, 0.72);
  border: 1px solid var(--border-line);
  color: var(--text-secondary);
}

.tag-chip.cyan { background: var(--cyan-dim); border-color: var(--cyan-border); color: var(--cyan-bright); }
.tag-chip.gold { background: var(--gold-dim); border-color: var(--gold-border); color: var(--gold-bright); }
.tag-chip.crimson { background: var(--crimson-dim); border-color: var(--crimson-border); color: var(--crimson-bright); }

.card-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

/* ==========================================================================
   Buttons & Pills
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-strong);
  background: var(--bg-panel-alt);
  color: var(--text-primary);
  white-space: nowrap;
  transition: all 0.18s ease;
}

.btn:hover {
  border-color: var(--cyan);
  color: var(--cyan-bright);
  background: var(--bg-nav-active);
}

.btn-primary {
  background: linear-gradient(135deg, #1d4e89 0%, #153661 100%);
  border-color: var(--cyan);
  color: #ffffff;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2260a8 0%, #1b457c 100%);
  color: #ffffff;
}

.btn-gold {
  background: linear-gradient(135deg, #a67c2e 0%, #866120 100%);
  border-color: var(--gold-bright);
  color: #fffaf0;
}

.btn-gold:hover {
  background: linear-gradient(135deg, #bd8f37 0%, #997026 100%);
  color: #ffffff;
}

.btn-crimson {
  background: linear-gradient(135deg, #b83041 0%, #8c202e 100%);
  border-color: var(--crimson-bright);
  color: #ffffff;
}

.btn-crimson:hover {
  background: linear-gradient(135deg, #cf394c 0%, #a52838 100%);
  color: #ffffff;
}

.btn-sm {
  padding: 6px 11px;
  font-size: 12px;
}

.btn-compare-toggle.selected {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--gold-bright);
}

/* Coupon Pill */
.coupon-box {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.coupon-code {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  background: var(--gold-dim);
  border: 1px dashed var(--gold);
  color: var(--gold-bright);
}

.btn-copy {
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--radius-xs);
  background: #162640;
  border: 1px solid var(--border-strong);
  color: var(--cyan);
}

.btn-copy:hover {
  background: var(--cyan);
  color: #06101f;
  border-color: var(--cyan);
}

/* Filter Chips */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.filter-chip {
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-xs);
  background: var(--bg-panel);
  border: 1px solid var(--border-line);
  color: var(--text-secondary);
  transition: all 0.16s ease;
}

.filter-chip:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.filter-chip.active {
  background: var(--bg-nav-active);
  border-color: var(--cyan);
  color: #ffffff;
  font-weight: 600;
}

/* ==========================================================================
   Data Tables (Responsive Horizontal Scroll)
   ========================================================================== */

.table-shell {
  width: 100%;
  overflow-x: auto;
  background: var(--bg-panel);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-xs);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
  font-size: 13px;
}

.data-table th {
  text-align: left;
  padding: 12px 14px;
  background: #0a1120;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border-strong);
  white-space: nowrap;
}

.data-table td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(28, 45, 72, 0.72);
  vertical-align: middle;
  color: var(--text-secondary);
}

.data-table tbody tr:hover {
  background: rgba(25, 45, 78, 0.42);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.table-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.table-brand strong {
  color: var(--text-primary);
  font-size: 14px;
}

.table-brand small {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
}

/* ==========================================================================
   Panels, Callouts, Accordions, Interactive Tools
   ========================================================================== */

.panel-box {
  background: var(--bg-panel);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-xs);
  padding: 22px 24px;
}

.callout {
  padding: 16px 18px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-line);
  border-left: 3px solid var(--cyan);
  background: rgba(14, 24, 44, 0.85);
  margin: 16px 0;
}

.callout.gold {
  border-left-color: var(--gold);
  background: rgba(212, 166, 74, 0.07);
}

.callout.crimson {
  border-left-color: var(--crimson-bright);
  background: rgba(201, 56, 74, 0.09);
}

.callout strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.callout p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-secondary);
}

/* Interactive Budget Calculator */
.calc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.form-field label {
  display: block;
  font-size: 12px;
  color: var(--gold);
  margin-bottom: 6px;
  font-weight: 600;
}

.form-field select,
.form-field input {
  width: 100%;
  padding: 9px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xs);
  color: var(--text-primary);
  font-size: 13.5px;
  font-family: inherit;
}

.form-field select:focus,
.form-field input:focus {
  outline: none;
  border-color: var(--cyan);
}

/* Compare Selector & Matrix */
.compare-selector {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--bg-panel);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-xs);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  padding: 15px 18px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--gold);
  font-size: 18px;
  flex-shrink: 0;
}

.faq-item[open] summary {
  border-bottom: 1px solid var(--border-line);
  background: rgba(30, 59, 98, 0.35);
}

.faq-item[open] summary::after {
  content: "−";
  color: var(--cyan);
}

.faq-body {
  padding: 14px 18px 16px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.75;
}

/* Topology Flow */
.topology-flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.topology-node {
  padding: 10px 14px;
  background: #0a1120;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xs);
  display: flex;
  flex-direction: column;
  min-width: 130px;
}

.topology-node span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--gold);
}

.topology-node strong {
  font-size: 13px;
  color: var(--text-primary);
}

.topology-arrow {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-weight: 700;
}

/* AI Tools Matrix */
.ai-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.ai-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-xs);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-card:hover {
  border-color: var(--cyan-border);
  background: var(--bg-panel-hover);
}

.ai-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.ai-card h3 {
  margin: 0;
  font-size: 16px;
  color: var(--text-primary);
}

.ai-card p {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.ai-net-req {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--border-line);
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

/* Article / Prose Layout */
.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 22px;
  align-items: start;
}

.article-aside {
  position: sticky;
  top: calc(var(--header-height) + 18px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.prose-list {
  margin: 10px 0;
  padding-left: 20px;
  color: var(--text-secondary);
}

.prose-list li {
  margin-bottom: 8px;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.breadcrumb a {
  color: var(--text-secondary);
}

.breadcrumb a:hover {
  color: var(--cyan);
}

/* ==========================================================================
   Site Footer & Signature Bottom Four-Color Bar
   ========================================================================== */

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-line);
  background: #0a101d;
  padding: 28px 28px 32px;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
}

.footer-col h4 {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.08em;
}

.footer-col p {
  margin: 0 0 8px;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--cyan);
}

/* Exact Screenshot Signature: Bottom 4-Segment Wafu Color Strip */
.wafu-bottom-strip {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--bottom-bar-height);
  z-index: 60;
  display: grid;
  grid-template-columns: 24% 26% 25% 25%;
  pointer-events: none;
}

.wafu-bottom-strip span:nth-child(1) { background: #1e3a63; }
.wafu-bottom-strip span:nth-child(2) { background: #0d1424; }
.wafu-bottom-strip span:nth-child(3) { background: #c9384a; }
.wafu-bottom-strip span:nth-child(4) { background: #d4a64a; }

/* ==========================================================================
   Modals (Search & Quick Compare Drawer) + Toast
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 15, 0.78);
  backdrop-filter: blur(4px);
  z-index: 80;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 72px 16px 24px;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-panel {
  width: 100%;
  max-width: 680px;
  background: var(--bg-panel);
  border: 1px solid var(--border-strong);
  border-top: 2px solid var(--gold);
  border-radius: var(--radius-xs);
  box-shadow: var(--shadow-modal);
  overflow: hidden;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.modal-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-line);
  background: #0a1120;
}

.modal-head input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 15px;
  outline: none;
}

.modal-close {
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--bg-panel);
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
  border-radius: var(--radius-xs);
}

.modal-body {
  padding: 14px 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: #0a1120;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-xs);
  color: var(--text-primary);
}

.search-result-item:hover {
  border-color: var(--cyan);
  background: var(--bg-panel-hover);
}

.search-result-item small {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 90;
  background: #10203a;
  color: #f4f8ff;
  border: 1px solid var(--cyan);
  border-left: 4px solid var(--gold);
  padding: 11px 16px;
  border-radius: var(--radius-xs);
  font-size: 13px;
  box-shadow: var(--shadow-panel);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 35;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1100px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .telemetry-grid-3,
  .ai-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-grid { grid-template-columns: 1fr; }
  .article-aside { position: static; }
  .compare-selector { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.22s ease;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-overlay.open {
    display: block;
  }
  .workspace {
    margin-left: 0;
  }
  .menu-btn {
    display: inline-flex;
  }
  .top-header {
    padding: 0 16px;
  }
  .main-container {
    padding: 18px 16px 48px;
  }
  .telemetry-grid,
  .telemetry-grid-3,
  .ai-grid,
  .calc-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .header-subtitle {
    display: none;
  }
}

@media (max-width: 560px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .telemetry-specs { grid-template-columns: 1fr; }
  .compare-selector { grid-template-columns: 1fr; }
  .version-tag { display: none; }
}
