/* 一致性与漏洞检查：两页共用。只依赖 base.css 变量。 */

.audit-bar{display:flex;align-items:center;justify-content:space-between;gap:14px;
  flex-wrap:wrap;padding:12px 16px;border:1px solid var(--line);
  border-radius:var(--radius);background:var(--surface)}
.audit-stats{display:flex;align-items:baseline;gap:22px;flex-wrap:wrap}
.audit-stats .stat-cell{display:flex;align-items:baseline;gap:6px}
.audit-stats .num{font-family:var(--serif);font-size:24px;line-height:1;font-weight:600}
.audit-stats .num.high{color:oklch(.55 .18 27)}
.audit-stats .num.mid{color:oklch(.6 .12 78)}
.audit-stats .num.low{color:var(--muted)}
.audit-stats .cap{font-size:11px;color:var(--muted)}
.audit-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.audit-tools .txt{width:200px}
.audit-tools .sel{width:auto;min-width:120px}

.audit-levels{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 4px}
.audit-levels button{border:1px solid var(--line);background:var(--surface);
  color:var(--ink-2);font:inherit;font-size:12px;padding:5px 12px;border-radius:999px;
  cursor:pointer;transition:border-color .15s,color .15s,background .15s}
.audit-levels button:hover{border-color:var(--line-strong);color:var(--ink)}
.audit-levels button.active{border-color:var(--primary);background:var(--primary-soft);
  color:var(--primary);font-weight:500}
.audit-levels button em{font-style:normal;color:var(--muted);margin-left:5px}

.audit-list{display:flex;flex-direction:column;gap:10px;margin-top:12px}
.audit-card{display:grid;grid-template-columns:4px minmax(0,1fr);
  border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);
  overflow:hidden;transition:border-color .18s,box-shadow .18s}
.audit-card:hover{border-color:var(--line-strong);box-shadow:var(--shadow)}
.audit-card .edge{background:var(--line-strong)}
.audit-card.lv-high .edge{background:oklch(.58 .17 27)}
.audit-card.lv-mid .edge{background:oklch(.68 .12 78)}
.audit-card.lv-low .edge{background:var(--line-strong)}
.audit-body{padding:13px 16px;min-width:0}
.audit-top{display:flex;align-items:baseline;gap:9px;flex-wrap:wrap}
.audit-title{font-size:13.5px;font-weight:500;color:var(--ink);line-height:1.5}
.audit-chip{font-size:11px;padding:1px 7px;border-radius:999px;border:1px solid var(--line);
  color:var(--muted);white-space:nowrap}
.audit-lv{font-size:11px;font-weight:600;padding:1px 7px;border-radius:999px;white-space:nowrap}
.audit-card.lv-high .audit-lv{color:oklch(.52 .17 27);background:oklch(.6 .17 27/.12)}
.audit-card.lv-mid .audit-lv{color:oklch(.55 .12 78);background:oklch(.65 .12 78/.14)}
.audit-card.lv-low .audit-lv{color:var(--muted);background:var(--bg-soft)}
html[data-theme="dark"] .audit-card.lv-high .audit-lv{color:oklch(.82 .14 27)}
html[data-theme="dark"] .audit-card.lv-mid .audit-lv{color:oklch(.86 .11 78)}
.audit-detail{margin:6px 0 0;font-size:12.5px;line-height:1.8;color:var(--ink-2);word-break:break-word}
.audit-fix{margin-top:7px;font-size:11.5px;color:var(--muted)}
.audit-fix::before{content:"建议：";color:var(--primary)}
.audit-refs{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}
.audit-ref{font-size:11.5px;padding:2px 9px;border:1px solid var(--line);border-radius:999px;
  color:var(--ink-2);text-decoration:none;background:var(--bg-soft);transition:border-color .15s,color .15s}
.audit-ref:hover{border-color:var(--primary);color:var(--primary)}
.audit-ref .k{color:var(--muted);margin-right:5px}
.audit-empty{display:flex;flex-direction:column;align-items:center;gap:8px;
  padding:64px 20px;color:var(--muted);font-size:13px;border:1px dashed var(--line);
  border-radius:var(--radius);margin-top:12px}
.audit-empty strong{font-family:var(--serif);font-size:15px;color:var(--ink-2);font-weight:500}
.audit-empty .ok{font-size:22px;color:oklch(.6 .1 155)}

@media (max-width:760px){
  .audit-bar{flex-direction:column;align-items:stretch}
  .audit-tools .txt{width:100%}
}
