* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; background: #f3f4f6; color: #111827; }
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }

.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.card { background: #fff; padding: 28px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.08); width: 100%; max-width: 400px; }
.card h1 { margin: 0 0 16px; font-size: 1.25rem; }
label { display: block; margin-top: 12px; font-weight: 600; font-size: 0.875rem; }
input, select, textarea { width: 100%; padding: 8px 10px; margin-top: 4px; border: 1px solid #d1d5db; border-radius: 8px; }
button, .btn { display: inline-block; padding: 8px 14px; border-radius: 8px; border: 0; background: #2563eb; color: #fff; font-weight: 600; cursor: pointer; text-decoration: none; }
button.secondary, .btn.secondary { background: #6b7280; }
button.danger, .btn.danger { background: #dc2626; }
.err { color: #dc2626; font-size: 0.875rem; }
.ok { color: #0a0; font-size: 0.875rem; }
.hint { font-size: 0.8rem; color: #6b7280; margin-top: 16px; }

.layout { display: flex; min-height: 100vh; }
.sidebar { width: 220px; background: #111827; color: #e5e7eb; padding: 20px 0; flex-shrink: 0; }
.sidebar h2 { margin: 0 16px 20px; font-size: 1rem; }
.sidebar a { display: block; padding: 10px 16px; color: #e5e7eb; }
.sidebar a:hover { background: rgba(255,255,255,.08); text-decoration: none; }
.sidebar a.active { background: #2563eb; }

.main { flex: 1; padding: 24px; overflow: auto; }
.main h1 { margin: 0 0 20px; font-size: 1.35rem; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.topbar .user { font-size: 0.875rem; color: #6b7280; }

table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #e5e7eb; font-size: 0.875rem; }
th { background: #f9fafb; font-weight: 600; }
tr:last-child td { border-bottom: 0; }

.form-row { margin-bottom: 14px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #e0e7ff; color: #3730a3; font-size: 0.75rem; }

/* 系统设置 — 支付方式横排 */
.pay-toggle-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.pay-toggle-row label.pay-toggle-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 0;
  padding: 10px 14px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s, background 0.15s;
}
.pay-toggle-row label.pay-toggle-item:hover {
  border-color: #93c5fd;
  background: #eff6ff;
}
.pay-toggle-row label.pay-toggle-item input[type="checkbox"] {
  width: auto;
  min-width: 1rem;
  margin-top: 0;
  flex-shrink: 0;
  cursor: pointer;
}
.pay-toggle-row .pay-toggle-code {
  font-size: 0.75rem;
  color: #9ca3af;
  font-weight: 400;
}
