/* ================= 9pay · 管理后台 ================= */
:root {
  --primary: #2f7dfa;
  --primary-d: #1f65e0;
  --navy: #0d1b31;
  --navy-2: #15294b;
  --bg: #f3f6fb;
  --card: #ffffff;
  --text: #1b2b45;
  --muted: #7c8da5;
  --faint: #9daec3;
  --line: #e8eef7;
  --green: #14a05a;
  --green-bg: #e9f8f0;
  --orange: #dd8a17;
  --orange-bg: #fff5e6;
  --red: #dd523a;
  --red-bg: #fff0ed;
  --purple: #7656f6;
  --purple-bg: #f1edff;
  --cyan: #0e9fb5;
  --cyan-bg: #e8f9fc;
  --shadow: 0 8px 24px rgba(25, 60, 120, 0.06);
  --shadow-lg: 0 24px 60px rgba(15, 40, 80, 0.24);
  --radius: 16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
[hidden] { display: none !important; }

.ic {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mono { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.text-green { color: var(--green); }
.text-orange { color: var(--orange); }
.text-red { color: var(--red); }
.text-blue { color: var(--primary); }
.text-purple { color: var(--purple); }
.nowrap { white-space: nowrap; }

/* ================= 登录 ================= */
.login-layer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: auto;
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(64, 139, 255, 0.34), transparent 62%),
    radial-gradient(700px 420px at 96% 108%, rgba(118, 86, 246, 0.22), transparent 66%),
    linear-gradient(135deg, #081426 0%, #102647 55%, #0a1a33 100%);
}
.login-layer::before,
.login-layer::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}
.login-layer::before { width: 520px; height: 520px; left: -180px; bottom: -240px; }
.login-layer::after { width: 320px; height: 320px; right: -90px; top: -140px; border-width: 1px; }
.login-card {
  position: relative;
  width: min(420px, 100%);
  padding: 30px 30px 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.985);
  box-shadow: 0 30px 90px rgba(0, 12, 40, 0.48);
  animation: loginIn 0.35s ease both;
}
@keyframes loginIn { from { opacity: 0; transform: translateY(14px) scale(0.985); } to { opacity: 1; transform: none; } }
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  font-size: 21px;
  font-weight: 800;
  background: linear-gradient(140deg, #5fa6ff, #2f74f4 60%, #245fe0);
  box-shadow: 0 8px 18px rgba(40, 105, 230, 0.32);
}
.login-brand > div { display: flex; flex-direction: column; gap: 3px; }
.login-brand b { font-size: 16px; letter-spacing: 0.2px; }
.login-brand span:last-child { font-size: 10.5px; color: var(--faint); letter-spacing: 0.4px; }
.login-card h1 { font-size: 22px; letter-spacing: -0.3px; }
.login-sub { margin-top: 7px; margin-bottom: 22px; font-size: 12.5px; color: var(--muted); }
.login-field { display: block; margin-bottom: 13px; font-size: 12px; font-weight: 600; color: #5c6f88; }
.login-field .admin-input { margin-top: 7px; height: 44px; }
.login-submit { margin-top: 4px; height: 46px; font-size: 14px; }
.login-error { display: none; margin: 2px 0 10px; padding: 8px 11px; border-radius: 8px; background: var(--red-bg); color: var(--red); font-size: 11.5px; }
.login-error.show { display: block; }
.login-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f4f8ff;
  font-size: 11.5px;
  color: #7185a0;
}
.login-hint button { margin-left: auto; color: var(--primary); font-weight: 700; font-size: 11.5px; }
.login-note { margin-top: 10px; font-size: 10.5px; color: var(--faint); line-height: 1.6; }
.login-ip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 4px 0 12px;
  padding: 9px 11px;
  border: 1px dashed rgba(190, 146, 55, 0.4);
  border-radius: 9px;
  background: #fbf6ea;
  font-size: 11.5px;
  color: #7d6f51;
}
.login-ip b { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-weight: 700; color: #5c4a28; }
.login-ip button { color: var(--gold-deep, #a9822f); font-weight: 700; font-size: 11px; }

/* ================= 布局 ================= */
.admin-shell { height: 100vh; overflow: hidden; display: flex; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: 236px;
  display: flex;
  flex-direction: column;
  padding: 22px 14px 16px;
  color: #fff;
  background:
    radial-gradient(320px 220px at 8% 0%, rgba(58, 126, 255, 0.22), transparent 70%),
    linear-gradient(180deg, #0d1b31 0%, #122544 58%, #0e1e39 100%);
  box-shadow: 8px 0 30px rgba(10, 25, 55, 0.08);
}
.brand { display: flex; align-items: center; gap: 11px; padding: 2px 10px 22px; }
.brand .brand-logo { width: 38px; height: 38px; font-size: 18px; border-radius: 12px; }
.brand-text { display: flex; flex-direction: column; gap: 2px; }
.brand-text b { font-size: 15px; letter-spacing: 0.2px; }
.brand-text span { font-size: 10px; color: #8fa4c4; letter-spacing: 1.2px; }
.nav { flex: 1; display: flex; flex-direction: column; gap: 3px; overflow: auto; padding-bottom: 10px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  color: #aabdd8;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  transition: background 0.16s, color 0.16s;
}
.nav-item .ic { width: 17px; height: 17px; opacity: 0.92; }
.nav-item:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.nav-item.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(47, 125, 250, 0.98), rgba(47, 125, 250, 0.6));
  box-shadow: 0 8px 20px rgba(18, 77, 190, 0.35);
}
.nav-badge {
  margin-left: auto;
  min-width: 20px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}
.nav-badge.hot { background: #ff6047; box-shadow: 0 3px 8px rgba(220, 60, 40, 0.35); }
.nav-caption { margin: 2px 12px 6px; font-size: 10px; font-weight: 700; letter-spacing: 1.6px; color: #6f86a8; }
.nav-group { display: flex; flex-direction: column; }
.nav-group-head {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  color: #dbe6f6;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  transition: background 0.16s;
}
.nav-group-head:hover { background: rgba(255, 255, 255, 0.06); }
.nav-group-head .ic { width: 17px; height: 17px; opacity: 0.92; }
.nav-group-head .nav-badge { margin-left: auto; }
.nav-group-head .nav-badge ~ .nav-caret { margin-left: 6px; }
.nav-caret { margin-left: auto; width: 14px !important; height: 14px !important; opacity: 0.5; transform: rotate(-90deg); transition: transform 0.18s ease; }
.nav-group.open .nav-caret { transform: rotate(90deg); }
.nav-sub { display: none; flex-direction: column; gap: 2px; padding: 1px 0 7px 30px; }
.nav-group.open .nav-sub { display: flex; }
.nav-sub .nav-item { padding: 8px 12px; font-size: 12.5px; font-weight: 500; color: #93a8c5; border-radius: 8px; }
.nav-sub .nav-item .ic { display: none; }
.nav-sub .nav-item.active { color: #fff; background: linear-gradient(90deg, rgba(47, 125, 250, 0.98), rgba(47, 125, 250, 0.62)); box-shadow: 0 6px 16px rgba(18, 77, 190, 0.32); }
.side-foot { display: flex; flex-direction: column; gap: 2px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.09); }
.side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 9px;
  color: #93a8c5;
  font-size: 12.5px;
  text-align: left;
}
.side-link .ic { width: 16px; height: 16px; }
.side-link:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }

.main { flex: 1; min-width: 0; margin-left: 236px; height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.topbar {
  position: relative;
  z-index: 30;
  flex: 0 0 76px;
  height: 76px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 28px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(15, 35, 65, 0.03);
}
.topbar-title h1 { font-size: 18px; letter-spacing: -0.2px; }
.topbar-title p { margin-top: 3px; font-size: 11.5px; color: var(--muted); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  background: #edf9f2;
  color: #23945b;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.live-pill i { width: 7px; height: 7px; border-radius: 50%; background: #24b56b; box-shadow: 0 0 0 3px rgba(36, 181, 107, 0.14); }
.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #5f728c;
  background: #f2f6fc;
  transition: background 0.16s, color 0.16s;
}
.icon-btn:hover { background: #e9f2ff; color: var(--primary); }
.icon-btn .ic { width: 17px; height: 17px; }
.menu-toggle { display: none; }
.admin-chip { display: flex; align-items: center; gap: 9px; padding-left: 10px; border-left: 1px solid var(--line); }
.admin-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  background: linear-gradient(140deg, #6aa9ff, #2f74f4);
  box-shadow: 0 5px 12px rgba(40, 105, 230, 0.25);
}
.admin-chip > div { display: flex; flex-direction: column; gap: 1px; }
.admin-chip b { font-size: 12.5px; }
.admin-chip span:last-child { font-size: 10px; color: var(--faint); }
.content {
  flex: 1;
  width: 100%;
  min-height: 0;
  padding: 24px 28px 30px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
}

/* ================= 通用组件 ================= */
.card { background: var(--card); border: 1px solid #edf2f9; border-radius: var(--radius); box-shadow: var(--shadow); }
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
}
.card-title { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 7px; }
.card-title .ic { width: 16px; height: 16px; color: var(--primary); }
.card-sub { margin-top: 3px; font-size: 11px; color: var(--faint); }
.card-body { padding: 18px 20px; }
.card-link { display: inline-flex; align-items: center; gap: 3px; color: var(--primary); font-size: 11.5px; font-weight: 600; }
.card-link .ic { width: 13px; height: 13px; }
.card + .card { margin-top: 16px; }

.btn {
  height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: filter 0.15s, background 0.15s, transform 0.12s;
}
.btn .ic { width: 15px; height: 15px; }
.btn:active { transform: translateY(1px); }
.btn.primary { color: #fff; background: linear-gradient(135deg, #4b93ff, #2f74f4); box-shadow: 0 7px 16px rgba(47, 125, 250, 0.26); }
.btn.primary:hover { filter: brightness(1.04); }
.btn.soft { background: #edf4ff; color: var(--primary); }
.btn.soft:hover { background: #e3efff; }
.btn.ghost { background: #f3f7fc; color: #5f728b; }
.btn.ghost:hover { background: #ebf1f9; }
.btn.danger { background: var(--red-bg); color: var(--red); }
.btn.danger:hover { background: #ffe5df; }
.btn.success { background: var(--green-bg); color: var(--green); }
.btn.sm { height: 30px; padding: 0 11px; border-radius: 8px; font-size: 11.5px; gap: 5px; }
.btn.sm .ic { width: 13px; height: 13px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; transform: none; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
}
.badge.blue { background: #eaf3ff; color: #2f7dfa; }
.badge.green { background: var(--green-bg); color: var(--green); }
.badge.orange { background: var(--orange-bg); color: var(--orange); }
.badge.red { background: var(--red-bg); color: var(--red); }
.badge.purple { background: var(--purple-bg); color: var(--purple); }
.badge.cyan { background: var(--cyan-bg); color: var(--cyan); }
.badge.gray { background: #f0f4fa; color: #7c8da5; }
.badge.dark { background: #1c2c46; color: #fff; }
.type-tag {
  display: inline-flex;
  align-items: center;
  margin-left: 7px;
  padding: 2px 6px;
  border-radius: 5px;
  background: #eaf3ff;
  color: #2f7dfa;
  font-size: 9.5px;
  font-weight: 700;
}
.type-tag.sell { background: var(--orange-bg); color: var(--orange); }
.pay-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: #5f728b; }
.pay-mini { width: 18px; height: 18px; border-radius: 5px; object-fit: contain; background: #fff; }
.appeal-tag { display: inline-flex; margin-left: 6px; padding: 2px 6px; border-radius: 5px; background: var(--red-bg); color: var(--red); font-size: 9.5px; font-weight: 700; }

.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.search-box { position: relative; flex: 1 1 220px; max-width: 320px; }
.search-box .ic { position: absolute; left: 12px; top: 50%; width: 15px; height: 15px; transform: translateY(-50%); color: #9aabc1; }
.search-box input {
  width: 100%;
  height: 38px;
  padding: 0 12px 0 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 12.5px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search-box input:focus { border-color: #a8c8f7; box-shadow: 0 0 0 3px rgba(47, 125, 250, 0.08); }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: #edf2fa; }
.seg button { padding: 7px 13px; border-radius: 8px; color: #71849c; font-size: 12px; font-weight: 500; white-space: nowrap; }
.seg button.active { background: #fff; color: var(--primary); font-weight: 700; box-shadow: 0 2px 7px rgba(30, 70, 140, 0.09); }
.admin-select {
  height: 38px;
  padding: 0 30px 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237c8da5' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 11px center;
  font-size: 12.5px;
  color: #4b5f79;
  outline: none;
  appearance: none;
}
.admin-select:focus { border-color: #a8c8f7; }
.admin-input,
.admin-textarea {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #e4ecf6;
  border-radius: 10px;
  background: #f8fbff;
  font-size: 13px;
  outline: none;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.admin-input:focus,
.admin-textarea:focus { background: #fff; border-color: #a8c8f7; box-shadow: 0 0 0 3px rgba(47, 125, 250, 0.08); }
.admin-textarea { height: auto; min-height: 92px; padding: 10px 12px; resize: vertical; line-height: 1.65; }
.admin-input::placeholder, .admin-textarea::placeholder { color: #b0bccb; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row.full { grid-column: 1 / -1; }
.form-row > label { font-size: 11.5px; font-weight: 600; color: #62748e; }
.form-hint { font-size: 10.5px; color: var(--faint); line-height: 1.6; }
.form-error { display: none; margin: 7px 0 0; font-size: 11.5px; color: var(--red); }
.form-error.show { display: block; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px dashed #eef3f9; font-size: 12.5px; }
.switch-row:last-child { border-bottom: 0; }

/* ================= 工作台 ================= */
.dash-hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  margin-bottom: 16px;
  border-radius: 18px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(420px 220px at 94% -30%, rgba(255, 255, 255, 0.24), transparent 70%),
    linear-gradient(120deg, #2f74f4 0%, #3d88ff 55%, #55a4ff 100%);
  box-shadow: 0 16px 34px rgba(40, 105, 230, 0.22);
}
.dash-hero::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -70px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 26px solid rgba(255, 255, 255, 0.08);
}
.dash-hero > div { position: relative; z-index: 1; }
.hero-eyebrow { font-size: 9.5px; letter-spacing: 2px; color: rgba(255, 255, 255, 0.68); font-weight: 700; }
.hero-title { margin-top: 6px; font-size: 20px; letter-spacing: -0.2px; }
.hero-desc { margin-top: 6px; font-size: 11.5px; color: rgba(255, 255, 255, 0.78); line-height: 1.6; }
.hero-side { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.hero-side span { font-size: 10.5px; color: rgba(255, 255, 255, 0.7); }
.hero-side b { font-size: 13px; font-weight: 600; }
.hero-side .btn { margin-top: 9px; }
.hero-side .btn.ghost { background: rgba(255, 255, 255, 0.16); color: #fff; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi {
  position: relative;
  overflow: hidden;
  padding: 18px 19px;
  background: #fff;
  border: 1px solid #edf2f9;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.kpi-label { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--muted); }
.kpi-label .ic { width: 14px; height: 14px; }
.kpi-value { margin-top: 11px; font-size: 27px; font-weight: 800; letter-spacing: -0.8px; line-height: 1; }
.kpi-value small { margin-left: 4px; font-size: 11px; font-weight: 600; color: var(--faint); letter-spacing: 0; }
.kpi-meta { margin-top: 8px; font-size: 10.5px; color: var(--faint); }
.kpi-meta b { color: #5f728b; font-weight: 600; }
.kpi-ic { position: absolute; right: 15px; top: 15px; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; }
.kpi-ic .ic { width: 18px; height: 18px; }
.kpi-ic.blue { background: #eaf3ff; color: #2f7dfa; }
.kpi-ic.green { background: var(--green-bg); color: var(--green); }
.kpi-ic.orange { background: var(--orange-bg); color: var(--orange); }
.kpi-ic.purple { background: var(--purple-bg); color: var(--purple); }
.kpi-ic.red { background: var(--red-bg); color: var(--red); }
.kpi-ic.cyan { background: var(--cyan-bg); color: var(--cyan); }

.dash-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 16px; margin-top: 16px; }
.dash-grid.equal { grid-template-columns: 1fr 1fr; }
.dash-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.task-list { display: flex; flex-direction: column; }
.task-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed #eef3f9; }
.task-item:first-child { padding-top: 2px; }
.task-item:last-child { padding-bottom: 2px; border-bottom: 0; }
.task-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: 0 0 auto; }
.task-ic .ic { width: 16px; height: 16px; }
.task-ic.blue { background: #eaf3ff; color: #2f7dfa; }
.task-ic.orange { background: var(--orange-bg); color: var(--orange); }
.task-ic.red { background: var(--red-bg); color: var(--red); }
.task-ic.green { background: var(--green-bg); color: var(--green); }
.task-body { flex: 1; min-width: 0; }
.task-title { font-size: 12.5px; font-weight: 600; }
.task-desc { margin-top: 3px; font-size: 10.5px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-go { flex: 0 0 auto; padding: 6px 10px; border-radius: 8px; background: #f2f7ff; color: var(--primary); font-size: 11px; font-weight: 600; }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 11px;
  border: 1px solid #edf3fb;
  background: #f9fcff;
  text-align: left;
  color: #42546d;
  font-size: 11.5px;
  font-weight: 600;
  transition: border-color 0.15s, background 0.15s;
}
.quick-btn:hover { border-color: #cfe2ff; background: #f3f8ff; }
.quick-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: 0 0 auto; }
.quick-ic .ic { width: 15px; height: 15px; }

/* ================= 表格 ================= */
.table-wrap { overflow: auto; max-height: calc(100vh - 300px); }
.admin-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12px; }
.admin-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 11px 15px;
  text-align: left;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: #8b9bb0;
  background: #f8fbff;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.admin-table td { padding: 13px 15px; border-bottom: 1px solid #f2f6fb; vertical-align: middle; white-space: nowrap; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tbody tr:hover td { background: #fafcff; }
.admin-table .cell-strong { font-size: 12.5px; font-weight: 600; color: #263a56; }
.cell-main { display: flex; align-items: center; gap: 9px; }
.cell-sub { margin-top: 2px; font-size: 10px; color: var(--faint); }
.cell-badges { margin-top: 5px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.cell-link { color: var(--primary); font-size: inherit; font-weight: 600; text-decoration: underline dotted; text-underline-offset: 2px; }
.cell-link:hover { text-decoration-style: solid; }
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.55), transparent 48%),
    linear-gradient(140deg, hsl(var(--h, 212) 88% 68%), hsl(calc(var(--h, 212) + 22) 82% 52%));
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 28px; height: 28px; font-size: 11px; }
.avatar.lg { width: 64px; height: 64px; font-size: 24px; box-shadow: 0 8px 20px rgba(25, 65, 140, 0.18); }
.row-actions { display: flex; align-items: center; gap: 6px; }

.empty-state { padding: 40px 20px; text-align: center; color: var(--faint); font-size: 12px; line-height: 1.7; }
.empty-ic { width: 54px; height: 54px; margin: 0 auto 11px; border-radius: 50%; display: grid; place-items: center; background: #f2f7fe; color: #a3b9d6; }
.empty-ic .ic { width: 24px; height: 24px; }
.empty-state b { display: block; margin-bottom: 3px; color: #6f829b; font-size: 12.5px; }

/* ================= 用户管理 ================= */
.profile-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  margin-bottom: 16px;
  background: #fff;
  border: 1px solid #edf2f9;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.profile-main { min-width: 0; flex: 1; }
.profile-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 18px; font-weight: 800; letter-spacing: -0.2px; }
.profile-meta { margin-top: 6px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 11px; color: var(--faint); }
.profile-meta .mono { color: #7e90a8; }
.profile-tags { margin-top: 9px; display: flex; gap: 6px; flex-wrap: wrap; }
.profile-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.asset-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.asset-card { padding: 15px 17px; background: #fff; border: 1px solid #edf2f9; border-radius: 14px; box-shadow: var(--shadow); }
.asset-label { font-size: 10.5px; color: var(--faint); }
.asset-value { margin-top: 7px; font-size: 21px; font-weight: 800; letter-spacing: -0.4px; }
.asset-value small { margin-left: 3px; font-size: 10.5px; font-weight: 600; color: var(--faint); }
.asset-note { margin-top: 4px; font-size: 10px; color: var(--faint); }

.info-list { display: flex; flex-direction: column; }
.info-row { display: flex; align-items: flex-start; gap: 14px; padding: 11px 0; border-bottom: 1px dashed #eef3f9; }
.info-row:first-child { padding-top: 2px; }
.info-row:last-child { padding-bottom: 2px; border-bottom: 0; }
.info-label { width: 88px; flex: 0 0 auto; font-size: 11.5px; color: var(--faint); }
.info-value { flex: 1; min-width: 0; font-size: 12.5px; color: #34465f; word-break: break-all; }
.info-value.mono { font-size: 11.5px; }

/* ================= 审核中心 / 申诉 ================= */
.review-card { padding: 18px 20px; border: 1px solid #edf2f9; border-radius: 14px; background: #fbfdff; }
.review-card + .review-card { margin-top: 12px; }
.review-head { display: flex; align-items: flex-start; gap: 12px; }
.review-head .avatar { margin-top: 1px; }
.review-main { flex: 1; min-width: 0; }
.review-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; font-weight: 700; }
.review-sub { margin-top: 4px; font-size: 11px; color: var(--faint); line-height: 1.6; }
.review-meta { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; font-size: 11.5px; }
.review-meta div { display: flex; gap: 7px; min-width: 0; }
.review-meta span:first-child { color: var(--faint); flex: 0 0 auto; }
.review-meta span:last-child { color: #42546d; word-break: break-all; }
.review-note { margin-top: 12px; padding: 10px 12px; border-radius: 9px; background: #f6f9fe; color: #62748e; font-size: 11.5px; line-height: 1.65; }
.review-actions { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }

/* 认证资料 */
.review-docs { margin-top: 14px; padding: 12px; border-radius: 12px; background: #f7fbff; border: 1px dashed #d5e5f7; }
.review-docs-head { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; font-size: 11.5px; font-weight: 600; color: #42546d; }
.review-docs-head .ic { width: 14px; height: 14px; color: #2f7dfa; }
.review-docs-head .btn { margin-left: auto; }

.doc-strip { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.doc-strip.big { gap: 10px; }
.doc-thumb {
  position: relative;
  width: 36px;
  height: 24px;
  padding: 0;
  flex: 0 0 auto;
  display: block;
  overflow: hidden;
  border: 1px solid #e3ecf7;
  border-radius: 7px;
  background: #eef4fb;
  cursor: pointer;
}
.doc-thumb.big { width: 150px; height: 94px; border-radius: 10px; }
.doc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.doc-thumb.empty { display: flex; align-items: center; justify-content: center; color: #a4b4c8; font-size: 9px; background: #f4f8fc; border-style: dashed; cursor: default; }
.doc-thumb.big.empty { font-size: 11px; }
.doc-thumb-tag {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 6px 3px;
  font-size: 9px;
  color: #fff;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: linear-gradient(0deg, rgba(10, 30, 55, 0.74), rgba(10, 30, 55, 0));
}
.doc-cell { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.doc-cell .btn { flex: 0 0 auto; }

.doc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.doc-card { padding: 10px; border: 1px solid #e7eff9; border-radius: 12px; background: #fbfdff; min-width: 0; }
.doc-card.face { grid-column: 1 / -1; }
.doc-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; font-size: 11.5px; font-weight: 600; color: #42546d; }
.doc-open { position: relative; display: block; width: 100%; height: 170px; padding: 0; border-radius: 9px; overflow: hidden; background: #eef4fb; }
.doc-card.face .doc-open { height: 250px; }
.doc-open img { width: 100%; height: 100%; object-fit: contain; background: #f2f7fc; display: block; }
.doc-zoom {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(12, 35, 62, 0.72);
  color: #fff;
  font-size: 10px;
}
.doc-zoom .ic { width: 12px; height: 12px; }
.doc-empty {
  height: 170px;
  border-radius: 9px;
  border: 1px dashed #d6e4f4;
  background: #f6fafe;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #a3b3c7;
  font-size: 11px;
}
.doc-empty .ic { width: 22px; height: 22px; }
.doc-card.face .doc-empty { height: 250px; }
.doc-privacy {
  margin-top: 14px;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 10px 12px;
  border-radius: 9px;
  background: #f5f9ff;
  color: #7286a0;
  font-size: 11px;
  line-height: 1.6;
}
.doc-privacy .ic { width: 14px; height: 14px; flex: 0 0 auto; margin-top: 1px; color: #2f7dfa; }
.doc-view { padding: 10px; border-radius: 12px; background: #f2f7fc; }
.doc-view img { width: 100%; max-height: 62vh; object-fit: contain; display: block; border-radius: 8px; }
.doc-view-meta { margin-top: 10px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 11px; color: var(--faint); }
.user-doc-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.section-title { display: flex; align-items: center; gap: 8px; margin: 22px 0 12px; font-size: 13.5px; font-weight: 700; }
.section-title:first-child { margin-top: 0; }
.section-title .badge { margin-left: 2px; }

.report-list { display: flex; flex-direction: column; gap: 10px; }
.report-item { padding: 14px 16px; border: 1px solid #edf2f9; border-radius: 12px; background: #fff; }
.report-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.report-title { font-size: 12.5px; font-weight: 700; }
.report-desc { margin-top: 7px; font-size: 11.5px; color: #5c6f88; line-height: 1.7; }
.report-meta { margin-top: 7px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 10.5px; color: var(--faint); }
.report-actions { margin-top: 11px; display: flex; gap: 7px; flex-wrap: wrap; }

.appeal-note { margin-top: 10px; padding: 10px 12px; border-left: 3px solid #ffbe6b; border-radius: 4px 9px 9px 4px; background: #fff9f0; color: #8b6430; font-size: 11.5px; line-height: 1.7; }

/* ================= 通知公告 ================= */
.notice-layout { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 16px; align-items: start; }
.template-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.template-chip { padding: 5px 10px; border-radius: 8px; background: #f1f6fd; color: #5f7897; font-size: 10.5px; font-weight: 600; }
.template-chip:hover { background: #e6f0ff; color: var(--primary); }
.notice-list { display: flex; flex-direction: column; }
.notice-item { display: flex; gap: 11px; padding: 13px 0; border-bottom: 1px dashed #edf2f9; }
.notice-item:first-child { padding-top: 2px; }
.notice-item:last-child { padding-bottom: 2px; border-bottom: 0; }
.notice-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 5px; flex: 0 0 auto; background: var(--primary); }
.notice-dot.read { background: #cdd8e6; }
.notice-body { flex: 1; min-width: 0; }
.notice-title { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 12.5px; font-weight: 600; }
.notice-text { margin-top: 4px; font-size: 11.5px; color: #6b7d95; line-height: 1.65; }
.notice-meta { margin-top: 5px; font-size: 10px; color: var(--faint); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.notice-del { margin-left: auto; color: #a7b5c7; padding: 3px; align-self: flex-start; }
.notice-del:hover { color: var(--red); }
.notice-del .ic { width: 14px; height: 14px; }

/* ================= 设置 / 日志 ================= */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }

/* USDT 充值管理 */
.qr-config { display: flex; align-items: flex-start; gap: 14px; }
.qr-config-box {
  width: 132px;
  height: 132px;
  flex: 0 0 auto;
  border-radius: 13px;
  border: 1px solid #e4edf8;
  background: #fff;
  padding: 6px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.qr-config-box img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; display: block; }
.qr-config-box.empty {
  border-style: dashed;
  border-color: #cfdff2;
  background: #f7fbff;
  color: #a3b5ca;
  font-size: 10px;
  text-align: center;
  line-height: 1.5;
  gap: 5px;
}
.qr-config-box.empty .ic { width: 24px; height: 24px; color: #b4c6da; }
.qr-config-box.sm { width: 104px; height: 104px; margin: 0 auto; }
.qr-config-side { flex: 1; min-width: 0; padding-top: 2px; }
.qr-config-side b { display: block; font-size: 12px; color: #34465f; }
.qr-config-side span { display: block; margin-top: 4px; font-size: 10.5px; color: var(--faint); line-height: 1.6; }
.qr-config-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.usdt-preview { border: 1px solid #e8f0fa; border-radius: 15px; background: #f7fbff; padding: 15px; }
.up-head { text-align: center; }
.up-head span { display: block; font-size: 10.5px; color: #8ba0b8; }
.up-head b { display: block; margin-top: 3px; font-size: 15px; color: #1b3a5c; }
.up-head em { display: block; margin-top: 4px; font-style: normal; font-size: 10px; color: #98a8bc; }
.up-amount {
  margin: 12px 0;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e8f0fa;
  padding: 10px 13px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.up-amount span { font-size: 10px; color: #98a8bc; }
.up-amount b { font-size: 19px; color: #1b2b45; }
.up-amount b em { font-style: normal; font-size: 10px; color: #98a8bc; font-weight: 500; }
.up-amount .q { font-style: normal; font-size: 10.5px; font-weight: 600; color: var(--green); }
.up-addr { margin-top: 10px; border-radius: 11px; background: #fff; border: 1px solid #e8f0fa; padding: 9px 12px; }
.up-addr span { display: block; font-size: 9.5px; color: #98a8bc; }
.up-addr b { display: block; margin-top: 3px; font-size: 10.5px; color: #42546d; word-break: break-all; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; line-height: 1.5; }
.usdt-confirm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.usdt-confirm-grid > div { background: #f7faff; border-radius: 11px; padding: 10px 13px; min-width: 0; }
.usdt-confirm-grid span { display: block; font-size: 10px; color: var(--faint); }
.usdt-confirm-grid b { display: block; margin-top: 3px; font-size: 13px; color: #34465f; word-break: break-all; }
.notice-inline {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f4f9ff;
  color: #5e7896;
  font-size: 11px;
  line-height: 1.6;
}
.notice-inline.warn { background: #fff8ec; color: #a8731f; }
.notice-inline .ic { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 1px; }
.rule-list { display: flex; flex-direction: column; }
.rule-item { display: flex; align-items: flex-start; gap: 11px; padding: 11px 0; border-bottom: 1px dashed #eef3f9; }
.rule-item:first-child { padding-top: 2px; }
.rule-item:last-child { border-bottom: 0; padding-bottom: 2px; }
.rule-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: 0 0 auto; background: #eef5ff; color: var(--primary); }
.rule-ic .ic { width: 15px; height: 15px; }
.rule-body { flex: 1; min-width: 0; }
.rule-title { font-size: 12.5px; font-weight: 600; }
.rule-desc { margin-top: 3px; font-size: 11px; color: var(--faint); line-height: 1.6; }
.danger-zone { border-color: #ffe1da; }
.danger-zone .card-title .ic { color: var(--red); }
.danger-zone .card-body { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.danger-zone p { flex: 1; min-width: 200px; font-size: 11.5px; color: #8a6a64; line-height: 1.65; }

/* ================= 抽屉 ================= */
.drawer-layer { position: fixed; inset: 0; z-index: 80; }
.drawer-mask { position: absolute; inset: 0; background: rgba(12, 25, 46, 0.44); backdrop-filter: blur(2px); animation: fadeIn 0.2s ease; }
.drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(500px, 94vw);
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: -16px 0 48px rgba(15, 40, 80, 0.18);
  animation: drawerIn 0.24s cubic-bezier(0.22, 0.8, 0.3, 1);
}
@keyframes drawerIn { from { transform: translateX(40px); opacity: 0.6; } to { transform: none; opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.drawer-head { display: flex; align-items: flex-start; gap: 12px; padding: 20px 22px 16px; border-bottom: 1px solid var(--line); }
.drawer-title { flex: 1; min-width: 0; }
.drawer-title h2 { font-size: 16px; letter-spacing: -0.2px; }
.drawer-title p { margin-top: 4px; font-size: 11px; color: var(--faint); }
.drawer-close { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: #7c8da5; background: #f3f7fc; flex: 0 0 auto; }
.drawer-close:hover { background: #eaf1fa; color: #42546d; }
.drawer-close .ic { width: 15px; height: 15px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 22px 24px; }
.drawer-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; padding: 14px 22px; border-top: 1px solid var(--line); background: #fbfdff; }
.drawer-foot .btn { height: 36px; }
.detail-section { margin-bottom: 18px; }
.detail-section:last-child { margin-bottom: 0; }
.detail-title { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.3px; color: #8b9bb0; text-transform: uppercase; }
.detail-list { border: 1px solid #edf2f9; border-radius: 12px; padding: 4px 14px; background: #fbfdff; }
.detail-row { display: flex; align-items: flex-start; gap: 14px; padding: 10px 0; border-bottom: 1px dashed #eaf0f8; font-size: 12px; }
.detail-row:last-child { border-bottom: 0; }
.detail-label { width: 84px; flex: 0 0 auto; color: var(--faint); font-size: 11.5px; }
.detail-value { flex: 1; min-width: 0; color: #34465f; word-break: break-all; text-align: right; }
.detail-value.strong { font-weight: 700; }
.note-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 9px; }
.note-meta { font-size: 10.5px; color: var(--faint); }
.amount-hero { padding: 16px; margin-bottom: 18px; border-radius: 13px; background: linear-gradient(135deg, #f2f8ff, #eaf3ff); text-align: center; }
.amount-hero span { display: block; font-size: 10.5px; color: #7e93ad; }
.amount-hero b { display: block; margin-top: 5px; font-size: 26px; font-weight: 800; letter-spacing: -0.6px; color: #1f65e0; }
.amount-hero small { font-size: 11px; color: #7e93ad; font-weight: 600; }

/* ================= 弹窗 ================= */
.modal-layer { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; }
.modal-mask { position: absolute; inset: 0; background: rgba(12, 25, 46, 0.46); backdrop-filter: blur(2px); animation: fadeIn 0.18s ease; }
.modal {
  position: relative;
  width: min(500px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.2s cubic-bezier(0.22, 0.8, 0.3, 1);
}
@keyframes modalIn { from { transform: translateY(10px) scale(0.985); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head { display: flex; align-items: flex-start; gap: 12px; padding: 20px 22px 0; }
.modal-head h2 { flex: 1; font-size: 16px; letter-spacing: -0.2px; }
.modal-head p { margin-top: 4px; font-size: 11px; color: var(--faint); }
.modal-body { padding: 16px 22px 4px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 9px; padding: 18px 22px 20px; }
.modal-confirm-text { padding: 4px 0 10px; font-size: 12.5px; color: #5f728b; line-height: 1.75; }
.modal-confirm-text b { color: #2c405c; }

/* ================= Toast ================= */
.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  z-index: 120;
  max-width: calc(100vw - 40px);
  padding: 10px 18px;
  border-radius: 10px;
  background: #17263f;
  color: #fff;
  font-size: 12.5px;
  box-shadow: 0 12px 30px rgba(10, 25, 55, 0.25);
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ================= 工具类 / 表单补充 ================= */
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.data-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.hue-row { display: flex; gap: 10px; margin: 6px 0 4px; }
.hue-dot {
  width: 26px; height: 26px; border-radius: 50%;
  background: hsl(var(--h) 72% 56%);
  border: 2px solid transparent;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55);
  transition: transform 0.15s, box-shadow 0.15s;
}
.hue-dot:hover { transform: scale(1.08); }
.hue-dot.active { box-shadow: 0 0 0 3px #fff, 0 0 0 5px hsl(var(--h) 72% 56%); }
.pay-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.pay-check {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px;
  background: #fbfdff; cursor: pointer; font-size: 11.5px; color: #5f728b;
  transition: border-color 0.15s, background 0.15s;
}
.pay-check input { margin: 0; accent-color: var(--primary); }
.pay-check:has(input:checked) { border-color: #bcd7ff; background: #eef6ff; color: var(--primary); }
.modal-head > div { flex: 1; min-width: 0; }

/* ================= 响应式 ================= */
@media (max-width: 1180px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-grid, .dash-grid.equal { grid-template-columns: 1fr; }
  .notice-layout, .settings-grid { grid-template-columns: 1fr; }
  .asset-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: transform 0.24s ease; }
  .admin-shell.nav-open .sidebar { transform: none; }
  .sidebar-mask { display: none; position: fixed; inset: 0; z-index: 35; background: rgba(10, 20, 40, 0.45); backdrop-filter: blur(2px); }
  .admin-shell.nav-open .sidebar-mask { display: block; }
  .main { margin-left: 0; }
  .menu-toggle { display: grid; }
  .topbar { padding: 0 16px; }
  .content { padding: 18px 16px 36px; }
  .profile-hero { align-items: flex-start; flex-wrap: wrap; }
  .profile-actions { width: 100%; justify-content: flex-start; }
}
@media (max-width: 640px) {
  .kpi-grid, .asset-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 14px; }
  .kpi-value { font-size: 21px; }
  .kpi-ic { width: 32px; height: 32px; right: 11px; top: 11px; border-radius: 9px; }
  .kpi-ic .ic { width: 15px; height: 15px; }
  .kpi-label { font-size: 10.5px; }
  .kpi-meta { font-size: 9.5px; }
  .topbar-title p { display: none; }
  .live-pill { display: none; }
  .admin-chip > div { display: none; }
  .admin-chip { padding-left: 4px; border-left: 0; }
  .hero-side { display: none; }
  .dash-hero { padding: 18px; }
  .hero-title { font-size: 18px; }
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .review-meta { grid-template-columns: 1fr; gap: 7px; }
  .doc-grid { grid-template-columns: 1fr; }
  .doc-card.face { grid-column: auto; }
  .doc-thumb.big { width: 96px; height: 62px; }
  .doc-open, .doc-empty, .doc-card.face .doc-open, .doc-card.face .doc-empty { height: 190px; }
  .detail-label { width: 76px; }
  .card-head { padding: 14px 15px; }
  .card-body { padding: 15px; }
  .admin-table th, .admin-table td { padding: 11px 12px; }
  .profile-avatar { width: 54px; height: 54px; font-size: 20px; }
  .drawer { width: 100vw; }
  .modal { max-height: 92vh; }
  .hide-sm { display: none !important; }
}

/* 多用户列表 */
.badge + .badge { margin-left: 4px; }
.cell-strong .badge { margin-left: 5px; }
.cell-sub .badge { margin-left: 4px; }
.admin-table td .row-actions { flex-wrap: nowrap; }
.admin-table td .cell-main { min-width: 150px; }

/* 经营报表 */
.report-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; }
.report-grid + .report-grid { margin-top: 16px; }
.chart-bars { display: flex; align-items: flex-end; gap: 10px; height: 168px; padding: 8px 4px 0; }
.chart-col { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; min-width: 0; }
.chart-bar { width: 100%; max-width: 36px; min-height: 4px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, #6ba4ff, #2f7dfa); }
.chart-val { font-size: 9.5px; font-weight: 600; color: #5c7191; white-space: nowrap; }
.chart-day { font-size: 9.5px; color: #93a4ba; white-space: nowrap; }
.status-list { display: flex; flex-direction: column; gap: 13px; padding: 4px 0; }
.status-line { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.status-name { width: 66px; flex: 0 0 auto; color: #5c7191; }
.status-track { flex: 1; height: 8px; border-radius: 999px; background: #eef3fa; overflow: hidden; }
.status-fill { height: 100%; border-radius: 999px; background: var(--primary); min-width: 2px; }
.status-count { width: 50px; flex: 0 0 auto; text-align: right; font-weight: 700; color: #34465f; }
.rank-list { display: flex; flex-direction: column; }
.rank-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed #eaf0f8; font-size: 12px; }
.rank-row:last-child { border-bottom: 0; }
.rank-no { width: 20px; height: 20px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; background: #eef3fa; color: #7b8fa9; font-size: 10px; font-weight: 700; flex: 0 0 auto; }
.rank-row:nth-child(1) .rank-no { background: #fff4e0; color: #d68a12; }
.rank-row:nth-child(2) .rank-no { background: #eef2f8; color: #6c7f98; }
.rank-row:nth-child(3) .rank-no { background: #fdf0ea; color: #c9764f; }
.rank-name { flex: 1; min-width: 0; }
.rank-name b { display: block; font-size: 12px; color: #34465f; }
.rank-name span { font-size: 10px; color: var(--faint); }
.rank-val { text-align: right; font-weight: 700; color: #34465f; }
.rank-val span { display: block; font-size: 9.5px; font-weight: 500; color: var(--faint); }

@media (max-width: 980px) {
  .report-grid { grid-template-columns: 1fr; }
  .chart-bars { gap: 6px; }
}

/* ================= 奢华主题：鎏金 × 皇家蓝 ================= */
:root {
  --gold: #d9b25f;
  --gold-light: #f4dfae;
  --gold-deep: #a9802f;
  --gold-soft: #fbf5e8;
  --royal: #08152d;
  --royal-2: #10254a;
  --line-warm: #f0e7d5;
}

/* 登录 */
.login-layer {
  background:
    radial-gradient(780px 540px at 8% -14%, rgba(245, 211, 135, 0.26), transparent 60%),
    radial-gradient(820px 540px at 102% 110%, rgba(124, 96, 255, 0.24), transparent 62%),
    radial-gradient(900px 620px at 72% 34%, rgba(38, 92, 198, 0.28), transparent 68%),
    linear-gradient(150deg, #060d1e 0%, #0d1c3a 52%, #191338 100%);
}
.login-layer::before { border-color: rgba(246, 216, 148, 0.14); }
.login-layer::after { border-color: rgba(246, 216, 148, 0.1); }
.login-card {
  border: 1px solid rgba(238, 204, 133, 0.4);
  background: linear-gradient(162deg, #fffefb 0%, #fdf8ee 100%);
  box-shadow:
    0 30px 90px rgba(0, 8, 28, 0.6),
    0 0 0 7px rgba(238, 204, 133, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
.login-card::before {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 236, 190, 0.95), transparent);
}
.login-brand {
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(217, 178, 95, 0.22);
}
.brand-logo {
  background: linear-gradient(145deg, #fff1c6 0%, #eccd85 46%, #bd8d33 100%);
  color: #2a1c05;
  border: 1px solid rgba(255, 245, 214, 0.75);
  box-shadow:
    0 10px 24px rgba(189, 141, 51, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}
.brand-logo .ic { width: 21px; height: 21px; stroke-width: 1.7; }
.login-brand b { color: #1a2a46; }
.login-brand span:last-child { color: #a2916d; letter-spacing: 0.6px; }
.login-card h1 { color: #152640; }
.login-sub { color: #7f897c; }
.login-field { color: #6a7688; }
.login-card .admin-input { background: #fffdf8; border-color: #ece2cf; }
.login-card .admin-input:focus {
  border-color: rgba(190, 146, 55, 0.6);
  box-shadow: 0 0 0 3px rgba(217, 178, 95, 0.16);
}
.login-card .login-submit.btn.primary {
  color: #2a1d05;
  font-weight: 800;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #ffedbb 0%, #eccb85 40%, #d0a24a 72%, #b8862e 100%);
  box-shadow:
    0 14px 30px rgba(184, 134, 46, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}
.login-hint {
  background: #fbf5e7;
  border: 1px solid rgba(217, 178, 95, 0.26);
  color: #7d6f51;
}
.login-hint button { color: var(--gold-deep); }
.login-note { color: #a79e89; }

/* 侧边栏 */
.sidebar {
  background:
    radial-gradient(380px 260px at 6% 0%, rgba(238, 204, 133, 0.15), transparent 70%),
    radial-gradient(320px 300px at 100% 104%, rgba(78, 112, 255, 0.2), transparent 72%),
    linear-gradient(180deg, #070f22 0%, #10213f 58%, #0b1730 100%);
  border-right: 1px solid rgba(238, 204, 133, 0.1);
  box-shadow: 10px 0 34px rgba(5, 14, 34, 0.22);
}
.brand-text b { color: #fdf6e6; }
.brand-text span { color: #b9a87f; }
.nav-caption { color: #8e8467; }
.nav-item, .nav-sub .nav-item, .side-link { position: relative; }
.nav-item.active {
  background: linear-gradient(90deg, rgba(47, 125, 250, 0.95), rgba(105, 78, 220, 0.9));
  box-shadow:
    0 8px 20px rgba(30, 55, 160, 0.38),
    inset 0 0 0 1px rgba(243, 221, 170, 0.26);
}
.nav-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, #ffeab8, #c99a41);
}
.nav-sub .nav-item.active {
  background: linear-gradient(90deg, rgba(47, 125, 250, 0.9), rgba(112, 86, 246, 0.82));
  box-shadow:
    0 6px 16px rgba(30, 55, 160, 0.34),
    inset 0 0 0 1px rgba(243, 221, 170, 0.22);
}
.nav-group-head .ic, .nav-item .ic, .side-link .ic { color: #cfc09a; }
.nav-item.active .ic, .nav-sub .nav-item.active .ic { color: #fff; }
.side-foot { border-top-color: rgba(238, 204, 133, 0.14); }

/* 顶栏 */
.topbar {
  background: linear-gradient(180deg, #fffefb 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line-warm);
}
.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217, 178, 95, 0.5), transparent);
  pointer-events: none;
}
.admin-avatar {
  background: linear-gradient(140deg, #fff0c5 0%, #e3bd6f 52%, #b9852d 100%);
  color: #2a1d05;
  box-shadow: 0 5px 14px rgba(177, 127, 42, 0.34);
}
.icon-btn { background: #f7f3ea; color: #7c7157; }
.icon-btn:hover { background: #fdf3dd; color: var(--gold-deep); }
.live-pill {
  background: #f6fbf7;
  border: 1px solid rgba(35, 148, 91, 0.16);
}

/* 卡片 / KPI / 资产卡 */
.card {
  border-color: var(--line-warm);
  box-shadow: 0 10px 26px rgba(31, 64, 120, 0.065);
}
.card-head { border-bottom-color: #f5efe3; }
.card-title .ic { color: var(--gold-deep); }
.kpi, .asset-card, .profile-hero, .review-card {
  background: linear-gradient(180deg, #fffdf9 0%, #ffffff 56%);
  border-color: var(--line-warm);
}
.kpi { transition: transform 0.18s ease, box-shadow 0.18s ease; }
.kpi::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217, 178, 95, 0.6), transparent);
}
.kpi:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(31, 64, 120, 0.12);
}
.kpi-ic { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 5px 12px rgba(31, 64, 120, 0.1); }
.profile-hero {
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(31, 64, 120, 0.08);
}
.profile-hero::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -90px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 214, 144, 0.16), transparent 68%);
  pointer-events: none;
}
.profile-hero > * { position: relative; z-index: 1; }
.profile-avatar, .avatar.lg {
  box-shadow:
    0 0 0 2px rgba(247, 217, 152, 0.85),
    0 0 0 6px rgba(247, 217, 152, 0.1),
    0 10px 22px rgba(25, 65, 140, 0.2);
}
.asset-card { box-shadow: 0 8px 22px rgba(31, 64, 120, 0.06); }
.asset-value { color: #21354f; }

/* 按钮 */
.btn.primary {
  background: linear-gradient(135deg, #4b93ff 0%, #2f74f4 56%, #2359c9 100%);
  box-shadow:
    0 7px 16px rgba(47, 125, 250, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn.ghost {
  background: #f7f4ec;
  color: #756a52;
  box-shadow: inset 0 0 0 1px rgba(226, 213, 185, 0.5);
}
.btn.ghost:hover { background: #f3edde; color: #5f543d; }
.btn.soft { background: #f3ecdc; color: var(--gold-deep); }

/* 表格 */
.admin-table th {
  background: linear-gradient(180deg, #fdfaf3 0%, #f8f4ea 100%);
  color: #8d7c58;
  border-bottom-color: var(--line-warm);
}
.admin-table td { border-bottom-color: #f7f2e8; }
.admin-table tbody tr:hover td { background: #fffdf6; }
.cell-sub { color: #a39a86; }

/* 主视觉横幅 */
.dash-hero {
  background:
    radial-gradient(420px 240px at 94% -30%, rgba(250, 222, 154, 0.26), transparent 70%),
    radial-gradient(320px 220px at 6% 120%, rgba(96, 122, 255, 0.26), transparent 70%),
    linear-gradient(120deg, #0a1730 0%, #153a72 58%, #2a2b6c 100%);
  border: 1px solid rgba(238, 204, 133, 0.26);
  box-shadow: 0 18px 38px rgba(8, 24, 56, 0.3);
}
.dash-hero::after { border-color: rgba(247, 217, 152, 0.12); }
.hero-eyebrow { color: rgba(247, 221, 166, 0.7); }
.hero-desc { color: rgba(255, 246, 226, 0.76); }

/* 抽屉 / 弹窗 */
.drawer, .modal {
  border: 1px solid rgba(226, 213, 185, 0.5);
  box-shadow: 0 30px 80px rgba(8, 20, 44, 0.32);
}
.drawer-head { border-bottom-color: #f4ecdc; }
.drawer-foot { background: #fffdf8; border-top-color: #f2e9d8; }
.modal-head h2, .drawer-title h2 { color: #1b2c47; }
.modal-foot { background: #fffdf8; border-top: 1px solid #f2e9d8; }
.drawer-close { background: #f8f3e8; color: #8a7c60; }
.drawer-close:hover { background: #f3ead7; color: #5f533d; }
.admin-input:focus, .admin-select:focus, .admin-textarea:focus {
  border-color: rgba(190, 146, 55, 0.55);
  box-shadow: 0 0 0 3px rgba(217, 178, 95, 0.14);
}
.search-box input:focus {
  border-color: rgba(190, 146, 55, 0.5);
  box-shadow: 0 0 0 3px rgba(217, 178, 95, 0.12);
}

/* 报表细节 */
.chart-bar { background: linear-gradient(180deg, #8fbaff 0%, #2f7dfa 55%, #2a5fc4 100%); }
.status-fill { background: linear-gradient(90deg, #dfbb6c, #b9872f); }
.rank-row:nth-child(1) .rank-no { background: linear-gradient(135deg, #fff0c4, #e9c478); color: #8a6414; }

/* 鎏金细节 */
.main::before {
  content: "";
  position: fixed;
  top: 0;
  left: 236px;
  right: 0;
  height: 3px;
  z-index: 50;
  background: linear-gradient(90deg, #c39a45 0%, #f4dfae 32%, #5a93f5 68%, #7656f6 100%);
  opacity: 0.9;
  pointer-events: none;
}
@media (max-width: 980px) {
  .main::before { left: 0; }
}
.brand {
  padding-bottom: 16px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(238, 204, 133, 0.14);
}
.nav-item.active::before { width: 3px; top: 8px; bottom: 8px; }
.asset-grid .asset-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.asset-grid .asset-card::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217, 178, 95, 0.65), transparent);
}
.asset-grid .asset-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(31, 64, 120, 0.1);
}
.kpi-grid .kpi:first-child {
  color: #fff;
  border-color: rgba(238, 204, 133, 0.34);
  background:
    radial-gradient(220px 160px at 92% -22%, rgba(250, 222, 154, 0.3), transparent 70%),
    radial-gradient(200px 160px at 4% 120%, rgba(96, 122, 255, 0.22), transparent 70%),
    linear-gradient(140deg, #0c1c3b 0%, #173a72 58%, #2a2a68 100%);
  box-shadow: 0 18px 38px rgba(8, 24, 56, 0.28);
}
.kpi-grid .kpi:first-child::before {
  background: linear-gradient(90deg, transparent, rgba(255, 236, 190, 0.8), transparent);
}
.kpi-grid .kpi:first-child .kpi-label { color: rgba(255, 244, 220, 0.8); }
.kpi-grid .kpi:first-child .kpi-label .ic { color: #f0d79c; }
.kpi-grid .kpi:first-child .kpi-value {
  color: #fff6e4;
  text-shadow: 0 2px 16px rgba(247, 221, 166, 0.24);
}
.kpi-grid .kpi:first-child .kpi-value small { color: rgba(247, 221, 166, 0.75); }
.kpi-grid .kpi:first-child .kpi-meta { color: rgba(255, 244, 220, 0.62); }
.kpi-grid .kpi:first-child .kpi-meta b { color: #f5dfae; }
.kpi-grid .kpi:first-child .kpi-ic {
  color: #f7ddaa;
  background: rgba(247, 217, 152, 0.14);
  border: 1px solid rgba(247, 217, 152, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.dash-hero::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 236, 190, 0.8), transparent);
  pointer-events: none;
}

/* ===== 转账凭证（后台订单详情） ===== */
.proof-shot {
  border: 1px solid #f1e7d3;
  border-radius: 12px;
  overflow: hidden;
  background: #fdf9f1;
  box-shadow: 0 6px 16px rgba(31, 64, 120, 0.06);
}
.proof-shot img {
  display: block;
  width: 100%;
  max-height: 340px;
  object-fit: contain;
  background: #ffffff;
}

/* ===== 订单表：凭证缩略图 / 取消原因 ===== */
.proof-mini {
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid #eadfc6;
  border-radius: 9px;
  overflow: hidden;
  background: #fff;
  cursor: zoom-in;
  box-shadow: 0 4px 10px rgba(31, 64, 120, 0.08);
  transition: transform 0.16s, box-shadow 0.16s;
}
.proof-mini:hover { transform: translateY(-1px); box-shadow: 0 8px 16px rgba(31, 64, 120, 0.14); }
.proof-mini img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cancel-reason {
  display: inline-block;
  min-width: 100px;
  max-width: 168px;
  padding: 3px 9px;
  border-radius: 8px;
  background: #fdf3f2;
  color: #b4553f;
  font-size: 11px;
  line-height: 1.45;
  white-space: normal;
  word-break: break-all;
}

/* ===== 用户资金流水 ===== */
.flow-list { display: flex; flex-direction: column; }
.flow-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px dashed #f1ece1;
}
.flow-item:last-child { border-bottom: 0; }
.flow-main { flex: 1; min-width: 0; }
.flow-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #263a56;
}
.flow-sub {
  margin-top: 3px;
  font-size: 10.5px;
  color: #a39a86;
  white-space: normal;
  word-break: break-all;
}
.flow-amt {
  flex: 0 0 auto;
  text-align: right;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.flow-amt small {
  display: block;
  margin-top: 2px;
  font-size: 9.5px;
  font-weight: 500;
  color: #a39a86;
}

/* ===== 凭证放大查看 ===== */
.proof-shot-btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  text-align: left;
  cursor: zoom-in;
}
.proof-shot-hint {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(18, 33, 58, 0.78);
  color: #f4dfae;
  font-size: 10px;
  pointer-events: none;
}
.proof-shot-hint .ic { width: 12px; height: 12px; }

.zoom-viewer {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  flex-direction: column;
  background: rgba(8, 15, 28, 0.95);
  opacity: 0;
  transition: opacity 0.18s ease;
}
.zoom-viewer.open { opacity: 1; }
.zoom-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px 8px;
  color: #ffffff;
}
.zoom-head-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.zoom-head-copy b { font-size: 15px; font-weight: 600; }
.zoom-head-copy span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.62);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.zoom-close {
  flex: none;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}
.zoom-close .ic { width: 16px; height: 16px; }
.zoom-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8px 16px;
  touch-action: none;
  cursor: zoom-in;
}
.zoom-stage.zoomed { cursor: grab; }
.zoom-stage img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  transform-origin: center center;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}
.zoom-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px 16px;
}
.zoom-bar button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.12);
  color: #f4dfae;
  font-size: 20px;
  font-weight: 600;
}
.zoom-bar button.zoom-reset { width: auto; padding: 0 16px; font-size: 12px; }
.zoom-bar button:active { transform: translateY(1px); }
.zoom-scale {
  min-width: 54px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  color: #ffffff;
}
.zoom-hint {
  padding: 0 18px 16px;
  text-align: center;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.45);
}

/* ===== 申诉双方 ===== */
.appeal-parties {
  margin-top: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line-warm, #f0e7d5);
  border-radius: 10px;
  background: linear-gradient(180deg, #fffdf8, #fdfaf3);
}
.ap-party { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ap-party.right { align-items: flex-end; text-align: right; }
.ap-label { font-size: 9.5px; font-weight: 700; letter-spacing: 0.6px; color: #a4916d; }
.ap-name { display: inline-flex; align-items: center; font-size: 12.5px; font-weight: 700; color: #2b3d56; max-width: 100%; }
.ap-name .type-tag { margin-left: 5px; flex: none; }
.ap-meta { font-size: 10px; color: #9aa9bd; font-variant-numeric: tabular-nums; }
.ap-arrow { display: grid; place-items: center; color: #cdb98e; }
.ap-arrow .ic { width: 14px; height: 14px; }

@media (max-width: 720px) {
  .appeal-parties { grid-template-columns: 1fr; gap: 8px; }
  .ap-arrow { display: none; }
  .ap-party.right { align-items: flex-start; text-align: left; }
}

/* ===== 账号管理 ===== */
.toolbar-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 16px;
}
.account-card {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 17px;
  border: 1px solid var(--line-warm, #f0e7d5);
  border-radius: 15px;
  background: linear-gradient(180deg, #fffdf9 0%, #ffffff 62%);
  box-shadow: 0 10px 26px rgba(31, 64, 120, 0.065);
}
.account-card.super {
  border-color: rgba(217, 178, 95, 0.5);
  background:
    radial-gradient(220px 130px at 100% 0%, rgba(238, 204, 133, 0.18), transparent 70%),
    linear-gradient(180deg, #fffdf6 0%, #ffffff 62%);
}
.account-top { display: flex; align-items: center; gap: 11px; }
.account-avatar {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(140deg, #eaf3ff, #d7e8ff);
  color: #2f7dfa;
  font-size: 18px;
  font-weight: 800;
}
.account-card.super .account-avatar {
  background: linear-gradient(140deg, #fff0c5 0%, #e3bd6f 62%, #c49439 100%);
  color: #2a1d05;
  box-shadow: 0 6px 16px rgba(177, 127, 42, 0.3);
}
.account-main { flex: 1; min-width: 0; }
.account-name { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 14px; font-weight: 700; color: #22344e; }
.account-sub {
  margin-top: 3px;
  font-size: 11px;
  color: #94a3b8;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  word-break: break-all;
}
.account-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 11px 12px;
  border: 1px solid #f3ecdd;
  border-radius: 10px;
  background: #fbfaf6;
}
.account-row { display: flex; align-items: flex-start; gap: 10px; font-size: 11.5px; line-height: 1.55; }
.account-row > span { flex: 0 0 60px; color: #9c8a68; font-weight: 600; }
.account-value { min-width: 0; color: #42546d; }
.account-value b { font-weight: 600; }
.account-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.perm-chip {
  display: inline-flex;
  padding: 2px 7px;
  border-radius: 6px;
  background: #eef5ff;
  color: #2f7dfa;
  font-size: 10px;
  font-weight: 600;
}
.ip-chip {
  display: inline-flex;
  padding: 2px 7px;
  border: 1px solid #ece2cf;
  border-radius: 6px;
  background: #f6f2e8;
  color: #8a7447;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
}
.account-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; }
.account-actions .btn { flex: 1 1 auto; justify-content: center; }
.account-ip-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border: 1px solid var(--line-warm, #f0e7d5);
  border-radius: 12px;
  background: linear-gradient(180deg, #fffdf8, #fdfaf3);
  font-size: 12px;
  color: #6f7f96;
}
.account-ip-bar .ic { color: var(--gold-deep, #a9822f); }
.account-ip-bar b { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; color: #8a7447; }
.account-empty { text-align: center; padding: 26px 12px; }
.account-empty b { display: block; font-size: 14px; color: #22344e; }
.account-empty p { margin-top: 5px; font-size: 11.5px; line-height: 1.65; }

.check-line { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 12px; font-weight: 600; color: #53647d; cursor: pointer; }
.check-line input { width: 15px; height: 15px; accent-color: #c9a24f; }
.perm-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; margin-bottom: 7px; font-size: 12px; font-weight: 700; color: #42546d; }
.perm-head-actions { display: flex; align-items: center; gap: 12px; }
.link-btn { color: var(--gold-deep, #a9822f); font-size: 11.5px; font-weight: 700; }
.perm-groups { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.perm-group { padding: 10px 12px 12px; border: 1px solid #efe7d8; border-radius: 10px; background: #fffdf9; }
.perm-group-head { margin-bottom: 8px; font-size: 11.5px; font-weight: 700; color: #7d6b49; }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 7px; }
.perm-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border: 1px solid #f0eadd;
  border-radius: 8px;
  background: #fff;
  font-size: 11.5px;
  color: #53647d;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.perm-item input { width: 14px; height: 14px; accent-color: #c9a24f; flex: none; }
.perm-item:has(input:checked) { border-color: rgba(190, 146, 55, 0.5); background: #fdf8ec; color: #5c4a28; font-weight: 600; }
.perm-item:hover { border-color: #e6d8b9; }

@media (max-width: 720px) {
  .account-grid { grid-template-columns: 1fr; }
  .perm-grid { grid-template-columns: 1fr 1fr; }
  .account-ip-bar { align-items: flex-start; }
  .account-ip-bar .btn { margin-left: 0 !important; }
}

/* ================= 首页轮播图 ================= */
.banner-spec {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 22px;
  margin-bottom: 16px;
  background:
    radial-gradient(260px 150px at 100% 0%, rgba(47, 125, 250, 0.08), transparent 70%),
    linear-gradient(120deg, #fffdf7, #ffffff 58%);
  border: 1px solid #f0e6d2;
}
.banner-spec-size {
  flex: 0 0 190px;
  padding-right: 22px;
  border-right: 1px dashed #eadfc8;
}
.banner-spec-size span { display: block; font-size: 11px; color: var(--faint); font-weight: 600; }
.banner-spec-size b { display: block; margin-top: 4px; font-size: 25px; line-height: 1.15; color: #22344e; letter-spacing: 0.3px; }
.banner-spec-size b em { font-size: 12px; font-style: normal; font-weight: 600; color: #8b9ab0; }
.banner-spec-size small { display: block; margin-top: 4px; font-size: 10.5px; color: #a9822f; font-weight: 700; }
.banner-spec-info { flex: 1; min-width: 0; }
.banner-spec-info p { font-size: 12px; line-height: 1.85; color: #62748e; }
.banner-spec-info p + p { margin-top: 2px; }
.banner-spec-info b { color: #2d4059; font-weight: 700; }

.banner-manage-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.banner-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(30, 70, 140, 0.05);
}
.banner-card.off { opacity: 0.82; }
.banner-thumb {
  position: relative;
  aspect-ratio: 750 / 296;
  overflow: hidden;
  background:
    radial-gradient(120px 90px at 88% 10%, rgba(244, 214, 150, 0.18), transparent 70%),
    radial-gradient(160px 120px at 8% 112%, rgba(63, 110, 214, 0.32), transparent 70%),
    linear-gradient(122deg, #10224a 0%, #0e1a38 52%, #151a3e 100%);
}
.banner-thumb > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.paym-thumb { aspect-ratio: 16 / 9; }
.paym-thumb > img { object-fit: contain; padding: 14px; box-sizing: border-box; }
.paym-thumb.has-image::after { display: none; }
.banner-thumb.has-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 10, 24, 0.7), rgba(4, 10, 24, 0.05) 65%);
}
.banner-thumb-art { position: absolute; right: -4px; bottom: -4px; width: 62%; height: 90%; opacity: 0.95; }
.banner-thumb-art svg { width: 100%; height: 100%; }
.banner-thumb-copy { position: absolute; left: 16px; top: 15px; z-index: 2; max-width: 62%; }
.banner-thumb-copy b { display: block; font-size: 16px; font-weight: 800; color: #f7ead0; letter-spacing: 0.3px; }
.banner-thumb-copy em { display: block; margin-top: 4px; font-style: normal; font-size: 10.5px; line-height: 1.55; color: #c9b790; }
.banner-thumb-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 3px 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.8);
  font-size: 9.5px;
  font-weight: 700;
}
.banner-card-body { padding: 13px 15px 15px; }
.banner-card-head { display: flex; align-items: center; gap: 8px; }
.banner-card-title { font-size: 13.5px; color: #22344e; }
.banner-card-sub { margin-top: 6px; font-size: 11.5px; line-height: 1.6; color: var(--muted); }
.banner-card-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 10.5px; color: var(--faint); }
.banner-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.banner-card-actions .notice-del { margin-left: auto; }

.form-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 99px;
  background: #fdf6e7;
  color: #a9822f;
  font-size: 9.5px;
  font-weight: 700;
  vertical-align: 1px;
}
.banner-upload { display: flex; gap: 14px; align-items: stretch; }
.banner-upload-preview {
  flex: 1;
  min-width: 0;
  aspect-ratio: 750 / 296;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px dashed #d8e2f1;
  border-radius: 12px;
  background: #f8fbff;
  color: #90a1b7;
  font-size: 11px;
  line-height: 1.7;
  text-align: center;
}
.banner-upload-preview.has-image { border-style: solid; border-color: #e3ebf6; background: #0b1730; }
.banner-upload-preview img { width: 100%; height: 100%; object-fit: cover; }
.banner-upload-preview em { font-style: normal; font-size: 10px; color: #b3c0d1; }
.banner-upload-side { flex: 0 0 142px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.banner-upload-side .btn { justify-content: center; }
.banner-upload-side .form-hint { text-align: center; }
.banner-sub-input { min-height: 72px; }

@media (max-width: 720px) {
  .banner-spec { flex-direction: column; align-items: flex-start; gap: 14px; }
  .banner-spec-size { flex: none; width: 100%; padding: 0 0 12px; border-right: 0; border-bottom: 1px dashed #eadfc8; }
  .banner-manage-grid { grid-template-columns: 1fr; }
  .banner-upload { flex-direction: column; }
  .banner-upload-side { flex: none; width: 100%; }
}
