/* ==========================================================================
   TAG-Atlas Global Telemetry & Intelligence Suite - style.css
   Theme: TAG-Atlas 全球测绘控制台 · 证据核验增强版
   Visual: Bright & Soft Industrial Telemetry Console, Precision Hard Borders
   Version: 2026.11
   ========================================================================== */

:root {
  /* Exact User Color Palette - TAG-Atlas 全球测绘控制台 */
  --bg-primary: #F8FAFC;          /* 浅霜雪白背景 */
  --bg-surface: #FFFFFF;          /* 通透白表面 */
  --bg-secondary: #F1F5F9;
  --bg-card: #FFFFFF;
  --bg-card-subtle: #F8FAFC;
  --bg-hover: #EEF2F6;
  --bg-dark-accent: #0F172A;

  /* Typography Colors */
  --text-primary: #0F172A;        /* 深松烟墨主文字 */
  --text-secondary: #475569;      /* 板岩灰辅助文字 */
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --text-inverse: #FFFFFF;

  /* Accent & Telemetry Highlights */
  --color-primary: #0284C7;       /* 深青蓝强调色 */
  --color-primary-hover: #0369A1;
  --color-primary-soft: #E0F2FE;
  --color-amber: #F59E0B;         /* 微光琥珀橙 */
  --color-amber-soft: #FEF3C7;
  --color-teal: #0D9488;
  --color-teal-soft: #CCFBF1;
  --color-emerald: #059669;
  --color-emerald-soft: #D1FAE5;

  /* Precision Hard Borders & Dividers */
  --border-color: #CBD5E1;
  --border-light: #E2E8F0;
  --border-strong: #94A3B8;
  --border-dark: #0F172A;

  /* 7 Evidence Verification Status Tokens (Exact User Specification) */
  --status-verified: #059669;
  --status-verified-bg: #ecfdf5;
  --status-verified-border: #a7f3d0;

  --status-multi-source: #0891b2;
  --status-multi-source-bg: #ecfeff;
  --status-multi-source-border: #a5f3fc;

  --status-brand-claim: #d97706;
  --status-brand-claim-bg: #fffbeb;
  --status-brand-claim-border: #fde68a;

  --status-third-party: #2563eb;
  --status-third-party-bg: #eff6ff;
  --status-third-party-border: #bfdbfe;

  --status-conflict: #e11d48;
  --status-conflict-bg: #fff1f2;
  --status-conflict-border: #fecdd3;

  --status-outdated: #64748b;
  --status-outdated-bg: #f8fafc;
  --status-outdated-border: #cbd5e1;

  --status-unverified: #7c3aed;
  --status-unverified-bg: #f5f3ff;
  --status-unverified-border: #ddd6fe;

  /* Technical Typography Stack */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  /* Geometry & Elevation */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-telemetry: 0 0 0 1px var(--border-color), 0 4px 12px rgba(15, 23, 42, 0.05);

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --container-max: 1240px;
}

/* Base Styles & Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

/* Target scroll margin for clean anchor navigation */
[id] {
  scroll-margin-top: 88px;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: radial-gradient(circle at 1px 1px, #e2e8f0 1px, transparent 0);
  background-size: 32px 32px;
  overflow-x: hidden;
  position: relative;
}

/* Desktop Wings - Large Viewport Telemetry Borders (≥1440px) */
@media (min-width: 1440px) {
  body::before {
    content: "";
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: max(24px, calc((100vw - 1280px) / 2));
    background-image: 
      linear-gradient(to right, rgba(2, 132, 199, 0.08) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(203, 213, 225, 0.4) 1px, transparent 1px);
    background-size: 24px 24px;
    border-right: 1px dashed #cbd5e1;
    pointer-events: none;
    z-index: 10;
  }

  body::after {
    content: "";
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    width: max(24px, calc((100vw - 1280px) / 2));
    background-image: 
      linear-gradient(to left, rgba(2, 132, 199, 0.08) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(203, 213, 225, 0.4) 1px, transparent 1px);
    background-size: 24px 24px;
    border-left: 1px dashed #cbd5e1;
    pointer-events: none;
    z-index: 10;
  }
}

/* Elastic Press & Stepped Reveal */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.1s cubic-bezier(0.16, 1, 0.3, 1), background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px; /* Touch target safety */
}

/* Elastic Press Effect */
.btn:active, .calc-pill-btn:active, .region-tab-btn:active, summary:active {
  transform: scale(0.97) !important;
}

