/* 公开站点样式：仅复用面板既有设计变量与组件规范，不引入任何外部框架。 */
:root {
  --bg: #f4f6fa;
  --card: #ffffff;
  --border: #e5e9f0;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --green: #16a34a;
  --red: #dc2626;
  --orange: #d97706;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
.hidden { display: none !important; }
.muted { color: var(--muted); }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* 顶部导航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 60px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}
.brand:hover { color: var(--text); }
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  padding: 7px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
}
.nav a:hover { color: var(--primary); background: #eff6ff; }
.nav a.active { color: var(--primary); background: #eff6ff; }
/* 登录 / 注册独立按钮：沿用拨测页的绿色主色与直角风格 */
.nav a.nav-btn {
  padding: 6px 16px;
  border: 1px solid #20a53a;
  border-radius: 2px;
  color: #20a53a;
  font-size: 13px;
  line-height: 20px;
}
.nav a.nav-btn:hover { background: #f2fbf4; color: #20a53a; }
.nav a.nav-btn.primary { background: #20a53a; border-color: #20a53a; color: #fff; }
.nav a.nav-btn.primary:hover { background: #1b8f32; border-color: #1b8f32; color: #fff; }

/* 首屏 */
.hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #3b82f6 100%);
  color: #fff;
  padding: 56px 0 64px;
}
.hero h1 { font-size: 30px; line-height: 1.35; font-weight: 700; }
.hero p { margin-top: 12px; max-width: 620px; color: rgba(255,255,255,.86); font-size: 14.5px; }
.hero-actions { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn { border-color: rgba(255,255,255,.55); }
.hero .btn.primary { background: #fff; border-color: #fff; color: var(--primary); }
.hero .btn.primary:hover { background: #eff6ff; color: var(--primary-dark); }
.hero .btn.ghost { background: transparent; color: #fff; }
.hero .btn.ghost:hover { background: rgba(255,255,255,.14); color: #fff; border-color: #fff; }
.hero-stats { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 28px; }
.hero-stats div { min-width: 96px; }
.hero-stats b { display: block; font-size: 24px; font-weight: 700; }
.hero-stats span { font-size: 12.5px; color: rgba(255,255,255,.78); }

/* 区块 */
.section { padding: 40px 0; }
.section-head { margin-bottom: 18px; }
.section-head h2 { font-size: 20px; }
.section-head p { color: var(--muted); margin-top: 6px; }

/* 卡片 */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 16px;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.card-head h3 { font-size: 16px; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
}
.stat-card .num { font-size: 26px; font-weight: 700; margin-top: 6px; }
.stat-card .lbl { color: var(--muted); font-size: 13px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.feature { margin-bottom: 0; }
.feature h3 { font-size: 15px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 13px; }
.feature .ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #eff6ff;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 12px;
}

/* 表单 */
.form-item { margin-bottom: 14px; }
.form-item label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.form-row { display: flex; gap: 10px; flex-wrap: wrap; }
.form-row > .form-item { flex: 1 1 160px; }

input, select {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  background: #fff;
  color: var(--text);
  font-family: inherit;
}
input:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
input::placeholder { color: #9ca3af; }

.btn {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  color: var(--text);
  transition: .15s;
  font-family: inherit;
}
.btn:hover { border-color: var(--primary); color: var(--primary); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-dark); color: #fff; }
.btn.sm { padding: 4px 10px; font-size: 12px; border-radius: 6px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* 节点选择 */
.node-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 190px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
}
.node-checks label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 16px;
  cursor: pointer;
}
.node-checks label:has(input:checked) {
  border-color: var(--primary);
  color: var(--primary);
  background: #eff6ff;
}
.node-checks input { width: auto; }
.node-tools { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 12px; }

/* 表格 */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; }
.tbl th {
  text-align: left;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  padding: 9px 10px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.tbl td {
  padding: 10px;
  border-bottom: 1px solid #f0f2f7;
  font-size: 13px;
  vertical-align: middle;
}
.tbl tr:hover td { background: #f8fafd; }
.tbl tr:last-child td { border-bottom: none; }
.num-cell { font-variant-numeric: tabular-nums; }

/* 徽标 */
.badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.badge.blue { background: #dbeafe; color: #1d4ed8; }
.badge.green { background: #dcfce7; color: #15803d; }
.badge.red { background: #fee2e2; color: #b91c1c; }
.badge.gray { background: #f1f5f9; color: #64748b; }
.badge.orange { background: #fef3c7; color: #b45309; }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.dot.on { background: var(--green); box-shadow: 0 0 0 3px rgba(22,163,74,.15); }
.dot.off { background: #cbd5e1; }

.empty { text-align: center; color: var(--muted); padding: 34px 0; }

/* 拨测任务卡 */
.probe-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 18px;
  align-items: start;
}
.probe-form { position: sticky; top: 78px; }
.task-list { display: flex; flex-direction: column; gap: 16px; }
.task-card { margin-bottom: 0; }
.task-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 4px;
}
.task-meta b { color: var(--text); font-weight: 600; }
.task-foot { margin-top: 10px; display: flex; justify-content: flex-end; gap: 8px; }

.alert {
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #b91c1c;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13px;
  margin-bottom: 12px;
}
.alert.info { border-color: #bfdbfe; background: #eff6ff; color: #1d4ed8; }

/* toast */
#toast-box {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  padding: 10px 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  font-size: 13px;
  animation: slidein .2s ease;
}
.toast.err { border-left-color: var(--red); }
@keyframes slidein {
  from { transform: translateX(30px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  font-size: 12.5px;
  padding: 22px 0;
  margin-top: 30px;
}
.site-footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .probe-layout { grid-template-columns: 1fr; }
  .probe-form { position: static; }
  .hero { padding: 40px 0 46px; }
  .hero h1 { font-size: 24px; }
  .nav a { padding: 6px 9px; }
}
@media (max-width: 560px) {
  .site-header .wrap { height: auto; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
  .hero-stats { gap: 18px; }
}

/* ==========================================================================
   公开拨测页（版式参照 t.bt.cn，仅使用本站颜色与字体变量，不引入外部资源）
   ========================================================================== */

.boce-hero {
  background: #fff;
  padding: 24px 0 0;
}
.hero-text { padding-top: 0; }
.hero-title {
  margin: 0 0 20px;
  font-size: 56px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 8px;
  color: #1a1a1a;
}
.gradient-text {
  background: linear-gradient(to right, #abc13d, #68b43c, #29a73a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-subtitle {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: #666;
}
.hero-links {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  line-height: 1.6;
  color: #666;
}
.hero-links i { font-style: normal; color: #d6dbe2; }

/* 测速面板 */
.hero-panel {
  margin-top: 0;
  width: 849px;
  max-width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
}
.hero-tabs-bar {
  display: flex;
  align-items: center;
  height: 40px;
  flex: 0 0 40px;
}
.hero-tab-item {
  position: relative;
  height: 40px;
  padding: 0 18px 0 0;
  margin-right: 14px;
  border: 0;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: #484848;
  cursor: pointer;
  font-family: inherit;
}
.hero-tab-item:hover { color: #20a53a; }
.hero-tab-item.active { color: #20a53a; }
.hero-tab-item.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 18px;
  bottom: 0;
  height: 2px;
  background: #20a53a;
}
.test-input-area { padding: 8px 0 0; }
.input-row {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 44px;
}
.input-wrapper { flex: 1 1 auto; min-width: 0; }
.input-wrapper input {
  width: 100%;
  height: 44px;
  padding: 0 18px;
  border: 1px solid #20a53a;
  border-radius: 2px;
  font-size: 15px;
  color: #1f2937;
  background: #fff;
}
.input-wrapper input:focus {
  border-color: #20a53a;
  box-shadow: 0 0 0 3px rgba(32, 165, 58, .12);
}
.input-wrapper input::placeholder { color: #b6bcc5; }
.start-btn {
  flex: 0 0 140px;
  height: 44px;
  padding: 0 32px;
  border: 1px solid #20a53a;
  border-radius: 2px;
  background: #20a53a;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: .15s;
}
.start-btn:hover { background: #1b8f32; border-color: #1b8f32; }
.start-btn:disabled { opacity: .6; cursor: not-allowed; }
.slow-btn {
  flex: 0 0 146px;
  height: 44px;
  padding: 0 20px;
  border: 1px solid #20a53a;
  border-radius: 2px;
  background: #fff;
  color: #20a53a;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: .15s;
}
.slow-btn:hover { background: #f2fbf4; }
.probe-hint {
  height: 12px;
  line-height: 12px;
  font-size: 11px;
  color: #9aa2ad;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* 运营商筛选 */
.probe-filter-row {
  margin-top: 0;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.probe-filters { display: flex; align-items: center; gap: 18px; }
.filter-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #606266;
  cursor: pointer;
  user-select: none;
}
.filter-item input {
  width: 13px;
  height: 13px;
  margin: 0;
  accent-color: #20a53a;
  cursor: pointer;
}
.filter-item:hover span { color: #20a53a; }
.probe-dns-area { display: flex; align-items: center; gap: 8px; }
.dns-label { font-size: 12px; color: #20a53a; cursor: pointer; }
.probe-dns-input-wrap input {
  width: 200px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid #e5e5e5;
  border-radius: 2px;
  background: #f5f5f5;
  font-size: 12px;
  color: #1f2937;
}
.probe-dns-input-wrap input:focus {
  border-color: #20a53a;
  background: #fff;
  box-shadow: none;
}
.probe-dns-input-wrap input::placeholder { color: #c0c0c0; }
.probe-dns-input-wrap input:disabled { color: #c0c0c0; cursor: not-allowed; }

/* 结果区 */
.boce-hero > .wrap { max-width: 873px; padding-left: 12px; padding-right: 12px; }
.test-result-page > .wrap { max-width: 1120px; padding-left: 16px; padding-right: 16px; }
.test-result-page { padding: 18px 0 40px; }
.result-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  margin-top: 16px;
}
.result-layout .overview-table-card { margin-top: 0; }
.map-card {
  background: #fff;
  border-radius: 2px;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.map-body {
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  min-height: 360px;
  background: #fff;
}
.china-heatmap { position: absolute; inset: 0; }
.china-heatmap svg { display: block; width: 100%; height: 100%; }
.china-heatmap path { transition: opacity .15s; }
.china-heatmap path:hover { opacity: .82; }
.map-node-count { position: absolute; left: 0; top: 0; padding: 8px 10px; z-index: 2; pointer-events: none; }
.mnc-num { font-size: 22px; font-weight: 600; line-height: 1.2; color: #24aa1d; }
.mnc-label { margin-top: 2px; font-size: 12px; color: #86909c; }
.map-legend {
  position: absolute;
  left: 12px;
  bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #86909c;
  z-index: 2;
}
.map-legend span { display: inline-flex; align-items: center; gap: 4px; }
.map-legend i { width: 10px; height: 10px; border-radius: 1px; display: inline-block; }
.map-tip {
  position: absolute;
  right: 12px;
  top: 12px;
  font-size: 12px;
  color: #b0b6be;
  z-index: 2;
  pointer-events: none;
}

/* 解析统计（地图下方横向条目） */
.parse-stat-card {
  background: #fff;
  border-radius: 2px;
  padding: 20px;
  margin-top: 16px;
}
.parse-stat-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.parse-stat-head h3 { font-size: 16px; color: #1a1a1a; }
.parse-stat-meta { font-size: 12px; color: #86909c; }
.parse-stat-list { margin-top: 12px; border-top: 1px solid #f5f5f5; }
.parse-stat-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(80px, 2fr) 76px 54px;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #f5f5f5;
  font-size: 12px;
}
.parse-stat-row:last-child { border-bottom: 0; }
.ps-main { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ps-ip { color: #1a1a1a; font-weight: 500; font-variant-numeric: tabular-nums; }
.ps-geo { color: #9aa2ad; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-bar { height: 8px; border-radius: 2px; background: #f2f4f7; overflow: hidden; }
.ps-bar span { display: block; height: 100%; min-width: 2px; border-radius: 2px; background: #20a53a; }
.ps-count { color: #484848; text-align: right; font-variant-numeric: tabular-nums; }
.ps-pct { color: #20a53a; text-align: right; font-variant-numeric: tabular-nums; }
.parse-stat-empty { padding: 18px 0; text-align: center; font-size: 12px; color: #b0b6be; }

/* 区域统计表 */
.overview-table-card {
  background: #fff;
  border-radius: 2px;
  padding: 20px;
  margin-top: 16px;
}
.region-tabs {
  display: inline-flex;
  border: 1px solid #20a53a;
  border-radius: 2px;
  overflow: hidden;
  height: 30px;
}
.region-tab {
  height: 28px;
  padding: 0 18px;
  border: 0;
  background: #fff;
  color: #20a53a;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
}
.region-tab + .region-tab { border-left: 1px solid #20a53a; }
.region-tab.active { background: #20a53a; color: #fff; }
.overview-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.overview-table th {
  background: #fafbfc;
  color: #484848;
  font-size: 12px;
  font-weight: 400;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid #f5f5f5;
  white-space: nowrap;
}
.overview-table td {
  color: #484848;
  font-size: 12px;
  font-weight: 500;
  padding: 10px 12px;
  border: 1px solid #f5f5f5;
  font-variant-numeric: tabular-nums;
}
.overview-table td:first-child { color: #1a1a1a; }
.ov-fast { color: #20a53a; }
.ov-slow { color: #e61610; }

/* 概览统计 */
.overview-card {
  background: #fff;
  border-radius: 2px;
  padding: 16px 20px 6px;
  margin-top: 16px;
}
.overview-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 0 12px; }
.ov-item { padding: 6px 0 14px; }
.ov-label { font-size: 12px; color: #86909c; }
.ov-value { margin-top: 6px; font-size: 22px; font-weight: 600; color: #1a1a1a; font-variant-numeric: tabular-nums; }
.ov-value small { font-size: 12px; font-weight: 400; color: #86909c; margin-left: 2px; }
.ov-sub { margin-top: 2px; font-size: 12px; color: #86909c; }

/* 节点明细 */
.result-table-card {
  background: #fff;
  border-radius: 2px;
  padding: 20px;
  margin-top: 16px;
}
.result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.result-head h3 { font-size: 16px; color: #1a1a1a; }
.result-meta { margin-top: 4px; font-size: 12px; color: #86909c; }
.result-actions { display: flex; align-items: center; gap: 8px; }
.task-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.task-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: #fff;
  font-size: 12px;
  color: #606266;
  cursor: pointer;
  font-family: inherit;
}
.task-chip.active { border-color: #20a53a; color: #20a53a; background: #f2fbf4; }
.task-chip i { width: 6px; height: 6px; border-radius: 50%; background: #20a53a; display: inline-block; }
.task-chip.done i { background: #b6bcc5; }
.node-table { width: 100%; border-collapse: collapse; }
.node-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 400;
  color: #484848;
  background: #fafbfc;
  padding: 10px 12px;
  border: 1px solid #f5f5f5;
  white-space: nowrap;
}
.node-table td {
  font-size: 12px;
  color: #484848;
  padding: 10px 12px;
  border: 1px solid #f5f5f5;
  vertical-align: middle;
}
.node-table td.num-cell { font-variant-numeric: tabular-nums; font-weight: 500; }
.node-table .node-name { color: #1a1a1a; font-weight: 500; }
.node-table .node-region { margin-top: 2px; color: #9aa2ad; font-size: 11px; }
.node-table tr:hover td { background: #fbfdfb; }
.state-tag { display: inline-block; padding: 1px 8px; border-radius: 2px; font-size: 12px; }
.state-tag.ok { color: #20a53a; background: #eef9f0; }
.state-tag.bad { color: #e61610; background: #fdeeee; }
.state-tag.wait { color: #86909c; background: #f4f5f7; }
.node-detail { color: #86909c; word-break: break-all; }
.detail-line { font-size: 12px; line-height: 1.7; color: #86909c; }
.ip-geo { color: #b0b6be; }
.detail-wait { color: #b0b6be; }
.detail-err { color: #e61610; }
.rtt-list { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0; }
.rtt-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0 5px;
  border: 1px solid #eef0f3;
  border-radius: 2px;
  background: #fafbfc;
  font-size: 11px;
  color: #606266;
  font-variant-numeric: tabular-nums;
}
.rtt-chip i { font-style: normal; color: #9aa2ad; }
.live-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #20a53a;
  white-space: nowrap;
}
.live-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #20a53a;
  box-shadow: 0 0 0 3px rgba(32, 165, 58, .12);
}
.live-tag.poll { color: #f69833; }
.live-tag.poll::before { background: #f69833; box-shadow: 0 0 0 3px rgba(246, 152, 51, .12); }
.live-tag.done { color: #86909c; }
.live-tag.done::before { background: #b6bcc5; box-shadow: none; }

/* 常用工具 */
.tools-section { background: #fff; padding: 28px 0 36px; }
.tools-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.tools-head h2 { font-size: 20px; color: #1a1a1a; }
.tools-head a { font-size: 13px; color: #86909c; }
.tools-head a:hover { color: #20a53a; }
.tool-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.tool-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 16px;
  border: 1px solid #eef0f3;
  border-radius: 2px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: .15s;
}
.tool-card:hover { border-color: #20a53a; box-shadow: 0 4px 14px rgba(32, 165, 58, .08); }
.tool-ico {
  width: 32px;
  height: 32px;
  margin-bottom: 6px;
  border-radius: 4px;
  background: #eef9f0;
  color: #20a53a;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.tool-name { font-size: 14px; font-weight: 600; color: #1a1a1a; }
.tool-desc { font-size: 12px; color: #86909c; }

@media (max-width: 1000px) {
  .result-layout { grid-template-columns: 1fr; }
  .map-body { flex: none; aspect-ratio: 849 / 559; min-height: 0; }
}
@media (max-width: 700px) {
  .hero-title { font-size: 36px; letter-spacing: 4px; margin-bottom: 12px; }
  .hero-subtitle { font-size: 15px; }
  .hero-links { font-size: 14px; }
  .hero-panel { margin-top: 0; height: auto; padding-bottom: 8px; }
  .hero-tabs-bar { height: auto; flex-wrap: wrap; }
  .hero-tab-item { height: 34px; padding-right: 12px; margin-right: 10px; }
  .hero-tab-item.active::after { right: 12px; }
  .boce-hero > .wrap,
  .test-result-page > .wrap { padding-left: 12px; padding-right: 12px; }
  .input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    height: auto;
  }
  .input-wrapper { grid-column: 1 / -1; }
  .start-btn { grid-column: 1 / -1; }
  .start-btn, .slow-btn { width: 100%; min-width: 0; padding: 0 12px; }
  .probe-hint { height: auto; line-height: 1.5; white-space: normal; }
  .probe-filter-row { height: auto; margin-top: 10px; row-gap: 8px; }
  .probe-filters { flex-wrap: wrap; gap: 12px; }
  .probe-dns-area { width: 100%; flex-wrap: wrap; gap: 6px 8px; }
  .probe-dns-input-wrap { flex: 1 1 100%; }
  .probe-dns-input-wrap input { width: 100%; }
  .overview-card { padding: 12px 14px 0; margin-top: 12px; }
  .overview-stats { grid-template-columns: repeat(2, 1fr); }
  .ov-value { font-size: 18px; }
  .map-tip { display: none; }
  .map-node-count { padding: 6px 8px; }
  .mnc-num { font-size: 18px; }
  .map-legend { left: 8px; right: 8px; bottom: 6px; flex-wrap: wrap; gap: 3px 10px; font-size: 10px; }
  .map-legend i { width: 8px; height: 8px; }
  .overview-table-card, .result-table-card { padding: 14px; margin-top: 12px; }
  .parse-stat-card { padding: 14px; margin-top: 12px; }
  .parse-stat-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3px 8px;
    padding: 8px 0;
  }
  .ps-main { flex: 1 1 100%; }
  .ps-count { margin-left: auto; }
  .ps-bar { order: 3; flex: 1 1 100%; }
  .result-head { flex-direction: column; align-items: stretch; gap: 8px; }
  .result-actions { justify-content: space-between; }
  .node-table thead { display: none; }
  .node-table, .node-table tbody, .node-table tr, .node-table td { display: block; width: 100%; }
  .node-table tr {
    border: 1px solid #eef0f3;
    border-radius: 2px;
    padding: 8px 10px;
    margin-bottom: 8px;
  }
  .node-table tr:hover td { background: transparent; }
  .node-table td {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    align-items: start;
    gap: 8px;
    padding: 3px 0;
    border: 0;
    font-size: 12px;
  }
  .node-table td::before {
    content: attr(data-label);
    color: #9aa2ad;
    font-weight: 400;
  }
  .node-table td.node-col {
    grid-template-columns: 1fr;
    padding-bottom: 6px;
    margin-bottom: 4px;
    border-bottom: 1px solid #f5f5f5;
  }
  .node-table td.node-col::before { display: none; }
  .node-table td.node-detail { display: block; }
  .node-table td.node-detail::before { display: block; margin-bottom: 2px; }
  .node-table td.empty { display: block; padding: 28px 0; }
  .node-table td.empty::before { display: none; }
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .hero-title { font-size: 28px; letter-spacing: 3px; }
  .test-result-page > .wrap { padding-left: 8px; padding-right: 8px; }
  .overview-table-card, .result-table-card { padding: 12px; }
  .parse-stat-card { padding: 12px; }
  .overview-table th, .overview-table td { padding: 8px; }
  .overview-table-card .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .node-table td { grid-template-columns: 56px minmax(0, 1fr); }
  .map-legend { gap: 3px 8px; font-size: 10px; }
  .result-actions .btn.sm { padding: 0 10px; }
  .tool-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   测速详细：列表 + 详情弹窗（版式参照 t.bt.cn）
   ========================================================================== */
.detail-list { border-top: 1px solid #f0f2f5; }
.detail-list-head,
.detail-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.5fr) minmax(90px, .9fr) minmax(140px, 1.3fr) 92px 72px 60px;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
}
.detail-list-head {
  height: 38px;
  background: #fafbfc;
  border-bottom: 1px solid #f5f5f5;
  font-size: 12px;
  font-weight: 400;
  color: #484848;
}
.detail-row {
  min-height: 54px;
  border-bottom: 1px solid #f5f5f5;
  font-size: 12px;
  color: #484848;
  transition: background .15s;
}
.detail-row:hover { background: #fbfdfb; }
.detail-list-empty { padding: 34px 0; text-align: center; font-size: 12px; color: #9aa2ad; }
.detail-name { display: block; font-size: 13px; font-weight: 500; color: #1a1a1a; }
.detail-region { display: block; margin-top: 2px; font-size: 11px; color: #9aa2ad; }
.detail-ip { word-break: break-all; }
.detail-ip .ip-geo,
.detail-ip .ip-extra { color: #9aa2ad; }
.detail-time { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.detail-time.fast { color: #20a53a; }
.detail-time.mid { color: #f69833; }
.detail-time.slow { color: #e61610; }
.detail-time.wait { color: #b0b6be; font-weight: 400; }
.detail-empty { color: #b0b6be; }
.link-btn {
  padding: 0;
  border: 0;
  background: transparent;
  color: #20a53a;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
}
.link-btn:hover { text-decoration: underline; }

/* 详情弹窗 */
.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 64px 16px 24px;
  background: rgba(17, 24, 39, .45);
  overflow-y: auto;
}
.modal-dialog {
  width: 680px;
  max-width: 100%;
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .18);
  animation: modal-in .16s ease;
}
@keyframes modal-in {
  from { transform: translateY(-8px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 12px;
  border-bottom: 1px solid #f0f2f5;
}
.modal-head h3 { font-size: 16px; color: #1a1a1a; }
.modal-head p { margin-top: 4px; font-size: 12px; color: #86909c; }
.modal-close {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #86909c;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}
.modal-close:hover { color: #1a1a1a; }
.modal-body { padding: 4px 20px 18px; max-height: 62vh; overflow-y: auto; }
.modal-foot {
  display: flex;
  justify-content: flex-end;
  padding: 12px 20px;
  border-top: 1px solid #f0f2f5;
}
.detail-section-title {
  margin: 16px 0 4px;
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
}
.kv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.kv {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed #f0f2f5;
  font-size: 12px;
}
.kv.full { grid-column: 1 / -1; }
.kv-label { flex: 0 0 auto; color: #86909c; }
.kv-value {
  flex: 1 1 auto;
  min-width: 0;
  color: #1a1a1a;
  font-weight: 500;
  text-align: right;
  word-break: break-all;
}
.kv-value.ok { color: #20a53a; }
.kv-value.bad { color: #e61610; }
.detail-error {
  margin-top: 14px;
  padding: 8px 12px;
  border: 1px solid #fbd5d5;
  border-radius: 2px;
  background: #fdeeee;
  color: #e61610;
  font-size: 12px;
  word-break: break-all;
}

@media (max-width: 700px) {
  .detail-list-head { display: none; }
  .detail-list-body { padding: 4px 0; }
  .detail-row {
    display: block;
    min-height: 0;
    padding: 10px 12px;
    margin: 10px 0;
    border: 1px solid #eef0f3;
    border-radius: 2px;
  }
  .detail-row:hover { background: #fff; }
  .detail-row > .dl-col {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 2px 0;
  }
  .detail-row > .dl-col::before {
    content: attr(data-label);
    flex: 0 0 auto;
    color: #9aa2ad;
    font-weight: 400;
  }
  .detail-row > .dl-node {
    display: block;
    padding-bottom: 6px;
    margin-bottom: 4px;
    border-bottom: 1px solid #f5f5f5;
  }
  .detail-row > .dl-node::before { display: none; }
  .modal-mask { padding: 24px 8px; }
  .modal-body { max-height: none; }
  .kv-grid { grid-template-columns: 1fr; }
}
