:root {
  --bg: #f4f6fb;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #0b63ce;
  --primary-2: #084ca0;
  --border: #e5e7eb;
  --orange: #f97316;
  --green: #16a34a;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
}
a { color: var(--primary); text-decoration: none; }
.header {
  background: linear-gradient(135deg, #063b7a, #0b63ce);
  color: white;
  padding: 28px 34px;
}
.header h1 { margin: 0; font-size: 26px; }
.header p { margin: 8px 0 0; opacity: .86; }
.container { max-width: 1180px; margin: 28px auto; padding: 0 18px; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
}
.toolbar { display:flex; justify-content:space-between; gap:12px; align-items:center; margin-bottom: 16px; }
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  border:0; border-radius: 12px; padding: 11px 16px;
  background: var(--primary); color:#fff; font-weight:700; cursor:pointer;
}
.btn:hover { background: var(--primary-2); }
.btn.secondary { background:#eef2ff; color:#1d4ed8; }
.btn.orange { background: var(--orange); }
.grid { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
label { display:block; font-weight:700; margin-bottom:8px; }
input, select, textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 12px; padding: 12px 13px;
  font-size: 15px; outline: none; background:#fff;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(11, 99, 206, .12); }
.form-row { margin-bottom: 16px; }
.table { width:100%; border-collapse: collapse; }
.table th, .table td { padding: 13px 10px; border-bottom: 1px solid var(--border); text-align:left; vertical-align:top; }
.table th { color:#374151; font-size: 14px; background:#f9fafb; }
.badge { display:inline-block; border-radius:999px; padding:5px 10px; font-size:12px; font-weight:700; background:#e8f1ff; color:#0b63ce; }
.badge.warn { background:#fff7ed; color:#c2410c; }
.badge.ok { background:#ecfdf5; color:#047857; }
.muted { color: var(--muted); }
.actions { display:flex; gap:10px; flex-wrap:wrap; }
.kpi { display:grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 16px 0; }
.kpi > div { background:#f9fafb; border:1px solid var(--border); padding:16px; border-radius:14px; }
.kpi strong { display:block; font-size:20px; margin-top:4px; }
ol li { margin: 8px 0; }
@media (max-width: 780px) { .grid, .kpi { grid-template-columns: 1fr; } .toolbar { flex-direction:column; align-items:flex-start; } }
.nav { display:flex; gap:10px; flex-wrap:wrap; margin-top:14px; }
.nav a { color:#fff; background:rgba(255,255,255,.16); padding:8px 12px; border-radius:999px; font-weight:700; }
.success { background:#ecfdf5; color:#047857; border:1px solid #a7f3d0; padding:12px 14px; border-radius:12px; }
.small { font-size: 13px; }
.image-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap:14px; margin-top:12px; }
.image-grid.large { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.image-grid a { display:block; border:1px solid var(--border); border-radius:14px; overflow:hidden; background:#fff; }
.image-grid img { width:100%; display:block; aspect-ratio:1/1; object-fit:cover; }
.inline-form { display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
.inline-form input[type=file] { flex:1; min-width:260px; }
textarea { line-height:1.5; }

.danger { background:#fef2f2; color:#991b1b; border:1px solid #fecaca; padding:12px 14px; border-radius:12px; }
.warn-box { background:#fff7ed; color:#9a3412; border:1px solid #fed7aa; padding:12px 14px; border-radius:12px; margin-top:12px; }
.codeblock { background:#0f172a; color:#e5e7eb; border-radius:14px; padding:16px; overflow:auto; white-space:pre-wrap; font-size:13px; line-height:1.5; }
