/* ═══════════════════════════════════════════════════════
   953资源网 · 天龙八部官方素材亮色主题  v2026-07-17
   暖白米色 + 帝王金 + 朱砂红  高端精致商务武侠风
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=ZCOOL+XiaoWei&family=Noto+Serif+SC:wght@400;700;900&family=Ma+Shan+Zheng&display=swap');

:root {
  color-scheme: light;
  /* 背景层 */
  --bg: #f8f5ee;
  --bg-soft: #f3eee0;
  --surface: #ffffff;
  --surface-muted: #faf6ea;
  --surface-elevated: #ffffff;
  /* 文字 */
  --ink: #2c2418;
  --ink-bright: #1a140a;
  --muted: #8a7a5a;
  /* 主题色：帝王金 */
  --brand: #b8902f;
  --brand-dark: #8a6b1f;
  --brand-light: #d4a843;
  --brand-glow: rgba(184, 144, 47, 0.25);
  /* 强调色 */
  --accent: #c0392b;
  --accent-light: #e74c3c;
  --info: #2f66a0;
  --danger: #b83b3b;
  --warning: #b8902f;
  --success: #2a7a4a;
  /* 边框/线 */
  --line: #e8dfc8;
  --line-strong: #d4c393;
  /* 阴影 */
  --shadow-sm: 0 2px 8px rgba(80, 60, 30, 0.06);
  --shadow: 0 6px 24px rgba(80, 60, 30, 0.08);
  --shadow-lg: 0 12px 40px rgba(80, 60, 30, 0.12);
  --shadow-glow: 0 6px 24px var(--brand-glow);
  /* 字体 */
  --font-title: "ZCOOL XiaoWei", "Ma Shan Zheng", "Noto Serif SC", "Microsoft YaHei", serif;
  --font-body: "Noto Serif SC", "Segoe UI", "Microsoft YaHei", sans-serif;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  background-image: radial-gradient(ellipse at 20% 0%, rgba(212, 168, 67, 0.08) 0%, transparent 60%),
                    radial-gradient(ellipse at 80% 100%, rgba(192, 57, 43, 0.05) 0%, transparent 60%);
  animation: fade-in .5s ease;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

button, input, select, textarea { font: inherit; letter-spacing: 0; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.danger-text { color: var(--danger); }
.brand-text { color: var(--brand); }
.mono { font-family: "Cascadia Code", Consolas, monospace; }
.nowrap { white-space: nowrap; }
.icon { width: 18px; height: 18px; flex: 0 0 auto; }

/* ── 顶栏 ───────────────────────────── */
.topbar {
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
  box-shadow: var(--shadow-sm);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center; color: white;
  background: linear-gradient(135deg, var(--brand-light), var(--brand-dark));
  border-radius: 8px;
  box-shadow: 0 4px 14px var(--brand-glow);
  font-family: var(--font-title);
  font-size: 22px; font-weight: 700;
}
.brand-name {
  font-family: var(--font-title);
  font-size: 20px; font-weight: 700; white-space: nowrap;
  color: var(--brand-dark);
  letter-spacing: 2px;
}
.brand-sub { display: block; color: var(--muted); font-size: 11px; letter-spacing: 1px; }
.top-actions { display: flex; align-items: center; gap: 9px; }

/* ── 页面容器 ───────────────────────── */
.page-shell { width: min(1180px, calc(100% - 32px)); margin: 28px auto 52px; }
.page-title { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 22px; }
.page-title h1 {
  margin: 0;
  font-family: var(--font-title);
  font-size: 32px; line-height: 1.2; letter-spacing: 3px;
  color: var(--ink-bright);
  position: relative; padding-bottom: 10px;
}
.page-title h1::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--brand), transparent);
  border-radius: 2px;
}
.page-title p { margin: 6px 0 0; color: var(--muted); }

