:root {
    --primary: #059669;
    --primary-hover: #047857;
    --primary-light: #ecfdf5;
    --bg-body: #f8fafc;
    --card-bg: #ffffff;
    --border-color: #f1f5f9;
    --border-subtle: #e2e8f0;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --radius-lg: 16px;
    --radius-md: 10px;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 1px 2px -1px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
    /* 延迟状态色 */
    --c-green: #059669;
    --c-yellow: #d97706;
    --c-orange: #ea580c;
    --c-red: #dc2626;
}
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
body { background-color: var(--bg-body); color: var(--text-main); line-height: 1.6; -webkit-font-smoothing: antialiased; }
.num { font-variant-numeric: tabular-nums; }

/* 顶部通栏 */
.top-banner { background: linear-gradient(135deg, #0f172a, #1e293b); color: #cbd5e1; padding: 10px 24px; font-size: 0.85rem; display: flex; justify-content: center; align-items: center; gap: 12px; letter-spacing: 0.3px; flex-wrap: wrap; text-align: center; }
.top-banner a { color: #34d399; text-decoration: none; font-weight: 500; }
.top-banner a:hover { text-decoration: underline; }

/* 顶级导航 */
.navbar { background: rgba(255,255,255,0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-subtle); padding: 0 40px; height: 52px; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 100; }
.logo-area { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.1rem; color: var(--text-main); text-decoration: none; letter-spacing: -0.5px; }
.logo-icon { width: 30px; height: 30px; background: var(--primary-light); color: var(--primary); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; }
.logo-badge { background: var(--primary-light); color: var(--primary); padding: 2px 8px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.nav-tools { display: flex; gap: 32px; font-size: 0.92rem; }
.nav-tools a { color: var(--text-muted); text-decoration: none; display: flex; align-items: center; gap: 8px; font-weight: 500; transition: color 0.2s; }
.nav-tools a:hover { color: var(--primary); }
.nav-right { display: flex; align-items: center; gap: 20px; font-size: 0.9rem; }
.ip-display { color: var(--text-muted); background: #f8fafc; padding: 6px 12px; border-radius: 6px; border: 1px solid var(--border-subtle); font-size: 0.85rem; }
.btn-start { background-color: var(--primary); color: white; padding: 9px 20px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 0.9rem; box-shadow: 0 4px 12px rgba(5,150,105,0.2); transition: all 0.2s ease; }
.btn-start:hover { background-color: var(--primary-hover); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(5,150,105,0.3); }
.btn-start.u-login { display: inline-flex; align-items: center; gap: 8px; }
.u-avatar { width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--primary); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; flex-shrink: 0; }

/* 二级导航 */
.sub-nav { background: var(--card-bg); border-bottom: 1px solid var(--border-subtle); padding: 0 40px; display: flex; justify-content: center; gap: 32px; font-size: 0.92rem; overflow-x: auto; position: sticky; top: 52px; z-index: 90; }
.sub-nav a { color: var(--text-muted); text-decoration: none; display: flex; align-items: center; gap: 8px; white-space: nowrap; padding: 14px 0; border-bottom: 2px solid transparent; font-weight: 500; transition: all 0.2s; }
.sub-nav a:hover { color: var(--text-main); }
.sub-nav a.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

.container { max-width: 1280px; margin: 32px auto; padding: 0 24px; }

/* 搜索测试卡 */
.search-card { background: var(--card-bg); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 36px; margin-bottom: 28px; box-shadow: var(--shadow-md); position: relative; overflow: hidden; }
.search-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, #10b981, #3b82f6); }
.search-box-row { display: flex; gap: 16px; margin-bottom: 24px; }
.url-input { flex-grow: 1; padding: 16px 20px; border: 2px solid #e2e8f0; border-radius: var(--radius-md); font-size: 1.05rem; outline: none; color: var(--text-main); background: #f8fafc; transition: all 0.2s ease; min-width: 0; }
.url-input:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px var(--primary-light); }
.btn-action { background: #0f172a; color: white; border: none; padding: 0 28px; border-radius: var(--radius-md); cursor: pointer; font-weight: 600; font-size: 0.95rem; display: flex; align-items: center; gap: 10px; transition: all 0.2s; white-space: nowrap; }
.btn-action:hover { background: #1e293b; transform: translateY(-1px); }
.btn-action.primary { background: var(--primary); }
.btn-action.primary:hover { background: var(--primary-hover); }
.btn-action:disabled { opacity: .6; cursor: not-allowed; }
.btn-action .spin { display: none; width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: rot .7s linear infinite; }
.btn-action.loading .spin { display: block; }
.btn-action.loading .fa, .btn-action.loading .go-ic { display: none; }
@keyframes rot { to { transform: rotate(360deg); } }

.filter-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.9rem; color: var(--text-muted); flex-wrap: wrap; gap: 16px; padding-top: 16px; border-top: 1px solid var(--border-color); }
.filter-options { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.filter-options label { display: flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 500; color: var(--text-main); }
.filter-options input[type=checkbox] { accent-color: var(--primary); width: 15px; height: 15px; cursor: pointer; }
.select-input { padding: 9px 12px; border: 1.5px solid var(--border-subtle); border-radius: var(--radius-md); font-size: 0.9rem; outline: none; background: #fff; color: var(--text-main); font-family: inherit; }
.select-input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-light); }
.dns-custom { padding: 6px 12px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 0.85rem; outline: none; }
.dns-custom:focus { border-color: var(--primary); }

/* 广告横幅 */
.ad-banner { background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); color: white; border-radius: var(--radius-lg); padding: 24px 32px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; box-shadow: var(--shadow-md); gap: 20px; flex-wrap: wrap; }
.ad-tag { background: #ef4444; color: white; font-size: 0.75rem; padding: 3px 8px; border-radius: 4px; font-weight: 700; margin-right: 8px; text-transform: uppercase; }
.ad-btn { background: var(--primary); color: white; padding: 10px 22px; border-radius: 8px; text-decoration: none; font-size: 0.9rem; font-weight: 600; transition: background 0.2s; white-space: nowrap; }
.ad-btn:hover { background: var(--primary-hover); }

/* 板块卡片 */
.section-card { background: var(--card-bg); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 32px; margin-bottom: 28px; box-shadow: var(--shadow-sm); }
.section-header { font-size: 1.1rem; font-weight: 700; margin-bottom: 24px; display: flex; align-items: center; justify-content: space-between; color: var(--text-main); letter-spacing: -0.3px; }
.section-header-title { display: flex; align-items: center; gap: 10px; }
.section-header-title::before { content: ''; width: 4px; height: 18px; background: var(--primary); border-radius: 2px; }

/* 表格 */
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.95rem; }
.data-table th, .data-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--border-color); }
.data-table th { color: var(--text-muted); font-weight: 600; background: #f8fafc; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; }
.data-table th:first-child { border-top-left-radius: 8px; border-bottom-left-radius: 8px; }
.data-table th:last-child { border-top-right-radius: 8px; border-bottom-right-radius: 8px; }
.data-table tbody tr { transition: background-color 0.15s ease; }
.data-table tbody tr:hover { background-color: #f8fafc; }
.data-table tbody tr:last-child td { border-bottom: none; }
.badge-status { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 0.9rem; }
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 3px rgba(16,185,129,0.15); }

/* ===== 实时拨测结果区（探测后出现） ===== */
.live-result { display: none; }
.live-result.show { display: block; animation: fadeUp .4s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.statusbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; background: var(--card-bg); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 16px 22px; box-shadow: var(--shadow-sm); margin-bottom: 20px; }
.statusbar .target { display: flex; align-items: center; gap: 12px; }
.statusbar .t-ic { width: 40px; height: 40px; border-radius: 10px; background: var(--primary-light); color: var(--primary); display: grid; place-items: center; font-size: 1.05rem; flex-shrink: 0; }
.statusbar .t-host { font-size: 15px; font-weight: 700; }
.statusbar .t-meta { font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.statusbar .prog { display: flex; align-items: center; gap: 12px; }
.prog-bar { width: 170px; height: 7px; background: var(--border-subtle); border-radius: 999px; overflow: hidden; }
.prog-bar > i { display: block; height: 100%; width: 0; background: var(--primary); border-radius: 999px; transition: width .35s ease; }
.prog-txt { font-size: 13px; color: var(--text-muted); white-space: nowrap; }
.status-chip { font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 999px; }
.status-chip.running { background: var(--primary-light); color: var(--primary); }
.status-chip.done { background: #ecfdf5; color: #059669; }
.status-chip.failed { background: #fef2f2; color: #dc2626; }
.demo-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: #fefce8; color: #a16207; border: 1px solid #fde047; vertical-align: 2px; margin-left: 6px; white-space: nowrap; }

.dash { display: grid; grid-template-columns: 65fr 35fr; gap: 16px; margin-bottom: 16px; align-items: stretch; }
.dash .panel { padding: 0; overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border-color); }
.panel-head h3 { font-size: 0.98rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.panel-head .legend { display: flex; gap: 14px; font-size: 11.5px; color: var(--text-muted); flex-wrap: wrap; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; }
#map { width: 100%; height: 100%; min-height: 470px; }
.map-fallback { min-height: 470px; display: grid; place-items: center; color: var(--text-muted); font-size: 14px; }
.map-panel { position: relative; display: flex; flex-direction: column; }
.map-panel .panel-head { flex-shrink: 0; }
.map-toggle { position: absolute; right: 16px; bottom: 16px; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border-subtle); background: #fff; color: var(--text-muted); cursor: pointer; display: grid; place-items: center; font-size: 1rem; box-shadow: var(--shadow-sm); transition: all .2s; z-index: 5; }
.map-toggle:hover { border-color: var(--primary); color: var(--primary); }
.map-toggle.active { color: #fff; background: var(--primary); border-color: var(--primary); box-shadow: 0 4px 12px rgba(16,185,129,.35); }

/* 右侧统计表 */
.stats-panel { display: flex; flex-direction: column; }
.stats-tabs { display: flex; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--border-color); }
.stats-tabs .tab { flex: 1; padding: 8px 10px; border: none; background: #f1f5f9; color: var(--text-muted); border-radius: 8px; font-size: 0.84rem; font-weight: 600; cursor: pointer; transition: all .15s; white-space: nowrap; }
.stats-tabs .tab.active { background: var(--primary); color: #fff; }
.stats-count { padding: 14px 16px 10px; }
.sc-txt { display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 7px; }
.sc-pct { font-weight: 700; color: var(--text-main); }
.stats-bar { height: 7px; background: var(--border-subtle); border-radius: 999px; overflow: hidden; }
.stats-bar > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #10b981, #3b82f6); border-radius: 999px; transition: width .35s ease; }
.stats-table-scroll { flex: 1; min-height: 0; overflow-y: auto; }
.stats-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.78rem; table-layout: fixed; }
.stats-table th { position: sticky; top: 0; z-index: 3; background: #f8fafc; color: var(--text-muted); font-weight: 600; font-size: 0.66rem; text-transform: uppercase; letter-spacing: .4px; padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--border-subtle); white-space: nowrap; }
.stats-table th:nth-child(1) { width: 30%; }
.stats-table th:nth-child(2) { width: 26%; }
.stats-table th:nth-child(3) { width: 26%; }
.stats-table th:nth-child(4) { width: 18%; }
.stats-table td { padding: 8px 12px; border-bottom: 1px solid var(--border-color); color: #334155; vertical-align: middle; line-height: 1.35; overflow: hidden; }
.stats-table tbody tr:last-child td { border-bottom: none; }
.stats-table td.region { font-weight: 600; color: var(--text-main); white-space: nowrap; }
.stats-table td.fast { color: var(--c-green); font-weight: 600; white-space: nowrap; }
.stats-table td.slow { color: var(--c-red); font-weight: 600; white-space: nowrap; }
.stats-table td.avg { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text-main); white-space: nowrap; }
.stats-table .node-sub { display: inline-block; font-size: 0.66rem; color: var(--text-muted); font-weight: 400; margin-left: 6px; max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }

/* 域名解析统计 */
.resolve-card { padding: 0; overflow: hidden; }
.resolve-card .panel-head { border-bottom: 1px solid var(--border-color); }
.expand-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border-subtle); background: #fff; color: var(--text-muted); padding: 6px 12px; border-radius: 8px; font-size: 0.8rem; cursor: pointer; transition: all .15s; }
.expand-btn:hover { border-color: var(--primary); color: var(--primary); }
.expand-btn i { transition: transform .2s; }
.resolve-card.collapsed .resolve-grid { display: none; }
.resolve-card.collapsed .expand-btn i { transform: rotate(-90deg); }
.resolve-grid { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 36px; row-gap: 2px; padding: 10px 20px 12px; }
.resolve-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.resolve-ip { flex: 0 0 170px; font-family: monospace; font-size: 0.8rem; font-weight: 600; color: var(--text-main); display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.copy-btn { border: none; background: none; color: var(--text-muted); cursor: pointer; font-size: 0.7rem; padding: 2px 5px; border-radius: 5px; transition: color .15s; }
.copy-btn:hover { color: var(--primary); }
.resolve-spark { flex: 1; height: 18px; min-width: 60px; }
.resolve-pct { flex: 0 0 auto; font-size: 0.84rem; font-weight: 700; color: var(--primary); white-space: nowrap; font-variant-numeric: tabular-nums; }
.resolve-pct em { font-style: normal; font-size: 0.66rem; color: var(--text-muted); font-weight: 400; margin-left: 6px; }

/* 节点明细表 */
.node-table-scroll { overflow-x: auto; }
.node-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.9rem; table-layout: fixed; }
.node-table th { position: sticky; top: 0; z-index: 4; background: #f8fafc; color: var(--text-muted); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border-subtle); white-space: nowrap; }
.node-table td { padding: 11px 16px; border-bottom: 1px solid var(--border-color); color: #334155; vertical-align: middle; white-space: nowrap; }
.node-table tbody tr:hover { background-color: #f8fafc; }
.node-table tbody tr:last-child td { border-bottom: none; }

/* 固定列宽 + 长内容省略：保证每行等高、状态列对齐 */
.node-table th:nth-child(1), .node-table td:nth-child(1) { width: 18%; }
.node-table th:nth-child(2), .node-table td:nth-child(2) { width: 16%; }
.node-table th:nth-child(3), .node-table td:nth-child(3) { width: 8%; }
.node-table th:nth-child(4), .node-table td:nth-child(4) { width: 14%; }
.node-table th:nth-child(5), .node-table td:nth-child(5) { width: 9%; }
.node-table th:nth-child(6), .node-table td:nth-child(6) { width: 7%; }
.node-table th:nth-child(7), .node-table td:nth-child(7) { width: 7%; }
.node-table th:nth-child(8), .node-table td:nth-child(8) { width: 7%; }
.node-table th:nth-child(9), .node-table td:nth-child(9) { width: 6%; }
.node-table th:nth-child(10), .node-table td:nth-child(10) { width: 8%; }
.node-table td:nth-child(1), .node-table td:nth-child(2), .node-table td:nth-child(3), .node-table td:nth-child(4) { overflow: hidden; text-overflow: ellipsis; }

/* 网站测速（HTTP）9 列宽度覆盖 */
.node-table.http-table th:nth-child(1), .node-table.http-table td:nth-child(1) { width: 19%; }
.node-table.http-table th:nth-child(2), .node-table.http-table td:nth-child(2) { width: 13%; }
.node-table.http-table th:nth-child(3), .node-table.http-table td:nth-child(3) { width: 8%; }
.node-table.http-table th:nth-child(4), .node-table.http-table td:nth-child(4) { width: 8%; }
.node-table.http-table th:nth-child(5), .node-table.http-table td:nth-child(5) { width: 10%; }
.node-table.http-table th:nth-child(6), .node-table.http-table td:nth-child(6) { width: 10%; }
.node-table.http-table th:nth-child(7), .node-table.http-table td:nth-child(7) { width: 10%; }
.node-table.http-table th:nth-child(8), .node-table.http-table td:nth-child(8) { width: 14%; }
.node-table.http-table th:nth-child(9), .node-table.http-table td:nth-child(9) { width: 8%; text-align: center; }

/* HTTP 响应头（行内展开 + 键值对/原始切换） */
.header-toggle { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--border-subtle); background: #fff; color: var(--primary); padding: 5px 11px; border-radius: 7px; font-size: 0.76rem; font-weight: 600; cursor: pointer; transition: all .15s; font-family: inherit; }
.header-toggle:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.header-toggle i { font-size: 0.72rem; }
.header-expand-row > td { padding: 0; white-space: normal; background: #fbfdfc; }
.header-box { padding: 14px 18px; }
.hb-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.hb-title { font-size: 0.82rem; font-weight: 700; color: var(--text-main); display: inline-flex; align-items: center; gap: 7px; }
.hb-title i { color: var(--primary); }
.hb-seg { display: inline-flex; border: 1px solid var(--border-subtle); border-radius: 8px; overflow: hidden; background: #fff; }
.hb-seg .seg { border: none; background: transparent; color: var(--text-muted); padding: 5px 13px; font-size: 0.76rem; font-weight: 600; cursor: pointer; font-family: inherit; transition: all .15s; }
.hb-seg .seg + .seg { border-left: 1px solid var(--border-subtle); }
.hb-seg .seg.active { background: var(--primary); color: #fff; }
.hb-body { max-height: 340px; overflow: auto; }
.hb-status { padding: 8px 12px; margin-bottom: 10px; background: #f1f5f9; border-radius: 8px; font-size: 0.8rem; color: var(--text-muted); }
.hb-code { font-weight: 700; font-family: 'Inter', monospace; margin-left: 4px; }
.hb-row { display: flex; align-items: flex-start; gap: 14px; padding: 7px 0; border-bottom: 1px solid var(--border-color); }
.hb-row:last-child { border-bottom: none; }
.hb-key { flex: 0 0 220px; font-size: 0.8rem; line-height: 1.5; }
.hb-zh { display: block; font-weight: 600; color: var(--text-main); }
.hb-en { display: block; color: var(--text-muted); font-family: 'Inter', monospace; font-size: 0.72rem; word-break: break-all; margin-top: 1px; }
.hb-val { flex: 1; color: #475569; font-family: 'Inter', monospace; font-size: 0.8rem; word-break: break-all; }
.header-empty { color: var(--text-muted); font-size: 0.82rem; padding: 8px 0; }
.hb-pre { margin: 0; font-family: 'Inter', monospace; font-size: 0.8rem; color: #475569; white-space: pre-wrap; word-break: break-all; line-height: 1.6; }

/* 路由追踪 3 列宽度覆盖 */
.node-table.trace-table th:nth-child(1), .node-table.trace-table td:nth-child(1) { width: 8%; }
.node-table.trace-table th:nth-child(2), .node-table.trace-table td:nth-child(2) { width: 52%; }
.node-table.trace-table th:nth-child(3), .node-table.trace-table td:nth-child(3) { width: 40%; }

/* DNS 解析 5 列宽度覆盖 */
.node-table.dns-table th:nth-child(1), .node-table.dns-table td:nth-child(1) { width: 20%; }
.node-table.dns-table th:nth-child(2), .node-table.dns-table td:nth-child(2) { width: 15%; }
.node-table.dns-table th:nth-child(3), .node-table.dns-table td:nth-child(3) { width: 8%; }
.node-table.dns-table th:nth-child(4), .node-table.dns-table td:nth-child(4) { width: 42%; }
.node-table.dns-table th:nth-child(5), .node-table.dns-table td:nth-child(5) { width: 15%; }
.node-table th:nth-child(10) { text-align: center; }
.node-table td:nth-child(10) { text-align: center; }
.node-table tr.flash { animation: flashRow 1.1s ease; }
@keyframes flashRow { 0% { background: var(--primary-light); } 100% { background: transparent; } }
.node-table tr.row-in { animation: rowIn .3s ease; }
@keyframes rowIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }
td.node-name { font-weight: 600; color: var(--text-main); }
.sponsor { font-size: 10.5px; font-weight: 600; color: var(--primary); background: var(--primary-light); border-radius: 5px; padding: 1px 6px; margin-left: 6px; white-space: nowrap; }
.isp-tag { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 6px; display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.isp-tag.电信 { color: #2563eb; background: #eff6ff; }
.isp-tag.联通 { color: #7c3aed; background: #f5f3ff; }
.isp-tag.移动 { color: #059669; background: #ecfdf5; }
.isp-tag.BGP { color: #d97706; background: #fffbeb; }
.isp-tag.海外 { color: #64748b; background: #f1f5f9; }
.isp-tag.教育网 { color: #0891b2; background: #ecfeff; }
.isp-tag.阿里云 { color: #ea580c; background: #fff7ed; }
.isp-tag.腾讯云 { color: #2563eb; background: #eff6ff; }
td.rtt { font-weight: 700; font-size: 14px; font-family: 'Inter', monospace; }
.rtt.good { color: var(--c-green); }
.rtt.mid { color: var(--c-yellow); }
.rtt.slow { color: var(--c-orange); }
.rtt.bad { color: var(--c-red); }
td.ttl { color: var(--text-muted); font-variant-numeric: tabular-nums; }
td.loss-ok { color: var(--c-green); font-weight: 600; font-variant-numeric: tabular-nums; }
td.loss-mid { color: var(--c-yellow); font-weight: 700; font-variant-numeric: tabular-nums; }
td.loss-bad { color: var(--c-red); font-weight: 700; font-variant-numeric: tabular-nums; }
.st-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; }
.st-dot { width: 7px; height: 7px; border-radius: 50%; }
.st-tag.ok { color: var(--c-green); } .st-tag.ok .st-dot { background: var(--c-green); }
.st-tag.timeout { color: var(--c-red); } .st-tag.timeout .st-dot { background: var(--c-red); }
.st-tag.pending { color: var(--text-muted); } .st-tag.pending .st-dot { background: #cbd5e1; animation: pulse 1.1s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.loading-row td { text-align: center; padding: 26px; color: var(--text-muted); }
.loader { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; }
.loader .dots { display: inline-flex; gap: 4px; }
.loader .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); animation: bounce 1.2s infinite; }
.loader .dots i:nth-child(2) { animation-delay: .15s; }
.loader .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%,100% { transform: translateY(0); opacity:.4; } 50% { transform: translateY(-4px); opacity:1; } }
.empty-row td { text-align: center; padding: 40px; color: var(--text-muted); }
/* 运营商/海外筛选标签 */
.isp-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border-color); }
.isp-tab { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--border-subtle); background: #fff; color: var(--text-muted); font-size: 0.82rem; font-weight: 500; cursor: pointer; transition: all .15s; font-family: inherit; }
.isp-tab:hover { border-color: var(--primary); color: var(--primary); }
.isp-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.isp-tab .cnt { font-size: 0.74rem; font-weight: 600; opacity: .8; font-variant-numeric: tabular-nums; }
section.module[hidden] { display: none !important; }
.trace-node-list { display: flex; flex-direction: column; gap: 8px; padding: 4px 16px 16px; }
.trace-node { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border-color); border-radius: var(--radius-md); cursor: pointer; transition: all .15s; }
.trace-node:hover { border-color: var(--primary); }
.trace-node.active { border-color: var(--primary); background: var(--primary-light); }
.trace-node .tn-name { font-weight: 600; color: var(--text-main); }
.trace-node .tn-loc { color: var(--text-muted); font-size: 0.82rem; flex: 1; }
.tn-st { font-size: 0.75rem; font-weight: 600; padding: 2px 8px; border-radius: 5px; white-space: nowrap; }
.tn-st.ok { color: var(--c-green); background: #ecfdf5; }
.tn-st.pending { color: var(--text-muted); background: #f1f5f9; }
.dns-type { display: inline-block; min-width: 46px; text-align: center; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 6px; color: #fff; }
.dns-type.A { background: #059669; } .dns-type.AAAA { background: #0891b2; }
.dns-type.CNAME { background: #2563eb; } .dns-type.MX { background: #d97706; }
.dns-type.NS { background: #7c3aed; } .dns-type.TXT { background: #64748b; }
.dns-type.SOA { background: #ea580c; }
.toast { position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%); background: rgba(15,23,42,.94); color: #fff; padding: 10px 20px; border-radius: 8px; font-size: 0.9rem; z-index: 9999; opacity: 0; pointer-events: none; transition: opacity .25s; }
.toast.show { opacity: 1; }

footer { background: #fff; border-top: 1px solid var(--border-subtle); padding: 48px 0; margin-top: 60px; color: var(--text-muted); font-size: 0.9rem; }
.footer-content { max-width: 1280px; margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--text-main); }

@media (max-width: 960px) {
    .dash { grid-template-columns: 1fr; }
    .resolve-grid { grid-template-columns: 1fr; }
    .search-box-row { flex-direction: column; }
    .btn-action { justify-content: center; height: 48px; }
    .navbar { padding: 0 20px; }
    .nav-tools { display: none; }
    .sub-nav { padding: 0 20px; }
}