/* Stepped Reveal (Default Visible for Zero JS Reliance) */
.stepped-reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-hover);
}

img, svg {
  vertical-align: middle;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

code, kbd, samp, pre {
  font-family: var(--font-mono);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Technical Hard-Bordered Card Component */
.telemetry-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-fast);
  position: relative;
}

.telemetry-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.card-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Console Top Navigation Bar */
.console-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}

.top-telemetry-banner {
  background: var(--bg-dark-accent);
  color: #94a3b8;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 6px 0;
  border-bottom: 1px solid #1e293b;
}

.banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.banner-ticker {
  display: flex;
  align-items: center;
  gap: 16px;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ping-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 6px #10b981;
  display: inline-block;
  animation: pulse-ping 2s infinite;
}

@keyframes pulse-ping {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 36px;
  height: 36px;
  background: var(--bg-dark-accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  border: 1px solid var(--border-dark);
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-badge {
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 600;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  padding: 1px 6px;
  border-radius: var(--radius-xs);
  border: 1px solid #bae6fd;
}

.brand-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
  flex-wrap: nowrap;
}

.nav-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 12px;
  min-height: 44px; /* Touch target safety >= 44px */
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: var(--bg-secondary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--text-inverse);
  border-color: var(--text-primary);
}

.btn-primary:hover {
  background: #1e293b;
  border-color: #1e293b;
  color: var(--text-inverse);
}

.btn-outline {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-color);
}

.btn-outline:hover {
  background: var(--bg-secondary);
  border-color: var(--border-strong);
}

.btn-accent {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

.btn-accent:hover {
  background: var(--color-primary-hover);
  color: #ffffff;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-color);
  padding: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-primary);
}

/* Hero & Telemetry Bar Section */
.hero-telemetry-section {
  padding: 48px 0 32px 0;
  border-bottom: 1px solid var(--border-color);
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-primary) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.hero-heading {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.hero-heading span.gradient-text {
  background: linear-gradient(135deg, #0284c7 0%, #0d9488 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 15.5px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.highlight-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
}

.highlight-val {
  font-size: 20px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.highlight-label {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Hero Terminal Live Monitor Card */
.live-monitor-terminal {
  background: #0f172a;
  color: #f1f5f9;
  border: 1px solid #334155;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.25);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.terminal-topbar {
  background: #1e293b;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #334155;
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-dot.red { background: #ef4444; }
.terminal-dot.yellow { background: #f59e0b; }
.terminal-dot.green { background: #10b981; }

.terminal-body {
  padding: 16px;
  line-height: 1.7;
}

.terminal-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
}

.term-prompt {
  color: #38bdf8;
  font-weight: 700;
  user-select: none;
}

.term-dim {
  color: #64748b;
}

.term-success {
  color: #34d399;
}

.term-highlight {
  color: #facc15;
}

.term-badge {
  background: #334155;
  color: #93c5fd;
  padding: 1px 6px;
  border-radius: 2px;
  font-size: 11px;
}

/* Global Telemetry Live Metrics Bar */
.live-metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-top: 28px;
}

.metric-strip-item {
  padding: 16px 20px;
  border-right: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 14px;
}

.metric-strip-item:last-child {
  border-right: none;
}

.metric-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
}

.metric-strip-title {
  font-size: 11.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.metric-strip-val {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

/* Section Common Titles & Headers */
.section {
  padding: 64px 0;
  border-bottom: 1px solid var(--border-color);
}

.section-head {
  margin-bottom: 36px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-primary);
  background: var(--color-primary-soft);
  border: 1px solid #bae6fd;
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  margin-bottom: 10px;
}

.section-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 14.5px;
  color: var(--text-secondary);
  max-width: 760px;
}

/* Global Telemetry & Network Topology Visualizer */
.topology-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.region-tabs-bar {
  display: flex;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
}

.region-tab-btn {
  padding: 12px 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  background: none;
  border: none;
  border-right: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.region-tab-btn:hover {
  background: #e2e8f0;
  color: var(--text-primary);
}

.region-tab-btn.active {
  background: var(--bg-card);
  color: var(--color-primary);
  box-shadow: inset 0 -2px 0 var(--color-primary);
}

.region-nodes-grid {
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 16px;
}

.node-telemetry-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 16px;
  transition: all var(--transition-fast);
}

.node-telemetry-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.node-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.node-flag-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
}

.node-flag {
  font-size: 18px;
}

.node-asn-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-secondary);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-light);
}

.node-metrics-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
  padding: 8px 10px;
  background: var(--bg-secondary);
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.metric-pair span:first-child {
  color: var(--text-muted);
  display: block;
  font-size: 10.5px;
}

.metric-pair span:last-child {
  color: var(--text-primary);
  font-weight: 600;
}

.node-unlock-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.unlock-pill {
  font-size: 10px;
  font-family: var(--font-mono);
  padding: 1px 5px;
  border-radius: 2px;
  background: #f1f5f9;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}

.unlock-pill.success {
  background: #ecfdf5;
  color: #059669;
  border-color: #a7f3d0;
}

/* Pricing Section - 4 Verified Packages Matrix */
.pricing-matrix-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: stretch;
}

.pricing-plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-normal);
}

