/* 平台运营后台样式：亮色实用风，与源点管理端观感一致但独立（无依赖）。 */
:root {
  --bg: #f5f6f8; --panel: #fff; --line: #e6e8eb; --text: #1f2329; --muted: #8a9099;
  --primary: #2f6bff; --primary-d: #1d4ed8; --danger: #e5484d; --ok: #12a150; --warn: #d97706;
}
* { box-sizing: border-box; }
[v-cloak] { display: none; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 14px/1.5 -apple-system, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

/* ── 登录 ── */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.login-card {
  width: 340px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 32px 28px; box-shadow: 0 8px 30px rgba(0,0,0,.06); text-align: center;
}
.login-brand {
  display: inline-block; padding: 6px 14px; border-radius: 8px; background: #eff6ff;
  color: var(--primary); font-weight: 700; letter-spacing: 1px; margin-bottom: 14px;
}
.login-card h1 { font-size: 20px; margin: 0 0 4px; }
.login-sub { color: var(--muted); margin: 0 0 20px; font-size: 13px; }
.login-card label { display: block; text-align: left; font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.login-card input { width: 100%; margin-top: 6px; }
.login-hint { color: var(--muted); font-size: 12px; margin: 14px 0 0; }

/* ── 布局 ── */
.layout { min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 24px; padding: 0 22px; height: 56px;
  background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10;
}
.brand { font-weight: 700; font-size: 17px; }
.brand span { color: var(--muted); font-weight: 500; font-size: 13px; margin-left: 8px; }
.tabs { display: flex; gap: 6px; margin-right: auto; }
.tabs a {
  padding: 6px 14px; border-radius: 8px; cursor: pointer; color: var(--muted); font-weight: 600;
  position: relative; user-select: none;
}
.tabs a:hover { background: #f0f2f5; color: var(--text); }
.tabs a.active { background: #dbeafe; color: var(--primary); }
.topbar-ops { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.who { font-size: 13px; color: var(--muted); font-weight: 500; }
.main { padding: 22px; max-width: 1400px; width: 100%; margin: 0 auto; }

.page-head { display: flex; align-items: center; margin-bottom: 14px; }
.page-head h2 { font-size: 18px; margin: 0; }
.head-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.muted { color: var(--muted); font-size: 12px; }

/* ── 卡片/表格 ── */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 6px; overflow: hidden; }
.table-scroll { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th { color: var(--muted); font-weight: 600; background: #fafbfc; position: sticky; top: 0; }
.table td { vertical-align: top; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .ops { text-align: right; }
.table tr:last-child td { border-bottom: none; }
.table .empty { text-align: center; color: var(--muted); padding: 26px; }
.neg { color: var(--danger); font-weight: 600; }

/* ── 标签 ── */
.tag { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.tag-on { background: #e6f6ec; color: var(--ok); }
.tag-off { background: #fdecec; color: var(--danger); }
.tag-warn { background: #fef3e2; color: var(--warn); }

/* ── 表单/按钮 ── */
input, select {
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: #fff; color: var(--text);
}
input:focus, select:focus { outline: none; border-color: var(--primary); }
.btn {
  padding: 8px 14px; border: 1px solid var(--line); background: #fff; border-radius: 8px; cursor: pointer;
  font: inherit; font-weight: 600; color: var(--text);
}
.btn:hover { background: #f5f6f8; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-sm { padding: 5px 11px; font-size: 13px; }
.btn-block { width: 100%; margin-top: 4px; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-d); }

/* ── 弹窗 ── */
.modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,.32); display: flex; align-items: center; justify-content: center; z-index: 50; }
.modal { width: 420px; max-width: calc(100vw - 32px); background: #fff; border-radius: 12px; padding: 22px; }
.modal h3 { margin: 0 0 16px; font-size: 16px; }
.form-grid { display: flex; flex-direction: column; gap: 12px; }
.form-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.form-grid input, .form-grid select { color: var(--text); }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

/* ── toast ── */
.toast-box { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; }
.toast {
  padding: 9px 16px; border-radius: 8px; background: #303540; color: #fff; font-size: 13px;
  opacity: 0; transform: translateY(-8px); transition: .25s; box-shadow: 0 6px 20px rgba(0,0,0,.18);
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast-error { background: var(--danger); }
.toast-success { background: var(--ok); }
