:root {
  --bg: #f5f7fb;
  --panel: #fff;
  --text: #172033;
  --muted: #697386;
  --line: #dfe5ef;
  --brand: #1764d8;
  --green: #0e9f6e;
  --danger: #c23535;
  --warn: #ad6b00;
  --shadow: 0 14px 35px rgba(23, 32, 51, .08);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.6 "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
}
a { color: var(--brand); text-decoration: none; }
.topbar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.topbar-inner { max-width: 1180px; margin: 0 auto; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); min-width: 220px; }
.brand-mark { width: 38px; height: 38px; border-radius: 8px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 20px; }
.brand b, .brand small { display: block; }
.brand small { color: var(--muted); }
.nav { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { color: #27364f; padding: 7px 10px; border-radius: 7px; white-space: nowrap; }
.nav a:hover { background: #eef4ff; }
.shell { width: min(1180px, calc(100% - 28px)); margin: 28px auto; }
.install-shell { max-width: 900px; }
.footer { max-width: 1180px; margin: 30px auto; padding: 0 18px; color: var(--muted); text-align: center; }
.panel, .hero-panel, .stat { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.panel { padding: 22px; }
.install-panel h1 { margin-top: 0; }
.space-top { margin-top: 18px; }
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; }
.hero-panel { padding: 34px; display: flex; flex-direction: column; justify-content: center; }
.hero-panel h1 { margin: 0 0 12px; font-size: 34px; line-height: 1.2; }
.hero-panel p { margin: 0 0 22px; color: var(--muted); }
.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 18px; }
.stat { padding: 18px; }
.stat strong { display: block; font-size: 28px; line-height: 1; margin-bottom: 8px; }
.stat span, .muted { color: var(--muted); }
.form { display: grid; gap: 14px; }
.row-form { grid-template-columns: repeat(7, minmax(120px, 1fr)); align-items: end; }
.field { display: grid; gap: 6px; }
label { font-weight: 700; }
input, textarea, select { width: 100%; border: 1px solid #cfd8e6; background: #fff; color: var(--text); border-radius: 7px; padding: 10px 11px; min-height: 42px; font: inherit; outline: none; }
textarea { min-height: 110px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(23, 100, 216, .12); }
.btn { border: 1px solid transparent; background: var(--brand); color: #fff; min-height: 40px; padding: 9px 14px; border-radius: 7px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.btn.secondary { background: #fff; color: var(--text); border-color: #cfd8e6; }
.btn.green { background: var(--green); }
.btn.red { background: var(--danger); }
.btn.small { min-height: 32px; padding: 5px 9px; font-size: 12px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; min-width: 760px; background: #fff; }
th, td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #f8fafc; font-size: 12px; color: #4a5870; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.code { font-family: Consolas, "Courier New", monospace; background: #f1f5f9; border: 1px solid #dce4ee; border-radius: 6px; padding: 2px 6px; display: inline-block; word-break: break-all; }
.badge { display: inline-flex; align-items: center; min-height: 24px; border-radius: 999px; padding: 2px 9px; font-size: 12px; font-weight: 700; background: #eef4ff; color: #1756b6; white-space: nowrap; }
.badge.green { background: #e8f7f0; color: #08724f; }
.badge.red { background: #fdecec; color: #aa2424; }
.badge.gray { background: #edf1f6; color: #58677d; }
.badge.warn { background: #fff4df; color: #915900; }
.flash { border-radius: 8px; border: 1px solid var(--line); background: #fff; padding: 12px 14px; margin-bottom: 14px; box-shadow: var(--shadow); }
.flash.success { border-color: #b9e6ce; background: #effaf4; }
.flash.error { border-color: #f0b8b8; background: #fff1f1; }
.flash.warning { border-color: #f5d08c; background: #fff8e8; }
.result-box { margin-top: 16px; background: #f8fafc; border: 1px dashed #b8c6d9; border-radius: 8px; padding: 14px; }
.login-wrap { min-height: calc(100vh - 180px); display: grid; place-items: center; }
.login-card { width: min(420px, 100%); }
.copy-area { min-height: 220px; font-family: Consolas, "Courier New", monospace; white-space: pre-wrap; }
.pagination { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.pagination a, .pagination span { min-width: 34px; min-height: 34px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.pagination span { background: var(--brand); color: #fff; border-color: var(--brand); }
.empty { text-align: center; color: var(--muted); padding: 28px; }
@media (max-width: 900px) {
  .topbar-inner { align-items: flex-start; flex-direction: column; }
  .nav { justify-content: flex-start; }
  .hero, .grid.two, .grid.three, .split, .row-form { grid-template-columns: 1fr; }
  .hero-panel { padding: 24px; }
  .hero-panel h1 { font-size: 26px; }
}
