/* ============================================================
   BBBB IP — 共享设计系统
   纯白工具站 / indigo 品牌色 / 6段纯净度色阶
   ============================================================ */

/* 全站统一字体：中文 Noto Sans SC、英文/数字 Noto Sans
   字体 CSS 在各页面 <head> 中以 <link> 并行加载（见各 HTML） */

/* ---------- 设计变量 ---------- */
:root {
  /* 基础色 */
  --bg: #ffffff;
  --text: #404654;            /* 正文/数值 */
  --heading: #1e293b;         /* 大标题 slate-800 */
  --text-secondary: #64748b;  /* 次要文字 slate-500 */
  --text-label: #555555;
  --border: #e2e8f0;          /* slate-200 */
  --border-strong: #cbd5e1;

  /* 品牌色 */
  --brand: #4f46e5;           /* indigo-600 */
  --brand-hover: #4338ca;
  --brand-soft: #eef2ff;

  /* 纯净度色阶（6 段） */
  --p-ultra-clean: #166534;   /* 极度纯净 */
  --p-clean: #22c55e;         /* 纯净 */
  --p-neutral: #84cc16;       /* 中性 */
  --p-light: #eab308;         /* 轻度风险 */
  --p-mid: #f97316;           /* 中度风险 */
  --p-high: #dc2626;          /* 极度风险 */

  /* 其他语义色 */
  --success: #16a34a;
  --danger: #dc2626;
  --warning: #d97706;
  --info: #0ea5e9;

  /* 字号 */
  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-base: 14px;
  --fs-md: 16px;
  --fs-lg: 18px;
  --fs-xl: 24px;
  --fs-hero: 40px;

  /* 圆角 */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  /* 阴影 */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.10);

  --nav-h: 64px;
  --container-w: 1120px;
}

/* ---------- 基础 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans", "Noto Sans SC", -apple-system, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: var(--fs-base);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: none; color: var(--brand-hover); }

img { max-width: 100%; display: block; }

h1, h2, h3, h4 { color: var(--heading); font-weight: 800; line-height: 1.3; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* 等宽字体：所有技术数值 */
.mono, code, .info-value, .ip-text, .metric-value {
  font-family: "Noto Sans", "Noto Sans SC", Consolas, monospace;
}

/* 隐藏但占位保持布局 */
.is-hidden { display: none !important; }

/* 演示数据标记 */
.demo-tag {
  display: inline-block;
  font-size: 11px;
  line-height: 1;
  padding: 2px 6px;
  margin-left: 6px;
  border-radius: 4px;
  background: #fef3c7;
  color: #92400e;
  vertical-align: middle;
  white-space: nowrap;
}

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 800;
  color: var(--heading);
  margin-right: 12px;
  white-space: nowrap;
}
.nav-logo .logo-img {
  width: 26px;
  height: 26px;
  display: inline-block;
}
.nav-logo:hover { color: var(--heading); }

