:root {
  color-scheme: light;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  background: #f5f7f9;
  color: #1f2933;
}

* { box-sizing: border-box; }
body { margin: 0; background: #f5f7f9; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.app { min-height: 100vh; }
.topbar {
  background: #225a64;
  color: #fff;
  padding: 18px 16px;
  position: sticky;
  top: 0;
  z-index: 2;
  box-shadow: 0 4px 16px rgba(20, 60, 70, .18);
}
.topbar-inner { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand-title { font-size: 22px; font-weight: 800; }
.brand-sub { font-size: 12px; opacity: .82; margin-top: 3px; }
.container { max-width: 1120px; margin: 0 auto; padding: 18px 14px 42px; }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.card { background: #fff; border: 1px solid #d9e2ec; border-radius: 8px; padding: 14px; box-shadow: 0 10px 28px rgba(31,41,51,.06); }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }
.section-title { font-weight: 800; font-size: 17px; margin: 0 0 12px; color: #102a43; }
.muted { color: #697b8c; font-size: 13px; line-height: 1.6; }
.form { display: grid; gap: 10px; }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
label { display: grid; gap: 5px; font-size: 13px; color: #334e68; }
input, select, textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 10px;
  background: #fff;
  min-height: 42px;
}
textarea { resize: vertical; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.btn {
  border: 0;
  border-radius: 6px;
  padding: 10px 14px;
  color: #fff;
  background: #225a64;
  font-weight: 700;
  min-height: 42px;
}
.btn.secondary { background: #85501f; }
.btn.light { background: #e8f1f2; color: #225a64; }
.btn.danger { background: #b42318; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.tabs { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 14px; }
.tab { border: 1px solid #cbd5e1; background: #fff; color: #334e68; white-space: nowrap; }
.tab.active { background: #225a64; color: #fff; border-color: #225a64; }
.table-wrap { overflow-x: auto; border: 1px solid #d9e2ec; border-radius: 8px; }
table { width: 100%; border-collapse: collapse; min-width: 680px; }
th, td { border-bottom: 1px solid #e5edf4; padding: 10px; text-align: left; font-size: 13px; }
th { background: #edf4f5; color: #102a43; }
tr:last-child td { border-bottom: 0; }
.red { color: #b42318; font-weight: 800; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stat { background: #f7fbfc; border: 1px solid #d9e2ec; border-radius: 8px; padding: 12px; }
.stat span { display: block; color: #697b8c; font-size: 12px; }
.stat strong { display: block; font-size: 22px; margin-top: 4px; color: #102a43; }
.notice { background: #fff7ed; border: 1px solid #fed7aa; color: #7c2d12; border-radius: 8px; padding: 11px; line-height: 1.6; }
.ok { background: #ecfdf3; border-color: #bbf7d0; color: #14532d; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: #102a43; color: #fff; padding: 12px 16px; border-radius: 999px; z-index: 9; box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.hidden { display: none; }

@media (max-width: 820px) {
  .grid { display: block; }
  .card { margin-bottom: 12px; }
  .form-row, .stat-grid { grid-template-columns: 1fr; }
  .topbar-inner { align-items: flex-start; flex-direction: column; }
}
