/* radar.html 页面样式（由内联样式抽离，版本 20260909-1） */
        * { box-sizing: border-box; margin: 0; padding: 0; }
        :root {
            --primary: #2563eb;
            --primary-dark: #1d4ed8;
            --primary-50: #eff6ff;
            --primary-100: #dbeafe;
            --primary-200: #bfdbfe;
            --accent: #ff8a1f;
            --accent-dark: #f97316;
            --accent-50: #fff7ed;
            --success: #10b981;
            --success-50: #ecfdf5;
            --warning: #f59e0b;
            --warning-50: #fffbeb;
            --danger: #ef4444;
            --danger-50: #fef2f2;
            --text-1: #0f172a;
            --text-2: #475569;
            --text-3: #94a3b8;
            --bg-page: #f7faff;
            --bg-soft: #f5f8ff;
            --border: #e2e8f0;
            --border-soft: #eef2f7;
            --shadow-card: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px rgba(37,99,235,.06);
        }
        html { scroll-behavior: smooth; }
        body {
            min-width: 320px;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
            color: var(--text-1);
            line-height: 1.65;
            background: var(--bg-page);
            -webkit-font-smoothing: antialiased;
        }
        a { color: inherit; text-decoration: none; }
        button, input { font: inherit; }
        button { border: 0; background: none; cursor: pointer; }
        .container { width: min(1200px, calc(100% - 40px)); margin: 0 auto; }

        .btn {
            min-height: 40px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 0 16px;
            border-radius: 8px;
            border: 1px solid var(--border);
            background: #fff;
            color: var(--text-1);
            font-weight: 800;
            transition: transform .18s, box-shadow .18s, background .18s, border-color .18s;
            white-space: nowrap;
        }
        .btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(15,23,42,.08); }
        .btn-primary { background: linear-gradient(135deg, #3b82f6, #1d4ed8); color: #fff; border-color: transparent; }
        .btn-primary:hover { background: linear-gradient(135deg, #2563eb, #1e40af); }
        .btn-ghost { background: transparent; }
        .btn-sm { min-height: 34px; padding: 0 12px; font-size: 13px; }
        .btn:disabled { cursor: not-allowed; opacity: .62; transform: none; box-shadow: none; }
        .loader { display: none; width: 17px; height: 17px; }
        .loading .loader { display: inline-block; }
        .loading .btn-text { display: none; }

        .hero {
            background: linear-gradient(180deg, #eef4ff 0%, #f7faff 58%, #fff 100%);
            border-bottom: 1px solid var(--border);
        }
        .hero-inner {
            min-height: 0;
            display: grid;
            grid-template-columns: minmax(0, 1fr) 320px;
            gap: 24px;
            align-items: start;
            padding: 28px 0 32px;
        }
        .search-panel, .preview-panel, .card, .history-card {
            background: #fff;
            border: 1px solid var(--border-soft);
            border-radius: 8px;
            box-shadow: var(--shadow-card);
        }
        .search-panel { padding: 22px; }
        .eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--primary-dark); font-size: 13px; font-weight: 900; }
        .status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(16,185,129,.12); }
        h1 { font-size: 40px; line-height: 1.18; letter-spacing: 0; }
        .hero-sub { margin-top: 12px; max-width: 780px; color: var(--text-2); font-size: 15px; }
        .search-form { margin-top: 24px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
        .search-row {
            min-height: 54px;
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 0 16px;
            border: 1px solid #cbd5e1;
            border-radius: 8px;
            background: #fff;
        }
        .search-row:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(37,99,235,.1); }
        .search-row.err { border-color: var(--danger); }
        .search-row svg { width: 20px; height: 20px; color: var(--text-3); flex: 0 0 auto; }
        .search-row input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text-1); font-size: 16px; }
        .clear-btn { display: none; width: 28px; height: 28px; align-items: center; justify-content: center; border-radius: 8px; color: var(--text-3); }
        .clear-btn.show { display: inline-flex; }
        .clear-btn:hover { background: var(--bg-soft); color: var(--danger); }
        .error { display: none; margin-top: 10px; color: var(--danger); font-size: 13px; }
        .error.show { display: block; }
        .examples { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
        .examples span { color: var(--text-3); font-size: 13px; }
        .example-btn { min-height: 30px; display: inline-flex; align-items: center; gap: 6px; padding: 0 11px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-soft); color: #334155; font-size: 13px; font-weight: 800; }
        .example-btn:hover { color: var(--primary); border-color: var(--primary-200); background: var(--primary-50); }
        .example-btn svg { width: 14px; height: 14px; }

        .preview-panel { position: sticky; top: 88px; padding: 18px; }
        .preview-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
        .preview-head h2 { font-size: 16px; }
        .price-pill { color: var(--success); background: var(--success-50); border: 1px solid #bbf7d0; border-radius: 8px; padding: 2px 8px; font-size: 12px; font-weight: 900; }
        .mini-radar { width: 100%; max-height: 238px; aspect-ratio: 1; }
        .preview-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; margin-top: 8px; }
        .preview-stat { padding: 8px 0; border-top: 1px solid var(--border-soft); }
        .preview-stat .v { font-size: 18px; font-weight: 900; }
        .preview-stat .k { color: var(--text-3); font-size: 12px; }

        .result { padding: 28px 0 50px; }
        .empty-tip { padding: 46px 20px; border: 1px dashed #cbd5e1; border-radius: 8px; background: #fff; text-align: center; color: var(--text-2); }
        .empty-tip strong { display: block; margin-bottom: 6px; color: var(--text-1); font-size: 18px; }
        .top-grid { display: none; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: stretch; }
        .top-grid.show { display: grid; }
        .card { overflow: hidden; margin-bottom: 18px; }
        .card-head { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border-soft); flex-wrap: wrap; }
        .card-title { display: inline-flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 900; }
        .card-title svg { width: 18px; height: 18px; color: var(--primary); }
        .card-body { padding: 18px; }
        .co-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
        .co-logo { width: 56px; height: 56px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #3b82f6, #1d4ed8); color: #fff; font-size: 24px; font-weight: 900; flex: 0 0 auto; }
        .co-name { font-size: 20px; line-height: 1.25; font-weight: 900; overflow-wrap: anywhere; }
        .pill { display: inline-flex; align-items: center; gap: 4px; min-height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 900; }
        .pill.ok { background: var(--success-50); color: var(--success); }
        .pill.bad { background: var(--danger-50); color: var(--danger); }
        .pill.info { background: var(--primary-50); color: var(--primary-dark); }
        .kv-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
        .kv { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--border-soft); font-size: 14px; }
        .kv .k { color: var(--text-3); flex: 0 0 auto; }
        .kv .v { color: var(--text-1); font-weight: 800; text-align: right; overflow-wrap: anywhere; }
        .mono { font-family: "SF Mono", Consolas, Menlo, monospace; font-size: 13px; }

        .score-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; }
        .ring-wrap { position: relative; width: 184px; height: 184px; margin-bottom: 14px; }
        .ring-wrap svg { width: 100%; height: 100%; transform: rotate(-90deg); }
        .ring-bg { fill: none; stroke: var(--primary-100); stroke-width: 13; }
        .ring-fg { fill: none; stroke-linecap: round; stroke-width: 13; transition: stroke-dashoffset .9s cubic-bezier(.22,.68,.36,1); }
        .ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
        .ring-num { font-size: 42px; line-height: 1; font-weight: 900; font-family: "SF Mono", Consolas, Menlo, monospace; }
        .ring-lbl { margin-top: 8px; color: var(--text-3); font-size: 13px; }
        .level-badge { min-height: 32px; display: inline-flex; align-items: center; padding: 0 18px; border-radius: 999px; color: #fff; font-size: 14px; font-weight: 900; }
        .lv-low { background: linear-gradient(135deg, #34d399, #059669); }
        .lv-mid { background: linear-gradient(135deg, #ffb254, #f97316); }
        .lv-high { background: linear-gradient(135deg, #f87171, #dc2626); }
        .mini-stats { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
        .mini-stat { text-align: center; padding: 9px 4px; background: var(--bg-soft); border-radius: 8px; }
        .mini-stat .n { font-size: 19px; font-weight: 900; color: var(--text-1); font-family: "SF Mono", Consolas, Menlo, monospace; }
        .mini-stat .t { color: var(--text-3); font-size: 12px; }
        .mini-stat.warn .n { color: var(--accent-dark); }
        .mini-stat.dang .n { color: var(--danger); }
        .advice { margin-top: 14px; text-align: center; color: var(--text-2); font-size: 13px; }
        .advice b { color: var(--text-1); }

        .radar-grid { display: grid; grid-template-columns: minmax(0, 460px) 1fr; gap: 10px 28px; align-items: center; }
        .radar-stage { position: relative; width: 100%; max-width: 460px; margin: 0 auto; aspect-ratio: 1; user-select: none; }
        .radar-stage svg { width: 100%; height: 100%; overflow: visible; }
        .rt-grid { fill: none; stroke: var(--border-soft); stroke-width: 1; }
        .rt-axis { stroke: var(--border-soft); stroke-width: 1; stroke-dasharray: 3 4; }
        .rt-label { font-size: 12.5px; fill: var(--text-2); font-weight: 800; }
        .rt-sublabel { font-size: 10.5px; fill: var(--text-3); }
        .rt-area { fill: url(#areaGrad); stroke: var(--primary); stroke-width: 2; stroke-linejoin: round; filter: drop-shadow(0 4px 10px rgba(37,99,235,.22)); }
        .rt-dot { stroke: #fff; stroke-width: 2.5; cursor: pointer; transition: r .15s; }
        .rt-hit { fill: transparent; cursor: pointer; }
        .dot-pulse { animation: pulse 1.6s ease-out infinite; transform-origin: center; transform-box: fill-box; }
        @keyframes pulse { 0% { opacity: .55; r: 6; } 80% { opacity: 0; r: 15; } 100% { opacity: 0; } }
        .tooltip { position: absolute; z-index: 10; pointer-events: none; min-width: 168px; padding: 10px 13px; border-radius: 8px; background: #0f172a; color: #fff; font-size: 12.5px; line-height: 1.6; opacity: 0; transform: translate(-50%, calc(-100% - 14px)); transition: opacity .18s, left .18s, top .18s; box-shadow: 0 14px 30px rgba(15,23,42,.28); }
        .tooltip.show { opacity: 1; }
        .tooltip::after { content: ''; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; background: #0f172a; transform: translateX(-50%) rotate(45deg); }
        .tt-name { font-weight: 900; font-size: 13.5px; margin-bottom: 3px; }
        .tt-row { display: flex; justify-content: space-between; gap: 14px; }
        .tt-row span:first-child { color: #94a3b8; }
        .tt-badge { display: inline-block; padding: 0 7px; border-radius: 5px; font-size: 11px; font-weight: 900; }
        .tt-badge.h { background: #dc2626; } .tt-badge.m { background: #ea580c; } .tt-badge.l { background: #059669; }

        .dim-list { display: flex; flex-direction: column; }
        .dim-item { display: flex; align-items: center; gap: 14px; padding: 11px 10px; border-radius: 8px; cursor: pointer; transition: background .15s, border-color .15s; border: 1px solid transparent; }
        .dim-item:hover, .dim-item.hl { background: var(--primary-50); border-color: var(--primary-100); }
        .dim-icon { width: 38px; height: 38px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
        .dim-icon svg { width: 18px; height: 18px; }
        .di-blue { background: var(--primary-50); color: var(--primary); }
        .di-warn { background: var(--warning-50); color: #b45309; }
        .di-dang { background: var(--danger-50); color: var(--danger); }
        .dim-info { flex: 1; min-width: 0; }
        .dim-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 5px; }
        .dim-name { font-size: 14px; font-weight: 900; white-space: nowrap; }
        .dim-count { color: var(--text-3); font-size: 12px; text-align: right; }
        .pbar { height: 7px; border-radius: 4px; background: var(--bg-soft); overflow: hidden; }
        .pbar > span { display: block; height: 100%; width: 0; border-radius: 4px; transition: width .9s cubic-bezier(.22,.68,.36,1); }
        .pb-blue > span { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
        .pb-warn > span { background: linear-gradient(90deg, #fb923c, #f97316); }
        .pb-dang > span { background: linear-gradient(90deg, #f87171, #dc2626); }
        .dim-score { width: 44px; flex: 0 0 auto; text-align: right; font-family: "SF Mono", Consolas, Menlo, monospace; font-size: 15px; font-weight: 900; }
        .ds-blue { color: var(--primary); } .ds-warn { color: var(--accent-dark); } .ds-dang { color: var(--danger); }

        .detail-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 10px; margin-bottom: 18px; }
        .detail-stat { min-height: 86px; display: block; width: 100%; padding: 12px; border: 1px solid var(--border-soft); border-radius: 8px; background: var(--bg-soft); text-align: left; }
        .detail-stat strong { display: block; color: var(--text-1); font-size: 18px; line-height: 1.2; font-family: "SF Mono", Consolas, Menlo, monospace; }
        .detail-stat span { display: block; margin-top: 4px; color: var(--text-2); font-size: 13px; font-weight: 900; overflow-wrap: anywhere; }
        .detail-stat em { display: inline-flex; margin-top: 6px; padding: 1px 7px; border-radius: 999px; font-style: normal; font-size: 11px; font-weight: 900; }
        .detail-stat.low em { color: var(--success); background: var(--success-50); }
        .detail-stat.mid em { color: #b45309; background: var(--warning-50); }
        .detail-stat.high em { color: var(--danger); background: var(--danger-50); }
        .detail-sections { display: flex; flex-direction: column; gap: 18px; }
        .detail-section { padding-top: 17px; border-top: 1px solid var(--border-soft); }
        .detail-section:first-child { padding-top: 0; border-top: 0; }
        .detail-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
        .detail-title { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 900; }
        .detail-title i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
        .detail-title .low { background: var(--primary); box-shadow: 0 0 0 4px var(--primary-50); }
        .detail-title .mid { background: var(--warning); box-shadow: 0 0 0 4px var(--warning-50); }
        .detail-title .high { background: var(--danger); box-shadow: 0 0 0 4px var(--danger-50); }
        .detail-count { color: var(--text-3); font-size: 12px; font-weight: 900; }
        .detail-list { display: grid; gap: 10px; margin-top: 10px; }
        .detail-record { padding: 12px; border: 1px solid var(--border-soft); border-radius: 8px; background: #fff; }
        .detail-record-title { color: var(--text-1); font-size: 13.5px; font-weight: 900; line-height: 1.5; overflow-wrap: anywhere; }
        .field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 16px; margin-top: 8px; }
        .field-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-width: 0; font-size: 12.5px; }
        .field-row .fk { flex: 0 0 auto; color: var(--text-3); }
        .field-row .fv { min-width: 0; color: var(--text-2); font-weight: 800; text-align: right; overflow-wrap: anywhere; }
        .detail-more { margin-top: 8px; color: var(--text-3); font-size: 12px; }
        .detail-empty { margin-top: 9px; padding: 12px; border-radius: 8px; background: var(--bg-soft); color: var(--text-3); font-size: 13px; }
        .detail-error { color: var(--danger); background: var(--danger-50); }

        .tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
        .tag-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 8px; font-size: 13px; font-weight: 900; }
        .tag-chip svg { width: 13px; height: 13px; }
        .tc-risk { background: var(--danger-50); color: var(--danger); border: 1px solid #fecaca; }
        .tc-warn { background: var(--warning-50); color: #b45309; border: 1px solid #fde68a; }
        .tc-good { background: var(--success-50); color: var(--success); border: 1px solid #bbf7d0; }
        .tc-neutral { background: var(--primary-50); color: var(--primary-dark); border: 1px solid var(--primary-200); }

        .timeline { position: relative; padding-left: 4px; }
        .tl-item { position: relative; padding: 0 0 18px 26px; border-left: 2px solid var(--border-soft); }
        .tl-item:last-child { padding-bottom: 2px; border-left-color: transparent; }
        .tl-dot { position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; border: 2.5px solid #fff; }
        .td-dang { background: var(--danger); box-shadow: 0 0 0 3px var(--danger-50); }
        .td-warn { background: var(--warning); box-shadow: 0 0 0 3px var(--warning-50); }
        .td-blue { background: var(--primary); box-shadow: 0 0 0 3px var(--primary-50); }
        .tl-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
        .tl-title { font-size: 14px; font-weight: 900; }
        .tl-time { color: var(--text-3); font-size: 12px; font-family: "SF Mono", Consolas, Menlo, monospace; }
        .tl-desc { color: var(--text-2); font-size: 13px; overflow-wrap: anywhere; }

        .history { padding: 0 0 54px; }
        .history-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
        .history-head h2 { font-size: 18px; }
        .history-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
        .history-card { padding: 13px; cursor: pointer; box-shadow: none; }
        .history-card:hover { border-color: var(--primary-200); }
        .history-card strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .history-card span { color: var(--text-3); font-size: 12px; }

        .toast {
            position: fixed;
            top: 86px;
            left: 50%;
            z-index: 1001;
            transform: translateX(-50%) translateY(-10px);
            padding: 10px 16px;
            border-radius: 8px;
            background: #0f172a;
            color: #fff;
            font-size: 13px;
            opacity: 0;
            pointer-events: none;
            transition: .2s;
            box-shadow: 0 12px 30px rgba(15,23,42,.25);
        }
        .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

        @media (max-width: 1080px) {
            .hero-inner, .top-grid, .radar-grid { grid-template-columns: 1fr; }
            .preview-panel { position: static; }
        }
        @media (max-width: 760px) {
            .container { width: min(100% - 28px, 1200px); }
            .hero-inner { min-height: auto; padding: 22px 0 28px; }
            .search-panel { padding: 20px; }
            h1 { font-size: 30px; }
            .search-form, .kv-list, .field-grid { grid-template-columns: 1fr; }
            .mini-stats { grid-template-columns: repeat(3, 1fr); }
            .card-head { align-items: flex-start; }
        }