.pricing-plan-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.pricing-plan-card.featured {
  border: 2px solid var(--color-primary);
  box-shadow: var(--shadow-md);
}

.pricing-plan-card.highlighted {
  border: 2px solid var(--color-accent) !important;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.35), var(--shadow-lg) !important;
  transform: translateY(-4px) !important;
}

/* Habit Plan Selector Box beside Pricing */
.habit-selector-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.habit-selector-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--border-color);
}

.habit-selector-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.habit-checkboxes-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.habit-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 8px 14px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
  min-height: 44px;
}

.habit-checkbox-label:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
}

.habit-checkbox-label.active {
  border-color: var(--color-accent);
  background: #fffbeb;
  color: #b45309;
}

.habit-checkbox-label input[type="checkbox"] {
  accent-color: var(--color-accent);
  width: 17px;
  height: 17px;
  cursor: pointer;
}

.habit-disclaimer {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.habit-match-feedback {
  margin-top: 10px;
  padding: 8px 12px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-xs);
  font-size: 12.5px;
  color: #065f46;
  font-weight: 600;
  display: none;
}

.habit-match-feedback.visible {
  display: block;
}

/* Network Architecture Topology Visualizer */
.network-architecture-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 24px;
  margin-top: 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.network-svg-wrap {
  width: 100%;
  overflow-x: auto;
  padding: 12px 0;
}

.network-svg-wrap svg {
  display: block;
  width: 100%;
  min-width: 820px;
  height: auto;
}

.topology-node-hover:hover rect {
  stroke: var(--color-primary) !important;
  stroke-width: 2px !important;
  filter: drop-shadow(0 2px 6px rgba(2, 132, 199, 0.25));
}

@keyframes pulseFlow {
  0% { stroke-dashoffset: 40; }
  100% { stroke-dashoffset: 0; }
}

.flow-line {
  stroke-dasharray: 6 6;
  animation: pulseFlow 2s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .flow-line {
    animation: none !important;
    stroke-dasharray: none !important;
  }
}

.plan-ribbon {
  background: var(--color-primary);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  padding: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
}

.plan-body {
  padding: 24px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.plan-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.plan-badge-tag {
  display: inline-block;
  font-size: 11px;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 16px;
}

.plan-price-block {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--border-color);
}

.price-main {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.price-currency {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.price-number {
  font-size: 36px;
  font-weight: 900;
  font-family: var(--font-mono);
  color: var(--text-primary);
  line-height: 1;
}

.price-cycle {
  font-size: 12.5px;
  color: var(--text-muted);
}

.price-equiv {
  font-size: 11.5px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: 4px;
}

.plan-specs-list {
  list-style: none;
  margin-bottom: 24px;
  flex: 1;
}

.spec-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  line-height: 1.5;
}

.spec-item svg {
  color: var(--color-emerald);
  flex-shrink: 0;
  margin-top: 2px;
}

.plan-evidence-citation {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xs);
  padding: 8px 10px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-bottom: 20px;
}

.citation-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.citation-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Evidence Citation Badges & Native Evidence Link Tags */
.evidence-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--color-primary);
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  padding: 1px 6px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.evidence-badge:hover {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

/* 7-State Evidence Tag (<a class="evidence-tag ...">) */
.evidence-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: var(--radius-xs);
  text-decoration: none;
  border: 1px solid transparent;
  vertical-align: baseline;
  transition: all var(--transition-fast);
  margin-left: 3px;
  margin-right: 3px;
  line-height: 1.4;
  white-space: nowrap;
}