.nav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: var(--fs-base);
  color: var(--text);
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: none;
}
.nav-link:hover { background: #f1f5f9; color: var(--heading); }
.nav-link.active { color: var(--brand); background: var(--brand-soft); font-weight: 600; }
.nav-link .caret { width: 14px; height: 14px; opacity: 0.7; transition: transform 0.2s; }
.nav-drop:hover .caret, .nav-drop.open .caret { transform: rotate(180deg); }

.nav-drop { position: relative; }
.nav-drop-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 190px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.18s ease;
}
.nav-drop:hover .nav-drop-menu, .nav-drop.open .nav-drop-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-drop-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text);
  font-size: var(--fs-base);
}
.nav-drop-menu a:hover { background: #f1f5f9; color: var(--heading); }

.nav-burger {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
}
.nav-burger svg { width: 20px; height: 20px; }

/* 移动端抽屉菜单 */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  visibility: hidden;
  opacity: 0;
  transition: all 0.2s;
}
.nav-drawer.show { visibility: visible; opacity: 1; }
.nav-drawer-mask { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.4); }
.nav-drawer-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 290px;
  background: #fff;
  padding: 20px 16px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.22s ease;
}
.nav-drawer.show .nav-drawer-panel { transform: translateX(0); }
.nav-drawer-panel .drawer-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 800;
  font-size: 16px;
  color: var(--heading);
  margin-bottom: 14px;
}
.drawer-close { background: none; border: none; cursor: pointer; color: var(--text-secondary); padding: 4px; display: inline-flex; align-items: center; }
.drawer-close .lucide { width: 20px; height: 20px; }
.drawer-group { margin-bottom: 16px; }
.drawer-group-title {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.drawer-group a {
  display: block;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--text);
  font-weight: 500;
}
.drawer-group a:hover { background: #f1f5f9; }
.drawer-group a.active { color: var(--brand); background: var(--brand-soft); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 12px;
  font-size: var(--fs-base);
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); color: #fff; box-shadow: var(--shadow-md); }
.btn-ghost {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-sm { padding: 7px 14px; font-size: var(--fs-sm); border-radius: 9px; }

/* ---------- 首页：搜索区 ---------- */
.search-section { padding: 36px 0 8px; }

.search-box {
  display: flex;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 8px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.search-box:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}
.search-box input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  padding: 8px 12px;
  color: var(--heading);
  font-family: inherit;
  min-width: 0;
}
.search-box input::placeholder { color: #94a3b8; }

/* ---------- 首页：检测结果卡片 ---------- */
.result-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-top: 14px;
}

.result-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
}
.result-card-title { font-size: var(--fs-lg); font-weight: 800; color: var(--heading); }

/* 切换 Tab */
.tab-switch {
  display: inline-flex;
  background: #f1f5f9;
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}
.tab-switch button {
  border: none;
  background: transparent;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
}
.tab-switch button.active { background: #fff; color: var(--heading); box-shadow: var(--shadow-sm); }

.result-card-body { padding: 24px; }

/* 加载态 */
.loading-wrap { padding: 56px 0; text-align: center; }
.pulse-dots { display: inline-flex; gap: 8px; }
.pulse-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #94a3b8;
  animation: pulse 1.2s infinite ease-in-out;
}
.pulse-dots span:nth-child(2) { animation-delay: 0.15s; }
.pulse-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes pulse {
  0%, 100% { transform: scale(0.7); opacity: 0.4; }
  50% { transform: scale(1.1); opacity: 1; }
}
.loading-text { margin-top: 14px; color: var(--text-secondary); font-size: var(--fs-sm); }

/* IP 信息键值区 */
.ip-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 32px;
}
.ip-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--border);
}
.ip-info-row:last-child { border-bottom: none; }
.ip-info-row.full { grid-column: 1 / -1; }
.info-key { color: var(--text-secondary); font-size: var(--fs-sm); flex-shrink: 0; }
.info-value { color: var(--heading); font-weight: 600; text-align: right; word-break: break-all; }

