:root {
  --bg: #f3f0e8;
  --panel: #fffdf8;
  --ink: #17211b;
  --muted: #69736c;
  --line: #d9ddd7;
  --green: #1c6b50;
  --green-soft: #dcebe3;
  --amber: #a46413;
  --amber-soft: #fff0d4;
  --red: #a33b32;
  --red-soft: #fbe4e1;
  --shadow: 0 12px 30px rgba(34, 49, 40, .07);
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  line-height: 1.55;
}
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
.shell { max-width: 1180px; margin: 0 auto; padding: 0 22px 56px; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(243, 240, 232, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  min-height: 68px;
  padding: 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { color: var(--ink); font-weight: 800; letter-spacing: .02em; }
.nav { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.nav a { color: var(--ink); font-size: 14px; }
h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.2; margin: 34px 0 8px; }
h2 { font-size: 22px; margin: 0 0 16px; }
h3 { font-size: 17px; margin: 0 0 8px; }
.lede { color: var(--muted); margin: 0 0 28px; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.stat strong { display: block; font-size: 34px; line-height: 1; margin-bottom: 8px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.stack { display: grid; gap: 14px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: 13px; font-weight: 700; background: #f7f5ee; }
tr:last-child td { border-bottom: 0; }
label { display: grid; gap: 6px; font-weight: 700; font-size: 14px; }
input, textarea, select {
  width: 100%;
  border: 1px solid #c8cec9;
  border-radius: 11px;
  background: white;
  color: var(--ink);
  font: inherit;
  padding: 10px 12px;
}
textarea { min-height: 130px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 3px solid rgba(28, 107, 80, .15); border-color: var(--green); }
.checkbox { display: flex; align-items: flex-start; gap: 9px; font-weight: 500; }
.checkbox input { width: auto; margin-top: 5px; }
button, .button {
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: white;
  padding: 9px 16px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  display: inline-block;
}
button:hover, .button:hover { filter: brightness(.94); text-decoration: none; }
.button-secondary { background: #e7ebe7; color: var(--ink); }
.button-danger { background: var(--red); }
.button-small { padding: 6px 11px; font-size: 13px; }
.inline { display: inline-flex; margin: 0; }
.pill {
  display: inline-block;
  border-radius: 999px;
  padding: 3px 9px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 12px;
  font-weight: 750;
}
.pill.warn { background: var(--amber-soft); color: var(--amber); }
.pill.block { background: var(--red-soft); color: var(--red); }
.notice { margin: 18px 0; border-radius: 13px; padding: 12px 15px; background: var(--green-soft); color: #0c513a; }
.notice.error { background: var(--red-soft); color: var(--red); }
.section { margin-top: 28px; }
.tabs { display: flex; gap: 9px; flex-wrap: wrap; margin: 18px 0; }
.tabs a { background: var(--panel); border: 1px solid var(--line); padding: 7px 12px; border-radius: 999px; color: var(--ink); }
.tabs a.active { background: var(--green); color: white; border-color: var(--green); }
.score { font-size: 25px; font-weight: 850; color: var(--green); }
.evidence-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.evidence-grid img { width: 100%; border-radius: 12px; border: 1px solid var(--line); }
.code, pre { white-space: pre-wrap; word-break: break-word; background: #f0f1ec; border-radius: 10px; padding: 12px; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(440px, 100%); }
.footer-note { border-left: 4px solid var(--green); padding-left: 12px; color: var(--muted); }

@media (max-width: 820px) {
  .grid-5, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .topbar-inner { align-items: flex-start; flex-direction: column; }
  .topbar { position: static; }
  .shell { padding-inline: 14px; }
  .card { padding: 16px; }
}

