/* ==========================================================================
   话费充值中控 · 设计系统
   ========================================================================== */
:root {
  --bg: #f4f6fb;
  --panel: #ffffff;
  --panel-2: #fafbfe;
  --line: #e8ecf4;
  --line-2: #f0f3f9;
  --text: #1b2434;
  --text-2: #4a566d;
  --muted: #7d8aa1;
  --primary: #3b6ef5;
  --primary-2: #6b4bf2;
  --primary-soft: #eef3ff;
  --green: #0fa968;
  --green-soft: #e7f8f0;
  --red: #e5484d;
  --red-soft: #fdecec;
  --amber: #e79b0b;
  --amber-soft: #fdf4e3;
  --purple: #7a5af8;
  --purple-soft: #f0ecff;
  --cyan: #0ba5ec;
  --cyan-soft: #e6f6fe;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(24, 38, 74, .05);
  --shadow: 0 4px 16px rgba(24, 38, 74, .07);
  --shadow-lg: 0 18px 50px rgba(20, 33, 66, .18);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

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

a { color: var(--primary); text-decoration: none; }
button { font-family: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -.2px; }
p { margin: 0; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #d3dae7; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #bcc6d8; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------------- 布局 ---------------- */
.shell { display: flex; min-height: 100vh; }

.sidebar {
  width: 228px;
  flex: 0 0 228px;
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 20;
}

.brand {
  display: flex; align-items: center; gap: 10px;
  padding: 20px 18px 16px;
}
.brand .logo {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, #3b6ef5, #7a5af8);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 15px;
  box-shadow: 0 6px 14px rgba(59, 110, 245, .28);
  flex: 0 0 auto;
}
.brand .name { font-size: 15px; font-weight: 700; letter-spacing: -.3px; }
.brand .sub { font-size: 11px; color: var(--muted); letter-spacing: .3px; }

.nav { flex: 1; overflow-y: auto; padding: 4px 10px 20px; }
.nav-group { margin-top: 14px; }
.nav-group-title {
  font-size: 11px; color: #9aa6bd; letter-spacing: .8px;
  padding: 0 10px 6px; font-weight: 600;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 9px;
  color: var(--text-2); font-size: 13.5px; cursor: pointer;
  margin-bottom: 2px; position: relative;
  transition: background .15s, color .15s;
  user-select: none;
}
.nav-item:hover { background: #f5f7fc; color: var(--text); }
.nav-item.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.nav-item.active::before {
  content: ""; position: absolute; left: -10px; top: 9px; bottom: 9px;
  width: 3px; border-radius: 0 3px 3px 0; background: var(--primary);
}
.nav-item .ico { width: 18px; height: 18px; flex: 0 0 18px; opacity: .9; }
.nav-item .tag {
  margin-left: auto; font-size: 10.5px; background: var(--red); color: #fff;
  border-radius: 20px; padding: 1px 6px; font-weight: 600;
}

.sidebar-foot {
  padding: 12px 14px; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 9px;
}
.avatar {
  width: 32px; height: 32px; border-radius: 9px; flex: 0 0 32px;
  background: linear-gradient(135deg, #eef3ff, #e7e2ff);
  color: var(--primary); font-weight: 700; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
}
.sidebar-foot .who { flex: 1; min-width: 0; }
.sidebar-foot .who b { display: block; font-size: 13px; font-weight: 600; }
.sidebar-foot .who span { font-size: 11.5px; color: var(--muted); }

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

.topbar {
  height: 60px; background: rgba(255, 255, 255, .85);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px;
  padding: 0 24px; position: sticky; top: 0; z-index: 15;
  backdrop-filter: blur(8px);
}
.topbar h1 { font-size: 17px; }
.topbar .crumb { font-size: 12px; color: var(--muted); margin-left: 2px; }
.topbar .right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.icon-btn {
  width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; color: var(--text-2);
  display: flex; align-items: center; justify-content: center; position: relative;
}
.icon-btn:hover { background: var(--panel-2); color: var(--text); }
.icon-btn .dot {
  position: absolute; top: 6px; right: 7px; width: 6px; height: 6px;
  background: var(--red); border-radius: 50%; box-shadow: 0 0 0 2px #fff;
}

.content { padding: 22px 24px 40px; flex: 1; max-width: 1560px; width: 100%; }

/* ---------------- 卡片 / 栅格 ---------------- */
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.card + .card { margin-top: 16px; }
.card-head {
  display: flex; align-items: center; gap: 10px;
  padding: 15px 18px; border-bottom: 1px solid var(--line-2);
}
.card-head h3 { font-size: 14.5px; }
.card-head .sub { font-size: 12px; color: var(--muted); }
.card-head .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.card-body { padding: 18px; }
.card-body.tight { padding: 0; }

.grid { display: grid; gap: 16px; }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.c2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 1280px) {
  .grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.c2-1 { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .grid.c4, .grid.c3, .grid.c2 { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}

/* ---------------- 指标卡 ---------------- */
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; position: relative; overflow: hidden;
}
.stat .label { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.stat .value { font-size: 26px; font-weight: 700; letter-spacing: -1px; margin-top: 6px; }
.stat .value small { font-size: 14px; font-weight: 600; color: var(--muted); margin-right: 2px; }
.stat .foot { margin-top: 8px; font-size: 12px; color: var(--muted); display: flex; gap: 10px; }
.stat .spark { position: absolute; right: 12px; top: 14px; opacity: .5; }
.stat.accent { background: linear-gradient(135deg, #3b6ef5, #6b4bf2); border: 0; color: #fff; }
.stat.accent .label, .stat.accent .foot { color: rgba(255, 255, 255, .78); }
.stat.accent .value { color: #fff; }

.up { color: var(--green); font-weight: 600; }
.down { color: var(--red); font-weight: 600; }

/* ---------------- 标签 ---------------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px;
  background: #f2f4f8; color: var(--text-2); white-space: nowrap;
}
.badge.green { background: var(--green-soft); color: var(--green); }
.badge.red { background: var(--red-soft); color: var(--red); }
.badge.amber { background: var(--amber-soft); color: #b57500; }
.badge.blue { background: var(--primary-soft); color: var(--primary); }
.badge.purple { background: var(--purple-soft); color: var(--purple); }
.badge.cyan { background: var(--cyan-soft); color: #0780b8; }
.badge.gray { background: #f2f4f8; color: #6b7891; }
.badge.lg { font-size: 12.5px; padding: 4px 10px; }

.dot-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); }
.dot-badge i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 14px; border-radius: 9px;
  border: 1px solid var(--line); background: #fff; color: var(--text-2);
  font-size: 13px; font-weight: 550; cursor: pointer;
  transition: all .15s; white-space: nowrap;
}
.btn:hover { background: var(--panel-2); color: var(--text); border-color: #dbe2ee; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 4px 10px rgba(59, 110, 245, .22); }
.btn.primary:hover { background: #2f60e6; }
.btn.danger { background: #fff; border-color: #f4c6c7; color: var(--red); }
.btn.danger:hover { background: var(--red-soft); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: #f1f4fa; }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12.5px; border-radius: 7px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-link { color: var(--primary); cursor: pointer; font-size: 13px; background: none; border: 0; padding: 0; }
.btn-link:hover { text-decoration: underline; }

/* ---------------- 表单 ---------------- */
.field { margin-bottom: 14px; }
.field > label { display: block; font-size: 12.5px; color: var(--text-2); font-weight: 550; margin-bottom: 6px; }
.field .hint { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.input, .select, textarea.input {
  width: 100%; height: 36px; border: 1px solid var(--line); border-radius: 9px;
  padding: 0 11px; font-size: 13.5px; color: var(--text); background: #fff;
  outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea.input { height: auto; padding: 9px 11px; resize: vertical; min-height: 76px; line-height: 1.6; }
.input:focus, .select:focus, textarea.input:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59, 110, 245, .12);
}
.input::placeholder { color: #a9b3c6; }
.input[readonly] { background: var(--bg); color: var(--text-2); cursor: default; }
.input[readonly]:focus { border-color: var(--line); box-shadow: none; }
.select option:disabled { color: #a9b3c6; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%237d8aa1' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.check { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-2); cursor: pointer; margin-right: 14px; }
.check input { width: 15px; height: 15px; accent-color: var(--primary); }
.switch { position: relative; width: 40px; height: 22px; flex: 0 0 40px; }
.switch input { display: none; }
.switch span { position: absolute; inset: 0; background: #d9e0ec; border-radius: 20px; cursor: pointer; transition: .2s; }
.switch span::after { content: ""; position: absolute; width: 16px; height: 16px; background: #fff; border-radius: 50%; top: 3px; left: 3px; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--primary); }
.switch input:checked + span::after { transform: translateX(18px); }

/* ---------------- 表格 ---------------- */
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th {
  text-align: left; font-size: 12px; font-weight: 600; color: var(--muted);
  background: var(--panel-2); padding: 10px 14px; white-space: nowrap;
  border-bottom: 1px solid var(--line-2);
}
tbody td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); color: var(--text-2); vertical-align: middle; }
tbody tr:hover td { background: #fafcff; }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td .strong { color: var(--text); font-weight: 600; }
td .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--text-2); }
.cell-sub { font-size: 11.5px; color: var(--muted); }

/* 产品列表：绑定渠道明细（渠道-上游套餐-（重提次数）） */
.bind-list { display: flex; flex-direction: column; gap: 3px; max-width: 330px; }
.bind-line { display: flex; gap: 2px; font-size: 12.5px; line-height: 1.5; color: var(--text-2); }
.bind-line .bind-idx { flex: none; color: var(--muted); display: inline-flex; align-items: center; gap: 3px; }
.bind-line .bind-txt { word-break: break-all; }
.bind-line .muted { font-size: 11.5px; }
.bind-line.miss { color: var(--muted); }
.bind-line.miss .bind-txt { font-size: 12px; }
.bind-check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 14px; margin: 0; border-radius: 50%;
  background: var(--green-soft); color: var(--green);
  font-size: 10px; font-weight: 700; line-height: 1;
  box-shadow: 0 0 0 1px rgba(22, 163, 74, .25);
}
.actions { display: flex; gap: 10px; align-items: center; white-space: nowrap; }

/* ---------------- 工具条 ---------------- */
.toolbar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  padding: 14px 18px; border-bottom: 1px solid var(--line-2);
}
.toolbar .grow { flex: 1; }
.toolbar .input, .toolbar .select { width: auto; min-width: 140px; height: 34px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); padding: 0 18px; }
.tab {
  padding: 12px 4px; margin-right: 20px; font-size: 13.5px; color: var(--muted);
  cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 550;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--primary); border-color: var(--primary); font-weight: 650; }

/* ---------------- 分页 ---------------- */
.pagination { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--line-2); }
.pagination .info { font-size: 12.5px; color: var(--muted); margin-right: auto; }
.page-btn {
  min-width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; font-size: 12.5px; color: var(--text-2); padding: 0 8px;
}
.page-btn:hover { border-color: #cfd8e6; }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.page-btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---------------- 弹窗 ---------------- */
.overlay {
  position: fixed; inset: 0; background: rgba(20, 30, 55, .38);
  display: flex; align-items: center; justify-content: center; z-index: 100;
  padding: 30px; backdrop-filter: blur(2px); animation: fade .15s ease;
}
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
.modal {
  width: 560px; max-width: 100%; max-height: 88vh; background: #fff;
  border-radius: 16px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column;
  animation: pop .18s cubic-bezier(.2, .9, .3, 1.2);
}
.modal.wide { width: 820px; }
.modal.narrow { width: 440px; }
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0 } to { transform: none; opacity: 1 } }
.modal-head { padding: 18px 22px; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; gap: 10px; }
.modal-head h3 { font-size: 15.5px; }
.modal-head .close { margin-left: auto; cursor: pointer; color: var(--muted); font-size: 20px; line-height: 1; background: none; border: 0; padding: 4px; }
.modal-head .close:hover { color: var(--text); }
.modal-body { padding: 20px 22px; overflow-y: auto; }
.modal-foot { padding: 14px 22px; border-top: 1px solid var(--line-2); display: flex; gap: 10px; justify-content: flex-end; }

.drawer-mask { justify-content: flex-end; padding: 0; align-items: stretch; }
.drawer {
  width: 620px; max-width: 92vw; background: #fff; height: 100%;
  display: flex; flex-direction: column; box-shadow: -10px 0 40px rgba(20, 33, 66, .16);
  animation: slide .2s ease;
}
@keyframes slide { from { transform: translateX(30px); opacity: .6 } to { transform: none; opacity: 1 } }

/* ---------------- 提示 ---------------- */
#toast-host { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  background: #1f2937; color: #fff; padding: 10px 18px; border-radius: 10px;
  font-size: 13.5px; box-shadow: var(--shadow-lg); animation: toastIn .2s ease;
  display: flex; align-items: center; gap: 8px; max-width: 520px;
}
.toast.ok { background: #0c7a4d; }
.toast.err { background: #b42318; }
@keyframes toastIn { from { transform: translateY(-8px); opacity: 0 } to { transform: none; opacity: 1 } }

/* ---------------- 空状态 / 加载 ---------------- */
.empty { padding: 54px 20px; text-align: center; color: var(--muted); font-size: 13px; }
.empty .ico { font-size: 28px; opacity: .5; margin-bottom: 8px; }
.loading { padding: 48px; text-align: center; color: var(--muted); font-size: 13px; }
.spinner {
  width: 20px; height: 20px; border: 2px solid var(--line); border-top-color: var(--primary);
  border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; vertical-align: -4px; margin-right: 8px;
}
@keyframes spin { to { transform: rotate(360deg) } }

/* ---------------- 图表 ---------------- */
.chart-box { position: relative; }
.chart-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 10px; }
.chart-legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 5px; }
.bar-track { height: 6px; background: #eef1f7; border-radius: 6px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 6px; background: var(--primary); }

/* ---------------- 列表 ---------------- */
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line-2); }
.list-item:last-child { border-bottom: 0; }
.list-item .main-txt { flex: 1; min-width: 0; }
.list-item .main-txt b { display: block; font-size: 13px; font-weight: 600; color: var(--text); }
.list-item .main-txt span { font-size: 12px; color: var(--muted); }
.list-item .side { text-align: right; font-size: 12.5px; color: var(--muted); white-space: nowrap; }

/* ---------------- 详情 ---------------- */
.detail-grid { display: grid; grid-template-columns: 110px 1fr; gap: 10px 12px; font-size: 13px; }
.detail-grid dt { color: var(--muted); }
.detail-grid dd { margin: 0; color: var(--text); word-break: break-all; }
.code-block {
  background: #0f172a; color: #d6e2f5; border-radius: 10px; padding: 12px 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px;
  line-height: 1.7; overflow: auto; max-height: 220px; white-space: pre-wrap; word-break: break-all;
}
.alert-item { display: flex; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
.alert-item:last-child { border-bottom: 0; }
.alert-item .bar { width: 3px; border-radius: 3px; background: var(--amber); flex: 0 0 3px; }
.alert-item.danger .bar { background: var(--red); }
.alert-item.info .bar { background: var(--primary); }
.alert-item .txt b { font-size: 13px; }
.alert-item .txt p { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ---------------- 代理端特有 ---------------- */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 14px; }
.prod-card {
  border: 1px solid var(--line); border-radius: 12px; padding: 15px; cursor: pointer;
  transition: all .15s; background: #fff; position: relative;
}
.prod-card:hover { border-color: #c9d6f5; box-shadow: var(--shadow); transform: translateY(-1px); }
.prod-card.sel { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59, 110, 245, .1); }
.prod-card .tag-cat { font-size: 11px; color: var(--muted); }
.prod-card .pname { font-size: 14px; font-weight: 650; margin: 4px 0 2px; }
.prod-card .face { font-size: 12px; color: var(--muted); }
.prod-card .price { font-size: 20px; font-weight: 700; color: var(--primary); margin-top: 10px; letter-spacing: -.6px; }
.prod-card .price small { font-size: 12px; font-weight: 600; margin-right: 2px; }
.prod-card .ops { position: absolute; top: 14px; right: 14px; display: flex; gap: 3px; }
.prod-card .ops span { font-size: 10.5px; background: #f2f5fa; color: var(--muted); border-radius: 4px; padding: 1px 4px; }
.amount-preset { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.amount-preset button {
  border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 5px 14px;
  font-size: 13px; cursor: pointer; color: var(--text-2); font-weight: 600;
}
.amount-preset button:hover, .amount-preset button.on { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.balance-hero {
  background: linear-gradient(120deg, #2f5fe8, #6b4bf2 60%, #8b5cf6);
  border-radius: 16px; padding: 24px 26px; color: #fff; position: relative; overflow: hidden;
}
.balance-hero::after {
  content: ""; position: absolute; right: -40px; top: -60px; width: 220px; height: 220px;
  border-radius: 50%; background: rgba(255, 255, 255, .09);
}
.balance-hero .lbl { font-size: 12.5px; color: rgba(255, 255, 255, .78); }
.balance-hero .num { font-size: 38px; font-weight: 750; letter-spacing: -1.6px; margin: 4px 0 2px; }
.balance-hero .num small { font-size: 18px; font-weight: 600; margin-right: 3px; }
.balance-hero .sub { font-size: 12.5px; color: rgba(255, 255, 255, .8); }
.balance-hero .acts { position: absolute; right: 24px; bottom: 22px; display: flex; gap: 10px; z-index: 2; }
.balance-hero .acts .btn { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .3); color: #fff; backdrop-filter: blur(4px); }
.balance-hero .acts .btn:hover { background: rgba(255, 255, 255, .26); }

/* ---------------- 登录页 ---------------- */
.auth-wrap { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 100vh; }
.auth-left {
  background: linear-gradient(150deg, #14224a 0%, #25347a 42%, #4b3bb0 100%);
  color: #fff; padding: 52px 56px; position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.auth-left::before {
  content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(110, 140, 255, .38), transparent 62%);
  right: -180px; top: -160px;
}
.auth-left::after {
  content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, .3), transparent 65%);
  left: -120px; bottom: -140px;
}
.auth-left .brand { padding: 0; position: relative; z-index: 2; }
.auth-left .brand .logo { background: rgba(255, 255, 255, .16); box-shadow: none; }
.auth-left .brand .name { color: #fff; font-size: 16px; }
.auth-left .brand .sub { color: rgba(255, 255, 255, .6); }
.auth-copy { margin-top: auto; position: relative; z-index: 2; }
.auth-copy h2 { font-size: 32px; line-height: 1.35; letter-spacing: -1px; }
.auth-copy p { color: rgba(255, 255, 255, .72); font-size: 14px; margin-top: 14px; max-width: 420px; line-height: 1.8; }
.auth-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; margin-top: 34px; }
.auth-feat { display: flex; gap: 10px; align-items: flex-start; }
.auth-feat .fi {
  width: 30px; height: 30px; border-radius: 9px; background: rgba(255, 255, 255, .12);
  display: flex; align-items: center; justify-content: center; font-size: 14px; flex: 0 0 30px;
}
.auth-feat b { font-size: 13px; display: block; font-weight: 600; }
.auth-feat span { font-size: 11.5px; color: rgba(255, 255, 255, .6); }

.auth-right { display: flex; align-items: center; justify-content: center; padding: 40px; background: #fff; }
.auth-card { width: 372px; }
.auth-card h1 { font-size: 24px; letter-spacing: -.6px; }
.auth-card .lead { color: var(--muted); font-size: 13.5px; margin: 8px 0 26px; }
.auth-tabs { display: flex; background: #f4f6fb; border-radius: 10px; padding: 4px; margin-bottom: 20px; }
.auth-tabs button {
  flex: 1; height: 34px; border: 0; background: transparent; border-radius: 8px;
  font-size: 13px; font-weight: 550; color: var(--muted); cursor: pointer;
}
.auth-tabs button.on { background: #fff; color: var(--text); box-shadow: var(--shadow-sm); font-weight: 650; }
.auth-hint { margin-top: 18px; background: #f7f9fd; border: 1px dashed var(--line); border-radius: 10px; padding: 12px 14px; font-size: 12px; color: var(--muted); line-height: 1.9; }
.auth-hint b { color: var(--text-2); }
.auth-hint code { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; color: var(--primary); font-size: 11.5px; }
@media (max-width: 960px) { .auth-wrap { grid-template-columns: 1fr; } .auth-left { display: none; } }

/* ---------------- 其他 ---------------- */
.sep { height: 1px; background: var(--line-2); margin: 16px 0; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.mb8 { margin-bottom: 8px; } .mb12 { margin-bottom: 12px; } .mb16 { margin-bottom: 16px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.nowrap { white-space: nowrap; }
.text-right { text-align: right; }
.flex1 { flex: 1; }
.hidden { display: none !important; }
.pill-tabs { display: inline-flex; gap: 4px; background: #f2f5fa; border-radius: 9px; padding: 3px; }
.pill-tabs button {
  border: 0; background: transparent; border-radius: 7px; padding: 5px 12px;
  font-size: 12.5px; color: var(--muted); cursor: pointer; font-weight: 550;
}
.pill-tabs button.on { background: #fff; color: var(--text); box-shadow: var(--shadow-sm); }

/* ---------------- 批量操作条 ---------------- */
.bulkbar {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 10px 18px; background: #f8faff; border-bottom: 1px solid var(--line-2);
}
.bulkbar .bulk-count { font-size: 12.5px; color: var(--muted); }
.bulkbar .bulk-count b { color: var(--primary); font-size: 14px; margin: 0 2px; }
.bulkbar .bulk-sep { width: 1px; height: 18px; background: var(--line); margin: 0 4px; }
.bulkbar .grow { flex: 1; }
.bulkbar .btn:disabled { opacity: .45; }
.bulkbar .btn.danger:not(:disabled) { background: #fff; }

.chk { width: 15px; height: 15px; accent-color: var(--primary); cursor: pointer; vertical-align: middle; }

.btn-link.danger-link { color: var(--red); }

.bulk-result { max-height: 300px; overflow-y: auto; border: 1px solid var(--line-2); border-radius: 10px; }
.bulk-result-row {
  display: flex; align-items: center; gap: 12px; padding: 9px 12px;
  border-bottom: 1px solid var(--line-2); font-size: 12.5px;
}
.bulk-result-row:last-child { border-bottom: 0; }
.bulk-result-row .mono { flex: 0 0 auto; color: var(--text-2); }

/* ---------------- 单选卡片（失败处理方式等） ---------------- */
.radio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.radio-card {
  display: flex; gap: 10px; align-items: flex-start; cursor: pointer;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; transition: .16s;
}
.radio-card:hover { border-color: #c9d5e8; }
.radio-card.on { border-color: var(--primary); background: #f6f9ff; box-shadow: 0 0 0 3px rgba(46,110,246,.08); }
.radio-card input { margin-top: 2px; accent-color: var(--primary); }
.radio-card .rc-title { font-weight: 650; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.radio-card .rc-desc { font-size: 12px; color: var(--muted); line-height: 1.65; margin-top: 4px; }
@media (max-width: 720px) { .radio-cards { grid-template-columns: 1fr; } }

.warn-text { color: var(--amber); font-weight: 600; }