/* ── 按钮 ───────────────────────────── */
.btn {
  min-height: 44px; border: 1px solid transparent; border-radius: 8px; padding: 9px 20px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, var(--brand-light), var(--brand-dark));
  color: #fff; font-weight: 700; letter-spacing: 1px;
  box-shadow: 0 4px 14px var(--brand-glow);
  transition: all .25s ease;
}
.btn:hover {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.secondary {
  color: var(--ink); background: var(--surface); border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.btn.secondary:hover { background: var(--surface-muted); border-color: var(--brand); color: var(--brand-dark); }
.btn.danger { background: linear-gradient(135deg, var(--accent-light), var(--accent)); color: #fff; box-shadow: 0 4px 14px rgba(192, 57, 43, 0.25); }
.btn.ghost { background: transparent; color: var(--muted); padding-inline: 12px; box-shadow: none; }
.btn.ghost:hover { background: var(--surface-muted); color: var(--ink); }
.btn.icon-only { width: 44px; padding: 0; }
.btn.small { min-height: 34px; padding: 5px 12px; font-size: 13px; }
.btn.full { width: 100%; }

/* ── 标签页 / 分段控件 ──────────────── */
.tabs, .segmented { display: flex; gap: 4px; align-items: center; }
.tabs {
  border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto;
}
.tab {
  border: 0; background: transparent; padding: 13px 20px; color: var(--muted);
  border-bottom: 3px solid transparent; white-space: nowrap;
  display: flex; gap: 8px; align-items: center;
  transition: all .2s ease;
  font-size: 15px;
}
.tab:hover { color: var(--ink); }
.tab.active {
  color: var(--brand-dark); border-bottom-color: var(--brand);
  font-weight: 700;
}
.segmented { padding: 4px; background: var(--surface-muted); border-radius: 8px; border: 1px solid var(--line); }
.segmented button { border: 0; border-radius: 6px; padding: 8px 14px; background: transparent; color: var(--muted); transition: all .2s ease; }
.segmented button.active {
  background: linear-gradient(135deg, var(--brand-light), var(--brand-dark));
  color: #fff; font-weight: 700; box-shadow: 0 2px 8px var(--brand-glow);
}

/* ── 面板 ───────────────────────────── */
.panel {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  transition: box-shadow .3s ease, transform .3s ease;
}
.panel:hover { box-shadow: var(--shadow-lg); }
.panel-head {
  padding: 18px 22px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: linear-gradient(180deg, var(--surface-muted), transparent);
  border-radius: 14px 14px 0 0;
}
.panel-head h2, .panel-head h3 {
  font-family: var(--font-title); font-size: 18px; margin: 0; letter-spacing: 2px;
  color: var(--ink-bright);
}
.panel-body { padding: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-2 > *, .grid-3 > * { min-width: 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

/* ── 数据统计卡 ─────────────────────── */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.stat {
  min-height: 128px; padding: 20px;
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: all .3s ease;
  position: relative; overflow: hidden;
}
.stat::before {
  content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--brand-light), var(--brand-dark));
  opacity: 0; transition: opacity .3s ease;
}
.stat::after {
  content: ''; position: absolute; top: 0; right: 0; width: 80px; height: 80px;
  background: radial-gradient(circle, var(--brand-glow) 0%, transparent 70%);
  opacity: .4;
}
.stat:hover { box-shadow: var(--shadow-glow); transform: translateY(-3px); border-color: var(--brand-light); }
.stat:hover::before { opacity: 1; }
.stat-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); position: relative; z-index: 1; }
.stat-icon {
  width: 40px; height: 40px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--surface-muted), var(--bg-soft));
  border: 1px solid var(--line); border-radius: 10px; color: var(--brand);
  box-shadow: var(--shadow-sm);
}
.stat-value { margin-top: 16px; font-size: 30px; line-height: 1; font-weight: 800; color: var(--ink-bright); font-family: var(--font-title); position: relative; z-index: 1; }
.stat-note { color: var(--muted); font-size: 12px; margin-top: 8px; position: relative; z-index: 1; }

