/* ISPing.me — 新版 UI 样式（2026-10-05 定稿）
   主题：跟随系统 + 手动切换浅色/深色 */

/* ================= 主题变量 ================= */
:root,
:root[data-theme="light"] {
  --font-stack: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue",
    Helvetica, Arial, sans-serif;
  --bg-grad: radial-gradient(circle at 8% 0%, #d8eaff 0, transparent 30%),
    linear-gradient(180deg, #f4f8ff 0, #edf4fd 100%);
  --text: #12213a;
  --muted: #71809a;
  --link: #0877ee;
  --blue: #1677ff;
  --card: rgba(255, 255, 255, 0.84);
  --nav-bg: rgba(255, 255, 255, 0.72);
  --hero-bg: linear-gradient(135deg, rgba(255,255,255,.9), rgba(222,236,255,.78));
  --box-bg: rgba(255, 255, 255, 0.55);
  --type-bg: #fff8ed;
  --type-border: #e2e8f1;
  --search-bg: rgba(255, 255, 255, 0.9);
  --input-border: #dbe6f4;
  --iconbtn-bg: #ffffff;
  --iconbtn-border: #dfe8f5;
  --iconbtn-color: #5b6b86;
  --row-border: #e7edf5;
  --border: #e2e8f2;
  --input-bg: #ffffff;
  --btn-bg: #1478f7;
  --tooltip-bg: #ffffff;
  --pill-green-bg: #1f9d61;
  --pill-green-text: #ffffff;
  --pill-gray-bg: #e8edf4;
  --pill-gray-text: #66788f;
  --shadow: 0 18px 50px rgba(65,105,160,.13), 0 2px 8px rgba(65,105,160,.07);
  --bar-bg: #e5ebf4;
  --toast-bg: #12213a;
  --toast-text: #ffffff;
}

:root[data-theme="dark"] {
  --bg-grad: radial-gradient(circle at 8% 0%, #16233d 0, transparent 32%),
    linear-gradient(180deg, #0d1219 0, #101724 100%);
  --text: #e8edf5;
  --muted: #93a1b5;
  --link: #5b9dff;
  --blue: #5b9dff;
  --card: rgba(20, 27, 38, 0.86);
  --nav-bg: rgba(20, 27, 38, 0.75);
  --hero-bg: linear-gradient(135deg, rgba(32,42,62,.92), rgba(22,30,48,.8));
  --box-bg: rgba(255, 255, 255, 0.05);
  --type-bg: rgba(255, 159, 10, 0.07);
  --type-border: #2a3852;
  --search-bg: rgba(255, 255, 255, 0.06);
  --input-border: #2a3852;
  --iconbtn-bg: #1b2432;
  --iconbtn-border: #2a3852;
  --iconbtn-color: #93a1b5;
  --row-border: #232e40;
  --border: #232e40;
  --input-bg: #1b2432;
  --btn-bg: #2f7de1;
  --tooltip-bg: #1b2432;
  --pill-gray-bg: #232e40;
  --pill-gray-text: #93a1b5;
  --shadow: 0 18px 50px rgba(0,0,0,.4), 0 2px 8px rgba(0,0,0,.3);
  --bar-bg: #232e40;
  --toast-bg: #e8edf5;
  --toast-text: #0d1219;
}

/* 跟随系统：未手动选择时交给媒体查询 */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) {
    --bg-grad: radial-gradient(circle at 8% 0%, #16233d 0, transparent 32%),
      linear-gradient(180deg, #0d1219 0, #101724 100%);
    --text: #e8edf5;
    --muted: #93a1b5;
    --link: #5b9dff;
    --blue: #5b9dff;
    --card: rgba(20, 27, 38, 0.86);
    --nav-bg: rgba(20, 27, 38, 0.75);
    --hero-bg: linear-gradient(135deg, rgba(32,42,62,.92), rgba(22,30,48,.8));
    --box-bg: rgba(255, 255, 255, 0.05);
    --type-bg: rgba(255, 159, 10, 0.07);
    --type-border: #2a3852;
    --search-bg: rgba(255, 255, 255, 0.06);
    --input-border: #2a3852;
    --iconbtn-bg: #1b2432;
    --iconbtn-border: #2a3852;
    --iconbtn-color: #93a1b5;
    --row-border: #232e40;
    --border: #232e40;
    --input-bg: #1b2432;
    --btn-bg: #2f7de1;
    --tooltip-bg: #1b2432;
    --pill-gray-bg: #232e40;
    --pill-gray-text: #93a1b5;
    --shadow: 0 18px 50px rgba(0,0,0,.4), 0 2px 8px rgba(0,0,0,.3);
    --bar-bg: #232e40;
    --toast-bg: #e8edf5;
    --toast-text: #0d1219;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: var(--font-stack);
  color: var(--text);
  background: var(--bg-grad);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  transition: background 0.25s ease, color 0.25s ease;
}

.wrap { width: min(880px, calc(100% - 32px)); margin: auto; }

/* ================= 导航 ================= */
.nav {
  height: 62px;
  margin: 12px auto 14px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  border: 1px solid rgba(255,255,255,.9);
  background: var(--nav-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(70,110,160,.1);
}
:root[data-theme="dark"] .nav { border-color: rgba(255,255,255,.08); }
.nav-top { display: contents; }
.sep { order: 1; } .links { order: 2; } .nav-right { order: 3; }
.brand {
  display: flex;
  align-items: center;
  font-size: 25px;
  font-weight: 750;
  letter-spacing: -.5px;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.logo {
  width: 37px; height: 37px;
  color: var(--text);
  display: grid;
  place-items: center;
  margin-right: 6px;
  flex-shrink: 0;
}
.logo svg { width: 35px; height: 35px; }
.sep { height: 25px; width: 1px; background: var(--border); margin: 0 20px; flex-shrink: 0; }
.links { display: flex; gap: 8px; align-items: center; }
.links a {
  padding: 10px 14px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  border-radius: 13px;
  white-space: nowrap;
  transition: transform .16s ease-out, background-color .2s ease;
  will-change: transform;
}
.links a:not(.active):hover { background: rgba(120,150,190,.14); }
:root[data-theme="dark"] .links a:not(.active):hover { background: rgba(140,170,220,.12); }
@media (prefers-reduced-motion: reduce) { .links a { transition: none; } }
.links a.active { background: #e7f0ff; color: #0875ef; }
.nl-short { display: none; }
:root[data-theme="dark"] .links a.active { background: rgba(91,157,255,.16); color: #5b9dff; }
.nav-right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.pill {
  height: 38px;
  border: 1px solid var(--iconbtn-border);
  background: var(--search-bg);
  border-radius: 20px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-stack);
  cursor: pointer;
}
.pill svg { width: 16px; height: 16px; }
/* 主题按钮：macOS 控制中心风格圆形按钮 */
.pill.theme-btn {
  border-radius: 50%;
  width: 38px; height: 38px;
  padding: 0; justify-content: center;
  background: linear-gradient(180deg, #ffffff, #edf1f7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 2px 8px rgba(60,90,140,.14);
  transition: transform .15s ease;
}
:root[data-theme="dark"] .pill.theme-btn {
  background: linear-gradient(180deg, #2b3546, #1a2230);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 2px 8px rgba(0,0,0,.4);
}
.pill.theme-btn:active { transform: scale(.88); }
.pill.theme-btn svg { width: 19px; height: 19px; display: block; }

/* ================= 搜索区 ================= */
.hero {
  position: relative;
  overflow: hidden;
  padding: 28px 30px 20px;
  border: 1px solid rgba(255,255,255,.95);
  border-radius: 24px;
  background: var(--hero-bg);
  box-shadow: var(--shadow);
}
:root[data-theme="dark"] .hero { border-color: rgba(255,255,255,.07); }
.hero:after {
  content: "";
  position: absolute;
  right: 15px; top: -40px;
  width: 290px; height: 230px;
  background: radial-gradient(circle at center, #8dc4ff66, transparent 64%);
  pointer-events: none;
}
.eyebrow { font-size: 11px; letter-spacing: 2px; color: #478cf0; font-weight: 700; }
.hero h1 { font-size: 38px; margin: 8px 0 5px; letter-spacing: -1.5px; }
.hero p { margin: 0 0 25px; color: var(--muted); font-size: 15px; }
.search {
  height: 60px;
  border-radius: 17px;
  background: var(--search-bg);
  border: 1px solid var(--input-border);
  box-shadow: 0 5px 18px rgba(73,119,183,.08);
  display: flex;
  align-items: center;
  padding: 6px;
}
.search .icon { font-size: 27px; color: #637795; padding: 0 15px; }
.search input {
  border: 0; outline: 0; flex: 1;
  font-size: 16px;
  background: transparent;
  color: var(--text);
  font-family: var(--font-stack);
  min-width: 0;
}
.search button {
  height: 48px;
  padding: 0 29px;
  border: 0;
  border-radius: 14px;
  background: var(--btn-bg);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 7px 18px #1677ff42;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font-stack);
}
.search button:disabled { opacity: .65; cursor: default; }

/* ================= 结果卡片 ================= */
.card {
  margin-top: 16px;
  background: var(--card);
  border: 1px solid rgba(255,255,255,.95);
  border-radius: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
:root[data-theme="dark"] .card { border-color: rgba(255,255,255,.07); }

.topinfo {
  padding: 16px 16px 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: stretch;
}

/* IP 地址栏 */
.ipbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--iconbtn-border);
  border-radius: 17px;
  background: var(--box-bg);
  min-width: 0;
}
.ipbar .flag { font-size: 30px; line-height: 1; margin-right: 8px; display: inline-flex; align-items: center; align-self: center; }
.ip {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -.5px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  white-space: nowrap;
  min-width: 0; /* 允许在 flex 容器中收缩，配合 JS 字号自适应 */
  overflow: hidden; /* 收缩瞬间不与右侧按钮重叠 */
}
.iconbtn {
  width: 34px; height: 34px;
  border-radius: 10px;
  border: 1px solid var(--iconbtn-border);
  background: var(--iconbtn-bg);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  color: var(--iconbtn-color);
  font-family: var(--font-stack);
  flex-shrink: 0;
}
.iconbtn:hover { border-color: var(--blue); color: var(--blue); }
.iconbtn svg { width: 17px; height: 17px; }
.ipbar .iconbtn { width: 26px; height: 26px; }
.ipbar .iconbtn svg { width: 15px; height: 15px; }
.iconbtn.sm { width: 26px; height: 26px; }
.iconbtn.sm svg { width: 15px; height: 15px; }
.v6 {
  font-size: 11px;
  color: var(--link);
  border: 1px solid #bcd9ff;
  background: #f0f7ff;
  border-radius: 10px;
  padding: 4px 8px;
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}
:root[data-theme="dark"] .v6 { border-color: #2f4a75; background: rgba(91,157,255,.12); }

/* IP 类型 */
.type {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 19px 20px 14px;
  border: 1px solid var(--type-border);
  border-radius: 17px;
  background: var(--type-bg);
}
.type .tb-label { font-size: 14px; color: var(--text); white-space: nowrap; }
.type .badges { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: center; }
.type .faq { font-size: 12px; color: var(--link); text-decoration: none; white-space: nowrap; }

/* 大徽章（IP 类型区） */
.pill-bw-dc, .pill-bw-home, .pill-type-unk, .pill-native-lg, .pill-bcast-lg {
  font-size: 14.5px;
  font-weight: 800;
  color: #fff;
  padding: 10px 24px;
  border-radius: 999px;
  white-space: nowrap;
  display: inline-block;
}
.pill-bw-dc { background: linear-gradient(135deg, #ff9f0a, #ff6b35); box-shadow: 0 4px 10px #ff6b3530; }
.pill-bw-home, .pill-native-lg { background: #1f9d61; box-shadow: 0 4px 10px #18b76a30; }
.pill-type-unk { background: linear-gradient(135deg, #9aa0a6, #7b8188); box-shadow: 0 4px 10px #7b818830; }
.pill-bcast-lg { background: linear-gradient(135deg, #f6cfa8, #e8a558); color: #7a4a12; box-shadow: 0 4px 10px #e8a55830; }

/* 小徽章（行内） */
.pill-idx-idc, .pill-idx-isp, .pill-idx-bus, .pill-idx-unk,
.pill-gray, .pill-mobile {
  display: inline-block;
  border-radius: 10px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 750;
  color: #fff;
  flex-shrink: 0;
  white-space: nowrap;
  min-width: 40px;
  text-align: center;
  box-sizing: border-box;
}
.pill-native, .pill-bcast {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  white-space: nowrap;
  box-sizing: border-box;
}
.pill-idx-idc { background: linear-gradient(180deg, #ff9f0a, #f67b1f); box-shadow: 0 4px 10px #ff9f0a30; margin-right: 8px; }
.pill-idx-isp { background: linear-gradient(180deg, #25c977, #0eaa5c); box-shadow: 0 4px 10px #18b76a30; margin-right: 8px; }
.pill-idx-bus { background: linear-gradient(180deg, #b5d334, #86a81c); box-shadow: 0 4px 10px #a3c42230; margin-right: 8px; }
.pill-idx-unk { background: #9aa0a6; margin-right: 8px; }
.pill-native { background: #1f9d61; box-shadow: 0 4px 10px #18b76a30; }
.pill-bcast { background: #f6cfa8; color: #a05a1a; }
.pill-gray { background: var(--pill-gray-bg); color: var(--pill-gray-text); }
.pill-mobile { background: #7c6cf0; }

/* 启发式/注册地小标注 */
.est-tag {
  font-size: 10px;
  color: var(--muted);
  border: 1px dashed var(--muted);
  border-radius: 4px;
  padding: 0 4px;
  margin-left: 6px;
  vertical-align: 2px;
  white-space: nowrap;
}

/* ================= 信息区 ================= */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 16px 14px;
}
.panel {
  border: 1px solid var(--iconbtn-border);
  border-radius: 17px;
  background: var(--box-bg);
  padding: 5px 16px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.row {
  min-height: 58px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--row-border);
  min-width: 0;
  flex: 1 0 auto;
}
.row:last-child { border-bottom: 0; }
.ico {
  width: 35px; height: 35px;
  border-radius: 12px;
  background: #eaf2ff;
  color: #287cf2;
  display: grid;
  place-items: center;
  margin-right: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
.ico svg { width: 19px; height: 19px; }
.label { width: 110px; font-size: 14px; flex-shrink: 0; }
.value { font-size: 14px; min-width: 0; overflow-wrap: anywhere; }
/* ASN 所有者 / 企业：长文本缩小字号并强制断行，防止撑破边框（禁止省略号） */
#v-owner, #v-isp { flex: 1 1 0; width: 0; min-width: 0; font-size: 13px; word-break: break-all; overflow-wrap: anywhere; white-space: normal; overflow: visible; text-overflow: clip; }
.link { color: var(--link); text-decoration: none; }
a.link:hover { text-decoration: underline; }
.btn-outline {
  font-size: 13px;
  color: #1f6fe5;
  border: 1px solid #bcd6fb;
  background: #eaf2fe;
  border-radius: 999px;
  padding: 8px 22px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-stack);
}
.btn-outline:hover { background: #dbeafe; }
:root[data-theme="dark"] .btn-outline { border-color: rgba(91,157,255,.4); background: rgba(91,157,255,.16); color: #7db3ff; }
.btn-outline:disabled { opacity: .6; cursor: default; }

/* 国旗图片（Windows Chrome/Edge 不渲染 flag emoji，一律用图片） */
.flag-img {
  width: 22px; height: 15px;
  object-fit: cover;
  border-radius: 2px;
  vertical-align: -2px;
  margin-right: 4px;
  box-shadow: 0 0 1px rgba(0,0,0,.35);
}
/* IP 地址栏国旗：24px 高，与 IP 文字视觉协调 */
.ipbar .flag-img { width: 34px; height: 24px; border-radius: 3px; }

/* 悬浮位置卡片 */
.loc-wrap { position: relative; display: inline-block; }
.loc-card {
  display: none;
  position: absolute;
  top: 135%;
  left: 0;
  width: 300px;
  max-width: 70vw;
  background: var(--tooltip-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 12px 14px;
  text-align: left;
  z-index: 30;
  font-size: 13px;
  line-height: 1.9;
  color: var(--text);
}
.loc-wrap:hover .loc-card { display: block; }
.loc-card .loc-en { color: var(--muted); font-size: 12px; }
.loc-card .loc-src { color: var(--muted); font-size: 12px; }
.loc-card .conf-bar {
  display: inline-block;
  width: 34px; height: 6px;
  border-radius: 3px;
  background: var(--pill-gray-bg);
  margin-right: 5px;
  vertical-align: 1px;
}
.loc-card .conf-bar.on { background: #1f9d61; }

/* AI 检测 chips */
.ai-chips { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.ai-chip { animation: aiChipIn .35s cubic-bezier(.2,.8,.3,1.2) both; }
@keyframes aiChipIn { from { opacity: 0; transform: translateY(6px) scale(.92); } to { opacity: 1; transform: none; } }
.ai-chip.pop { animation: splitPop .38s cubic-bezier(.2,.8,.3,1.25) both; }
.ai-chip {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--pill-gray-bg);
  color: var(--muted);
  white-space: nowrap;
}
.ai-chip.ok { background: rgba(31,157,97,.14); border-color: #1f9d61; color: #1f9d61; }
.ai-chip.fail { background: rgba(229,72,77,.12); border-color: #e5484d; color: #e5484d; }
.ai-chip.wait { opacity: .7; }

/* ================= 风控 / 共享 / 数字 IP ================= */
.status {
  margin: 0 16px 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.status > .statusbox { min-width: 0; }
.statusbox {
  min-height: 65px;
  border: 1px solid var(--iconbtn-border);
  border-radius: 17px;
  background: var(--box-bg);
  display: flex;
  align-items: center;
  padding: 5px 16px;
  gap: 14px;
  min-width: 0;
}
.statusbox b { white-space: nowrap; flex-shrink: 0; font-size: 14px; }
.statusbox .ico { flex-shrink: 0; margin-right: 0; }
/* 内容区左移一个 gap，与上方 .row 的值左对齐（仅进度条，徽章保持右对齐） */
.statusbox > .bar { margin-left: -14px; }
.bar {
  flex: 1 1 auto;
  min-width: 70px;
  height: 25px;
  background: var(--bar-bg);
  border-radius: 15px;
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  border-radius: 15px;
  box-sizing: border-box;
  padding: 0 10px;
  text-align: center;
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  line-height: 25px;
  white-space: nowrap;
  min-width: max-content; /* 徽章最小宽度容纳文字，文字始终在彩色徽章内 */
  transition: width .6s ease;
}
.dots { display: flex; gap: 7px; flex-shrink: 0; }
.dot { width: 13px; height: 13px; border-radius: 50%; }
.d1 { background: #34c759; } .d2 { background: #a3d426; } .d3 { background: #ffd60a; }
.d4 { background: #ff9f0a; } .d5 { background: #ff453a; }
.share {
  width: 128px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  background: #f0b000;
  color: #fff;
  border-radius: 14px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
/* 大模型检测通栏：chips 展开只撑高本栏，不影响上方 4+4 网格 */
.airow { margin: 0 16px 16px; flex-wrap: wrap; }
.airow .ai-body { display: flex; align-items: center; gap: 12px; flex: 1; flex-wrap: wrap; min-width: 0; }
.airow #aiBtn { margin-left: -14px; }
/* IP 地址(数字)行内 */
.numval { display: flex; align-items: center; gap: 10px; }
.numval #v-num { letter-spacing: 3px; color: var(--muted); font-size: 14px; }

/* ================= 地图 ================= */
.map-card { padding: 12px 12px 14px; overflow: hidden; }
.map-title { padding: 3px 8px 11px; font-weight: 700; font-size: 15px; }
#map { height: 200px; width: 100%; z-index: 1; border-radius: 15px; background: var(--bar-bg); }
:root[data-theme="dark"] .maplibregl-canvas {
  filter: invert(1) hue-rotate(185deg) brightness(.92) contrast(.92);
}
/* 地图定位图标（CSS 绘制，不依赖外部图片） */
.p0-pin-wrap { background: none; border: none; }
.p0-pin { width: 30px; height: 34px; position: relative; }
.p0-pin::before {
  content: "";
  position: absolute;
  left: 3px; top: 0;
  width: 24px; height: 24px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: #2563eb;
  border: 2.5px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.45);
}
.p0-pin::after {
  content: "";
  position: absolute;
  left: 11.5px; top: 8.5px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #fff;
}

/* ================= 工具视图（PING / 家宽ASN / DNS） ================= */
.tool-card { padding: 30px 28px; text-align: center; }
.tool-card h1 { font-size: 26px; margin: 0 0 8px; letter-spacing: -1px; }
.tool-card .sub { color: var(--muted); font-size: 14px; margin: 0 0 6px; }
.tool-cta { padding: 14px 0 4px; }
.btn-go {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 14px;
  background: var(--btn-bg);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 7px 18px #1677ff42;
}
.tool-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 700;
  padding: 6px 0 4px;
}
.tool-note { color: var(--muted); font-size: 12px; text-align: center; padding: 0 20px 20px; }

/* 家宽ASN查询 */
.homeasn-controls {
  display: flex;
  gap: 10px;
  align-items: stretch;
  justify-content: center;
  margin-top: 18px;
  flex-wrap: wrap;
}
.country-select-wrap { position: relative; flex: 0 0 320px; max-width: 100%; min-width: 0; }
.country-btn {
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid var(--input-border);
  background: var(--search-bg);
  color: var(--text);
  font-size: 15px;
  font-family: var(--font-stack);
  cursor: pointer;
}
.country-flag { display: inline-flex; align-items: center; }
.country-flag .flag-img { width: 26px; height: 18px; margin-right: 0; }
.country-name { flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.country-caret { color: var(--muted); }
.country-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: var(--tooltip-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  z-index: 40;
  padding: 6px;
}
/* 下拉面板所在卡片需压住下方结果卡片：.card 的 backdrop-filter 会创建层叠上下文，
   面板的 z-index 只在卡片内部有效，不抬卡片会被后出现的兄弟卡片盖住 */
#view-homeasn > .tool-card:first-child { position: relative; z-index: 2; }
.country-panel input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--input-border);
  border-radius: 10px;
  padding: 0 12px;
  font-size: 14px;
  background: var(--input-bg);
  color: var(--text);
  font-family: var(--font-stack);
  outline: none;
  margin-bottom: 6px;
}
.country-list { max-height: 280px; overflow-y: auto; padding: 6px; }
.country-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
}
.country-item:hover { background: var(--pill-gray-bg); }
.country-item-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; text-align: left; }
.country-item-code { color: var(--muted); font-size: 12px; flex-shrink: 0; }
.country-empty { padding: 16px; text-align: center; color: var(--muted); font-size: 13px; }
.homeasn-go {
  height: 48px;
  padding: 0 32px;
  border: 0;
  border-radius: 14px;
  background: var(--btn-bg);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 7px 18px #1677ff42;
  font-family: var(--font-stack);
}
#homeasnResultTitle { display: inline-flex; align-items: center; gap: 8px; }
#homeasnBody { display: flex; flex-direction: column; align-items: center; padding: 0 20px; }
#homeasnBody .hasn-row { width: 100%; max-width: 760px; box-sizing: border-box; }
.hasn-row {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 14px 4px;
  border-bottom: 1px solid var(--row-border);
  text-align: left;
}
.hasn-row:last-child { border-bottom: 0; }
.hasn-left { display: flex; align-items: center; gap: 8px; flex-shrink: 0; min-width: 148px; padding-top: 1px; }
.hasn-num { color: var(--muted); font-size: 14px; min-width: 20px; }
.hasn-asn { font-size: 16px; font-weight: 700; white-space: nowrap; }
.hasn-copy {
  width: 26px; height: 26px;
  border-radius: 8px;
  border: 1px solid var(--iconbtn-border);
  background: var(--iconbtn-bg);
  color: var(--iconbtn-color);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}
.hasn-copy svg { width: 14px; height: 14px; }
.hasn-right { flex: 1; min-width: 0; }
.hasn-name { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.hasn-en { font-weight: 400; color: var(--muted); font-size: 13px; }
.hasn-desc { font-size: 13px; color: var(--muted); line-height: 1.7; }
.homeasn-empty { padding: 20px 4px; color: var(--muted); font-size: 14px; text-align: center; }

/* ================= 页脚 / Toast ================= */
.site-footer {
  text-align: center;
  color: var(--muted);
  font-size: 11px;
  padding: 14px 0 24px;
  line-height: 2;
}
#appVer { opacity: .6; }
#toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%) translateY(20px);
  background: var(--toast-bg);
  color: var(--toast-text);
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: all .25s ease;
  z-index: 100;
  max-width: 80vw;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ================= 移动端 ================= */
@media (max-width: 760px) {
  .wrap { width: calc(100% - 18px); }
  /* 导航：缩小按钮，给链接留空间 */
  .nav { height: 56px; padding: 0 10px; }
  .sep { display: none; }
  .brand { font-size: 19px; }
  .logo { width: 32px; height: 32px; margin-right: 1px; }
  .logo svg { width: 30px; height: 30px; }
  .links { flex: 1 1 auto; min-width: 0; gap: 2px; overflow-x: auto; scrollbar-width: none; }
  .links::-webkit-scrollbar { display: none; }
  .links a { font-size: 12px; padding: 7px 9px; margin-left: 1px; }
  /* 两行导航：品牌行 + 栏目行；5 个徽章等宽等高（26px）整行均分 */
  .nav { flex-wrap: wrap; height: auto; padding: 0; row-gap: 8px; background: transparent; border-color: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav-top { display: flex; align-items: center; width: 100%; padding: 7px 12px; border: 1px solid rgba(255,255,255,.9); background: var(--nav-bg); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border-radius: 18px; box-shadow: 0 10px 30px rgba(70,110,160,.1); }
  :root[data-theme="dark"] .nav-top { border-color: rgba(255,255,255,.08); }
  .brand { font-size: 17px; }
  .logo { width: 28px; height: 28px; }
  .logo svg { width: 26px; height: 26px; }
  .links { order: 3; flex: 1 1 100%; gap: 4px; padding: 5px; justify-content: space-between; border: 1px solid rgba(255,255,255,.9); background: var(--nav-bg); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border-radius: 18px; box-shadow: 0 10px 30px rgba(70,110,160,.1); }
  :root[data-theme="dark"] .links { border-color: rgba(255,255,255,.08); }
  .links a { flex: 0 0 56px; width: 56px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; height: 26px; font-size: 11.5px; padding: 0 6px; margin-left: 0; background: rgba(120,150,190,.10); border: 1px solid rgba(90,120,170,.20); }
  .links a.active { border-color: rgba(8,117,239,.38); }
  :root[data-theme="dark"] .links a { border-color: rgba(140,170,220,.24); }
  .links a.active { padding: 0 6px; }
  .links a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nl-full { display: none; }
  .nl-short { display: inline; }
  .links a.active { padding: 0 6px; }
  .nav-right { gap: 6px; }
  .pill { height: 26px; padding: 0 8px; font-size: 11px; gap: 4px; }
  .pill svg { width: 14px; height: 14px; }
  .pill.theme-btn { width: 26px; height: 26px; padding: 0; font-size: 14px; }
  /* hero 压缩：少占屏，多显示查询结果 */
  .hero { padding: 16px 16px 14px; }
  .hero .eyebrow { display: none; }
  .hero h1 { font-size: 24px; margin: 0 0 4px; letter-spacing: -1px; }
  .hero p { font-size: 13px; margin: 0 0 14px; }
  .search { height: 52px; }
  .search .icon { font-size: 22px; padding: 0 10px; }
  .search input { font-size: 15px; }
  .search button { height: 40px; padding: 0 18px; font-size: 14px; }
  .grid, .status { grid-template-columns: 1fr; }
  .topinfo { grid-template-columns: 1fr; padding: 16px 16px 10px; }
  .ipbar { flex-wrap: wrap; }
  .ip { font-size: 24px; }
  .label { width: 90px; }
  .grid .panel:first-child .label { width: 90px; }
  .bar { width: 140px; max-width: 40%; }
  #map { height: 175px; }
  .tool-card { padding: 22px 16px; }
  .homeasn-controls { flex-direction: column; align-items: stretch; }
  .country-select-wrap { flex: 1 1 auto; }
}

/* Q&A 弹窗：为什么双ISP还会显示"IDC机房IP"？ */
/* 网络标记 */

.nm-info { background:none; border:none; padding:2px; margin-left:2px; color:#a0a5ad; cursor:pointer; display:inline-flex; transform:translateY(3px); }
.nm-info svg { width:16px; height:16px; display:block; }
.nm-info:hover { color:#1a8fe3; }
.nm-value { margin-left:auto; display:flex; align-items:center; }
#v-native { margin-left:auto; display:flex; align-items:center; }
.nm-badge { display:inline-flex; align-items:center; justify-content:center; width:128px; max-width:100%; border-radius:14px; padding:6px 0; font-size:12px; font-weight:700; color:#fff; box-sizing:border-box; cursor:pointer; white-space:nowrap; flex-shrink:0; }
.nm-green { background:linear-gradient(135deg,#25c977,#12a45c); }
.nm-red { background:linear-gradient(135deg,#ff6b6b,#e84545); }
.nm-gray { background:#e8ebf0; color:#8a8f98; cursor:default; }
.nm-summary { background:#eef4ff; border-radius:12px; padding:12px 14px; margin-bottom:12px; font-size:14px; }
:root[data-theme="dark"] .nm-summary { background:rgba(26,143,227,.12); }
.nm-summary .hl { color:#1a8fe3; font-weight:700; }
.nm-summary .nm-note { color:#5a5a5e; font-size:13px; margin-top:4px; line-height:1.6; }
.nm-item { background:#f7f9fc; border-radius:12px; padding:12px 14px; margin-bottom:10px; }
:root[data-theme="dark"] .nm-item { background:rgba(255,255,255,.04); }
.nm-item .nm-top { display:flex; align-items:center; justify-content:space-between; margin-bottom:6px; }
.nm-item .nm-name { font-size:15px; font-weight:700; }
.nm-item .nm-status { font-size:13px; font-weight:600; }
.nm-item .nm-status.ok { color:#1a8fe3; }
.nm-item .nm-status.hit { color:#e84545; }
.nm-item .nm-status.unk { color:#8a8f98; }
.nm-item .nm-desc { font-size:13px; color:#5a5a5e; line-height:1.6; }
.qa-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10, 18, 32, 0.55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.qa-overlay[hidden] { display: none; }
.qa-dialog {
  width: min(640px, 100%); max-height: 82vh;
  background: var(--card);
  border: 1px solid rgba(120, 150, 200, 0.18);
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  display: flex; flex-direction: column; overflow: hidden;
  animation: qa-pop 0.22s ease;
}
@keyframes qa-pop {
  from { transform: scale(0.96) translateY(8px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .qa-dialog { animation: none; }
}
.qa-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 15px 18px;
  border-bottom: 1px solid rgba(120, 150, 200, 0.14);
  flex: none;
}
.qa-title { font-size: 16px; font-weight: 700; color: var(--text); }
.qa-close {
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgba(120, 150, 200, 0.22);
  background: transparent; color: var(--text);
  font-size: 14px; line-height: 1; cursor: pointer;
}
.qa-close:hover { background: rgba(120, 150, 200, 0.12); }
.qa-body {
  padding: 4px 18px 18px; overflow-y: auto;
  color: var(--text); font-size: 14px; line-height: 1.75;
}
.qa-item { padding: 12px 0; border-bottom: 1px dashed rgba(120, 150, 200, 0.16); }
.qa-item:last-child { border-bottom: none; }
.qa-q { font-weight: 700; margin-bottom: 6px; }
.qa-a { opacity: 0.9; }
.qa-a code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px;
  background: rgba(120, 150, 200, 0.12); padding: 1px 6px; border-radius: 6px;
}

/* ================= 伪装检测 ================= */
#view-disguise .hero { padding: 26px 30px 24px; text-align: center; }
#view-disguise .hero:after { display: none; }
#view-disguise .hero .eyebrow { display: block; }
#view-disguise .hero h1 { font-size: 38px; margin: 8px 0 5px; letter-spacing: -1.5px; }
#view-disguise .hero p { font-size: 14px; margin: 0 0 18px; }
#view-disguise .card { padding: 24px 26px; }
.dsg-disclaimer {
  text-align: center; color: var(--muted); font-size: 12px;
  margin: 12px 0 0; letter-spacing: 0.5px;
}
/* 检测过渡动画 */
#dsgScoreCard.card-in { animation: dsgCardIn 0.5s ease-out backwards; }
.dim-card.dsg-card-in { animation: dsgCardIn 0.5s ease-out backwards; }
#dsgFixCard.dsg-card-in { animation: dsgCardIn 0.5s ease-out backwards; }
@keyframes dsgCardIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
/* 逐项检测动画 */
.st-checking { background: var(--bar-bg); color: var(--muted); }
.st-checking::before {
  content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 6px;
  border: 2px solid var(--muted); border-top-color: transparent; border-radius: 50%;
  vertical-align: -1px; animation: dsgSpin 0.7s linear infinite;
}
@keyframes dsgSpin { to { transform: rotate(360deg); } }
.check-list li.dsg-item-in { animation: dsgItemIn 0.35s ease-out; }
@keyframes dsgItemIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .dim-card.dsg-card-in, #dsgFixCard.dsg-card-in, #dsgScoreCard.card-in, .check-list li.dsg-item-in { animation: none; }
  .st-checking::before { animation: none; }
}
.btn-start {
  display: inline-block; padding: 13px 44px; border: none; cursor: pointer;
  border-radius: 14px; background: var(--btn-bg); color: #fff;
  font-weight: 700; font-size: 15px; box-shadow: 0 7px 18px #1677ff42;
}
.btn-start:disabled { opacity: 0.6; cursor: default; }
.score-overview { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.score-ring { position: relative; width: 140px; height: 140px; flex: none; }
.score-ring svg { width: 100%; height: 100%; display: block; }
.score-text {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.score-text b { font-size: 38px; font-weight: 700; letter-spacing: -1px; line-height: 1; }
.score-text span { font-size: 12px; color: var(--muted); margin-top: 4px; }
.score-detail { flex: 1; min-width: 240px; }
.dim-dots { display: flex; flex-direction: column; gap: 14px; }
.dot-row { display: flex; align-items: center; gap: 14px; }
.dot-meta { flex: none; width: 86px; }
.dot-meta b { font-size: 14px; display: block; }
.dot-meta span { font-size: 12px; color: var(--muted); }
.dots { display: flex; align-items: center; gap: 5px; flex: 1; }
.dots i { width: 13px; height: 13px; border-radius: 50%; background: var(--bar-bg); flex: none; }
.dots i.on-g { background: #30d158; }
.dots i.on-b { background: #0a84ff; }
.dots i.on-p { background: #bf5af2; }
.dots i.on-o { background: #ff9f0a; }
.dots b { font-size: 17px; font-weight: 700; margin-left: 10px; min-width: 30px; text-align: right; flex: none; }
/* 移动端：圆点行垂直堆叠，避免横向溢出 */
@media (max-width: 640px) {
  .dot-row { flex-wrap: wrap; gap: 8px; }
  .dot-meta { width: 100%; display: flex; align-items: baseline; gap: 8px; }
  .dot-meta b { display: inline; }
  .dot-meta span { display: inline; }
  .dots { flex: 1 1 100%; gap: 4px; }
  .dots i { width: 11px; height: 11px; }
  .score-overview { gap: 18px; }
  .score-ring { width: 120px; height: 120px; margin: 0 auto; }
}
.dim-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .dim-grid { grid-template-columns: 1fr; } }
.dim-card { margin-top: 18px; }
.dim-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.dim-head h3 { font-size: 16px; margin: 0; }
.dim-head .weight { font-size: 12px; color: var(--muted); }
.dim-score { font-size: 26px; font-weight: 800; }
.dim-score small { font-size: 12px; color: var(--muted); font-weight: 400; }
.check-list { list-style: none; margin: 10px 0 0; padding: 0; }
.check-list li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13.5px; padding: 9px 0;
  border-top: 1px dashed var(--card-border);
}
.check-list li:first-child { border-top: none; }
.check-list .txt { flex: 1; line-height: 1.6; }
.check-list .txt small { display: block; color: var(--muted); font-size: 12px; }
.st { flex: none; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; color: #fff; margin-top: 1px; }
.st-info { background: #5b9dff; }
.st-ok { background: linear-gradient(180deg, #25c977, #0eaa5c); }
.st-warn { background: linear-gradient(180deg, #ff9f0a, #f67b1f); }
.st-risk { background: linear-gradient(180deg, #ff5b5b, #e5484d); }
.fix-list { margin: 0; padding: 0; list-style: none; counter-reset: fix; }
.fix-list li { counter-increment: fix; display: flex; gap: 12px; padding: 10px 0; font-size: 14px; border-top: 1px dashed var(--card-border); line-height: 1.65; }
.fix-list li:first-child { border-top: none; }
.fix-list li::before {
  content: counter(fix); flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: rgba(255, 159, 10, 0.14); color: #f67b1f;
  font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.qa h4 { font-size: 14px; margin: 16px 0 6px; }
.qa h4:first-child { margin-top: 0; }
.qa p, .qa ul { font-size: 13.5px; color: var(--muted); line-height: 1.75; margin: 0 0 8px; }
.qa ul { padding-left: 18px; }
.qa b { color: var(--text); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; margin: 10px 0; }
.legend > span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text); }
.legend .st { margin-top: 0; }

/* Cookie 同意横幅 */
.cookie-banner{position:fixed;left:16px;right:16px;bottom:16px;z-index:200;max-width:640px;margin:0 auto;
  display:flex;gap:14px;align-items:center;justify-content:space-between;flex-wrap:wrap;
  padding:14px 18px;border-radius:16px;font-size:13.5px;line-height:1.6;
  background:var(--card,rgba(255,255,255,.85));backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);
  border:1px solid var(--card-border,rgba(0,0,0,.08));box-shadow:0 12px 40px rgba(0,0,0,.14)}
.cookie-banner p{margin:0;flex:1;min-width:220px;color:var(--muted,#555)}
.cookie-banner a{color:inherit;text-decoration:underline}
.cookie-btns{display:flex;gap:10px;flex:none}
.cookie-btns button{padding:8px 20px;border-radius:999px;border:none;font-size:13.5px;font-weight:600;cursor:pointer;
  background:#111;color:#fff}
.cookie-btns button.ghost{background:transparent;color:var(--text,#111);border:1px solid var(--card-border,rgba(0,0,0,.15))}
[data-theme="dark"] .cookie-btns button{background:#fff;color:#111}
[data-theme="dark"] .cookie-btns button.ghost{background:transparent;color:#fff}

/* 法律页面（SPA 视图）：legal-wrap 用 display:contents 消除包装层，卡片直接对标主站 .card 宽度 */
.legal-wrap{display:contents}
.legal-wrap h1{font-size:28px;margin:8px 0 4px}
.legal-wrap h2{font-size:19px;margin:0 0 10px}
.legal-wrap p,.legal-wrap li{font-size:15px;color:var(--muted)}
.legal-wrap ul{padding-left:22px}
.legal-wrap .updated{font-size:13px;color:var(--muted);opacity:.8}
.legal-wrap a{color:inherit;text-decoration:underline}
.legal-card{background:var(--card);border:1px solid rgba(255,255,255,.95);border-radius:22px;box-shadow:var(--shadow);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);padding:26px 28px;margin:0 0 16px;line-height:1.8}
.legal-card h1{margin-top:0}
.legal-card h2:first-child{margin-top:0}
:root[data-theme="dark"] .legal-card{border-color:rgba(255,255,255,.07)}
@media(max-width:560px){.legal-card{padding:20px}}
.legal-wrap .lang-en{display:none}
html[lang="en"] .legal-wrap .lang-zh{display:none}
html[lang="en"] .legal-wrap .lang-en{display:block}
.legal-wrap .feat-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:14px}
.legal-wrap .feat{border:1px solid var(--card-border);border-radius:14px;padding:16px;background:var(--card)}
.legal-wrap .feat b{display:block;font-size:15px;margin-bottom:6px;color:var(--text)}
.legal-wrap .feat span{font-size:13.5px;color:var(--muted)}
@media(max-width:560px){.legal-wrap .feat-grid{grid-template-columns:1fr}}
.legal-wrap .contact-card{border:1px solid var(--card-border);border-radius:14px;padding:20px;background:var(--card);margin-top:16px}

/* Logo ISP 绿底徽章 */
.logo-isp{background:rgba(37,201,119,.16);color:#0e9e57;padding:1px 3px;border-radius:4px;margin-right:0;font-weight:800}
:root[data-theme="dark"] .logo-isp{background:rgba(37,201,119,.22);color:#2fd07f}


/* ===== 网站连通性检测 ===== */
.sites-top { display:flex; gap:10px; justify-content:center; align-items:center; flex-wrap:wrap; }
.sites-stop { height:48px; padding:0 30px; border-radius:14px; display:inline-flex; align-items:center; justify-content:center; background:linear-gradient(180deg,#ffffff,#eef1f6); border:1px solid rgba(20,40,80,.10); color:var(--text); font-weight:700; font-size:15px; cursor:pointer; box-shadow:inset 0 1px 0 rgba(255,255,255,.85), 0 7px 18px rgba(60,90,140,.12); transition:transform .15s ease; }
.sites-stop:active { transform:scale(.96); }
:root[data-theme="dark"] .sites-stop { background:linear-gradient(180deg,#2b3546,#1a2230); border-color:rgba(255,255,255,.10); box-shadow:inset 0 1px 0 rgba(255,255,255,.08), 0 2px 8px rgba(0,0,0,.35); }
.sites-group { padding:20px 22px 12px; }
.sites-group-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding-bottom:12px; }
.sites-group-title { font-size:17px; font-weight:700; display:flex; align-items:center; gap:8px; }
.sites-group-title .cnt { color:var(--muted); font-size:13px; font-weight:500; }
.cat-ico { font-size:17px; line-height:1; }
.sites-retest { padding:7px 16px; border-radius:999px; border:1px solid var(--border); background:var(--iconbtn-bg); color:var(--text); font-size:13px; font-weight:600; cursor:pointer; }
.site-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(208px,1fr)); gap:10px; padding-top:12px; }
.site-tile { border:1px solid var(--row-border); border-radius:14px; padding:12px 14px; background:var(--search-bg); text-align:left; animation:tileIn .45s ease backwards; }
.site-tile.more { display:none; }
.sites-group.expanded .site-tile.more { display:block; animation:tileIn .4s ease; }
.tile-top { display:flex; align-items:center; gap:9px; }
.tile-bot { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:11px; }
.site-nm { display:flex; flex-direction:column; min-width:0; line-height:1.25; text-align:left; }
.site-nm b { font-size:16px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.site-nm small { font-size:12px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sites-expand-wrap { display:flex; justify-content:center; padding:12px 0 4px; }
.sites-expand { display:inline-flex; align-items:center; gap:6px; padding:7px 18px; border-radius:999px; border:1px solid var(--border); background:var(--iconbtn-bg); color:var(--text); font-size:13px; font-weight:600; cursor:pointer; box-shadow:0 1px 3px rgba(60,90,140,.08); transition:transform .15s ease, background .15s ease; }
.sites-expand:active { transform:scale(.96); }
.sites-expand svg { width:12px; height:12px; display:block; transition:transform .25s ease; }
.sites-group.expanded .sites-expand svg { transform:rotate(180deg); }
.site-ico { width:26px; height:26px; border-radius:6px; flex:none; background:var(--pill-gray-bg); object-fit:contain; }
.site-ico-fb { display:inline-flex; align-items:center; justify-content:center; color:#fff; font-size:13px; font-weight:700; }
.site-dots { display:flex; gap:4px; flex:none; }
.site-dot { width:8px; height:8px; border-radius:50%; background:var(--pill-gray-bg); transition:background .2s ease; }
.site-dot.ok { background:#1f9d61; }
.site-dot.slow { background:#e3a008; }
.site-dot.bad { background:#f0643c; }
.site-dot.fail { background:#e5484d; }
.dot-in { animation:dotIn .28s ease; }
.site-lat { flex:none; text-align:right; font-size:15px; font-weight:700; color:var(--text); font-variant-numeric:tabular-nums; letter-spacing:-.2px; display:inline-block; }
.lat-pop { animation:latPop .32s ease; }
.lat-badge { display:inline-block; min-width:34px; text-align:center; padding:2px 8px; border-radius:999px; font-size:12px; font-weight:700; color:#fff; margin-left:6px; }
.lat-unit { font-size:12px; font-weight:700; color:inherit; margin-left:2px; }
.lat-val.lat-good { color:#1f9d61; } .lat-val.lat-ok { color:#cf7a00; } .lat-val.lat-slow { color:#dd7016; } .lat-val.lat-fail { color:#e5484d; }
.lat-badge.lat-good { background:#1f9d61; } .lat-badge.lat-ok { background:#cf7a00; } .lat-badge.lat-slow { background:#dd7016; } .lat-badge.lat-fail { background:#e5484d; }
#view-sites .hero { padding:26px 30px 24px; text-align:center; }
#view-sites .hero:after { display:none; }
#view-sites .hero p { font-size:14px; margin:0 0 18px; }
#view-sites .hero .btn-start { height:48px; padding:0 40px; display:inline-flex; align-items:center; justify-content:center; border-radius:14px; }
.sites-note { color:var(--muted); font-size:12px; text-align:center; padding:14px 20px 4px; }
@keyframes dotIn { 0%{transform:scale(.3)} 60%{transform:scale(1.3)} 100%{transform:scale(1)} }
@keyframes latPop { 0%{transform:scale(.8);opacity:.3} 100%{transform:scale(1);opacity:1} }
@keyframes tileIn { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:none} }
@media (max-width:640px){ .site-grid{ grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:8px; } .site-nm b{ font-size:15px; } .site-lat{ font-size:12px; } .site-tile{ padding:12px 10px; } .tile-bot{ gap:6px; } .site-dots{ gap:2.5px; } .site-dot{ width:5px; height:5px; } .lat-badge{ min-width:28px; padding:1px 6px; font-size:11px; margin-left:4px; } .lat-unit{ font-size:11px; } }

/* ================= 场景评估 ================= */
.scene-card { padding: 18px 18px 14px; }
.scene-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 2px 14px; }
.scene-title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.scene-title svg { width: 19px; height: 19px; color: #0ca678; }
.scene-hint { font-size: 12px; color: var(--sub, #8a94a6); white-space: nowrap; }
.scene-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.scene-tile { position: relative; border: 1px solid rgba(15, 23, 42, .06); border-radius: 14px; padding: 13px 9px 15px; background: rgba(248, 250, 253, .85); overflow: hidden; }
:root[data-theme="dark"] .scene-tile { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.08); }
.scene-tile-hd { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; min-width: 0; }
.scene-tile-hd > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.scene-ico { display: inline-flex; color: #0ca678; }
.scene-ico svg { width: 19px; height: 19px; }
.scene-tile-bd { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 10px; }
.scene-score { font-size: 29px; font-weight: 700; line-height: 1; letter-spacing: -.5px; }
.scene-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; padding: 4px 8px; border-radius: 999px; white-space: nowrap; }
.scene-badge i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.scene-badge.b-good { color: #15803d; background: rgba(22, 163, 74, .12); }
.scene-badge.b-mid { color: #b45309; background: rgba(245, 158, 11, .14); }
.scene-badge.b-bad { color: #dc2626; background: rgba(220, 38, 38, .10); }
.scene-badge.b-wait { color: #64748b; background: rgba(100, 116, 139, .12); }
.scene-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(15, 23, 42, .06); }
.scene-bar span { display: block; height: 100%; border-radius: 0 4px 4px 0; transition: width .6s ease; }
.t-good .scene-bar span { background: #22c55e; }
.t-mid .scene-bar span { background: #f59e0b; }
.t-bad .scene-bar span { background: #ef4444; }
.t-wait .scene-bar span { background: #cbd5e1; }
.scene-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 13px; font-size: 12.5px; }
.scene-worst { color: var(--sub, #8a94a6); display: flex; gap: 6px; align-items: flex-start; min-width: 0; }
.scene-worst svg { width: 15px; height: 15px; flex: none; margin-top: 1px; }
.scene-expand-btn { display: inline-flex; align-items: center; gap: 5px; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(15, 23, 42, .09); background: #fff; color: #34c759; font-size: 13px; font-weight: 600; cursor: pointer; box-shadow: 0 1px 3px rgba(15, 23, 42, .08), 0 4px 14px rgba(15, 23, 42, .05); font-family: inherit; white-space: nowrap; }
.scene-expand-btn:hover { box-shadow: 0 2px 6px rgba(15, 23, 42, .1), 0 8px 22px rgba(15, 23, 42, .08); }
.scene-expand-btn svg { width: 14px; height: 14px; }
:root[data-theme="dark"] .scene-expand-btn { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.14); color: #30d158; box-shadow: none; }
.nm-item .nm-status.good { color: #16a34a; }
.nm-item .nm-status.mid { color: #b45309; }
.nm-item .nm-status.bad { color: #e84545; }
.scene-modal-note { color: #5a5a5e; font-size: 12.5px; line-height: 1.7; margin-top: 2px; }
:root[data-theme="dark"] .scene-modal-note { color: #9aa3ad; }
@media (max-width: 1000px) { .scene-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .scene-grid { grid-template-columns: repeat(2, 1fr); } .scene-card { padding: 15px 13px 12px; } .scene-score { font-size: 26px; } }

/* 英文导航标签较长：收窄内边距，中宽屏改用短标签，避免撑出导航栏 */
:root[lang="en"] .links a { padding: 10px 11px; }
@media (max-width: 1120px) {
  :root[lang="en"] .links .nl-full { display: none; }
  :root[lang="en"] .links .nl-short { display: inline; }
}

/* 中宽屏（761–900）中文全称标签同样放不下，与英文一致改用短标签 */
@media (max-width: 900px) {
  .links .nl-full { display: none; }
  .links .nl-short { display: inline; }
}
/* 英文风控等级词较长，中宽屏徽章内只保留百分比（圆点仍表达等级） */
@media (max-width: 1100px) {
  :root[lang="en"] .risk-word { display: none; }
}

/* ===== APP 分流 IP 测试 ===== */
.split-card { padding: 18px 18px 14px; margin-top: 16px; }
.split-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 0 2px 4px; }
.split-title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.split-title svg { width: 19px; height: 19px; color: #0ca678; }
.split-sub { font-size: 12px; color: var(--sub, #8a94a6); margin-top: 3px; }
.split-head-r { display: flex; align-items: center; gap: 10px; flex: none; }
.split-status { font-size: 12px; color: var(--sub, #8a94a6); white-space: nowrap; }
.split-retest { display: inline-flex; align-items: center; gap: 5px; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(15, 23, 42, .09); background: #fff; color: #34c759; font-size: 13px; font-weight: 600; cursor: pointer; box-shadow: 0 1px 3px rgba(15, 23, 42, .08), 0 4px 14px rgba(15, 23, 42, .05); font-family: inherit; white-space: nowrap; }
:root[data-theme="dark"] .split-retest { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.14); color: #30d158; box-shadow: none; }
.split-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 10px; }
.split-tile { position: relative; min-width: 0; border: 1px solid rgba(15, 23, 42, .06); border-radius: 14px; padding: 13px 13px 12px; background: rgba(248, 250, 253, .85); }
:root[data-theme="dark"] .split-tile { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.08); }
.split-tile-hd { display: flex; align-items: center; gap: 8px; }
.split-ico { display: block; width: 22px; height: 22px; border-radius: 6px; flex: none; object-fit: contain; transform-origin: center; }
span.split-ico { display: inline-flex; align-items: center; justify-content: center; background: #e2e8f0; color: #475569; font-weight: 700; font-size: 12px; }
.split-nm { font-size: 14px; font-weight: 700; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.split-dot { width: 8px; height: 8px; border-radius: 50%; margin-left: auto; flex: none; background: #cbd5e1; }
.split-dot.reading { background: #f59e0b; animation: splitPulse 1s ease-in-out infinite; }
.split-dot.done { background: #22c55e; }
.split-dot.fail { background: #ef4444; }
@keyframes splitPulse { 50% { opacity: .35; } }
.split-host { font-size: 11px; color: var(--sub, #8a94a6); margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.split-ip { display: block; min-width: 0; max-width: 100%; margin-top: 9px; padding: 0; border: 0; background: none; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; font-weight: 600; color: var(--text, #0f172a); text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.split-ip.dim { color: var(--sub, #8a94a6); font-family: inherit; font-weight: 500; cursor: default; }
.split-ip.fail { color: #dc2626; font-family: inherit; font-weight: 500; cursor: default; }
.split-ip.v6 { font-size: 11px; white-space: normal; word-break: break-all; line-height: 1.5; }
button.split-ip.done { cursor: pointer; }
button.split-ip.done:hover { color: #0875ef; text-decoration: underline; }
.split-loc { display: flex; align-items: center; gap: 6px; margin-top: 7px; font-size: 12px; color: var(--sub, #8a94a6); min-height: 16px; }
.split-loc img { width: 18px; height: 13px; border-radius: 2px; object-fit: cover; }
@media (max-width: 860px) { .split-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .split-card { padding: 15px 13px 12px; }
  .split-head { flex-direction: column; }
  .split-head-r { width: 100%; justify-content: space-between; } }

.split-retest.spin { pointer-events: none; opacity: .8; }
.split-retest .spin-ico { width: 13px; height: 13px; border-radius: 50%; border: 2px solid rgba(52, 199, 89, .3); border-top-color: #34c759; animation: splitSpin .7s linear infinite; flex: none; }
@keyframes splitSpin { to { transform: rotate(360deg); } }
.split-tile.reading { animation: splitScan 1.1s ease-in-out infinite; }
.split-grid .split-tile:nth-child(2).reading { animation-delay: .12s; }
.split-grid .split-tile:nth-child(3).reading { animation-delay: .24s; }
.split-grid .split-tile:nth-child(4).reading { animation-delay: .36s; }
@keyframes splitScan { 0%, 100% { box-shadow: 0 0 0 0 rgba(12, 166, 120, 0); } 50% { box-shadow: 0 0 0 3px rgba(12, 166, 120, .16); } }
.split-tile.pop { animation: splitPop .38s cubic-bezier(.2, .8, .3, 1.25) both; }
@keyframes splitPop { from { transform: scale(.93); opacity: .35; } to { transform: scale(1); opacity: 1; } }

/* DNS 泄露检测（-186）：头部玻璃块居中（与伪装/网站页一致） + 结果玻璃卡 */
#view-dns .hero { padding: 26px 30px 24px; text-align: center; }
#view-dns .hero:after { display: none; }
#view-dns .hero p { font-size: 14px; margin: 0 0 18px; }
#view-dns .hero .btn-start { height: 48px; padding: 0 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; }
#view-dns .dns-panel { margin-top: 16px; padding: 22px 26px; }
.dns-panel-hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.dns-panel-hd .dns-panel-t { font-weight: 800; font-size: 16px; color: var(--ink, #16283f); }
.dns-conclusion { border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.55; margin: 10px 0; }
.dns-conclusion.ok { background: #e7f7ee; color: #12703c; border: 1px solid #bfe8cf; }
.dns-conclusion.warn { background: #fff4e0; color: #8a5a00; border: 1px solid #f0dcb0; }
.dns-conclusion.bad { background: #fdecec; color: #a12626; border: 1px solid #f3c2c2; }
.dns-conclusion.idle { background: #f1f4f8; color: #5b6b7d; border: 1px solid #dde5ee; }
.dns-conclusion.running { background: #eaf2fe; color: #2b5aa6; border: 1px solid #cfdff8; }
.dns-dots i { display: inline-block; width: 5px; height: 5px; margin-left: 3px; border-radius: 50%; background: #2b5aa6; animation: dnsBlink 1s infinite; }
.dns-dots i:nth-child(2) { animation-delay: .18s; }
.dns-dots i:nth-child(3) { animation-delay: .36s; }
@keyframes dnsBlink { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.dns-rows { margin-top: 12px; border: 1px solid var(--line, #e3e9f2); border-radius: 12px; overflow: hidden; }
.dns-head { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; padding: 9px 16px; background: #f6f9fc; color: #63738a; font-size: 12.5px; font-weight: 700; }
.dns-head #dnsColAsn { justify-self: center; }
.dns-head #dnsColLoc { justify-self: end; }
.dns-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px 18px; align-items: center; padding: 12px 16px; background: rgba(255, 255, 255, .65); animation: dnsIn .45s both; }
.dns-row + .dns-row { border-top: 1px solid var(--line, #e3e9f2); }
@keyframes dnsIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.dns-row .dns-ip { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; font-size: 17px; word-break: break-all; display: flex; align-items: center; gap: 8px; min-width: 0; }
.dns-row .dns-ip.isv6 { font-size: 13.5px; }
.dns-row .dns-ip .txt { min-width: 0; }
.dns-row .dns-ip img { width: 23px; height: 17px; border-radius: 3px; object-fit: cover; flex: none; }
.dns-row .dns-ip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #22b573; flex: none; box-shadow: 0 0 0 3px rgba(34, 181, 115, .18); }
.dns-row .dns-asn { font-size: 13px; color: var(--muted, #63738a); word-break: break-all; justify-self: center; text-align: center; }
.dns-row .dns-loc { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink, #16283f); white-space: nowrap; font-weight: 600; justify-self: end; }
.dns-row .dns-loc img { width: 22px; height: 16px; border-radius: 3px; object-fit: cover; }
.dns-me { margin-top: 10px; font-size: 14px; color: var(--muted, #63738a); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dns-me img { width: 23px; height: 17px; border-radius: 3px; object-fit: cover; }
.dns-me b { color: var(--ink, #16283f); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 16.5px; flex: 0 1 auto; min-width: 0; word-break: break-all; }
.dns-me b.isv6 { font-size: 13px; }
.dns-how { margin: 14px 0 0; padding-left: 18px; font-size: 13px; line-height: 1.65; color: var(--muted, #63738a); }
.dns-how li { margin: 3px 0; }
.btn-start[disabled] { opacity: .65; cursor: default; }
.btn-start .dns-spin { display: inline-block; width: 13px; height: 13px; margin-right: 8px; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; vertical-align: -2px; animation: dnsRot .7s linear infinite; }
@keyframes dnsRot { to { transform: rotate(360deg); } }
@media (max-width: 640px) {
  .dns-head { display: none; }
  .dns-row { grid-template-columns: minmax(0, 1fr) auto; }
  .dns-row .dns-loc { grid-column: 2; grid-row: 1; }
  .dns-row .dns-asn { grid-column: 1 / -1; grid-row: 2; justify-self: start; text-align: left; }
  #view-dns .dns-panel { padding: 18px 16px; }
}

/* 家宽ASN查询（-194）：头部改与 DNS/伪装/网站页同款玻璃 hero */
#view-homeasn .hero { padding: 26px 30px 24px; text-align: center; overflow: visible; z-index: 20; }
#view-homeasn .hero:after { display: none; }
#view-homeasn .hero p { font-size: 14px; margin: 0 0 18px; }
#view-homeasn .hero .homeasn-controls { margin-top: 0; }

/* 家宽ASN结果瓷砖（-196，用户预览 v5 通过）：运营商名优先，ASN+复制在右上 */
#view-homeasn .tool-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
#view-homeasn #homeasnBody { display: block; padding: 0; }
#homeasnResultTitle { display: flex; align-items: center; gap: 9px; font-size: 18px; font-weight: 800; letter-spacing: -.2px; }
#homeasnResultTitle img { width: 26px; height: 19px; border-radius: 4px; }
.hasn2-count { font-size: 12px; font-weight: 700; color: #2b5aa6; background: #eaf2fe; border: 1px solid #cfdff8; border-radius: 999px; padding: 5px 12px; white-space: nowrap; }
.hasn2-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; align-items: stretch; }
@media (max-width: 860px) { .hasn2-grid { grid-template-columns: 1fr; } }
.hasn2-tile { text-align: left; display: flex; flex-direction: column; background: rgba(255,255,255,.8); border: 1px solid var(--border, #e3e9f2); border-radius: 18px; padding: 18px 20px 16px; box-shadow: 0 6px 18px rgba(65,105,160,.05); animation: hasn2In .45s both; transition: transform .18s, box-shadow .18s; }
.hasn2-tile:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(65,105,160,.12); }
@keyframes hasn2In { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.hasn2-head { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; row-gap: 8px; }
.hasn2-rank { width: 30px; height: 30px; flex: none; border-radius: 50%; background: #eef2f8; border: 1px solid var(--border, #e3e9f2); color: #71809a; font-size: 13.5px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.hasn2-rank.top { background: linear-gradient(135deg, #2b7de1, #5ea1f2); border-color: #2b7de1; color: #fff; box-shadow: 0 4px 10px rgba(43,125,225,.35); }
.hasn2-title { flex: 1 1 0%; min-width: 0; }
.hasn2-name { font-size: 16.5px; font-weight: 800; letter-spacing: -.2px; color: var(--ink, #16283f); display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; line-height: 1.3; min-width: 0; }
.hasn2-name .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hasn2-en { font-size: 12px; font-weight: 500; letter-spacing: .4px; color: #93a3ba; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hasn2-badge { font-size: 11px; font-weight: 700; color: #6d4bd8; background: #f0eafe; border: 1px solid #ddd0fb; border-radius: 999px; padding: 2px 8px; white-space: nowrap; flex: none; }
.hasn2-side { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: none; }
.hasn2-asn { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 15.5px; font-weight: 700; letter-spacing: .4px; color: var(--ink, #16283f); background: #f2f6fc; border: 1px solid #e3ecf7; border-radius: 8px; padding: 3px 9px; }
.hasn2-top1 { font-size: 11px; font-weight: 700; color: #2b5aa6; background: #dbeafe; border: 1px solid #c3dcfc; border-radius: 999px; padding: 2px 8px; white-space: nowrap; flex: none; }
.hasn2-copy { width: 31px; height: 31px; flex: none; border-radius: 9px; border: 1px solid var(--border, #e3e9f2); background: #fff; color: #5b6b86; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .15s; }
.hasn2-copy:hover { color: #2b7de1; border-color: #b9d2f5; background: #f4f9ff; }
.hasn2-copy svg { width: 14px; height: 14px; }
.hasn2-desc { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(227,233,242,.8); font-size: 13px; line-height: 1.65; color: #63738a; min-height: 42px; }
@keyframes scenePop { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
.scene-tile.pop { animation: splitPop .38s cubic-bezier(.2,.8,.3,1.25) both; }

/* 截图分享（-213）：结果卡按钮 + IP 综合报告弹窗 */
.share-shot-btn{display:inline-flex;align-items:center;gap:5px;background:#fff;border:1px solid rgba(15,23,42,.09);color:#68798f;padding:5px 10px;border-radius:999px;font-size:12px;font-weight:700;cursor:pointer;box-shadow:0 2px 8px rgba(65,105,160,.08);margin-right:8px;font-family:inherit;vertical-align:middle;box-sizing:border-box}
.share-shot-btn:hover{border-color:rgba(20,120,247,.45);color:#1478f7}
.share-shot-btn svg{width:12px;height:12px;flex:none}
:root[data-theme="dark"] .share-shot-btn{background:rgba(255,255,255,.08);color:#9fb2c8;border-color:rgba(255,255,255,.14)}
.rpt-overlay{position:fixed;inset:0;background:rgba(13,27,48,.55);backdrop-filter:blur(4px);z-index:300;display:flex;align-items:flex-start;justify-content:center;overflow-y:auto;padding:28px 14px}
.rpt-overlay[hidden]{display:none}
.rpt-modal{width:100%;max-width:780px;position:relative}
.rpt2{background:linear-gradient(180deg,#ffffff,#f7fbff);border:1px solid rgba(255,255,255,.95);border-radius:22px;box-shadow:0 24px 60px rgba(6,23,48,.35);padding:22px 24px 18px;color:#12233c;position:relative}
.rpt2-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px;padding-right:18px}
.rpt2-title{display:flex;align-items:center;gap:9px;font-size:16px;font-weight:800;color:#16283f}
.rpt2-title svg{width:19px;height:19px;color:#0ca678}
.rpt2-brand{display:flex;align-items:center;font-size:19px;font-weight:750;letter-spacing:-.5px;color:#16283f;white-space:nowrap}
.rpt2-brand .logo{width:26px;height:26px;margin-right:5px;color:#16283f}
.rpt2-brand .logo svg{width:24px;height:24px}
.rpt-close-x{position:absolute;top:10px;right:10px;width:30px;height:30px;border-radius:50%;background:rgba(255,255,255,.55);backdrop-filter:blur(10px) saturate(1.4);-webkit-backdrop-filter:blur(10px) saturate(1.4);border:1px solid rgba(20,40,80,.10);box-shadow:inset 0 1px 0 rgba(255,255,255,.85),0 3px 10px rgba(65,105,160,.14);color:#5b6b86;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0;z-index:5}
.rpt-close-x:hover{color:#e5484d;border-color:rgba(229,72,77,.35);background:rgba(255,240,240,.7)}
.rpt-close-x svg{width:14px;height:14px}
.rpt2-ipgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.rpt2-iptile{display:flex;align-items:center;gap:14px;background:#fff;border:1px solid #e6edf5;border-radius:16px;padding:14px 18px;min-width:0}
.rpt2-iptile.r{justify-content:space-between}
.rpt2-iptile img{width:34px;height:23px;border-radius:3px;box-shadow:0 0 1px rgba(0,0,0,.3);flex:none}
.rpt2-ip{font-size:29px;font-weight:800;letter-spacing:.4px;color:#12233c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rpt2-ip.long{font-size:23px}
.rpt2-pills{display:flex;gap:8px;align-items:center}
.rpt2-type{font-size:12.5px;color:#5b6b86;font-weight:600;white-space:nowrap;flex:none}
.pill2{display:inline-flex;align-items:center;justify-content:center;border-radius:14px;padding:6px 14px;font-size:12px;font-weight:700;color:#fff;white-space:nowrap}
.pill2.idc{background:linear-gradient(180deg,#ff9f0a,#f67b1f);box-shadow:0 4px 10px #ff9f0a30}
.pill2.native{background:#1f9d61;box-shadow:0 4px 10px #18b76a30}
.pill2.tan{background:#f6cfa8;color:#a05a1a}
.pill2.gray{background:#9aa0a6}
.pill2.yellow{background:#e3a008;box-shadow:none}
.pill2.red{background:#e5484d;box-shadow:none}
.pill2.share{box-shadow:none;font-size:12.5px;padding:7px 16px;border-radius:999px;width:128px;flex:none}
.rpt2 .pill2.rpt-w-fixed{width:128px;flex:none}
.pill2.sm{padding:2px 8px;border-radius:8px;flex:none;font-size:11px}
.pill2.idc.sm,.pill2.native.sm,.pill2.gray.sm{box-shadow:none}
.pill2.isp{background:linear-gradient(180deg,#25c977,#0eaa5c)}
.pill2.bus{background:linear-gradient(180deg,#b5d334,#86a81c)}
.rpt2-cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}
.rpt2-col{background:#fff;border:1px solid #e6edf5;border-radius:16px;padding:6px 14px}
.rpt2-row{display:flex;align-items:center;gap:12px;padding:9px 0;border-bottom:1px solid #eef2f7;font-size:13.5px;min-width:0;position:relative}
.rpt2-row:last-child{border-bottom:none}
.rpt2-ico{width:30px;height:30px;border-radius:9px;display:flex;align-items:center;justify-content:center;flex:none}
.rpt2-ico svg{width:16px;height:16px}
.rpt2-lab{color:#5b6b86;flex:none;white-space:nowrap;padding-right:2px}
.rpt2-col.left .rpt2-lab{flex:0 0 78px}
.rpt2-val{margin-left:auto;text-align:right;font-weight:600;color:#22324a;display:flex;align-items:center;gap:6px;min-width:0}
.rpt2-col.left .rpt2-val{margin-left:0;text-align:left;justify-content:flex-start;min-width:0;overflow:hidden;flex:1}
.rpt2-val img{width:20px;height:14px;border-radius:2px;box-shadow:0 0 1px rgba(0,0,0,.3)}
.rpt2-own{display:block;min-width:0;max-width:100%;flex:1}
.rpt2-col.left .rpt2-own{text-align:left}
.rpt2-ownline{display:block;min-width:0;max-width:100%}
.rpt2-ownline .nm{display:inline;white-space:normal;overflow:visible;text-overflow:clip;word-break:break-all;overflow-wrap:anywhere;font-weight:600;font-size:12px}
.rpt2-ownline .pill2{display:inline-block;margin-right:7px;vertical-align:1px}
.rpt2-status{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}
.rpt2-box{background:#fff;border:1px solid #e6edf5;border-radius:16px;padding:12px 16px;display:flex;align-items:center;gap:12px;min-height:58px}
.rpt2-box .lab{font-weight:700;font-size:14px;color:#22324a;flex:none}
.rpt2-barwrap{flex:1;height:26px;border-radius:999px;background:#e9eef3;position:relative;overflow:hidden;min-width:70px}
.rpt2-barfill{height:100%;border-radius:999px;background:#1f9d61;color:#fff;font-size:12px;font-weight:700;display:flex;align-items:center;padding:0 10px;white-space:nowrap;min-width:max-content;box-sizing:border-box}
.rpt2-dots{display:flex;gap:5px;flex:none}
.rpt2-dots i{width:11px;height:11px;border-radius:50%}
.rpt2-ai{margin-top:12px;background:#fff;border:1px solid #e6edf5;border-radius:16px;padding:12px 16px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.rpt2-ai .lab{font-weight:700;font-size:14px;color:#22324a}
.rpt2-chip{font-size:12px;padding:4px 12px;border-radius:999px;border:1px solid #1f9d61;background:rgba(31,157,97,.12);color:#1f7a4d;font-weight:600;white-space:nowrap;flex:none}
.rpt2-chip.fail{border-color:#e5484d;background:rgba(229,72,77,.10);color:#c93a3e}
.rpt2-chip.wait{border-color:#d5dde6;background:#f1f4f8;color:#8a94a6}
.rpt2-secT{display:flex;align-items:center;gap:8px;font-size:15px;font-weight:800;color:#16283f;margin:16px 2px 10px}
.rpt2-secT svg{width:17px;height:17px;color:#0ca678}
.rpt2-scenes{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px}
.rpt2-scene{background:#fff;border:1px solid #e6edf5;border-radius:14px;padding:10px 12px;min-width:0;overflow:hidden}
.rpt2-scene .hd{display:flex;align-items:center;gap:6px;font-size:12.5px;font-weight:700;color:#33465e}
.rpt2-scene .hd svg{width:15px;height:15px;color:#0ca678;flex:none}
.rpt2-scene .bd{display:flex;align-items:center;gap:8px;margin-top:6px;flex-wrap:nowrap}
.rpt2-scene .sc{font-size:22px;font-weight:800;color:#12233c}
.rpt2-scene .bdg{font-size:11px;font-weight:700;color:#b47612;background:#fdf3e0;border-radius:999px;padding:2px 8px;white-space:nowrap;flex:none}
.rpt2-scene .bdg.ok{color:#157347;background:rgba(31,157,97,.14)}
.rpt2-scene .bdg.bad{color:#e0541e;background:#fde8e0}
.rpt2-scene .bar{height:4px;border-radius:2px;background:#e9eef3;margin-top:7px;overflow:hidden}
.rpt2-scene .bar i{display:block;height:100%;background:#f5a623;border-radius:2px}
.rpt2-scene .bar i.ok{background:#1f9d61}
.rpt2-scene .bar i.bad{background:#e0541e}
.rpt-act{margin-top:12px}
.rpt-act button{font-family:inherit;cursor:pointer}
.act-a{display:flex;align-items:stretch;gap:10px}
.act-a-addr{flex:1;min-width:0;display:flex;align-items:center;gap:8px;background:#f4f7fa;border:1px solid #e2e9f2;border-radius:12px;padding:0 13px;height:44px;font-size:13px;color:#5b6b86;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.act-a-addr svg{width:14px;height:14px;flex:none;color:#8a94a6}
.act-a-copy{flex:none;height:44px;padding:0 20px;border-radius:12px;font-size:13.5px;font-weight:700;color:#22324a;background:#fff;border:1px solid #dbe3ee;display:inline-flex;align-items:center;gap:7px}
.act-a-copy:hover{border-color:rgba(20,120,247,.5);color:#1478f7}
.act-a-copy svg{width:14px;height:14px}
.act-a-copy.done{color:#0e9e57;border-color:rgba(31,157,97,.45)}
.act-a-gen{flex:none;height:44px;padding:0 22px;border:none;border-radius:12px;font-size:13.5px;font-weight:700;color:#fff;background:linear-gradient(180deg,#2f8ff9,#0f6ae0);display:inline-flex;align-items:center;gap:7px;box-shadow:0 6px 14px rgba(20,120,247,.35),inset 0 1px 0 rgba(255,255,255,.3)}
.act-a-gen:active{transform:translateY(1px)}
.act-a-gen svg{width:14px;height:14px}
.act-a-gen:disabled{opacity:.65;cursor:default}
.rpt2-foot{margin-top:14px;font-size:12px;color:#7c8aa0;border-top:1px solid #eef2f6;padding-top:11px;display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}
.rpt2-foot b{color:#5b6b86;font-weight:600}
@media (max-width:760px){.rpt2-scenes{grid-template-columns:repeat(3,1fr)}.rpt2-cols{grid-template-columns:1fr}.rpt2-status{grid-template-columns:1fr}.rpt2-ipgrid{grid-template-columns:1fr}.rpt2-ip{font-size:23px}}
@media (max-width:560px){.act-a{flex-wrap:wrap}.act-a-addr{flex:1 1 100%}}
@media (max-width:460px){.rpt2-scenes{grid-template-columns:repeat(2,1fr)}}
.rpt2-ipbtns{display:inline-flex;gap:6px;flex:none;margin-left:2px}
.rpt-iconbtn{width:30px;height:30px;border-radius:9px;border:1px solid rgba(20,40,80,.10);background:#fff;color:#68798f;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
.rpt-iconbtn:hover{border-color:rgba(20,120,247,.45);color:#1478f7}
.rpt-iconbtn svg{width:15px;height:15px}

/* ---- 排行榜（assets/rank.js） ---- */
.scene-head-right { display: flex; align-items: center; gap: 10px; }
.rank-open-btn { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: #0ca678; background: rgba(12,166,120,.10); border: 1px solid rgba(12,166,120,.28); border-radius: 999px; padding: 5px 13px; cursor: pointer; white-space: nowrap; transition: background .18s; }
@media (max-width: 760px) { .rank-open-btn { display: none; } }
.rank-open-btn:hover { background: rgba(12,166,120,.20); }
.rank-open-btn svg { width: 14px; height: 14px; }
.rk-tiles { display: flex; flex-direction: column; gap: 14px; }
.rk-tile { margin-top: 0; padding: 20px 24px 22px; background: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.9); backdrop-filter: blur(24px) saturate(1.5); -webkit-backdrop-filter: blur(24px) saturate(1.5); box-shadow: 0 10px 30px rgba(70,110,160,.10), inset 0 1px 0 rgba(255,255,255,.85); }
:root[data-theme="dark"] .rk-tile { background: rgba(20,27,38,.75); border-color: rgba(255,255,255,.08); box-shadow: 0 18px 50px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.06); }
/* 骨架屏 */
.rk-sk { border-radius: 8px; background: linear-gradient(90deg, rgba(15,23,42,.07) 25%, rgba(15,23,42,.13) 50%, rgba(15,23,42,.07) 75%); background-size: 200% 100%; animation: rk-skx 1.1s linear infinite; }
@keyframes rk-skx { to { background-position: -200% 0; } }
.rk-sk-row { height: 46px; margin-bottom: 8px; }
.rk-sk-row:last-child { margin-bottom: 0; }
:root[data-theme="dark"] .rk-sk { background: linear-gradient(90deg, rgba(255,255,255,.06) 25%, rgba(255,255,255,.12) 50%, rgba(255,255,255,.06) 75%); background-size: 200% 100%; }
.rk-back { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: #64748b; background: transparent; border: 0; cursor: pointer; padding: 4px 0; margin-bottom: 10px; }
.rk-back:hover { color: #0ca678; }
.rk-back svg { width: 16px; height: 16px; }
.rk-title { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; }
.rk-title svg { width: 26px; height: 26px; }
.rk-state { text-align: center; color: #8a94a6; font-size: 14px; padding: 48px 16px; line-height: 2; }
.rk-retry { margin-top: 6px; font-size: 13px; font-weight: 700; color: #fff; background: #1f9d61; border: 0; border-radius: 999px; padding: 8px 22px; cursor: pointer; }
.rk-retry:hover { background: #178a54; }
.rk-na { color: #cbd5e1; }
.rk-sub { margin: 8px 0 0; font-size: 13px; color: #8a94a6; }
.rk-tabs { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.rk-tabgroup { display: inline-flex; gap: 6px; background: rgba(15,23,42,.05); border-radius: 999px; padding: 4px; }
.rk-tab { border: 0; background: transparent; font-size: 13px; font-weight: 600; color: #64748b; border-radius: 999px; padding: 7px 16px; cursor: pointer; white-space: nowrap; }
.rk-tab.on { background: #1f9d61; color: #fff; box-shadow: 0 3px 10px rgba(31,157,97,.35); }
.rk-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; background: rgba(15,23,42,.035); border-radius: 14px; padding: 14px 6px; margin-bottom: 16px; }
.rk-tile .rk-stats { margin-bottom: 0; }
.rk-tile .rk-tabs { margin-bottom: 0; }
.rk-tile #rankStats:not(:empty) { margin-top: 14px; }
.rk-stat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.rk-stat-k { font-size: 12px; color: #8a94a6; white-space: nowrap; }
.rk-stat-v { font-size: 21px; font-weight: 800; color: #1e293b; font-variant-numeric: tabular-nums; }
.rk-stat-v.rk-green { color: #1f9d61; }
.rk-tablewrap { overflow-x: auto; border-radius: 12px; }
.rk-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 13.5px; }
.rk-table th { text-align: left; font-size: 12px; font-weight: 600; color: #8a94a6; padding: 8px 10px; border-bottom: 1px solid rgba(15,23,42,.08); white-space: nowrap; }
.rk-table td { padding: 11px 10px; border-bottom: 1px dashed rgba(15,23,42,.07); vertical-align: middle; }
.rk-table tbody tr:last-child td { border-bottom: 0; }
.rk-table tbody tr:hover { background: rgba(12,166,120,.05); }
.rk-pager { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 14px 4px 2px; }
.rk-pagebtn { border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 13px; font-weight: 600; padding: 7px 16px; border-radius: 999px; cursor: pointer; transition: opacity .15s; }
.rk-pagebtn:disabled { opacity: .35; cursor: default; }
.rk-pagebtn:not(:disabled):hover { border-color: var(--green); color: var(--green); }
.rk-pageinfo { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rk-num { display: inline-block; min-width: 34px; text-align: center; font-size: 12px; font-weight: 800; border-radius: 7px; padding: 3px 6px; background: rgba(15,23,42,.06); color: #64748b; }
.rk-num.rk-gold { background: #fef3c7; color: #b7791f; }
.rk-num.rk-silver { background: #e2e8f0; color: #64748b; }
.rk-num.rk-bronze { background: #ffedd5; color: #c2703d; }
.rk-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; white-space: nowrap; }
.rk-asn { color: #1f6fe5; font-weight: 600; }
.rk-table td .flag-img { width: 18px; height: 13px; border-radius: 2px; vertical-align: -2px; margin-right: 6px; }
.rk-score { display: inline-block; min-width: 40px; text-align: center; font-weight: 800; font-size: 14px; color: #1f9d61; background: rgba(31,157,97,.12); border-radius: 8px; padding: 4px 8px; font-variant-numeric: tabular-nums; }
.pill-idx-mobile { display: inline-block; font-size: 11px; font-weight: 700; color: #1f6fe5; background: rgba(31,111,229,.12); border-radius: 6px; padding: 3px 8px; white-space: nowrap; }
@media (max-width: 640px) {
  .rk-tiles { gap: 10px; }
  .rk-tile { padding: 16px 14px 18px; }
  .rk-stats { grid-template-columns: repeat(3, 1fr); row-gap: 12px; }
  .rk-tabs { flex-direction: column; align-items: stretch; }
  .rk-tabgroup { justify-content: center; }
}
/* 深色模式 */
:root[data-theme="dark"] .rk-sub, :root[data-theme="dark"] .rk-stat-k, :root[data-theme="dark"] .rk-table th { color: #94a3b8; }
:root[data-theme="dark"] .rk-stat-v { color: #f1f5f9; }
:root[data-theme="dark"] .rk-stats { background: rgba(255,255,255,.05); }
:root[data-theme="dark"] .rk-tabgroup { background: rgba(255,255,255,.07); }
:root[data-theme="dark"] .rk-tab { color: #94a3b8; }
:root[data-theme="dark"] .rk-table td { border-color: rgba(255,255,255,.07); }
:root[data-theme="dark"] .rk-table tbody tr:hover { background: rgba(12,166,120,.10); }
:root[data-theme="dark"] .rk-num { background: rgba(255,255,255,.08); color: #94a3b8; }
:root[data-theme="dark"] .rk-back { color: #94a3b8; }
:root[data-theme="dark"] .rk-back:hover { color: #34d399; }
:root[data-theme="dark"] .rank-open-btn { color: #34d399; background: rgba(52,211,153,.12); border-color: rgba(52,211,153,.30); }