/* 徽章：IP来源 / IP属性 */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.badge-green { background: #dcfce7; color: #166534; }
.badge-blue { background: #dbeafe; color: #1d4ed8; }
.badge-red { background: #fee2e2; color: #991b1b; }
.badge-amber { background: #fef3c7; color: #92400e; }
.badge-gray { background: #f1f5f9; color: #475569; }

/* ---------- 纯净度系数仪表盘 ---------- */
.trust-section { margin-top: 26px; }
.trust-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.trust-section-title h3 { font-size: 16px; }

.trust-meter { position: relative; padding: 34px 0 6px; }

/* 徽章（显示分数与等级） */
.trust-badge {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  background: #166534;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 5px;
  white-space: nowrap;
  transition: left 0.6s ease;
  z-index: 3;
}
.trust-badge::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: inherit;
  border-bottom: none;
}

/* 6 段色条 */
.trust-bar {
  position: relative;
  height: 18px;
  border-radius: 10px;
  background: linear-gradient(
    to right,
    var(--p-ultra-clean) 0%,
    var(--p-clean) 15%,
    var(--p-neutral) 25%,
    var(--p-light) 40%,
    var(--p-mid) 50%,
    var(--p-mid) 70%,
    var(--p-high) 100%
  );
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.15);
}

/* 分数指示线 */
.trust-pointer {
  position: absolute;
  top: -6px;
  bottom: -6px;
  width: 3px;
  margin-left: -1.5px;
  background: #1e293b;
  border-radius: 2px;
  transition: left 0.6s ease;
  z-index: 2;
}

/* 刻度 */
.trust-ticks {
  position: relative;
  height: 20px;
  margin-top: 6px;
  color: var(--text-secondary);
  font-size: 12px;
  font-family: "Noto Sans", "Noto Sans SC", Consolas, monospace;
}
.trust-ticks span {
  position: absolute;
  transform: translateX(-50%);
}

/* 等级解释行 */
.trust-levels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-secondary);
}

/* 检测项清单（分数构成） */
.trust-breakdown { margin-top: 20px; }
.breakdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px dashed var(--border);
  font-size: var(--fs-sm);
}
.breakdown-row:last-child { border-bottom: none; }
.breakdown-label { display: flex; align-items: center; gap: 8px; color: var(--text); }
.breakdown-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.breakdown-val { font-weight: 700; }
.breakdown-val.ok { color: var(--success); }
.breakdown-val.warn { color: var(--warning); }
.breakdown-val.bad { color: var(--danger); }

/* 多数据源对比 */
.multisource { margin-top: 26px; }
.multisource h3 { font-size: 16px; margin-bottom: 12px; }
.source-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.source-table th {
  text-align: left;
  padding: 9px 12px;
  background: #f8fafc;
  color: var(--text-secondary);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.source-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--heading);
}
.source-table td.mono { font-weight: 500; }
.source-table tr:last-child td { border-bottom: none; }
.source-table .na { color: #cbd5e1; }

/* 地图 */
.map-wrap { margin-top: 26px; }
.map-wrap h3 { font-size: 16px; margin-bottom: 12px; }
#map { height: 400px; border-radius: var(--radius-md); border: 1px solid var(--border); z-index: 1; }
.map-coord { margin-top: 8px; font-size: 12px; color: var(--text-secondary); }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 48px 0 8px; }
.hero h1 { font-size: var(--fs-hero); font-weight: 800; letter-spacing: -0.02em; }
.hero p {
  margin-top: 14px;
  font-size: 17.6px;
  color: var(--text-secondary);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- 统计条 ---------- */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 64px;
  padding: 28px 0 10px;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-value {
  font-size: 30px;
  font-weight: 800;
  color: var(--brand);
  font-family: "Noto Sans", "Noto Sans SC", Consolas, monospace;
}
.stat-label { display: block; margin-top: 4px; font-size: var(--fs-sm); color: var(--text-secondary); }

/* ---------- 功能卡片 ---------- */
.section-title {
  text-align: center;
  font-size: 26px;
  font-weight: 800;
  margin: 44px 0 8px;
}
.section-sub {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 26px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  display: block;
  color: var(--text);
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #c7d2fe;
  color: var(--text);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 16px; margin-bottom: 6px; }
.feature-card p { font-size: var(--fs-sm); color: var(--text-secondary); }
.feature-card .is-dev { opacity: 0.55; pointer-events: none; }

/* ---------- 合作伙伴 ---------- */
.partners { padding: 44px 0 10px; }
.partners-title { text-align: center; font-size: var(--fs-sm); color: var(--text-secondary); margin-bottom: 18px; letter-spacing: 0.04em; }
.partner-wall {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.partner-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fafbfc;
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  font-weight: 600;
}
.partner-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: #c7d2fe; }

/* ---------- 页脚 ---------- */
.footer {
  margin-top: 56px;
  border-top: 1px solid var(--border);
}
.commitment {
  background: #f8fafc;
  border-radius: var(--radius-lg);
  padding: 26px 30px;
  margin-top: 36px;
  border: 1px solid var(--border);
}
.commitment h3 { font-size: 17px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.commitment p { color: var(--text-secondary); font-size: var(--fs-sm); }
.commitment a { color: var(--brand); font-weight: 600; }

.footer-bottom {
  padding: 26px 0 34px;
  text-align: center;
  color: var(--text-secondary);
  font-size: var(--fs-sm);
}
.footer-bottom .brand { color: var(--heading); font-weight: 800; }
.footer-links { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-bottom: 10px; }
.footer-links a { color: var(--text-secondary); font-size: var(--fs-sm); }
.footer-links a:hover { color: var(--brand); }

/* ---------- 子页面通用 ---------- */
.page-head { padding: 44px 0 8px; }
.page-head h1 { font-size: 30px; }
.page-head .crumb { font-size: var(--fs-sm); color: var(--text-secondary); margin-bottom: 8px; }
.page-head .crumb a { color: var(--text-secondary); }
.page-head .crumb a:hover { color: var(--brand); }
.page-head p.sub { color: var(--text-secondary); margin-top: 8px; max-width: 720px; }

.panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 20px;
}
.panel h2 { font-size: 19px; margin-bottom: 14px; }

.tool-intro {
  background: var(--brand-soft);
  border: 1px solid #c7d2fe;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-top: 18px;
  font-size: var(--fs-sm);
  color: #3730a3;
}
.tool-intro strong { color: var(--brand); }

/* 检测按钮行 */
.tool-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; align-items: center; }