/* ── 表单 ───────────────────────────── */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 650; font-size: 13px; color: var(--ink); letter-spacing: .5px; }
.field .hint { font-size: 12px; color: var(--muted); }
input, select, textarea {
  width: 100%; min-height: 44px;
  border: 1px solid var(--line-strong); border-radius: 8px;
  padding: 10px 13px; color: var(--ink);
  background: var(--surface);
  outline: none; transition: all .2s ease;
}
textarea { min-height: 92px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--muted); }
input:focus, select:focus, textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-glow);
  background: #fffdf6;
}
select option { background: var(--surface); color: var(--ink); }
.amounts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.amount-chip {
  border: 1px solid var(--line-strong); border-radius: 8px;
  background: var(--surface); padding: 14px 6px;
  font-weight: 650; color: var(--ink);
  transition: all .2s ease; cursor: pointer;
}
.amount-chip:hover { border-color: var(--brand); transform: translateY(-1px); }
.amount-chip.active {
  border-color: var(--brand);
  background: linear-gradient(135deg, #fff5d8, #fce8b6);
  color: var(--brand-dark);
  box-shadow: var(--shadow-glow);
}
.amount-chip span { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 500; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.field-gap, .panel-gap { margin-top: 16px; }
.inline-actions { display: flex; align-items: stretch; gap: 8px; min-width: 0; }
.inline-actions > input, .inline-actions > select { min-width: 0; flex: 1; }
.input-suffix {
  display: flex; align-items: center;
  border: 1px solid var(--line-strong); border-radius: 8px;
  background: var(--surface); overflow: hidden;
}
.input-suffix:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-glow); }
.input-suffix input { border: 0; box-shadow: none !important; background: transparent; }
.input-suffix span { padding-right: 13px; color: var(--muted); white-space: nowrap; }

