/* ip-tools 前台样式（1.3.0 · 布局整体重构）
 * 与 1.2.0 的结构区别：聚合页改为左右布局——左侧 232px 深蓝灰渐变
 * 导航栏（白字、竖排工具、选中半透明白底 + 主题色左竖条），右侧浅灰
 * 内容区装面板卡片；IP 质量结果改为「结果头卡」（IP + 完整归属地 +
 * 标签行 | 综合分环 | 地图）置顶，基础信息与判定表在下方。
 * --ipt-* 变量优先映射子比主题变量；暗色模式在 body.dark-theme 下整套换深色板。
 */
.ipt-wrap {
    --ipt-page-bg: #eef1f6;
    --ipt-card: var(--main-bg-color, #ffffff);
    --ipt-card2: #f6f8fb;
    --ipt-head-bg: #eef2f7;
    --ipt-text: var(--main-color, #1f2937);
    --ipt-text2: #475569;
    --ipt-muted: var(--muted-color, #64748b);
    --ipt-border: var(--main-border-color, #e3e8f0);
    --ipt-border2: #cbd5e1;
    --ipt-line: #e8edf3;
    --ipt-theme: var(--theme-color, #2568f3);
    --ipt-theme2: var(--focus-color, #1a56d6);
    --ipt-theme-soft: color-mix(in srgb, var(--theme-color, #2568f3) 9%, #ffffff);
    --ipt-green: #10b981;
    --ipt-green-bg: #ecfdf5;
    --ipt-yellow: #f59e0b;
    --ipt-yellow-bg: #fffbeb;
    --ipt-red: #ef4444;
    --ipt-red-bg: #fef2f2;
    --ipt-side1: #0f172a;
    --ipt-side2: #1e293b;
    --ipt-shadow: 0 10px 34px rgba(15, 23, 42, .07), 0 2px 8px rgba(15, 23, 42, .04);
    --ipt-shadow-sm: 0 4px 16px rgba(15, 23, 42, .08), 0 1px 3px rgba(15, 23, 42, .05);
    --ipt-radius: 16px;
    color: var(--ipt-text);
    line-height: 1.6;
    font-size: 14.5px;
    max-width: 1280px;
    margin: 0 auto;
    background: var(--ipt-page-bg);
    border-radius: 18px;
    padding: 20px;
}
.ipt-wrap:has(.ipt-shell) { padding: 0; background: transparent; border-radius: 0; }
body.dark-theme .ipt-wrap {
    --ipt-page-bg: #111827;
    --ipt-card: var(--main-bg-color, #1f2937);
    --ipt-card2: #263143;
    --ipt-head-bg: #273244;
    --ipt-text: var(--main-color, #f3f4f6);
    --ipt-text2: #cbd5e1;
    --ipt-muted: var(--muted-color, #9ca3af);
    --ipt-border: var(--main-border-color, #374151);
    --ipt-border2: #4b5563;
    --ipt-line: #2c3646;
    --ipt-theme-soft: color-mix(in srgb, var(--theme-color, #2568f3) 20%, #1f2937);
    --ipt-green-bg: #0b2e25;
    --ipt-yellow-bg: #3a2a08;
    --ipt-red-bg: #3d1512;
    --ipt-side1: #0b1220;
    --ipt-side2: #111c30;
    --ipt-shadow: 0 10px 34px rgba(0, 0, 0, .35), 0 2px 8px rgba(0, 0, 0, .3);
    --ipt-shadow-sm: 0 4px 16px rgba(0, 0, 0, .35);
}
.ipt-wrap * { box-sizing: border-box; }
.ipt-wrap h3 { font-size: 15.5px; font-weight: 700; margin: 0 0 12px; color: var(--ipt-text); letter-spacing: .01em; }
.ipt-sub { color: var(--ipt-muted); font-size: 13px; margin: 0 0 8px; }
.ipt-hint { color: var(--ipt-muted); font-size: 12.5px; }
.ipt-hint code { background: var(--ipt-card2); border: 1px solid var(--ipt-border); border-radius: 6px; padding: 1px 5px; font-size: 12px; }
.ipt-label { font-size: 12px; letter-spacing: .14em; color: var(--ipt-muted); font-weight: 600; margin: 20px 0 10px; }
.ipt-label:first-child { margin-top: 0; }
.ipt-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13.5px; }
.ipt-cell-strong { font-weight: 700; color: var(--ipt-text); }

/* ---------- 聚合页左右布局 ---------- */
.ipt-shell { display: flex; align-items: stretch; background: var(--ipt-page-bg); border-radius: 18px; overflow: hidden; box-shadow: var(--ipt-shadow); }
.ipt-side { flex: 0 0 232px; width: 232px; background: linear-gradient(180deg, var(--ipt-side1) 0%, var(--ipt-side2) 100%); padding: 24px 14px; display: flex; flex-direction: column; }
.ipt-side-brand { color: #fff; font-size: 19px; font-weight: 800; letter-spacing: .02em; padding: 2px 12px 20px; }
.ipt-side-nav { display: flex; flex-direction: column; gap: 6px; }
.ipt-nav-item {
    position: relative; display: flex; align-items: center; gap: 11px; width: 100%;
    padding: 12px 12px 12px 16px; border: 0; border-radius: 10px; background: transparent;
    color: #cbd5e1; font-size: 14.5px; font-weight: 600; cursor: pointer; text-align: left;
    transition: background .2s ease, color .2s ease; white-space: nowrap;
}
.ipt-nav-item svg { flex: 0 0 auto; opacity: .85; }
.ipt-nav-item:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.ipt-nav-item.active { color: #fff; background: rgba(255, 255, 255, .1); }
.ipt-nav-item.active::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3.5px; border-radius: 3px; background: var(--ipt-theme); }
.ipt-main { flex: 1; min-width: 0; padding: 22px; }
.ipt-panel { display: none; }
.ipt-panel.active { display: block; }

/* ---------- 卡片与基础组件 ---------- */
.ipt-card { background: var(--ipt-card); border: 1px solid var(--ipt-border); border-radius: var(--ipt-radius); box-shadow: var(--ipt-shadow); margin-bottom: 20px; }
.ipt-pad { padding: 22px; }
.ipt-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; margin-bottom: 10px; }
.ipt-row-btns { align-items: center; margin-top: 12px; }
.ipt-flex-spacer { flex: 1; }
.ipt-input { flex: 1; min-width: 200px; height: 44px; background: var(--ipt-card); border: 1px solid var(--ipt-border2); border-radius: 12px; padding: 0 14px; font-size: 14.5px; color: var(--ipt-text); outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
.ipt-input:focus { border-color: var(--ipt-theme); box-shadow: 0 0 0 3px var(--ipt-theme-soft); }
textarea.ipt-input { height: auto; line-height: 1.7; resize: vertical; width: 100%; padding: 12px 14px; }
select.ipt-input, .ipt-select { flex: 0 0 auto; min-width: 0; }
.ipt-field-icon { position: relative; flex: 1; min-width: 200px; display: flex; }
.ipt-field-icon > svg { position: absolute; left: 13px; top: 14px; color: var(--ipt-muted); pointer-events: none; }
.ipt-field-icon .ipt-input { padding-left: 38px; width: 100%; }
.ipt-field-icon textarea.ipt-input { padding-left: 38px; }
.ipt-btn { border: 1px solid transparent; border-radius: 12px; height: 44px; padding: 0 20px; font-weight: 600; font-size: 14.5px; cursor: pointer; background: var(--ipt-card); color: var(--ipt-text); transition: all .2s ease; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.ipt-btn-primary { background: var(--ipt-theme); color: #fff; box-shadow: 0 4px 14px color-mix(in srgb, var(--ipt-theme) 32%, transparent); }
.ipt-btn-primary:hover { background: var(--ipt-theme2); color: #fff; }
.ipt-btn-ghost { border-color: var(--ipt-border2); background: transparent; }
.ipt-btn-ghost:hover { border-color: var(--ipt-theme); color: var(--ipt-theme); }
.ipt-btn-soft { background: var(--ipt-theme-soft); color: var(--ipt-theme); }
.ipt-btn-small { height: 34px; padding: 0 14px; font-size: 13.5px; border-radius: 999px; }
.ipt-btn-pill { height: 48px; padding: 0 34px; font-size: 16px; border-radius: 999px; }
.ipt-btn-block { display: flex; width: 100%; margin-top: 10px; }
.ipt-btn[disabled] { opacity: .55; cursor: wait; }
.ipt-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--ipt-card2); color: var(--ipt-text2); border: 1px solid var(--ipt-border); }
.ipt-pill-g { background: var(--ipt-green-bg); color: var(--ipt-green); border-color: transparent; }
.ipt-pill-y { background: var(--ipt-yellow-bg); color: var(--ipt-yellow); border-color: transparent; }
.ipt-pill-r { background: var(--ipt-red-bg); color: var(--ipt-red); border-color: transparent; }
.ipt-pill-b { background: var(--ipt-theme-soft); color: var(--ipt-theme); border-color: transparent; }
.ipt-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; padding: 6px 12px; border-radius: 999px; background: var(--ipt-card2); color: var(--ipt-text2); }
.ipt-badge-green { background: var(--ipt-green-bg); color: var(--ipt-green); }
.ipt-badge-blue { background: var(--ipt-theme-soft); color: var(--ipt-theme); }
.ipt-t-green { color: var(--ipt-green); }
.ipt-t-red { color: var(--ipt-red); }
/* 基础信息：两列定义列表网格（桌面），键灰、值深色加粗 */
.ipt-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; margin: 0; font-size: 13.5px; }
.ipt-kv dt { color: var(--ipt-muted); font-size: 12.5px; margin-bottom: 2px; }
.ipt-kv dd { margin: 0; font-weight: 700; color: var(--ipt-text); word-break: break-all; font-size: 14.5px; line-height: 1.45; }

/* ---------- 二级切换控件（子标签 / 分段 / 场景 / 类型） ---------- */
.ipt-subtab, .ipt-seg button, .ipt-scene-btn, .ipt-type-pill {
    flex: 0 0 auto; border: 1px solid transparent; background: transparent; color: var(--ipt-muted);
    border-radius: 999px; font-weight: 600; cursor: pointer; white-space: nowrap;
    display: inline-flex; gap: 8px; align-items: center; transition: all .25s ease;
}
.ipt-subtab:hover, .ipt-seg button:hover, .ipt-scene-btn:hover, .ipt-type-pill:hover { color: var(--ipt-text); }
.ipt-subtab.active, .ipt-seg button.active, .ipt-scene-btn.active, .ipt-type-pill.active {
    background: var(--ipt-theme); color: #fff;
    box-shadow: 0 3px 10px color-mix(in srgb, var(--ipt-theme) 32%, transparent);
}
.ipt-subtabs { display: inline-flex; gap: 4px; background: var(--ipt-head-bg); border: 1px solid var(--ipt-border); border-radius: 999px; padding: 4px; margin-bottom: 20px; max-width: 100%; overflow-x: auto; }
.ipt-subtab { padding: 8px 14px; font-size: 13.5px; }
.ipt-seg { display: inline-flex; gap: 4px; background: var(--ipt-head-bg); border: 1px solid var(--ipt-border); border-radius: 999px; padding: 4px; margin-bottom: 10px; }
.ipt-seg button { padding: 8px 16px; font-size: 13.5px; }
.ipt-scene-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.ipt-scene-btn { background: var(--ipt-card2); border-color: var(--ipt-border); padding: 9px 16px; font-size: 13.5px; min-height: 42px; color: var(--ipt-text2); }
.ipt-type-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.ipt-type-pill { border-color: var(--ipt-border); background: var(--ipt-card2); padding: 8px 15px; font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) {
    .ipt-nav-item, .ipt-subtab, .ipt-seg button, .ipt-scene-btn, .ipt-type-pill { transition: none; }
}

/* ---------- 质量结果头卡 ---------- */
.ipt-qhead { display: grid; grid-template-columns: minmax(0, 1fr) 196px 340px; gap: 26px; padding: 24px; align-items: stretch; }
.ipt-qhead-ip { font-size: 19px; font-weight: 700; color: var(--ipt-text2); letter-spacing: .01em; word-break: break-all; }
.ipt-qhead-geo { font-size: 24px; font-weight: 800; line-height: 1.3; color: var(--ipt-text); margin-top: 4px; }
.ipt-qhead-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ipt-qhead-info h3 { font-size: 16.5px; margin: 16px 0 6px; }
.ipt-qhead-score { display: flex; flex-direction: column; align-items: center; gap: 6px; border-left: 1px solid var(--ipt-line); border-right: 1px solid var(--ipt-line); padding: 0 18px; min-width: 0; }
.ipt-qhead-score .ipt-breakdown { width: 100%; }
.ipt-qhead-map { min-height: 190px; display: flex; }
.ipt-qhead-map .ipt-map { flex: 1; height: auto; min-height: 190px; }

/* ---------- 评分与结果 ---------- */
.ipt-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.ipt-grid2 > .ipt-card { margin-bottom: 0; }
.ipt-score-card { display: flex; gap: 20px; align-items: flex-start; }
.ipt-ring-wrap { position: relative; width: 110px; height: 110px; flex: 0 0 auto; }
.ipt-ring { transform: rotate(-90deg); width: 110px; height: 110px; }
.ipt-ring circle { fill: none; stroke-width: 10; stroke-linecap: round; }
.ipt-ring-bg { stroke: var(--ipt-line); }
.ipt-ring-fg { stroke: var(--ipt-green); stroke-dasharray: 326.7; stroke-dashoffset: 326.7; transition: stroke-dashoffset .8s ease, stroke .3s; }
.ipt-ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ipt-ring-center b { font-size: 32px; line-height: 1; color: var(--ipt-text); }
.ipt-ring-center span { font-size: 12px; color: var(--ipt-muted); margin-top: 5px; }
.ipt-score-side { flex: 1; min-width: 0; }
.ipt-score-side h3 { font-size: 17px; margin: 8px 0 6px; }
.ipt-breakdown { margin-top: 8px; font-size: 12.5px; color: var(--ipt-muted); }
.ipt-breakdown div { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-top: 1px dashed var(--ipt-border); }
.ipt-map { height: 300px; border-radius: 12px; overflow: hidden; background: var(--ipt-card2); border: 1px solid var(--ipt-border); }
.ipt-map-fallback { padding: 20px; color: var(--ipt-muted); font-size: 13.5px; line-height: 1.7; }
.ipt-map-chip { background: var(--ipt-card); border: 1px solid var(--ipt-border); border-radius: 8px; padding: 8px; font-size: 12.5px; box-shadow: var(--ipt-shadow-sm); }
.ipt-pulse-marker { position: relative; }
.ipt-pulse-marker::after { content: ''; position: absolute; inset: -10px; border-radius: 50%; background: color-mix(in srgb, var(--ipt-theme) 35%, transparent); animation: iptMarkerPulse 2s ease-out infinite; }
.ipt-pulse-dot { position: absolute; inset: 0; border-radius: 50%; background: var(--ipt-theme); border: 2px solid #fff; }
@keyframes iptMarkerPulse { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.4); opacity: 0; } }
.ipt-scenarios { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ipt-scenario { background: var(--ipt-card2); border: 1px solid var(--ipt-border); border-radius: 12px; padding: 12px 14px; }
.ipt-scenario .ipt-sc-head { display: flex; justify-content: space-between; font-size: 13.5px; font-weight: 600; margin-bottom: 10px; color: var(--ipt-text); }
.ipt-bar { display: flex; gap: 3px; }
.ipt-bar i { flex: 1; height: 8px; border-radius: 4px; background: var(--ipt-line); }
.ipt-bar i.on1 { background: #ef4444; } .ipt-bar i.on2 { background: #f97316; } .ipt-bar i.on3 { background: #f59e0b; } .ipt-bar i.on4 { background: #84cc16; } .ipt-bar i.on5 { background: #10b981; }

/* ---------- 表格 ---------- */
.ipt-table-wrap { border: 1px solid var(--ipt-border); border-radius: 12px; overflow: auto; margin-bottom: 10px; }
.ipt-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ipt-table th { text-align: left; font-size: 12px; letter-spacing: .08em; color: var(--ipt-text2); background: var(--ipt-head-bg); padding: 12px 16px; white-space: nowrap; font-weight: 700; }
.ipt-table td { padding: 13px 16px; border-top: 1px solid var(--ipt-line); color: var(--ipt-text); vertical-align: top; }
.ipt-table tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--ipt-text) 1.6%, transparent); }
.ipt-table tr.ipt-diff td { background: var(--ipt-yellow-bg); }
.ipt-table tr.ipt-fail td { background: var(--ipt-red-bg); }
.ipt-stats { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.ipt-stat { flex: 1; min-width: 120px; background: var(--ipt-card2); border: 1px solid var(--ipt-border); border-radius: 12px; padding: 12px 16px; }
.ipt-stat span { display: block; color: var(--ipt-muted); font-size: 12.5px; }
.ipt-stat b { font-size: 22px; color: var(--ipt-text); }

/* ---------- 测速：中央大圆环 ---------- */
.ipt-speed-hero { text-align: center; padding: 6px 0 20px; }
.ipt-gauge { --p: 0; width: 232px; height: 232px; border-radius: 50%; margin: 8px auto 6px; background: conic-gradient(var(--ipt-theme) calc(var(--p) * 1%), var(--ipt-line) 0); display: flex; align-items: center; justify-content: center; box-shadow: var(--ipt-shadow-sm); }
.ipt-gauge-in { width: 188px; height: 188px; border-radius: 50%; background: var(--ipt-card); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 18px; }
.ipt-speed-num { font-size: 42px; font-weight: 800; line-height: 1.1; color: var(--ipt-text); letter-spacing: -.01em; }
.ipt-speed-num small { font-size: 17px; color: var(--ipt-muted); font-weight: 600; }
.ipt-gauge-in .ipt-sub { margin: 6px 0 0; }
.ipt-speed-canvas { width: 100%; height: 84px; display: block; margin: 8px 0 18px; }
.ipt-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ipt-metric { background: var(--ipt-card2); border: 1px solid var(--ipt-border); border-radius: 12px; padding: 14px 16px; }
.ipt-metric span { color: var(--ipt-muted); font-size: 12.5px; font-weight: 600; letter-spacing: .04em; }
.ipt-metric b { display: block; font-size: 23px; margin-top: 4px; color: var(--ipt-text); }
.ipt-site-list { display: flex; flex-direction: column; gap: 10px; }
.ipt-site-row { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.ipt-site-row .ipt-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ipt-muted); flex: 0 0 auto; }
.ipt-site-row .ipt-dot.ok { background: var(--ipt-green); }
.ipt-site-row .ipt-dot.err { background: var(--ipt-red); }
.ipt-site-row .ipt-site-name { flex: 1; color: var(--ipt-text); }
.ipt-site-row .ipt-site-ms { font-variant-numeric: tabular-nums; color: var(--ipt-text2); font-weight: 600; }

/* ---------- 场景：逐项清单卡 ---------- */
.ipt-check-list { list-style: none; margin: 0; padding: 0; }
.ipt-check-list li { display: flex; gap: 12px; align-items: flex-start; background: var(--ipt-card2); border: 1px solid var(--ipt-border); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.ipt-check-list li:last-child { margin-bottom: 0; }
.ipt-check-list .ipt-ic { width: 28px; height: 28px; border-radius: 50%; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; margin-top: 1px; }
.ipt-check-list .ipt-ic.g { background: var(--ipt-green-bg); color: var(--ipt-green); }
.ipt-check-list .ipt-ic.y { background: var(--ipt-yellow-bg); color: var(--ipt-yellow); }
.ipt-check-list .ipt-ic.r { background: var(--ipt-red-bg); color: var(--ipt-red); }
.ipt-check-list b { display: block; font-size: 13.5px; color: var(--ipt-text); }
.ipt-check-list p { margin: 0; color: var(--ipt-muted); font-size: 12.5px; }

/* ---------- DNS：按类型分组 + 彩色徽章 ---------- */
.ipt-dns-group { display: flex; gap: 14px; padding: 13px 2px; border-top: 1px solid var(--ipt-line); align-items: flex-start; }
.ipt-rec-badge { flex: 0 0 auto; min-width: 56px; text-align: center; padding: 4px 8px; border-radius: 8px; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: #fff; background: #64748b; margin-top: 1px; }
.ipt-rec-A { background: #2563eb; } .ipt-rec-AAAA { background: #7c3aed; } .ipt-rec-CNAME { background: #0891b2; }
.ipt-rec-MX { background: #d97706; } .ipt-rec-NS { background: #059669; } .ipt-rec-TXT { background: #64748b; } .ipt-rec-PTR { background: #db2777; }
.ipt-dns-rows { flex: 1; min-width: 0; }
.ipt-dns-row { display: flex; justify-content: space-between; gap: 16px; padding: 3px 0; font-size: 13.5px; color: var(--ipt-text); }
.ipt-dns-row .ipt-mono { word-break: break-all; }
.ipt-dns-ttl { color: var(--ipt-muted); font-size: 12.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ipt-ptr-box { border-top: 1px solid var(--ipt-line); margin-top: 20px; padding-top: 20px; }
.ipt-h3-sm { font-size: 14.5px; }

/* ---------- 格式转换 ---------- */
.ipt-duo { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: start; }
.ipt-arrow { width: 42px; height: 42px; border-radius: 50%; background: var(--ipt-theme); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; margin-top: 34px; box-shadow: var(--ipt-shadow-sm); }

/* ---------- 设备检测：横排四小卡 ---------- */
.ipt-device-head { margin: 28px 0 16px; }
.ipt-device-head h3 { font-size: 17px; margin: 0; }
.ipt-device-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ipt-device-grid > .ipt-card { margin-bottom: 0; }
.ipt-device-grid .ipt-kv { grid-template-columns: 1fr; gap: 10px; }
.ipt-dev-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; gap: 8px; }
.ipt-dev-head h3 { margin: 0; font-size: 14.5px; }
.ipt-dev-foot { display: flex; gap: 10px; align-items: center; margin-top: 10px; flex-wrap: wrap; }

/* ---------- 小工具 ---------- */
.ipt-myip { --ipt-card2: var(--muted-bg-color, #f6f8fb); --ipt-muted: var(--muted-color, #64748b); --ipt-border: var(--main-border-color, #e3e8f0); --ipt-theme: var(--theme-color, #2568f3); --ipt-theme2: var(--focus-color, #1a56d6); color: var(--main-color, inherit); }
.ipt-myip .ipt-kv { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 0; font-size: 13.5px; }
.ipt-myip .ipt-kv dt { color: var(--ipt-muted); font-size: 12.5px; margin-bottom: 2px; }
.ipt-myip .ipt-kv dd { margin: 0; font-weight: 700; word-break: break-all; }
.ipt-myip .ipt-btn { border: 1px solid transparent; border-radius: 12px; height: 44px; padding: 0 20px; font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.ipt-myip .ipt-btn-primary { background: var(--ipt-theme); color: #fff; }
.ipt-myip .ipt-btn-block { display: flex; width: 100%; margin-top: 10px; }

.ipt-toast { position: fixed; right: 16px; bottom: 16px; z-index: 9999; background: #1f2937; color: #fff; box-shadow: 0 10px 30px rgba(15, 23, 42, .25); padding: 10px 18px; border-radius: 10px; font-size: 13.5px; max-width: 82vw; }

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
    .ipt-qhead { grid-template-columns: minmax(0, 1fr) 180px; }
    .ipt-qhead-map { grid-column: 1 / -1; min-height: 210px; }
    .ipt-qhead-score { border-right: 0; }
    .ipt-device-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
    /* 左栏收起为顶部横栏：标题一行 + 工具横向滚动胶囊（深底白字） */
    .ipt-shell { flex-direction: column; }
    .ipt-side { flex: none; width: auto; padding: 14px 14px 12px; }
    .ipt-side-brand { padding: 0 4px 10px; font-size: 17px; }
    .ipt-side-nav { flex-direction: row; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
    .ipt-side-nav::-webkit-scrollbar { display: none; }
    .ipt-nav-item { flex: 0 0 auto; width: auto; border-radius: 999px; padding: 9px 14px; }
    .ipt-nav-item.active::before { display: none; }
    .ipt-main { padding: 14px; }
    .ipt-qhead { grid-template-columns: 1fr; gap: 18px; padding: 20px; }
    .ipt-qhead-score { border-left: 0; border-right: 0; border-top: 1px solid var(--ipt-line); padding: 16px 0 0; }
    .ipt-qhead-map { min-height: 200px; }
    .ipt-grid2 { grid-template-columns: 1fr; }
    .ipt-kv { grid-template-columns: 1fr; gap: 10px; }
    .ipt-metrics { grid-template-columns: repeat(2, 1fr); }
    .ipt-duo { grid-template-columns: 1fr; }
    .ipt-arrow { margin: 0 auto; transform: rotate(90deg); }
    .ipt-score-card { flex-direction: column; }
    .ipt-ring-wrap { margin: 0 auto; }
}
@media (max-width: 760px) {
    .ipt-wrap { padding: 10px; }
    .ipt-device-grid { grid-template-columns: 1fr; }
    .ipt-table thead { display: none; }
    .ipt-table, .ipt-table tbody, .ipt-table tr, .ipt-table td { display: block; width: 100%; }
    .ipt-table tr { border-top: 1px solid var(--ipt-line); padding: 8px 0; }
    .ipt-table td { border-top: none; display: flex; justify-content: space-between; gap: 16px; padding: 5px 16px; }
    .ipt-table td::before { content: attr(data-label); color: var(--ipt-muted); font-size: 12px; font-weight: 600; flex: 0 0 auto; }
    .ipt-gauge { width: 196px; height: 196px; }
    .ipt-gauge-in { width: 160px; height: 160px; }
    .ipt-speed-num { font-size: 34px; }
    .ipt-scenarios { grid-template-columns: 1fr; }
}