.evidence-tag::before {
  content: "•";
  font-size: 13px;
  line-height: 1;
}

.evidence-tag.verified {
  background: var(--status-verified-bg);
  color: var(--status-verified);
  border-color: var(--status-verified-border);
}
.evidence-tag.verified:hover {
  background: #d1fae5;
  border-color: #6ee7b7;
  color: #047857;
}

.evidence-tag.multi-source, .evidence-tag.multi_source {
  background: var(--status-multi-source-bg);
  color: var(--status-multi-source);
  border-color: var(--status-multi-source-border);
}
.evidence-tag.multi-source:hover, .evidence-tag.multi_source:hover {
  background: #cffafe;
  border-color: #67e8f9;
  color: #0e7490;
}

.evidence-tag.brand-claim, .evidence-tag.brand_claim {
  background: var(--status-brand-claim-bg);
  color: var(--status-brand-claim);
  border-color: var(--status-brand-claim-border);
}
.evidence-tag.brand-claim:hover, .evidence-tag.brand_claim:hover {
  background: #fef3c7;
  border-color: #fcd34d;
  color: #b45309;
}

.evidence-tag.third-party, .evidence-tag.third_party {
  background: var(--status-third-party-bg);
  color: var(--status-third-party);
  border-color: var(--status-third-party-border);
}
.evidence-tag.third-party:hover, .evidence-tag.third_party:hover {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.evidence-tag.conflict {
  background: var(--status-conflict-bg);
  color: var(--status-conflict);
  border-color: var(--status-conflict-border);
}
.evidence-tag.conflict:hover {
  background: #ffe4e6;
  border-color: #fda4af;
  color: #be123c;
}

.evidence-tag.outdated {
  background: var(--status-outdated-bg);
  color: var(--status-outdated);
  border-color: var(--status-outdated-border);
}
.evidence-tag.outdated:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #334155;
}

.evidence-tag.unverified {
  background: var(--status-unverified-bg);
  color: var(--status-unverified);
  border-color: var(--status-unverified-border);
}
.evidence-tag.unverified:hover {
  background: #ede9fe;
  border-color: #c4b5fd;
  color: #6d28d9;
}

/* Status Pill 7 States (Matching exact 7 specs) */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  border: 1px solid transparent;
}

.status-pill.verified, .status-pill.VERIFIED {
  background: var(--status-verified-bg);
  color: var(--status-verified);
  border-color: var(--status-verified-border);
}

.status-pill.multi-source, .status-pill.multi_source, .status-pill.MULTI-SOURCE {
  background: var(--status-multi-source-bg);
  color: var(--status-multi-source);
  border-color: var(--status-multi-source-border);
}

.status-pill.brand-claim, .status-pill.brand_claim, .status-pill.BRAND-CLAIM {
  background: var(--status-brand-claim-bg);
  color: var(--status-brand-claim);
  border-color: var(--status-brand-claim-border);
}

.status-pill.third-party, .status-pill.third_party, .status-pill.THIRD-PARTY {
  background: var(--status-third-party-bg);
  color: var(--status-third-party);
  border-color: var(--status-third-party-border);
}

.status-pill.conflict, .status-pill.CONFLICT {
  background: var(--status-conflict-bg);
  color: var(--status-conflict);
  border-color: var(--status-conflict-border);
}

.status-pill.outdated, .status-pill.OUTDATED {
  background: var(--status-outdated-bg);
  color: var(--status-outdated);
  border-color: var(--status-outdated-border);
}

.status-pill.unverified, .status-pill.UNVERIFIED {
  background: var(--status-unverified-bg);
  color: var(--status-unverified);
  border-color: var(--status-unverified-border);
}

/* Interactive Plan Selector Calculator ("选型小算盘") */
.calculator-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-top: 36px;
}

.calc-header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.calc-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.calc-icon {
  color: var(--color-primary);
}

.calc-body {
  padding: 28px 24px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
}

.calc-control-group {
  margin-bottom: 20px;
}

.calc-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.calc-val-display {
  font-family: var(--font-mono);
  color: var(--color-primary);
  font-weight: 700;
}

