:root {
  --bg: #0f1115;
  --bg-2: #15181f;
  --panel: #191d25;
  --panel-2: #1f242e;
  --line: #2a303b;
  --line-2: #343b48;
  --text: #e8ebf0;
  --dim: #98a1b2;
  --dim-2: #6f7889;
  --accent: #ff6a3d;
  --accent-2: #ffb02e;
  --ok: #35c07f;
  --warn: #e0a020;
  --fail: #ef4d4d;
  --info: #7b8cf0;
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: radial-gradient(1200px 600px at 20% -10%, #1c1f28 0%, var(--bg) 55%) no-repeat, var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 14px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.hidden { display: none !important; }
.muted { color: var(--dim); font-size: 12.5px; }
code { background: var(--panel-2); padding: 1px 6px; border-radius: 6px; font-size: 12px; color: var(--accent-2); }

/* header */
.top { border-bottom: 1px solid var(--line); background: rgba(15,17,21,.86); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 20; }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 22px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 13px; }
.logo {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #16181d;
  font-weight: 800; font-size: 20px; flex: none; overflow: hidden;
}
.logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand h1 { font-size: 16.5px; margin: 0; letter-spacing: -.01em; }
.brand p { margin: 1px 0 0; font-size: 12px; color: var(--dim); }
.top-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { background: var(--panel-2); border: 1px solid var(--line); color: var(--dim); font-size: 11.5px; padding: 4px 11px; border-radius: 999px; }

main { padding: 26px 0 40px; }

/* panels */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 18px; }
.input-panel { padding: 22px; }
.row { display: flex; gap: 12px; align-items: center; }
.row.wrap-row { flex-wrap: wrap; }
input[type=text] {
  flex: 1; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text);
  border-radius: 11px; padding: 13px 15px; font-size: 14.5px; outline: none; font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
input[type=text]:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,106,61,.14); }
button { font-family: inherit; cursor: pointer; border-radius: 10px; font-size: 13.5px; transition: all .15s; }
button.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #1a1c21;
  border: none; padding: 13px 26px; font-weight: 700; white-space: nowrap;
}
button.primary:hover { filter: brightness(1.08); }
button.primary:disabled { opacity: .55; cursor: not-allowed; filter: none; }
button.ghost { background: var(--panel-2); color: var(--text); border: 1px solid var(--line-2); padding: 10px 17px; }
button.ghost:hover { border-color: var(--accent); color: var(--accent-2); }
button.sm { padding: 5px 11px; font-size: 12px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--dim); }
button.sm:hover { border-color: var(--accent); color: var(--accent-2); }
.opts { margin-top: 13px; justify-content: space-between; flex-wrap: wrap; }
.check { color: var(--dim); font-size: 12.5px; display: flex; align-items: center; gap: 7px; cursor: pointer; }
.samples { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--dim-2); }
.hint { color: var(--dim-2); font-size: 12px; margin: 12px 0 0; }

