:root {
  --bg: #0b0e14;
  --bg-soft: #121722;
  --card: #161c28;
  --card-2: #1c2433;
  --border: #232c3b;
  --text: #e6edf6;
  --muted: #8b97a8;
  --primary: #00e676;
  --primary-soft: rgba(0, 230, 118, 0.12);
  --accent: #4d9bff;
  --danger: #ff5c6c;
  --warn: #ffb648;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  background: rgba(11, 14, 20, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.brand {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--primary);
}
.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  transition: all 0.15s ease;
}
.nav a:hover { color: var(--text); background: var(--card); }
.nav a.active {
  color: #04130b;
  background: var(--primary);
}
.nav-profile { display: inline-flex; align-items: center; gap: 8px; }
.balance-badge {
  font-size: 13px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
}
.nav a.active .balance-badge {
  background: rgba(0, 0, 0, 0.18);
  color: #04130b;
}

/* ---------- Layout ---------- */
#app-content { max-width: 1080px; margin: 0 auto; padding: 24px 20px 60px; }
.footer {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 24px 16px 40px;
  border-top: 1px solid var(--border);
}
.page-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.page-head h1 { font-size: 26px; margin: 0; flex: 0 0 auto; white-space: nowrap; }
.chat-list-head { align-items: flex-end; }
.chat-list-head .btn { flex: none; }
.muted { color: var(--muted); font-size: 14px; }