.calc-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #e2e8f0;
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.calc-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.calc-pill-btn {
  padding: 7px 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.calc-pill-btn:hover {
  background: var(--bg-secondary);
  border-color: var(--border-strong);
}

.calc-pill-btn.active {
  background: var(--color-primary-soft);
  color: var(--color-primary);
  border-color: #38bdf8;
  font-weight: 600;
}

.calc-result-panel {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.result-card-badge {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--color-emerald);
  background: var(--color-emerald-soft);
  padding: 2px 8px;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: 8px;
}

.result-plan-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.result-plan-reason {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
}

.result-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.result-metric-box {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 10px;
  border-radius: var(--radius-xs);
}

.result-metric-label {
  font-size: 11px;
  color: var(--text-muted);
}

.result-metric-val {
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-primary);
  margin-top: 2px;
}

/* Evidence Hub & 7 Verification States */
.evidence-status-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  border: 1px solid transparent;
}

.status-pill.verified {
  background: var(--status-verified-bg);
  color: var(--status-verified);
  border-color: var(--status-verified-border);
}

.status-pill.cross_validated {
  background: var(--status-cross-bg);
  color: var(--status-cross);
  border-color: var(--status-cross-border);
}

.status-pill.official_claim_pending {
  background: var(--status-pending-bg);
  color: var(--status-pending);
  border-color: var(--status-pending-border);
}

.status-pill.third_party_checked {
  background: var(--status-third-bg);
  color: var(--status-third);
  border-color: var(--status-third-border);
}

.status-pill.dynamic_fluctuation {
  background: var(--status-fluct-bg);
  color: var(--status-fluct);
  border-color: var(--status-fluct-border);
}

.status-pill.deprecated_archive {
  background: var(--status-deprec-bg);
  color: var(--status-deprec);
  border-color: var(--status-deprec-border);
}

.status-pill.conditional_verification {
  background: var(--status-cond-bg);
  color: var(--status-cond);
  border-color: var(--status-cond-border);
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 18px;
}

.evidence-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
}

.evidence-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.evidence-card-header {
  padding: 12px 16px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.evd-id-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
}

.evidence-card-body {
  padding: 18px 16px;
  flex: 1;
}

.evd-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.4;
}

.evd-field {
  margin-bottom: 10px;
  font-size: 12.5px;
  line-height: 1.6;
}

.evd-field-label {
  font-weight: 600;
  color: var(--text-muted);
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.evd-claim {
  color: var(--text-secondary);
  background: #f8fafc;
  padding: 6px 10px;
  border-left: 2px solid var(--border-strong);
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
}

.evd-fact {
  color: var(--text-primary);
  background: #f0fdf4;
  padding: 6px 10px;
  border-left: 2px solid #22c55e;
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
}

.evidence-card-footer {
  padding: 10px 16px;
  background: var(--bg-card-subtle);
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

/* Strategic Knowledge Base & 16 Articles Section */
.knowledge-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-tab-btn {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.category-tab-btn:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.category-tab-btn.active {
  background: var(--text-primary);
  color: var(--text-inverse);
  border-color: var(--text-primary);
}

.search-input-wrap {
  position: relative;
  min-width: 280px;
}

.search-input {
  width: 100%;
  padding: 8px 12px 8px 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  font-size: 13px;
  outline: none;
  transition: border-color var(--transition-fast);
}

.search-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-primary-soft);
}

.search-icon-inside {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
}

.article-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.article-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 11.5px;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.article-category-badge {
  background: var(--bg-secondary);
  color: var(--color-primary);
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  font-weight: 600;
  border: 1px solid var(--border-light);
}

.article-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.45;
  margin-bottom: 10px;
}

.article-card-title a {
  color: inherit;
}

.article-card-title a:hover {
  color: var(--color-primary);
}

.article-card-summary {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.article-evidence-links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.article-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  font-size: 12px;
}

.article-read-link {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* FAQ Accordion Section */
.faq-list {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ Native Details / Summary Accordion (Default Collapsed, Zero Open by Default) */
details.faq-item {
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

details.faq-item:hover {
  border-color: var(--border-strong);
}

details.faq-item[open] {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

details.faq-item summary {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  background: var(--bg-card);
  min-height: 48px; /* Strict touch target compliance >= 44px */
  list-style: none;
  outline: none;
  transition: background var(--transition-fast);
}

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

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

details.faq-item summary:hover {
  background: var(--bg-secondary);
}

details.faq-item .faq-toggle-icon {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-muted);
  flex-shrink: 0;
  margin-left: 12px;
}

details.faq-item[open] .faq-toggle-icon {
  transform: rotate(180deg);
  color: var(--color-primary);
}

.faq-answer {
  padding: 18px 20px;
  border-top: 1px solid var(--border-light);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
  background: #fdfdfe;
}

/* Native Semantic Comparison Table Matrix */
.table-scroll-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 28px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
}

.comparison-matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
  min-width: 680px;
}

.comparison-matrix-table caption {
  caption-side: top;
  text-align: left;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
}

.comparison-matrix-table th,
.comparison-matrix-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
}