/* ── 表格 ───────────────────────────── */
.table-tools { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.table-tools input, .table-tools select { width: auto; min-width: 150px; min-height: 38px; }
.table-wrap { width: 100%; max-width: 100%; overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 740px; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-size: 12px; font-weight: 700; background: var(--surface-muted); white-space: nowrap; letter-spacing: 1px; }
td { font-size: 13px; }
tbody tr { transition: background .2s ease; }
tbody tr:hover { background: rgba(212, 168, 67, 0.06); }
.empty { padding: 48px 20px; text-align: center; color: var(--muted); }

/* ── 徽章 ───────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 650;
  background: var(--surface-muted); color: var(--muted); white-space: nowrap;
  border: 1px solid var(--line);
}
.badge.success { color: var(--success); background: #e6f4ec; border-color: #b8d8c4; }
.badge.warning { color: var(--brand-dark); background: #fdf3d8; border-color: #e8d49a; }
.badge.danger { color: var(--accent); background: #fde7e7; border-color: #f0b8b8; }
.badge.info { color: var(--info); background: #e7f0fa; border-color: #b8d0e8; }

/* ── 商品卡片 ───────────────────────── */
.goods-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.goods-card {
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface);
  padding: 20px; display: flex; flex-direction: column; min-height: 200px;
  transition: all .3s ease; position: relative; overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.goods-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  opacity: 0; transition: opacity .3s ease;
}
.goods-card:hover { box-shadow: var(--shadow-glow); transform: translateY(-3px); border-color: var(--brand-light); }
.goods-card:hover::before { opacity: 1; }
.goods-card-top { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.goods-visual { width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 17px; font-family: var(--font-title); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); }
.goods-visual.cdk { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.goods-visual.item { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.cdk-inline { display: inline-block; color: var(--brand-dark); background: #fdf3d8; padding: 3px 7px; border-radius: 5px; font-size: 12px; margin-top: 4px; word-break: break-all; max-width: 100%; border: 1px solid var(--line); }
.promo-link { width: 200px; font-size: 12px; padding: 5px 9px; background: var(--surface-muted); border: 1px solid var(--line); border-radius: 5px; color: var(--ink); }
.goods-card h3 { margin: 16px 0 6px; font-size: 17px; font-family: var(--font-title); color: var(--ink-bright); }
.goods-card p { margin: 0; color: var(--muted); font-size: 13px; }
.goods-foot { margin-top: auto; padding-top: 20px; display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.price { font-size: 26px; font-weight: 800; color: var(--accent); font-family: var(--font-title); }
.old-price { text-decoration: line-through; color: var(--muted); font-size: 12px; }

/* ── 杂项 ───────────────────────────── */
.notice { border-left: 3px solid var(--info); background: #e7f0fa; color: #1f4a78; padding: 12px 14px; border-radius: 5px; font-size: 13px; }
.agent-strip { display: flex; align-items: center; gap: 10px; background: #fdf3d8; border: 1px solid #e8d49a; color: var(--brand-dark); padding: 11px 14px; border-radius: 8px; margin-bottom: 18px; }
.order-result { padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-muted); }
.order-result dl { display: grid; grid-template-columns: 105px 1fr; margin: 0; gap: 10px 12px; }
.order-result dt { color: var(--muted); }
.order-result dd { margin: 0; word-break: break-all; }
.order-summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.secret-value { padding: 12px; margin-bottom: 8px; color: var(--brand-dark); background: #fdf3d8; border: 1px dashed var(--line-strong); border-radius: 6px; font-weight: 700; }
.token-text { font-size: 12px; }
.payment-code { display: grid; gap: 9px; margin-top: 14px; overflow-wrap: anywhere; }
.compact-select { width: 210px; }
.compact-empty { padding: 18px 10px; }
.stats-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.stats-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 620px; }
.category-list { display: grid; gap: 2px; }
.category-list > div { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); }
.category-list > div:last-child { border-bottom: 0; }
.category-list span { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.category-list strong { font-size: 16px; color: var(--ink-bright); }

/* ── 后台 / 代理布局 ────────────────── */
.app-layout { min-height: 100vh; display: grid; grid-template-columns: 240px minmax(0, 1fr); background: var(--bg); }
.sidebar {
  background: linear-gradient(180deg, #2c2418, #1a140a);
  color: #e8dfc8; padding: 24px 14px; position: sticky; top: 0; height: 100vh;
  border-right: 1px solid rgba(184, 144, 47, 0.3);
}
.sidebar .brand { padding: 0 8px 24px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.sidebar .brand-name { color: #d4a843; }
.sidebar .brand-sub { color: #8a7a5a; }
.nav { margin-top: 20px; display: flex; flex-direction: column; gap: 4px; }
.nav button {
  width: 100%; height: 44px; border: 0; border-radius: 8px;
  background: transparent; color: #b8a87a;
  padding: 0 14px; display: flex; align-items: center; gap: 12px; text-align: left;
  transition: all .2s ease;
}
.nav button:hover { background: rgba(212, 168, 67, 0.12); color: #f0e0a0; }
.nav button.active {
  background: linear-gradient(90deg, rgba(212, 168, 67, 0.25), transparent);
  color: #d4a843; font-weight: 700;
  border-left: 3px solid #d4a843;
  box-shadow: 0 0 16px rgba(212, 168, 67, 0.15);
}
.sidebar-foot { position: absolute; left: 14px; right: 14px; bottom: 18px; }
.main { min-width: 0; }
.main .topbar { padding-inline: 24px; }
.main-content { padding: 26px; max-width: 1500px; margin: 0 auto; }
.view-title { margin: 0 0 20px; display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.view-title h1 { margin: 0; font-size: 24px; font-family: var(--font-title); color: var(--ink-bright); letter-spacing: 2px; }
.view-title p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.chart { height: 200px; display: flex; align-items: end; gap: 10px; padding-top: 22px; }
.bar-item { flex: 1; min-width: 24px; display: flex; flex-direction: column; align-items: center; justify-content: end; height: 100%; gap: 7px; }
.bar { width: min(36px, 80%); min-height: 3px; background: linear-gradient(180deg, var(--brand-light), var(--brand-dark)); border-radius: 4px 4px 0 0; box-shadow: 0 -2px 8px var(--brand-glow); }
.bar-label { font-size: 11px; color: var(--muted); }

/* ── 弹窗 ───────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(44, 36, 24, 0.5); backdrop-filter: blur(4px);
  display: grid; place-items: center; padding: 18px;
  animation: fade-in .2s ease;
}
.modal {
  width: min(620px, 100%); max-height: calc(100vh - 36px); overflow: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg);
  animation: modal-in .3s ease;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(20px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal.wide { width: min(980px, 100%); }
.modal-head { padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-size: 19px; font-family: var(--font-title); color: var(--ink-bright); letter-spacing: 2px; }
.modal-body { padding: 22px; }

/* ── Toast 提示 ─────────────────────── */
.toast-stack { position: fixed; right: 18px; top: 82px; z-index: 200; display: grid; gap: 8px; width: min(360px, calc(100% - 36px)); }
.toast {
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 13px 15px; box-shadow: var(--shadow-lg);
  display: flex; gap: 10px; align-items: flex-start;
  animation: toast-in .3s ease;
}
@keyframes toast-in { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
.toast.error { background: #fde7e7; border-color: var(--accent); color: var(--accent); }
.toast.warning { background: #fdf3d8; border-color: var(--brand); color: var(--brand-dark); }

/* ── 加载态 / 分页 ──────────────────── */
.spinner { width: 16px; height: 16px; border: 2px solid var(--line); border-top-color: var(--brand); border-radius: 50%; display: inline-block; animation: cb-spin .7s linear infinite; flex: 0 0 auto; }
.btn .spinner { border-color: rgba(255, 255, 255, 0.3); border-top-color: #fff; }
.loading-empty { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); padding: 28px 12px; }
.loading-empty .spinner { border-color: var(--line); border-top-color: var(--brand); }
.icon.spinning { animation: cb-spin .7s linear infinite; }
@keyframes cb-spin { to { transform: rotate(360deg); } }
.hint { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.token-help { font-size: 12px; color: var(--muted); margin-top: 4px; }
.token-help a { color: var(--info); cursor: pointer; text-decoration: underline; }
.pagination { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 13px 16px; border-top: 1px solid var(--line); background: var(--surface-muted); border-radius: 0 0 14px 14px; }
.pagination .muted { margin-right: auto; font-size: 13px; white-space: nowrap; }
.pagination .btn.small { min-width: 38px; padding: 5px 10px; }
.pagination .btn.small[disabled]:not(.ghost) { background: linear-gradient(135deg, var(--brand-light), var(--brand-dark)); color: #fff; opacity: 1; }

/* ── 成功横幅 ───────────────────────── */
.success-banner {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, #e6f4ec, #d4ecdd);
  border: 1px solid #b8d8c4;
  color: var(--success); padding: 16px 18px; border-radius: 10px;
  margin-bottom: 14px; font-size: 15px;
}
.success-banner .icon { color: var(--success); width: 24px; height: 24px; }
.success-banner strong { font-size: 19px; font-family: var(--font-title); }
.account-suffix-hint { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ── 支付方式按钮 ───────────────────── */
.pay-channels { display: flex; gap: 9px; flex-wrap: wrap; }
.pay-channel-btn {
  flex: 1; min-width: 130px; min-height: 50px;
  border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--surface); color: var(--ink);
  display: flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; padding: 9px; transition: all .25s ease;
  box-shadow: var(--shadow-sm);
}
.pay-channel-btn:hover { border-color: var(--brand); transform: translateY(-1px); }
.pay-channel-btn.active {
  border-color: var(--brand);
  background: linear-gradient(135deg, #fff5d8, #fce8b6);
  color: var(--brand-dark); box-shadow: var(--shadow-glow);
}
.pay-icon { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; font-weight: bold; flex: 0 0 auto; }
.pay-icon.wechat { background: #07c160; }
.pay-icon.alipay { background: #1677ff; }
.pay-icon.local { background: var(--muted); }
.cdk-display { text-align: center; padding: 10px 4px; }
.cdk-display .secret-value { font-size: 20px; padding: 16px; background: #fdf3d8; border: 1px dashed var(--line-strong); border-radius: 10px; margin: 12px 0; word-break: break-all; font-family: var(--font-title); color: var(--brand-dark); }

/* ── 登录页 ─────────────────────────── */
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(280px, .85fr) minmax(390px, 1.15fr); background: var(--bg); }
.login-aside {
  background: var(--bg-deep) url('/assets/img/bg-login.jpg') center/cover no-repeat;
  color: white; padding: clamp(30px, 7vw, 90px);
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative;
}
.login-aside::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(26, 20, 10, 0.55), rgba(26, 20, 10, 0.3));
}
.login-aside > * { position: relative; z-index: 1; }
.login-aside h1 { margin: 36px 0 14px; font-size: 38px; line-height: 1.2; font-family: var(--font-title); letter-spacing: 4px; color: #d4a843; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5); }
.login-aside p { color: #f0e6d0; max-width: 420px; opacity: .9; }
.login-form-wrap { display: grid; place-items: center; padding: 28px; }
.login-form { width: min(390px, 100%); }
.login-form h2 { margin: 0 0 6px; font-size: 27px; font-family: var(--font-title); color: var(--ink-bright); letter-spacing: 3px; }
.login-form > p { margin: 0 0 26px; color: var(--muted); }
.login-form .field { margin-bottom: 16px; }
.section-label { margin: 22px 0 13px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-weight: 700; font-family: var(--font-title); color: var(--ink-bright); letter-spacing: 2px; }
.section-label:first-child { margin-top: 0; }
.split-input, .triple-input { display: grid; gap: 8px; }
.split-input { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.triple-input { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.search-results { display: grid; gap: 7px; max-height: 260px; overflow: auto; }
.search-result { width: 100%; min-height: 50px; padding: 9px 12px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); text-align: left; transition: all .2s ease; }
.search-result:hover, .search-result.selected { border-color: var(--brand); background: var(--surface-muted); }
.search-result.static:hover { border-color: var(--line); background: var(--surface); }
.search-result span:first-child { min-width: 0; }
.search-result strong, .search-result small { display: block; overflow-wrap: anywhere; }
.search-result small { color: var(--muted); font-weight: 400; margin-top: 2px; }
.config-editor { min-height: 250px; font-size: 12px; line-height: 1.55; }

/* ── 玩家充值页专属背景 ─────────────── */
body.player-bg {
  background-image:
    linear-gradient(180deg, rgba(248, 245, 238, 0.6) 0%, rgba(248, 245, 238, 0.78) 100%),
    url('/assets/img/bg-recharge.jpg');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  background-repeat: no-repeat;
}
body.player-bg .panel { background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px); }
body.player-bg .stat { background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(8px); }
body.player-bg .topbar { background: rgba(255, 255, 255, 0.88); }

/* ── 响应式 ─────────────────────────── */
@media (max-width: 960px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .goods-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-layout { grid-template-columns: 72px minmax(0, 1fr); }
  .sidebar { padding-inline: 10px; }
  .sidebar .brand-name, .sidebar .brand-sub, .nav button span { display: none; }
  .sidebar .brand { justify-content: center; padding-inline: 0; }
  .nav button { justify-content: center; padding: 0; }
}
@media (max-width: 680px) {
  .topbar { height: 60px; padding-inline: 16px; }
  .brand-sub { display: none; }
  .page-shell { width: min(100% - 22px, 1180px); margin-top: 18px; }
  .page-title { align-items: start; }
  .page-title h1 { font-size: 24px; }
  .grid-2, .grid-3, .form-grid, .goods-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { min-height: 100px; padding: 14px; }
  .stat-value { font-size: 22px; }
  .amounts { grid-template-columns: repeat(2, 1fr); }
  .inline-actions { align-items: stretch; }
  .inline-actions .btn:not(.icon-only) { padding-inline: 10px; }
  .split-input, .triple-input { grid-template-columns: 1fr; }
  .compact-select { width: 150px; }
  .panel-body, .modal-body { padding: 16px; }
  .panel-head { padding: 14px 16px; }
  .app-layout { display: block; padding-bottom: 82px; }
  .sidebar { position: fixed; z-index: 60; height: 76px; bottom: 0; top: auto; left: 0; right: 0; width: 100%; padding: 5px 7px; }
  .sidebar .brand, .sidebar-foot { display: none; }
  .nav { margin: 0; display: flex; flex-direction: row; gap: 2px; overflow-x: auto; overflow-y: hidden; padding-bottom: 1px; }
  .nav button { height: 64px; min-width: 76px; padding: 4px 6px; flex-direction: column; justify-content: center; gap: 2px; }
  .nav button span { display: block; font-size: 10px; line-height: 1.1; white-space: nowrap; }
  .main .topbar { padding-inline: 14px; }
  .main, .main-content { width: 100%; min-width: 0; }
  .main-content { padding: 16px 11px; }
  .view-title { align-items: start; }
  .login-shell { display: block; background: var(--bg); padding: 18px; }
  .login-aside { display: none; }
  .login-form-wrap { min-height: calc(100vh - 36px); padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
}
