﻿:root {
  --bg-1: #f5f8ff;
  --bg-2: #eef4ff;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #64748b;
  --line: #dbe4f2;
  --primary: #2563eb;
  --primary-2: #1677ff;
  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;
  --shadow: 0 10px 30px rgba(37, 99, 235, 0.09);
  --radius: 16px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--text);
  font-family: "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  background: linear-gradient(150deg, var(--bg-1), var(--bg-2));
  min-height: 100vh;
}
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px;
}
.topbar {
  position: sticky;
  top: 12px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid #edf2fc;
  border-radius: 16px;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
}
.brand { font-weight: 700; color: #0f172a; text-decoration: none; }
.brand small { color: var(--muted); display: block; font-size: 12px; margin-top: 2px; font-weight: 500; }
.nav-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid #e6eefb;
  box-shadow: var(--shadow);
  padding: 20px;
}
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
h1, h2, h3 { margin: 0 0 8px; color: #1e293b; }
.muted, .hint { color: var(--muted); }
.alert { padding: 12px 14px; border-radius: 12px; margin-bottom: 12px; border: 1px solid; }
.alert.ok { background: #ecfdf3; border-color: #bbf7d0; color: #166534; }
.alert.err { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.alert.info { background: #eef4ff; border-color: #cddfff; color: #1d4ed8; }
.btn {
  appearance: none;
  border: 1px solid #d4def0;
  border-radius: 10px;
  background: #fff;
  color: #1f2937;
  text-decoration: none;
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
  transition: all .16s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(22, 119, 255, .16); }
.btn.primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; border-color: transparent; }
.btn.success { background: #ecfdf3; color: #166534; border-color: #bbf7d0; }
.btn.warning { background: #fff7ed; color: #9a3412; border-color: #fed7aa; }
.btn.danger { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.btn.sm { font-size: 13px; padding: 6px 10px; border-radius: 9px; }
.btn.active { background: #eaf1ff; border-color: #bfd4ff; color: #1d4ed8; }
.form-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.span-2 { grid-column: span 2; }
.field.span-4 { grid-column: span 4; }
label { font-size: 13px; color: #334155; font-weight: 600; }
.help { font-size: 12px; color: var(--muted); }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  color: #111827;
  background: #fff;
  outline: none;
  transition: all .15s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.table-wrap { overflow-x: auto; border: 1px solid #e6eefb; border-radius: 12px; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { border-bottom: 1px solid #edf2fb; padding: 10px; text-align: left; vertical-align: top; }
th { font-size: 13px; color: #64748b; background: #f8fbff; }
tr:hover td { background: #f3f8ff; }
.status-pill { border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 700; border: 1px solid; display: inline-block; }
.s-ok { background: #ecfdf3; color: #166534; border-color: #bbf7d0; }
.s-warn { background: #fff7ed; color: #9a3412; border-color: #fed7aa; }
.s-danger { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.block-soft-green { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 12px; padding: 14px; }
.block-soft-red { background: #fef2f2; border: 1px solid #fecaca; border-radius: 12px; padding: 14px; }
.log-box { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px; white-space: pre-wrap; color: #334155; }
.error-log { background: #fef2f2; border-color: #fecaca; color: #7f1d1d; }
.timeline { border-left: 2px solid #dbeafe; padding-left: 12px; }
.timeline-item { margin-bottom: 12px; }
.login-wrap { min-height: calc(100vh - 48px); display: grid; place-items: center; }
.login-card { width: min(440px, 94vw); }
@media (max-width: 980px) {
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .container { padding: 14px; }
  .topbar { position: static; }
  .grid-2, .form-grid { grid-template-columns: 1fr; }
  .field.span-2, .field.span-4 { grid-column: auto; }
}