.comparison-matrix-table th:last-child,
.comparison-matrix-table td:last-child {
  border-right: none;
}

.comparison-matrix-table thead th {
  background: #f8fafc;
  font-weight: 700;
  color: var(--text-primary);
  font-size: 13px;
  white-space: nowrap;
}

.comparison-matrix-table tbody tr:hover {
  background: #f1f5f9;
}

.comparison-matrix-table tbody th[scope="row"] {
  background: #fafafa;
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-mono);
  white-space: nowrap;
}

/* Client Hub Cards & User Scenario Review Cards */
.client-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.client-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color var(--transition-fast), transform var(--transition-normal);
}

.client-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.client-platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.client-app-name {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-primary);
  background: var(--color-primary-soft);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  display: inline-block;
  margin-bottom: 10px;
}

.client-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.scenario-review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.scenario-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.scenario-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.scenario-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--bg-secondary);
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: 2px;
  border: 1px solid var(--border-light);
}

.scenario-disclaimer-pill {
  font-size: 10.5px;
  color: #d97706;
  background: #fffbeb;
  border: 1px solid #fde68a;
  padding: 1px 6px;
  border-radius: 2px;
  font-family: var(--font-mono);
}

.scenario-quote {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 14px;
}

.scenario-user {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Footer Section */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 60px 0 24px 0;
  margin-top: auto;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer-brand-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.footer-brand-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  color: var(--text-secondary);
}

.footer-col-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
}

.footer-links-list {
  list-style: none;
}

.footer-links-list li {
  margin-bottom: 10px;
}

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

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

.footer-bottom-bar {
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

.disclaimer-text {
  font-size: 11.5px;
  color: var(--text-light);
  line-height: 1.5;
  margin-top: 8px;
}

/* Floating Evidence Modal & Popover */
.evidence-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.evidence-modal-overlay.active {
  display: flex;
}

.evidence-modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  width: 100%;
  max-width: 680px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  animation: modal-enter 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

@keyframes modal-enter {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  padding: 14px 20px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
}

.modal-close-btn:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 24px 20px;
  max-height: 75vh;
  overflow-y: auto;
}

.modal-fields-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.modal-fields-table th, .modal-fields-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
  vertical-align: top;
}

.modal-fields-table th {
  width: 130px;
  background: var(--bg-secondary);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
}

/* Standalone Pages Layout (About, Terms, Privacy, Sitemap, Articles) */
.page-container {
  padding: 48px 0 64px 0;
}

.page-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 24px;
  margin-bottom: 36px;
}

.breadcrumbs-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-bottom: 16px;
}

.breadcrumbs-nav a {
  color: var(--text-muted);
}

.breadcrumbs-nav a:hover {
  color: var(--color-primary);
}

.page-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.page-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.article-reader-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: start;
}

.article-prose {
  font-size: 15.5px;
  line-height: 1.8;
  color: #1e293b;
}

.article-prose h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 36px 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}

.article-prose h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 24px 0 12px 0;
}

.article-prose p {
  margin-bottom: 18px;
}

.article-prose ul, .article-prose ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

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

.article-callout-box {
  background: var(--bg-secondary);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin: 24px 0;
}

.callout-title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
}

.article-sidebar {
  position: sticky;
  top: 90px;
}

.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 18px;
  margin-bottom: 20px;
}

.widget-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}

.toc-list {
  list-style: none;
  font-size: 13px;
}

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

.toc-list a {
  color: var(--text-secondary);
  display: block;
  line-height: 1.4;
}

.toc-list a:hover {
  color: var(--color-primary);
}

/* Back to Top Button */
.back-to-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--bg-dark-accent);
  color: #ffffff;
  border: 1px solid var(--border-dark);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
}

.back-to-top-btn.visible {
  display: flex;
}

.back-to-top-btn:hover {
  background: #1e293b;
  transform: translateY(-2px);
}