/* ---------- 结果状态（成功 / 风险） ---------- */
.result-tag { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; padding: 5px 12px; border-radius: 8px; font-size: var(--fs-sm); }
.result-tag.ok { background: #dcfce7; color: #166534; }
.result-tag.warn { background: #fef3c7; color: #92400e; }
.result-tag.bad { background: #fee2e2; color: #991b1b; }

/* ---------- FAQ ---------- */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-top: 12px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  background: #fff;
  border: none;
  padding: 15px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--heading);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-q:hover { background: #f8fafc; }
.faq-q .chev { transition: transform 0.2s; color: var(--text-secondary); flex-shrink: 0; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  color: var(--text-secondary);
  font-size: var(--fs-sm);
}
.faq-item.open .faq-a { max-height: 400px; padding-bottom: 16px; }

/* ---------- 表格（日志/纠正记录） ---------- */
.data-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.data-table th, .data-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); }
.data-table th { background: #f8fafc; color: var(--text-secondary); font-weight: 600; }
.data-table td { color: var(--text); }
.data-table tr:hover td { background: #fafbfc; }

/* 时间线 */
.timeline { list-style: none; }
.timeline li { position: relative; padding: 0 0 22px 26px; border-left: 2px solid var(--border); margin-left: 8px; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--brand);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--brand);
}
.timeline .t-date { font-size: 12px; color: var(--text-secondary); font-family: "Noto Sans", "Noto Sans SC", Consolas, monospace; }
.timeline .t-title { font-weight: 700; color: var(--heading); margin-top: 2px; }
.timeline .t-desc { color: var(--text-secondary); font-size: var(--fs-sm); margin-top: 4px; }

/* ---------- 代码块（数据接口） ---------- */
.code-block {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  overflow-x: auto;
  font-size: var(--fs-sm);
  line-height: 1.7;
  font-family: "Noto Sans", "Noto Sans SC", Consolas, monospace;
}
.code-block .cm { color: #64748b; }
.code-block .c-key { color: #818cf8; }
.code-block .c-str { color: #34d399; }
.code-block .c-num { color: #fbbf24; }

/* ---------- 工具页：结果状态横幅 ---------- */
.status-hero {
  text-align: center;
  padding: 34px 24px;
  border-radius: var(--radius-lg);
  margin-bottom: 22px;
}
.status-hero.ok { background: #f0fdf4; border: 1px solid #bbf7d0; }
.status-hero.warn { background: #fffbeb; border: 1px solid #fde68a; }
.status-hero.bad { background: #fef2f2; border: 1px solid #fecaca; }
.status-hero.na { background: #f8fafc; border: 1px solid var(--border); }
.status-hero .status-title { font-size: 22px; font-weight: 800; margin-top: 10px; }
.status-hero.ok .status-title { color: #166534; }
.status-hero.warn .status-title { color: #92400e; }
.status-hero.bad .status-title { color: #991b1b; }
.status-hero.na .status-title { color: var(--heading); }
.status-hero .status-sub { color: var(--text-secondary); font-size: var(--fs-sm); margin-top: 6px; }

/* ---------- Lucide 图标（data-lucide 渲染后为 svg.lucide） ---------- */
.lucide { width: 1em; height: 1em; vertical-align: middle; }
.feature-icon .lucide { width: 26px; height: 26px; }
.btn-primary .lucide { width: 16px; height: 16px; }
.nav-burger .lucide { width: 24px; height: 24px; }
.commitment .lucide { width: 18px; height: 18px; }
.status-hero .lucide { width: 46px; height: 46px; margin: 0 auto; display: block; }
.status-hero.ok .lucide { color: #16a34a; }
.status-hero.warn .lucide { color: #d97706; }
.status-hero.bad .lucide { color: #dc2626; }
.status-hero.na .lucide { color: #64748b; }

/* ---------- 工具页：路由链路可视化 ---------- */
.route-viz {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  padding: 18px 0 8px;
}
.route-node {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  min-width: 150px;
  text-align: center;
}
.route-node .n-role { font-size: 11px; color: var(--text-secondary); }
.route-node .n-value { font-weight: 700; color: var(--heading); margin-top: 4px; word-break: break-all; }
.route-node .n-sub { font-size: 12px; color: #94a3b8; margin-top: 2px; }
.route-node.highlight { border-color: var(--brand); background: var(--brand-soft); }
.route-node.highlight .n-value { color: var(--brand); }
.route-line {
  display: flex;
  align-items: center;
  padding: 0 10px;
  color: var(--text-secondary);
  font-size: 18px;
}

/* ---------- 工具页：指标卡 ---------- */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 8px;
}
.metric-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  background: #fafbfc;
}
.metric-card .m-label { font-size: 12px; color: var(--text-secondary); }
.metric-card .m-value { font-size: 18px; font-weight: 800; color: var(--heading); margin-top: 6px; word-break: break-all; }
.metric-card .m-sub { font-size: 12px; color: #94a3b8; margin-top: 4px; }

/* ---------- 工具页：结论列表 ---------- */
.conclusion-list { margin-top: 16px; }
.conclusion-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  font-size: var(--fs-sm);
}
.conclusion-list li:last-child { border-bottom: none; }
.conclusion-list .c-key { color: var(--text-secondary); }
.conclusion-list .c-val { color: var(--heading); font-weight: 600; text-align: right; }

/* ---------- 工具页：服务可用性矩阵 ---------- */
.service-matrix { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.service-cell {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  text-align: center;
}
.service-cell .s-name { font-weight: 700; color: var(--heading); font-size: var(--fs-sm); }
.service-cell .s-status { margin-top: 6px; font-size: 12px; font-weight: 700; }
.service-cell .s-desc { margin-top: 4px; font-size: 11px; color: #94a3b8; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .ip-info-grid { grid-template-columns: 1fr; }
  .service-matrix { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  :root { --fs-hero: 30px; }
  .stats-bar { gap: 36px; }
  .search-box { flex-direction: column; }
  .search-box input { width: 100%; }
  .search-box .btn { width: 100%; }
  .trust-levels { display: none; }
}

@media (max-width: 520px) {
  .feature-grid { grid-template-columns: 1fr; }
  .result-card-body { padding: 16px; }
  .ip-info-row { flex-direction: column; align-items: flex-start; gap: 2px; }
  .info-value { text-align: left; }
}
