/* 中文说明：整体样式尽量保持简洁，方便本地部署后直接使用。 */
:root {
  --bg: #f4f7fb;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #2563eb;
  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;
  --border: #dbe3ef;
}
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.site-header { background: #0f172a; color: #fff; padding: 14px 0; }
.brand { color: #fff; text-decoration: none; font-size: 22px; font-weight: 700; }
.nav a { color: #dbeafe; text-decoration: none; margin-left: 16px; }
.page-shell { padding: 24px 0 48px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 20px; margin-bottom: 18px; box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05); }
.card-sub { border: 1px dashed var(--border); margin-top: 12px; }
.narrow-card { max-width: 480px; margin: 24px auto; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
input, select, button, textarea {
  font: inherit;
}
input, select, textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
}
button, .btn {
  display: inline-block;
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  background: #e5e7eb;
  color: #111827;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-warning { background: var(--warning); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.grid-2, .grid-3, .grid-4, .order-grid {
  display: grid;
  gap: 14px;
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.order-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 14px; }
.order-grid > div {
  background: #f8fafc;
  border-radius: 12px;
  padding: 12px;
  border: 1px solid var(--border);
}
.label { display: block; color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.toolbar { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.form-inline-hint { display: inline-flex; align-items: center; min-height: 40px; }
.stack-form > * + * { margin-top: 14px; }
.inline-form { margin-bottom: 14px; }
.copy-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { border-bottom: 1px solid var(--border); padding: 10px; text-align: left; vertical-align: top; }
.muted { color: var(--muted); }
.message-box { display: none; margin-top: 12px; padding: 12px; border-radius: 10px; }
.message-box.show { display: block; }
.message-box.info { background: #dbeafe; color: #1d4ed8; }
.message-box.success { background: #dcfce7; color: #166534; }
.message-box.error { background: #fee2e2; color: #991b1b; }
.flash-stack { margin-bottom: 16px; }
.flash { padding: 12px; border-radius: 10px; margin-bottom: 10px; }
.flash-success { background: #dcfce7; color: #166534; }
.flash-error { background: #fee2e2; color: #991b1b; }
.hidden { display: none; }
.sms-code { font-size: 22px; font-weight: 700; color: var(--primary); }
.span-2 { grid-column: span 2; }
code { background: #eff6ff; padding: 2px 6px; border-radius: 6px; }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4, .order-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .row-between { flex-direction: column; align-items: flex-start; }
}
