/* ============================================================
   新版探测站 · 全站组件样式（components.css）
   风格：nx 设计系统（深蓝顶栏 + 浅色卡片 + 蓝色主色 + 延迟色阶），由 three.css 转换配色
   类名 tp-（兼容探测 JS 动态内容）；配色 token tp-/nx- 双别名
   依赖字体：系统栈（Noto Sans SC / PingFang SC / Microsoft YaHei）
   ============================================================ */

/* ===== Design tokens ===== */
/* ===== nx 设计 token（由 three.css 映射，配色统一到 nx 风格；tp-/nx- 双别名兼容） ===== */
:root{
  --tp-dark:#1b2434;
  --nx-dark:#1b2434;
  --tp-dark-2:#232f44;
  --nx-dark-2:#232f44;
  --tp-dark-3:#131c2b;
  --nx-dark-3:#131c2b;
  --tp-brand:#2563eb;
  --nx-brand:#2563eb;
  --tp-brand-dark:#1d4ed8;
  --nx-brand-dark:#1d4ed8;
  --tp-brand-soft:#eaf1ff;
  --nx-brand-soft:#eaf1ff;
  --tp-green:#16a34a;
  --nx-green:#16a34a;
  --tp-green-dark:#15803d;
  --nx-green-dark:#15803d;
  --tp-orange:#f59e0b;
  --nx-orange:#f59e0b;
  --tp-red:#ef4444;
  --nx-red:#ef4444;
  --tp-bg:#f4f6fa;
  --nx-bg:#f4f6fa;
  --tp-card:#ffffff;
  --nx-card:#ffffff;
  --tp-border:#e8edf4;
  --nx-border:#e8edf4;
  --tp-text:#1e293b;
  --nx-text:#1e293b;
  --tp-sub:#475569;
  --nx-sub:#475569;
  --tp-muted:#94a3b8;
  --nx-muted:#94a3b8;
  --tp-radius:12px;
  --nx-radius:12px;
  --tp-radius-sm:8px;
  --nx-radius-sm:8px;
  --tp-shadow:0 1px 3px rgba(16,24,40,.06);
  --nx-shadow:0 1px 3px rgba(16,24,40,.06);
  --tp-shadow-lg:0 12px 32px rgba(16,24,40,.14);
  --nx-shadow-lg:0 12px 32px rgba(16,24,40,.14);
  --tp-max:1180px;
  --nx-max:1180px;
  --tp-grade-a:#22c55e;
  --nx-grade-a:#22c55e;
  --tp-grade-b:#84cc16;
  --nx-grade-b:#84cc16;
  --tp-grade-c:#f59e0b;
  --nx-grade-c:#f59e0b;
  --tp-grade-d:#f97316;
  --nx-grade-d:#f97316;
  --tp-grade-f:#ef4444;
  --nx-grade-f:#ef4444;
}
*{box-sizing:border-box;margin:0;padding:0}
html,body{font-family:"Noto Sans SC","PingFang SC","Microsoft YaHei",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;background:var(--tp-bg);color:var(--tp-text);font-size:14px;line-height:1.55;-webkit-font-smoothing:antialiased;overflow-x:clip}
a{color:var(--tp-brand);text-decoration:none}
a:hover{text-decoration:underline}
button{font-family:inherit;cursor:pointer}
img{max-width:100%}
h1.tp-sr,h2.tp-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* ============================================================
   页头品牌条（深炭色）
   ============================================================ */
