/* ==========================================================================
   广告投放平台样式（dsp 站）— 浅色主题
   登录 / 注册 / 广告主后台 / 管理后台 共用，请勿在页面内写死颜色
   ========================================================================== */
:root {
  --bg: #f4f6fb;
  --bg-2: #eef1f8;
  --side: #ffffff;
  --panel: #ffffff;
  --panel-2: #f7f9fc;
  --line: #e6eaf2;
  --line-2: #d5dbe7;
  --text: #0f172a;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --brand: #2563eb;
  --brand-2: #0ea5e9;
  --brand-3: #7c3aed;
  --ok: #16a34a;
  --warn: #d97706;
  --danger: #dc2626;
  --info: #0284c7;
  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, .12);
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  --side-w: 236px;
  --head-h: 60px;
}

* { box-sizing: border-box; }
body {
  margin: 0; font-family: var(--font); background: var(--bg); color: var(--text);
  line-height: 1.6; -webkit-font-smoothing: antialiased; font-size: 14px;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.32; color: var(--text); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }

.grad-text { background: linear-gradient(100deg, #2563eb, #0ea5e9 50%, #7c3aed); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.hidden { display: none !important; }
.center { text-align: center; }

/* ========================== 登录 / 注册页 ========================== */
.auth-body {
  min-height: 100vh; display: grid; place-items: center; padding: 30px 20px;
  background:
    radial-gradient(900px 560px at 12% -10%, rgba(37, 99, 235, .10), transparent 62%),
    radial-gradient(760px 520px at 90% 105%, rgba(124, 58, 237, .09), transparent 64%),
    var(--bg);
}
.auth-card {
  width: 100%; max-width: 432px; padding: 36px 34px 30px; border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 2px 4px rgba(15, 23, 42, .03), 0 20px 48px rgba(15, 23, 42, .10);
}
.auth-card.wide { max-width: 520px; }
.auth-brand { display: flex; align-items: center; gap: 12px; justify-content: center; margin-bottom: 24px; }
.auth-brand .mark {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-weight: 900; font-size: 19px; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2) 55%, var(--brand-3));
  box-shadow: 0 8px 20px rgba(37, 99, 235, .32);
}
.auth-brand .t { font-size: 16.5px; font-weight: 700; }
.auth-brand .s { font-size: 11.5px; color: var(--muted-2); }
.auth-card h1 { font-size: 23px; text-align: center; margin-bottom: 8px; }
.auth-card .sub { text-align: center; color: var(--muted); font-size: 13.5px; margin-bottom: 26px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); margin-bottom: 24px; }
.auth-tabs a { text-align: center; padding: 9px; border-radius: 9px; font-size: 14px; color: var(--muted); transition: .18s; }
.auth-tabs a.active { background: linear-gradient(100deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 700; box-shadow: 0 4px 12px rgba(37, 99, 235, .28); }
.auth-foot { text-align: center; margin-top: 20px; font-size: 13.5px; color: var(--muted); }
.auth-foot a { color: var(--brand); font-weight: 600; }
.auth-extra { display: flex; align-items: center; justify-content: space-between; margin: -6px 0 18px; font-size: 13px; color: var(--muted); }
.auth-extra label { display: flex; align-items: center; gap: 7px; cursor: pointer; }
.back-home { position: fixed; top: 22px; right: 26px; font-size: 13.5px; color: var(--muted); }
.back-home:hover { color: var(--brand); }
.auth-note {
  margin-top: 22px; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 12.5px; color: var(--muted);
  background: #f0f7ff; border: 1px solid #cfe2ff; line-height: 1.7;
}
.auth-note b { color: #1d4ed8; }

/* ============================ 表单控件 ============================ */
.field { margin-bottom: 16px; }
.field > label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 7px; }
.field .req { color: var(--danger); margin-left: 3px; }
.input, .select, .textarea {
  width: 100%; padding: 11px 13px; border-radius: var(--radius-sm); font-size: 14px; font-family: inherit;
  background: #fff; border: 1px solid var(--line-2); color: var(--text); outline: none; transition: .18s;
}
.input:hover, .select:hover, .textarea:hover { border-color: #b9c2d4; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37, 99, 235, .13); }
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.textarea { min-height: 92px; resize: vertical; }
.select option { background: #fff; color: var(--text); }
.field .tip { font-size: 12px; color: var(--muted-2); margin-top: 6px; }
.field .err { font-size: 12px; color: var(--danger); margin-top: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.check { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: var(--muted); cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--brand); }
.check a { color: var(--brand); }

/* ============================== 按钮 ============================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 18px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; font-family: inherit;
  border: 1px solid transparent; cursor: pointer; transition: .18s; white-space: nowrap;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: linear-gradient(100deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 4px 14px rgba(37, 99, 235, .26); }
.btn-primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(37, 99, 235, .34); }
.btn-ghost { background: #fff; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); background: #f5f9ff; }
.btn-danger { background: #fef2f2; color: var(--danger); border-color: #fecaca; }
.btn-danger:hover:not(:disabled) { background: #fee2e2; }
.btn-ok { background: #f0fdf4; color: var(--ok); border-color: #bbf7d0; }
.btn-ok:hover:not(:disabled) { background: #dcfce7; }
.btn-sm { padding: 6px 12px; font-size: 12.5px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-lg { padding: 13px 22px; font-size: 15px; }

/* ============================ 后台框架 ============================ */
.layout { display: flex; min-height: 100vh; background: var(--bg); }
.sidebar {
  width: var(--side-w); flex: none; background: var(--side); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; left: 0; z-index: 40;
}
.sidebar .brand { display: flex; align-items: center; gap: 11px; padding: 16px 18px; border-bottom: 1px solid var(--line); height: var(--head-h); }
.sidebar .brand .mark {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none;
  font-weight: 900; font-size: 14px; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 4px 12px rgba(37, 99, 235, .28);
}
.sidebar .brand .t { font-size: 14.5px; font-weight: 700; line-height: 1.2; }
.sidebar .brand .s { font-size: 10.5px; color: var(--muted-2); }
.menu { flex: 1; overflow-y: auto; padding: 12px 10px 24px; }
.menu::-webkit-scrollbar { width: 6px; }
.menu::-webkit-scrollbar-thumb { background: #d5dbe7; border-radius: 3px; }
.menu .group { font-size: 11px; color: var(--muted-2); letter-spacing: 1px; padding: 14px 12px 7px; }
.menu a {
  display: flex; align-items: center; gap: 10px; padding: 9.5px 12px; border-radius: 9px;
  font-size: 13.5px; color: var(--muted); transition: .16s; margin-bottom: 2px; cursor: pointer;
}
.menu a:hover { background: var(--panel-2); color: var(--text); }
.menu a.active { background: linear-gradient(100deg, rgba(37, 99, 235, .10), rgba(14, 165, 233, .07)); color: var(--brand); font-weight: 600; box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .18); }
.menu a .ic { width: 18px; text-align: center; font-size: 15px; flex: none; }
.menu a .badge {
  margin-left: auto; font-size: 11px; padding: 1px 7px; border-radius: 999px;
  background: var(--danger); color: #fff; font-weight: 700;
}

.main { flex: 1; margin-left: var(--side-w); min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: var(--head-h); flex: none; display: flex; align-items: center; gap: 16px;
  padding: 0 22px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 30;
}
.topbar .page-title { font-size: 15.5px; font-weight: 700; }
.topbar .spacer { flex: 1; }
.topbar .icon-btn {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; cursor: pointer;
  background: #fff; border: 1px solid var(--line); color: var(--muted); font-size: 15px; position: relative;
}
.topbar .icon-btn:hover { color: var(--brand); border-color: var(--brand); background: #f5f9ff; }
.topbar .icon-btn .dot {
  position: absolute; top: -4px; right: -4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px;
  background: var(--danger); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center;
  box-shadow: 0 0 0 2px #fff;
}
.user-chip { display: flex; align-items: center; gap: 10px; padding: 5px 12px 5px 5px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); cursor: pointer; }
.user-chip:hover { border-color: var(--line-2); background: #f1f5fb; }
.user-chip .av {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--brand-2), var(--brand-3));
}
.user-chip .nm { font-size: 13px; font-weight: 600; }
.user-chip .co { font-size: 11px; color: var(--muted-2); }
.dropdown {
  position: absolute; right: 22px; top: 56px; min-width: 190px; padding: 7px; border-radius: 12px; z-index: 60;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.dropdown a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.dropdown a:hover { background: var(--panel-2); color: var(--brand); }
.dropdown .sep { height: 1px; background: var(--line); margin: 6px 4px; }

.content { padding: 22px; flex: 1; }
.page { display: none; }
.page.active { display: block; animation: fade .22s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }

.page-head { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 20px; }
.page-head h2 { font-size: 20px; }
.page-head .desc { font-size: 13px; color: var(--muted); width: 100%; margin-top: -8px; }
.page-head .spacer { flex: 1; }

/* ============================== 卡片 ============================== */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.card-head h3 { font-size: 15.5px; }
.card-head .spacer { flex: 1; }
.card-head .sub { font-size: 12.5px; color: var(--muted-2); }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.kpi {
  padding: 17px 18px; border-radius: var(--radius); border: 1px solid var(--line);
  background: #fff; box-shadow: var(--shadow);
}
.kpi .lbl { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 7px; margin-bottom: 9px; }
.kpi .val { font-size: 24px; font-weight: 800; letter-spacing: -.4px; color: var(--text); }
.kpi .val small { font-size: 13px; font-weight: 600; color: var(--muted); margin-left: 3px; }
.kpi .foot { font-size: 12px; color: var(--muted-2); margin-top: 7px; display: flex; align-items: center; gap: 6px; }
.kpi .foot .up { color: var(--ok); }
.kpi .foot .down { color: var(--danger); }
.kpi.accent { border-color: rgba(37, 99, 235, .30); background: linear-gradient(160deg, rgba(37, 99, 235, .07), rgba(14, 165, 233, .03)); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }

/* ============================== 表格 ============================== */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 640px; }
table.tbl th {
  text-align: left; padding: 12px 14px; font-size: 12.5px; font-weight: 600; color: var(--muted);
  background: var(--panel-2); border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--text); }
table.tbl tbody tr:hover { background: #f8fafd; }
table.tbl tbody tr:last-child td { border-bottom: 0; }
table.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
table.tbl .actions { display: flex; gap: 6px; flex-wrap: wrap; }
table.tbl th.pick-col, table.tbl td.pick-col { width: 42px; text-align: center; padding-left: 10px; padding-right: 6px; }
table.tbl input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--brand); cursor: pointer; vertical-align: middle; }
table.tbl tbody tr.picked { background: #f2f7ff; }
table.tbl tbody tr.picked:hover { background: #eaf2ff; }
.empty { padding: 46px 20px; text-align: center; color: var(--muted-2); font-size: 13.5px; }
.empty .ico { font-size: 34px; margin-bottom: 10px; opacity: .5; }

/* ============================== 状态标签 ============================== */
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag.active, .tag.approved, .tag.paid, .tag.done, .tag.on { color: #15803d; background: #ecfdf3; }
.tag.pending { color: #b45309; background: #fff7ed; }
.tag.paused, .tag.ended, .tag.off { color: #526581; background: #f1f5f9; }
.tag.rejected, .tag.disabled { color: #b91c1c; background: #fef2f2; }
.tag.info { color: #0369a1; background: #f0f9ff; }
.tag.purple { color: #6d28d9; background: #f5f3ff; }
.tag.plain::before { display: none; }

/* ============================== 工具条 ============================== */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.toolbar .spacer { flex: 1; }
.toolbar .input, .toolbar .select { width: auto; min-width: 150px; padding: 8px 12px; font-size: 13px; }
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.seg button {
  padding: 6px 14px; border-radius: 7px; border: 0; background: transparent; color: var(--muted);
  font-size: 13px; font-family: inherit; cursor: pointer; transition: .16s;
}
.seg button:hover { color: var(--brand); }
.seg button.active { background: linear-gradient(100deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 700; box-shadow: 0 2px 8px rgba(37, 99, 235, .26); }

/* ============================== 进度 / 图表 ============================== */
.bar-track { height: 7px; border-radius: 999px; background: #e9eef6; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transition: width .5s; }
.chart-box { position: relative; width: 100%; height: 280px; }
.chart-box.sm { height: 210px; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }

/* ============================== 弹窗 ============================== */
.modal-mask {
  position: fixed; inset: 0; z-index: 200; background: rgba(15, 23, 42, .45); backdrop-filter: blur(3px);
  display: none; align-items: flex-start; justify-content: center; padding: 60px 20px; overflow-y: auto;
}
.modal-mask.open { display: flex; }
.modal {
  width: 100%; max-width: 620px; border-radius: var(--radius-lg); background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-lg); animation: fade .2s ease both;
}
.modal.wide { max-width: 900px; }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 16px; }
.modal-head .spacer { flex: 1; }
.modal-head .x { cursor: pointer; color: var(--muted-2); font-size: 19px; line-height: 1; }
.modal-head .x:hover { color: var(--text); }
.modal-body { padding: 20px 22px; }
.modal-foot { padding: 16px 22px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; }

/* ============================== Toast ============================== */
.toast-host { position: fixed; right: 20px; bottom: 20px; z-index: 999; display: grid; gap: 10px; }
.toast {
  padding: 12px 17px; border-radius: 11px; font-size: 13.5px; min-width: 200px; max-width: 340px;
  background: #fff; color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow-lg); animation: fade .25s ease both;
}
.toast.ok { border-color: #86efac; background: #f6fef9; }
.toast.err { border-color: #fecaca; background: #fff7f7; }

/* ============================== 详情列表 ============================== */
.dl { display: grid; grid-template-columns: 116px 1fr; gap: 11px 16px; font-size: 13.5px; }
.dl dt { color: var(--muted-2); }
.dl dd { margin: 0; word-break: break-all; color: var(--text); }

/* ============================== 分页 ============================== */
.pager { display: flex; gap: 6px; align-items: center; justify-content: flex-end; margin-top: 14px; font-size: 13px; color: var(--muted); }
.pager button {
  min-width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: #fff;
  color: var(--muted); font-family: inherit; font-size: 13px; cursor: pointer;
}
.pager button:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.pager button.active { background: linear-gradient(100deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 700; border-color: transparent; }
.pager button:disabled { opacity: .45; cursor: not-allowed; }

/* ============================== 素材预览 ============================== */
.mat-thumb {
  width: 46px; height: 46px; border-radius: 9px; object-fit: cover; background: #f1f5f9;
  border: 1px solid var(--line); display: grid; place-items: center; font-size: 18px;
}
.dropzone {
  border: 1.5px dashed var(--line-2); border-radius: var(--radius); padding: 30px 20px; text-align: center;
  cursor: pointer; transition: .18s; background: #fbfcfe;
}
.dropzone:hover, .dropzone.over { border-color: var(--brand); background: #f2f7ff; }
.dropzone .ico { font-size: 30px; margin-bottom: 10px; opacity: .7; }
.dropzone .t { font-size: 14px; margin-bottom: 5px; color: var(--text); }
.dropzone .s { font-size: 12px; color: var(--muted-2); }

/* ============================== 提示条 ============================== */
.alert { padding: 12px 15px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 16px; line-height: 1.65; }
.alert-info { background: #f0f7ff; border: 1px solid #cfe2ff; color: #1e40af; }
.alert-warn { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.alert-ok { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.alert-danger { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }

/* ============================== 抽屉 ============================== */
.drawer-mask { position: fixed; inset: 0; background: rgba(15, 23, 42, .35); z-index: 150; display: none; }
.drawer-mask.open { display: block; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 380px; max-width: 92vw; z-index: 160;
  background: #fff; border-left: 1px solid var(--line); transform: translateX(100%); transition: .28s;
  display: flex; flex-direction: column; box-shadow: -8px 0 32px rgba(15, 23, 42, .10);
}
.drawer.open { transform: none; }
.drawer-head { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; }
.drawer-head h3 { font-size: 15.5px; }
.drawer-head .x { margin-left: auto; cursor: pointer; color: var(--muted-2); font-size: 19px; }
.drawer-head .x:hover { color: var(--text); }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 0; }
.notice-item { padding: 15px 20px; border-bottom: 1px solid var(--line); cursor: pointer; }
.notice-item:hover { background: var(--panel-2); }
.notice-item.unread { border-left: 3px solid var(--brand); background: #f8fbff; }
.notice-item h4 { font-size: 13.8px; margin-bottom: 5px; }
.notice-item p { font-size: 12.5px; color: var(--muted); }
.notice-item time { font-size: 11.5px; color: var(--muted-2); }

/* ======================= USDT 收款（TRC20） ======================= */
.pay-grid { display: grid; grid-template-columns: 1fr 268px; gap: 20px; align-items: start; }
.pay-amount {
  display: flex; align-items: baseline; gap: 10px; padding: 16px 18px; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(37, 99, 235, .07), rgba(14, 165, 233, .03));
  border: 1px solid rgba(37, 99, 235, .20);
}
.pay-amount .n { font-size: 26px; font-weight: 800; letter-spacing: -.5px; color: var(--brand); }
.pay-amount .u { font-size: 13px; color: var(--muted); }
.pay-addr {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--panel-2); border: 1px dashed var(--line-2);
}
.pay-addr .v { flex: 1; font-size: 13px; word-break: break-all; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text); }
.qr-box {
  padding: 16px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  text-align: center; box-shadow: var(--shadow);
}
.qr-box svg { width: 100%; height: auto; max-width: 230px; margin: 0 auto; display: block; }
.qr-box .cap { font-size: 12px; color: var(--muted); margin-top: 12px; line-height: 1.6; }
.qr-box .net {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px; padding: 3px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 700; color: #15803d; background: #ecfdf3; border: 1px solid #bbf7d0;
}
.qr-empty {
  display: grid; place-items: center; min-height: 230px; padding: 20px; border-radius: var(--radius);
  background: #fffbeb; border: 1px dashed #fde68a; color: #92400e; font-size: 13px; text-align: center; line-height: 1.8;
}
.steps-mini { display: grid; gap: 10px; counter-reset: pm; }
.steps-mini li { display: flex; gap: 10px; font-size: 13px; color: var(--muted); }
.steps-mini li::before {
  counter-increment: pm; content: counter(pm);
  width: 19px; height: 19px; flex: none; border-radius: 50%; display: grid; place-items: center;
  font-size: 11px; font-weight: 700; color: #fff; background: var(--brand); margin-top: 1px;
}

/* ======================= 图形验证码 ======================= */
.captcha-row { display: flex; gap: 10px; align-items: stretch; }
.captcha-row .input { flex: 1; min-width: 0; letter-spacing: 3px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.captcha-img {
  width: 128px; height: 44px; flex: none; border-radius: var(--radius-sm);
  border: 1px solid var(--line-2); background: #f1f5fb; cursor: pointer;
  transition: .18s; user-select: none;
}
.captcha-img:hover { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.captcha-row .captcha-loading { display: grid; place-items: center; width: 128px; height: 44px; font-size: 12px; color: var(--muted-2); border: 1px dashed var(--line-2); border-radius: var(--radius-sm); }

/* ============================== 响应式 ============================== */
.side-toggle { display: none; }
@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-2-1, .grid-3 { grid-template-columns: 1fr; }
  .pay-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .sidebar { transform: translateX(-100%); transition: .25s; box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: none; }
  .main { margin-left: 0; }
  .side-toggle { display: grid; place-items: center; }
  .kpis { grid-template-columns: 1fr; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .content { padding: 16px; }
  .user-chip .co { display: none; }
}