/* progress */
.progress { padding: 20px 22px; }
.prog-head { display: flex; align-items: center; gap: 10px; font-weight: 600; margin-bottom: 12px; }
.spinner {
  width: 15px; height: 15px; border-radius: 50%; flex: none;
  border: 2px solid var(--line-2); border-top-color: var(--accent); animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.pbar { height: 6px; background: var(--bg-2); border-radius: 999px; overflow: hidden; }
.pbar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .5s ease; }
.steps { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.steps li { font-size: 12px; color: var(--dim-2); background: var(--bg-2); border: 1px solid var(--line); padding: 4px 11px; border-radius: 999px; }
.steps li.done { color: var(--ok); border-color: rgba(53,192,127,.4); }
.steps li.active { color: var(--accent-2); border-color: var(--accent); }

.error { border-color: rgba(239,77,77,.45); background: rgba(239,77,77,.09); color: #ffd9d9; }

/* hero */
.hero { display: flex; gap: 28px; align-items: flex-start; flex-wrap: wrap; }
.rings { display: flex; gap: 18px; }
.ring-box { text-align: center; }
.ring {
  width: 116px; height: 116px; border-radius: 50%;
  background: conic-gradient(var(--c, #ff6a3d) calc(var(--v, 0) * 1%), var(--panel-2) 0);
  display: grid; place-items: center; transition: background .8s ease;
}
.ring-inner {
  width: 90px; height: 90px; border-radius: 50%; background: var(--panel);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.ring-inner b { font-size: 27px; line-height: 1; letter-spacing: -.02em; }
.ring-inner span { font-size: 10.5px; color: var(--dim); margin-top: 3px; }
.ring-label { margin-top: 10px; font-size: 13px; color: var(--text); font-weight: 700; letter-spacing: .01em; }
.ring-sub { margin-top: 2px; font-size: 11px; color: var(--dim); line-height: 1.45; }
.hero-side { flex: 1; min-width: 320px; }
.grade-line { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.grade-line b { font-size: 19px; }
.mini-cards { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.mini { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 13px; min-width: 92px; }
.mini b { display: block; font-size: 11px; color: var(--dim); font-weight: 500; }
.mini span { font-size: 15px; font-weight: 700; }
.exec { list-style: none; margin: 0; padding: 0; }
.exec li { position: relative; padding-left: 17px; margin-bottom: 7px; font-size: 13px; color: #d8dde6; }
.exec li::before { content: ''; position: absolute; left: 3px; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* sections */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 15px; flex-wrap: wrap; }
h2 { font-size: 16px; margin: 0; padding-left: 11px; border-left: 3px solid var(--accent); }
h3.sys-title { font-size: 13.5px; margin: 0 0 9px; }
h3.sys-title.seo { color: var(--accent-2); }
h3.sys-title.geo { color: #7fd4ff; }
h3.sys-title span { color: var(--dim); font-weight: 400; font-size: 12.5px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

/* tables */
table.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.tbl th { text-align: left; color: var(--dim); font-weight: 600; padding: 8px 9px; border-bottom: 1px solid var(--line-2); font-size: 11.5px; }
table.tbl td { padding: 9px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.tbl tbody tr:hover { background: rgba(255,255,255,.022); }
table.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.sbar { display: block; height: 5px; background: var(--bg-2); border-radius: 999px; overflow: hidden; margin-top: 5px; }
.sbar i { display: block; height: 100%; }

/* tabs */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 15px; }
.tab { background: var(--panel-2); border: 1px solid var(--line); color: var(--dim); padding: 8px 14px; font-size: 12.5px; }
.tab i { font-style: normal; opacity: .7; margin-left: 4px; }
.tab.active { border-color: var(--accent); color: var(--text); background: rgba(255,106,61,.1); }
.tab:hover { color: var(--text); }

/* defect cards */
.def { border: 1px solid var(--line); border-radius: 12px; padding: 15px 16px; margin-bottom: 11px; background: var(--bg-2); }
.def-top { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 9px; }
.pill { font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.pill.P0 { background: rgba(239,77,77,.16); color: #ff8a8a; border: 1px solid rgba(239,77,77,.4); }
.pill.P1 { background: rgba(224,160,32,.16); color: #ffcb63; border: 1px solid rgba(224,160,32,.4); }
.pill.P2 { background: rgba(96,132,255,.15); color: #9db4ff; border: 1px solid rgba(96,132,255,.4); }
.pill.seo { background: rgba(255,176,46,.14); color: var(--accent-2); }
.pill.geo { background: rgba(127,212,255,.13); color: #7fd4ff; }
.def h4 { margin: 0; font-size: 14px; flex: 1; min-width: 200px; }
.def-meta { font-size: 11.5px; color: var(--dim-2); display: flex; gap: 14px; flex-wrap: wrap; }
.def dl { margin: 9px 0 0; display: grid; grid-template-columns: 78px 1fr; gap: 5px 12px; }
.def dt { color: var(--dim-2); font-size: 12px; }
.def dd { margin: 0; font-size: 12.8px; color: #d5dae3; }
.def dd.fix { color: #b9edcd; }
.winline { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--dim); }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot.pass { background: var(--ok); } .dot.warn { background: var(--warn); } .dot.fail { background: var(--fail); } .dot.info { background: var(--info); }

/* facts */
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(285px, 1fr)); gap: 11px; }
.fact { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; }
.fact b { display: block; font-size: 11px; color: var(--dim); font-weight: 500; margin-bottom: 3px; }
.fact span { font-size: 12.8px; word-break: break-word; }

/* bots */
.bots { display: grid; grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); gap: 9px; }
.bot { display: flex; align-items: center; gap: 9px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; }
.bot .name { flex: 1; font-size: 12.5px; }
.bot .name small { display: block; color: var(--dim-2); font-size: 11px; }
.bot .state { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.bot .state.ok { background: rgba(53,192,127,.15); color: #6ddca8; }
.bot .state.no { background: rgba(239,77,77,.15); color: #ff8a8a; }
.export .row { gap: 10px; }

/* 综合评价（表现优异的站点会展示这张总评卡） */
.praise-panel { padding: 0; border: none; background: none; }
.praise {
  border: 1px solid rgba(255,176,46,.36); border-radius: var(--radius); padding: 18px 20px;
  background: linear-gradient(135deg, rgba(255,106,61,.11), rgba(255,176,46,.05));
}
.praise h3 { margin: 0 0 4px; font-size: 15.5px; color: var(--accent-2); }
.praise .p-sub { font-size: 12px; color: var(--dim); margin-bottom: 11px; }
.praise ul { margin: 0; padding-left: 18px; }
.praise li { margin-bottom: 6px; font-size: 13px; color: #e2e6ee; }
.praise .badges { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 7px; }
.praise .badges span {
  background: rgba(255,176,46,.12); border: 1px solid rgba(255,176,46,.34); color: var(--accent-2);
  border-radius: 999px; padding: 3px 11px; font-size: 11.5px; font-weight: 600;
}

.foot { padding: 20px 22px 42px; color: var(--dim-2); font-size: 12px; }
.foot p { margin: 0; }

@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
  .hero { gap: 20px; }
  .rings { gap: 12px; }
  .ring { width: 98px; height: 98px; }
  .ring-inner { width: 74px; height: 74px; }
  .ring-inner b { font-size: 22px; }
  .top-meta { display: none; }
}