.tp-header{background:var(--tp-dark);color:#e7ebf2}
.tp-header-inner{max-width:var(--tp-max);margin:0 auto;padding:14px 20px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.tp-brand{display:inline-flex;align-items:center;gap:10px;color:#fff;text-decoration:none}
.tp-brand:hover{text-decoration:none}
.tp-brand-mark{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:9px;background:linear-gradient(135deg,var(--tp-brand),#6d8bff);color:#fff;box-shadow:0 2px 8px rgba(62,99,244,.45)}
.tp-brand-mark svg{width:20px;height:20px}
.tp-brand-logo{height:36px;width:auto;max-width:180px;object-fit:contain;display:block}
.tp-brand-text{font-size:19px;font-weight:700;letter-spacing:.3px;white-space:nowrap}
.tp-brand-badge{font-size:11px;color:#aeb6c4;border:1px solid #3a414b;border-radius:20px;padding:2px 9px;white-space:nowrap;letter-spacing:.5px}
.tp-header-right{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.tp-header-link{color:#c3cad6;font-size:13px;text-decoration:none;transition:color .15s}
.tp-header-link:hover{color:#fff;text-decoration:none}
.tp-header-sep{width:1px;height:14px;background:#3a414b}
.tp-header-user{display:inline-flex;align-items:center;gap:6px;color:#fff;font-size:13px;text-decoration:none}
.tp-header-user:hover{color:#cdd9ff;text-decoration:none}
.tp-header-cta{display:inline-flex;align-items:center;height:32px;padding:0 14px;border-radius:7px;background:var(--tp-brand);color:#fff;font-size:13px;font-weight:600;text-decoration:none;transition:background .15s}
.tp-header-cta:hover{background:var(--tp-brand-dark);text-decoration:none;color:#fff}

/* ============================================================
   主菜单导航条（更深一档深色，sticky）
   ============================================================ */
.tp-nav{background:var(--tp-dark-2);position:sticky;top:0;z-index:100;box-shadow:0 2px 10px rgba(0,0,0,.25)}
.tp-nav-inner{max-width:var(--tp-max);margin:0 auto;padding:0 12px;display:flex;align-items:center}
.tp-menu{display:flex;align-items:center;list-style:none;gap:2px;flex-wrap:wrap}
.tp-menu>li{position:relative}
.tp-menu-link{display:flex;align-items:center;gap:6px;color:#c3cad6;padding:13px 15px;font-size:14px;font-weight:500;text-decoration:none;position:relative;white-space:nowrap;cursor:pointer;border-radius:6px;transition:color .15s,background .15s}
.tp-menu-link:hover{color:#fff;background:rgba(255,255,255,.07);text-decoration:none}
.tp-menu-link.is-active{color:#fff}
.tp-menu-link.is-active::after{content:"";position:absolute;left:14px;right:14px;bottom:6px;height:3px;border-radius:2px;background:var(--tp-brand)}
/* 激活的下拉分组（如 IPv6 检测页）：给分组 toggle 同样的高亮下划线 */
.tp-drop.is-active>.tp-menu-link{color:#fff}
.tp-drop.is-active>.tp-menu-link::after{content:"";position:absolute;left:14px;right:14px;bottom:6px;height:3px;border-radius:2px;background:var(--tp-brand)}
.tp-menu-link svg{flex-shrink:0;opacity:.85}
.tp-drop-toggle .tp-caret,.tp-drop-toggle svg{transition:transform .18s}
.tp-drop:hover .tp-drop-toggle svg{transform:rotate(180deg)}
.tp-drop-menu{position:absolute;top:100%;left:0;min-width:176px;background:#fff;border-radius:10px;box-shadow:var(--tp-shadow-lg);padding:6px;list-style:none;display:none;z-index:200;border:1px solid var(--tp-border)}
.tp-drop:hover .tp-drop-menu,.tp-drop:focus-within .tp-drop-menu{display:block}
.tp-drop-item{display:block;padding:9px 12px;border-radius:7px;font-size:13px;color:var(--tp-text);text-decoration:none;transition:background .12s,color .12s}
.tp-drop-item:hover{background:var(--tp-brand-soft);color:var(--tp-brand);text-decoration:none}

/* 汉堡按钮（仅移动端） */
.tp-nav-toggle{display:none;flex-direction:column;justify-content:center;gap:4px;width:40px;height:40px;padding:8px;background:transparent;border:none;border-radius:6px;cursor:pointer;margin-left:auto}
.tp-nav-toggle span{display:block;width:22px;height:2px;background:#e7ebf2;border-radius:1px;transition:transform .25s,opacity .25s}
.tp-nav-toggle:hover{background:rgba(255,255,255,.12)}
.tp-nav-toggle.is-active span:nth-child(1){transform:translateY(6px) rotate(45deg)}
.tp-nav-toggle.is-active span:nth-child(2){opacity:0}
.tp-nav-toggle.is-active span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}

/* 移动抽屉 */
.tp-drawer{position:fixed;top:0;left:0;bottom:0;width:280px;max-width:82vw;background:var(--tp-dark-3);color:#e7ebf2;transform:translateX(-100%);transition:transform .28s cubic-bezier(.4,0,.2,1);z-index:1200;overflow-y:auto;padding-bottom:20px;display:block;-webkit-overflow-scrolling:touch;box-shadow:2px 0 24px rgba(0,0,0,.4)}
.tp-drawer.is-open{transform:translateX(0)}
.tp-drawer-mask{position:fixed;inset:0;background:rgba(0,0,0,.5);opacity:0;visibility:hidden;transition:opacity .28s,visibility .28s;z-index:1150}
.tp-drawer-mask.is-open{opacity:1;visibility:visible}
.tp-drawer-head{display:flex;align-items:center;justify-content:space-between;padding:16px 18px;border-bottom:1px solid rgba(255,255,255,.08)}
.tp-drawer-close{width:32px;height:32px;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.1);border:none;border-radius:8px;color:#fff;font-size:18px;line-height:1;cursor:pointer}
.tp-drawer-close:hover{background:rgba(255,255,255,.2)}
.tp-drawer-list{list-style:none;padding:8px 0}
.tp-drawer-link{display:block;padding:12px 20px;color:#dbe1ea;font-size:14px;text-decoration:none;border-left:3px solid transparent;transition:background .15s}
.tp-drawer-link:hover{background:rgba(255,255,255,.06);color:#fff;text-decoration:none}
.tp-drawer-link.is-active{color:#fff;border-left-color:var(--tp-brand);background:linear-gradient(90deg,rgba(62,99,244,.22),transparent)}
.tp-drawer-group{margin-top:4px}
.tp-drawer-label{display:block;padding:10px 20px 4px;font-size:11px;letter-spacing:1px;color:#8a93a3;text-transform:uppercase}
.tp-drawer-sub{display:block;padding:9px 20px 9px 34px;color:#b9c1cd;font-size:13px;text-decoration:none}
.tp-drawer-sub:hover{background:rgba(255,255,255,.06);color:#fff;text-decoration:none}
body.tp-drawer-locked{overflow:hidden}
@media (max-width:900px){
  .tp-menu{display:none}
  .tp-nav-toggle{display:flex}
  .tp-header-right .tp-header-link{display:none}
  .tp-header-right .tp-header-sep{display:none}
  .tp-brand-badge{display:none}
}

/* ============================================================
   页面容器 / 面包屑 / 卡片
   ============================================================ */
.tp-container{max-width:var(--tp-max);margin:0 auto;padding:18px 20px 30px}
.tp-breadcrumb{background:#fff;border-bottom:1px solid var(--tp-border)}
.tp-breadcrumb-inner{max-width:var(--tp-max);margin:0 auto;padding:10px 20px;display:flex;align-items:center;gap:6px;color:var(--tp-sub);font-size:13px;flex-wrap:wrap}
.tp-breadcrumb a{color:var(--tp-brand);text-decoration:none}
.tp-breadcrumb .sep{color:#c3cad6}
.tp-card{background:var(--tp-card);border:1px solid var(--tp-border);border-radius:var(--tp-radius);box-shadow:var(--tp-shadow);margin-bottom:16px;overflow:hidden}
.tp-card-head{padding:14px 20px;border-bottom:1px solid var(--tp-border);display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.tp-card-body{padding:16px 20px}
.tp-card-title{font-size:16px;font-weight:700;color:var(--tp-text);display:flex;align-items:center;gap:8px;margin:0}
.tp-card-title::before{content:"";width:4px;height:16px;border-radius:2px;background:linear-gradient(180deg,var(--tp-brand),#7c9bff)}
.tp-note{font-size:12px;color:var(--tp-sub);font-weight:400}

/* ============================================================
   探测表单卡（输入 + 按钮 + 筛选）
   ============================================================ */
.tp-probe-form{padding:20px 22px;background:
  radial-gradient(600px 220px at 88% -40%,rgba(62,99,244,.10),transparent 70%),
  radial-gradient(420px 200px at -5% 120%,rgba(22,163,74,.08),transparent 70%),
  #fff}
.tp-form-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.tp-input-wrap{flex:1;min-width:280px;position:relative;z-index:1}
.tp-input-wrap.history-active{z-index:30}
.tp-input-label{display:block;font-size:12.5px;font-weight:600;color:var(--tp-sub);margin-bottom:6px;letter-spacing:.3px}
.tp-target-input{width:100%;height:46px;padding:0 42px 0 14px;border:1.5px solid #d5dbe6;border-radius:9px;background:#fff;font-size:15px;font-family:inherit;outline:none;color:var(--tp-text);transition:border-color .15s,box-shadow .15s}
.tp-target-input::placeholder{color:var(--tp-muted)}
.tp-target-input:focus{border-color:var(--tp-brand);box-shadow:0 0 0 3px rgba(62,99,244,.15)}
.tp-clear-icon{position:absolute;right:14px;bottom:14px;width:18px;height:18px;color:var(--tp-muted);cursor:pointer;display:none}
.tp-target-input:not(:placeholder-shown)~.tp-clear-icon{display:block}
.tp-clear-icon:hover{color:var(--tp-text)}
.tp-btn-group{display:inline-flex;align-items:center;gap:10px;flex-wrap:wrap;padding-top:20px}
.tp-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:44px;padding:0 20px;border:none;border-radius:9px;font-size:14px;font-weight:600;color:#fff;transition:filter .15s,transform .05s,background .15s;white-space:nowrap;box-shadow:0 2px 6px rgba(0,0,0,.12)}
.tp-btn:hover{filter:brightness(1.08);text-decoration:none}
.tp-btn:active{transform:translateY(1px)}
.tp-btn:disabled{opacity:.55;cursor:not-allowed;filter:none}
.tp-btn-primary{background:linear-gradient(135deg,var(--tp-brand),var(--tp-brand-dark))}
.tp-btn-success{background:linear-gradient(135deg,#22b662,var(--tp-green-dark))}
.tp-btn-ghost{background:#fff;color:var(--tp-sub);border:1.5px solid #d5dbe6;box-shadow:none}
.tp-btn-ghost:hover{color:var(--tp-brand);border-color:var(--tp-brand);filter:none}
.tp-btn.is-loading{cursor:wait;animation:tp-btn-pulse 1.4s ease-in-out infinite}
.tp-btn.is-loading svg{animation:tp-spin 1s linear infinite}
@keyframes tp-btn-pulse{0%,100%{box-shadow:0 2px 6px rgba(0,0,0,.12),0 0 0 0 rgba(62,99,244,.35)}50%{box-shadow:0 2px 6px rgba(0,0,0,.12),0 0 0 6px rgba(62,99,244,0)}}
@keyframes tp-spin{to{transform:rotate(360deg)}}
/* 「点击开始测试」悬浮提示 */
#singleBtn{position:relative}
.tp-start-hint{position:absolute;bottom:100%;left:50%;transform:translateX(-50%) translateY(4px);z-index:60;pointer-events:none;opacity:0;visibility:hidden;transition:opacity .2s,transform .2s,visibility .2s}
.tp-start-hint.show{opacity:1;visibility:visible;transform:translateX(-50%) translateY(-6px)}
.tp-start-hint-bubble{background:#fff;color:var(--tp-red);padding:6px 12px;border-radius:7px;font-size:12px;font-weight:600;white-space:nowrap;box-shadow:0 4px 14px rgba(0,0,0,.15);border:1px solid #fecaca;display:inline-flex;align-items:center;gap:5px}
.tp-start-hint-bubble svg{width:13px;height:13px;flex-shrink:0}
.tp-start-hint-arrow{position:absolute;left:50%;top:100%;transform:translateX(-50%);width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #fff}
@keyframes tp-hint-pulse{0%,100%{box-shadow:0 4px 14px rgba(0,0,0,.15),0 0 0 0 rgba(220,38,38,.25)}50%{box-shadow:0 4px 14px rgba(0,0,0,.15),0 0 0 5px rgba(220,38,38,0)}}
.tp-start-hint.show .tp-start-hint-bubble{animation:tp-hint-pulse 2s ease-in-out infinite}

/* 筛选行：运营商 chips + DNS 分段控件 */
.tp-controls-row{display:flex;flex-direction:column;align-items:flex-start;gap:12px;margin-top:16px}
.tp-chip-row{display:flex;gap:8px;flex-wrap:wrap}
.tp-chip{display:inline-flex;align-items:center;gap:5px;padding:7px 14px;border:1.5px solid #d5dbe6;border-radius:20px;font-size:13px;color:var(--tp-sub);background:#fff;cursor:pointer;user-select:none;transition:all .15s}
.tp-chip:hover{border-color:var(--tp-brand);color:var(--tp-brand)}
.tp-chip.active{background:var(--tp-brand);border-color:var(--tp-brand);color:#fff;font-weight:600}
.tp-chip input{display:none}
.tp-dns-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:13px;color:var(--tp-sub)}
.tp-seg{display:inline-flex;background:#eef1f6;border:1px solid #e2e7ef;border-radius:8px;padding:3px;gap:2px}
.tp-seg button{border:none;background:transparent;color:var(--tp-sub);font-family:inherit;font-size:13px;font-weight:500;padding:6px 14px;border-radius:6px;transition:all .15s;white-space:nowrap}
.tp-seg button:hover{color:var(--tp-brand);background:rgba(62,99,244,.08)}
.tp-seg button.active{background:#fff;color:var(--tp-brand);font-weight:600;box-shadow:0 1px 3px rgba(16,24,40,.12)}
.tp-dns-input{height:34px;width:170px;padding:0 10px;border:1.5px solid #d5dbe6;border-radius:7px;font-family:inherit;font-size:13px;outline:none;background:#fff;color:var(--tp-text)}
.tp-dns-input:focus{border-color:var(--tp-brand);box-shadow:0 0 0 3px rgba(62,99,244,.12)}
.tp-dns-input:disabled{background:#f2f4f8;color:var(--tp-muted);cursor:not-allowed;border-color:#e2e7ef}

/* ============================================================
   实时概览统计条
   ============================================================ */
.tp-stats-strip{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin-bottom:16px}
.tp-stat{background:var(--tp-card);border:1px solid var(--tp-border);border-radius:var(--tp-radius);padding:14px 16px;box-shadow:var(--tp-shadow)}
.tp-stat-label{font-size:12px;color:var(--tp-sub);display:flex;align-items:center;gap:5px}
.tp-stat-value{font-size:22px;font-weight:700;margin-top:4px;font-variant-numeric:tabular-nums;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.tp-stat-value small{font-size:12px;font-weight:500;color:var(--tp-muted);margin-left:2px}
.tp-stat-sub{font-size:11px;color:var(--tp-muted);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ============================================================
   状态条 + 地图/汇总双栏
   ============================================================ */
.tp-status-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 20px;background:linear-gradient(90deg,#f5f8ff,#f2fbf5);border-bottom:1px solid var(--tp-border);flex-wrap:wrap}
.tp-status-left{display:flex;align-items:center;gap:11px}
.tp-status-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0}
.tp-status-dot.live{background:var(--tp-green);box-shadow:0 0 0 4px rgba(22,163,74,.18);animation:tp-pulse 1.6s infinite}
.tp-status-dot.idle{background:var(--tp-muted)}
@keyframes tp-pulse{0%{box-shadow:0 0 0 0 rgba(22,163,74,.4)}70%{box-shadow:0 0 0 8px rgba(22,163,74,0)}100%{box-shadow:0 0 0 0 rgba(22,163,74,0)}}
.tp-status-left strong{font-size:14px;color:var(--tp-text)}
.tp-status-left .desc{font-size:12px;color:var(--tp-sub);margin-top:1px}
.tp-status-stop{height:34px;padding:0 14px;background:#fff;border:1px solid var(--tp-border);border-radius:8px;font-size:13px;color:var(--tp-red);font-weight:600;display:none}
.tp-status-stop:hover{background:#fef2f2}
.tp-grid-2{display:grid;grid-template-columns:1.15fr 1fr;gap:16px;padding:16px 20px}
.tp-map-card{background:#fff;border:1px solid var(--tp-border);border-radius:10px;overflow:hidden}
.tp-map-card .tp-card-head{padding:12px 16px;border-bottom:1px solid var(--tp-border)}
.tp-map-wrap{position:relative;width:100%;height:440px;padding:6px}
.tp-map-marker-toggle{position:absolute;top:14px;right:18px;z-index:5;display:flex;align-items:center;gap:6px;background:rgba(255,255,255,.94);border:1px solid var(--tp-border);border-radius:14px;padding:3px 10px;font-size:12px;color:var(--tp-sub);box-shadow:0 1px 4px rgba(0,0,0,.08);user-select:none;cursor:pointer}
.tp-map-marker-switch{position:relative;display:inline-block;width:30px;height:16px}
.tp-map-marker-switch input{opacity:0;width:0;height:0;position:absolute}
.tp-map-marker-slider{position:absolute;cursor:pointer;inset:0;background:#cbd5e1;border-radius:16px;transition:background .18s}
.tp-map-marker-slider:before{content:"";position:absolute;height:12px;width:12px;left:2px;bottom:2px;background:#fff;border-radius:50%;transition:transform .18s}
.tp-map-marker-switch input:checked+.tp-map-marker-slider{background:var(--tp-red)}
.tp-map-marker-switch input:checked+.tp-map-marker-slider:before{transform:translateX(14px)}
.tp-china-map,.tp-world-map{position:relative;z-index:1;width:100%;height:100%;min-height:410px}
.tp-tab-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;width:100%}
.tp-tab{padding:6px 14px;border:1px solid var(--tp-border);background:#fff;border-radius:7px;font-size:13px;color:var(--tp-sub);cursor:pointer;font-family:inherit;transition:all .15s;position:relative}
.tp-tab:hover{color:var(--tp-brand);border-color:var(--tp-brand)}
.tp-tab.active{background:var(--tp-brand);border-color:var(--tp-brand);color:#fff;font-weight:600}
.tp-count-badge{display:inline-block;margin-left:4px;min-width:16px;height:16px;padding:0 4px;background:var(--tp-muted);color:#fff;border-radius:8px;font-size:11px;line-height:16px;text-align:center}
.tp-tab.active .tp-count-badge{background:rgba(255,255,255,.3)}
.tp-progress{display:flex;align-items:center;gap:6px}
.tp-progress-bar{width:90px;height:7px;background:#e6e9f0;border-radius:4px;overflow:hidden}
.tp-progress-bar>div{height:100%;background:linear-gradient(90deg,var(--tp-brand),#67b6ff);border-radius:4px;transition:width .3s}
.tp-summary-card{display:flex;flex-direction:column;border:1px solid var(--tp-border);border-radius:10px;background:#fbfcfe;overflow:hidden}
.tp-summary-card .tp-card-head{padding:10px 14px;border-bottom:1px solid var(--tp-border);background:#fff;gap:8px}
.tp-summary-card .tp-card-body{padding:0;background:#fff;overflow-y:auto;max-height:560px;overscroll-behavior:contain}
.tp-table-responsive{overflow-x:auto;-webkit-overflow-scrolling:touch}

/* ============================================================
   表格（汇总 + 结果）
   ============================================================ */
.tp-table{width:100%;border-collapse:collapse;font-size:12.5px}
.tp-table th,.tp-table td{padding:9px 10px;text-align:left;border-bottom:1px solid var(--tp-border);vertical-align:middle}
.tp-table thead th{background:#f7f9fc;color:var(--tp-sub);font-weight:600;font-size:12px;position:sticky;top:0;z-index:2;white-space:nowrap}
.tp-table tbody tr:hover td{background:#f7f9fc}
.tp-table td.num{font-variant-numeric:tabular-nums}
.tp-summary-table td{white-space:nowrap}
.tp-result-table{min-width:1180px;table-layout:fixed}
.tp-result-table th,.tp-result-table td{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-left:8px;padding-right:8px}
.tp-result-table td.col-point,.tp-result-table td.col-action{overflow:visible;text-overflow:clip}
.tp-latency-pill{display:inline-block;padding:1px 7px;border-radius:10px;font-size:11.5px;font-weight:600;font-variant-numeric:tabular-nums}
.tp-loss{font-weight:600}
.tp-point-cell{display:flex;align-items:center;gap:6px}
.tp-tag{display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;flex-shrink:0}
.tp-ip-cell{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px;color:var(--tp-brand);cursor:pointer}
.tp-ip-cell:hover{color:var(--tp-brand-dark)}
.tp-opt-container{position:relative;display:inline-flex;align-items:center;gap:4px}
.tp-opt-btn{width:24px;height:24px;border:none;background:transparent;border-radius:5px;display:flex;align-items:center;justify-content:center;color:var(--tp-muted);cursor:pointer;opacity:0;transition:opacity .15s,background .15s}
@media (hover:hover){.tp-opt-container:hover .tp-opt-btn{opacity:1}}
@media (hover:none){.tp-opt-btn{opacity:1}}
.tp-opt-btn:hover{background:rgba(0,0,0,.08);color:var(--tp-brand)}
.tp-opt{position:fixed;padding:4px;background:#fff;border:1px solid var(--tp-border);border-radius:9px;box-shadow:var(--tp-shadow-lg);display:none;z-index:9999;min-width:150px}
.tp-opt.is-open{display:block}
.tp-opt a{display:block;padding:7px 12px;font-size:13px;color:var(--tp-text);text-decoration:none;border-radius:6px;white-space:nowrap}
.tp-opt a:hover{background:var(--tp-brand-soft);color:var(--tp-brand)}
.tp-quality-wave{width:160px;max-width:100%;height:24px}
.tp-quality-wave svg{display:block;width:100%;height:24px}
/* 省份筛选 chip */
.tp-prov-filter-chip{display:inline-flex;align-items:center;gap:6px;background:var(--tp-brand-soft);color:var(--tp-brand-dark);padding:4px 8px 4px 10px;border-radius:14px;font-size:12.5px;font-weight:500;line-height:1.4;white-space:nowrap}
.tp-prov-filter-chip b{font-weight:600}
.tp-prov-filter-close{border:none;background:transparent;color:var(--tp-brand-dark);font-size:16px;font-weight:700;line-height:1;cursor:pointer;padding:0 2px;border-radius:4px}
.tp-prov-filter-close:hover{background:rgba(62,99,244,.15)}
/* 结果表头部工具 */
.tp-result-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;width:100%}
.tp-result-tabs{display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin-right:auto}
.tp-count-right{font-size:12px;color:var(--tp-sub);white-space:nowrap}
.tp-count-right b{color:var(--tp-brand)}
/* 节点广告列 */
.tp-node-promo{font-size:12px;line-height:1.5;max-width:160px;overflow:hidden}
.tp-node-promo--html :is(strong,b){color:var(--tp-brand)}
.tp-node-promo--html a{color:var(--tp-brand)}
.tp-node-promo--text{color:var(--tp-sub)}
.tp-node-promo-link{color:var(--tp-brand);text-decoration:none}
.tp-node-promo-link:hover{text-decoration:underline}
.tp-node-promo-img{max-width:140px;max-height:40px;border-radius:4px;vertical-align:middle}
.tp-node-promo-banner{max-width:160px;max-height:50px;border-radius:4px;vertical-align:middle}

/* ============================================================
   持续测试分析（质量图 + 最差节点）
   ============================================================ */
.tp-ct-grid{display:grid;grid-template-columns:1fr 380px;gap:16px;align-items:start;padding:16px;background:#fff}
.tp-ct-chart-wrap{background:#f7f9fc;border:1px solid var(--tp-border);border-radius:10px;padding:8px;min-width:0}
.tp-ct-tabs .tp-tab{padding:5px 12px;font-size:12px}
.tp-worst-wrap{display:flex;flex-direction:column;gap:8px;min-width:0}
.tp-worst-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.tp-worst-head .tp-tab{padding:4px 10px;font-size:12px}
.tp-worst-list{display:flex;flex-direction:column;gap:6px;max-height:340px;overflow-y:auto;padding-right:2px}
.tp-worst-list::-webkit-scrollbar{width:5px}
.tp-worst-list::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:3px}
.tp-worst-item{display:grid;grid-template-columns:22px 1fr auto;gap:10px;align-items:center;padding:8px 10px;border-radius:9px;background:#f7f9fc;border:1px solid var(--tp-border);transition:all .15s}
.tp-worst-item:hover{border-color:var(--tp-brand);transform:translateX(2px)}
.tp-worst-rank{font-family:ui-monospace,monospace;font-size:12px;font-weight:700;color:var(--tp-muted);text-align:center}
.tp-worst-rank.top1{color:#d97706}
.tp-worst-rank.top2{color:#64748b}
.tp-worst-rank.top3{color:#ea580c}
.tp-worst-info{min-width:0}
.tp-worst-name{font-size:13px;font-weight:500;display:flex;align-items:center;gap:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tp-worst-name .car-dot{width:7px;height:7px;border-radius:50%;flex-shrink:0}
.tp-worst-name .sub{font-size:10px;color:var(--tp-muted);font-family:ui-monospace,monospace;font-weight:400;margin-left:auto;padding-left:6px;white-space:nowrap}
.tp-worst-bar{position:relative;width:100%;height:6px;margin-top:6px;border-radius:3px;background:#e6e9f0;overflow:hidden}
.tp-worst-bar .fill{position:absolute;left:0;top:0;bottom:0;border-radius:3px;transition:width .4s,background .3s}
.tp-worst-bar.timeout .fill{width:100%!important;background:repeating-linear-gradient(45deg,#94a3b8,#94a3b8 4px,transparent 4px,transparent 8px)}
.tp-worst-metric{font-family:ui-monospace,monospace;font-size:13px;font-weight:600;text-align:right;white-space:nowrap}
.tp-worst-metric .m1{display:block}
.tp-worst-metric .m2{display:block;font-size:10px;color:var(--tp-muted);font-weight:400;margin-top:1px}
.tp-worst-empty{padding:30px 16px;text-align:center;color:var(--tp-muted);font-size:13px}
.tp-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}

/* ============================================================
   DNS 解析统计
   ============================================================ */
.tp-dns-head-meta{display:flex;align-items:center;gap:10px}
.tp-circle-badge{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 6px;background:var(--tp-brand);color:#fff;border-radius:11px;font-size:12px;font-weight:600}
.tp-copy-btn{height:30px;padding:0 12px;background:#fff;border:1px solid var(--tp-border);border-radius:7px;font-size:13px;color:var(--tp-sub);font-family:inherit;transition:all .15s}
.tp-copy-btn:hover{border-color:var(--tp-brand);color:var(--tp-brand)}
.tp-dns-tip{font-size:12px;color:var(--tp-muted);margin-bottom:10px}
.tp-dns-list{display:flex;flex-wrap:wrap;gap:8px}
.tp-dns-item{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;background:#f7f9fc;border:1px solid var(--tp-border);border-radius:8px;cursor:pointer;transition:all .15s}
.tp-dns-item:hover{border-color:var(--tp-brand);background:var(--tp-brand-soft)}
.tp-dns-item.active{background:var(--tp-brand);border-color:var(--tp-brand)}
.tp-dns-item.active .ip,.tp-dns-item.active .percent{color:#fff}
.tp-dns-item .ip{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px;color:var(--tp-text);font-weight:500}
.tp-dns-item .percent{font-size:12px;color:var(--tp-sub)}

/* ============================================================
   文档 / FAQ / 相关工具 / 热门目标
   ============================================================ */
.tp-docs-body{padding:20px 24px;line-height:1.85;color:#3c4657}
.tp-docs-body h3{margin-top:18px;color:var(--tp-brand-dark);font-size:16px}
.tp-docs-body h3:first-child{margin-top:0}
.tp-docs-body h4{color:var(--tp-brand-dark);font-size:15px;margin-top:14px}
.tp-docs-body p{margin:6px 0}
.tp-docs-body ul{padding-left:22px;margin:6px 0}
.tp-docs-body li{margin:3px 0}
.tp-tool-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px;padding:18px 20px}
.tp-tool-card{display:block;padding:14px 16px;background:#f7f9fc;border:1px solid var(--tp-border);border-radius:10px;text-decoration:none;color:#3c4657;transition:all .15s}
.tp-tool-card:hover{border-color:var(--tp-brand);background:var(--tp-brand-soft);text-decoration:none;transform:translateY(-1px)}
.tp-tool-card strong{color:var(--tp-brand)}
.tp-tool-card div{font-size:13px;color:var(--tp-sub);margin-top:4px}
.tp-popular-section{margin-top:16px;background:#fff;border:1px solid var(--tp-border);border-radius:var(--tp-radius);padding:18px 22px;box-shadow:var(--tp-shadow)}
.tp-popular-title{font-size:15px;font-weight:700;color:var(--tp-text);margin-bottom:12px;display:flex;align-items:center;gap:6px}
.tp-popular-list{display:flex;flex-wrap:wrap;gap:8px}
.tp-popular-chip{display:inline-flex;align-items:center;gap:6px;padding:7px 13px;background:#f7f9fc;border:1px solid var(--tp-border);border-radius:16px;font-size:13px;color:var(--tp-sub);text-decoration:none;transition:all .15s;font-family:ui-monospace,Menlo,monospace}
.tp-popular-chip:hover{background:var(--tp-brand-soft);border-color:var(--tp-brand);color:var(--tp-brand);text-decoration:none}

/* ============================================================
   全局广告位（Header 4 + Body 6）与右侧关闭按钮
   ============================================================ */
.tp-global-header-ads{display:flex;align-items:center;gap:8px;flex:1;margin-left:16px;min-width:0}
.tp-global-header-ads .gad-slot{position:relative;width:271px;height:80px;flex:0 0 271px;border-radius:8px;overflow:hidden;background:rgba(255,255,255,.06);border:1px solid #3a414b;display:flex;align-items:center;justify-content:center}
.tp-global-header-ads .gad-slot:empty{display:none}
.tp-global-header-ads .gad-inner{width:100%;height:100%;display:flex;align-items:center;justify-content:center;text-align:center;cursor:pointer;text-decoration:none;color:#dbe1ea}
.tp-global-header-ads .gad-inner img{max-width:100%;max-height:100%;object-fit:contain;display:block}
.tp-global-header-ads .gad-text{padding:6px 8px;font-size:12px;line-height:1.4;color:#b9c1cd;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}
.tp-global-header-ads .gad-text b{display:block;font-size:13px;color:#fff;margin-bottom:2px}
.tp-global-body-ads{margin:12px 0}
.tp-global-body-ads .gad-body-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
.tp-global-body-ads .gad-slot{position:relative;height:50px;border-radius:8px;overflow:hidden;background:#fff;border:1px solid var(--tp-border);display:flex;align-items:center;justify-content:center}
.tp-global-body-ads .gad-slot:empty{display:none}
.tp-global-body-ads .gad-inner{width:100%;height:100%;display:flex;align-items:center;justify-content:center;text-align:center;cursor:pointer;text-decoration:none;color:var(--tp-text)}
.tp-global-body-ads .gad-inner img{max-width:100%;max-height:100%;object-fit:contain;display:block}
.tp-global-body-ads .gad-text{padding:4px 8px;font-size:13px;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tp-global-body-ads .gad-text b{display:block;font-size:13px;color:var(--tp-text);margin-bottom:1px}
.tp-global-header-ads .gad-slot:not(:empty)::after,
.tp-global-body-ads .gad-slot:not(:empty)::after{content:'广告';position:absolute;right:3px;top:3px;background:rgba(0,0,0,.42);color:#fff;font-size:10px;line-height:1;padding:2px 4px;border-radius:3px;pointer-events:none;z-index:3;letter-spacing:.5px}
body.tp-ads-hidden .tp-global-ad-region{display:none!important}
/* ============================================================
   右下角浮动操作条（白色卡片组，参考第四套模板）：联系我们 / 关闭广告 / 回到顶部
   ============================================================ */
.tp-float-bar{position:fixed;right:16px;bottom:calc(16px + env(safe-area-inset-bottom,0px));z-index:1100;display:flex;flex-direction:column;gap:4px;padding:5px;background:#fff;border:1px solid var(--tp-border);border-radius:14px;box-shadow:var(--tp-shadow-lg)}
.tp-float-btn{position:relative;width:38px;height:38px;display:flex;align-items:center;justify-content:center;border:none;border-radius:10px;background:transparent;color:var(--tp-sub);transition:background .15s,color .15s;user-select:none}
.tp-float-btn:hover{background:var(--tp-brand-soft);color:var(--tp-brand)}
.tp-float-btn:focus-visible{outline:2px solid var(--tp-brand);outline-offset:1px}
.tp-float-btn svg{width:19px;height:19px;flex-shrink:0;display:block}
.tp-float-btn+.tp-float-btn::before{content:"";position:absolute;top:-3px;left:9px;right:9px;height:1px;background:var(--tp-border)}
.tp-float-btn .ad-toggle-icon{display:grid;place-items:center}
/* 悬停气泡提示（左侧弹出） */
.tp-float-balloon{position:absolute;right:calc(100% + 12px);top:50%;transform:translateY(-50%) translateX(4px);display:flex;flex-direction:column;align-items:center;gap:1px;background:var(--tp-dark);color:#fff;border-radius:8px;padding:6px 11px;font-size:12px;line-height:1.5;white-space:nowrap;opacity:0;visibility:hidden;pointer-events:none;box-shadow:0 4px 14px rgba(0,0,0,.22);transition:opacity .18s,transform .18s,visibility .18s}
.tp-float-balloon::after{content:'';position:absolute;left:100%;top:50%;margin-top:-5px;border:5px solid transparent;border-left-color:var(--tp-dark)}
.tp-float-btn:hover .tp-float-balloon,.tp-float-btn:focus-visible .tp-float-balloon{opacity:1;visibility:visible;transform:translateY(-50%) translateX(0)}
.tp-global-ad-toggle .ad-toggle-tip{font-size:11px;opacity:.75;letter-spacing:0}
/* 广告关闭中：按钮变绿 */
body.tp-ads-hidden .tp-global-ad-toggle{background:linear-gradient(180deg,var(--tp-green),var(--tp-green-dark));color:#fff}
/* 联系我们：品牌色实底 */
.tp-float-contact{background:linear-gradient(180deg,var(--tp-brand),var(--tp-brand-dark));color:#fff}
.tp-float-contact:hover{background:linear-gradient(180deg,var(--tp-brand),var(--tp-brand-dark));color:#fff;filter:brightness(1.08)}
/* 回到顶部：滚动后出现 */
.tp-float-backtop{opacity:0;visibility:hidden;transform:translateY(8px)}
.tp-float-backtop.is-show{opacity:1;visibility:visible;transform:translateY(0)}
@media (max-width:640px){
  .tp-float-bar{right:12px;bottom:calc(16px + env(safe-area-inset-bottom,0px));gap:4px;padding:4px}
  .tp-float-btn{width:36px;height:36px}
  .tp-float-btn svg{width:18px;height:18px}
}
@media (max-width:900px){
  .tp-global-header-ads{overflow-x:auto;gap:6px;margin-left:8px;padding-bottom:2px}
  .tp-global-header-ads .gad-slot{flex:0 0 auto;width:min(220px,100%);height:66px}
}
@media (max-width:640px){
  .tp-global-body-ads .gad-body-grid{grid-template-columns:1fr}
}

/* ============================================================
   输入历史下拉
   ============================================================ */
.tp-history-dropdown{position:absolute;top:100%;left:0;right:0;margin-top:4px;background:#fff;border:1px solid var(--tp-border);border-radius:10px;box-shadow:var(--tp-shadow-lg);max-height:300px;overflow-y:auto;display:none;z-index:40}
.tp-history-dropdown.show{display:block}
.tp-history-header{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;border-bottom:1px solid var(--tp-border);font-size:12px;color:var(--tp-sub);position:sticky;top:0;background:#fff;z-index:1}
.tp-history-clear-all{color:var(--tp-red);cursor:pointer;font-size:12px;border:none;background:none;font-family:inherit}
.tp-history-clear-all:hover{text-decoration:underline}
.tp-history-item{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;border-bottom:1px solid #f1f4f9;cursor:pointer;transition:background .12s;gap:8px}
.tp-history-item:hover{background:#f7f9fc}
.tp-history-item.is-pinned{background:#fffbeb}
.tp-history-item.is-pinned:hover{background:#fef3c7}
.tp-history-item-text{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;color:var(--tp-text)}
.tp-history-item-meta{display:flex;align-items:center;gap:6px;flex-shrink:0}
.tp-history-item-time{font-size:11px;color:var(--tp-muted);white-space:nowrap}
.tp-history-item-tool{font-size:11px;color:var(--tp-brand);background:var(--tp-brand-soft);padding:2px 6px;border-radius:4px;white-space:nowrap;border:1px solid #dbe4ff;line-height:1}
.tp-history-item-actions{display:flex;gap:3px}
.tp-history-action-btn{border:none;background:#eef1f6;border-radius:4px;padding:4px 7px;cursor:pointer;font-size:11px;color:var(--tp-sub);line-height:1;font-family:inherit;transition:all .12s}
.tp-history-action-btn:hover{background:var(--tp-brand);color:#fff}
.tp-history-action-btn.del:hover{background:var(--tp-red)}
.tp-history-action-btn.active{background:var(--tp-orange);color:#fff}
.tp-history-empty{padding:20px;text-align:center;color:var(--tp-muted);font-size:13px}

/* ============================================================
   联系弹窗 / Toast
   ============================================================ */
.tp-contact-modal{display:none;position:fixed;inset:0;z-index:9999;background:rgba(9,12,16,.55);align-items:center;justify-content:center}
.tp-contact-modal.open{display:flex}
.tp-contact-inner{background:#fff;border-radius:16px;width:380px;max-width:90vw;overflow:hidden;box-shadow:0 20px 60px rgba(0,0,0,.3);animation:tp-contact-in .25s ease}
@keyframes tp-contact-in{from{opacity:0;transform:scale(.92)}to{opacity:1;transform:scale(1)}}
.tp-contact-head{background:linear-gradient(135deg,var(--tp-brand),#6d5df6,#a34fe0);padding:30px 20px 24px;text-align:center;position:relative}
.tp-contact-close{position:absolute;top:10px;right:12px;background:rgba(255,255,255,.2);border:none;color:#fff;width:28px;height:28px;border-radius:50%;cursor:pointer;font-size:16px}
.tp-contact-icon{width:64px;height:64px;background:#fff;border-radius:50%;margin:0 auto 14px;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 12px rgba(0,0,0,.15)}
.tp-contact-name{color:#fff;font-size:15px;font-weight:600}
.tp-contact-sub{color:rgba(255,255,255,.8);font-size:13px;margin-top:4px}
.tp-contact-body{padding:24px 28px 28px;text-align:center;font-size:14px;color:#3c4657;line-height:2}
.tp-contact-body a{color:var(--tp-brand);font-weight:600;text-decoration:none;word-break:break-all}
.tp-contact-body a:hover{text-decoration:underline}
/* 联系方式行两栏左对齐：整行从弹窗左侧起排，标签右对齐固定宽，值左对齐，长短标签下值均纵向对齐 */
.tp-contact-row{display:flex;align-items:baseline;justify-content:flex-start}
.tp-contact-row .cl{flex:none;width:4.8em;text-align:right}
.tp-contact-row .cv{flex:0 1 auto;min-width:0;text-align:left;margin-left:6px;word-break:break-all}
.tp-toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%) translateY(20px);background:rgba(29,34,41,.94);color:#fff;padding:11px 22px;border-radius:9px;font-size:14px;z-index:9998;opacity:0;pointer-events:none;transition:all .25s}
.tp-toast.show{opacity:1;transform:translateX(-50%) translateY(0)}

/* ============================================================
   页脚（深炭色）
   ============================================================ */
.tp-footer{background:var(--tp-dark-2);color:#9aa3b2;margin-top:24px}
.tp-footer-inner{max-width:var(--tp-max);margin:0 auto;padding:34px 20px 22px}
.tp-footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:28px}
.tp-footer-desc{font-size:13px;line-height:1.8;margin-top:12px;color:#8a93a3;max-width:420px}
.tp-footer-col{display:flex;flex-direction:column;gap:9px}
.tp-footer-title{font-size:13px;font-weight:700;color:#e7ebf2;margin-bottom:2px}
.tp-footer-link{color:#9aa3b2;font-size:13px;text-decoration:none;transition:color .15s}
.tp-footer-link:hover{color:#fff;text-decoration:none}
.tp-footer-link--inline{display:inline-block;margin-right:14px}
.tp-footer-links-row{margin-top:26px;padding-top:16px;border-top:1px solid #2b313a;font-size:13px;display:flex;align-items:flex-start;gap:2px;flex-wrap:wrap;line-height:1.9}
.tp-footer-bottom{margin-top:22px;padding-top:16px;border-top:1px solid #2b313a;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:12.5px}
.tp-footer-filing{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.tp-footer-filing a{color:#9aa3b2;text-decoration:none}
.tp-footer-filing a:hover{color:#fff;text-decoration:none}

/* ============================================================
   HTTP 网站测速：高级选项面板 + 瀑布流展开行
   ============================================================ */
.tp-advanced-toggle{display:inline-flex;align-items:center;gap:5px;font-size:13px;color:var(--tp-sub);cursor:pointer;user-select:none;padding:5px 10px;border-radius:7px;border:1px solid #e2e7ef;background:#fff;transition:all .15s}
.tp-advanced-toggle:hover{color:var(--tp-brand);border-color:var(--tp-brand)}
.tp-advanced-toggle svg{transition:transform .2s}
.tp-advanced-toggle.open svg{transform:rotate(180deg)}
.tp-advanced{display:none;margin-top:12px;padding:14px 16px;background:#f7f9fc;border:1px solid var(--tp-border);border-radius:10px;position:relative;z-index:1;width:100%}
.tp-advanced.open{display:block}
.tp-adv-row{display:flex;align-items:flex-start;gap:10px;margin-top:10px}
.tp-adv-row:first-child{margin-top:0}
.tp-adv-label{width:96px;flex-shrink:0;font-size:13px;color:var(--tp-sub);line-height:34px;font-weight:500}
.tp-adv-field{flex:1;min-width:0}
.tp-adv-radios{display:flex;flex-wrap:wrap;gap:14px;align-items:center;padding-top:7px}
.tp-adv-radio{display:inline-flex;align-items:center;gap:5px;font-size:13px;color:var(--tp-sub);cursor:pointer}
.tp-adv-radio input{margin:0;cursor:pointer;accent-color:var(--tp-brand)}
.tp-adv-radio input:checked+span{color:var(--tp-text);font-weight:600}
.tp-adv-input{height:34px;width:100%;padding:0 12px;border:1.5px solid #d5dbe6;border-radius:7px;font-family:inherit;font-size:13px;outline:none;background:#fff;color:var(--tp-text)}
.tp-adv-input:focus{border-color:var(--tp-brand);box-shadow:0 0 0 3px rgba(62,99,244,.12)}
.tp-adv-input.num{width:90px;flex-shrink:0}
.tp-adv-hint{font-size:12px;color:var(--tp-muted);margin-left:12px;line-height:34px}
.tp-btn-view{padding:4px 12px;border-radius:6px;font-size:12px;font-weight:500;border:1px solid var(--tp-border);background:var(--tp-brand-soft);color:var(--tp-brand);cursor:pointer;transition:all .2s;font-family:inherit}
.tp-btn-view:hover{background:#dbe4ff}
.tp-waterfall-row>td{padding:14px 16px!important;background:#f7f9fc;border-bottom:1px solid var(--tp-border);max-width:0;word-break:break-word;overflow-wrap:anywhere}
.tp-waterfall{display:flex;flex-direction:column;gap:10px}
.tp-wf-total{font-size:12px;color:var(--tp-sub);font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.tp-wf-total b{color:var(--tp-brand)}
.tp-wf-bar{display:flex;height:26px;border-radius:6px;overflow:hidden;border:1px solid var(--tp-border);background:#f7f9fc;width:100%;max-width:100%}
.tp-wf-stage{display:inline-flex;align-items:center;justify-content:center;font-size:10px;color:#fff;font-weight:700;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;overflow:hidden;white-space:nowrap;min-width:0;transition:filter .15s}
.tp-wf-stage:hover{filter:brightness(1.15)}
.tp-wf-legend{display:flex;flex-wrap:wrap;gap:14px;font-size:12px;color:var(--tp-sub)}
.tp-wf-legend-item{display:inline-flex;align-items:center;gap:5px}
.tp-wf-legend-item i{width:10px;height:10px;border-radius:2px;display:inline-block}
.tp-wf-legend-item b{color:var(--tp-text);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-weight:600}
.tp-wf-info{display:flex;flex-wrap:wrap;gap:6px 16px;margin-top:6px;font-size:12px;color:var(--tp-sub)}
.tp-wf-info b{color:var(--tp-text);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-weight:600;word-break:break-all}
.tp-wf-error{margin-top:6px;padding:6px 10px;font-size:12px;color:var(--tp-red);background:#fef2f2;border:1px solid rgba(220,38,38,.3);border-radius:6px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.tp-wf-headers{margin-top:4px}
.tp-wf-headers-title{font-size:12px;color:var(--tp-muted);margin-bottom:6px;display:flex;align-items:center;justify-content:space-between}
.tp-wf-hdr-toggle{font-size:11px;color:var(--tp-brand);cursor:pointer;padding:2px 8px;border:1px solid var(--tp-border);border-radius:4px;background:#fff;user-select:none;transition:all .2s}
.tp-wf-hdr-toggle:hover{border-color:var(--tp-brand);background:var(--tp-brand-soft)}
.tp-wf-hdr-block{background:#fff;border:1px solid var(--tp-border);border-radius:6px;padding:10px 12px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;line-height:1.7;overflow-x:auto;margin:0;display:flex;flex-direction:column}
.tp-wf-hdr-block.collapsed{max-height:144px;overflow:hidden;position:relative}
.tp-wf-hdr-block.collapsed::after{content:'';position:absolute;bottom:0;left:0;right:0;height:36px;background:linear-gradient(180deg,transparent,#fff);pointer-events:none}
.tp-wf-hdr-line{color:var(--tp-sub);white-space:pre-wrap;word-break:break-all;overflow-wrap:anywhere}
.tp-wf-hdr-line:first-child{color:var(--tp-brand);font-weight:600}
.tp-wf-hdr-status{color:var(--tp-brand);font-weight:600;white-space:pre-wrap;word-break:break-all;overflow-wrap:anywhere}
.tp-wf-hdr-sep{height:10px;border:0;border-top:1px dashed var(--tp-border);margin:6px 0}
/* 仅 HTTP 表隐藏「重定向 / Head」两列（与原版一致）；不得影响 icmp/tcp/dns/traceroute 表 */
.tp-http-table th:nth-child(9),.tp-http-table tbody tr:not(.tp-waterfall-row) td:nth-child(9),
.tp-http-table th:nth-child(10),.tp-http-table tbody tr:not(.tp-waterfall-row) td:nth-child(10){display:none}

/* ============================================================
   路由追踪：路径概览 + AS 标签 + 跳点表
   ============================================================ */
.tp-node-select{height:42px;border:1.5px solid #d5dbe6;border-radius:9px;background-color:#fff;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%233e63f4' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;font-size:14px;font-weight:600;color:var(--tp-text);padding:0 30px 0 14px;cursor:pointer;appearance:none;-webkit-appearance:none;-moz-appearance:none;outline:none;font-family:inherit}
.tp-node-select:focus{border-color:var(--tp-brand);box-shadow:0 0 0 3px rgba(62,99,244,.12)}
.tp-hop-target{background:rgba(217,119,6,.08)!important}
.tp-hop-target td:first-child{color:#d97706;font-weight:700}
.tp-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.tp-as-tag{display:inline-block;width:fit-content;padding:0 5px;border-radius:3px;font-size:10px;font-weight:600;background:var(--tp-brand-soft);color:var(--tp-brand);font-family:ui-monospace,monospace}
.tp-route-meta{margin-bottom:14px}
.tp-route-status{display:flex;align-items:center;gap:8px;font-size:15px;font-weight:600;margin-bottom:8px}
.tp-route-status-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0}
.tp-route-status-dot.ok{background:#22b61b;box-shadow:0 0 0 4px rgba(34,182,27,.18)}
.tp-route-status-dot.warn{background:#d97706;box-shadow:0 0 0 4px rgba(217,119,6,.18)}
.tp-route-status-dot.err{background:#ef4444;box-shadow:0 0 0 4px rgba(239,68,68,.18)}
.tp-route-info{font-size:13px;color:var(--tp-sub);padding:8px 12px;background:#f7f9fc;border-radius:7px;border:1px solid var(--tp-border)}
.tp-route-stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:14px}
.tp-route-stat-item{background:#f7f9fc;border:1px solid var(--tp-border);border-radius:9px;padding:10px 12px}
.tp-route-stat-label{font-size:12px;color:var(--tp-sub);margin-bottom:4px}
.tp-route-stat-value{font-size:16px;font-weight:700;color:var(--tp-text);font-variant-numeric:tabular-nums}
.tp-route-target-info{font-size:13px;color:var(--tp-sub);line-height:1.8;padding-top:10px;border-top:1px solid var(--tp-border)}
.tp-route-target-info b{color:var(--tp-brand)}
.tp-node-ad-slot{padding:8px 16px;border-bottom:1px solid var(--tp-border);background:#fbfcff}
@media (max-width:640px){
  .tp-route-stats-grid{grid-template-columns:repeat(2,1fr)}
}

/* ============================================================
   批量检测页：节点多选下拉 + 目标解析选项 + 结果矩阵
   ============================================================ */
.tp-batch-form{padding:20px 22px;background:
  radial-gradient(600px 220px at 88% -40%,rgba(62,99,244,.10),transparent 70%),
  radial-gradient(420px 200px at -5% 120%,rgba(22,163,74,.08),transparent 70%),
  #fff}
.tp-target-area{width:100%;min-height:110px;padding:12px 14px;border:1.5px solid #d5dbe6;border-radius:9px;font-size:14px;font-family:inherit;outline:none;color:var(--tp-text);resize:vertical;line-height:1.6;background:#fff}
.tp-target-area::placeholder{color:var(--tp-muted)}
.tp-target-area:focus{border-color:var(--tp-brand);box-shadow:0 0 0 3px rgba(62,99,244,.15)}
.tp-batch-controls{display:flex;flex-direction:column;align-items:flex-start;gap:14px;margin-top:16px}
.tp-node-select-wrap{position:relative;width:100%;max-width:420px}
.tp-node-select-trigger{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;padding:10px 12px;background:#fff;border:1.5px solid #d5dbe6;border-radius:9px;color:var(--tp-text);font-size:13.5px;cursor:pointer;transition:all .15s}
.tp-node-select-trigger:hover{border-color:var(--tp-brand)}
.tp-node-select-trigger svg{flex-shrink:0;transition:transform .2s;color:var(--tp-sub)}
.tp-node-select-wrap.open .tp-node-select-trigger svg{transform:rotate(180deg)}
.tp-node-dropdown{display:none;position:absolute;top:calc(100% + 6px);left:0;width:100%;background:#fff;border-radius:10px;box-shadow:var(--tp-shadow-lg);z-index:50;overflow:hidden;border:1px solid var(--tp-border)}
.tp-node-select-wrap.open .tp-node-dropdown{display:block}
.tp-node-search{padding:10px 12px;border-bottom:1px solid var(--tp-border)}
.tp-node-search input{width:100%;padding:8px 10px;border:1px solid var(--tp-border);border-radius:7px;outline:none;font-size:13px}
.tp-node-search input:focus{border-color:var(--tp-brand)}
.tp-node-actions{display:flex;justify-content:space-between;padding:8px 12px;border-bottom:1px solid var(--tp-border);background:#f7f9fc}
.tp-node-action{font-size:12px;color:var(--tp-brand);background:none;border:none;cursor:pointer}
.tp-node-action:hover{text-decoration:underline}
.tp-node-groups{max-height:280px;overflow-y:auto;padding:6px 0}
.tp-node-group-title{padding:6px 12px;font-size:12px;font-weight:600;color:var(--tp-sub);background:#f7f9fc}
.tp-node-option{display:flex;align-items:center;gap:8px;padding:8px 12px;cursor:pointer;font-size:13px;color:var(--tp-text);transition:background .15s}
.tp-node-option:hover{background:#f1f5f9}
.tp-node-option input{width:15px;height:15px;accent-color:var(--tp-brand)}
.tp-cidr-filter{color:var(--tp-sub);font-size:13px;display:flex;flex-wrap:wrap;align-items:center;gap:14px}
.tp-cidr-filter label{display:inline-flex;align-items:center;gap:5px;cursor:pointer}
.tp-cidr-filter input[type="checkbox"],.tp-cidr-filter input[type="radio"]{accent-color:var(--tp-brand)}
.tp-cidr-filter .radio-group{display:inline-flex;align-items:center;gap:10px;margin-left:10px}
.tp-default-port-wrap{display:flex;flex-direction:column;gap:5px;min-width:140px}
.tp-default-port-wrap label{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:500;color:var(--tp-sub)}
.tp-default-port-wrap input{width:80px;padding:9px 10px;border:1.5px solid #d5dbe6;border-radius:7px;background:#fff;color:var(--tp-text);outline:none;font-size:14px;font-family:inherit}
.tp-default-port-wrap input:focus{border-color:var(--tp-brand)}
.tp-port-hint{font-size:11px;color:var(--tp-muted)}
.tp-method-wrap{display:flex;flex-direction:column;gap:5px}
.tp-method-title{font-size:13px;font-weight:500;color:var(--tp-sub)}
.tp-method-options{display:flex;gap:14px;align-items:center}
.tp-method-options label{display:inline-flex;align-items:center;gap:5px;font-size:13px;color:var(--tp-text);cursor:pointer}
.tp-method-options input{accent-color:var(--tp-brand)}
.tp-result-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 20px;border-bottom:1px solid var(--tp-border);flex-wrap:wrap;background:#fff}
.tp-progress-info{font-size:13px;color:var(--tp-sub);white-space:nowrap}
.tp-progress-info b{color:var(--tp-brand)}
.tp-batch-table{width:100%;border-collapse:separate;border-spacing:0;font-size:13px;min-width:700px}
.tp-batch-table th,.tp-batch-table td{padding:10px 12px;border-bottom:1px solid var(--tp-border);text-align:left;vertical-align:middle;white-space:nowrap}
.tp-batch-table thead th{background:#f7f9fc;color:var(--tp-sub);font-weight:600;position:sticky;top:0;z-index:2;cursor:pointer;user-select:none}
.tp-batch-table thead th:hover{background:var(--tp-brand-soft)}
.tp-batch-table tbody tr:hover{background:#f7f9fc}
.tp-batch-table td.target{font-weight:500;color:var(--tp-text);max-width:200px;overflow:hidden;text-overflow:ellipsis}
.tp-cell-ok{display:flex;flex-direction:column;gap:2px}
.tp-cell-lat{font-weight:700;font-size:13px}
.tp-cell-ip{font-size:11px;color:var(--tp-sub);font-family:ui-monospace,monospace}
.tp-cell-loc{font-size:11px;color:var(--tp-muted)}
.tp-cell-status{font-weight:700;font-size:13px}
.tp-cell-time{font-size:12px;color:var(--tp-sub);font-family:ui-monospace,monospace}
.tp-cell-timeout{color:var(--tp-red);font-weight:600}
.tp-cell-fail{color:var(--tp-red);font-weight:600}
.tp-cell-pending{color:var(--tp-muted);font-size:12px;white-space:nowrap}
.tp-pending-dot{display:inline-block;width:6px;height:6px;background:var(--tp-brand);border-radius:50%;margin-right:5px;animation:tp-pulse 1.2s infinite}
.tp-sort-icon{font-size:10px;color:var(--tp-muted);margin-left:3px}
.tp-empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:60px 20px;color:var(--tp-sub);text-align:center}
.tp-empty-icon{width:64px;height:64px;background:#eef1f6;border-radius:50%;display:flex;align-items:center;justify-content:center;margin-bottom:14px;color:var(--tp-muted)}
.tp-empty-title{font-size:15px;font-weight:600;color:var(--tp-text);margin-bottom:6px}
.tp-code{background:#eef1f6;border:1px solid var(--tp-border);border-radius:4px;padding:0 5px;font-family:ui-monospace,monospace;font-size:12px;color:var(--tp-brand-dark)}
@media (max-width:900px){
  .tp-result-toolbar{flex-direction:column;align-items:flex-start}
  .tp-form-row .tp-btn{flex:1;justify-content:center}
}

/* ============================================================
   FindPing：统计卡 + 存活网段侧栏 + 结果行
   ============================================================ */
.tp-limits-row{display:flex;align-items:center;gap:6px;margin-top:14px;color:var(--tp-sub);font-size:13px;flex-wrap:wrap}
.tp-limits-row .hl{color:var(--tp-brand);font-weight:700}
.tp-stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;padding:16px 20px;background:#fff;border-bottom:1px solid var(--tp-border)}
.tp-fstat-card{background:#f7f9fc;border:1px solid var(--tp-border);border-radius:10px;padding:16px;text-align:center}
.tp-fstat-label{font-size:13px;color:var(--tp-sub);margin-bottom:6px}
.tp-fstat-value{font-size:28px;font-weight:700;color:var(--tp-brand);font-variant-numeric:tabular-nums;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.tp-fstat-value.green{color:var(--tp-green)}
.tp-fstat-unit{font-size:14px;color:var(--tp-sub);margin-left:2px}
.tp-action-link{display:inline-flex;align-items:center;gap:4px;font-size:13px;color:var(--tp-sub);background:none;border:none;cursor:pointer;padding:4px 8px;border-radius:6px;transition:all .15s}
.tp-action-link:hover{color:var(--tp-brand);background:var(--tp-brand-soft)}
.tp-fresult-body{display:grid;grid-template-columns:260px 1fr;min-height:320px}
.tp-fresult-sidebar{border-right:1px solid var(--tp-border);background:#fbfcfe;padding:16px;overflow-y:auto;max-height:520px}
.tp-fresult-main{padding:16px;background:#fff;overflow-y:auto;max-height:520px}
.tp-seg-title{font-size:13px;font-weight:600;color:var(--tp-text);margin-bottom:10px;display:flex;align-items:center;gap:6px}
.tp-seg-title .count{font-size:11px;color:#fff;background:var(--tp-brand);padding:1px 6px;border-radius:10px;font-weight:500}
.tp-seg-list{display:flex;flex-direction:column;gap:6px}
.tp-seg-item{display:flex;align-items:center;justify-content:space-between;padding:8px 10px;border-radius:7px;background:#fff;border:1px solid var(--tp-border);cursor:pointer;transition:all .15s;font-size:13px}
.tp-seg-item:hover{border-color:var(--tp-brand);background:var(--tp-brand-soft)}
.tp-seg-item.active{background:var(--tp-brand);border-color:var(--tp-brand);color:#fff}
.tp-seg-item.active .tp-seg-meta{color:rgba(255,255,255,.85)}
.tp-seg-ip{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-weight:500}
.tp-seg-meta{font-size:11px;color:var(--tp-sub)}
.tp-fresult-list{display:flex;flex-direction:column;gap:8px}
.tp-fresult-row{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;border:1px solid var(--tp-border);border-radius:9px;background:#f7f9fc}
.tp-fresult-row:hover{border-color:var(--tp-brand);background:var(--tp-brand-soft)}
.tp-fresult-ip{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:14px;color:var(--tp-text);font-weight:500}
.tp-fresult-info{font-size:12px;color:var(--tp-sub)}
.tp-fresult-status{display:inline-flex;align-items:center;gap:4px;font-size:12px;font-weight:600;color:var(--tp-green)}
@media (max-width:640px){
  .tp-fresult-body{grid-template-columns:1fr}
  .tp-fresult-sidebar{border-right:none;border-bottom:1px solid var(--tp-border);max-height:220px}
  .tp-stats-grid{grid-template-columns:1fr}
}

/* ============================================================
   端口扫描：双输入网格 + 端口预设 + 主机卡片/节点区段/端口表
   ============================================================ */
.tp-ps-input-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.tp-port-input{width:100%;padding:11px 14px;border:1.5px solid #d5dbe6;border-radius:9px;font-size:14px;font-family:inherit;outline:none;color:var(--tp-text);background:#fff}
.tp-port-input::placeholder{color:var(--tp-muted)}
.tp-port-input:focus{border-color:var(--tp-brand);box-shadow:0 0 0 3px rgba(62,99,244,.15)}
.tp-port-presets{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.tp-preset-btn{padding:5px 10px;background:#eef1f6;border:1px solid var(--tp-border);border-radius:6px;color:var(--tp-sub);font-size:12px;cursor:pointer;transition:all .15s}
.tp-preset-btn:hover{color:var(--tp-brand);border-color:var(--tp-brand);background:var(--tp-brand-soft)}
.tp-protocol-wrap{display:flex;align-items:center;gap:14px;margin-top:10px;color:var(--tp-sub);font-size:13px}
.tp-protocol-wrap label{display:inline-flex;align-items:center;gap:5px;cursor:pointer}
.tp-protocol-wrap input[type="radio"]{accent-color:var(--tp-brand)}
.tp-ps-stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;padding:16px 20px;background:#fff;border-bottom:1px solid var(--tp-border)}
.tp-fstat-value.red{color:var(--tp-red)}
.tp-fstat-value.orange{color:var(--tp-orange)}
@media (max-width:900px){
  .tp-ps-input-grid{grid-template-columns:1fr}
  .tp-ps-stats-grid{grid-template-columns:repeat(2,1fr)}
}
/* 主机卡片 */
.tp-host-list{display:flex;flex-direction:column;gap:12px;padding:16px 20px;max-height:680px;overflow-y:auto}
.tp-host-card{background:#fff;border:1px solid var(--tp-border);border-radius:10px;overflow:visible;transition:border-color .15s,box-shadow .15s}
.tp-host-card:hover{border-color:#b9c8ff}
.tp-host-card.expanded{border-color:var(--tp-brand);box-shadow:0 2px 8px rgba(62,99,244,.1)}
.tp-host-card-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:14px 16px;cursor:pointer;user-select:none;transition:background .15s}
.tp-host-card-head:hover{background:#f7f9fc}
.tp-host-card.expanded .tp-host-card-head{border-bottom:1px solid var(--tp-border)}
.tp-host-index{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:var(--tp-brand);color:#fff;font-size:12px;font-weight:600;flex-shrink:0}
.tp-host-info{display:flex;flex-direction:column;gap:2px;flex:1;min-width:160px}
.tp-host-name{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:14px;font-weight:600;color:var(--tp-text)}
.tp-host-sub{font-size:11px;color:var(--tp-sub)}
.tp-host-stats{display:flex;gap:6px;flex-wrap:wrap}
.tp-host-badge{display:inline-flex;align-items:center;gap:3px;padding:2px 8px;border-radius:10px;font-size:11px;font-weight:600;font-family:ui-monospace,monospace;border:1px solid transparent}
.tp-host-badge.open{background:#e7f7e6;color:var(--tp-green);border-color:rgba(22,163,74,.3)}
.tp-host-badge.total{background:#eef1f6;color:var(--tp-sub);border-color:var(--tp-border)}
.tp-host-status{font-size:12px;font-weight:600;padding:2px 8px;border-radius:5px;font-family:monospace}
.tp-host-status.scanning{color:var(--tp-brand);background:var(--tp-brand-soft)}
.tp-host-status.done{color:var(--tp-green);background:#e7f7e6}
.tp-host-expand{width:24px;height:24px;border:1px solid var(--tp-border);border-radius:6px;background:#fff;color:var(--tp-sub);cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:10px;transition:all .15s;flex-shrink:0}
.tp-host-expand:hover{color:var(--tp-brand);border-color:var(--tp-brand)}
.tp-host-card.expanded .tp-host-expand{transform:rotate(180deg)}
.tp-host-card-body{display:none}
.tp-host-card.expanded .tp-host-card-body{display:block}
/* 节点区段 */
.tp-node-section{border-bottom:1px solid var(--tp-border)}
.tp-node-section:last-child{border-bottom:none}
.tp-node-section-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px 16px;background:#fbfcfe;font-size:13px;color:var(--tp-sub);cursor:pointer;user-select:none;transition:background .15s}
.tp-node-section-head:hover{background:#f1f5f9}
.tp-node-section-head .tp-node-name-text{font-weight:600;color:var(--tp-text)}
.tp-node-section-head .tp-node-stats{margin-left:auto;font-family:monospace;font-size:12px;color:var(--tp-sub)}
.tp-node-section-head .tp-node-stats b{color:var(--tp-green)}
.tp-carrier-tag{display:inline-block;padding:1px 6px;border-radius:3px;font-size:10px;font-weight:500;color:#fff}
.tp-carrier-tag.telecom{background:#3b82f6}
.tp-carrier-tag.unicom{background:#ef4444}
.tp-carrier-tag.mobile{background:#10b981}
.tp-carrier-tag.overseas{background:#a855f7}
.tp-carrier-tag.other{background:#64748b}
.tp-node-section-body{display:none}
.tp-node-section.expanded .tp-node-section-body{display:block}
.tp-node-expand{width:18px;height:18px;border:1px solid var(--tp-border);border-radius:5px;background:#fff;color:var(--tp-sub);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;font-size:9px;transition:all .15s;flex-shrink:0}
.tp-node-section.expanded .tp-node-expand{transform:rotate(180deg)}
/* 端口表 */
.tp-port-table-wrap{overflow:auto;max-height:420px;-webkit-overflow-scrolling:touch}
table.tp-port-table{width:100%;border-collapse:separate;border-spacing:0;font-size:13px;min-width:520px}
table.tp-port-table thead th{text-align:left;padding:8px 14px;color:var(--tp-sub);font-weight:600;font-size:12px;border-bottom:1px solid var(--tp-border);white-space:nowrap;background:#f7f9fc;position:sticky;top:0;z-index:1}
table.tp-port-table tbody td{padding:8px 14px;border-bottom:1px solid #f1f4f9;white-space:nowrap}
table.tp-port-table tbody tr:last-child td{border-bottom:none}
table.tp-port-table tbody tr:hover{background:#f7f9fc}
table.tp-port-table .col-port{font-family:monospace;font-weight:600;color:var(--tp-text);width:80px}
table.tp-port-table .col-proto{width:70px}
table.tp-port-table .col-state{width:90px}
table.tp-port-table .col-latency{width:100px;text-align:right;font-family:monospace}
.tp-proto-tag{display:inline-block;padding:1px 6px;border-radius:3px;font-size:10px;font-weight:700;font-family:monospace}
.tp-proto-tag.tcp{background:var(--tp-brand-soft);color:var(--tp-brand-dark)}
.tp-proto-tag.udp{background:#f3e8ff;color:#7c3aed}
.tp-state-open{color:var(--tp-green);font-weight:600}
.tp-state-closed{color:var(--tp-sub)}
.tp-state-filtered{color:var(--tp-orange);font-weight:600}
.tp-state-open::before{content:'● '}
.tp-state-closed::before{content:'○ '}
.tp-state-filtered::before{content:'◐ '}
.tp-service-tag{display:inline-block;background:var(--tp-brand-soft);color:var(--tp-brand-dark);padding:1px 6px;border-radius:4px;font-size:11px;font-weight:500}
.tp-node-empty{padding:20px;text-align:center;color:var(--tp-sub);font-size:13px}
@media (max-width:640px){
  .tp-ps-stats-grid{grid-template-columns:1fr 1fr}
}

/* ============================================================
   SSL 证书检测：摘要统计 + 评级徽章 + 证书链
   ============================================================ */
:root{--tp-grade-a:#22b61b;--tp-grade-b:#0ea5e9;--tp-grade-c:#f59e0b;--tp-grade-d:#ef4444;--tp-grade-f:#dc2626}
.tp-option-row{display:flex;flex-wrap:wrap;gap:14px;color:var(--tp-sub);font-size:13px}
.tp-option-row label{display:inline-flex;align-items:center;gap:5px;cursor:pointer}
.tp-option-row input[type="checkbox"]{accent-color:var(--tp-brand)}
.tp-ssl-progress{display:flex;align-items:center;gap:10px;font-size:13px;padding:14px 20px;background:var(--tp-brand-soft);border-bottom:1px solid var(--tp-border);color:var(--tp-brand)}
.tp-ssl-progress .dot{width:8px;height:8px;border-radius:50%;background:var(--tp-brand);animation:tp-pulse 1.2s infinite}
.tp-ssl-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;padding:18px 20px;background:#fff;border-bottom:1px solid var(--tp-border)}
.tp-ssl-stat{background:#f7f9fc;border:1px solid var(--tp-border);border-radius:10px;padding:14px;text-align:center}
.tp-ssl-stat .label{font-size:12px;color:var(--tp-sub);margin-bottom:6px}
.tp-ssl-stat .value{font-size:20px;font-weight:700;color:var(--tp-brand);font-variant-numeric:tabular-nums;word-break:break-all}
.tp-ssl-stat .value.green{color:var(--tp-green)}
.tp-ssl-stat .value.red{color:var(--tp-red)}
.tp-ssl-stat .value.orange{color:var(--tp-orange)}
.tp-ssl-grade-badge{display:inline-flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:50%;font-size:30px;font-weight:800;color:#fff}
.tp-ssl-grade-badge.grade-a{background:var(--tp-grade-a)}
.tp-ssl-grade-badge.grade-b{background:var(--tp-grade-b)}
.tp-ssl-grade-badge.grade-c{background:var(--tp-grade-c)}
.tp-ssl-grade-badge.grade-d{background:var(--tp-grade-d)}
.tp-ssl-grade-badge.grade-f{background:var(--tp-grade-f)}
.tp-ssl-detail{padding:18px 24px}
.tp-ssl-detail-section{margin-bottom:18px}
.tp-ssl-detail-section:last-child{margin-bottom:0}
.tp-ssl-detail-section h3{font-size:15px;font-weight:700;color:var(--tp-brand-dark);margin-bottom:10px;padding-bottom:6px;border-bottom:1px solid var(--tp-border)}
.tp-ssl-kv{display:grid;grid-template-columns:repeat(2,1fr);gap:10px 24px}
.tp-ssl-kv-item{display:flex;flex-direction:column;gap:2px}
.tp-ssl-kv-item .k{font-size:12px;color:var(--tp-sub)}
.tp-ssl-kv-item .v{font-size:14px;color:var(--tp-text);word-break:break-all;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.tp-ssl-kv-item .v.green{color:var(--tp-green)}
.tp-ssl-kv-item .v.red{color:var(--tp-red)}
.tp-ssl-kv-item .v.orange{color:var(--tp-orange)}
.tp-ssl-kv-item .v.fingerprint{word-break:break-all;font-size:11px;line-height:1.4}
.tp-ssl-cert-chain{display:flex;flex-direction:column;gap:10px}
.tp-ssl-cert-item{background:#f7f9fc;border:1px solid var(--tp-border);border-radius:10px;padding:12px 14px}
.tp-ssl-cert-item.is-leaf{border-color:var(--tp-brand);background:var(--tp-brand-soft)}
.tp-ssl-cert-item .cert-head{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;color:var(--tp-text);margin-bottom:8px;flex-wrap:wrap}
.tp-ssl-cert-item .cert-badge{display:inline-block;padding:1px 6px;border-radius:3px;font-size:10px;font-weight:600}
.tp-ssl-cert-item .cert-badge.leaf{background:var(--tp-brand);color:#fff}
.tp-ssl-cert-item .cert-badge.ca{background:#a855f7;color:#fff}
.tp-ssl-cert-item .cert-badge.complete{background:var(--tp-orange);color:#fff}
.tp-ssl-cert-item .cert-kv{display:grid;grid-template-columns:repeat(2,1fr);gap:6px 18px;font-size:12px}
.tp-ssl-cert-item .cert-kv .k{color:var(--tp-sub)}
.tp-ssl-cert-item .cert-kv .v{color:var(--tp-text);word-break:break-all;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.tp-ssl-dns-names{display:flex;flex-wrap:wrap;gap:6px}
.tp-ssl-dns-chip{display:inline-block;background:var(--tp-brand-soft);color:var(--tp-brand-dark);padding:2px 8px;border-radius:4px;font-size:11px;font-family:ui-monospace,monospace}
.tp-ssl-issues{display:flex;flex-direction:column;gap:6px}
.tp-ssl-issue-item{display:flex;align-items:flex-start;gap:8px;font-size:13px;color:var(--tp-text);padding:6px 10px;background:#fef2f2;border:1px solid #fecaca;border-radius:7px}
.tp-ssl-issue-item.ok{background:#f0fdf4;border-color:#bbf7d0;color:var(--tp-green)}
@media (max-width:900px){.tp-ssl-summary{grid-template-columns:repeat(2,1fr)}}
@media (max-width:640px){.tp-ssl-kv,.tp-ssl-cert-item .cert-kv{grid-template-columns:1fr}}

/* ============================================================
   文章中心 / 文章详情 / 反馈页
   ============================================================ */
.tp-page-hero{padding:28px 32px;background:linear-gradient(135deg,var(--tp-dark) 0%,#33415a 60%,#42527a 100%);position:relative;overflow:hidden}
.tp-page-hero::before{content:"";position:absolute;top:-40px;right:-40px;width:240px;height:240px;background:radial-gradient(circle,rgba(255,255,255,.12),transparent 70%);pointer-events:none}
.tp-page-hero h1{position:relative;z-index:1;font-size:26px;font-weight:700;color:#fff;letter-spacing:.5px;margin-bottom:6px}
.tp-page-hero p{position:relative;z-index:1;font-size:13px;color:#c3cad6;opacity:.92}
.tp-search-box{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.tp-search-input{flex:1;min-width:260px;height:42px;padding:0 14px;border:1.5px solid var(--tp-border);border-radius:9px;font-size:14px;font-family:inherit;outline:none;background:#fff;color:var(--tp-text);transition:border-color .15s,box-shadow .15s}
.tp-search-input:focus{border-color:var(--tp-brand);box-shadow:0 0 0 3px rgba(62,99,244,.15)}
.tp-category-tabs{display:flex;gap:8px;flex-wrap:wrap}
.tp-cat-tab{padding:6px 14px;border:1px solid var(--tp-border);background:#fff;border-radius:16px;font-size:13px;color:var(--tp-sub);cursor:pointer;transition:all .15s;text-decoration:none;display:inline-flex;align-items:center;gap:5px}
.tp-cat-tab:hover{color:var(--tp-brand);border-color:var(--tp-brand);text-decoration:none}
.tp-cat-tab.active{background:var(--tp-brand);border-color:var(--tp-brand);color:#fff;font-weight:600}
.tp-cat-count{display:inline-block;min-width:18px;padding:0 5px;background:rgba(255,255,255,.6);border-radius:9px;font-size:11px;color:var(--tp-sub);text-align:center;line-height:14px}
.tp-cat-tab.active .tp-cat-count{background:rgba(255,255,255,.25);color:#fff}
.tp-article-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px}
.tp-article-card{background:#fff;border:1px solid var(--tp-border);border-radius:12px;overflow:hidden;cursor:pointer;transition:all .2s ease;display:flex;flex-direction:column;box-shadow:var(--tp-shadow);text-decoration:none}
.tp-article-card:hover{transform:translateY(-2px);border-color:var(--tp-brand);box-shadow:0 8px 24px rgba(62,99,244,.15);text-decoration:none}
.tp-card-cover{width:100%;aspect-ratio:16/9;background:linear-gradient(135deg,var(--tp-brand-soft),#dbe4ff);background-size:cover;background-position:center;border-bottom:1px solid var(--tp-border)}
.tp-article-card .tp-card-body{padding:16px 18px;display:flex;flex-direction:column;gap:10px;flex:1}
.tp-card-category{display:inline-block;padding:2px 10px;border-radius:10px;font-size:11px;color:var(--tp-brand);background:var(--tp-brand-soft);border:1px solid #dbe4ff;align-self:flex-start;font-weight:600}
.tp-card-title{font-size:16px;font-weight:600;color:var(--tp-text);line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}
.tp-article-card:hover .tp-card-title{color:var(--tp-brand)}
.tp-card-summary{font-size:13px;color:var(--tp-sub);line-height:1.55;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;flex:1}
.tp-card-meta{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:var(--tp-muted);padding-top:10px;border-top:1px dashed var(--tp-border)}
.tp-card-meta .author{color:var(--tp-sub);font-weight:500}
.tp-card-meta .stats{display:flex;gap:10px}
.tp-card-date{font-size:11px;color:var(--tp-muted);font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.tp-pagination{display:flex;justify-content:center;gap:6px;margin-top:24px;flex-wrap:wrap}
.tp-pagination a{padding:8px 14px;background:#fff;border:1px solid var(--tp-border);border-radius:7px;color:var(--tp-sub);cursor:pointer;font-size:13px;transition:all .15s;text-decoration:none}
.tp-pagination a:hover:not(.disabled):not(.active){color:var(--tp-brand);border-color:var(--tp-brand);text-decoration:none}
.tp-pagination a.disabled{opacity:.4;cursor:not-allowed;pointer-events:none}
.tp-pagination a.active{background:var(--tp-brand);color:#fff;border-color:var(--tp-brand);font-weight:600}
.tp-page-info{padding:8px 12px;font-size:12px;color:var(--tp-muted);font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.tp-back-link{display:inline-flex;align-items:center;gap:5px;font-size:13px;color:var(--tp-sub);text-decoration:none;margin-bottom:14px}
.tp-back-link:hover{color:var(--tp-brand);text-decoration:none}
.tp-error-state{text-align:center;padding:40px 20px;color:var(--tp-sub)}
/* 文章详情 */
.tp-article-layout{display:grid;grid-template-columns:1fr 300px;gap:16px;align-items:start}
@media (max-width:1000px){.tp-article-layout{grid-template-columns:1fr}}
.tp-article-header{padding:26px 28px;background:linear-gradient(135deg,var(--tp-dark) 0%,#33415a 60%,#42527a 100%);position:relative;overflow:hidden}
.tp-article-category{display:inline-block;padding:3px 12px;border-radius:12px;font-size:12px;color:#fff;background:rgba(62,99,244,.9);font-weight:600;margin-bottom:12px}
.tp-article-title{position:relative;z-index:1;font-size:24px;font-weight:700;color:#fff;line-height:1.4;margin-bottom:14px}
.tp-article-meta{display:flex;align-items:center;gap:16px;flex-wrap:wrap;font-size:12.5px;color:#c3cad6;position:relative;z-index:1}
.tp-article-cover{width:100%;aspect-ratio:21/9;background-size:cover;background-position:center;border-radius:12px;margin-bottom:16px;border:1px solid var(--tp-border)}
.tp-article-summary{background:var(--tp-brand-soft);border-left:3px solid var(--tp-brand);border-radius:0 10px 10px 0;padding:14px 18px;font-size:14px;color:#3c4657;line-height:1.8;margin-bottom:16px}
.tp-article-content{background:#fff;border:1px solid var(--tp-border);border-radius:12px;padding:26px 28px;font-size:15px;line-height:1.9;color:#2b3342;overflow-wrap:break-word}
.tp-article-content h1,.tp-article-content h2,.tp-article-content h3{color:var(--tp-text);margin:1.2em 0 .5em;line-height:1.4}
.tp-article-content h2{font-size:20px;border-bottom:1px solid var(--tp-border);padding-bottom:6px}
.tp-article-content h3{font-size:17px}
.tp-article-content p{margin:.8em 0}
.tp-article-content ul,.tp-article-content ol{padding-left:1.6em;margin:.8em 0}
.tp-article-content li{margin:.3em 0}
.tp-article-content code{background:#eef1f6;border:1px solid var(--tp-border);border-radius:4px;padding:1px 6px;font-size:13px;font-family:ui-monospace,monospace;color:var(--tp-brand-dark)}
.tp-article-content pre{background:#1d2229;color:#dbe1ea;border-radius:10px;padding:16px 18px;overflow-x:auto;margin:1em 0}
.tp-article-content pre code{background:transparent;border:none;color:inherit;padding:0}
.tp-article-content img{max-width:100%;border-radius:8px}
.tp-article-content blockquote{border-left:3px solid var(--tp-brand);background:#f7f9fc;margin:1em 0;padding:10px 16px;border-radius:0 8px 8px 0;color:var(--tp-sub)}
.tp-article-content a{color:var(--tp-brand)}
.tp-article-content table{border-collapse:collapse;width:100%;margin:1em 0}
.tp-article-content th,.tp-article-content td{border:1px solid var(--tp-border);padding:8px 12px;font-size:13.5px}
.tp-article-content th{background:#f7f9fc}
.tp-article-tags{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}
.tp-article-tag{display:inline-block;padding:4px 12px;background:#f7f9fc;border:1px solid var(--tp-border);border-radius:14px;font-size:12.5px;color:var(--tp-sub)}
.tp-article-actions{display:flex;align-items:center;gap:14px;margin:18px 0}
.tp-btn-like{display:inline-flex;align-items:center;gap:6px;height:40px;padding:0 20px;border:1.5px solid var(--tp-border);border-radius:20px;background:#fff;color:var(--tp-sub);font-size:14px;font-weight:600;cursor:pointer;transition:all .15s}
.tp-btn-like:hover{border-color:var(--tp-red);color:var(--tp-red)}
.tp-btn-like.liked{border-color:var(--tp-red);color:#fff;background:var(--tp-red)}
.tp-article-stats{font-size:12.5px;color:var(--tp-muted)}
/* 评论区 */
.tp-comments-title{font-size:15px;font-weight:700;color:var(--tp-text);margin-bottom:14px;display:flex;align-items:center;gap:6px}
.tp-comment-form textarea{width:100%;min-height:88px;padding:12px 14px;border:1.5px solid var(--tp-border);border-radius:10px;font-size:14px;font-family:inherit;outline:none;resize:vertical;color:var(--tp-text)}
.tp-comment-form textarea:focus{border-color:var(--tp-brand);box-shadow:0 0 0 3px rgba(62,99,244,.12)}
.tp-comment-form-row{display:flex;align-items:center;gap:10px;margin-top:10px;flex-wrap:wrap}
.tp-comment-form-row input[type="text"]{flex:1;min-width:180px;height:38px;padding:0 12px;border:1.5px solid var(--tp-border);border-radius:8px;font-size:13px;outline:none}
.tp-comment-form-row input[type="text"]:focus{border-color:var(--tp-brand)}
.tp-login-hint{font-size:12px;color:var(--tp-muted)}
.tp-btn-submit{height:38px;padding:0 18px;border:none;border-radius:8px;background:var(--tp-brand);color:#fff;font-size:13px;font-weight:600;cursor:pointer}
.tp-btn-submit:hover{background:var(--tp-brand-dark)}
.tp-btn-cancel{height:38px;padding:0 14px;border:1px solid var(--tp-border);border-radius:8px;background:#fff;color:var(--tp-sub);font-size:13px;cursor:pointer}
.tp-comment-list{margin-top:18px;display:flex;flex-direction:column;gap:12px}
.tp-comment-item{background:#f7f9fc;border:1px solid var(--tp-border);border-radius:10px;padding:12px 14px}
.tp-comment-item.reply{margin-left:44px;background:#fff}
.tp-comment-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}
.tp-comment-author{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;color:var(--tp-text)}
.tp-avatar{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;background:linear-gradient(135deg,var(--tp-brand),#6d8bff);color:#fff;font-size:13px;font-weight:700;flex-shrink:0}
.tp-comment-date{font-size:11.5px;color:var(--tp-muted)}
.tp-comment-body{font-size:13.5px;color:#3c4657;line-height:1.7;white-space:pre-wrap;word-break:break-word}
.tp-comment-actions{margin-top:6px}
.tp-comment-actions button{font-size:12px;color:var(--tp-muted);background:none;border:none;cursor:pointer;display:inline-flex;align-items:center;gap:4px}
.tp-comment-actions button:hover{color:var(--tp-brand)}
.tp-reply-form{display:none;margin-top:10px}
.tp-reply-form.show{display:block}
.tp-reply-form textarea{width:100%;min-height:64px;padding:10px 12px;border:1.5px solid var(--tp-border);border-radius:8px;font-size:13px;font-family:inherit;outline:none;resize:vertical}
.tp-empty-comments{display:flex;align-items:center;justify-content:center;gap:8px;padding:34px 20px;color:var(--tp-muted);font-size:13px}
/* 推荐侧栏 */
.tp-sidebar-card{background:#fff;border:1px solid var(--tp-border);border-radius:12px;padding:18px;box-shadow:var(--tp-shadow)}
.tp-sidebar-card h3{font-size:15px;font-weight:700;color:var(--tp-text);margin-bottom:14px;display:flex;align-items:center;gap:6px}
.tp-related-list{display:flex;flex-direction:column;gap:10px}
.tp-related-item{display:flex;gap:10px;padding:10px;border:1px solid var(--tp-border);border-radius:9px;text-decoration:none;transition:all .15s}
.tp-related-item:hover{border-color:var(--tp-brand);background:var(--tp-brand-soft);text-decoration:none}
.tp-related-num{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:6px;background:#eef1f6;color:var(--tp-sub);font-size:12px;font-weight:700;flex-shrink:0}
.tp-related-item:first-child .tp-related-num{background:var(--tp-brand);color:#fff}
.tp-related-body{min-width:0}
.tp-related-title{font-size:13.5px;font-weight:600;color:var(--tp-text);line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tp-related-item:hover .tp-related-title{color:var(--tp-brand)}
.tp-related-meta{display:flex;gap:12px;margin-top:4px;font-size:11.5px;color:var(--tp-muted)}
.tp-toc-empty{padding:20px 0;text-align:center;color:var(--tp-muted);font-size:13px}
/* 反馈页 */
.tp-fb-wrap{max-width:760px;margin:0 auto;padding:10px 0 30px}
.tp-fb-disabled{background:#fff;border:1px solid var(--tp-border);border-radius:14px;padding:60px 24px;text-align:center;color:var(--tp-sub);box-shadow:var(--tp-shadow)}
.tp-fb-disabled svg{width:44px;height:44px;color:var(--tp-muted);margin-bottom:12px}
.tp-fb-tabs{display:flex;gap:8px;margin-bottom:16px;justify-content:center}
.tp-fb-tab{padding:9px 22px;border:1.5px solid var(--tp-border);background:#fff;border-radius:20px;font-size:14px;color:var(--tp-sub);cursor:pointer;font-family:inherit;transition:all .15s}
.tp-fb-tab:hover{color:var(--tp-brand);border-color:var(--tp-brand)}
.tp-fb-tab.active{background:var(--tp-brand);border-color:var(--tp-brand);color:#fff;font-weight:600}
.tp-fb-panel{display:none}
.tp-fb-panel.active{display:block}
.tp-fb-card{background:#fff;border:1px solid var(--tp-border);border-radius:14px;padding:30px 34px;box-shadow:var(--tp-shadow)}
@media (max-width:640px){.tp-fb-card{padding:20px}}
.tp-fb-title{font-size:21px;font-weight:700;color:var(--tp-text);margin-bottom:8px}
.tp-fb-sub{font-size:13.5px;color:var(--tp-sub);margin-bottom:20px;line-height:1.7}
.tp-fb-form{display:flex;flex-direction:column;gap:16px}
.tp-fb-row{display:flex;flex-direction:column;gap:6px}
.tp-fb-row label{font-size:13px;font-weight:600;color:var(--tp-text)}
.tp-fb-row .req{color:var(--tp-red)}
.tp-fb-row input[type="text"],.tp-fb-row input[type="email"],.tp-fb-row select,.tp-fb-row textarea{height:42px;padding:0 14px;border:1.5px solid var(--tp-border);border-radius:9px;font-size:14px;font-family:inherit;outline:none;background:#fff;color:var(--tp-text);transition:border-color .15s,box-shadow .15s}
.tp-fb-row textarea{min-height:140px;padding:12px 14px;resize:vertical;line-height:1.6}
.tp-fb-row input:focus,.tp-fb-row select:focus,.tp-fb-row textarea:focus{border-color:var(--tp-brand);box-shadow:0 0 0 3px rgba(62,99,244,.12)}
.tp-fb-hint{font-size:12px;color:var(--tp-muted)}
.tp-fb-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:4px}
.tp-fb-btn{height:44px;padding:0 26px;border:none;border-radius:9px;font-size:14px;font-weight:600;cursor:pointer;transition:all .15s;font-family:inherit}
.tp-fb-btn-primary{background:linear-gradient(135deg,var(--tp-brand),var(--tp-brand-dark));color:#fff}
.tp-fb-btn-primary:hover{filter:brightness(1.08)}
.tp-fb-btn-primary:disabled{opacity:.55;cursor:not-allowed}
.tp-fb-btn-outline{background:#fff;color:var(--tp-sub);border:1.5px solid var(--tp-border)}
.tp-fb-btn-outline:hover{color:var(--tp-brand);border-color:var(--tp-brand)}
.tp-fb-link{font-size:13px;color:var(--tp-brand);text-decoration:none}
.tp-fb-link:hover{text-decoration:underline}
.tp-fb-toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);padding:11px 22px;border-radius:9px;font-size:14px;color:#fff;z-index:9998;animation:tp-contact-in .25s ease}
.tp-fb-toast.success{background:rgba(22,163,74,.95)}
.tp-fb-toast.error{background:rgba(220,38,38,.95)}
.tp-fb-code-result{display:flex;flex-direction:column;gap:12px}
.tp-fb-code-box{background:var(--tp-brand-soft);border:1px dashed var(--tp-brand);border-radius:12px;padding:20px;text-align:center}
.tp-fb-code-box .label{font-size:13px;color:var(--tp-sub);margin-bottom:8px}
.tp-fb-code-box .code{font-size:32px;font-weight:800;letter-spacing:6px;color:var(--tp-brand-dark);font-family:ui-monospace,monospace}
.tp-fb-code-tip{font-size:13px;color:var(--tp-sub);line-height:1.7}
.tp-fb-status{display:inline-block;padding:3px 12px;border-radius:12px;font-size:12px;font-weight:600}
.tp-fb-status.pending{background:#fef3c7;color:#b45309}
.tp-fb-status.replied{background:#dbeafe;color:var(--tp-brand-dark)}
.tp-fb-status.closed{background:#e5e7eb;color:var(--tp-sub)}
.tp-fb-thread{display:flex;flex-direction:column;gap:10px;margin-top:14px}
.tp-fb-msg{border:1px solid var(--tp-border);border-radius:10px;padding:12px 14px;font-size:13.5px;line-height:1.7}
.tp-fb-msg .who{font-size:12px;font-weight:700;color:var(--tp-text);margin-bottom:6px}
.tp-fb-msg .when{font-size:11.5px;color:var(--tp-muted);margin-top:6px}
.tp-fb-msg-user{background:#f7f9fc}
.tp-fb-msg-admin{background:#f0fdf4;border-color:#bbf7d0}
.tp-fb-msg-admin .who{color:var(--tp-green-dark)}
.tp-fb-empty{padding:26px;text-align:center;color:var(--tp-muted);font-size:13px}

/* ============================================================
   404 页
   ============================================================ */
.tp-error-hero{background:linear-gradient(135deg,var(--tp-dark) 0%,#33415a 60%,#42527a 100%);padding:70px 20px;text-align:center;color:#fff}
.tp-error-hero-inner{max-width:640px;margin:0 auto;display:flex;flex-direction:column;align-items:center}
.tp-error-number{font-size:96px;font-weight:800;letter-spacing:8px;line-height:1;font-family:ui-monospace,monospace;background:linear-gradient(180deg,#fff,#9db1d6);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.tp-error-icon{width:56px;height:56px;border-radius:50%;background:rgba(255,255,255,.12);display:flex;align-items:center;justify-content:center;margin:18px 0}
.tp-error-icon svg{width:28px;height:28px}
.tp-error-hero h1{font-size:22px;font-weight:700;margin-bottom:10px}
.tp-error-hero p{font-size:13.5px;color:#c3cad6;line-height:1.8;margin-bottom:24px}
.tp-error-search{display:flex;width:100%;max-width:460px;gap:10px}
.tp-error-search input{flex:1;height:46px;padding:0 16px;border:none;border-radius:9px;font-size:14px;outline:none;color:var(--tp-text)}
.tp-error-search button{display:inline-flex;align-items:center;gap:6px;height:46px;padding:0 18px;border:none;border-radius:9px;background:var(--tp-brand);color:#fff;font-size:14px;font-weight:600;cursor:pointer}
.tp-error-search button:hover{background:var(--tp-brand-dark)}
.tp-quick-links{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.tp-quick-card{background:#fff;border:1px solid var(--tp-border);border-radius:12px;padding:22px 18px;text-align:center;cursor:pointer;transition:all .15s;box-shadow:var(--tp-shadow)}
.tp-quick-card:hover{transform:translateY(-2px);border-color:var(--tp-brand);box-shadow:0 8px 24px rgba(62,99,244,.14)}
.tp-quick-icon{width:52px;height:52px;border-radius:12px;background:#f7f9fc;display:flex;align-items:center;justify-content:center;margin:0 auto 12px}
.tp-quick-icon svg{width:26px;height:26px}
.tp-quick-card h3{font-size:14.5px;font-weight:700;color:var(--tp-text);margin-bottom:4px}
.tp-quick-card p{font-size:12.5px;color:var(--tp-muted)}
.tp-action-buttons{display:flex;justify-content:center;gap:12px;margin-top:20px;flex-wrap:wrap}
@media (max-width:640px){.tp-quick-links{grid-template-columns:repeat(2,1fr)}.tp-error-number{font-size:64px}}

/* ============================================================
   更新记录（changelogs）时间线
   ============================================================ */
.tp-cl-wrap{max-width:860px;margin:0 auto;padding:10px 0 30px}
.tp-cl-header{margin-bottom:20px}
.tp-cl-header h1{font-size:22px;font-weight:700;color:var(--tp-text);display:flex;align-items:center;gap:8px;margin-bottom:6px}
.tp-cl-header h1 svg{width:22px;height:22px;color:var(--tp-brand)}
.tp-cl-header p{font-size:13.5px;color:var(--tp-sub)}
.tp-cl-filter{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:22px}
.tp-cl-filter a{padding:6px 16px;border:1px solid var(--tp-border);border-radius:18px;background:#fff;font-size:13px;color:var(--tp-sub);text-decoration:none;transition:all .15s}
.tp-cl-filter a:hover{color:var(--tp-brand);border-color:var(--tp-brand);text-decoration:none}
.tp-cl-filter a.active{background:var(--tp-brand);border-color:var(--tp-brand);color:#fff;font-weight:600}
.tp-timeline{position:relative;padding-left:26px}
.tp-timeline::before{content:"";position:absolute;left:7px;top:6px;bottom:6px;width:2px;background:var(--tp-border)}
.tp-tl-item{position:relative;padding-bottom:18px}
.tp-tl-dot{position:absolute;left:-26px;top:6px;width:14px;height:14px;border-radius:50%;border:3px solid #fff;box-shadow:0 0 0 1px var(--tp-border)}
.tp-tl-dot.add{background:var(--tp-green)}
.tp-tl-dot.delete{background:var(--tp-red)}
.tp-tl-dot.optimize{background:var(--tp-brand)}
.tp-tl-dot.fix{background:var(--tp-orange)}
.tp-tl-dot.update{background:#0ea5e9}
.tp-tl-card{background:#fff;border:1px solid var(--tp-border);border-radius:12px;padding:16px 20px;box-shadow:var(--tp-shadow)}
.tp-tl-meta{display:flex;align-items:center;gap:10px;margin-bottom:8px}
.tp-tl-badge{display:inline-block;padding:2px 10px;border-radius:10px;font-size:11.5px;font-weight:600;color:#fff}
.tp-tl-badge.add{background:var(--tp-green)}
.tp-tl-badge.delete{background:var(--tp-red)}
.tp-tl-badge.optimize{background:var(--tp-brand)}
.tp-tl-badge.fix{background:var(--tp-orange)}
.tp-tl-badge.update{background:#0ea5e9}
.tp-tl-date{font-size:12px;color:var(--tp-muted);font-family:ui-monospace,monospace}
.tp-tl-title{font-size:15px;font-weight:600;color:var(--tp-text);margin-bottom:4px}
.tp-tl-content{font-size:13.5px;color:var(--tp-sub);line-height:1.7;white-space:pre-wrap}
.tp-tl-detail{display:inline-flex;align-items:center;gap:5px;font-size:13px;color:var(--tp-brand);text-decoration:none;margin-top:10px}
.tp-tl-detail:hover{text-decoration:underline}
.tp-tl-detail svg{width:14px;height:14px}
.tp-cl-empty{background:#fff;border:1px solid var(--tp-border);border-radius:12px;padding:60px 20px;text-align:center;color:var(--tp-muted);font-size:14px}
.tp-cl-empty svg{width:44px;height:44px;margin-bottom:12px;opacity:.5}

/* ============================================================
   IP 查询（ipq-*，类名与 /static/js/ip_query.js 渲染逻辑保持一致）
   ============================================================ */
.ipq-wrap{max-width:920px;margin:0 auto;padding:10px 0 40px}
.ipq-head{margin-bottom:22px}
.ipq-head h1{font-size:24px;font-weight:700;color:var(--tp-text);margin:0 0 6px}
.ipq-head p{color:var(--tp-sub);font-size:14px;margin:0}
.ipq-form{display:flex;gap:10px;margin-bottom:22px;flex-wrap:wrap}
.ipq-input{flex:1;min-width:240px;padding:12px 16px;border:1.5px solid #d5dbe6;border-radius:10px;font-size:15px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;outline:none;transition:border-color .15s,box-shadow .15s;background:#fff;color:var(--tp-text)}
.ipq-input:focus{border-color:var(--tp-brand);box-shadow:0 0 0 3px rgba(62,99,244,.12)}
.ipq-btn{padding:12px 22px;border:none;border-radius:10px;font-size:14px;font-weight:600;cursor:pointer;transition:background .15s;flex:0 0 auto}
.ipq-btn-primary{background:var(--tp-brand);color:#fff}
.ipq-btn-primary:hover{background:var(--tp-brand-dark)}
.ipq-btn-ghost{background:#fff;color:var(--tp-sub);border:1.5px solid #d5dbe6}
.ipq-btn-ghost:hover{background:#f7f9fc;border-color:var(--tp-brand)}
.ipq-actions{display:flex;gap:8px;flex-wrap:wrap}
.ipq-result{background:#fff;border:1px solid var(--tp-border);border-radius:14px;overflow:hidden;box-shadow:var(--tp-shadow)}
.ipq-result-empty{padding:48px 20px;text-align:center;color:var(--tp-muted);font-size:14px}
.ipq-result-empty svg{width:48px;height:48px;margin-bottom:14px;opacity:.5}
.ipq-result-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 22px;border-bottom:1px solid #f1f4f9;background:linear-gradient(90deg,#f8faff,#fff);flex-wrap:wrap}
.ipq-result-head .ipq-ip{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:18px;font-weight:700;color:var(--tp-text);word-break:break-all}
.ipq-ver{display:inline-flex;align-items:center;padding:3px 10px;border-radius:20px;font-size:11px;font-weight:600;letter-spacing:.5px;margin-left:10px}
.ipq-ver-v4{background:#dbeafe;color:var(--tp-brand-dark)}
.ipq-ver-v6{background:#dcfce7;color:#15803d}
.ipq-copy{background:var(--tp-dark);color:#9aa3b2;border:none;border-radius:6px;padding:5px 12px;font-size:12px;cursor:pointer}
.ipq-copy:hover{background:var(--tp-brand);color:#fff}
.ipq-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:0}
.ipq-row{padding:14px 22px;border-bottom:1px solid #f8fafc;display:flex;flex-direction:column;gap:4px}
.ipq-row:nth-child(2n){border-left:1px solid #f8fafc}
.ipq-row:last-child,.ipq-row:nth-last-child(2):nth-child(2n+1){border-bottom:none}
.ipq-label{font-size:12px;color:var(--tp-muted)}
.ipq-value{font-size:14px;color:var(--tp-text);word-break:break-all}
.ipq-value.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.ipq-value.muted{color:var(--tp-muted);font-style:italic}
@media(max-width:640px){
  .ipq-grid{grid-template-columns:1fr}
  .ipq-row:nth-child(2n){border-left:none}
}

/* ============================================================
   本地网络
   ============================================================ */
.tp-local-wrap{max-width:920px;margin:0 auto;padding:10px 0 40px}
.tp-local-head{margin-bottom:22px}
.tp-local-head h1{font-size:24px;font-weight:700;color:var(--tp-text);margin:0 0 6px}
.tp-local-head p{color:var(--tp-sub);font-size:14px;margin:0}
.tp-local-card-stack{display:flex;flex-direction:column;gap:16px}
.tp-local-card{background:#fff;border:1px solid var(--tp-border);border-radius:14px;padding:22px 26px;box-shadow:var(--tp-shadow)}
.tp-local-card-title{display:flex;align-items:baseline;gap:10px;margin-bottom:16px}
.tp-local-card-title strong{font-size:16px;font-weight:700;color:var(--tp-text)}
.tp-local-card-title span{font-size:12.5px;color:var(--tp-muted)}
.tp-local-overview{display:grid;grid-template-columns:1fr 1fr 1fr;gap:16px}
.tp-local-overview-col div{font-size:14px;color:var(--tp-sub);margin-bottom:6px}
.tp-local-overview-col b{font-size:15px;color:var(--tp-text);font-family:ui-monospace,monospace;word-break:break-all}
.tp-local-overview-col small{font-size:12px;color:var(--tp-muted)}
.tp-local-status{font-size:13px;color:var(--tp-sub);align-self:center}
.tp-local-status b{color:var(--tp-brand)}
.tp-local-cli div{display:flex;align-items:center;gap:10px;margin-bottom:10px;flex-wrap:wrap}
.tp-local-cli span{font-size:13px;color:var(--tp-sub);flex-shrink:0;width:76px}
.tp-local-cli code{flex:1;background:#f7f9fc;border:1px solid var(--tp-border);border-radius:8px;padding:9px 12px;font-size:12.5px;font-family:ui-monospace,monospace;color:var(--tp-brand-dark);word-break:break-all}
.tp-local-cli-copy{padding:6px 12px;border:1px solid var(--tp-border);border-radius:6px;background:#fff;color:var(--tp-sub);font-size:12px;cursor:pointer;flex-shrink:0}
.tp-local-cli-copy:hover{color:var(--tp-brand);border-color:var(--tp-brand)}
.tp-local-note{margin-top:14px;font-size:12.5px;color:var(--tp-muted);line-height:1.8;background:#f7f9fc;border:1px solid var(--tp-border);border-radius:10px;padding:12px 16px}
.tp-local-note code{background:#eef1f6;border-radius:4px;padding:0 5px;font-family:ui-monospace,monospace;font-size:11.5px;color:var(--tp-brand-dark)}
.tp-local-empty{color:var(--tp-muted)}
@media (max-width:640px){.tp-local-overview{grid-template-columns:1fr}}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width:900px){
  .tp-grid-2{grid-template-columns:1fr}
  .tp-map-wrap{height:370px}
  .tp-china-map,.tp-world-map{min-height:340px}
  .tp-ct-grid{grid-template-columns:1fr}
  .tp-stats-strip{grid-template-columns:repeat(3,1fr)}
  .tp-footer-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:640px){
  .tp-container{padding:12px}
  .tp-probe-form{padding:16px}
  .tp-form-row .tp-btn{flex:1;justify-content:center}
  .tp-controls-row{align-items:stretch}
  .tp-stats-strip{grid-template-columns:repeat(2,1fr)}
  .tp-stat-value{font-size:18px}
  .tp-result-table{font-size:12px}
  .tp-result-table th,.tp-result-table td{padding:7px 6px}
  .tp-quality-wave{width:120px}
  .tp-footer-grid{grid-template-columns:1fr}
}

/* ============================================================
   IP 纠错（ic-*，类名与模板内联脚本渲染逻辑保持一致）
   ============================================================ */
.ic-wrap{max-width:1300px;margin:18px auto;padding:0 16px 60px}
.ic-head{text-align:center;margin-bottom:18px}
.ic-head h1{font-size:22px;color:var(--tp-text);margin:0 0 6px;font-weight:700}
.ic-head p{margin:0;color:var(--tp-sub);font-size:13px}
.ic-stats{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-bottom:16px}
.ic-stat{background:#fff;border:1px solid var(--tp-border);border-radius:10px;padding:12px 10px;text-align:center}
.ic-stat .num{font-size:20px;font-weight:700;color:var(--tp-brand);line-height:1.2}
.ic-stat .lbl{font-size:11px;color:var(--tp-sub);margin-top:4px}
.ic-stat.pending .num{color:var(--tp-orange)}
.ic-stat.approved .num{color:var(--tp-green)}
.ic-stat.rejected .num{color:var(--tp-red)}
.ic-cols{display:grid;grid-template-columns:1.4fr 1fr;gap:16px;align-items:start}
.ic-col-left{min-width:0}
.ic-col-right{min-width:0;position:sticky;top:64px}
.ic-search-bar{margin-bottom:14px;padding:12px;background:var(--tp-bg);border-radius:8px;border:1px solid var(--tp-border)}
.ic-search-type{display:flex;gap:18px;margin-bottom:8px;font-size:13px}
.ic-search-type label{display:flex;align-items:center;gap:5px;cursor:pointer;color:var(--tp-sub);font-weight:500}
.ic-search-input{display:flex;gap:8px;flex-wrap:wrap}
.ic-search-input input{flex:1;min-width:200px;padding:8px 12px;border:1px solid var(--tp-border);border-radius:6px;font-size:13px}
.ic-search-input input:focus{outline:none;border-color:var(--tp-brand);box-shadow:0 0 0 3px rgba(62,99,244,.12)}
.ic-search-input .ic-btn{padding:8px 16px}
.ic-search-tip{font-size:12px;color:var(--tp-brand);background:var(--tp-brand-soft);padding:8px 10px;border-radius:6px;margin-bottom:10px}
.ic-card{background:#fff;border:1px solid var(--tp-border);border-radius:12px;padding:18px 20px;margin-bottom:14px;box-shadow:var(--tp-shadow)}
.ic-card h2{font-size:16px;margin:0 0 16px;color:var(--tp-text);font-weight:600;display:flex;align-items:center;gap:8px}
.ic-card h2 .ic-badge{font-size:11px;font-weight:400;color:var(--tp-sub);background:var(--tp-bg);padding:2px 8px;border-radius:10px}
.ic-form{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.ic-field{display:flex;flex-direction:column;gap:6px}
.ic-field.full{grid-column:1/-1}
.ic-field label{font-size:13px;color:var(--tp-text);font-weight:500}
.ic-field label .req{color:var(--tp-red);margin-left:2px}
.ic-field label .opt{color:var(--tp-muted);font-weight:400;font-size:12px;margin-left:6px}
.ic-field input,.ic-field textarea,.ic-field select{border:1px solid var(--tp-border);border-radius:8px;padding:9px 12px;font-size:13px;color:var(--tp-text);background:#fff;outline:none;transition:border-color .15s;font-family:inherit}
.ic-field input:focus,.ic-field textarea:focus,.ic-field select:focus{border-color:var(--tp-brand)}
.ic-field textarea{resize:vertical;min-height:72px}
.ic-field .hint{font-size:11px;color:var(--tp-muted)}
.ic-radio{display:flex;gap:14px;align-items:center}
.ic-radio label{display:flex;align-items:center;gap:5px;font-weight:400;cursor:pointer}
.ic-tips{background:#f0f9ff;border:1px solid #bae6fd;border-radius:8px;padding:12px 14px;margin-bottom:16px;color:#0c4a6e;font-size:12.5px}
.ic-tips-title{font-weight:600;margin-bottom:6px;display:flex;align-items:center;gap:6px;color:#075985}
.ic-tips ul{margin:0;padding-left:18px;line-height:1.7}
.ic-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:none;border-radius:8px;padding:10px 22px;font-size:14px;font-weight:600;cursor:pointer;transition:opacity .15s,background .15s;font-family:inherit}
.ic-btn-primary{background:var(--tp-brand);color:#fff}
.ic-btn-primary:hover{background:var(--tp-brand-dark)}
.ic-btn-primary:disabled{opacity:.6;cursor:not-allowed}
.ic-btn-outline{background:transparent;color:var(--tp-brand);border:1px solid var(--tp-brand)}
.ic-btn-outline:hover{background:rgba(62,99,244,.08)}
.ic-actions{grid-column:1/-1;display:flex;gap:10px;justify-content:flex-end;margin-top:4px}
.ic-code-box{margin-top:14px;padding:14px 16px;border-radius:8px;background:#f0fdf4;border:1px solid #bbf7d0;color:#166534;font-size:13px;display:none}
.ic-code-box .code{font-family:Menlo,Consolas,monospace;font-weight:700;letter-spacing:1px;color:#14532d}
.ic-list{display:flex;flex-direction:column;gap:10px}
.ic-item{border:1px solid var(--tp-border);border-radius:10px;padding:14px 16px;background:#fff}
.ic-item-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:8px;flex-wrap:wrap}
.ic-ip{font-family:Menlo,Consolas,monospace;font-size:14px;font-weight:600;color:var(--tp-text)}
.ic-status{font-size:11px;padding:3px 10px;border-radius:10px;font-weight:600}
.ic-status.pending{background:#fef3c7;color:#92400e}
.ic-status.approved{background:#dcfce7;color:#166534}
.ic-status.rejected{background:#fee2e2;color:#991b1b}
.ic-meta{font-size:12px;color:var(--tp-sub);display:flex;gap:14px;flex-wrap:wrap;margin-bottom:6px}
.ic-loc-block{margin-top:6px;font-size:12.5px}
.ic-loc-block .loc-lbl{display:inline-block;color:var(--tp-sub);min-width:64px}
.ic-loc-block .loc-val{color:var(--tp-text)}
.ic-actual{font-size:12px;color:#166534;background:#f0fdf4;padding:8px 10px;border-radius:6px;margin-top:6px;border:1px solid #bbf7d0}
.ic-pending-mask{font-size:12px;color:#92400e;background:#fffbeb;border:1px dashed #fde68a;border-radius:6px;padding:8px 10px;margin-top:6px}
.ic-empty{text-align:center;color:var(--tp-muted);font-size:13px;padding:30px 0}
.ic-pager{display:flex;justify-content:center;align-items:center;gap:8px;margin-top:16px}
.ic-pager button{background:#fff;border:1px solid var(--tp-border);border-radius:6px;padding:6px 12px;font-size:13px;cursor:pointer;color:var(--tp-text)}
.ic-pager button:disabled{opacity:.5;cursor:not-allowed}
.ic-pager .info{font-size:12px;color:var(--tp-sub)}
.ic-toast{position:fixed;left:50%;top:24px;transform:translateX(-50%);background:var(--tp-dark);color:#fff;padding:10px 18px;border-radius:8px;font-size:13px;z-index:9999;opacity:0;transition:opacity .2s,top .2s;pointer-events:none}
.ic-toast.show{opacity:1;top:32px}
.ic-disabled{text-align:center;padding:50px 20px;color:var(--tp-sub)}
.ic-disabled svg{width:48px;height:48px;color:var(--tp-muted);margin-bottom:10px}
#geetestBox{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);z-index:99999;background:#fff;padding:24px 28px;border-radius:14px;box-shadow:0 12px 48px rgba(0,0,0,.35);display:none;min-width:320px}
#geetestBox .title{font-size:15px;font-weight:600;color:#1a1a2e;margin-bottom:14px}
@media (max-width:900px){
  .ic-cols{grid-template-columns:1fr!important}
  .ic-col-right{order:-1}
  .ic-stats{grid-template-columns:repeat(3,1fr)}
}
/* ============================================================
   在线时长奖励名额（rq-*，类名与模板内联脚本渲染逻辑保持一致）
   ============================================================ */
/* ============================================================
   在线时长奖励名额（rq-*，类名与模板内联脚本渲染逻辑保持一致）
   ============================================================ */
.rq-region-group{margin-bottom:20px}
.rq-region-group:last-child{margin-bottom:0}
.rq-region-head{display:flex;align-items:center;gap:8px;font-size:15px;font-weight:700;color:var(--tp-text);margin-bottom:12px}
.rq-region-head .bar{display:inline-block;width:4px;height:16px;border-radius:2px;background:linear-gradient(180deg,var(--tp-brand),#7c9bff)}
.rq-region-count{font-size:12px;font-weight:400;color:var(--tp-muted)}
.rq-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px}
.rq-card{background:#f7f9fc;border:1px solid var(--tp-border);border-radius:12px;padding:16px 18px;transition:all .15s}
.rq-card:hover{border-color:var(--tp-brand);box-shadow:0 4px 14px rgba(62,99,244,.1)}
.rq-card.full{background:#fef5f5;border-color:#fecaca}
.rq-loc{font-size:15px;font-weight:700;color:var(--tp-text);margin-bottom:10px}
.rq-loc mark{background:#fde68a;color:inherit;border-radius:3px;padding:0 2px}
.rq-meta{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}
.rq-tag{display:inline-block;padding:2px 9px;border-radius:12px;font-size:11px;font-weight:500;background:#fff;border:1px solid var(--tp-border);color:var(--tp-sub)}
.rq-tag.line{background:var(--tp-brand-soft);border-color:#dbe4ff;color:var(--tp-brand-dark)}
.rq-tag.isp{background:#f3e8ff;border-color:#e9d5ff;color:#7c3aed}
.rq-tag.home{background:#fff7ed;border-color:#fed7aa;color:#c2410c}
.rq-stat{display:flex;justify-content:space-between;align-items:center;font-size:12.5px;color:var(--tp-sub);margin-bottom:8px}
.rq-used{font-family:ui-monospace,monospace;font-weight:600;color:var(--tp-text)}
.rq-free{font-family:ui-monospace,monospace;font-weight:700}
.rq-free.green{color:var(--tp-green)}
.rq-free.orange{color:var(--tp-orange)}
.rq-free.red{color:var(--tp-red)}
.rq-free.cyan{color:#0891b2}
.rq-bar{height:7px;background:#e6e9f0;border-radius:4px;overflow:hidden}
.rq-bar-inner{height:100%;border-radius:4px;transition:width .4s}
.rq-bar-inner.green{background:linear-gradient(90deg,#22c55e,#16a34a)}
.rq-bar-inner.orange{background:linear-gradient(90deg,#fbbf24,#d97706)}
.rq-bar-inner.red{background:linear-gradient(90deg,#f87171,#dc2626)}
.rq-bar-inner.cyan{background:linear-gradient(90deg,#22d3ee,#0891b2)}
.rq-remark{margin-top:10px;font-size:12px;color:var(--tp-muted);line-height:1.6;border-top:1px dashed var(--tp-border);padding-top:8px}

/* ============================================================
   首页（home）：Hero 快速搜索 + 工具分类网格 + 热门目标 + 文章块
   ============================================================ */
.tp-home-hero{background:linear-gradient(160deg,var(--tp-dark) 0%,#2e3a52 55%,#3d5ba9 100%);padding:64px 20px 58px;text-align:center;color:#fff;position:relative;overflow:hidden}
.tp-home-hero::before{content:"";position:absolute;top:-80px;right:-60px;width:340px;height:340px;background:radial-gradient(circle,rgba(62,99,244,.35),transparent 70%);pointer-events:none}
.tp-home-hero::after{content:"";position:absolute;bottom:-100px;left:-80px;width:300px;height:300px;background:radial-gradient(circle,rgba(109,139,255,.2),transparent 70%);pointer-events:none}
.tp-home-hero-inner{max-width:760px;margin:0 auto;position:relative;z-index:1}
.tp-home-hero h1{font-size:32px;font-weight:800;letter-spacing:1px;margin-bottom:14px}
.tp-home-hero p{font-size:14px;color:#c3cad6;line-height:1.9;margin-bottom:26px}
.tp-hero-search{display:flex;max-width:620px;margin:0 auto 20px;background:#fff;border-radius:12px;padding:6px;box-shadow:0 12px 40px rgba(0,0,0,.25)}
.tp-hero-search input{flex:1;min-width:0;height:44px;padding:0 16px;border:none;outline:none;font-size:14.5px;color:var(--tp-text);background:transparent}
.tp-hero-search button{display:inline-flex;align-items:center;gap:6px;height:44px;padding:0 22px;border:none;border-radius:9px;background:linear-gradient(135deg,var(--tp-brand),var(--tp-brand-dark));color:#fff;font-size:14px;font-weight:600;cursor:pointer;flex-shrink:0}
.tp-hero-search button:hover{filter:brightness(1.1)}
.tp-hero-quick{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}
.tp-hero-quick a{padding:6px 16px;border:1px solid rgba(255,255,255,.25);border-radius:18px;color:#dbe1ea;font-size:13px;text-decoration:none;transition:all .15s}
.tp-hero-quick a:hover{border-color:#fff;color:#fff;background:rgba(255,255,255,.1);text-decoration:none}
.tp-filter-bar{display:flex;gap:8px;flex-wrap:wrap;padding:14px 20px;border-bottom:1px solid var(--tp-border)}
.tp-home-hero .tp-tool-grid{padding:18px 20px}
#toolGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:12px;padding:18px 20px}
#toolGrid .tp-tool-card{display:flex;flex-direction:column;align-items:flex-start}
.tp-tool-ico{width:44px;height:44px;border-radius:11px;display:flex;align-items:center;justify-content:center;font-size:21px;margin-bottom:10px}
.tp-tool-ico.ico-blue{background:#e8f0ff}
.tp-tool-ico.ico-indigo{background:#e7e9ff}
.tp-tool-ico.ico-green{background:#e3f7ec}
.tp-tool-ico.ico-orange{background:#fdf1e2}
.tp-tool-ico.ico-purple{background:#f3e8ff}
.tp-tool-ico.ico-cyan{background:#e0f7fa}
.tp-tool-ico.ico-amber{background:#fef7e0}
.tp-tool-ico.ico-pink{background:#fde8ef}
.tp-tool-name{font-size:14.5px;font-weight:700;color:var(--tp-text);display:flex;align-items:center;gap:7px;margin-bottom:5px}
.tp-tool-badge{display:inline-block;padding:1px 8px;border-radius:10px;font-size:10.5px;font-weight:600}
.tp-tool-badge.badge-v4{background:#dbeafe;color:var(--tp-brand-dark)}
.tp-tool-badge.badge-v6{background:#dcfce7;color:#15803d}
.tp-tool-badge.badge-all{background:#f1f5f9;color:var(--tp-sub)}
.tp-tool-badge.badge-new{background:#fee2e2;color:#dc2626}
.tp-tool-desc{font-size:12.5px;color:var(--tp-sub);line-height:1.65}
.tp-hot-grid{display:flex;flex-wrap:wrap;gap:8px;padding:16px 20px}
.tp-hot-chip{display:inline-flex;align-items:center;gap:8px;padding:7px 14px;background:#f7f9fc;border:1px solid var(--tp-border);border-radius:18px;font-size:13px;color:var(--tp-text);font-family:ui-monospace,Menlo,monospace;text-decoration:none;transition:all .15s}
.tp-hot-chip:hover{border-color:var(--tp-brand);background:var(--tp-brand-soft);text-decoration:none}
.tp-hot-chip .lat{font-size:11.5px;color:var(--tp-green);font-weight:600}
.tp-article-blocks{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px;margin-bottom:16px}
.tp-art-block{background:#fff;border:1px solid var(--tp-border);border-radius:12px;padding:18px 20px;box-shadow:var(--tp-shadow)}
.tp-art-block-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.tp-art-block-head .t{font-size:15px;font-weight:700;color:var(--tp-text)}
.tp-art-block-head .more{font-size:12.5px;color:var(--tp-brand);text-decoration:none}
.tp-art-block-head .more:hover{text-decoration:underline}
.tp-art-list{display:flex;flex-direction:column}
.tp-art-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 2px;border-bottom:1px dashed #f1f4f9;text-decoration:none}
.tp-art-item:last-child{border-bottom:none}
.tp-art-item:hover{text-decoration:none}
.tp-art-item .title{flex:1;font-size:13.5px;color:var(--tp-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tp-art-item:hover .title{color:var(--tp-brand)}
.tp-art-item .date{font-size:11.5px;color:var(--tp-muted);font-family:ui-monospace,monospace;flex-shrink:0}
.tp-art-empty{padding:16px 0;text-align:center;color:var(--tp-muted);font-size:13px}
.tp-sponsors,.tp-friend-links{background:#fff;border:1px solid var(--tp-border);border-radius:12px;padding:20px 24px;margin-bottom:16px;box-shadow:var(--tp-shadow)}
.tp-sponsors-title{font-size:15px;font-weight:700;color:var(--tp-text);margin-bottom:14px;display:flex;align-items:center;gap:8px}
.tp-sponsors-title .sub{font-size:11px;font-weight:400;color:var(--tp-muted);letter-spacing:1px}
.tp-sponsors-grid{display:grid;gap:12px;align-items:center}
.tp-sponsors-grid a{display:flex;align-items:center;justify-content:center;background:#f7f9fc;border:1px solid var(--tp-border);border-radius:9px;padding:10px;transition:all .15s}
.tp-sponsors-grid a:hover{border-color:var(--tp-brand)}
.tp-friend-grid{display:flex;flex-wrap:wrap;gap:10px}
.tp-friend-grid a{display:inline-flex;align-items:center;gap:7px;padding:7px 16px;background:#f7f9fc;border:1px solid var(--tp-border);border-radius:18px;font-size:13px;color:var(--tp-sub);text-decoration:none;transition:all .15s}
.tp-friend-grid a:hover{border-color:var(--tp-brand);color:var(--tp-brand);text-decoration:none}
.tp-friend-grid a img{height:18px;border-radius:3px}

/* ============================================================
   响应式
   ============================================================ */
/* ===== 新版补充：SSL 选项复选框（nx-check） ===== */
.nx-check{display:inline-flex;align-items:center;gap:6px;cursor:pointer;color:var(--tp-sub);font-size:13px}
.nx-check input[type="checkbox"]{accent-color:var(--tp-brand);width:15px;height:15px;cursor:pointer}
