:root {
    --bg: #0a0e14;
    --bg-soft: #0d131b;
    --panel: #111923;
    --panel-2: #0f1620;
    --border: #1f2d3d;
    --border-soft: #17222e;
    --text: #e8eef5;
    --text-2: #b9c6d3;
    --muted: #7d8b9a;
    --accent: #4c8dff;
    --accent-soft: rgba(76, 141, 255, .12);
    --good: #2ecc71;
    --good-soft: rgba(46, 204, 113, .12);
    --warn: #f5a623;
    --warn-soft: rgba(245, 166, 35, .12);
    --bad: #ef5350;
    --bad-soft: rgba(239, 83, 80, .12);
    --radius: 14px;
    --shadow: 0 18px 50px rgba(0, 0, 0, .45);
    --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
}

body {
    background:
        radial-gradient(900px 500px at 12% -10%, rgba(76, 141, 255, .10), transparent 60%),
        radial-gradient(700px 420px at 92% 0%, rgba(46, 204, 113, .06), transparent 55%),
        var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

.wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

/* ---------------- 顶栏 ---------------- */
.topbar {
    border-bottom: 1px solid var(--border-soft);
    background: rgba(10, 14, 20, .72);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 20;
}

.topbar-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 650;
    letter-spacing: .2px;
}

