/* 阿若管理台 桌面版 —— 黑金外壳 + 白色工作区（与网页后台统一） */
:root {
  --gold: #f0c14b; --gold-2: #e0a94a; --gold-3: #cf9333; --gold-deep: #241c05;
  --gold-soft: rgba(240,193,75,.10);
  --shell-bg: #0b0c10; --shell-bg-2: #15161c; --shell-fg: #9aa3b6;
  --primary: #4f46e5; --primary-hover: #4338ca; --primary-soft: rgba(79,70,229,.10);
  --ink: #0f172a; --ink-2: #475569; --ink-3: #94a3b8;
  --line: #e8ecf5; --bg-light: #f6f7fb;
  --green: #16a34a; --red: #dc2626; --amber: #d97706;
  --radius: 14px; --radius-sm: 10px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 14px; color: var(--ink-2); background: var(--shell-bg);
  -webkit-font-smoothing: antialiased; overflow: hidden; user-select: none;
}
input, textarea, select { user-select: text; font-family: inherit; }
#app { height: 100vh; display: flex; flex-direction: column; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: #cfd7e6; border-radius: 10px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #aeb9cd; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

.boot-loading { flex: 1; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--gold); font-size: 14px; letter-spacing: 2px; }
.boot-ring { width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(240,193,75,.25); border-top-color: var(--gold); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===================== 外壳布局 ===================== */
.shell { flex: 1; display: flex; min-height: 0; }
.sidebar {
  width: 232px; flex-shrink: 0; display: flex; flex-direction: column; min-height: 0;
  background: linear-gradient(185deg, var(--shell-bg) 0%, var(--shell-bg-2) 55%, #0e0f14 100%);
  border-right: 1px solid rgba(240,193,75,.22); position: relative;
  transition: width .2s cubic-bezier(.4,0,.2,1);
}
.sidebar::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 100% at 18% 0%, rgba(240,193,75,.14), transparent 70%); }
.sidebar-brand {
  display: flex; align-items: center; gap: 10px; padding: 20px 18px 16px;
  border-bottom: 1px solid rgba(240,193,75,.22); position: relative; z-index: 1;
  color: #fff; font-weight: 800; font-size: 15px; letter-spacing: .5px; white-space: nowrap; overflow: hidden;
}
.sidebar-brand::before {
  content: 'PRO'; width: 34px; height: 34px; flex-shrink: 0; border-radius: 11px;
  background: linear-gradient(135deg,#fbeec2,#e0a94a 70%,#cf9333); color: var(--gold-deep);
  display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; letter-spacing: .06em;
  box-shadow: 0 8px 20px rgba(240,193,75,.35), inset 0 1px 0 rgba(255,255,255,.35);
}
.sidebar-menu { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 10px 12px 16px; position: relative; z-index: 1; }
.sidebar-menu::-webkit-scrollbar-thumb { background: rgba(240,193,75,.4); background-clip: content-box; }
.nav-group-label {
  padding: 16px 8px 6px; font-size: 10px; font-weight: 800; letter-spacing: .18em; color: #8a7f63;
  display: flex; align-items: center; gap: 8px; text-transform: uppercase; white-space: nowrap;
}
.nav-group-label::before { content: ''; width: 3px; height: 10px; border-radius: 2px; background: linear-gradient(180deg,#f0c14b,#cf9333); flex-shrink: 0; }
.nav-group-label::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(240,193,75,.28), transparent); }
.nav-link {
  display: flex; align-items: center; gap: 11px; padding: 9px 10px; margin: 2px 0; border-radius: 11px;
  color: var(--shell-fg); font-size: 13.5px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: background .16s, color .16s; border: none; background: none; width: 100%; text-align: left;
}
.nav-link .ico {
  width: 27px; height: 27px; flex-shrink: 0; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 14px; background: rgba(255,255,255,.05); transition: transform .16s, background .16s;
}
.nav-link:hover { color: #f7f3e8; background: rgba(240,193,75,.09); }
.nav-link:hover .ico { transform: scale(1.07); color: var(--gold); background: rgba(240,193,75,.15); }
.nav-link.active {
  background: linear-gradient(100deg, rgba(240,193,75,.24), rgba(207,147,51,.10)); color: #faf6ea; font-weight: 700;
  box-shadow: inset 3px 0 0 var(--gold), 0 8px 20px -10px rgba(240,193,75,.55);
}
.nav-link.active .ico { color: #fbd77a; background: rgba(240,193,75,.2); }
.sidebar-foot { padding: 12px; border-top: 1px solid rgba(240,193,75,.22); position: relative; z-index: 1; }
.sidebar-expire { font-size: 11.5px; color: #8a7f63; padding: 2px 8px 10px; white-space: nowrap; overflow: hidden; }
.sidebar-expire.warn { color: #fbbf24; }
.sidebar-expire.bad { color: #fb7185; }

/* 折叠态 */
body.nav-collapsed .sidebar { width: 68px; }
body.nav-collapsed .sidebar-brand { justify-content: center; padding: 20px 0 16px; font-size: 0; gap: 0; }
body.nav-collapsed .sidebar-brand::before { width: 34px; height: 34px; font-size: 10px; }
body.nav-collapsed .nav-group-label, body.nav-collapsed .nav-link span.txt, body.nav-collapsed .sidebar-expire { display: none; }
body.nav-collapsed .nav-link { justify-content: center; padding: 9px 0; }
body.nav-collapsed .sidebar-foot .btn { font-size: 0; padding: 9px 0; justify-content: center; }
body.nav-collapsed .sidebar-foot .btn::before { content: '⏻'; font-size: 15px; }

/* 主区 */
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; background: #fff; }
.topbar {
  height: 58px; flex-shrink: 0; display: flex; align-items: center; gap: 14px; padding: 0 22px;
  background: rgba(11,12,16,.88); border-bottom: 1px solid rgba(240,193,75,.18); z-index: 20;
}
.topbar-toggle {
  width: 34px; height: 34px; border-radius: 9px; border: 1px solid rgba(148,163,184,.22); background: rgba(255,255,255,.04);
  color: #aab6cd; cursor: pointer; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; transition: all .18s;
}
.topbar-toggle:hover { color: var(--gold); border-color: rgba(240,193,75,.45); background: rgba(240,193,75,.08); }
.topbar-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  color: #f3e6c4; background: linear-gradient(135deg, rgba(240,193,75,.14), rgba(207,147,51,.08));
  border: 1px solid rgba(240,193,75,.28); max-width: 42vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.topbar-chip i { color: #fbd77a; font-style: normal; }
.topbar-title { color: #e9ecf3; font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-spacer { flex: 1; }
.topbar-avatar {
  width: 36px; height: 36px; border-radius: 10px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg,#f9e3a8,#e0a94a 70%); color: var(--gold-deep); font-weight: 800; font-size: 14px;
  border: 1px solid rgba(240,193,75,.45); box-shadow: 0 6px 18px -8px rgba(240,193,75,.7); position: relative;
}
.topbar-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px; padding: 6px; border-radius: 13px;
  background: #14151b; border: 1px solid rgba(240,193,75,.26); box-shadow: 0 20px 44px -18px rgba(0,0,0,.85);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all .16s; z-index: 50;
}
.topbar-avatar.open .topbar-menu { opacity: 1; visibility: visible; transform: none; }
.topbar-menu a { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 8px; color: #c9c4b4; font-size: 13px; font-weight: 600; cursor: pointer; }
.topbar-menu a:hover { background: rgba(240,193,75,.14); color: #f7f3e8; }
.topbar-menu a.danger { color: #fca5a5; }
.topbar-menu a.danger:hover { background: rgba(239,68,68,.16); }
.topbar-menu .sep { height: 1px; background: rgba(240,193,75,.2); margin: 5px 6px; }

.content { flex: 1; overflow-y: auto; background: var(--bg-light); }
.content-inner { padding: 26px 30px 44px; animation: contentIn .3s cubic-bezier(.4,0,.2,1) both; }
@keyframes contentIn { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; gap: 12px; flex-wrap: wrap; }
.page-header h2 { font-size: 19px; font-weight: 800; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.page-header h2::before { content: ''; width: 5px; height: 21px; border-radius: 4px; background: linear-gradient(180deg,#f0c14b,#cf9333); box-shadow: 0 2px 8px rgba(240,193,75,.35); }
.page-header .sub { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }

/* ===================== 登录（黑金） ===================== */
.login-page { flex: 1; min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden;
  background: radial-gradient(900px 520px at 82% -10%, rgba(240,193,75,.16), transparent 60%), radial-gradient(760px 480px at -8% 108%, rgba(240,193,75,.09), transparent 55%), linear-gradient(160deg, #0b0c10, #131419 60%, #0d0e13); }
.login-grid { position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 44px 44px; -webkit-mask-image: radial-gradient(circle at 50% 34%, #000 0%, transparent 68%); mask-image: radial-gradient(circle at 50% 34%, #000 0%, transparent 68%); }
.login-box { position: relative; z-index: 2; width: 760px; max-width: calc(100vw - 60px); }
.login-logo { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 30px; }
.login-logo .sq { width: 44px; height: 44px; border-radius: 13px; background: linear-gradient(135deg,#fbeec2,#e0a94a 70%,#cf9333); color: var(--gold-deep); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 12px; letter-spacing: .06em; box-shadow: 0 10px 26px rgba(240,193,75,.4); }
.login-logo b { color: #f7f3e8; font-size: 21px; letter-spacing: 1px; }
.login-logo .pro { font-size: 10px; color: var(--gold-deep); background: linear-gradient(135deg,#fbeec2,#f0c14b 45%,#cf9333); padding: 3px 8px; border-radius: 5px; font-weight: 900; letter-spacing: 1.4px; align-self: flex-start; margin-top: 4px; }
.login-sub { text-align: center; color: #7d8598; font-size: 12.5px; letter-spacing: 3px; margin: -20px 0 34px; }
.role-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.role-card {
  background: linear-gradient(158deg, #1a1c23, #131419 62%); border: 1px solid rgba(240,193,75,.16); border-radius: 18px;
  padding: 30px 22px; text-align: center; cursor: pointer; transition: transform .2s, border-color .2s, box-shadow .2s; position: relative; overflow: hidden;
}
.role-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: 0; transition: opacity .2s; }
.role-card:hover { transform: translateY(-5px); border-color: rgba(240,193,75,.5); box-shadow: 0 22px 44px -20px rgba(240,193,75,.35); }
.role-card:hover::before { opacity: 1; }
.role-card .ric { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 17px; display: flex; align-items: center; justify-content: center; font-size: 25px;
  background: linear-gradient(135deg, rgba(240,193,75,.22), rgba(207,147,51,.10)); border: 1px solid rgba(240,193,75,.3); }
.role-card b { display: block; color: #f4efe2; font-size: 16px; margin-bottom: 8px; }
.role-card span { color: #7d8598; font-size: 12px; line-height: 1.6; display: block; }
.role-card .arw { margin-top: 14px; color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: 2px; }

.login-form-card { width: 420px; max-width: calc(100vw - 60px); margin: 0 auto; background: linear-gradient(158deg,#1a1c23,#131419 62%); border: 1px solid rgba(240,193,75,.18); border-radius: 20px; padding: 38px 40px 34px; box-shadow: 0 30px 70px -30px rgba(0,0,0,.9); }
.login-back { color: #7d8598; font-size: 12.5px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; margin-bottom: 22px; }
.login-back:hover { color: var(--gold); }
.login-form-card h1 { color: #f7f3e8; font-size: 23px; font-weight: 800; margin-bottom: 6px; }
.login-form-card .lsub { color: #7d8598; font-size: 12.5px; margin-bottom: 30px; }
.lg-field { margin-bottom: 18px; }
.lg-field label { display: block; color: #9aa3b6; font-size: 12px; font-weight: 700; margin-bottom: 8px; letter-spacing: 1px; }
.lg-input {
  width: 100%; height: 46px; border-radius: 12px; border: 1px solid rgba(148,163,184,.2); background: rgba(8,9,13,.65);
  color: #eef1f8; padding: 0 15px; font-size: 14px; outline: none; transition: border-color .18s, box-shadow .18s;
}
.lg-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(240,193,75,.15); }
.lg-input::placeholder { color: #565e70; }
.lg-submit { width: 100%; height: 47px; margin-top: 10px; border: none; border-radius: 12px; cursor: pointer; font-size: 15px; font-weight: 800; letter-spacing: 3px;
  background: linear-gradient(135deg,#f9e3a8,#e0a94a 55%,#cf9333); color: var(--gold-deep); box-shadow: 0 14px 30px -14px rgba(240,193,75,.9); transition: transform .16s, box-shadow .16s, opacity .16s; }
.lg-submit:hover { transform: translateY(-1px); }
.lg-submit:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.lg-links { display: flex; justify-content: center; gap: 26px; margin-top: 22px; }
.lg-seg { display: flex; gap: 10px; }
.lg-seg button { flex: 1; height: 42px; border-radius: 11px; border: 1px solid rgba(148,163,184,.2); background: rgba(8,9,13,.65); color: #9aa3b6; font-size: 13px; font-weight: 700; cursor: pointer; transition: all .16s; }
.lg-seg button.on { border-color: var(--gold); color: var(--gold); background: rgba(240,193,75,.1); }
.login-page.join-scroll { overflow-y: auto; align-items: flex-start; padding: 46px 0 60px; }
.lg-links a { color: #7d8598; font-size: 12.5px; cursor: pointer; }
.lg-links a:hover { color: var(--gold); }
.login-ad { margin: 26px auto 0; width: 760px; max-width: calc(100vw - 60px); border-radius: 16px; overflow: hidden; border: 1px solid rgba(240,193,75,.2); cursor: pointer; }
.login-ad img { width: 100%; display: block; }

/* ===================== 工作区组件 ===================== */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 4px 12px rgba(16,24,40,.045); }
.card + .card { margin-top: 18px; }
.card-title { font-size: 15px; font-weight: 800; color: var(--ink); margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-title .more { font-size: 12px; color: var(--primary); cursor: pointer; font-weight: 600; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }

.stat-card { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 4px 12px rgba(16,24,40,.045); transition: transform .18s, box-shadow .18s; }
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 12px 32px -10px rgba(16,24,40,.16); }
.stat-card::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, transparent, rgba(240,193,75,.65), transparent); opacity: 0; transition: opacity .25s; }
.stat-card:hover::after { opacity: 1; }
.stat-label { font-size: 12.5px; color: var(--ink-3); font-weight: 600; display: flex; align-items: center; gap: 7px; }
.stat-label .sic { width: 26px; height: 26px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; background: var(--gold-soft); }
.stat-value { font-size: 26px; font-weight: 800; color: var(--ink); margin-top: 10px; line-height: 1.15; }
.stat-value.money { color: var(--gold-3); }
.stat-sub { font-size: 12px; color: var(--ink-3); margin-top: 6px; }

/* 7日趋势 */
.bars { display: flex; align-items: flex-end; gap: 12px; height: 180px; padding-top: 8px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; gap: 6px; }
.bar { width: 100%; max-width: 44px; border-radius: 7px 7px 0 0; background: linear-gradient(180deg,#f0c14b,#cf9333); min-height: 3px; transition: height .5s cubic-bezier(.4,0,.2,1); position: relative; }
.bar:hover::after { content: attr(data-v); position: absolute; top: -24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.bar-date { font-size: 11px; color: var(--ink-3); }

/* 表格 */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; padding: 11px 14px; background: #f8fafc; color: var(--ink-2); font-weight: 700; font-size: 12.5px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 12px 14px; border-bottom: 1px solid #f1f5f9; color: var(--ink-2); vertical-align: middle; }
.tbl tbody tr:hover { background: linear-gradient(90deg, rgba(240,193,75,.05), rgba(240,193,75,.015)); }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl .num { font-weight: 700; color: var(--ink); }
.tbl .money { font-weight: 800; color: var(--gold-3); }
.tbl-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* 标签 */
.tag { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.tag-green { background: #dcfce7; color: #15803d; }
.tag-gray { background: #f1f5f9; color: #64748b; }
.tag-red { background: #fee2e2; color: #b91c1c; }
.tag-amber { background: #fef3c7; color: #b45309; }
.tag-indigo { background: #e0e7ff; color: #4338ca; }
.tag-gold { background: var(--gold-soft); color: #a16207; border: 1px solid rgba(240,193,75,.4); }

/* 按钮 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: var(--radius-sm); font-weight: 700; font-size: 13px; padding: 9px 18px; cursor: pointer; border: 1px solid transparent; transition: all .16s; white-space: nowrap; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: linear-gradient(135deg,#6366f1,#4f46e5); color: #fff; box-shadow: 0 4px 14px rgba(79,70,229,.26); }
.btn-primary:hover { background: linear-gradient(135deg,#4f46e5,#4338ca); transform: translateY(-1px); }
.btn-gold { background: linear-gradient(135deg,#f9e3a8,#e0a94a); color: var(--gold-deep); box-shadow: 0 6px 16px -8px rgba(240,193,75,.9); }
.btn-gold:hover { transform: translateY(-1px); }
.btn-line { background: #fff; border-color: #d8deea; color: var(--ink-2); }
.btn-line:hover { border-color: var(--gold); color: #a16207; background: #fffdf5; }
.btn-danger { background: linear-gradient(135deg,#f43f5e,#e11d48); color: #fff; }
.btn-danger:hover { transform: translateY(-1px); }
.btn-danger-soft { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.btn-danger-soft:hover { background: #fee2e2; }
.btn-sm { padding: 6px 13px; font-size: 12.5px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-logout { width: 100%; background: rgba(244,63,94,.13); border: 1px solid rgba(244,63,94,.36); color: #fda4af; border-radius: 11px; padding: 9px 0; font-size: 13px; font-weight: 700; cursor: pointer; transition: all .18s; }
.btn-logout:hover { background: linear-gradient(135deg,#f43f5e,#e11d48); color: #fff; border-color: transparent; }

/* 表单 */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 900px) { .form-grid { grid-template-columns: 1fr; } }
.f-field label { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 7px; }
.f-field label .req { color: var(--red); margin-left: 2px; }
.f-input, .f-select, .f-textarea {
  width: 100%; border: 1.5px solid #e2e8f0; border-radius: var(--radius-sm); background: #f8fafc; color: var(--ink);
  padding: 9px 13px; font-size: 13.5px; outline: none; transition: border-color .16s, box-shadow .16s;
}
.f-input:focus, .f-select:focus, .f-textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(240,193,75,.14); background: #fff; }
.f-textarea { min-height: 96px; resize: vertical; line-height: 1.6; }
.f-hint { font-size: 11.5px; color: var(--ink-3); margin-top: 6px; line-height: 1.5; }
.f-switch { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f1f5f9; }
.f-switch:last-child { border-bottom: none; }
.f-switch .txt { flex: 1; }
.f-switch .t { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.f-switch .d { font-size: 12px; color: var(--ink-3); margin-top: 3px; line-height: 1.5; }
.sw { width: 44px; height: 25px; border-radius: 999px; background: #cbd5e1; position: relative; cursor: pointer; flex-shrink: 0; transition: background .18s; border: none; }
.sw::after { content: ''; position: absolute; width: 21px; height: 21px; border-radius: 50%; background: #fff; top: 2px; left: 2px; transition: left .18s; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.sw.on { background: linear-gradient(135deg,#f0c14b,#cf9333); }
.sw.on::after { left: 21px; }

/* tabs / seg */
.tabs { display: inline-flex; gap: 4px; background: #eef1f7; padding: 4px; border-radius: 11px; }
.tab { padding: 7px 18px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; border: none; background: none; transition: all .15s; }
.tab.on { background: linear-gradient(135deg,#f0c14b,#e0a94a); color: var(--gold-deep); font-weight: 800; box-shadow: 0 3px 10px -4px rgba(240,193,75,.8); }
.seg { display: flex; gap: 10px; }
.seg-item { flex: 1; text-align: center; font-size: 13px; font-weight: 600; color: var(--ink-2); background: #f1f5f9; border: 1.5px solid transparent; border-radius: 10px; padding: 10px 0; cursor: pointer; }
.seg-item.on { background: var(--gold-soft); border-color: var(--gold); color: #a16207; font-weight: 800; }

/* 工具条 */
.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar .f-input, .toolbar .f-select { width: auto; min-width: 170px; background: #fff; }
.toolbar .grow { flex: 1; }

/* 列表行（订单/用户/提现等） */
.rows .row-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 12px; transition: box-shadow .18s, border-color .18s; }
.rows .row-item:hover { border-color: rgba(240,193,75,.45); box-shadow: 0 8px 24px -12px rgba(16,24,40,.14); }
.row-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.row-title { font-size: 14px; font-weight: 800; color: var(--ink); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; line-height: 1.7; }
.row-amount { font-size: 16px; font-weight: 800; color: var(--gold-3); white-space: nowrap; }
.row-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

/* 商品行 */
.goods-row { display: flex; gap: 16px; align-items: flex-start; }
.goods-img { width: 76px; height: 76px; border-radius: 12px; object-fit: cover; background: #f1f5f9; flex-shrink: 0; border: 1px solid var(--line); }
.goods-body { flex: 1; min-width: 0; }
.goods-name { font-size: 14px; font-weight: 700; color: var(--ink); }
.goods-price { font-size: 16px; font-weight: 800; color: var(--gold-3); margin-top: 4px; }

/* 图片选择 */
.img-pick { width: 110px; height: 110px; border-radius: 12px; border: 2px dashed #d8c9a0; background: #fffdf5; display: flex; align-items: center; justify-content: center; cursor: pointer; overflow: hidden; position: relative; color: #b8a05e; font-size: 12px; flex-shrink: 0; }
.img-pick img { width: 100%; height: 100%; object-fit: cover; }
.img-pick:hover { border-color: var(--gold); }

/* 空态 / 加载 */
.empty { text-align: center; color: var(--ink-3); font-size: 13px; padding: 48px 0; }
.empty .eico { font-size: 34px; display: block; margin-bottom: 10px; opacity: .5; }
.loading { text-align: center; color: var(--ink-3); font-size: 13px; padding: 40px 0; }

/* 分页 */
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 18px; }
.pg-btn { min-width: 32px; height: 32px; border-radius: 8px; border: 1px solid #dfe5ee; background: #fff; color: var(--ink-2); font-size: 13px; cursor: pointer; padding: 0 8px; }
.pg-btn:hover:not(:disabled) { border-color: var(--gold); color: #a16207; }
.pg-btn.pg-on { background: linear-gradient(135deg,#f0c14b,#e0a94a); border-color: transparent; color: var(--gold-deep); font-weight: 800; }
.pg-btn:disabled { opacity: .4; cursor: not-allowed; }

/* 弹窗 */
.modal-mask { position: fixed; inset: 0; background: rgba(8,10,16,.62); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 1000; opacity: 0; transition: opacity .18s; padding: 30px; }
.modal-mask.show { opacity: 1; }
.modal-pop { width: 440px; max-width: 100%; max-height: calc(100vh - 60px); display: flex; flex-direction: column; background: #fff; border-radius: 18px; box-shadow: 0 30px 80px -30px rgba(0,0,0,.5); transform: translateY(10px) scale(.98); transition: transform .18s; overflow: hidden; }
.modal-mask.show .modal-pop { transform: none; }
.modal-w-lg { width: 640px; }
.modal-w-xl { width: 820px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 0; }
.modal-title { font-size: 16px; font-weight: 800; color: var(--ink); }
.modal-x { border: none; background: #f1f5f9; color: var(--ink-2); width: 28px; height: 28px; border-radius: 8px; cursor: pointer; font-size: 13px; }
.modal-x:hover { background: #fee2e2; color: #b91c1c; }
.modal-body { padding: 18px 22px 22px; overflow-y: auto; }
.modal-content { padding: 16px 22px 6px; font-size: 13.5px; color: var(--ink-2); line-height: 1.7; }
.modal-btns { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px 20px; }
.modal-pop .modal-btns:first-child { padding-top: 20px; }

/* 二维码弹窗（套餐购买） */
.qr-box { text-align: center; padding: 8px 0; }
.qr-box img { width: 220px; height: 220px; border: 1px solid var(--line); border-radius: 12px; padding: 8px; background: #fff; }
.qr-amount { font-size: 26px; font-weight: 800; color: var(--gold-3); margin: 10px 0 4px; }
.qr-tip { font-size: 12.5px; color: var(--ink-3); }
.qr-status { margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--primary); }

/* toast */
#toast-box { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 2000; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: rgba(15,23,42,.92); color: #fff; font-size: 13px; padding: 10px 20px; border-radius: 10px; box-shadow: 0 12px 30px -10px rgba(0,0,0,.5); opacity: 0; transform: translateY(-8px); transition: all .22s; max-width: 70vw; }
.toast.show { opacity: 1; transform: none; }
.toast-error { background: rgba(190,24,45,.95); }
.toast-ok { background: rgba(21,128,61,.95); }

/* 描述列表 */
.dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
.dl-item { display: flex; padding: 10px 0; border-bottom: 1px solid #f1f5f9; font-size: 13px; }
.dl-item .k { width: 96px; flex-shrink: 0; color: var(--ink-3); }
.dl-item .v { color: var(--ink); font-weight: 600; flex: 1; word-break: break-all; }
@media (max-width: 900px) { .dl { grid-template-columns: 1fr; } }

/* 钱包/汇总大数字 */
.hero-panel { border-radius: var(--radius); padding: 24px 26px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #191a20 0%, #232015 55%, #2c2410 100%); border: 1px solid rgba(240,193,75,.28); }
.hero-panel::after { content: ''; position: absolute; right: -50px; top: -50px; width: 200px; height: 200px; border-radius: 50%; background: rgba(240,193,75,.10); }
.hero-panel .hl { font-size: 12.5px; color: rgba(243,230,196,.75); letter-spacing: 1px; }
.hero-panel .hv { font-size: 32px; font-weight: 800; color: #fbd77a; margin-top: 8px; line-height: 1.1; }
.hero-panel .hs { font-size: 12.5px; color: rgba(243,230,196,.6); margin-top: 8px; }
.hero-cells { display: flex; gap: 26px; margin-top: 18px; flex-wrap: wrap; position: relative; z-index: 1; }
.hero-cells .c .t { font-size: 11.5px; color: rgba(243,230,196,.6); }
.hero-cells .c .n { font-size: 17px; font-weight: 800; color: #f7f3e8; margin-top: 3px; }

/* 遮罩状态卡（多商户收款未开通等） */
.lock-card { text-align: center; padding: 60px 30px; }
.lock-card .lico { font-size: 44px; }
.lock-card h3 { font-size: 17px; color: var(--ink); margin: 14px 0 8px; }
.lock-card p { font-size: 13px; color: var(--ink-3); line-height: 1.7; }

/* 等宽字体单元格（订单号/AppID/账号） */
.tbl .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; color: var(--ink-2); }

/* 套餐卡片 */
.pkg-card {
  border: 1px solid var(--line); border-radius: 14px; padding: 20px;
  background: linear-gradient(180deg, #fffdf6, #fff); transition: box-shadow .2s, transform .2s;
}
.pkg-card:hover { box-shadow: 0 10px 28px -14px rgba(207, 147, 51, .5); transform: translateY(-2px); }
.pkg-name { font-size: 15px; font-weight: 700; color: var(--ink); }
.pkg-price { font-size: 30px; font-weight: 800; color: #cf9333; margin: 10px 0 6px; }
.pkg-meta { font-size: 12px; color: var(--ink-3); }
.pkg-note { font-size: 12px; color: var(--ink-2); margin-top: 10px; line-height: 1.6; }

/* 表单内分组小标题 */
.sec-title {
  font-size: 12.5px; font-weight: 700; color: var(--ink-3);
  margin: 20px 0 12px; padding-top: 16px; border-top: 1px solid var(--line);
}

/* 机身码默认卡片 */
.scan-default { display: flex; gap: 20px; align-items: flex-start; }
.scan-qr { width: 128px; height: 128px; border-radius: 12px; object-fit: cover; background: #f8fafc; border: 1px solid var(--line); cursor: pointer; flex-shrink: 0; }
.scan-qr-empty { display: flex; align-items: center; justify-content: center; color: var(--ink-3); font-size: 12px; cursor: default; }
.scan-info { flex: 1; min-width: 0; }
