/* ip-radar.html 页面样式（由内联样式抽离，版本 20260909-1） */
        * { box-sizing: border-box; margin: 0; padding: 0; }
        :root {
            --blue: #2563eb;
            --blue-dark: #1d4ed8;
            --cyan: #0891b2;
            --green: #10b981;
            --amber: #f59e0b;
            --orange: #f97316;
            --red: #ef4444;
            --ink: #0f172a;
            --muted: #64748b;
            --soft: #94a3b8;
            --line: #e2e8f0;
            --line-soft: #eef2f7;
            --page: #f5f7fb;
            --shadow: 0 18px 50px rgba(15, 23, 42, .08);
        }
        html { scroll-behavior: smooth; }
        body {
            min-height: 100vh;
            background: var(--page);
            color: var(--ink);
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
        }
        a { color: inherit; text-decoration: none; }
        button, input { font: inherit; }
        button { border: 0; background: none; cursor: pointer; }
        svg { display: block; }
        .container { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
        .hero {
            padding: 40px 0 26px;
            background: linear-gradient(180deg, #eef6ff 0%, #f7fbff 58%, var(--page) 100%);
        }
        .hero-inner {
            display: grid;
            grid-template-columns: minmax(0, 1fr) 360px;
            gap: 24px;
            align-items: stretch;
        }
        .hero-copy { min-width: 0; padding-top: 6px; }
        .eyebrow {
            display: inline-flex; align-items: center; gap: 8px;
            padding: 6px 12px;
            border: 1px solid #bfdbfe;
            border-radius: 999px;
            background: #eff6ff;
            color: var(--blue-dark);
            font-size: 13px;
            font-weight: 800;
        }
        .eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }
        .hero h1 {
            max-width: 760px;
            margin-top: 14px;
            font-size: clamp(32px, 4vw, 46px);
            line-height: 1.15;
            letter-spacing: 0;
            font-weight: 900;
            color: var(--ink);
        }
        .hero p { max-width: 720px; margin-top: 12px; color: var(--muted); font-size: 16px; }
        .search-panel {
            margin-top: 20px;
            max-width: 760px;
            padding: 12px;
            border: 1px solid rgba(191, 219, 254, .9);
            border-radius: 18px;
            background: rgba(255, 255, 255, .92);
            box-shadow: var(--shadow);
        }
        .search-row { display: flex; gap: 10px; align-items: stretch; }
        .search-input {
            flex: 1;
            min-width: 0;
            height: 52px;
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 0 14px;
            border: 1px solid var(--line);
            border-radius: 12px;
            background: #fff;
            transition: border-color .18s, box-shadow .18s;
        }
        .search-input:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .13); }
        .search-input.err { border-color: var(--red); box-shadow: 0 0 0 3px rgba(239, 68, 68, .12); }
        .search-input svg { width: 20px; height: 20px; color: var(--soft); flex: 0 0 auto; }
        .search-input input {
            min-width: 0;
            flex: 1;
            height: 100%;
            border: 0;
            outline: 0;
            background: transparent;
            color: var(--ink);
            font-size: 16px;
        }
        .clear-btn {
            display: none;
            align-items: center;
            justify-content: center;
            width: 30px;
            height: 30px;
            border-radius: 8px;
            color: var(--soft);
        }
        .clear-btn.show { display: inline-flex; }
        .clear-btn:hover { background: #f1f5f9; color: var(--ink); }
        .clear-btn svg { width: 16px; height: 16px; }
        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            min-height: 42px;
            padding: 0 18px;
            border-radius: 10px;
            font-size: 14px;
            font-weight: 850;
            white-space: nowrap;
            transition: transform .18s, box-shadow .18s, background .18s, border-color .18s, color .18s;
        }
        .btn-primary {
            color: #fff;
            background: linear-gradient(135deg, var(--blue), var(--cyan));
            box-shadow: 0 10px 22px rgba(37, 99, 235, .24);
        }
        .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(37, 99, 235, .3); }
        .btn-primary:disabled { opacity: .68; cursor: not-allowed; transform: none; }
        .btn-outline { border: 1px solid var(--line); color: var(--muted); background: #fff; }
        .btn-outline:hover { border-color: #bfdbfe; background: #eff6ff; color: var(--blue); }
        .btn-sm { min-height: 36px; padding: 0 13px; font-size: 13px; }
        .btn .loader { display: none; width: 18px; height: 18px; }
        .loading .loader { display: block; }
        .loading .btn-text { display: none; }
        .error-text { display: none; margin-top: 9px; color: var(--red); font-size: 13px; font-weight: 700; }
        .error-text.show { display: block; }
        .examples {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
            margin-top: 14px;
            color: var(--muted);
            font-size: 13px;
        }
        .example-chip {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            min-height: 32px;
            padding: 0 12px;
            border: 1px solid var(--line);
            border-radius: 999px;
            background: #fff;
            color: var(--muted);
            font-size: 13px;
            font-weight: 700;
        }
        .example-chip:hover { border-color: #bfdbfe; background: #eff6ff; color: var(--blue); }
        .dot { width: 8px; height: 8px; border-radius: 50%; }
        .dot.red { background: var(--red); }
        .dot.orange { background: var(--orange); }
        .dot.amber { background: var(--amber); }
        .dot.green { background: var(--green); }
        .hero-card {
            min-width: 0;
            border: 1px solid rgba(226, 232, 240, .9);
            border-radius: 18px;
            background: #fff;
            box-shadow: var(--shadow);
            padding: 18px;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        .hero-radar {
            width: 100%;
            aspect-ratio: 1;
            border-radius: 14px;
            border: 1px solid var(--line-soft);
            background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
            padding: 14px;
        }
        .hero-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
        .hero-kpis div { border: 1px solid var(--line-soft); border-radius: 10px; padding: 10px; background: #f8fafc; }
        .hero-kpis span { display: block; color: var(--soft); font-size: 11px; font-weight: 800; white-space: nowrap; }
        .hero-kpis strong { display: block; margin-top: 2px; color: var(--ink); font-size: 16px; font-weight: 900; }
        .main { padding: 18px 0 48px; }
        .result-empty {
            max-width: 1180px;
            margin: 0 auto;
            border: 1px dashed #dbeafe;
            border-radius: 18px;
            background: #fff;
            padding: 42px 24px;
            text-align: center;
            color: var(--muted);
            box-shadow: 0 10px 30px rgba(15, 23, 42, .04);
        }
        .result-empty svg { width: 44px; height: 44px; margin: 0 auto 14px; color: var(--blue); }
        .result-empty h2 { color: var(--ink); font-size: 20px; font-weight: 900; }
        .result-empty p { max-width: 680px; margin: 8px auto 0; font-size: 14px; }
        .result-body { display: none; }
        .result-body.show { display: block; }
        .topbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 14px;
            margin-bottom: 14px;
            padding: 16px 18px;
            border: 1px solid var(--line);
            border-radius: 16px;
            background: #fff;
            box-shadow: 0 12px 36px rgba(15, 23, 42, .05);
        }
        .ip-title {
            min-width: 0;
            display: flex;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
        }
        .ip-title strong {
            font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
            font-size: 24px;
            color: var(--blue-dark);
            word-break: break-all;
        }
        .status-chip {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            min-height: 28px;
            padding: 0 10px;
            border-radius: 999px;
            font-size: 12px;
            font-weight: 850;
        }
        .status-chip.high { color: #991b1b; background: #fef2f2; }
        .status-chip.mid { color: #9a3412; background: #fff7ed; }
        .status-chip.low, .status-chip.none { color: #047857; background: #ecfdf5; }
        .top-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
        .dashboard {
            display: grid;
            grid-template-columns: minmax(0, 1.4fr) 320px minmax(0, 1fr);
            gap: 14px;
            border: 1px solid var(--line);
            border-radius: 18px;
            background: #fff;
            box-shadow: var(--shadow);
            overflow: hidden;
        }
        .panel { min-width: 0; padding: 18px; border-right: 1px solid var(--line-soft); }
        .panel:last-child { border-right: 0; }
        .panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
        .panel-title { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 14px; font-weight: 900; }
        .panel-title svg { width: 18px; height: 18px; color: var(--blue); }
        .panel-note { color: var(--soft); font-size: 12px; font-weight: 700; white-space: nowrap; }
        .radar-box { min-height: 330px; display: grid; place-items: center; }
        .radar-svg { width: min(100%, 380px); height: auto; overflow: visible; }
        .axis-label { fill: var(--muted); font-size: 12px; font-weight: 800; }
        .ring-box { display: grid; place-items: center; min-height: 250px; }
        .ring-wrap { position: relative; width: 210px; height: 210px; }
        .ring-wrap svg { width: 210px; height: 210px; transform: rotate(-90deg); }
        .ring-track { stroke: #edf2f7; }
        .ring-fill { stroke-linecap: round; transition: stroke-dashoffset .7s ease, stroke .2s ease; }
        .ring-num { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
        .ring-num b { display: block; color: var(--ink); font-size: 48px; line-height: 1; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
        .ring-num span { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; font-weight: 800; }
        .risk-tags { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
        .risk-tag { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; color: #fff; font-size: 12px; font-weight: 850; }
        .suggest-list { display: grid; gap: 10px; }
        .suggest-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #fbfdff; }
        .suggest-card strong { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 14px; }
        .suggest-card span { display: inline-flex; align-items: center; min-height: 20px; padding: 0 7px; border-radius: 6px; font-size: 11px; }
        .suggest-card p { margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.6; }
        .badge-high { color: #991b1b; background: #fee2e2; }
        .badge-mid { color: #9a3412; background: #ffedd5; }
        .badge-low { color: #047857; background: #d1fae5; }
        .detail-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: 14px; margin-top: 14px; }
        .card { min-width: 0; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 12px 36px rgba(15, 23, 42, .05); overflow: hidden; }
        .card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line-soft); }
        .card-title { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 15px; font-weight: 900; }
        .card-body { padding: 18px; }
        .info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
        .info-item { border: 1px solid var(--line-soft); border-radius: 12px; padding: 12px; background: #f8fafc; }
        .info-item .k { color: var(--soft); font-size: 12px; font-weight: 800; }
        .info-item .v { margin-top: 5px; color: var(--ink); font-size: 14px; font-weight: 800; word-break: break-all; overflow-wrap: anywhere; }
        .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
        .map-lite {
            position: relative;
            min-height: 250px;
            border-radius: 14px;
            overflow: hidden;
            border: 1px solid #dbeafe;
            background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
        }
        .map-chart { position: absolute; inset: 0; z-index: 1; }
        .map-chart canvas, .map-chart svg { display: block; width: 100% !important; height: 100% !important; }
        .map-badge {
            position: absolute;
            top: 12px;
            right: 12px;
            z-index: 3;
            display: inline-flex;
            align-items: center;
            min-height: 28px;
            padding: 0 10px;
            border: 1px solid rgba(191, 219, 254, .9);
            border-radius: 999px;
            background: rgba(255, 255, 255, .9);
            backdrop-filter: blur(8px);
            color: var(--blue-dark);
            font-size: 12px;
            font-weight: 900;
        }
        .map-card {
            position: absolute;
            left: 12px;
            bottom: 12px;
            z-index: 3;
            max-width: calc(100% - 24px);
            padding: 12px 14px;
            border: 1px solid rgba(219, 234, 254, .95);
            border-radius: 12px;
            background: rgba(255, 255, 255, .95);
            box-shadow: 0 10px 28px rgba(15, 23, 42, .12);
            backdrop-filter: blur(8px);
        }
        .map-card strong { display: block; color: var(--ink); font-size: 14px; font-weight: 900; }
        .map-card span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.5; }
        .source-list { display: grid; gap: 9px; margin-top: 12px; }
        .source-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            border: 1px solid var(--line-soft);
            border-radius: 12px;
            padding: 10px 12px;
            background: #f8fafc;
        }
        .source-row strong { color: var(--ink); font-size: 13px; }
        .source-row span { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
        .source-ok { color: var(--green); font-weight: 900; }
        .source-bad { color: var(--red); font-weight: 900; }
        .history { margin-top: 14px; }
        .history-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
        .his-card {
            border: 1px solid var(--line);
            border-radius: 12px;
            padding: 12px;
            background: #fbfdff;
            text-align: left;
            transition: border-color .16s, background .16s, transform .16s;
        }
        .his-card:hover { border-color: #bfdbfe; background: #f8fbff; transform: translateY(-1px); }
        .his-ip {
            font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
            font-size: 13px;
            font-weight: 900;
            word-break: break-all;
        }
        .his-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 6px 8px;
            margin-top: 8px;
            color: var(--muted);
            font-size: 12px;
        }
        .his-meta .status-chip { min-height: 22px; padding: 0 8px; font-size: 11px; }
        .toast {
            position: fixed;
            left: 50%;
            bottom: 26px;
            z-index: 60;
            min-height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            max-width: calc(100vw - 28px);
            padding: 0 14px;
            border-radius: 999px;
            background: #0f172a;
            color: #fff;
            font-size: 13px;
            font-weight: 700;
            box-shadow: 0 12px 30px rgba(15, 23, 42, .18);
            transform: translate(-50%, 16px);
            opacity: 0;
            transition: opacity .2s, transform .2s;
            pointer-events: none;
        }
        .toast.show { opacity: 1; transform: translate(-50%, 0); }
        @media (max-width: 1120px) {
            .hero-inner { grid-template-columns: 1fr; }
            .dashboard { grid-template-columns: 1fr; }
            .detail-grid { grid-template-columns: 1fr 1fr; }
            .history-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        }
        @media (max-width: 768px) {
            .container { padding: 0 16px; }
            .hero { padding: 28px 0 18px; }
            .hero h1 { font-size: 30px; }
            .search-row { flex-direction: column; }
            .btn-primary { width: 100%; }
            .hero-card { padding: 16px; }
            .detail-grid, .info-grid, .history-list { grid-template-columns: 1fr; }
            .topbar, .panel-head { align-items: flex-start; flex-direction: column; }
            .top-actions { width: 100%; }
            .top-actions .btn { flex: 1; }
            .panel { border-right: 0; border-bottom: 1px solid var(--line-soft); }
            .panel:last-child { border-bottom: 0; }
            .card-head { align-items: flex-start; flex-direction: column; }
            .map-card { max-width: calc(100% - 24px); }
        }