.logo-mark {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: linear-gradient(145deg, #4c8dff, #2ecc71);
    display: grid;
    place-items: center;
    color: #06101c;
    font-weight: 800;
    font-size: 13px;
    box-shadow: 0 4px 14px rgba(76, 141, 255, .3);
}

.logo small {
    color: var(--muted);
    font-weight: 400;
    font-size: 12px;
    margin-left: 2px;
}

.topbar .spacer { flex: 1; }

.topbar .meta {
    color: var(--muted);
    font-size: 12.5px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------------- 首屏 ---------------- */
.hero {
    padding: 54px 0 30px;
}

.hero h1 {
    font-size: 34px;
    line-height: 1.25;
    margin: 0 0 14px;
    letter-spacing: -.5px;
    font-weight: 700;
}

.hero h1 em {
    font-style: normal;
    background: linear-gradient(120deg, #4c8dff, #2ecc71);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    color: var(--text-2);
    margin: 0;
    max-width: 780px;
    font-size: 15px;
}

.hero .pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.pill {
    font-size: 12.5px;
    color: var(--text-2);
    border: 1px solid var(--border);
    background: var(--panel-2);
    padding: 4px 11px;
    border-radius: 999px;
}

/* ---------------- 输入区 ---------------- */
.panel {
    background: linear-gradient(180deg, rgba(23, 34, 46, .55), rgba(15, 22, 32, .9));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.input-panel {
    padding: 20px;
    margin-bottom: 26px;
}

.tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    background: var(--bg-soft);
    border: 1px solid var(--border-soft);
    padding: 4px;
    border-radius: 10px;
    width: fit-content;
}

.tab {
    border: 0;
    background: transparent;
    color: var(--muted);
    padding: 7px 16px;
    border-radius: 7px;
    font-size: 13.5px;
    cursor: pointer;
    font-family: inherit;
    transition: all .16s;
}

.tab:hover { color: var(--text-2); }

.tab.active {
    background: var(--accent-soft);
    color: #cfe0ff;
    box-shadow: inset 0 0 0 1px rgba(76, 141, 255, .35);
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 240px auto;
    gap: 10px;
    align-items: stretch;
}

@media (max-width: 860px) {
    .field-row { grid-template-columns: 1fr; }
}

input[type="text"], textarea {
    width: 100%;
    min-width: 0;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14.5px;
    font-family: inherit;
    outline: none;
    transition: border-color .16s, box-shadow .16s;
}

input[type="text"]:focus, textarea:focus {
    border-color: rgba(76, 141, 255, .55);
    box-shadow: 0 0 0 3px rgba(76, 141, 255, .12);
}

input::placeholder, textarea::placeholder { color: #5c6b7a; }

textarea {
    min-height: 180px;
    font-family: var(--mono);
    font-size: 12.5px;
    line-height: 1.6;
    resize: vertical;
    margin-top: 10px;
}

.btn {
    border: 0;
    border-radius: 10px;
    padding: 12px 22px;
    font-size: 14.5px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    background: linear-gradient(180deg, #5a95ff, #3b7bec);
    color: #fff;
    box-shadow: 0 8px 22px rgba(59, 123, 236, .28);
    transition: transform .12s, box-shadow .16s, opacity .16s;
    white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(59, 123, 236, .34); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.btn.ghost {
    background: var(--panel-2);
    border: 1px solid var(--border);
    color: var(--text-2);
    box-shadow: none;
    font-weight: 500;
    padding: 8px 14px;
    font-size: 13px;
}

.btn.ghost:hover { border-color: rgba(76, 141, 255, .45); color: var(--text); }

.hint {
    color: var(--muted);
    font-size: 12.5px;
    margin: 12px 0 0;
}

.hint code {
    font-family: var(--mono);
    background: rgba(76, 141, 255, .1);
    color: #a9c7ff;
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 11.5px;
}

/* ---------------- 加载 ---------------- */
.loading {
    padding: 40px 20px;
    text-align: center;
}

.loading .spinner {
    width: 42px;
    height: 42px;
    border: 3px solid rgba(76, 141, 255, .18);
    border-top-color: var(--accent);
    border-radius: 50%;
    margin: 0 auto 18px;
    animation: spin .9s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading .step { color: var(--text-2); font-size: 14px; }
.loading .sub { color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.loading .progress { max-width: 420px; margin: 18px auto 0; text-align: left; }

/* ---------------- 错误 ---------------- */
.error-box {
    border: 1px solid rgba(239, 83, 80, .4);
    background: var(--bad-soft);
    color: #ffb4b2;
    padding: 16px 18px;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 24px;
}

/* ---------------- 概览 ---------------- */
.overview {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 26px;
    padding: 26px;
    margin-bottom: 24px;
    align-items: center;
}

@media (max-width: 820px) {
    .overview { grid-template-columns: 1fr; }
}

.score-ring {
    position: relative;
    width: 190px;
    height: 190px;
    margin: 0 auto;
}

.score-ring svg { transform: rotate(-90deg); }

.score-ring .inner {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    text-align: center;
}

.score-ring .num {
    font-size: 52px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -2px;
}

.score-ring .of {
    font-size: 12px;
    color: var(--muted);
    margin-top: 8px;
    letter-spacing: .5px;
}

.score-ring .grade {
    margin-top: 6px;
    font-size: 13px;
    font-weight: 600;
}

.overview-main h2 {
    margin: 0 0 6px;
    font-size: 19px;
    letter-spacing: -.2px;
    word-break: break-all;
}

.overview-main .final-url {
    color: var(--muted);
    font-size: 12.5px;
    font-family: var(--mono);
    word-break: break-all;
    margin-bottom: 16px;
}

.kpis {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.kpi {
    border: 1px solid var(--border);
    background: var(--panel-2);
    border-radius: 10px;
    padding: 9px 14px;
    min-width: 92px;
}

.kpi .k {
    font-size: 11.5px;
    color: var(--muted);
    letter-spacing: .3px;
}

.kpi .v {
    font-size: 18px;
    font-weight: 650;
    margin-top: 1px;
}

.kpi.p0 { border-color: rgba(239, 83, 80, .35); }
.kpi.p0 .v { color: #ff7b78; }
.kpi.p1 { border-color: rgba(245, 166, 35, .3); }
.kpi.p1 .v { color: #ffc266; }
.kpi.p2 { border-color: rgba(76, 141, 255, .3); }
.kpi.p2 .v { color: #8fb6ff; }

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ---------------- 通用区块 ---------------- */
.section {
    margin-bottom: 26px;
}

.section-head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 14px;
}

.section-head h3 {
    margin: 0;
    font-size: 16.5px;
    font-weight: 650;
    letter-spacing: -.1px;
}

.section-head .sub {
    color: var(--muted);
    font-size: 12.5px;
}

.section-head .spacer { flex: 1; }

/* ---------------- 维度 ---------------- */
.dims {
    display: grid;
    gap: 8px;
}

.dim {
    border: 1px solid var(--border);
    background: var(--panel-2);
    border-radius: 11px;
    overflow: hidden;
    transition: border-color .16s;
}

.dim:hover { border-color: #26374a; }

.dim-head {
    display: grid;
    grid-template-columns: 200px 1fr 64px 20px;
    gap: 14px;
    align-items: center;
    padding: 13px 16px;
    cursor: pointer;
    user-select: none;
}

@media (max-width: 720px) {
    .dim-head { grid-template-columns: 1fr 60px 18px; }
    .dim-head .bar { display: none; }
}

.dim-head .name {
    font-size: 14px;
    font-weight: 550;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dim-head .name .weight {
    font-size: 11px;
    color: var(--muted);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 0 5px;
    font-weight: 400;
}

.bar {
    height: 7px;
    background: #16212c;
    border-radius: 999px;
    overflow: hidden;
}

.bar > i {
    display: block;
    height: 100%;
    border-radius: 999px;
    transition: width .5s cubic-bezier(.2, .8, .2, 1);
}

.dim-head .val {
    text-align: right;
    font-size: 15px;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
}

.dim-head .chev {
    color: var(--muted);
    font-size: 11px;
    transition: transform .18s;
}

.dim.open .dim-head .chev { transform: rotate(90deg); }

.dim-body {
    display: none;
    border-top: 1px solid var(--border-soft);
    padding: 6px 16px 14px;
    background: rgba(8, 12, 18, .45);
}

.dim.open .dim-body { display: block; }

.check {
    display: grid;
    grid-template-columns: 22px 1fr auto;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px dashed rgba(31, 45, 61, .55);
    font-size: 13px;
    align-items: start;
}

.check:last-child { border-bottom: 0; }

.check .mark {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 10px;
    font-weight: 700;
    margin-top: 3px;
}

.mark.pass { background: var(--good-soft); color: var(--good); }
.mark.warn { background: var(--warn-soft); color: var(--warn); }
.mark.fail { background: var(--bad-soft); color: var(--bad); }
.mark.na { background: rgba(125, 139, 154, .12); color: var(--muted); }

.check .label { color: var(--text-2); }
.check .detail { color: var(--muted); font-size: 12px; margin-top: 1px; }
.check .rv {
    color: var(--text);
    font-family: var(--mono);
    font-size: 12px;
    text-align: right;
    max-width: 260px;
    word-break: break-all;
}

/* ---------------- 问题卡 ---------------- */
.issue-group { margin-bottom: 18px; }

.issue-group-head {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .3px;
}

.badge {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    letter-spacing: .4px;
}

.badge.P0 { background: var(--bad-soft); color: #ff8b88; border: 1px solid rgba(239, 83, 80, .35); }
.badge.P1 { background: var(--warn-soft); color: #ffc266; border: 1px solid rgba(245, 166, 35, .32); }
.badge.P2 { background: var(--accent-soft); color: #8fb6ff; border: 1px solid rgba(76, 141, 255, .3); }

.issue {
    border: 1px solid var(--border);
    border-left: 3px solid var(--border);
    background: var(--panel-2);
    border-radius: 10px;
    margin-bottom: 8px;
    overflow: hidden;
}

.issue.p0 { border-left-color: var(--bad); }
.issue.p1 { border-left-color: var(--warn); }
.issue.p2 { border-left-color: var(--accent); }

.issue > summary {
    list-style: none;
    cursor: pointer;
    padding: 13px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.issue > summary::-webkit-details-marker { display: none; }

.issue .title {
    font-size: 14px;
    font-weight: 550;
    flex: 1;
    min-width: 0;
}

.issue .dim-tag {
    font-size: 11.5px;
    color: var(--muted);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 1px 7px;
    white-space: nowrap;
}

.issue .ev {
    font-family: var(--mono);
    font-size: 11.5px;
    color: #9fb0c2;
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--border-soft);
    padding: 2px 8px;
    border-radius: 5px;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.issue .issue-body {
    padding: 0 16px 16px;
    border-top: 1px solid var(--border-soft);
    margin-top: 2px;
    padding-top: 14px;
}

.row {
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 13.5px;
}

.row:last-child { margin-bottom: 0; }

.row .k {
    color: var(--muted);
    font-size: 12px;
    padding-top: 2px;
    letter-spacing: .3px;
}

.row .v { color: var(--text-2); line-height: 1.7; }

.row .v strong { color: var(--text); font-weight: 600; }

.row .v code, .row .v .kw {
    font-family: var(--mono);
    font-size: 12.5px;
    background: rgba(76, 141, 255, .1);
    color: #a9c7ff;
    padding: 1px 5px;
    border-radius: 4px;
}

pre.code {
    margin: 6px 0 0;
    background: #070b10;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 11px 13px;
    overflow-x: auto;
    font-family: var(--mono);
    font-size: 12px;
    line-height: 1.65;
    color: #b8e0b8;
    white-space: pre-wrap;
    word-break: break-all;
}

/* ---------------- 统计表 ---------------- */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 11px;
    overflow: hidden;
    background: var(--panel-2);
}

.stat {
    display: flex;
    gap: 12px;
    padding: 11px 16px;
    border-bottom: 1px solid var(--border-soft);
    font-size: 13px;
}

.stat .k {
    color: var(--muted);
    min-width: 96px;
    flex-shrink: 0;
}

.stat .v {
    color: var(--text-2);
    word-break: break-all;
}

/* ---------------- 优势 ---------------- */
.strengths {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 8px;
}

.strength {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    border: 1px solid rgba(46, 204, 113, .22);
    background: rgba(46, 204, 113, .05);
    border-radius: 9px;
    padding: 10px 13px;
    font-size: 13px;
    color: var(--text-2);
}

.strength .tick {
    color: var(--good);
    font-size: 12px;
    margin-top: 2px;
}

.strength .v {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 11.5px;
    margin-top: 2px;
}

/* ---------------- 页脚 ---------------- */
.foot {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-soft);
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
}

.foot b { color: var(--text-2); font-weight: 550; }

.toast {
    position: fixed;
    left: 50%;
    bottom: 32px;
    transform: translateX(-50%) translateY(20px);
    background: #182534;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 10px 18px;
    border-radius: 9px;
    font-size: 13px;
    opacity: 0;
    pointer-events: none;
    transition: all .22s;
    z-index: 60;
    box-shadow: var(--shadow);
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

[hidden] { display: none !important; }

/* ---------------- 抓取证据 ---------------- */
.evidence {
    border: 1px solid var(--border);
    background: var(--panel-2);
    border-radius: 11px;
    overflow: hidden;
}

.evidence > summary {
    list-style: none;
    cursor: pointer;
    padding: 13px 16px;
    font-size: 13.5px;
    color: var(--text-2);
    display: flex;
    align-items: center;
    gap: 10px;
}

.evidence > summary::-webkit-details-marker { display: none; }
.evidence > summary::after {
    content: '▾';
    margin-left: auto;
    color: var(--muted);
    font-size: 11px;
    transition: transform .18s;
}
.evidence[open] > summary::after { transform: rotate(180deg); }

.evidence-body {
    border-top: 1px solid var(--border-soft);
    padding: 16px;
    background: rgba(8, 12, 18, .4);
}

.ev-tip {
    margin: 0 0 14px;
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.75;
    border-left: 2px solid rgba(76, 141, 255, .45);
    padding-left: 12px;
}

.ev-tip code {
    font-family: var(--mono);
    background: rgba(76, 141, 255, .1);
    color: #a9c7ff;
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 11.5px;
}

.ev-sub {
    font-size: 12px;
    color: var(--muted);
    margin: 16px 0 8px;
    letter-spacing: .3px;
}

.evidence-body .stats { margin-bottom: 2px; }

/* ---------------- 全站检测 ---------------- */
#site-row { grid-template-columns: 1fr 190px 138px auto; }

select {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 10px;
    padding: 12px 10px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    cursor: pointer;
    color-scheme: dark;
    transition: border-color .16s;
}

select:focus { border-color: rgba(76, 141, 255, .55); }

/* 进度条 */
.progress { margin-top: 16px; }

.progress .plabel {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 12.5px;
    color: var(--muted);
    margin-bottom: 7px;
    font-variant-numeric: tabular-nums;
}

.progress .track {
    height: 7px;
    background: #16212c;
    border-radius: 999px;
    overflow: hidden;
}

.progress .fill {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #4c8dff, #2ecc71);
    transition: width .35s cubic-bezier(.2, .8, .2, 1);
}

/* 维度均分行 */
.sdim {
    display: grid;
    grid-template-columns: 210px 1fr 58px 84px;
    gap: 14px;
    align-items: center;
    padding: 11px 16px;
    border-bottom: 1px solid var(--border-soft);
    font-size: 13.5px;
}

.sdim:last-child { border-bottom: 0; }
.sdim .name { display: flex; align-items: center; gap: 8px; }
.sdim .name .weight {
    font-size: 11px;
    color: var(--muted);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 0 5px;
    font-weight: 400;
}
.sdim .val { text-align: right; font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums; }
.sdim .pass { text-align: right; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sdim .pass b { color: var(--text-2); font-weight: 600; }

/* 共性问题上的影响面标签 */
.issue .ratio {
    font-family: var(--mono);
    font-size: 11.5px;
    color: #a9c7ff;
    background: rgba(76, 141, 255, .1);
    border: 1px solid rgba(76, 141, 255, .25);
    padding: 1px 7px;
    border-radius: 6px;
    white-space: nowrap;
}

.issue .ratio.hot {
    color: #ffc266;
    background: var(--warn-soft);
    border-color: rgba(245, 166, 35, .3);
}

/* 页面得分表 */
.ptable-wrap {
    border: 1px solid var(--border);
    border-radius: 11px;
    overflow-x: auto;
    background: var(--panel-2);
}

.ptable {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.ptable th {
    text-align: left;
    color: var(--muted);
    font-weight: 500;
    font-size: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
    background: rgba(8, 12, 18, .5);
}

.ptable td {
    padding: 9px 12px;
    border-bottom: 1px solid var(--border-soft);
    vertical-align: middle;
}

.ptable tr:last-child td { border-bottom: 0; }
.ptable tbody tr:hover { background: rgba(76, 141, 255, .05); }

.ptable .u {
    max-width: 520px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-2);
}

.ptable .u a { color: inherit; text-decoration: none; border-bottom: 1px dotted rgba(125, 139, 154, .5); }
.ptable .u a:hover { color: #a9c7ff; border-bottom-color: rgba(76, 141, 255, .6); }

.ptable .sc { font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ptable .num { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--text-2); }
.ptable .type { font-size: 11.5px; color: var(--muted); white-space: nowrap; }

.ptable .mini {
    display: inline-block;
    width: 64px;
    height: 6px;
    background: #16212c;
    border-radius: 4px;
    overflow: hidden;
    vertical-align: middle;
    margin-right: 9px;
}
.ptable .mini i { display: block; height: 100%; border-radius: 4px; }

.legend {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--muted);
    margin-top: 10px;
}

/* ---------------- 移动端 ---------------- */
@media (max-width: 720px) {
    .wrap { padding: 0 16px 56px; }
    .topbar-inner { padding: 12px 16px; gap: 10px; }
    .topbar .meta { display: none; }

    .hero { padding: 32px 0 22px; }
    .hero h1 { font-size: 25px; letter-spacing: -.3px; }
    .hero p { font-size: 14px; }
    .pill { font-size: 11.5px; padding: 3px 9px; }

    .input-panel { padding: 15px; }
    .btn { padding: 12px 18px; }

    .overview { padding: 20px 18px; gap: 16px; }
    .score-ring { width: 150px; height: 150px; }
    .score-ring svg { width: 150px; height: 150px; }
    .score-ring .num { font-size: 42px; }
    .overview-main h2 { font-size: 16.5px; }
    .kpis { gap: 7px; }
    .kpi { min-width: calc(50% - 4px); flex: 1 1 calc(50% - 4px); padding: 8px 11px; }
    .kpi .v { font-size: 16px; }
    .actions { gap: 6px; }
    .actions .btn { flex: 1 1 auto; font-size: 12.5px; padding: 9px 10px; }

    .dim-head { padding: 12px 13px; gap: 10px; grid-template-columns: 1fr 52px 16px; }
    .dim-head .name { font-size: 13.5px; flex-wrap: wrap; gap: 6px; }
    .dim-body { padding: 4px 13px 12px; }
    .check { grid-template-columns: 18px 1fr; gap: 8px; }
    .check .rv { grid-column: 2; text-align: left; max-width: 100%; margin-top: 2px; }

    .issue > summary { padding: 12px 13px; gap: 8px; flex-wrap: wrap; }
    .issue .title { flex: 1 1 55%; font-size: 13.5px; }
    .issue .dim-tag { order: 3; font-size: 11px; }
    .issue .ev { order: 4; flex: 1 1 100%; max-width: 100%; font-size: 11px; }
    .issue-body { padding: 12px 13px 14px !important; }

    .row { grid-template-columns: 1fr; gap: 2px; margin-bottom: 12px; }
    .row .k { padding-top: 0; font-size: 11.5px; }

    .stats { grid-template-columns: 1fr; }
    .strengths { grid-template-columns: 1fr; }
    .stat { padding: 10px 13px; }
    .stat .k { min-width: 82px; }

    .section-head { flex-wrap: wrap; gap: 4px 8px; }
    .section-head h3 { font-size: 15.5px; }

    #site-row { grid-template-columns: 1fr; }
    select { padding: 12px 14px; }

    .sdim { grid-template-columns: 1fr 52px; gap: 8px; padding: 10px 13px; }
    .sdim .bar { display: none; }
    .sdim .pass { grid-column: 1 / -1; text-align: left; }

    .ptable .u { max-width: 200px; }
    .ptable th, .ptable td { padding: 8px 9px; }
    .ptable .mini { display: none; }
}

