/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, 'Microsoft YaHei', 'PingFang SC', sans-serif;
    background: #0f172a;
    color: #e2e8f0;
    min-height: 100vh;
    font-size: 14px;
    line-height: 1.5;
}
a { color: #38bdf8; text-decoration: none; transition: color 0.15s; }
a:hover { color: #7dd3fc; }

/* ===== Layout ===== */
.layout { display: flex; min-height: 100vh; }
.sidebar {
    width: 220px;
    background: #1e293b;
    border-right: 1px solid #334155;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    z-index: 10;
}
.logo {
    padding: 24px 20px 20px;
    font-size: 17px;
    font-weight: 700;
    color: #38bdf8;
    border-bottom: 1px solid #334155;
    letter-spacing: 0.3px;
}
.sidebar nav { flex: 1; padding: 8px 0; }
.sidebar nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    color: #94a3b8;
    font-size: 14px;
    transition: all 0.15s;
    border-left: 3px solid transparent;
}
.sidebar nav a:hover { color: #e2e8f0; background: rgba(56,189,248,0.04); }
.sidebar nav a.active {
    color: #38bdf8;
    background: rgba(56,189,248,0.08);
    border-left-color: #38bdf8;
    font-weight: 600;
}
.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid #334155;
    color: #475569;
    font-size: 12px;
    font-family: monospace;
}

.main-content { flex: 1; margin-left: 220px; min-height: 100vh; }

.topbar {
    padding: 18px 32px;
    border-bottom: 1px solid #1e293b;
    background: #0f172a;
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.topbar h2 { font-size: 18px; font-weight: 600; }
.topbar-actions { display: flex; gap: 8px; }

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: #3b82f6;
    color: #fff;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.15s;
    border: none;
    cursor: pointer;
}
.btn-primary:hover { background: #2563eb; color: #fff; }
.btn-full {
    width: 100%; padding: 16px; margin-top: 16px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff; border: none; border-radius: 8px;
    font-size: 16px; font-weight: 700; cursor: pointer;
    transition: opacity 0.15s;
}
.btn-full:hover { opacity: 0.9; }

.content { padding: 28px 32px; }

/* ===== Hero ===== */
.hero-banner {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 28px 32px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}
.hero-text h1 { font-size: 22px; font-weight: 700; color: #f1f5f9; margin-bottom: 6px; }
.hero-text p { font-size: 13px; color: #64748b; }
.hero-compare {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 12px 20px;
    flex-shrink: 0;
}
.comp-item { text-align: center; }
.comp-name { font-size: 13px; font-weight: 600; color: #94a3b8; display: block; }
.comp-price { font-size: 18px; font-weight: 700; color: #e2e8f0; display: block; margin-top: 2px; }
.comp-item.ours .comp-name { color: #38bdf8; }
.comp-item.ours .comp-price { color: #22c55e; }
.comp-vs { font-size: 16px; color: #475569; font-weight: 600; }

/* ===== Cards ===== */
.card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 10px;
    padding: 20px;
}
.card h3, h3 { font-size: 18px; font-weight: 600; color: #f1f5f9; margin-bottom: 12px; }
.text-link { font-size: 13px; color: #3b82f6; }
.text-muted { color: #64748b; font-size: 13px; }

/* ===== Stats ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}
.stat-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 10px;
    padding: 18px;
    text-align: center;
    transition: border-color 0.2s, transform 0.15s;
}
.stat-card:hover { border-color: #38bdf8; transform: translateY(-1px); }
.stat-value { font-size: 28px; font-weight: 700; color: #f1f5f9; line-height: 1.2; }
.stat-label { font-size: 12px; color: #64748b; margin-top: 4px; }

/* ===== Charts ===== */
.charts-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 14px;
    margin-bottom: 24px;
}
.chart-container { display: flex; align-items: center; justify-content: center; gap: 20px; min-height: 150px; padding: 8px 0; }
.chart-empty { color: #475569; font-size: 13px; }
.chart-legend { display: flex; flex-direction: column; gap: 6px; }
.legend-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #94a3b8; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.legend-value { margin-left: auto; font-weight: 600; color: #e2e8f0; }

/* ===== Tables ===== */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th {
    padding: 12px 14px; text-align: left;
    font-size: 12px; font-weight: 600;
    color: #64748b; background: #0f172a;
    border-bottom: 1px solid #334155;
    text-transform: uppercase; letter-spacing: 0.3px;
}
tbody td { padding: 12px 14px; font-size: 13px; border-bottom: 1px solid #1e293b; }
tbody tr:hover { background: rgba(56,189,248,0.03); }
.cell-url { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell-time { font-size: 12px; color: #64748b; white-space: nowrap; }
.cell-score { font-weight: 600; font-size: 18px; }
.empty { text-align: center; padding: 36px !important; color: #475569; font-size: 13px; }

/* ===== Status Badges ===== */
.status-badge { display: inline-block; padding: 2px 10px; border-radius: 10px; font-size: 16px; font-weight: 600; }
.status-done { background: rgba(245,158,11,0.12); color: #22c55e; }
.status-running { background: rgba(56,189,248,0.12); color: #38bdf8; animation: pulse 1.5s infinite; }
.status-error { background: rgba(239,68,68,0.12); color: #ef4444; }
.status-pending { background: rgba(148,163,184,0.12); color: #64748b; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }

.btn-sm { display: inline-block; padding: 5px 12px; background: #334155; color: #e2e8f0; border-radius: 5px; font-size: 12px; }
.btn-sm:hover { background: #475569; color: #fff; }

/* ===== Scan Form ===== */
.section-divider { border: none; border-top: 1px solid #334155; margin: 18px 0; }

.scan-form-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 24px;
}
.input-row { margin-bottom: 4px; }
.input-row input {
    width: 100%; padding: 12px 16px;
    border: 2px solid #334155; border-radius: 8px;
    background: #0f172a; color: #e2e8f0;
    font-size: 18px; outline: none; transition: border 0.2s;
}
.input-row input:focus { border-color: #38bdf8; }
.input-row input:invalid { border-color: #ef4444; }

.locked-fix {
    margin-top: 8px; padding: 10px 14px;
    border: 1px dashed #475569; border-radius: 6px;
    text-align: center; cursor: pointer;
    color: #64748b; font-size: 12px; transition: all 0.12s;
}
.locked-fix:hover { border-color: #38bdf8; color: #38bdf8; }

.pay-banner {
    border: 2px solid #f59e0b; border-radius: 12px;
    padding: 28px; margin-top: 20px; text-align: center;
    background: linear-gradient(135deg, #1e293b, #0f172a);
}
.pay-title { font-size: 18px; font-weight: 700; color: #f1f5f9; margin-bottom: 6px; }
.pay-desc { font-size: 13px; color: #64748b; margin-bottom: 20px; }
.pay-qr { display: flex; justify-content: center; }
.qr-placeholder {
    background: #fff; border-radius: 12px; padding: 24px 32px;
    text-align: center; max-width: 260px;
}

.required-label {
    display: block; font-size: 12px; color: #f97316; font-weight: 600;
    margin-bottom: 6px;
}
.required-label::before { content: '* '; color: #ef4444; }

.radio-cards { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }
.radio-card {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px;
    border: 2px solid #334155; border-radius: 8px;
    cursor: pointer; transition: all 0.12s; background: #0f172a;
}
.radio-card:hover { border-color: #475569; }
.radio-card.active { border-color: #38bdf8; background: rgba(56,189,248,0.06); }
.radio-card input { display: none; }
.rc-icon { font-size: 20px; }
.rc-name { font-size: 14px; font-weight: 600; color: #e2e8f0; }
.rc-desc { font-size: 12px; color: #64748b; }
.radio-card.active .rc-name { color: #38bdf8; }
.price-tag {
    display: inline-block;
    background: rgba(245,158,11,0.12);
    color: #22c55e;
    font-size: 16px;
    font-weight: 700;
    padding: 1px 8px;
    border-radius: 4px;
    margin-left: 6px;
}

/* ===== Login Section ===== */
.login-section { margin-top: 12px; border: 1px solid #334155; border-radius: 8px; overflow: hidden; }
.login-header {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 14px; cursor: pointer; font-size: 13px;
}
.login-header:hover { background: rgba(56,189,248,0.04); }
.login-title { font-weight: 600; color: #e2e8f0; }
.login-hint { font-size: 16px; color: #475569; }
.login-panel { padding: 0 14px 12px; }
.login-panel textarea {
    width: 100%; padding: 10px 12px;
    border: 1px solid #334155; border-radius: 6px;
    background: #0f172a; color: #e2e8f0;
    font-size: 13px; font-family: 'Consolas', monospace;
    resize: vertical; outline: none;
}
.login-panel textarea:focus { border-color: #38bdf8; }
.cookie-tip { font-size: 16px; color: #475569; margin-top: 6px; }

/* ===== Capabilities ===== */
.capabilities { margin-bottom: 20px; }
.caps-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 8px; }
.cap-check {
    position: relative;
    display: flex; align-items: center; gap: 4px;
    padding: 4px 6px; min-height: 30px;
    border: 1px solid #334155; border-radius: 6px;
    font-size: 12px; color: #cbd5e1;
    cursor: pointer; transition: all 0.12s;
    background: #0f172a; user-select: none; white-space: nowrap;
}
.cap-check:hover { border-color: #38bdf8; }
.cap-check.checked { background: rgba(245,158,11,0.06); border-color: #22c55e; }
.cap-check input { display: none; }
.cap-check::before { content: '⬜'; font-size: 16px; opacity: 0.5; }
.cap-check.checked::before { content: '✅'; opacity: 1; }

.cap-check[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: #e2e8f0;
    border: 1px solid #334155;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    pointer-events: none;
}

/* ===== Progress ===== */
.progress-card { border: 1px solid #334155; border-radius: 10px; padding: 20px; margin-bottom: 24px; background: #1e293b; }
.progress-card h3 { margin-bottom: 12px; }
.progress-bar { height: 5px; background: #334155; border-radius: 3px; margin-bottom: 10px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, #38bdf8, #3b82f6); border-radius: 3px; transition: width 0.5s; background-size: 200% 100%; animation: progressFlow 1.2s linear infinite; }
@keyframes progressFlow { 0% { background-position: 0% 0; } 100% { background-position: 200% 0; } }
.progress-step { font-size: 12px; color: #64748b; margin-bottom: 10px; }
.progress-log {
    background: #0f172a; border: 1px solid #334155; border-radius: 6px;
    padding: 16px; max-height: 160px; overflow-y: auto;
    font-family: 'Consolas', 'Courier New', monospace; font-size: 16px; line-height: 1.7;
}
.progress-log div { color: #64748b; }
.progress-log div:first-child { color: #38bdf8; }
.hidden { display: none !important; }

/* ===== Filter ===== */
.filter-bar { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.filter-btn {
    padding: 5px 12px; border: 1px solid #334155; border-radius: 5px;
    background: transparent; color: #94a3b8; font-size: 12px; cursor: pointer;
}
.filter-btn:hover { border-color: #475569; color: #e2e8f0; }
.filter-btn.active { background: rgba(56,189,248,0.1); border-color: #38bdf8; color: #38bdf8; }

/* ===== Scan Result ===== */
.result-header-card { border: 1px solid #334155; border-radius: 10px; padding: 20px; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px; background: #1e293b; }
.result-score { text-align: center; }
.big-score { font-size: 42px; font-weight: 800; line-height: 1; }
.score-total { font-size: 14px; color: #475569; }
.result-meta p { font-size: 13px; margin-bottom: 3px; color: #94a3b8; }
.result-meta strong { color: #e2e8f0; }

/* ===== Vulnerability ===== */
.vuln-list { margin-bottom: 20px; }
.vuln-item {
    border: 1px solid #334155; border-radius: 8px;
    padding: 14px 16px; margin-bottom: 8px;
    border-left: 4px solid #475569; background: #1e293b;
}
.vuln-item.critical { border-left-color: #ef4444; }
.vuln-item.high { border-left-color: #f97316; }
.vuln-item.medium { border-left-color: #22c55e; }
.vuln-item.low { border-left-color: #64748b; }
.vuln-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.severity-tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 10px; font-weight: 700; }
.severity-tag.critical { background: rgba(239,68,68,0.15); color: #ef4444; }
.severity-tag.high { background: rgba(249,115,22,0.15); color: #f97316; }
.severity-tag.medium { background: rgba(245,158,11,0.15); color: #22c55e; }
.severity-tag.low { background: rgba(100,116,139,0.15); color: #94a3b8; }
.vuln-url { font-size: 12px; color: #475569; word-break: break-all; margin-bottom: 4px; font-family: monospace; }
.vuln-evidence { font-size: 12px; color: #94a3b8; line-height: 1.5; }
.vuln-detail { font-size: 12px; color: #64748b; line-height: 1.6; margin-top: 6px; }
details { margin-top: 6px; }
details summary { color: #3b82f6; cursor: pointer; font-size: 12px; }

/* ===== Quick Result ===== */
.quick-result-card { border: 1px solid #334155; border-radius: 10px; padding: 16px; margin-bottom: 16px; line-height: 1.9; background: #1e293b; }
.quick-result-card p { font-size: 13px; }
.warn { background: rgba(245,158,11,0.06); border: 1px solid rgba(245,158,11,0.2); border-radius: 8px; padding: 16px; margin: 10px 0; }
.warn ul { margin-top: 6px; padding-left: 18px; }
.warn li { margin-bottom: 3px; font-size: 12px; }
.ok { background: rgba(245,158,11,0.06); border: 1px solid rgba(245,158,11,0.2); border-radius: 8px; padding: 16px; margin: 10px 0; }

/* ===== Settings ===== */
.settings-section { margin-top: 12px; border: 1px solid #334155; border-radius: 8px; overflow: hidden; }
.settings-header {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 14px; cursor: pointer; font-size: 13px;
}
.settings-header:hover { background: rgba(56,189,248,0.04); }
.settings-title { font-weight: 600; color: #e2e8f0; }
.settings-hint { font-size: 16px; color: #475569; }
.settings-panel { padding: 0 14px 12px; }
.settings-panel .setting-row { padding: 8px 0; border-bottom: 1px solid #1e293b; }
.settings-panel .setting-row:last-child { border-bottom: none; }
.settings-panel .setting-row label { min-width: 80px; font-size: 12px; color: #94a3b8; }
.settings-panel .setting-row select { width: 100%; }

.setting-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #1e293b; }
.setting-row:last-child { border-bottom: none; }
.setting-row label { min-width: 210px; font-size: 13px; color: #94a3b8; }
.input {
    flex: 1; padding: 8px 12px; border: 1px solid #334155; border-radius: 6px;
    background: #0f172a; color: #e2e8f0; font-size: 13px; outline: none;
}
.input:focus { border-color: #38bdf8; }
.input:disabled { opacity: 0.4; cursor: not-allowed; }

/* ===== Misc ===== */
.empty-state { text-align: center; padding: 40px; color: #475569; font-size: 14px; }

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #0f172a; }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #475569; }

@media (max-width: 800px) {
    .sidebar { display: none; }
    .main-content { margin-left: 0; }
    .charts-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-banner { flex-direction: column; text-align: center; }
}

/* ===== 悬空收款码 ===== */
.pay-float-qr {
    position: fixed;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: #1e293b;
    border: 2px solid #f59e0b;
    border-right: none;
    border-bottom: none;
    border-radius: 12px 0 0 0;
    padding: 14px;
    text-align: center;
    width: auto;
    min-width: 190px;
    max-width: 320px;
    box-shadow: -4px -4px 32px rgba(0,0,0,0.5);
}
.pay-float-qr .title {
    font-size: 12px;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 8px;
}
.pay-float-qr .qr-wrap {
    background: #fff;
    border-radius: 8px;
    padding: 6px;
    margin-bottom: 6px;
}
.pay-float-qr .qr-wrap img {
    width: 100%;
    height: auto;
    max-height: 280px;
    display: block;
    margin: 0 auto;
}
.pay-float-qr .price {
    font-size: 18px;
    font-weight: 800;
    color: #22c55e;
}
.pay-float-qr .label {
    font-size: 10px;
    color: #64748b;
    margin: 2px 0 8px;
}
.pay-float-qr .pay-switch {
    display: flex;
    gap: 4px;
    margin: 6px 0 2px;
}
.pay-float-qr .pay-tab {
    flex: 1;
    padding: 5px 4px;
    background: #334155;
    color: #94a3b8;
    border: 1px solid #475569;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
}
.pay-float-qr .pay-tab.active {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
}
.pay-float-qr .pay-tab:hover { color: #fff; }
.pay-float-qr .pay-btn {
    width: 100%;
    padding: 16px;
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.pay-float-qr .pay-btn:hover { background: #2563eb; }
.pay-float-qr .pay-btn:disabled { opacity: 0.5; }
.pay-float-qr .paid-badge {
    background: rgba(34,197,94,0.15);
    color: #22c55e;
    padding: 6px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}
.pay-float-qr .loading {
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 16px;
}
@media (max-width: 600px) {
    .pay-float-qr { 
        width: 300px;
        padding: 16px;
        border-radius: 10px 0 0 0;
    }
    .pay-float-qr .qr-wrap img { width: 100%; height: auto; min-width: 250px; max-height: 350px; }
    .pay-float-qr .price { font-size: 18px; }
    .pay-float-qr .title { font-size: 16px; }
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-icon {
    width: 32px;
    height: 38px;
    filter: drop-shadow(0 0 4px rgba(0,212,255,0.5));
}

.logo {
    display: flex;
    align-items: center;
}
.logo-img {
    height: 38px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(0,212,255,0.2));
    transition: filter 0.3s;
}
.logo-img:hover {
    filter: drop-shadow(0 0 12px rgba(0,212,255,0.4));
}
/* 移动端适配 - 确保内容可见 */
@media (max-width: 800px) {
    body { background: #0f172a; }
    .main-content { 
        margin-left: 0 !important; 
        padding: 16px;
        min-height: 100vh;
    }
    .scan-form-card {
        background: #1e293b;
        border: 1px solid #334155;
        border-radius: 12px;
        padding: 20px;
        margin-top: 16px;
    }
    .radio-cards {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .radio-card {
        background: #1e293b;
        border: 1px solid #334155;
        border-radius: 10px;
        padding: 14px 16px;
        display: flex;
        align-items: center;
        gap: 12px;
    }
    .radio-card.active {
        border-color: #38bdf8;
        background: rgba(56,189,248,0.08);
    }
    .topbar {
        padding: 12px 0;
        border-bottom: 1px solid #1e293b;
        margin-bottom: 8px;
    }
    .topbar h2 {
        font-size: 18px;
        color: #f1f5f9;
    }
    .caps-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    .cap-check {
        background: #1e293b;
        border: 1px solid #334155;
        border-radius: 8px;
        padding: 10px 12px;
        font-size: 13px;
        color: #cbd5e1;
        cursor: pointer;
        transition: all 0.15s;
    }
    .cap-check.checked {
        border-color: #38bdf8;
        background: rgba(56,189,248,0.08);
        color: #e2e8f0;
    }
    .input-row input {
        background: #1e293b;
        border: 1px solid #334155;
        border-radius: 8px;
        padding: 12px 14px;
        color: #e2e8f0;
        font-size: 18px;
        width: 100%;
    }
    .btn-full {
        width: 100%;
        padding: 16px;
        background: linear-gradient(135deg, #3b82f6, #2563eb);
        border: none;
        border-radius: 10px;
        color: #fff;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        margin-top: 12px;
    }
    .rc-name {
        font-size: 14px;
        font-weight: 600;
        color: #f1f5f9;
    }
    .rc-desc {
        font-size: 12px;
        color: #64748b;
    }
    .rc-icon {
        font-size: 22px;
    }
}
/* 紧急移动端修复 */
html, body { overflow-x: hidden; width: 100%; }
@media (max-width: 800px) {
    .layout { flex-direction: column; }
    .sidebar { display: none; }
    .main-content { margin-left: 0; width: 100%; padding: 12px; box-sizing: border-box; }
    .content { padding: 12px; }
    body { background: #0f172a; }
}

/* ZAP 风格风险分级汇总条 */
.risk-summary { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0 18px; }
.risk-pill { flex: 1; min-width: 90px; text-align: center; padding: 10px 6px; border: 1px solid; border-radius: 10px; background: rgba(15,23,42,0.6); }
.risk-num { display: block; font-size: 22px; font-weight: 700; line-height: 1.2; }
.risk-label { display: block; font-size: 12px; color: #94a3b8; margin-top: 2px; }

/* nuclei 检出徽章 */
.src-badge { margin-left: auto; font-size: 10px; padding: 1px 8px; border-radius: 10px; background: rgba(56,189,248,0.15); color: #38bdf8; border: 1px solid rgba(56,189,248,0.3); }

/* 修复建议样式 */
.vuln-fix { font-size: 12px; color: #86efac; line-height: 1.7; margin-top: 8px; background: rgba(34,197,94,0.08); border-left: 3px solid #22c55e; padding: 8px 12px; border-radius: 0 8px 8px 0; }
.vuln-detail { font-size: 12px; color: #64748b; line-height: 1.6; margin-top: 6px; }
.vuln-item details summary { cursor: pointer; font-size: 12px; color: #22c55e; margin-top: 6px; }
.vuln-item details { margin-top: 4px; }

/* 雷达图容器 */
#assetRadar { box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
@media (max-width: 800px) { #assetRadar { height: 220px !important; } }
