/* ===== 后台样式 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --navy: #0b1020; --blue: #2f7bff; --cyan: #22d3ee;
  --txt: #1c2333; --muted: #5b6577; --line: #e3e8f1; --bg: #f3f6fb;
}
body { font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; color: var(--txt); line-height: 1.6; background: var(--bg); }
a { text-decoration: none; color: var(--blue); }
.btn {
  display: inline-block; padding: 10px 26px; border-radius: 8px; border: 0;
  font-size: 14.5px; font-weight: 600; cursor: pointer; color: #fff;
}
.btn-main { background: linear-gradient(135deg, var(--blue), var(--cyan)); }
.btn-ghost { background: #fff; color: var(--muted); border: 1px solid var(--line); }
.alert { padding: 11px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.alert.ok { background: #e6f9ef; color: #0a7a3d; border: 1px solid #b7ecd0; }
.alert.danger { background: #fdecec; color: #b42323; border: 1px solid #f5c6c6; }
.mono { font-family: Consolas, monospace; letter-spacing: .5px; }

/* 登录页 */
.login-body {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(1200px 600px at 20% -10%, #1a2c5b, var(--navy));
}
.login-card {
  width: min(400px, 92vw); background: #fff; border-radius: 16px; padding: 34px 30px;
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
}
.login-logo { font-size: 19px; font-weight: 700; margin-bottom: 22px; }
.login-logo i { font-style: normal; font-size: 12.5px; color: var(--muted); font-weight: 400; margin-left: 6px; }
.login-card label { display: block; font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.login-card input {
  display: block; width: 100%; margin-top: 5px; padding: 11px 12px;
  border: 1px solid var(--line); border-radius: 8px; font-size: 15px;
}
.login-card .btn { width: 100%; margin-top: 4px; }
.login-tip { margin-top: 16px; font-size: 12.5px; color: #9aa4b5; text-align: center; }
.login-back { margin-top: 8px; text-align: center; font-size: 13px; }

/* 后台框架 */
.admin-top {
  background: var(--navy); color: #fff; height: 56px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 22px;
}
.at-brand { font-weight: 700; letter-spacing: 1px; }
.at-right { display: flex; gap: 18px; }
.at-right a { color: #9fb0d6; font-size: 13.5px; }
.at-right a:hover { color: #fff; }
.admin-main { max-width: 900px; margin: 0 auto; padding: 28px 20px 60px; }
.admin-main h1 { font-size: 22px; margin-bottom: 6px; }
.page-desc { font-size: 13.5px; color: var(--muted); margin-bottom: 22px; }
.panel {
  background: #fff; border-radius: 12px; padding: 22px;
  border: 1px solid var(--line); margin-bottom: 20px;
}
.panel h2 { font-size: 16.5px; margin-bottom: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 12px; }
.form-grid label { font-size: 13.5px; color: var(--txt); }
.form-grid small { color: #9aa4b5; font-weight: 400; margin-left: 4px; }
.form-grid input {
  display: block; width: 100%; margin-top: 5px; padding: 9px 11px;
  border: 1px solid var(--line); border-radius: 8px; font-size: 14px;
}
.chk { font-size: 14px; display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.form-btns { display: flex; gap: 12px; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.table th { background: #f7f9fd; font-size: 13px; color: var(--muted); white-space: nowrap; }
.tag { padding: 3px 10px; border-radius: 12px; font-size: 12px; }
.tag-ok { background: #e6f9ef; color: #0a7a3d; }
.tag-off { background: #eef0f5; color: #7a8499; }
.ops { display: flex; gap: 12px; align-items: center; white-space: nowrap; }
.ops form.inline { display: inline; }
.linklike { background: none; border: 0; color: var(--blue); cursor: pointer; font-size: 14px; padding: 0; }
.linklike.danger { color: #c0392b; }
.empty { text-align: center; color: #9aa4b5; padding: 24px 0 !important; }
.pass-form .form-grid { max-width: 480px; }
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .admin-main { padding: 20px 14px 40px; }
}
