:root {
  --bg: #0f1220;
  --panel: #1a1f36;
  --panel-2: #232a48;
  --text: #e8ecf4;
  --muted: #97a0bd;
  --brand: #5b7cfa;
  --ok: #2ecc71;
  --err: #ff5c6c;
  --line: #2c3356;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 26px;
  background: linear-gradient(135deg, #171c33 0%, #1c2340 55%, #202a52 100%);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .35);
}
.nav .brand { font-size: 19px; font-weight: 800; color: var(--text); display: flex; align-items: center; gap: 9px; letter-spacing: .5px; }
.nav .brand:hover { text-decoration: none; color: #fff; }
.brand-dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 9px; font-size: 17px;
  background: linear-gradient(135deg, #5b7cfa, #9a5bfa);
  box-shadow: 0 3px 10px rgba(91, 124, 250, .45);
}
.nav nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav nav a {
  color: #b9c2dd; padding: 7px 14px; border-radius: 8px; font-size: 14px;
  transition: background .15s, color .15s;
}
.nav nav a:hover { color: #fff; background: rgba(91, 124, 250, .18); text-decoration: none; }
.nav-sep { width: 1px; height: 20px; background: var(--line); margin: 0 8px; }
.nav-btn {
  background: linear-gradient(135deg, #5b7cfa, #7a5bfa); color: #fff; border: 0;
  border-radius: 8px; padding: 7px 15px; font-size: 13.5px; font-weight: 600; cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.nav-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(91, 124, 250, .5); }
a.nav-btn { display: inline-block; text-decoration: none; line-height: 1.2; }
.nav-btn.ghost { background: rgba(255, 255, 255, .07); border: 1px solid var(--line); color: #cfd6ea; }
.nav-btn.ghost:hover { border-color: var(--brand); color: #fff; box-shadow: 0 4px 14px rgba(91, 124, 250, .25); }

.container { max-width: 960px; margin: 24px auto; padding: 0 20px; }

h1 { font-size: 24px; }
h2 { font-size: 18px; margin-top: 28px; color: var(--muted); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.card, .panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
}
.card h2 { margin: 0 0 6px; color: var(--text); }
.card .desc { color: var(--muted); min-height: 40px; font-size: 14px; }

.panel { margin: 16px 0; }
.panel p { margin: 6px 0; }

.price { color: #ffd166; font-size: 22px; font-weight: 700; margin: 10px 0; }
.stock { color: var(--muted); font-size: 13px; margin-bottom: 10px; }

.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 9px 18px;
  cursor: pointer;
  font-size: 14px;
}
.btn:hover { background: #4a6ae0; text-decoration: none; }
.btn:disabled { background: #3a4160; cursor: not-allowed; }
.btn.danger { background: var(--err); }
.btn.danger:hover { background: #e04a5a; }
.btn.small { padding: 4px 12px; font-size: 13px; }

.form { display: flex; flex-direction: column; gap: 12px; max-width: 420px; }
.form.inline {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  max-width: none;
}
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.chk { flex-direction: row; align-items: center; gap: 6px; }

input, textarea {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  padding: 9px 12px;
  font-size: 14px;
  font-family: inherit;
}
input:focus, textarea:focus { outline: none; border-color: var(--brand); }
textarea { width: 100%; resize: vertical; }

.flash {
  padding: 10px 16px;
  border-radius: 8px;
  margin-bottom: 14px;
  font-size: 14px;
}
.flash.success { background: rgba(46, 204, 113, .15); color: var(--ok); border: 1px solid var(--ok); }
.flash.error { background: rgba(255, 92, 108, .15); color: var(--err); border: 1px solid var(--err); }
.flash.info { background: rgba(91, 124, 250, .15); color: var(--brand); border: 1px solid var(--brand); }

.tag { padding: 2px 10px; border-radius: 20px; font-size: 13px; }
.tag.pending { background: rgba(255, 209, 102, .15); color: #ffd166; }
.tag.ok { background: rgba(46, 204, 113, .15); color: var(--ok); }

.spinner {
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 2px solid rgba(255, 209, 102, .35);
  border-top-color: #ffd166;
  border-radius: 50%;
  vertical-align: -2px;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.cards, .cards li { list-style: none; padding: 0; margin: 0; }
.cards li {
  background: var(--panel-2);
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 8px;
}
code { color: #8be9fd; font-family: Consolas, monospace; }

.qr { width: 240px; height: 240px; background: #fff; padding: 8px; border-radius: 8px; }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}
.table th { color: var(--muted); font-weight: 600; }

.inline-form { display: inline; }
.hint { color: var(--muted); font-size: 13px; margin-top: 24px; }

.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 24px; }

.cats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 12px;
  margin: 16px 0 8px;
}
.cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 6px 10px;
  color: var(--text);
  font-size: 13px;
  text-decoration: none;
  text-align: center;
}
.cat:hover { border-color: var(--brand); text-decoration: none; }
.cat.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.cat-ico { font-size: 30px; line-height: 1; }
.cat-ico-img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.cat-name {
  max-width: 100%;
  line-height: 1.3;
  word-break: break-all;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cat-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cat-prev { flex: 0 0 auto; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; }
.cat-prev img { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; }
.cat-prev-emoji { font-size: 26px; line-height: 1; }
.cat-move { display: flex; gap: 6px; margin-left: auto; }
.cat-move .btn:disabled { opacity: .4; cursor: not-allowed; }
.cat-prod { width: 100%; }
.cat-prod summary { cursor: pointer; color: var(--muted, #888); font-size: 13px; user-select: none; }
.prod-checks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 10px 0; padding: 10px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; max-height: 220px; overflow-y: auto; }
.tag-other { font-size: 11px; color: #b7791f; border: 1px solid currentColor; border-radius: 4px; padding: 0 4px; margin-left: 4px; }
.up-box { margin-top: 8px; }
.up-item { display: flex; align-items: center; gap: 6px; max-width: 100%; }
.up-name { max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: middle; }
.up-pager { display: flex; align-items: center; gap: 10px; margin: 8px 0; }
.import-prog { margin: 10px 0; max-width: 720px; }
.import-bar { height: 10px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.import-bar-in { height: 100%; width: 0; background: #3182ce; transition: width .6s; }
.import-added { margin-top: 8px; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid #e6a23c; border-radius: 10px; padding: 10px 14px; max-height: 260px; overflow: auto; }
.import-added .imp-title { font-size: 13.5px; font-weight: 700; color: #e6a23c; margin-bottom: 6px; }
.import-added .imp-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 4px 0; border-top: 1px dashed var(--line); font-size: 13px; }
.import-added .imp-row:first-of-type { border-top: 0; }
.import-added .imp-cat { color: #8fb4ff; white-space: nowrap; font-weight: 600; }
.import-added .imp-name { color: var(--fg, #e8ecf5); flex: 1; min-width: 160px; word-break: break-all; }
.import-added .imp-up { color: #ffd76a; font-size: 12px; white-space: nowrap; }
.import-added .imp-chg { color: #ffb020; font-size: 12px; white-space: nowrap; font-weight: 600; }
.import-added .imp-rep { color: #ff7a7a; font-size: 12px; white-space: nowrap; }
.import-added .imp-sep { height: 1px; background: var(--line); margin: 8px 0; }
.import-added a.imp-gid { color: var(--brand, #5b8cff); font-size: 12px; white-space: nowrap; text-decoration: underline; text-underline-offset: 2px; }
.import-added a.imp-gid:hover { color: #9db8ff; }
.import-added .imp-more { margin-top: 6px; font-size: 12px; }
#import-all-btn:disabled { opacity: .6; cursor: wait; }
.batch-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-bottom: 12px; }
.batch-bar form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.batch-bar .inline-form { display: flex; align-items: center; }
.batch-bar .muted { margin-left: 4px; font-size: 13px; }
.batch-bar .batch-ck { width: 18px; height: 18px; accent-color: var(--brand); }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.btn.ghost:hover { background: var(--panel-2); color: var(--text); }
.btn.ghost.danger { border-color: rgba(255, 92, 108, .45); color: var(--err); }
.btn.ghost.danger:hover { background: rgba(255, 92, 108, .12); }
.filter-bar { margin: 10px 0 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.filter-bar form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filter-bar select { background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; color: var(--text); padding: 8px 12px; font-size: 14px; font-family: inherit; max-width: 340px; }
.filter-bar select:focus { outline: none; border-color: var(--brand); }

.np-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; max-width: 860px; }
.np-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 16px; }
.np-field { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 600; }
.np-field.wide { grid-column: 1 / -1; }
.np-field i { color: var(--err); font-style: normal; }
.np-field input, .np-field select { height: 42px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); padding: 0 12px; font-size: 14px; font-family: inherit; width: 100%; }
.np-field textarea { min-height: 42px; height: auto; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); padding: 10px 12px; font-size: 14px; font-family: inherit; width: 100%; line-height: 1.5; resize: none; overflow: hidden; }
.np-field input:focus, .np-field textarea:focus, .np-field select:focus { outline: none; border-color: var(--brand); }
.np-fetch { display: flex; gap: 10px; }
.np-fetch input { flex: 1; }
.np-fetch .ao-btn { flex: none; height: 42px; line-height: 40px; }
.np-foot { display: flex; align-items: center; justify-content: flex-end; gap: 16px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.np-msg { font-size: 13px; color: var(--muted); margin-right: auto; }
.np-msg.ok { color: var(--ok); }
.np-msg.err { color: var(--err); }
.prod-list { display: flex; flex-direction: column; gap: 10px; }
.prod-row { display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: 10px; padding: 12px 14px; transition: border-color .15s, box-shadow .15s; }
.prod-row:hover { border-color: #3a4470; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
.prod-row.off { border-left-color: #4a5170; opacity: .72; }
.prod-row > .batch-ck { width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.prod-form { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; flex: 1; min-width: 0; }
.pf-main { display: flex; flex-direction: column; gap: 6px; flex: 2 1 320px; min-width: 0; }
.pf-main input { width: 100%; }
.pf-main textarea.pf-name { width: 100%; min-height: 38px; height: auto; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--text); padding: 8px 10px; font-size: 14px; font-weight: 600; font-family: inherit; line-height: 1.5; resize: none; overflow: hidden; }
.pf-main textarea.pf-name:focus { outline: none; border-color: var(--brand); }
.pf-main input[name="description"] { color: var(--muted); font-size: 13px; }
.pf-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; flex: 1 1 auto; }
.pf-field { display: flex; align-items: center; gap: 6px; }
.pf-field > span { color: var(--muted); font-size: 12px; white-space: nowrap; }
.pf-field input { width: 86px; padding: 6px 8px; }
.pf-up { color: #ffd166; font-size: 13px; white-space: nowrap; background: rgba(255, 209, 102, .08); border: 1px solid rgba(255, 209, 102, .25); border-radius: 6px; padding: 3px 8px; }
.pf-stock { color: var(--ok); font-size: 13px; white-space: nowrap; }
.pf-stock.zero { color: var(--err); }
.pf-act { display: flex; align-items: center; gap: 8px; flex: none; }

.cat-modal { position: fixed; inset: 0; background: rgba(5, 8, 18, .72); display: flex; align-items: center; justify-content: center; z-index: 60; }
.cat-modal-box { width: min(1080px, 96vw); max-height: 82vh; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 40px rgba(0, 0, 0, .5); overflow: hidden; }
.cat-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 700; }
.cat-modal-x { background: none; border: 0; color: var(--muted); font-size: 18px; cursor: pointer; padding: 2px 8px; border-radius: 6px; }
.cat-modal-x:hover { color: var(--text); background: var(--panel-2); }
.legal-note { margin: 28px auto 8px; padding: 14px 18px; background: rgba(255, 92, 108, .08); border: 1px solid rgba(255, 92, 108, .35); border-left: 4px solid var(--err); border-radius: 10px; color: #ffb3ba; font-size: 13px; line-height: 1.8; }

/* 分站 */
.ss-bar { display: flex; gap: 12px; margin: 14px 0 4px; }
.ss-btn { background: linear-gradient(135deg, #5b7cfa, #7a5bfa); color: #fff; border: 0; border-radius: 10px; padding: 10px 22px; font-size: 14px; font-weight: 600; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.ss-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(91, 124, 250, .4); }
.ss-btn.ghost { background: var(--panel-2); color: var(--text); border: 1px solid var(--line); }
.ss-btn.ghost:hover { border-color: var(--brand); box-shadow: 0 6px 18px rgba(91, 124, 250, .2); }
.sub-prefix { display: flex; align-items: stretch; gap: 0; }
.sub-prefix input { flex: 1; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.sub-suffix { display: flex; padding: 0 12px; background: var(--panel-2); border: 1px solid var(--line); border-left: 0; border-radius: 0 8px 8px 0; color: var(--muted); font-size: 13px; white-space: nowrap; }
select.sub-suffix { cursor: pointer; appearance: auto; -webkit-appearance: auto; }
select.sub-suffix option { background: var(--panel-2); color: var(--text); }
.sub-list { display: flex; flex-direction: column; gap: 10px; padding: 6px 2px; max-height: 380px; overflow-y: auto; }
.sub-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; transition: border-color .15s, transform .15s; }
.sub-item:hover { border-color: var(--brand); transform: translateX(3px); text-decoration: none; }
.sub-name { color: var(--text); font-weight: 600; }
.sub-url { color: var(--muted); font-size: 13px; font-family: Consolas, monospace; flex: 1; }
.sub-tip { color: var(--muted); font-size: 12px; margin-top: 8px; }
.cat-modal-list { overflow-y: auto; padding: 8px 12px 14px; }
.cat-prod-item { display: flex; align-items: center; gap: 12px; padding: 11px 10px; border-bottom: 1px solid var(--line); color: var(--text); transition: background .15s, box-shadow .15s, transform .15s; border-radius: 8px; }
.cat-prod-item:hover { background: rgba(91, 124, 250, .16); box-shadow: inset 3px 0 0 var(--brand); transform: translateX(4px); text-decoration: none; }
.cat-prod-item:hover .cp-name { color: #fff; }
.cat-prod-item:last-child { border-bottom: none; }
.cp-no { flex: none; min-width: 22px; height: 22px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; color: var(--text); font-weight: 700; font-size: 12px; font-variant-numeric: tabular-nums; }
.cat-prod-item:hover .cp-no { background: var(--brand); border-color: var(--brand); color: #fff; }
.cat-prod-item.cur { background: rgba(255, 209, 102, .14); box-shadow: inset 3px 0 0 #ffd166; }
.cat-prod-item.cur .cp-name { color: #ffe3a3; font-weight: 700; }
.cat-prod-item.cur .cp-no { background: #ffd166; border-color: #ffd166; color: #1a1f36; }
.cp-name { flex: 1; min-width: 0; font-size: 14px; white-space: normal; overflow-wrap: anywhere; line-height: 1.5; }
.cp-price { color: #ffd166; font-weight: 700; font-size: 14px; white-space: nowrap; }
.cp-go { color: var(--brand); font-size: 13px; white-space: nowrap; }

.pd-wrap { display: flex; justify-content: center; padding: 10px 0 30px; }
.pd-card { width: min(560px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 26px 28px; box-shadow: 0 10px 34px rgba(0, 0, 0, .35); }
.pd-head { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.pd-name { flex: 1; min-width: 200px; margin: 0; font-size: 21px; line-height: 1.45; }
.pd-stock { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; padding: 12px 16px; border-radius: 12px; font-size: 15px; font-weight: 600; border: 1px solid var(--line); }
.pd-stock-ico { font-size: 20px; line-height: 1; }
.pd-stock-num { font-size: 20px; font-weight: 800; margin: 0 2px; }
.pd-stock.ok { color: var(--ok); background: rgba(46, 204, 113, .1); border-color: rgba(46, 204, 113, .4); }
.pd-stock.ok .pd-stock-num { color: var(--ok); }
.pd-stock.low { color: #ff9f43; background: rgba(255, 159, 67, .1); border-color: rgba(255, 159, 67, .45); }
.pd-stock.low .pd-stock-num { color: #ff9f43; }
.pd-stock.out { color: var(--err); background: rgba(255, 92, 108, .1); border-color: rgba(255, 92, 108, .4); }
.pd-stock.info { color: var(--muted); background: var(--panel-2); }
.pd-desc { display: block; margin: 16px 0 4px; padding: 12px 16px; background: rgba(255, 209, 102, .12); border: 1px solid rgba(255, 209, 102, .45); border-left: 4px solid #ffd166; border-radius: 10px; color: #ffe3a3; font-size: 15px; font-weight: 600; line-height: 1.7; overflow-wrap: anywhere; }
.pd-desc::before { content: "📢 "; }
.pd-price-row { display: flex; align-items: baseline; gap: 12px; margin: 18px 0 4px; padding: 14px 16px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; }
.pd-price-label { color: var(--muted); font-size: 13px; }
.pd-price { color: #ffd166; font-size: 26px; font-weight: 800; }
.pd-form { margin-top: 18px; display: flex; flex-direction: column; gap: 16px; }
.pd-field { display: flex; flex-direction: column; gap: 8px; }
.pd-label { color: var(--muted); font-size: 13px; font-weight: 600; }
.pd-stepper { display: flex; align-items: center; gap: 10px; }
.pd-step { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font-size: 18px; font-weight: 700; cursor: pointer; }
.pd-step:hover { border-color: var(--brand); color: var(--brand); }
.pd-qty { width: 84px; height: 38px; text-align: center; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font-size: 16px; font-weight: 700; }
.pd-max { color: var(--muted); font-size: 12px; }
.pd-contact { height: 42px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); padding: 0 14px; font-size: 14px; }
.pd-contact:focus, .pd-qty:focus { outline: none; border-color: var(--brand); }
.pd-total-row { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 16px; border: 1px dashed var(--line); border-radius: 12px; }
.pd-total-label { color: var(--muted); font-size: 13px; }
.pd-total { color: #ffd166; font-size: 22px; font-weight: 800; }
.pd-buy { height: 48px; border: 0; border-radius: 12px; background: linear-gradient(135deg, var(--brand), #7c5bfa); color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; letter-spacing: 2px; }
.pd-buy:hover { filter: brightness(1.1); }
.pd-buy:disabled { background: var(--panel-2); color: var(--muted); cursor: not-allowed; }
.pd-backs { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line); }
.pd-back { display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 22px; color: var(--muted); font-size: 14px; transition: all .18s; }
.pd-back:hover { color: #fff; background: var(--brand); border-color: var(--brand); text-decoration: none; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(91, 124, 250, .35); }

.od-wrap { max-width: 620px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; padding-bottom: 30px; }
.od-hero { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: 16px; border: 1px solid var(--line); }
.od-hero-ico { font-size: 30px; line-height: 1; flex: none; }
.od-hero-title { font-size: 19px; font-weight: 800; }
.od-hero-sub { color: var(--muted); font-size: 13px; margin-top: 4px; }
.od-hero.wait { background: rgba(255, 209, 102, .08); border-color: rgba(255, 209, 102, .35); }
.od-hero.wait .od-hero-title { color: #ffd166; }
.od-hero.doing { background: rgba(91, 124, 250, .1); border-color: rgba(91, 124, 250, .4); }
.od-hero.doing .od-hero-title { color: var(--brand); }
.od-hero.done { background: rgba(46, 204, 113, .1); border-color: rgba(46, 204, 113, .4); }
.od-hero.done .od-hero-title { color: var(--ok); }
.od-hero.fail { background: rgba(255, 92, 108, .1); border-color: rgba(255, 92, 108, .4); }
.od-hero.fail .od-hero-title { color: var(--err); }
.od-spin { display: inline-block; width: 24px; height: 24px; border: 3px solid var(--brand); border-top-color: transparent; border-radius: 50%; animation: odrot .8s linear infinite; }
@keyframes odrot { to { transform: rotate(360deg); } }
.od-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 8px 20px; }
.od-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.od-row:last-child { border-bottom: none; }
.od-k { flex: none; width: 76px; color: var(--muted); font-size: 13px; }
.od-v { flex: 1; min-width: 0; font-size: 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; overflow-wrap: anywhere; }
.od-name { line-height: 1.6; }
.od-no { font-family: ui-monospace, Consolas, monospace; font-size: 13px; color: #ffd166; background: var(--bg); padding: 4px 10px; border-radius: 8px; border: 1px solid var(--line); }
.od-amount { color: #ffd166; font-size: 20px; font-weight: 800; }
.od-copy { flex: none; font-size: 12px; padding: 3px 12px; border-radius: 999px; border: 1px solid var(--brand); background: none; color: var(--brand); cursor: pointer; }
.od-copy:hover { background: var(--brand); color: #fff; }
.od-copy:disabled { opacity: .6; cursor: default; }
.od-pay { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px; text-align: center; }
.od-qr-tip { font-size: 15px; margin-bottom: 14px; }
.od-qr-amount { color: #ffd166; font-weight: 800; font-size: 18px; margin-left: 6px; }
.od-qr-box { display: inline-block; padding: 10px; background: #fff; border-radius: 14px; }
.od-qr { display: block; width: 220px; height: 220px; }
.od-qr-sub { color: var(--muted); font-size: 13px; margin: 12px 0 16px; }
.od-pay-btns { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.od-pay-choice .payform { flex: 1; min-width: 140px; }
.od-btn { display: inline-block; height: 44px; padding: 0 26px; border: 0; border-radius: 12px; background: linear-gradient(135deg, var(--brand), #7c5bfa); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; line-height: 44px; text-align: center; }
.od-btn:hover { filter: brightness(1.1); text-decoration: none; }
.od-btn.ghost { background: var(--panel-2); color: var(--text); border: 1px solid var(--line); }
.od-btn.ghost:hover { border-color: var(--brand); color: var(--brand); filter: none; }
.od-btn.small { height: 32px; line-height: 30px; padding: 0 14px; font-size: 13px; }
.od-btn.wx { background: #22c35e; width: 100%; }
.od-btn.ali { background: #1677ff; width: 100%; }
.od-waiting { text-align: center; color: var(--muted); padding: 18px; }
.od-cards-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 0 6px; }
.od-cards-title { font-weight: 800; font-size: 16px; }
.od-card-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; background: var(--bg); }
.od-card-item code { font-size: 13px; overflow-wrap: anywhere; color: var(--text); }
.od-foot { display: flex; align-items: center; justify-content: center; gap: 18px; }
.od-link { color: var(--muted); font-size: 13px; }
.od-link:hover { color: var(--brand); }
#paymask { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 999; display: flex; align-items: center; justify-content: center; }
.paymask-box { background: #fff; color: #333; padding: 22px 30px; border-radius: 10px; font-size: 16px; box-shadow: 0 4px 20px rgba(0, 0, 0, .25); }

.q-wrap { max-width: 620px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; padding-bottom: 30px; }
.q-hero { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: 16px; border: 1px solid var(--line); background: rgba(91, 124, 250, .08); }
.q-hero-ico { font-size: 30px; line-height: 1; flex: none; }
.q-title { margin: 0; font-size: 20px; font-weight: 800; }
.q-sub { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.q-search { display: flex; gap: 10px; }
.q-input { flex: 1; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--text); padding: 0 16px; font-size: 14px; }
.q-input:focus { outline: none; border-color: var(--brand); }
.q-btn { flex: none; height: 46px; padding: 0 28px; border: 0; border-radius: 12px; background: linear-gradient(135deg, var(--brand), #7c5bfa); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; }
.q-btn:hover { filter: brightness(1.1); }
.q-pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 999px; border: 1px solid; }
.q-pill.wait { color: #ffd166; border-color: rgba(255, 209, 102, .4); background: rgba(255, 209, 102, .1); }
.q-pill.doing { color: var(--brand); border-color: rgba(91, 124, 250, .4); background: rgba(91, 124, 250, .1); }
.q-pill.done { color: var(--ok); border-color: rgba(46, 204, 113, .4); background: rgba(46, 204, 113, .1); }
.q-pill.fail { color: var(--err); border-color: rgba(255, 92, 108, .4); background: rgba(255, 92, 108, .1); }
.q-go { display: block; text-align: center; height: 46px; line-height: 46px; border-radius: 12px; background: linear-gradient(135deg, var(--brand), #7c5bfa); color: #fff; font-weight: 700; }
.q-go:hover { filter: brightness(1.1); text-decoration: none; }
.q-list-head { color: var(--muted); font-size: 14px; padding: 2px 4px; }
.q-list-head b { color: var(--text); }
.q-list { display: flex; flex-direction: column; gap: 10px; }
.q-item { display: flex; align-items: center; gap: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; color: var(--text); }
.q-item:hover { border-color: var(--brand); text-decoration: none; box-shadow: 0 4px 16px rgba(0, 0, 0, .3); }
.q-item-main { flex: 1; min-width: 0; }
.q-item-name { font-size: 14px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.q-item-no { color: var(--muted); font-size: 12px; font-family: ui-monospace, Consolas, monospace; margin-top: 4px; }
.q-item-time { color: var(--muted); font-size: 12px; margin-top: 2px; }
.q-item-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.q-item-amount { color: #ffd166; font-weight: 800; font-size: 15px; }
.q-item-go { flex: none; color: var(--muted); font-size: 20px; }
.q-empty { text-align: center; padding: 34px 20px; background: var(--panel); border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); }
.q-empty-ico { font-size: 34px; margin-bottom: 10px; }
.q-pager { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 4px 0; }
.q-page-btn { height: 36px; line-height: 34px; padding: 0 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--text); font-size: 13px; }
.q-page-btn:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.q-page-info { color: var(--muted); font-size: 13px; }

.ao-search { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.ao-search input { flex: 1; min-width: 220px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text); padding: 0 14px; font-size: 13px; }
.ao-search input:focus { outline: none; border-color: var(--brand); }
.ao-count { color: var(--muted); font-size: 13px; }
.ao-btn { display: inline-block; height: 40px; line-height: 38px; padding: 0 20px; border: 1px solid transparent; border-radius: 10px; background: linear-gradient(135deg, var(--brand), #7c5bfa); color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; text-align: center; }
.ao-btn:hover { filter: brightness(1.1); text-decoration: none; }
.ao-btn.ghost { background: var(--panel-2); color: var(--text); border-color: var(--line); }
.ao-btn.ghost:hover { border-color: var(--brand); color: var(--brand); filter: none; }
.ao-btn.small { height: 30px; line-height: 28px; padding: 0 14px; font-size: 12px; }
.ao-btn.danger { background: none; color: var(--err); border-color: rgba(255, 92, 108, .45); }
.ao-btn.danger:hover { background: var(--err); color: #fff; filter: none; }
.ao-list { display: flex; flex-direction: column; gap: 10px; }
.ao-item { display: flex; align-items: center; gap: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 13px 18px; }
.ao-item:hover { border-color: var(--brand); box-shadow: 0 4px 16px rgba(0, 0, 0, .3); }
.ao-main { flex: 1; min-width: 0; }
.ao-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ao-no { font-family: ui-monospace, Consolas, monospace; font-size: 12px; color: #ffd166; background: var(--bg); padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line); }
.ao-time { color: var(--muted); font-size: 12px; margin-left: auto; }
.ao-name { font-size: 14px; font-weight: 600; margin-top: 7px; overflow-wrap: anywhere; line-height: 1.5; }
.ao-meta { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 12px; margin-top: 5px; }
.ao-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.ao-amount { color: #ffd166; font-weight: 800; font-size: 16px; }
.ao-ops { display: flex; gap: 8px; align-items: center; }
.ao-empty { text-align: center; color: var(--muted); padding: 30px; border: 1px dashed var(--line); border-radius: 14px; }

.lg-wrap { display: flex; justify-content: center; align-items: flex-start; padding: 46px 0 60px; }
.lg-card { position: relative; overflow: hidden; width: min(380px, 92vw); background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 36px 34px; box-shadow: 0 12px 40px rgba(0, 0, 0, .4); text-align: center; animation: lgIn .35s ease; }
.lg-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--brand), #7c5bfa, #ff6ac1); }
.lg-ico { width: 74px; height: 74px; margin: 0 auto; display: flex; align-items: center; justify-content: center; font-size: 38px; line-height: 1; border-radius: 50%; background: linear-gradient(135deg, rgba(91, 124, 250, .18), rgba(124, 91, 250, .18)); border: 1px solid rgba(91, 124, 250, .35); box-shadow: 0 8px 24px rgba(91, 124, 250, .25); }
.lg-domain { display: inline-block; margin: 12px 0 24px; padding: 10px 26px; border-radius: 999px; background: linear-gradient(135deg, rgba(91, 124, 250, .16), rgba(124, 91, 250, .16)); border: 1.5px solid var(--brand); color: #fff; font-family: ui-monospace, Consolas, monospace; font-size: 19px; font-weight: 800; letter-spacing: 1px; box-shadow: 0 4px 18px rgba(91, 124, 250, .35); }
@keyframes lgIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.lg-title { margin: 14px 0 4px; font-size: 22px; font-weight: 800; }
.lg-sub { margin: 0 0 22px; color: var(--muted); font-size: 13px; }
.lg-form { display: flex; flex-direction: column; gap: 14px; }
.lg-input { height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--text); padding: 0 16px; font-size: 15px; text-align: center; letter-spacing: 2px; }
.lg-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(91, 124, 250, .18); }
.lg-btn { height: 46px; border: 0; border-radius: 12px; background: linear-gradient(135deg, var(--brand), #7c5bfa); color: #fff; font-size: 16px; font-weight: 700; letter-spacing: 6px; cursor: pointer; box-shadow: 0 6px 18px rgba(91, 124, 250, .35); transition: .2s; }
.lg-btn:hover { filter: brightness(1.1); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(91, 124, 250, .5); }
.lg-back { display: inline-block; margin-top: 20px; color: var(--muted); font-size: 13px; }
.lg-back:hover { color: var(--brand); text-decoration: none; }

/* 分站后台：价格管理 */
.sa-head h1 { margin-bottom: 6px; }
.sa-filter { display: flex; gap: 10px; margin: 16px 0; flex-wrap: wrap; align-items: center; }
.sa-filter .cs-input { width: auto; min-width: 180px; margin: 0; }
.sa-list { display: flex; flex-direction: column; gap: 10px; }
.sa-row { display: flex; align-items: center; gap: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px; flex-wrap: wrap; transition: .18s; }
.sa-row:hover { border-color: var(--brand); box-shadow: 0 4px 16px rgba(91, 124, 250, .15); }
.sa-idx { flex: 0 0 auto; min-width: 32px; height: 32px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; background: var(--bg); border: 1px solid var(--line); border-radius: 9px; font-weight: 700; font-size: 13px; color: var(--muted); transition: .18s; }
.sa-row:hover .sa-idx { background: var(--brand); border-color: var(--brand); color: #fff; }
.sa-info { flex: 1 1 260px; min-width: 0; }
.sa-name { font-weight: 600; word-break: break-all; }
.sa-meta { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.sa-meta b { color: var(--text); }
.sa-cur { color: #f5b942 !important; }
.sa-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sa-input { width: 110px; height: 36px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg); color: var(--text); padding: 0 10px; font-size: 14px; }
.sa-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(91, 124, 250, .18); }
.sa-msg { font-size: 12px; color: var(--muted); }
.sa-msg.ok { color: #3ecf8e; }
.sa-msg.err { color: #ff6b81; }
.ghost-link { background: transparent !important; border: 1px solid var(--line) !important; color: var(--muted) !important; }
.ghost-link:hover { color: #fff !important; border-color: var(--brand) !important; }
.sa-pager { display: flex; gap: 14px; align-items: center; justify-content: center; margin: 18px 0 8px; color: var(--muted); }
.sa-pager a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 9px; font-size: 13px; }
.sa-pager a:hover { border-color: var(--brand); color: #fff; text-decoration: none; }
.sk-panel { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid #f5b942; border-radius: 12px; padding: 14px 18px; margin: 14px 0 4px; }
.sk-title { font-weight: 700; color: #f5b942; margin-bottom: 10px; }
.sk-list { display: flex; flex-direction: column; gap: 8px; }
.sk-item { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.sk-item b { word-break: break-all; }
.sk-domain { color: var(--brand); font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.sk-domain:hover { text-decoration: underline; }
.sk-time { font-size: 12px; }

.cs-fab { position: fixed; right: 22px; bottom: 26px; z-index: 50; height: 48px; padding: 0 22px; border: 0; border-radius: 999px; background: linear-gradient(135deg, var(--brand), #7c5bfa); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; box-shadow: 0 6px 22px rgba(91, 124, 250, .45); }
.cs-fab:hover { filter: brightness(1.1); transform: translateY(-2px); }
.cs-box { width: min(460px, 94vw); }
.cs-form { display: flex; flex-direction: column; gap: 14px; padding: 18px 20px 20px; }
.cs-label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 600; }
.cs-input { border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); padding: 10px 14px; font-size: 14px; font-family: inherit; }
.cs-input:focus { outline: none; border-color: var(--brand); }
.cs-textarea { resize: vertical; min-height: 88px; line-height: 1.6; }
.cs-msg { font-size: 13px; min-height: 0; }
.cs-msg:empty { display: none; }
.cs-msg.ok { color: var(--ok); }
.cs-msg.err { color: var(--err); }
.sub-done { text-align: center; padding: 14px 6px 6px; }
.sub-done-ic { font-size: 46px; line-height: 1; margin-bottom: 10px; }
.sub-done-tt { font-size: 20px; font-weight: 800; color: var(--ok); margin-bottom: 12px; }
.sub-done-dom { display: inline-block; font-family: ui-monospace, Consolas, monospace; font-size: 15px; color: var(--brand); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 7px 18px; margin-bottom: 16px; text-decoration: none; transition: .18s; }
.sub-done-dom:hover { border-color: var(--brand); }
.sub-done-btn { display: block; width: fit-content; margin: 0 auto; padding: 14px 34px; border-radius: 14px; background: linear-gradient(135deg, var(--brand), #8b5cf6); color: #fff !important; font-size: 17px; font-weight: 800; letter-spacing: 1px; text-decoration: none; box-shadow: 0 6px 22px rgba(91, 124, 250, .45); transition: .18s; }
.sub-done-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(91, 124, 250, .6); }
.sub-done-tip { margin-top: 14px; font-size: 12.5px; }
.cs-send { height: 44px; border: 0; border-radius: 12px; background: linear-gradient(135deg, var(--brand), #7c5bfa); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; letter-spacing: 2px; }
.cs-send:hover { filter: brightness(1.1); }
.cs-send:disabled { opacity: .6; cursor: default; }
.btn.saved { background: var(--ok); color: #fff; border-color: var(--ok); }

.tabs { display: flex; gap: 6px; border-bottom: 2px solid var(--line); margin: 16px 0; flex-wrap: wrap; }
.tab-btn { padding: 8px 18px; border: 1px solid var(--line); border-bottom: none; border-radius: 8px 8px 0 0; background: var(--panel-2); color: inherit; cursor: pointer; font-size: 14px; }
.tab-btn.active { background: var(--panel); font-weight: 600; position: relative; top: 2px; border-bottom: 2px solid var(--panel); }
.tab-pane { min-height: 200px; }

/* ==== 分站后台：仪表盘 / 权限 / 钱包 ==== */
.sd-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin: 16px 0 6px; }
.sd-card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.sd-num { font-size: 26px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.sd-num.gold { color: #f5b942; }
.sd-label { color: var(--muted); font-size: 13px; margin-top: 4px; }
.sd-h2 { font-size: 16px; color: var(--text); margin: 22px 0 10px; }
.sd-tip { font-size: 12.5px; margin-top: 10px; }
.sd-lock { background: rgba(255, 92, 108, .1); border: 1px solid rgba(255, 92, 108, .35); border-left: 4px solid var(--err); color: #ffb3bc; border-radius: 10px; padding: 12px 16px; margin: 14px 0; font-size: 14px; }
.sd-form { display: flex; flex-direction: column; gap: 12px; max-width: 520px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.sd-form .cs-input { width: 100%; }
.sd-form input[type="file"].cs-input { padding: 8px 10px; }
.sd-balance { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 16px; font-size: 14px; color: var(--muted); display: inline-block; margin-bottom: 10px; }
.sd-qr-cur { display: flex; align-items: center; gap: 12px; }
.sd-qr { width: 120px; height: 120px; object-fit: contain; border-radius: 10px; border: 1px solid var(--line); background: #fff; padding: 4px; }
.sp-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.sp-card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; transition: .18s; }
.sp-card:hover { border-color: var(--brand); box-shadow: 0 4px 16px rgba(91, 124, 250, .15); }
.sp-card.owned { border-left: 4px solid var(--ok); }
.sp-info { display: flex; flex-direction: column; gap: 6px; }
.sp-name { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sp-price { color: #f5b942; font-size: 18px; font-weight: 800; }
.sp-desc { color: var(--muted); font-size: 13px; }
.sp-buy { align-self: flex-start; background: linear-gradient(135deg, var(--brand), #7c5bfa); }
.sp-buy:hover { filter: brightness(1.1); }
.sp-buy:disabled { background: #3a4160; }
.sp-btns { display: flex; gap: 8px; flex-wrap: wrap; align-self: flex-start; }
.sp-pay.wx { background: linear-gradient(135deg, #1aad19, #2ecc71); }
.sp-pay.ali { background: linear-gradient(135deg, #1677ff, #4096ff); }
.sp-pay:hover { filter: brightness(1.12); transform: translateY(-1px); }

/* ==== 分站提现页：收款资料与余额提现并排 ==== */
.wk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; margin-bottom: 18px; }
.wk-col { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.wk-col .sd-h2 { margin-top: 0; }
@media (max-width: 760px) { .wk-grid { grid-template-columns: 1fr; } }

/* ==== 分站权限扫码支付弹层 ==== */
.pp-box { width: min(420px, 94vw); }
.pp-body { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 18px 20px 20px; }
.pp-mask { position: absolute; inset: 0; background: rgba(5, 8, 18, .78); display: flex; align-items: center; justify-content: center; z-index: 5; border-radius: 0 0 14px 14px; }
.pp-mask-tip { color: #f5b942; font-size: 14px; font-weight: 700; animation: pp-pulse 1.2s ease-in-out infinite; }
@keyframes pp-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.pp-amount { font-size: 14px; color: var(--muted); }
.pp-amt-num { color: #f5b942; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pp-qr-card { position: relative; background: #fff; border-radius: 12px; padding: 12px; box-shadow: 0 4px 18px rgba(0, 0, 0, .35); min-width: 220px; min-height: 220px; display: flex; align-items: center; justify-content: center; }
.pp-qr-card img { width: 220px; height: 220px; object-fit: contain; display: block; }
.pp-qr-wait { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #666; font-size: 13px; }
.pp-status { font-size: 13.5px; color: var(--text); text-align: center; min-height: 20px; }
.pp-status.ok { color: #3ecf8e; font-weight: 700; }
.pp-status.err { color: #ff6b81; font-weight: 700; }
.pp-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.pp-tip { font-size: 12px; text-align: center; }
.sv-list { display: flex; flex-direction: column; gap: 8px; }
.sv-item { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 9px 14px; font-size: 13.5px; }
.sv-item b { font-variant-numeric: tabular-nums; }
.sv-kind { font-weight: 700; color: var(--text); min-width: 64px; }
.sv-in { color: #3ecf8e; }
.sv-out { color: #ff6b81; }

/* ==== 主站后台：分站卡片 / 提现审核 ==== */
.sub-bal { color: #f5b942; font-variant-numeric: tabular-nums; }
.sub-perm-col { display: flex; flex-direction: column; gap: 6px; }
.sub-perm-row { display: flex; align-items: center; gap: 8px; }
.sub-perm-row .q-pill { min-width: 84px; text-align: center; }
.wd-badge { display: inline-block; min-width: 18px; padding: 1px 7px; border-radius: 999px; background: var(--err); color: #fff; font-size: 12px; font-weight: 700; text-align: center; }
.wd-qr { width: 90px; height: 90px; object-fit: contain; border-radius: 8px; border: 1px solid var(--line); background: #fff; padding: 3px; vertical-align: middle; }
.wd-qr-click { cursor: pointer; transition: box-shadow .2s, transform .2s; }
.wd-qr-click:hover { box-shadow: 0 0 0 2px var(--brand); transform: translateY(-2px); }
.wd-modal-box { width: min(460px, 92vw); }
.wd-m-body { display: flex; gap: 16px; align-items: flex-start; padding: 14px 4px; }
.wd-m-qr { width: 200px; height: 200px; object-fit: contain; border-radius: 10px; border: 1px solid var(--line); background: #fff; padding: 6px; flex: none; }
.wd-m-info { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.wd-m-amt { color: #f5b942; font-size: 18px; font-variant-numeric: tabular-nums; }
.wd-m-btns { display: flex; gap: 10px; margin-top: 12px; }
.wd-m-btns .btn { flex: 1; }
