/**
 * 零工服务平台 · H5 管理后台样式
 * 双角色：省级平台管理后台 / 城市服务商后台
 */
:root {
  --bg: #f4f6f9;
  --card: #ffffff;
  --primary: #1a6fc4;
  --primary-dark: #14538f;
  --primary-soft: #e8f1fb;
  --accent: #e8590c;
  --accent-soft: #fff1e6;
  --success: #0f8a4d;
  --success-soft: #e6f6ed;
  --warn: #c77700;
  --warn-soft: #fff6e0;
  --danger: #c92a2a;
  --danger-soft: #fdecec;
  --text: #16191d;
  --text-2: #4a5260;
  --text-3: #79818f;
  --border: #e3e7ec;
  --border-strong: #c8cfd8;
  --sidebar-w: 232px;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(16, 24, 40, 0.06), 0 1px 2px rgba(16, 24, 40, 0.04);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Segoe UI",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button { font-family: inherit; }

/* ============ 布局 ============ */

.layout { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: #16233a;
  color: #cfd8e6;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.brand {
  padding: 22px 20px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  display: block;
}

.brand-sub {
  font-size: 12px;
  color: #7f8da3;
  display: block;
  margin-top: 3px;
}

.role-switch { padding: 16px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }

.role-btn {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #cfd8e6;
  font-size: 13px;
  cursor: pointer;
  display: block;
  margin-bottom: 8px;
  transition: all 0.15s;
}

.role-btn:hover { background: rgba(255, 255, 255, 0.1); }

.role-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 600;
}

.role-btn-label { font-size: 10px; opacity: 0.75; display: block; text-transform: uppercase; letter-spacing: 0.5px; }

.nav { padding: 12px 10px 24px; flex: 1; }

.nav-group-label {
  font-size: 11px;
  color: #6b7a91;
  padding: 14px 12px 6px;
  letter-spacing: 0.6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #b8c4d4;
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 2px;
  transition: background 0.15s;
  user-select: none;
}

.nav-item:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }

.nav-item.active {
  background: rgba(26, 111, 196, 0.22);
  color: #fff;
  font-weight: 600;
}

.nav-icon { width: 18px; text-align: center; font-size: 15px; }

.nav-badge {
  margin-left: auto;
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 999px;
  font-weight: 700;
}

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 14px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-title { font-size: 18px; font-weight: 700; }
.topbar-sub { font-size: 13px; color: var(--text-3); margin-top: 2px; }

.topbar-right { display: flex; align-items: center; gap: 14px; }

.role-chip {
  font-size: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 600;
}

.content { padding: 22px 26px 60px; flex: 1; }

/* ============ 卡片 ============ */

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 18px;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.card-title { font-size: 15px; font-weight: 700; }
.card-sub { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }

/* ============ 统计卡 ============ */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.stat-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  border-left: 4px solid var(--primary);
}

.stat-card.ok { border-left-color: var(--success); }
.stat-card.warn { border-left-color: var(--warn); }
.stat-card.danger { border-left-color: var(--danger); }
.stat-card.accent { border-left-color: var(--accent); }

.stat-label { font-size: 13px; color: var(--text-3); display: block; }

.stat-value {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  margin-top: 4px;
  display: block;
}

.stat-value small { font-size: 14px; font-weight: 500; color: var(--text-3); margin-left: 3px; }

.stat-trend { font-size: 12px; margin-top: 4px; display: block; color: var(--text-3); }
.stat-trend.up { color: var(--success); }
.stat-trend.down { color: var(--danger); }

/* ============ 表格 ============ */

.table-wrap { overflow-x: auto; border-radius: 8px; border: 1px solid var(--border); }

table { width: 100%; border-collapse: collapse; font-size: 13.5px; }

th {
  background: #f7f9fb;
  text-align: left;
  padding: 11px 14px;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}

td {
  padding: 11px 14px;
  border-bottom: 1px solid #f0f2f5;
  vertical-align: middle;
}

tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #fafbfc; }

.td-num { text-align: right; font-variant-numeric: tabular-nums; }
.td-strong { font-weight: 600; }
.td-nowrap { white-space: nowrap; }

/* ============ 徽章 ============ */

.badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-primary { background: var(--primary-soft); color: var(--primary); }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-plain { background: #eef1f5; color: var(--text-2); }
.badge-accent { background: var(--accent-soft); color: var(--accent); }
.badge-gold { background: #fdf3d5; color: #9a6b00; }
.badge-bronze { background: #f2e6dc; color: #8a5a2b; }
.badge-silver { background: #eceff3; color: #5c6673; }
.badge-diamond { background: #e2f0fc; color: #1461b8; }
.badge-copper { background: #f7e6d8; color: #a05f2a; }

/* ============ 按钮 ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 16px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: var(--primary);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }

.btn-sm { min-height: 28px; padding: 0 11px; font-size: 12.5px; }

.btn-ghost {
  background: #fff;
  color: var(--primary);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--primary-soft); }

.btn-success { background: var(--success); }
.btn-danger { background: var(--danger); }
.btn-warn { background: var(--warn); }
.btn-accent { background: var(--accent); }
.btn-plain { background: #eef1f5; color: var(--text-2); }

.btn:disabled, .btn.disabled { opacity: 0.5; cursor: not-allowed; }

.btn-group { display: flex; gap: 6px; flex-wrap: wrap; }

/* ============ 表单 ============ */

.field { margin-bottom: 16px; }

.label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 6px;
}

.input, .select, textarea.input {
  width: 100%;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.input:focus, .select:focus, textarea.input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 111, 196, 0.12);
}

textarea.input { min-height: 76px; resize: vertical; line-height: 1.6; }

.select { cursor: pointer; }

.form-row { display: flex; gap: 14px; flex-wrap: wrap; }
.form-row .field { flex: 1; min-width: 180px; margin-bottom: 0; }

/* ============ 筛选条 ============ */

.filter-bar {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.filter-bar .field { margin-bottom: 0; }

/* ============ 分页/空态 ============ */

.empty {
  padding: 48px 20px;
  text-align: center;
  color: var(--text-3);
}

.empty-icon { font-size: 40px; display: block; margin-bottom: 10px; }
.empty-title { font-size: 15px; font-weight: 600; color: var(--text-2); display: block; }
.empty-desc { font-size: 13px; margin-top: 4px; display: block; }

/* ============ 提示条 ============ */

.notice {
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.55;
  border: 1px solid transparent;
}

.notice-info { background: var(--primary-soft); border-color: #b8d4f2; color: var(--primary-dark); }
.notice-success { background: var(--success-soft); border-color: #a8ddc0; color: #0b6b3d; }
.notice-warn { background: var(--warn-soft); border-color: #f0d18a; color: #7a5200; }
.notice-danger { background: var(--danger-soft); border-color: #f3b5b5; color: #932020; }

/* ============ 弹窗 ============ */

.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 40, 0.45);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal {
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 560px;
  max-height: 86vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(16, 24, 40, 0.25);
}

.modal-head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title { font-size: 16px; font-weight: 700; }

.modal-close {
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text-3);
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}

.modal-body { padding: 20px 22px; }
.modal-foot { padding: 14px 22px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }

/* ============ 提示浮层 ============ */

.toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(16, 24, 40, 0.9);
  color: #fff;
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 200;
  box-shadow: 0 6px 20px rgba(16, 24, 40, 0.25);
}

.toast.success { background: var(--success); }
.toast.danger { background: var(--danger); }
.toast.warn { background: var(--warn); }

/* ============ 图表（纯 CSS 柱状）============ */

.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  height: 180px;
  padding: 14px 4px 0;
}

.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; }

.bar-value {
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 5px;
  font-weight: 600;
}

.bar {
  width: 100%;
  max-width: 54px;
  background: linear-gradient(180deg, #3b8ae0, var(--primary));
  border-radius: 6px 6px 0 0;
  min-height: 4px;
  transition: height 0.3s;
}

.bar-label { font-size: 12px; color: var(--text-3); margin-top: 8px; text-align: center; }

/* 进度条 */
.progress {
  height: 7px;
  background: #eef1f5;
  border-radius: 999px;
  overflow: hidden;
  min-width: 90px;
}

.progress-inner { height: 100%; background: var(--primary); border-radius: 999px; }

/* ============ 工具类 ============ */

.row { display: flex; align-items: center; gap: 8px; }
.row-wrap { flex-wrap: wrap; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gap-sm { gap: 6px; }
.gap { gap: 12px; }
.mt { margin-top: 14px; }
.mt-sm { margin-top: 8px; }
.mt-lg { margin-top: 24px; }
.mb { margin-bottom: 14px; }
.mb-sm { margin-bottom: 8px; }
.ml { margin-left: auto; }
.text-sm { font-size: 12.5px; }
.text-muted { color: var(--text-3); }
.text-muted-2 { color: var(--text-2); }
.text-bold { font-weight: 700; }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warn { color: var(--warn); }
.text-accent { color: var(--accent); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }

.divider { height: 1px; background: var(--border); margin: 16px 0; }

.kv { display: flex; gap: 10px; padding: 7px 0; font-size: 13.5px; border-bottom: 1px dashed var(--border); }
.kv:last-child { border-bottom: none; }
.kv-k { color: var(--text-3); width: 110px; flex-shrink: 0; }
.kv-v { color: var(--text); flex: 1; }

.pill-row { display: flex; gap: 6px; flex-wrap: wrap; }

.pill {
  font-size: 12px;
  padding: 2px 9px;
  border-radius: 999px;
  background: #eef1f5;
  color: var(--text-2);
}

/* 服务套餐卡 */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.plan-card {
  border: 0.5px solid var(--color-border-tertiary, #e3e7ec);
  border-radius: var(--border-radius-lg, 12px);
  padding: 18px;
  background: var(--color-background-primary, #fff);
  display: flex;
  flex-direction: column;
}

.plan-name { font-size: 15px; font-weight: 600; }

.plan-price {
  font-size: 26px;
  font-weight: 700;
  margin-top: 6px;
  color: var(--primary, #1a6fc4);
}

.plan-price small { font-size: 13px; font-weight: 400; color: var(--text-3, #79818f); margin-left: 2px; }

.plan-desc { font-size: 12.5px; color: var(--text-3, #79818f); margin-top: 4px; }

.plan-features {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  flex: 1;
}

.plan-features li {
  font-size: 12.5px;
  color: var(--text-2, #4a5260);
  padding: 4px 0 4px 16px;
  position: relative;
}

.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success, #0f8a4d);
  font-weight: 700;
}

.plan-disabled { opacity: 0.55; }

.plan-foot {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--border, #e3e7ec);
  font-size: 12.5px;
  color: var(--text-3, #79818f);
  line-height: 1.6;
}

/* 表格内联输入 */
.table-wrap .input {
  min-height: 32px;
  padding: 5px 9px;
  font-size: 13px;
}

td.td-center { text-align: center; }

td.td-center input[type="checkbox"] {
  width: 17px;
  height: 17px;
  cursor: pointer;
  accent-color: var(--primary, #1a6fc4);
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  background: #f2f4f7;
  padding: 1px 5px;
  border-radius: 4px;
}

/* 登录页 */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #16233a, #1a6fc4);
  padding: 20px;
}

.login-card {
  background: #fff;
  border-radius: 16px;
  padding: 34px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.login-title { font-size: 21px; font-weight: 700; text-align: center; }
.login-sub { font-size: 13px; color: var(--text-3); text-align: center; margin-top: 5px; margin-bottom: 24px; }

.login-roles { display: grid; gap: 10px; margin-bottom: 20px; }

.login-role {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border: 2px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
}

.login-role:hover { border-color: var(--primary); }

.login-role.active {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.login-role-icon { font-size: 22px; }
.login-role-name { font-weight: 600; font-size: 14px; }
.login-role-desc { font-size: 12px; color: var(--text-3); }

/* 响应式 */
@media (max-width: 860px) {
  .sidebar { width: 64px; }
  .brand-title, .brand-sub, .nav-item span:not(.nav-icon):not(.nav-badge),
  .role-switch, .nav-group-label { display: none; }
  .nav-item { justify-content: center; }
  .content { padding: 16px; }
}

/* ============ 资质审核材料 ============ */
.audit-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 4px;
}

.material-list {
  border: 1px solid var(--color-border-tertiary, #e3e7ec);
  border-radius: 10px;
  overflow: hidden;
}

.material-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--color-border-tertiary, #e3e7ec);
  background: #fff;
}

.material-row:last-child { border-bottom: none; }
.material-row:nth-child(even) { background: #fafbfc; }

.material-label {
  width: 150px;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2, #4a5260);
}

.material-hint {
  font-size: 11.5px;
  font-weight: 400;
  color: var(--text-3, #79818f);
  margin-top: 3px;
  line-height: 1.5;
}

.material-value {
  flex: 1;
  font-size: 13.5px;
  color: var(--text-1, #1f2733);
  word-break: break-all;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.material-flag {
  width: 62px;
  flex-shrink: 0;
  text-align: right;
}

.material-img {
  max-width: 220px;
  max-height: 150px;
  border-radius: 8px;
  border: 1px solid var(--color-border-tertiary, #e3e7ec);
  object-fit: contain;
  cursor: zoom-in;
}

.material-img:hover {
  border-color: var(--primary, #1a6fc4);
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.3px;
}

/* ============ 用户技能等级（每工种独立评定）============ */
.skill-cell {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 180px;
}

.skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-2, #4a5260);
  background: #f4f6f9;
  border-radius: 6px;
  padding: 3px 8px;
  white-space: nowrap;
}

.skill-chip .badge {
  font-size: 11px;
  padding: 1px 6px;
}

/* 技能明细表（用户详情弹层） */
.skill-detail-table {
  border: 1px solid var(--color-border-tertiary, #e3e7ec);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 8px;
}

.skill-detail-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-border-tertiary, #e3e7ec);
  background: #fff;
}

.skill-detail-row:last-child { border-bottom: none; }
.skill-detail-row:nth-child(even) { background: #fafbfc; }

.skill-detail-icon {
  font-size: 18px;
  width: 26px;
  text-align: center;
  flex-shrink: 0;
}

.skill-detail-name {
  flex: 1;
  font-size: 13px;
  color: var(--text-1, #1f2733);
  font-weight: 500;
}

.skill-detail-group {
  font-size: 11.5px;
  color: var(--text-3, #79818f);
  width: 70px;
  flex-shrink: 0;
}

/* 四格进度条 */
.skill-detail-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
  width: 44px;
  flex-shrink: 0;
}

.skill-detail-bars i {
  width: 6px;
  height: 7px;
  border-radius: 2px;
  background: #e3e7ec;
  display: block;
}

.skill-detail-bars i:nth-child(2) { height: 10px; }
.skill-detail-bars i:nth-child(3) { height: 14px; }
.skill-detail-bars i:nth-child(4) { height: 18px; }

.skill-detail-bars i.on { background: #1a6fc4; }

/* ============ 区域管理：行内编辑 ============ */
.cell-input {
  border: 1px solid var(--color-border-tertiary, #e3e7ec);
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 13px;
  color: var(--text-1, #1f2733);
  background: #fff;
  font-family: inherit;
}

.cell-input:focus {
  outline: none;
  border-color: var(--primary, #1a6fc4);
  box-shadow: 0 0 0 2px rgba(26, 111, 196, 0.12);
}

.cell-input::placeholder {
  color: var(--text-3, #79818f);
}

/* ============ 工种战绩卡（每个工种独立）============ */
.skill-record {
  padding: 12px 14px;
  border-bottom: 1px solid var(--color-border-tertiary, #e3e7ec);
  background: #fff;
}

.skill-record:last-child { border-bottom: none; }
.skill-record:nth-child(even) { background: #fafbfc; }

.skill-record-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.skill-record-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
  padding-left: 38px;
}

.skill-stat {
  font-size: 12px;
  color: var(--text-3, #79818f);
}

.skill-stat b {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-1, #1f2733);
  margin: 0 2px;
}

/* ============ 登录页 ============ */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f2f6fb 0%, #e8eef7 100%);
  padding: 24px;
}

.login-box {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 8px 32px rgba(31, 39, 51, 0.1);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.login-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1a6fc4, #12509a);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.login-title {
  font-size: 18px;
  font-weight: 700;
  color: #1f2733;
  line-height: 1.3;
}

.login-sub {
  font-size: 12px;
  color: #79818f;
  margin-top: 3px;
}

.login-label {
  display: block;
  font-size: 13px;
  color: #4a5260;
  margin-bottom: 6px;
  font-weight: 500;
}

.login-input {
  width: 100%;
  border: 1px solid #e3e7ec;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  margin-bottom: 16px;
  font-family: inherit;
  box-sizing: border-box;
}

.login-input:focus {
  outline: none;
  border-color: #1a6fc4;
  box-shadow: 0 0 0 3px rgba(26, 111, 196, 0.12);
}

.login-error {
  color: #d9482c;
  font-size: 13px;
  min-height: 18px;
  margin-bottom: 10px;
}

.login-btn {
  width: 100%;
  border: none;
  border-radius: 8px;
  background: #1a6fc4;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 11px 0;
  cursor: pointer;
  font-family: inherit;
}

.login-btn:hover { background: #12509a; }
.login-btn:disabled { background: #a8b6c8; cursor: not-allowed; }

.login-tips {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #eef1f4;
  font-size: 12px;
  color: #98a1ad;
  text-align: center;
  line-height: 1.6;
}

/* 服务商账号的数据范围锁定提示 */
.agent-lock {
  font-size: 12px;
  color: #79818f;
  padding: 8px 10px;
  background: #f4f6f9;
  border-radius: 8px;
  line-height: 1.5;
}

.agent-lock b { color: #1f2733; }

/* ============ 列表分页 ============ */
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 4px 2px;
  flex-wrap: wrap;
}

.pager-info {
  font-size: 12.5px;
  color: var(--text-3, #79818f);
}

.pager .btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

/* 弹层与提示的挂载点（不随主内容重建而闪烁） */
.modal-host, .toast-host {
  position: relative;
  z-index: 100;
}
