*{box-sizing:border-box}
body{margin:0;font:14px/1.55 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:#1f2937;background:#f3f4f6}
a{color:#1d4ed8;text-decoration:none}a:hover{text-decoration:underline}
header{background:#111827;color:#fff;display:flex;align-items:center;gap:24px;padding:0 24px;height:52px;position:sticky;top:0;z-index:5}
header .brand{font-weight:700;font-size:16px}
header nav a{color:#d1d5db;margin-right:18px}header nav a.on{color:#fff;font-weight:600}
header form{margin-left:auto}
main{max-width:1280px;margin:0 auto;padding:20px 24px 60px}
h1{font-size:22px;margin:4px 0 16px}h2{font-size:17px;margin:24px 0 10px}h3{font-size:15px;margin:16px 0 8px}
.card{background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:16px 18px;margin-bottom:16px}
.grid{display:grid;gap:16px}.g4{grid-template-columns:repeat(4,1fr)}.g2{grid-template-columns:1fr 1fr}.g3{grid-template-columns:repeat(3,1fr)}
@media(max-width:900px){.g4,.g2,.g3{grid-template-columns:1fr}}
.stat .v{font-size:26px;font-weight:700}.stat .l{color:#6b7280;font-size:13px}
.up{color:#059669;font-weight:600}.down{color:#dc2626;font-weight:600}
table{width:100%;border-collapse:collapse;background:#fff}
th,td{text-align:left;padding:7px 8px;border-bottom:1px solid #eef0f3;vertical-align:top}
th{background:#f9fafb;font-weight:600;color:#374151;font-size:13px;white-space:nowrap}
td.n,th.n{text-align:right;white-space:nowrap}
.url{word-break:break-all;font-size:13px}
.muted{color:#6b7280}.small{font-size:12px}
.btn,button{display:inline-block;background:#1d4ed8;color:#fff;border:0;border-radius:6px;padding:7px 14px;font-size:14px;cursor:pointer;text-decoration:none}
.btn:hover,button:hover{background:#1e40af;text-decoration:none}
.btn.sec,button.sec{background:#e5e7eb;color:#111827}.btn.sec:hover,button.sec:hover{background:#d1d5db}
button.danger{background:#dc2626}button.link{background:none;color:#1d4ed8;padding:0}
input[type=text],input[type=password],input[type=url],input[type=number],select,textarea{width:100%;padding:7px 9px;border:1px solid #d1d5db;border-radius:6px;font:inherit;background:#fff}
textarea{min-height:70px}textarea.code{font:12px/1.45 ui-monospace,Menlo,Consolas,monospace;min-height:70vh}
label{display:block;font-weight:600;margin:12px 0 4px}label .muted{font-weight:400}
.row{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.row>*{flex:1}.row>.auto{flex:0 0 auto}
.flash{padding:10px 14px;border-radius:6px;margin-bottom:12px;background:#ecfdf5;border:1px solid #a7f3d0}
.flash.err{background:#fef2f2;border-color:#fecaca}
.warn{background:#fffbeb;border:1px solid #fde68a;padding:10px 14px;border-radius:6px;margin-bottom:12px}
.tag{display:inline-block;padding:1px 7px;border-radius:10px;font-size:12px;background:#e5e7eb;margin:1px 2px 1px 0}
.sev-严重{background:#fee2e2;color:#991b1b}.sev-重要{background:#ffedd5;color:#9a3412}.sev-一般{background:#e0e7ff;color:#3730a3}.sev-提示{background:#f3f4f6}
.ok{color:#059669}.bad{color:#dc2626}
.counter{font-size:12px;color:#6b7280;float:right;font-weight:400}.counter.over{color:#dc2626}
.serp{font-family:arial,sans-serif;max-width:600px;padding:10px 0}
.serp .t{color:#1a0dab;font-size:20px;line-height:1.3;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.serp .u{color:#202124;font-size:13px}.serp .d{color:#4d5156;font-size:14px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.diff{font:12px/1.45 ui-monospace,Menlo,monospace;background:#fff;border:1px solid #e5e7eb;border-radius:6px;overflow:auto;max-height:60vh;padding:8px}
.diff div{white-space:pre-wrap;word-break:break-all}.diff .add{background:#ecfdf5;color:#065f46}.diff .del{background:#fef2f2;color:#991b1b}
details summary{cursor:pointer}
.login{max-width:360px;margin:12vh auto}
.tabs a{margin-right:14px}
.inline{display:inline}