/* ==========================================================================
   Responsive Multi-Breakpoints (Desktop, Laptop, Tablet, Mobile)
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .pricing-matrix-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .live-metrics-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric-strip-item:nth-child(2) {
    border-right: none;
  }

  .metric-strip-item:nth-child(1),
  .metric-strip-item:nth-child(2) {
    border-bottom: 1px solid var(--border-color);
  }

  .footer-top-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-reader-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    display: none;
  }
}

@media (max-width: 768px) {
  .console-header {
    position: relative;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 16px;
    box-shadow: var(--shadow-lg);
  }

  .main-nav.mobile-open {
    display: flex;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .hero-heading {
    font-size: 26px;
  }

  .hero-highlights {
    grid-template-columns: 1fr;
  }

  .pricing-matrix-grid {
    grid-template-columns: 1fr;
  }

  .calc-body {
    grid-template-columns: 1fr;
  }

  .evidence-grid, .articles-grid {
    grid-template-columns: 1fr;
  }

  .live-metrics-strip {
    grid-template-columns: 1fr;
  }

  .metric-strip-item {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }

  .metric-strip-item:last-child {
    border-bottom: none;
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom-bar {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}


/* ==========================================================================
   TAG-Atlas 证据多源追溯、价格历史与架构核验升级样式
   ========================================================================== */

/* Multi-Source Evidence Listing inside Modal */
.modal-sources-section {
  margin-top: 24px;
  border-top: 1px solid var(--border-color);
  padding-top: 18px;
}

.modal-section-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

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

.modal-source-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xs);
  padding: 12px 14px;
}

.modal-source-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.modal-source-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.source-access-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 2px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.source-access-badge.accessible {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.source-access-badge.failed {
  background: #ffe4e6;
  color: #e11d48;
  border: 1px solid #fda4af;
}

.modal-source-url {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-primary);
  word-break: break-all;
  display: inline-block;
  margin-bottom: 6px;
}

.modal-source-quote {
  font-size: 12px;
  color: var(--text-secondary);
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 2px;
  padding: 8px 10px;
  line-height: 1.5;
  margin-top: 6px;
  white-space: pre-line;
}

.modal-source-dates {
  display: flex;
  gap: 14px;
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: 6px;
}

/* Conflict Comparison Box in Modal */
.modal-conflict-box {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: var(--radius-xs);
  padding: 12px 14px;
  margin-top: 16px;
  margin-bottom: 16px;
}

.modal-conflict-title {
  color: #be123c;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-family: var(--font-mono);
}

.modal-conflict-body {
  font-size: 12.5px;
  color: #4c0519;
  line-height: 1.6;
}

/* Price History Table in Pricing Section & Modal */
.price-history-section {
  margin-top: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 24px;
}

.price-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.price-history-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.price-history-table th,
.price-history-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
  text-align: left;
}

.price-history-table th:last-child,
.price-history-table td:last-child {
  border-right: none;
}

.price-history-table thead th {
  background: var(--bg-secondary);
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 12px;
}

.price-history-table tbody tr:hover {
  background: #f8fafc;
}

.price-history-table .tier-badge {
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 2px;
  font-size: 11px;
}

.tier-badge.special { background: #e0f2fe; color: #0369a1; }
.tier-badge.bronze { background: #fef3c7; color: #92400e; }
.tier-badge.silver { background: #f1f5f9; color: #334155; }
.tier-badge.gold { background: #fef9c3; color: #854d0e; }

/* Network Topology Provenance Badges */
.topology-provenance-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xs);
  padding: 14px 18px;
  margin-top: 16px;
  font-size: 12.5px;
  line-height: 1.6;
}

.topology-provenance-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.topology-provenance-item {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xs);
  padding: 10px 12px;
}

.topology-badge-verified {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  font-size: 10.5px;
  font-family: var(--font-mono);
  padding: 1px 6px;
  border-radius: 2px;
  font-weight: 700;
}

.topology-badge-concept {
  background: #fffbeb;
  color: #d97706;
  border: 1px solid #fde68a;
  font-size: 10.5px;
  font-family: var(--font-mono);
  padding: 1px 6px;
  border-radius: 2px;
  font-weight: 700;
}

.topology-badge-conflict {
  background: #fff1f2;
  color: #e11d48;
  border: 1px solid #fda4af;
  font-size: 10.5px;
  font-family: var(--font-mono);
  padding: 1px 6px;
  border-radius: 2px;
  font-weight: 700;
}