/* ---------- Filters ---------- */
.filters { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.input, .filters select, .filters input {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
}
.filters input { flex: 1; min-width: 200px; }
.input:focus, .filters select:focus, .filters input:focus { border-color: var(--primary); }

/* ---------- Grid / Cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  transition: transform 0.12s ease, border-color 0.12s ease;
}
.card:hover { transform: translateY(-2px); border-color: #2f3a4d; }
.order-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.tag {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
}
.order-title { margin: 0 0 8px; font-size: 17px; }
.order-title a:hover { color: var(--primary); }
.order-rank {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.order-rank .arrow { color: var(--primary); margin: 0 6px; }
.order-meta { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.order-foot { display: flex; align-items: center; justify-content: space-between; }
.price { font-size: 20px; font-weight: 800; color: var(--primary); }
.empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 50px 20px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

/* ---------- Status pills ---------- */
.status { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.status-open { background: rgba(0,230,118,0.14); color: var(--primary); }
.status-doing { background: rgba(77,155,255,0.16); color: var(--accent); }
.status-reviewing { background: rgba(255,193,7,0.18); color: #b45309; }
.status-completed { background: rgba(139,151,168,0.18); color: var(--muted); }
.status-cancelled { background: rgba(255,92,108,0.16); color: var(--danger); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  background: var(--card-2);
  color: var(--text);
  transition: all 0.15s ease;
}
.btn:hover { filter: brightness(1.1); }
.btn-primary { background: var(--primary); color: #04130b; }
.btn-accent { background: var(--accent); color: #04130b; }
.btn-danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--muted); }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- Forms ---------- */
.form { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; max-width: 640px; }
.form .field { margin-bottom: 16px; }
.form label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 11px 12px;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--primary); }
.form textarea { resize: vertical; min-height: 80px; }
.form-row { display: flex; gap: 14px; }
.form-row .field { flex: 1; }
.hint { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ---------- Order detail ---------- */
.detail-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.detail-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin: 16px 0; }
.detail-item { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.detail-item .k { font-size: 12px; color: var(--muted); }
.detail-item .v { font-size: 16px; font-weight: 700; margin-top: 4px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.req-box { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px; padding: 14px; white-space: pre-wrap; }

/* ---------- Profile ---------- */
.profile-hero { display: flex; align-items: center; gap: 20px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.avatar { font-size: 56px; width: 84px; height: 84px; display: grid; place-items: center; background: var(--bg-soft); border-radius: 20px; border: 1px solid var(--border); overflow: hidden; flex: 0 0 auto; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-editable { position: relative; cursor: pointer; }
.avatar-editable .cam {
  position: absolute; left: 0; right: 0; bottom: 0;
  font-size: 11px; line-height: 1.6; text-align: center;
  color: #fff; background: rgba(0, 0, 0, 0.5);
}
.profile-hero .name { font-size: 22px; font-weight: 800; }
.balance-box { margin-left: auto; text-align: right; }
.balance-box .label { font-size: 13px; color: var(--muted); }
.balance-box .amount { font-size: 34px; font-weight: 900; color: var(--primary); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; text-align: center; }
.stat .num { font-size: 26px; font-weight: 800; color: var(--primary); }
.stat .cap { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.tab { padding: 8px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--border); color: var(--muted); font-weight: 700; cursor: pointer; }
.tab.active { background: var(--primary); color: #04130b; border-color: var(--primary); }

/* ---------- Modal ---------- */
.modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: grid; place-items: center; z-index: 50; padding: 20px; }
.modal { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); width: 100%; max-width: 420px; padding: 24px; box-shadow: var(--shadow); }
.modal h3 { margin: 0 0 4px; }
.modal .sub { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.amount-presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.preset { padding: 12px; text-align: center; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-soft); cursor: pointer; font-weight: 700; }
.preset.active { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.modal-amount { font-size: 30px; font-weight: 900; color: var(--primary); text-align: center; margin: 8px 0 18px; }
.wx-box { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px; padding: 18px; text-align: center; margin-bottom: 16px; }
.wx-qr { width: 180px; height: 180px; margin: 0 auto 12px; background: #fff; border-radius: 10px; display: grid; place-items: center; color: #333; font-size: 13px; padding: 10px; word-break: break-all; }
.modal-actions { display: flex; gap: 12px; }

/* 收款码充值 */
.qr-grid { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin: 6px 0 16px; }
.qr-card { text-align: center; }
.qr-label { font-size: 13px; color: var(--muted); margin-bottom: 8px; font-weight: 700; }
.qr-img { width: 160px; height: 160px; object-fit: contain; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 8px; }

/* 提现 / 收款设置 */
.btn-success { background: var(--success, #16a34a); color: #fff; border-color: var(--success, #16a34a); }
.btn-success:hover { filter: brightness(1.05); }
.btn-success:disabled { opacity: .6; }
.btn.disabled, .btn[disabled] { opacity: .5; cursor: not-allowed; }
.paycode-list { display: flex; gap: 16px; flex-wrap: wrap; margin: 6px 0 4px; }
.paycode-item { flex: 1; min-width: 160px; text-align: center; }
.paycode-prev { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px; padding: 12px; margin: 8px 0; min-height: 120px; display: grid; place-items: center; }
.paycode-prev .qr-img { width: 120px; height: 120px; }
.wd-method.active { border-color: var(--success, #16a34a); color: var(--success, #16a34a); background: rgba(22,163,74,.08); }
.wd-row { padding: 12px 0; border-bottom: 1px solid var(--border); }
.wd-row:last-child { border-bottom: 0; }
.wd-status { font-weight: 700; }
.wd-pending { color: #d97706; }
.wd-approved { color: var(--success, #16a34a); }
.wd-rejected { color: var(--danger, #dc2626); }
.wd-reviewing { color: #d97706; }
.wd-paid { color: var(--success, #16a34a); }

/* 充值：说明 + 付款凭证上传 */
.recharge-note {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--muted);
  margin: 4px 0 12px;
}
.proof-pick {
  display: block;
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  cursor: pointer;
}
.proof-pick input[type="file"] { display: none; }
.pay-preview { margin-top: 10px; }
.pay-preview img {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
}

/* 后台管理 */
.admin-main { max-width: 1040px; margin: 0 auto; padding: 24px 16px; }

/* 后台 · 用户管理 */
.u-wrap { overflow-x: auto; }
.u-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.u-table th { text-align: left; font-weight: 600; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; font-size: 12px; }
.u-table td { padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.u-table tr:last-child td { border-bottom: 0; }
.u-avatar { width: 26px; height: 26px; border-radius: 8px; object-fit: cover; vertical-align: middle; background: var(--bg-soft); display: inline-grid; place-items: center; font-size: 15px; border: 1px solid var(--border); overflow: hidden; }
.u-user { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.u-num, .u-acc { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.u-bal { font-weight: 700; color: var(--primary); white-space: nowrap; }
.u-time { color: var(--muted); font-size: 12px; white-space: nowrap; }

.u-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.u-head .u-avatar { width: 56px; height: 56px; border-radius: 16px; font-size: 28px; }
.u-head-main { flex: 1; min-width: 0; }
.u-head-name { font-size: 18px; font-weight: 800; }
.u-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin-bottom: 6px; }
.u-box { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; }
.u-lab { font-size: 12px; color: var(--muted); }
.u-val { font-size: 18px; font-weight: 800; color: var(--primary); margin-top: 2px; }
.u-sec { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 12px; }
.u-sec-title { font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.u-orders { max-height: 240px; overflow-y: auto; }
.u-order { display: flex; align-items: center; gap: 8px; font-size: 12.5px; padding: 6px 0; border-bottom: 1px dashed var(--border); }
.u-order:last-child { border-bottom: 0; }
.u-order-role { flex: 0 0 auto; font-size: 11px; padding: 1px 6px; border-radius: 6px; background: var(--bg-soft); color: var(--muted); }
.u-order-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-order-price { color: var(--primary); font-weight: 700; }
.u-order-time { color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.u-order-x { flex: 0 0 auto; font-size: 11px; padding: 2px 8px; border-radius: 6px; background: transparent; border: 1px solid rgba(255, 92, 108, 0.5); color: var(--danger); cursor: pointer; font-weight: 700; }
.u-order-x:hover { background: rgba(255, 92, 108, 0.12); }
.st { font-size: 11px; padding: 1px 6px; border-radius: 6px; background: var(--bg-soft); color: var(--muted); white-space: nowrap; }
.st-reviewing { color: #b45309; }
.st-completed { color: var(--success, #16a34a); }
.st-cancelled { color: var(--danger, #dc2626); }
.u-log { display: grid; grid-template-columns: 118px 130px 64px 1fr; gap: 8px; font-size: 12px; padding: 4px 0; color: var(--muted); }
.u-log .up { color: var(--success, #16a34a); font-weight: 700; }
.u-log .down { color: var(--danger, #dc2626); font-weight: 700; }
.wd-item { display: flex; gap: 16px; padding: 16px; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 14px; background: var(--card); }
.wd-img { width: 150px; height: 150px; object-fit: contain; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 6px; flex-shrink: 0; }
.wd-info { flex: 1; min-width: 0; }
.wd-actions { display: flex; flex-direction: column; gap: 8px; justify-content: center; min-width: 160px; }
.wd-actions textarea { width: 100%; min-height: 48px; resize: vertical; }

/* ---------- 后台订单管理 ---------- */
.op-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.op-tab { padding: 6px 14px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--border); color: var(--muted); font-weight: 700; font-size: 13px; cursor: pointer; }
.op-tab.active { background: var(--primary); color: #04130b; border-color: var(--primary); }
.op-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; background: var(--card-2); }
.op-main { flex: 1; min-width: 0; }
.op-title { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.op-meta { font-size: 12px; color: var(--muted); margin-top: 4px; }
.op-reason { font-size: 12px; color: var(--warn); margin-top: 4px; }
.op-side { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.op-price { color: var(--primary); font-weight: 800; white-space: nowrap; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%) translateY(20px);
  background: var(--card-2);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 80;
  font-weight: 600;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.ok { border-color: var(--primary); color: var(--primary); }
.toast.err { border-color: var(--danger); color: var(--danger); }

@media (max-width: 560px) {
  .profile-hero { flex-direction: column; text-align: center; }
  .balance-box { margin: 0; text-align: center; }
  .form-row { flex-direction: column; gap: 0; }
}

/* ============================================================
 * 群聊（订单自动建群：发布者 + 接单者 + 官方）
 * ============================================================ */
.unread-badge {
  display: none;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-left: 2px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  vertical-align: middle;
}
.nav a.active .unread-badge { background: #7f1d1d; color: #fff; }

/* 群聊列表 */
.chat-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, transform 0.12s ease;
}
.chat-row:hover { border-color: #2f3a4d; transform: translateY(-1px); }
.chat-row-main { flex: 1; min-width: 0; }
.chat-row-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.chat-row-title { font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-row-time { font-size: 12px; color: var(--muted); flex-shrink: 0; }
.chat-row-preview { font-size: 13px; color: var(--muted); margin: 4px 0 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-row-members { display: flex; gap: 6px; flex-wrap: wrap; }
.chat-member {
  font-size: 12px;
  color: var(--muted);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 1px 8px;
  border-radius: 999px;
}
.chat-member.official { color: var(--warn); border-color: rgba(255, 182, 72, 0.35); }
.unread-dot {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* 聊天页 */
.chat-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.chat-head-info { flex: 1; min-width: 0; }
.chat-head-title { font-size: 18px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-head-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-box { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); display: flex; flex-direction: column; overflow: hidden; }
.chat-msgs { height: min(56vh, 520px); min-height: 280px; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: var(--bg-soft); }
.msg { max-width: 78%; display: flex; flex-direction: column; align-items: flex-start; }
.msg.mine { align-self: flex-end; align-items: flex-end; }
.msg-name { font-size: 12px; color: var(--muted); margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.role-tag { font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 999px; background: rgba(77, 155, 255, 0.16); color: var(--accent); }
.role-tag.official { background: rgba(255, 182, 72, 0.18); color: var(--warn); }
.msg-bubble {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 10px 14px;
  border-radius: 14px;
  border-top-left-radius: 4px;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}
.msg.mine .msg-bubble { background: var(--primary-soft); border-color: rgba(0, 230, 118, 0.35); border-top-left-radius: 14px; border-top-right-radius: 4px; }
.msg.official .msg-bubble { border-color: rgba(255, 182, 72, 0.35); }
.msg-text { white-space: pre-wrap; }
.msg-img { display: block; max-width: 220px; max-height: 220px; border-radius: 10px; margin-top: 6px; cursor: zoom-in; }
.msg-time { font-size: 11px; color: var(--muted); margin-top: 4px; }
.msg-system { align-self: center; max-width: 88%; }
.msg-system.notice { max-width: 100%; align-self: stretch; }
.msg-system.notice span {
  border-radius: 12px;
  text-align: left;
  font-size: 13px;
  color: var(--text);
  white-space: pre-wrap;
  padding: 10px 14px;
  line-height: 1.65;
  background: var(--card-2, rgba(139, 151, 168, 0.12));
}
.msg-system span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  background: rgba(139, 151, 168, 0.1);
  border: 1px dashed var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  text-align: center;
  line-height: 1.5;
}
.chat-input-bar { display: flex; align-items: flex-end; gap: 8px; padding: 12px; border-top: 1px solid var(--border); background: var(--card); }
.chat-input {
  flex: 1;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.5;
  resize: none;
  max-height: 120px;
  outline: none;
}
.chat-input:focus { border-color: var(--primary); }
.chat-icon-btn {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
}
.chat-icon-btn:hover { border-color: var(--primary); }
.chat-img-preview { display: flex; align-items: center; gap: 8px; padding: 10px 12px 0; background: var(--card); }
.chat-img-preview img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.chat-img-clear { background: transparent; border: 1px solid var(--border); color: var(--muted); border-radius: 8px; width: 26px; height: 26px; cursor: pointer; }

@media (max-width: 560px) {
  .chat-msgs { height: 62vh; }
  .msg { max-width: 88%; }
  .chat-head-title { font-size: 16px; }
}

/* ---------- 靓号商城 ---------- */
.pretty-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 18px;
}
.pretty-bar .pb-item { display: flex; align-items: center; gap: 8px; }
.pretty-bar .pretty-cur { font-size: 20px; font-weight: 800; letter-spacing: 1px; color: var(--accent); }
.pretty-bar .pretty-bal { font-size: 20px; font-weight: 800; color: var(--primary); }
.pretty-bar .btn { margin-left: auto; }

.pretty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 14px;
}
.pretty-card {
  background: linear-gradient(160deg, var(--card-2), var(--card));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 14px 14px;
  text-align: center;
  transition: transform .16s, border-color .16s;
}
.pretty-card:hover { transform: translateY(-3px); border-color: var(--primary); }
.pretty-num {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 3px;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(90deg, #9be7ff, var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}
.pretty-price { color: var(--warn); font-weight: 800; font-size: 17px; margin-bottom: 12px; }
.pretty-card .btn { width: 100%; }

.pretty-preview {
  text-align: center;
  font-size: 40px;
  font-weight: 900;
  letter-spacing: 5px;
  color: var(--primary);
  margin: 6px 0 16px;
  font-variant-numeric: tabular-nums;
}
.kv-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.kv-row:last-of-type { border-bottom: 0; }

/* ---------- 后台：靓号上架 ---------- */
.pa-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.pa-form .input { width: 170px; }
.pa-num { font-weight: 900; letter-spacing: 2px; color: var(--accent); font-variant-numeric: tabular-nums; }
.pa-tag { font-size: 12px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); }
.pa-tag.on { color: var(--primary); border-color: rgba(0, 230, 118, .4); background: var(--primary-soft); }
.pa-tag.sold { color: var(--warn); border-color: rgba(255, 182, 72, .4); }
.pa-tag.off { color: var(--muted); }
.pa-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.pa-sold-info { font-size: 12px; color: var(--muted); line-height: 1.4; }

/* ---------- 封禁 / 全部已读 ---------- */
.ban-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 999px;
  color: var(--danger, #ef4444);
  border: 1px solid rgba(239, 68, 68, .45);
  background: rgba(239, 68, 68, .1);
  vertical-align: middle;
}
.ban-box {
  border: 1px solid rgba(239, 68, 68, .35);
  background: rgba(239, 68, 68, .06);
  border-radius: 12px;
  padding: 12px 14px;
}
.ban-on { font-size: 14px; font-weight: 700; color: var(--danger, #ef4444); }

/* ---------- 尊贵徽章：金色皇冠「尊」+ 流光 + 外发光 ---------- */
.honor {
  position: relative;
  display: inline-block;
  width: 17px;
  height: 17px;
  margin-right: 4px;
  vertical-align: -3px;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 3px rgba(255, 201, 71, 0.9)) drop-shadow(0 0 7px rgba(255, 170, 30, 0.5));
}
.honor-face {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 26%, #fffbe4 0%, #ffe895 24%, #f6c93f 52%, #cd941f 100%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .85), inset 0 -1px 2px rgba(120, 70, 0, .35), 0 0 5px rgba(255, 196, 60, .75);
  border: 1px solid rgba(255, 235, 170, .85);
}
.honor-t {
  position: relative;
  z-index: 2;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  color: #6d4306;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .6);
}
.honor-face::after {
  content: "";
  position: absolute;
  inset: -20% -70%;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, .95) 48%, rgba(255, 255, 255, .2) 56%, rgba(255, 255, 255, 0) 64%);
  transform: translateX(-70%);
  animation: honorShine 3.4s ease-in-out infinite;
  z-index: 1;
}
@keyframes honorShine {
  0% { transform: translateX(-70%); }
  55% { transform: translateX(70%); }
  100% { transform: translateX(70%); }
}
.honor-crown {
  position: absolute;
  top: -5px;
  left: 50%;
  width: 11px;
  height: 8px;
  margin-left: -5.5px;
  z-index: 3;
  fill: #ffd75e;
  filter: drop-shadow(0 0 1px rgba(120, 70, 0, .55)) drop-shadow(0 0 3px rgba(255, 205, 70, .95));
}
.honor-lg { width: 22px; height: 22px; margin-right: 5px; vertical-align: -4px; }
.honor-lg .honor-t { font-size: 13px; }
.honor-lg .honor-crown { width: 14px; height: 10px; margin-left: -7px; top: -6px; }
.honor-sm { width: 13px; height: 13px; margin-right: 3px; vertical-align: -2px; }
.honor-sm .honor-t { font-size: 8px; }
.honor-sm .honor-crown { width: 9px; height: 6.5px; margin-left: -4.5px; top: -4px; }
/* 聊天消息里的头像 */
.msg-av {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-grid;
  place-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  font-size: 12px;
  flex: 0 0 auto;
}
.msg-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.honor-line { display: inline-flex; align-items: center; }

/* ---------- 排行榜：豪气榜 / 鼠王榜 ---------- */
.bd-tabs { display: flex; align-items: center; gap: 6px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px; padding: 4px; margin-bottom: 18px; }
.bd-tab { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 13.5px; padding: 8px 18px; border-radius: 9px; cursor: pointer; transition: background .15s, color .15s; }
.bd-tab:hover { color: var(--text); }
.bd-tab.active { background: var(--primary); color: #04140a; font-weight: 700; }
.bd-date { margin-left: auto; padding-right: 10px; font-size: 12px; color: var(--muted); }

.bd-podium { display: flex; align-items: flex-end; justify-content: center; gap: 8px; padding: 10px 0 20px; }
.bd-pod { width: 33.3%; max-width: 150px; min-width: 0; text-align: center; }
.bd-pod.is-first { transform: translateY(-8px); }
.bd-pod-av { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--card-2); border: 2px solid var(--border); font-size: 20px; }
.bd-pod-av.is-big { width: 62px; height: 62px; font-size: 24px; border-color: #ffcf47; }
.bd-pod-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.bd-medal { position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%); width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 10.5px; font-weight: 800; color: #0b0e14; background: #c9d3e0; box-shadow: 0 0 0 2px var(--bg); }
.bd-medal.m1 { background: #ffcf47; color: #3d2600; }
.bd-medal.m3 { background: #d08a4e; color: #2a1405; }
.bd-pod .bd-name { margin-top: 14px; justify-content: center; }
.bd-pod-val { margin-top: 3px; font-size: 13px; font-weight: 700; color: var(--primary); }
.bd-pod.is-first .bd-pod-val { font-size: 14.5px; }

.bd-name { display: flex; align-items: center; gap: 3px; font-size: 13px; font-weight: 600; color: var(--text); min-width: 0; }
.bd-name > :first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-id { font-size: 11.5px; color: var(--muted); margin-top: 1px; letter-spacing: .2px; }

.bd-list { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.bd-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--border); }
.bd-row:first-child { border-top: 0; }
.bd-rank { width: 20px; flex: 0 0 auto; text-align: center; font-size: 12.5px; color: var(--muted); }
.bd-av { width: 34px; height: 34px; flex: 0 0 auto; border-radius: 50%; background: var(--card-2); display: grid; place-items: center; font-size: 16px; overflow: hidden; }
.bd-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bd-user { flex: 1; min-width: 0; }
.bd-val { font-size: 13.5px; font-weight: 700; color: var(--primary); white-space: nowrap; }

.bd-me { position: sticky; bottom: 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; padding: 12px 14px; background: var(--card-2); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); }
.bd-me-t { font-size: 11.5px; color: var(--muted); }
.bd-me-rank { font-size: 13.5px; font-weight: 700; }
.bd-me-rank.off { color: var(--muted); font-weight: 600; }
.bd-me .muted { font-size: 12px; }
.bd-me .btn { margin-left: auto; }

@media (max-width: 420px) {
  .bd-podium { gap: 4px; }
  .bd-pod-av { width: 46px; height: 46px; font-size: 18px; }
  .bd-pod-av.is-big { width: 56px; height: 56px; font-size: 22px; }
  .bd-pod .bd-name { font-size: 12px; }
  .bd-tab { padding: 8px 14px; }
}

/* ---------- 后台：今日排行榜 ---------- */
.lb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lb-col { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.lb-title { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.lb-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px dashed var(--border); }
.lb-row:first-child { border-top: 0; }
.lb-rank { width: 18px; flex: 0 0 auto; text-align: center; font-size: 12px; color: var(--muted); }
.lb-rank.r1 { color: #ffcf47; font-weight: 800; }
.lb-rank.r2 { color: #c9d3e0; font-weight: 800; }
.lb-rank.r3 { color: #d08a4e; font-weight: 800; }
.lb-main { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 6px; }
.lb-name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-id { flex: 0 0 auto; font-size: 11px; color: var(--muted); }
.lb-val { flex: 0 0 auto; font-size: 12.5px; font-weight: 700; color: var(--primary); }
.lb-row .btn { padding: 4px 8px; font-size: 11.5px; }
@media (max-width: 760px) { .lb-grid { grid-template-columns: 1fr; } }

/* ---------- 大厅聊天室（悬浮入口 + 半屏面板） ---------- */
.hall-fab {
  position: fixed; right: 18px; bottom: 22px; z-index: 40;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 16px; border: 1px solid rgba(0, 230, 118, .35); border-radius: 999px;
  background: linear-gradient(135deg, #00e676, #00b45c); color: #04140a;
  font: inherit; font-size: 13px; font-weight: 800; cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 230, 118, .28);
}
.hall-fab:active { transform: scale(.97); }
.hall-fab-ic { font-size: 15px; }
.hall-fab-dot {
  position: absolute; top: -5px; right: -3px; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 999px; background: var(--danger); color: #fff;
  font-size: 11px; font-weight: 700; align-items: center; justify-content: center;
  box-shadow: 0 0 0 2px var(--bg);
}
.hall-sheet { position: fixed; inset: 0; z-index: 45; display: flex; align-items: flex-end; justify-content: center; }
.hall-mask { position: absolute; inset: 0; background: rgba(3, 6, 12, .55); }
.hall-panel {
  position: relative; width: 100%; max-width: 520px; height: min(72vh, 560px);
  background: var(--card); border: 1px solid var(--border); border-bottom: 0;
  border-radius: 18px 18px 0 0; display: flex; flex-direction: column;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, .5); animation: hallUp .22s ease-out;
}
@keyframes hallUp { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
.hall-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px 10px; border-bottom: 1px solid var(--border); }
.hall-title { font-size: 15px; font-weight: 800; }
.hall-sub { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.hall-close { background: transparent; border: 0; color: var(--muted); font-size: 16px; cursor: pointer; padding: 4px 6px; }
.hall-msgs { flex: 1; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 12px; }
.hall-msg { display: flex; gap: 8px; align-items: flex-start; }
.hall-av {
  width: 30px; height: 30px; flex: 0 0 auto; border-radius: 50%; padding: 0;
  border: 1px solid var(--border); background: var(--bg-soft); overflow: hidden;
  display: grid; place-items: center; font-size: 15px; cursor: pointer;
}
.hall-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hall-body { min-width: 0; max-width: 82%; }
.hall-name { display: flex; align-items: center; gap: 4px; margin-bottom: 3px; flex-wrap: wrap; }
.hall-nick { color: #c9d6e6; font-weight: 600; font-size: 12px; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hall-id { font-size: 10.5px; color: var(--muted); }
.hall-bubble {
  display: inline-block; padding: 8px 12px; border-radius: 12px;
  background: var(--bg-soft); border: 1px solid var(--border);
  font-size: 13.5px; color: var(--text); word-break: break-word; text-align: left;
}
.hall-msg.official .hall-bubble { border-color: rgba(77, 155, 255, .45); background: rgba(77, 155, 255, .10); }
.hall-time { font-size: 10.5px; color: var(--muted); margin-top: 3px; }
.hall-msg.mine { justify-content: flex-end; }
.hall-msg.mine .hall-body { text-align: right; }
.hall-msg.mine .hall-bubble { background: var(--primary-soft); border-color: rgba(0, 230, 118, .35); }
.hall-bar { padding: 10px 14px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); display: flex; gap: 8px; align-items: center; }
.hall-input { flex: 1; min-width: 0; }
.hall-lock { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 10px; justify-content: space-between; width: 100%; flex-wrap: wrap; }

/* ---------- 简易个人资料卡 / 举报 ---------- */
.pf-modal { max-width: 360px; position: relative; }
.pf-close { position: absolute; top: 10px; right: 12px; background: transparent; border: 0; color: var(--muted); font-size: 15px; cursor: pointer; }
.pf-top { display: flex; gap: 12px; align-items: center; padding-right: 18px; }
.pf-av {
  width: 56px; height: 56px; border-radius: 50%; background: var(--card-2);
  border: 1px solid var(--border); display: grid; place-items: center;
  font-size: 26px; overflow: hidden; flex: 0 0 auto;
}
.pf-av img { width: 100%; height: 100%; object-fit: cover; }
.pf-head { min-width: 0; }
.pf-name { display: flex; align-items: center; gap: 4px; font-size: 16px; font-weight: 800; }
.pf-id { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.pf-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.pf-tag { font-size: 10.5px; padding: 2px 7px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--border); color: var(--muted); }
.pf-tag.gold { color: #ffcf47; border-color: rgba(255, 207, 71, .4); background: rgba(255, 207, 71, .1); }
.pf-tag.official { color: var(--accent); border-color: rgba(77, 155, 255, .4); background: rgba(77, 155, 255, .12); }
.pf-tag.danger { color: var(--danger); border-color: rgba(255, 92, 108, .4); background: rgba(255, 92, 108, .12); }
.pf-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 16px 0 10px; text-align: center; }
.pf-stats > div { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px; padding: 8px 4px; }
.pf-stats b { display: block; font-size: 15px; color: var(--text); }
.pf-stats span { font-size: 10.5px; color: var(--muted); }
.pf-rank { font-size: 12px; color: #ffcf47; background: rgba(255, 207, 71, .08); border: 1px solid rgba(255, 207, 71, .25); border-radius: 10px; padding: 7px 10px; text-align: center; }
.pf-foot { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; align-items: center; }
.pf-note { font-size: 10.5px; color: var(--muted); margin-top: 10px; text-align: center; }
.rp-modal { max-width: 380px; }
.rp-title { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.rp-modal .field { margin-bottom: 10px; }
.rp-modal .field label { font-size: 12px; color: var(--muted); display: block; margin-bottom: 5px; }
.rp-modal textarea { min-height: 70px; resize: vertical; }
.rp-foot { margin-top: 14px; }
.bd-av[data-uid], .bd-pod-av[data-uid], .msg-av[data-uid], .hall-av[data-uid] { cursor: pointer; }

/* ---------- 后台：分类标签 + 数据总览 ---------- */
.ad-tabs {
  position: sticky; top: 58px; z-index: 15;
  display: flex; gap: 6px; padding: 8px;
  background: rgba(18, 23, 34, .92); backdrop-filter: blur(10px);
  border: 1px solid var(--border); border-radius: 14px;
  margin-bottom: 16px; overflow-x: auto;
}
.ad-tab {
  flex: 1 0 auto; min-width: 104px; position: relative;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 12px; border-radius: 10px; cursor: pointer;
  font-size: 14px; font-weight: 700; color: var(--muted);
  border: 1px solid transparent; white-space: nowrap; transition: .15s;
}
.ad-tab:hover { color: var(--text); background: var(--card); }
.ad-tab.active { background: var(--card-2); color: var(--text); border-color: var(--border); }
.ad-tab.active .ad-tab-ico { transform: scale(1.12); }
.ad-tab-ico { font-size: 16px; line-height: 1; }
.ad-tab-badge {
  min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px;
  background: var(--danger); color: #fff; font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; line-height: 1;
}
.ad-page { display: none; }
.ad-page.active { display: block; animation: adFade .18s ease-out; }
@keyframes adFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.ad-head { display: flex; align-items: baseline; gap: 10px; margin: 2px 2px 12px; }
.ad-head h2 { font-size: 19px; margin: 0; white-space: nowrap; }

.ad-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ad-stat { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.ad-stat.ad-drill { position: relative; cursor: pointer; transition: transform .12s, border-color .12s, box-shadow .12s; user-select: none; }
.ad-stat.ad-drill:hover { transform: translateY(-2px); border-color: rgba(77,163,255,.5); box-shadow: 0 6px 18px rgba(77,163,255,.12); }
.ad-stat.ad-drill:active { transform: translateY(0); }
.ad-stat .drill-hint { position: absolute; top: 8px; right: 8px; font-size: 11px; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 1px 8px; background: var(--bg); transition: color .12s, border-color .12s; }
.ad-stat.ad-drill:hover .drill-hint { color: var(--accent); border-color: rgba(77,163,255,.5); }

/* 数据总览下钻明细弹窗 */
.dl-mask { position: fixed; inset: 0; background: rgba(5,8,16,.72); display: none; align-items: center; justify-content: center; z-index: 90; padding: 16px; }
.dl-mask.show { display: flex; }
.dl-modal { width: 660px; max-width: 100%; max-height: calc(100dvh - 40px); overflow-y: auto; background: var(--panel, #171e2e); border: 1px solid var(--border); border-radius: 14px; padding: 16px 16px 12px; }
.dl-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.dl-title { font-size: 16px; font-weight: 800; }
.dl-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.dl-close { background: none; border: 1px solid var(--border); color: var(--muted); border-radius: 8px; padding: 5px 12px; cursor: pointer; font-size: 12px; flex: none; }
.dl-close:hover { color: var(--text, #e8edf7); border-color: rgba(77,163,255,.5); }
.dl-total { display: flex; gap: 16px; align-items: center; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px; padding: 9px 13px; margin-bottom: 10px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.dl-total b { font-size: 16px; color: var(--warn); }
.dl-row { display: flex; gap: 10px; align-items: flex-start; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.dl-ic { width: 32px; height: 32px; flex: none; border-radius: 9px; background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 15px; }
.dl-main { flex: 1; min-width: 0; }
.dl-l1 { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; font-weight: 700; align-items: baseline; }
.dl-t { overflow-wrap: anywhere; }
.dl-t small { font-size: 11.5px; color: var(--muted); font-weight: 400; }
.dl-amt { color: var(--primary); flex: none; font-weight: 800; }
.dl-amt.c-green { color: var(--primary); }
.dl-amt.c-purple { color: #b98cff; }
.dl-l2 { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.dl-no { font-family: Consolas, monospace; letter-spacing: .3px; }
.dl-tag { display: inline-block; font-size: 11px; border-radius: 5px; padding: 1px 6px; background: #223052; color: #9db4e0; }
.dl-tag.dl-new { background: rgba(22,163,74,.18); color: var(--primary); }
.dl-empty { color: var(--muted); font-size: 13px; text-align: center; padding: 26px 0; }
.dl-note { font-size: 11px; color: var(--muted); opacity: .75; margin-top: 8px; text-align: center; }
.ad-k { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.ad-v { font-size: 20px; font-weight: 800; letter-spacing: .3px; }
.ad-v small { font-size: 12px; font-weight: 500; color: var(--muted); }
.c-green { color: var(--primary); }
.c-gold { color: var(--warn); }
.c-blue { color: var(--accent); }
.c-purple { color: #b98cff; }

.ad-todo-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 12px; margin-bottom: 8px;
}
.ad-todo-row:last-child { margin-bottom: 0; }
.ad-todo-name { flex: 1; font-size: 13.5px; }
.ad-todo-num { font-size: 16px; font-weight: 800; color: var(--danger); min-width: 22px; text-align: right; }
.ad-todo-num.zero { color: var(--muted); }

@media (max-width: 720px) {
  .ad-grid { grid-template-columns: repeat(2, 1fr); }
  .ad-tab { min-width: 86px; font-size: 13px; padding: 9px 8px; }
  .ad-tab-tx { font-size: 12.5px; }
  .ad-tabs { top: 54px; }
}
.ad-tab-badge[hidden] { display: none; }

/* ---------- 登录弹窗动画（au- 前缀，仅作用于登录/注册弹窗） ---------- */
.au-logo { display: flex; flex-direction: column; align-items: center; gap: 7px; margin-bottom: 16px; position: relative; z-index: 1; }
.au-ring {
  width: 92px; height: 92px; border-radius: 50%; position: relative;
  display: grid; place-items: center;
  background: radial-gradient(circle at 30% 25%, #1f2a3a, #121822);
  border: 1px solid rgba(0, 230, 118, .35);
  box-shadow: 0 0 24px rgba(0, 230, 118, .28), inset 0 0 18px rgba(0, 230, 118, .12);
  animation: auFloat 3.6s ease-in-out infinite;
}
@keyframes auFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.au-ring::before {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 55%, #00e676 72%, #4d9bff 88%, transparent 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 0);
  animation: auSpin 2.6s linear infinite; opacity: .95;
}
@keyframes auSpin { to { transform: rotate(360deg); } }
.au-mam {
  width: 82px; height: 82px; border-radius: 50%; object-fit: cover; object-position: center top;
  display: block; transform-origin: 50% 90%;
  animation: auBreath 2.8s ease-in-out infinite, auSway 5.6s ease-in-out infinite;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, .5));
}
@keyframes auBreath { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes auSway { 0%, 100% { rotate: -3deg; } 50% { rotate: 3deg; } }
.au-pulse { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(0, 230, 118, .5); animation: auPulseOut 2.6s ease-out infinite; pointer-events: none; }
.au-pulse.d2 { animation-delay: 1.3s; }
@keyframes auPulseOut { 0% { transform: scale(.9); opacity: .7; } 100% { transform: scale(1.75); opacity: 0; } }
.au-shadow {
  width: 52px; height: 8px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, .55), transparent 70%);
  animation: auShadow 2.8s ease-in-out infinite;
}
@keyframes auShadow { 0%, 100% { transform: scaleX(1); opacity: .75; } 50% { transform: scaleX(.82); opacity: .5; } }
.au-brand { font-size: 18px; font-weight: 800; letter-spacing: 1px; display: flex; gap: 1px; margin-top: 2px; }
.au-brand span {
  opacity: 0; display: inline-block;
  animation: auCharIn .5s cubic-bezier(.2, .9, .3, 1.2) forwards;
  background: linear-gradient(180deg, #fff, #9fe8c4);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@keyframes auCharIn { from { opacity: 0; transform: translateY(10px) rotate(6deg); } to { opacity: 1; transform: none; } }
.au-sub { font-size: 11px; color: var(--muted); letter-spacing: 2px; opacity: 0; animation: auFadeUp .6s .4s ease forwards; }
@keyframes auFadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: .9; transform: none; } }

/* 弹窗顶部流光带 + 右上光斑 */
.au-modal { position: relative; overflow: hidden; animation: auModalIn .5s cubic-bezier(.2, .9, .25, 1.05) both; }
@keyframes auModalIn {
  0% { opacity: 0; transform: translateY(30px) scale(.92); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
.au-modal::before {
  content: ""; position: absolute; inset: -1px -1px auto; height: 2px;
  background: linear-gradient(90deg, transparent, #00e676, #4d9bff, transparent);
  background-size: 200% 100%; animation: auBeam 3s linear infinite; opacity: .9; pointer-events: none;
}
@keyframes auBeam { 0% { background-position: 0% 0; } 100% { background-position: 200% 0; } }
.au-modal::after {
  content: ""; position: absolute; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 230, 118, .16), transparent 65%);
  top: -110px; right: -60px; pointer-events: none; animation: auGlow 4s ease-in-out infinite;
}
@keyframes auGlow { 0%, 100% { opacity: .55; transform: scale(1); } 50% { opacity: 1; transform: scale(1.15); } }

/* 字段抖动（密码错误） */
.au-field.shake { animation: auShake .4s; }
@keyframes auShake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }

/* 登录按钮：扫光 + 加载转圈 */
.au-modal .btn-primary { position: relative; overflow: hidden; }
.au-modal .btn-primary::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent);
  transform: skewX(-18deg); animation: auSweep 2.8s ease-in-out infinite; pointer-events: none;
}
@keyframes auSweep { 0% { left: -120%; } 45% { left: 140%; } 100% { left: 140%; } }
.au-btn-loading { color: transparent !important; pointer-events: none; }
.au-btn-loading::after { display: none; }
.au-spinner {
  position: absolute; inset: 0; display: none;
  align-items: center; justify-content: center;
}
.au-btn-loading .au-spinner { display: flex; }
.au-spinner i {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid rgba(4, 19, 11, .25); border-top-color: #04130b;
  animation: auSpin .7s linear infinite; display: block;
}

/* 成功遮罩 */
.au-success {
  position: absolute; inset: 0; border-radius: var(--radius);
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(180deg, #132019, #101720); z-index: 5;
}
.au-success.show { display: flex; animation: auModalIn .35s ease both; }
.au-tick {
  width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(0, 230, 118, .14); border: 2px solid var(--primary);
  box-shadow: 0 0 30px rgba(0, 230, 118, .45);
  animation: auTickPop .55s cubic-bezier(.2, .9, .3, 1.4) both;
}
@keyframes auTickPop { 0% { transform: scale(.3); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.au-tick svg { width: 34px; height: 34px; }
.au-tick path {
  stroke: var(--primary); stroke-width: 4; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 40; stroke-dashoffset: 40; animation: auDraw .45s .25s ease forwards;
}
@keyframes auDraw { to { stroke-dashoffset: 0; } }
.au-success .t1 { font-size: 15.5px; font-weight: 800; opacity: 0; animation: auFadeUp .4s .45s ease forwards; }
.au-success .t2 { font-size: 12px; color: var(--muted); opacity: 0; animation: auFadeUp .4s .6s ease forwards; }
@media (prefers-reduced-motion: reduce) {
  .au-ring, .au-mam, .au-pulse, .au-shadow, .au-modal, .au-modal::before, .au-modal::after, .au-modal .btn-primary::after { animation: none; }
}

/* ---------- 后台：充值收款码管理 ---------- */
.pq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.pq-slot {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px;
}
.pq-name { font-size: 14px; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.pq-tag {
  font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 9px;
  background: var(--card-2, rgba(255,255,255,.06)); color: var(--muted); border: 1px solid var(--border);
}
.pq-tag.pq-on { color: var(--primary); border-color: rgba(0, 230, 118, .4); background: rgba(0, 230, 118, .1); }
.pq-prev {
  width: 100%; aspect-ratio: 1; border-radius: 10px; overflow: hidden;
  background: #fff; display: grid; place-items: center; border: 1px solid var(--border);
}
.pq-prev img { width: 100%; height: 100%; object-fit: contain; display: block; }
@media (max-width: 720px) { .pq-grid { grid-template-columns: 1fr; } }

/* ---------- 弹窗滚动兜底：内容过长时弹窗内部可滚（手机） ---------- */
.modal {
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.modal-mask { overflow-y: auto; }

/* 手机端充值弹窗瘦身：双列小码 + 紧凑说明 */
@media (max-width: 560px) {
  .modal { padding: 16px; }
  .modal-mask { padding: 12px; }
  .qr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 12px; }
  .qr-img { width: 100%; height: auto; aspect-ratio: 1 / 1; padding: 6px; border-radius: 10px; }
  .qr-label { font-size: 12px; margin-bottom: 6px; }
  .recharge-note { font-size: 11.5px; padding: 10px 12px; margin-bottom: 10px; }
  .pay-preview img { max-width: 88px; max-height: 88px; }
}
