/* ============================================================
   贺航图书ERP · G质感账房风（2026-08-24 用户定稿）
   浅灰绿画布+大圆角白卡浮层+薄荷绿+黑pill+深色渐变卡+gauge
   类名与旧版保持一致（换肤不换结构）
============================================================ */
:root {
  --page:#dee2d4; --bg:#eef1e6; --card:#ffffff;
  --ink:#161710; --ink-2:#63665a; --ink-3:#9a9c8e;
  --line:#e7e9dd; --line-2:#f0f2e7;
  --mint:#b6f6c4; --mint-d:#0f8a3e; --mint-ink:#0c3d1f;
  --lav:#cdc0f7; --lav-d:#5b3fd6;
  --gold:#f5d99a; --gold-d:#a07323; --gold-ink:#3d2e0e;
  --rose:#f6c4c4; --rose-d:#c23f3f;
  --black:#15140f;
  --r-lg:32px; --r:22px; --r-sm:14px;
  --shadow:0 1px 3px rgba(0,0,0,.04);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family:'Inter','Segoe UI','Microsoft YaHei',sans-serif;
  font-size:14px; color:var(--ink); background:var(--page);
  -webkit-font-smoothing:antialiased;
}
a { color:inherit; text-decoration:none; }
code { background:var(--bg); padding:2px 7px; border-radius:8px; font-size:11.5px; color:var(--ink-2); }
.mono { font-family:Consolas,monospace; font-size:11.5px; color:var(--ink-2); }
.c-ok { color:var(--mint-d) !important; } .c-err { color:var(--rose-d) !important; }
.hidden { display:none !important; }

/* ===== 布局 ===== */
.wrap { display:flex; min-height:100vh; }
.sidebar {
  width:216px; flex-shrink:0; background:var(--bg); color:var(--ink-2);
  display:flex; flex-direction:column; position:sticky; top:0; height:100vh;
  padding:22px 12px; box-shadow:2px 0 20px rgba(20,24,20,.08);
}
.brand { display:flex; align-items:center; gap:10px; padding:0 8px 16px; border-bottom:1px solid var(--line); margin-bottom:10px; }
.brand-logo { width:38px; height:38px; border-radius:11px; background:var(--black); display:grid; place-items:center; color:var(--gold); font-size:16px; font-weight:800; flex-shrink:0; }
.brand .bword { font-size:14.5px; font-weight:800; color:var(--ink); display:block; line-height:1.15; }
.brand .bsub { font-size:10px; color:var(--ink-3); font-weight:600; letter-spacing:.06em; }
.nav-group { font-size:10.5px; color:var(--ink-3); font-weight:700; padding:14px 10px 6px; letter-spacing:.03em; }
.sidebar nav a {
  display:flex; align-items:center; gap:8px; padding:9px 12px; border-radius:12px;
  color:var(--ink-2); font-size:13px; font-weight:650; margin:1px 0;
}
.sidebar nav a:hover { background:var(--card); color:var(--ink); }
.sidebar nav a.active { background:var(--black); color:#fff; }
.sidebar-foot { margin-top:auto; padding:14px 10px 0; border-top:1px solid var(--line); font-size:11.5px; color:var(--ink-3); display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:6px; }
.sidebar-foot span:first-child { color:var(--ink); font-weight:650; font-size:12px; }

/* 主区浮层面板 */
.main { flex:1; padding:22px 26px 40px; }
.main .float-panel {
  max-width:1240px; background:var(--bg); border-radius:var(--r-lg);
  padding:24px 28px 36px; box-shadow:0 40px 90px -50px rgba(20,24,20,.35);
  min-height:calc(100vh - 130px);
}
h1 { font-size:23px; font-weight:800; letter-spacing:-.02em; margin-bottom:16px; }
h2 { font-size:15px; font-weight:750; margin:18px 0 10px; }
.h-sub { font-size:13px; font-weight:500; color:var(--ink-3); margin-left:6px; }
.muted { color:var(--ink-3); font-size:12px; }
.small { font-size:12px; }
.num { text-align:right; font-variant-numeric:tabular-nums; }

/* ===== 按钮 ===== */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:7px;
  padding:10px 18px; font-size:13px; font-weight:700; cursor:pointer;
  border:0; border-radius:20px; font-family:inherit; white-space:nowrap;
  background:var(--card); color:var(--ink); box-shadow:var(--shadow);
  transition:transform .1s;
}
.btn:hover { transform:translateY(-1px); }
.btn:active { transform:translateY(0); }
.btn-primary { background:var(--black); color:#fff; }
.btn-mint, .btn-delist, .btn-sel { background:var(--mint); color:var(--mint-ink); }
.btn-warn { background:var(--rose); color:var(--rose-d); }
.btn-sm { padding:6px 13px; font-size:11.5px; border-radius:15px; }
.btn-link { border:none; background:none; color:var(--ink-3); padding:0; font-size:12px; cursor:pointer; box-shadow:none; }
.btn-link:hover { color:var(--ink); }
.btn-block { width:100%; padding:12px; }
.btn:disabled { opacity:.45; cursor:not-allowed; transform:none; }

/* ===== 卡片/表单 ===== */
.card-form { background:var(--card); padding:20px; max-width:580px; border-radius:var(--r); box-shadow:var(--shadow); margin-bottom:16px; }
.card-form label { display:block; margin:12px 0 5px; font-size:11.5px; color:var(--ink-2); font-weight:650; }
.card-form input[type=text], .card-form input[type=password], .card-form input[type=number], .card-form textarea, .card-form select {
  width:100%; padding:11px 14px; border:1.5px solid var(--line); border-radius:12px;
  font-size:13px; font-family:inherit; background:var(--card); outline:none;
}
.card-form input:focus, .card-form textarea:focus, .card-form select:focus { border-color:var(--mint-d); }
.card { background:var(--card); padding:18px; border-radius:var(--r); box-shadow:var(--shadow); margin-bottom:14px; max-width:580px; }
.card p { margin:4px 0; }
.inline { display:inline; }

/* ===== 表格 ===== */
table { width:100%; border-collapse:collapse; background:var(--card); border-radius:var(--r); box-shadow:var(--shadow); overflow:hidden; }
th { font-size:10.5px; color:var(--ink-3); font-weight:650; text-align:left; padding:11px 12px; background:var(--bg); letter-spacing:.02em; white-space:nowrap; }
td { padding:12px; border-top:1px solid var(--line-2); font-size:13px; vertical-align:middle; }
tr:hover td { background:rgba(182,246,196,.12); }
td.empty { text-align:center; color:var(--ink-3); padding:28px; }
th.num, td.num { text-align:right; font-variant-numeric:tabular-nums; }

/* ===== chips ===== */
.tag { display:inline-flex; align-items:center; font-size:10.5px; font-weight:700; padding:4px 11px; border-radius:12px; background:var(--bg); color:var(--ink-2); }
.tag-ok { background:var(--mint); color:var(--mint-ink); }
.tag-err { background:var(--rose); color:var(--rose-d); }
.tag-warn { background:var(--gold); color:var(--gold-ink); }

/* ===== 工具栏 ===== */
.toolbar { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:14px; flex-wrap:wrap; }
.filter-bar { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.filter-bar select, .filter-bar input[type=text] { padding:10px 14px; border:1.5px solid var(--line); border-radius:12px; font-size:12.5px; background:var(--card); outline:none; font-family:inherit; }
.filter-bar input[type=text] { width:190px; }
.chk { display:inline-flex; align-items:center; gap:5px; font-size:12px; color:var(--ink-2); font-weight:600; }
.pick-bar { display:flex; align-items:center; gap:10px; }
.sel-filter { padding:14px 16px; background:var(--card); border-radius:var(--r); box-shadow:var(--shadow); margin-bottom:14px; }
.sel-bulk-ops { display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }

/* ===== flash ===== */
.flash { padding:13px 18px; margin-bottom:16px; border-radius:14px; font-weight:650; font-size:13px; }
.flash-ok { background:var(--mint); color:var(--mint-ink); }
.flash-err { background:var(--rose); color:var(--rose-d); }

/* ===== 统计卡 ===== */
.stats { display:grid; grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); gap:12px; margin-bottom:16px; }
.stat-card { background:var(--card); padding:16px; border-radius:var(--r-sm); box-shadow:var(--shadow); color:var(--ink); display:block; }
a.stat-card:hover { box-shadow:0 3px 12px rgba(0,0,0,.1); }
.stat-card.ok .stat-num { color:var(--mint-d); }
.stat-card.err .stat-num { color:var(--rose-d); }
.stat-num { font-size:24px; font-weight:800; letter-spacing:-.02em; font-variant-numeric:tabular-nums; }
.stat-label { font-size:11px; color:var(--ink-3); font-weight:650; margin-top:3px; }
.detail-cards { display:flex; gap:12px; flex-wrap:wrap; margin-bottom:14px; }
.detail-cards .stat-card { flex:1; min-width:130px; }
.delist-alert { display:block; padding:15px 20px; margin-bottom:16px; background:var(--rose); color:var(--rose-d); border-radius:var(--r-sm); font-size:14px; font-weight:700; box-shadow:var(--shadow); }

/* ===== 千梦区块 ===== */
.km-head { display:flex; justify-content:space-between; align-items:center; gap:14px; margin-bottom:18px; flex-wrap:wrap; }
.km-head h1 { margin:0; }
.km-section { margin-bottom:18px; }
.km-section h2 { margin:0 0 10px; }

/* 段位进度条 */
.rank-bar { display:flex; align-items:flex-start; padding:8px 0; }
.rank-step { display:flex; flex-direction:column; align-items:center; gap:4px; min-width:64px; }
.rank-dot { width:34px; height:34px; border-radius:50%; background:var(--bg); border:1.5px solid var(--line); color:var(--ink-3); display:flex; align-items:center; justify-content:center; font-size:13px; }
.rank-name { font-size:10.5px; color:var(--ink-3); font-weight:650; }
.rank-step.done .rank-dot { background:var(--mint); border-color:var(--mint-d); color:var(--mint-ink); }
.rank-step.cur .rank-dot { background:var(--black); border-color:var(--black); color:#fff; box-shadow:0 0 0 4px rgba(21,20,15,.12); }
.rank-step.cur .rank-name { color:var(--ink); font-weight:800; }
.rank-line { flex:1; height:2px; background:var(--line); margin:16px 4px 0; }
.rank-line.done { background:var(--mint-d); opacity:.6; }

/* gauge 环形 */
.gauge-wrap { position:relative; width:160px; height:160px; margin:6px auto 0; }
.gauge-wrap svg { width:100%; height:100%; transform:rotate(-90deg); }
.gauge-wrap .mid { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; }
.gauge-wrap .mid b { font-size:26px; font-weight:800; }
.gauge-wrap .mid span { font-size:10px; color:rgba(12,61,31,.65); margin-top:2px; max-width:104px; }

/* 钱包深色卡 */
.pulse { background:linear-gradient(155deg,#1c2a1d,var(--black) 65%); color:#fff; position:relative; overflow:hidden; border-radius:var(--r); display:flex; flex-direction:column; box-shadow:0 6px 24px rgba(21,20,15,.3); }
.pulse::before { content:''; position:absolute; inset:0; background:radial-gradient(280px 200px at 92% -10%,rgba(182,246,196,.20),transparent 60%); pointer-events:none; }
.pulse .ph { position:relative; z-index:1; margin-bottom:12px; }
.pulse .ph b { font-size:15px; font-weight:750; }
.pulse .ph .sub { font-size:11.5px; color:rgba(255,255,255,.5); margin-top:2px; }
.pulse .bal { position:relative; z-index:1; }
.pulse .bal b { font-size:36px; font-weight:800; letter-spacing:-.03em; }
.pulse .bal span { font-size:12px; color:rgba(255,255,255,.5); margin-left:6px; }
.pulse .mini { display:flex; gap:22px; position:relative; z-index:1; margin-top:auto; border-top:1px solid rgba(255,255,255,.12); padding-top:14px; }
.pulse .mini .m b { font-size:20px; font-weight:800; display:block; }
.pulse .mini .m span { font-size:10.5px; color:rgba(255,255,255,.5); }
.pulse .mini .m .up { color:var(--mint); }

/* 段位薄荷卡 */
.balance-card { background:var(--mint); color:var(--mint-ink); border-radius:var(--r); padding:20px; box-shadow:var(--shadow); }
.balance-card .bh { display:flex; justify-content:space-between; align-items:center; margin-bottom:2px; }
.balance-card .bh .lab-sm { color:rgba(12,61,31,.6); }
.balance-card .ranks { display:flex; justify-content:space-between; font-size:9.5px; font-weight:700; color:rgba(12,61,31,.5); margin-top:10px; }
.balance-card .ranks .cur { color:var(--mint-ink); font-size:10.5px; }

/* 卖书榜 */
.rank-tabs { display:inline-flex; background:var(--bg); border-radius:22px; padding:3px; margin-bottom:10px; }
.rank-tabs a { font-size:11.5px; padding:6px 14px; border-radius:16px; color:var(--ink-2); font-weight:700; }
.rank-tabs a.cur { background:var(--black); color:#fff; }
.lb-row { display:flex; align-items:center; gap:11px; padding:10px 2px; border-bottom:1px solid var(--line-2); }
.lb-row:last-child { border:none; }
.lb-no { width:28px; height:28px; border-radius:50%; background:var(--bg); color:var(--ink-2); font-size:12px; font-weight:800; display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; }
.lb-1 { background:var(--gold); color:var(--gold-ink); } .lb-2 { background:var(--lav); color:var(--lav-d); } .lb-3 { background:var(--mint); color:var(--mint-ink); }
.lb-name { flex:1; font-size:13px; font-weight:600; }
.lb-stat { font-size:12px; color:var(--ink-2); font-variant-numeric:tabular-nums; }

/* 订单汇总条图 */
.bars { display:flex; align-items:flex-end; gap:20px; height:110px; margin:12px 0 4px; }
.barcol { flex:1; display:flex; flex-direction:column; align-items:center; gap:8px; height:100%; justify-content:flex-end; }
.barcol .stack { width:100%; max-width:68px; border-radius:12px; overflow:hidden; display:flex; flex-direction:column; }
.barcol .seg-a { background:var(--mint); }
.barcol .seg-b { background:var(--lav); }
.barcol .mo { font-size:11px; color:var(--ink-3); font-weight:650; }
.osfoot { display:flex; gap:16px; border-top:1px solid var(--line-2); padding-top:12px; flex-wrap:wrap; }
.osfoot .f b { font-size:15px; font-weight:750; display:block; }
.osfoot .f span { font-size:10.5px; color:var(--ink-3); }

/* 快捷入口 */
.quick-links { display:flex; gap:12px; }
.quick-links a { flex:1; background:var(--card); border-radius:var(--r-sm); padding:14px 16px; color:var(--ink); font-weight:650; box-shadow:var(--shadow); display:flex; align-items:center; gap:12px; }
.quick-links a:hover { box-shadow:0 3px 12px rgba(0,0,0,.1); }
.quick-links .ic { width:34px; height:34px; border-radius:10px; display:grid; place-items:center; font-size:15px; flex-shrink:0; }
.quick-links span { font-weight:500; font-size:11px; color:var(--ink-3); display:block; }

/* ===== 商品池卡片 ===== */
.goods-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(168px,1fr)); gap:14px; margin-bottom:16px; }
.goods-card { position:relative; background:var(--card); border-radius:16px; padding:10px; display:flex; flex-direction:column; gap:7px; box-shadow:var(--shadow); }
.goods-cat { position:absolute; left:10px; top:10px; background:rgba(20,23,16,.55); color:#fff; font-size:9.5px; padding:2px 8px; border-radius:8px; z-index:2; backdrop-filter:blur(3px); }
.goods-comp { position:absolute; right:10px; top:10px; background:rgba(20,23,16,.55); color:#fff; font-size:9.5px; padding:2px 8px; border-radius:8px; z-index:2; backdrop-filter:blur(3px); }
.goods-packed { position:absolute; left:10px; top:34px; background:var(--lav-d); color:#fff; font-size:9.5px; padding:2px 8px; border-radius:8px; z-index:2; }
.goods-cover { width:100%; aspect-ratio:3/4; object-fit:cover; border-radius:11px; background:linear-gradient(160deg,#d8dcc8,#c2c8ae); }
.goods-cover.ph { display:block; }
.goods-title { font-size:12.5px; line-height:1.35; height:2.7em; overflow:hidden; font-weight:600; }
.goods-prices { display:flex; flex-direction:column; gap:1px; font-size:10px; color:var(--ink-3); }
.goods-prices b { color:var(--ink); font-size:11px; }
.goods-ops { display:flex; gap:6px; }
.goods-ops .btn { padding:7px 0; flex:1; font-size:11.5px; border-radius:9px; }
.view-switch { display:inline-flex; }
.view-switch .btn { border-radius:0; margin-left:-1px; font-size:11.5px; padding:7px 13px; }
.view-switch .btn:first-child { border-radius:15px 0 0 15px; margin-left:0; }
.view-switch .btn.cur { background:var(--black); color:#fff; }
.pager { display:flex; align-items:center; gap:10px; margin:14px 0; font-size:12.5px; color:var(--ink-2); }
.row-cover { width:30px; height:40px; object-fit:cover; border-radius:6px; background:linear-gradient(160deg,#d8dcc8,#c2c8ae); display:inline-block; }

/* ===== 进度 ===== */
.pct { width:100px; height:6px; background:var(--line-2); border-radius:3px; overflow:hidden; display:inline-block; vertical-align:middle; }
.pct-bar { height:100%; background:var(--black); }
.pct-num { font-size:11px; margin-left:6px; color:var(--ink-3); }
.tpl-desc { white-space:pre-wrap; max-width:300px; }

/* ===== 模板 ===== */
.tpl-item { display:flex; justify-content:space-between; align-items:center; background:var(--card); border-radius:14px; padding:15px 18px; margin-bottom:10px; box-shadow:var(--shadow); gap:12px; }
.tpl-name { font-weight:700; font-size:14px; }
.tpl-ops { display:flex; gap:8px; align-items:center; flex-shrink:0; }
.ph-chip { display:inline-block; margin:3px 3px 3px 0; padding:4px 12px; font-size:11.5px; cursor:pointer; background:var(--mint); color:var(--mint-ink); border:0; border-radius:12px; font-family:inherit; font-weight:650; }
.ph-chip:hover { background:var(--card); box-shadow:var(--shadow); }
.tpl-preview { background:var(--bg); border-radius:12px; padding:14px; margin-top:12px; font-size:13px; }
.tpl-preview pre { white-space:pre-wrap; font-family:inherit; }
.tpl-edit { border:1.5px solid var(--line); border-radius:12px; padding:12px 14px; min-height:40px; font-size:13px; margin:5px 0; background:var(--card); outline:none; }
.tpl-edit:focus { border-color:var(--mint-d); }
.tpl-edit[data-ph]:empty::before { content:attr(data-ph); color:var(--ink-3); font-size:12px; }
.tpl-edit-area { min-height:96px; }
.ph-tok { display:inline-block; background:var(--mint); color:var(--mint-ink); border:0; border-radius:12px; padding:2px 10px; margin:0 1px; font-size:11.5px; line-height:1.6; font-weight:650; }
.ph-tok:hover { background:var(--card); box-shadow:var(--shadow); }
.ph-bar { margin:10px 0; }

/* ===== 详情抽屉 ===== */
.detail-drawer { position:fixed; inset:0; z-index:999; visibility:hidden; }
.detail-drawer.open { visibility:visible; }
.drawer-mask { position:absolute; inset:0; background:rgba(21,20,15,.4); opacity:0; transition:.2s; }
.detail-drawer.open .drawer-mask { opacity:1; }
.drawer-body { position:absolute; right:0; top:0; bottom:0; width:min(560px,94vw); background:var(--bg); box-shadow:-8px 0 30px rgba(0,0,0,.2); transform:translateX(100%); transition:.25s; padding:22px 24px; overflow-y:auto; border-radius:var(--r-lg) 0 0 var(--r-lg); }
.detail-drawer.open .drawer-body { transform:translateX(0); }
.drawer-close { position:absolute; right:16px; top:12px; border:0; background:var(--card); width:34px; height:34px; border-radius:50%; font-size:18px; cursor:pointer; color:var(--ink-2); box-shadow:var(--shadow); }
.detail-drawer h2 { margin-bottom:12px; }
.detail-drawer h3 { margin:16px 0 8px; font-size:14px; }
.d-table { width:100%; border-radius:var(--r-sm); box-shadow:none; }
.d-table td { padding:7px 10px; border-bottom:1px solid var(--line-2); font-size:13px; }
.d-table td:first-child { color:var(--ink-3); width:80px; font-size:11.5px; font-weight:650; }
.d-imgs { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; }
.d-img { text-align:center; }
.d-img img { width:100%; aspect-ratio:3/4; object-fit:cover; border-radius:10px; border:1px solid var(--line); }
.d-img figcaption { font-size:10.5px; color:var(--ink-3); margin-top:3px; }
.d-desc { font-size:13px; line-height:1.6; }
.d-prices { display:flex; gap:16px; font-size:13px; flex-wrap:wrap; }
.d-ops { margin-top:16px; }

/* ===== 关键词弹窗 ===== */
.kw-modal { position:fixed; inset:0; z-index:1000; display:flex; align-items:center; justify-content:center; }
.kw-mask { position:absolute; inset:0; background:rgba(21,20,15,.4); }
.kw-panel { position:relative; background:var(--card); border-radius:var(--r); padding:22px 24px; width:min(480px,92vw); box-shadow:0 20px 60px rgba(20,24,20,.3); }
.kw-panel h3 { margin-bottom:6px; }
.kw-panel textarea { width:100%; padding:11px 14px; border:1.5px solid var(--line); border-radius:12px; font-size:13px; font-family:inherit; margin:8px 0; background:var(--card); outline:none; }
.kw-panel textarea:focus { border-color:var(--mint-d); }
.kw-hits { max-height:180px; overflow-y:auto; margin:8px 0; }
.kw-hits li { font-size:12px; padding:3px 0 3px 16px; }
.kw-ops { display:flex; gap:8px; justify-content:flex-end; flex-wrap:wrap; }

/* ===== 行内表单 ===== */
.ship-form input, .ship-form select, .orderrow-form input, .orderrow-form select,
.refund-form input, .refund-form select, .price-form input, .acc-edit input, .wallet-form select, .wallet-form input {
  padding:6px 10px; border:1.5px solid var(--line); border-radius:9px; font-size:11.5px; font-family:inherit; background:var(--card); outline:none;
}
.ship-form input:focus, .orderrow-form input:focus { border-color:var(--mint-d); }
.row-delist td { background:rgba(246,196,196,.25) !important; }
.w-100 { width:95px !important; padding:6px 10px; }
.w-80 { width:85px !important; padding:6px 10px; }
.w-70 { width:75px !important; padding:6px 10px; }
.w-60 { width:65px !important; padding:6px 10px; }

/* ===== 扫码 ===== */
.scan-overlay { position:fixed; inset:0; background:rgba(21,20,15,.9); z-index:9999; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; }
.scan-box { position:relative; width:min(86vw,360px); aspect-ratio:3/4; border-radius:20px; overflow:hidden; background:#000; }
.scan-box video { width:100%; height:100%; object-fit:cover; }
.scan-line { position:absolute; left:8%; right:8%; height:2px; background:var(--mint); box-shadow:0 0 8px var(--mint); animation:scanline 2s linear infinite; }
@keyframes scanline { 0% { top:12%; } 50% { top:86%; } 100% { top:12%; } }
.scan-hint { color:#fff; font-size:14px; margin:0; }

/* ===== 拍书图片 ===== */
.img-cell { position:relative; width:70px; height:92px; border-radius:9px; background:linear-gradient(160deg,#d8dcc8,#c2c8ae); }
.img-cell img { width:100%; height:100%; object-fit:cover; border-radius:9px; }
.img-cell .del { position:absolute; right:-6px; top:-6px; width:20px; height:20px; border-radius:50%; background:var(--rose-d); color:#fff; font-size:12px; display:grid; place-items:center; cursor:pointer; border:2px solid var(--card); z-index:2; }
.img-cell .no { position:absolute; left:3px; top:3px; background:rgba(20,23,16,.55); color:#fff; font-size:9px; padding:1px 5px; border-radius:5px; z-index:2; }
.img-preview { display:flex; gap:8px; flex-wrap:wrap; margin:8px 0; }
.grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:0 14px; }
.intake-form .filter-bar input[type=text] { padding:12px 15px; font-size:14px; border-width:2px; }

/* ===== 登录页 ===== */
.login-body { display:flex; align-items:center; justify-content:center; min-height:100vh; background:var(--page); }
.login-card { background:var(--bg); border-radius:var(--r-lg); padding:36px; width:380px; box-shadow:0 40px 90px -50px rgba(20,24,20,.4); }
.login-card h1 { border:none; text-align:center; margin-bottom:6px; font-size:20px; }
.login-logo { text-align:center; margin-bottom:10px; }
.login-logo img { width:64px; height:64px; border-radius:18px; box-shadow:0 4px 14px rgba(0,0,0,.15); }
.login-card label { display:block; margin:12px 0 5px; font-size:11.5px; color:var(--ink-2); font-weight:650; }
.login-card input { width:100%; padding:12px 15px; border:1.5px solid var(--line); border-radius:12px; font-size:14px; background:var(--card); outline:none; font-family:inherit; }
.login-card input:focus { border-color:var(--mint-d); }
.login-card .btn { margin-top:18px; }
.login-card .flash { text-align:center; }

/* ===== 手机 ===== */
@media (max-width:640px) {
  .wrap { flex-direction:column; }
  .sidebar { width:100%; height:auto; position:static; flex-direction:row; align-items:center; overflow-x:auto; padding:10px; gap:4px; }
  .sidebar nav { display:flex; padding:0; }
  .sidebar nav a { white-space:nowrap; padding:8px 10px; }
  .brand { border:none; padding:6px 10px; margin:0; }
  .nav-group, .sidebar-foot { display:none; }
  .main { padding:12px; }
  .main .float-panel { padding:14px; border-radius:20px; }
  .grid-2 { grid-template-columns:1fr; }
  .filter-bar input[type=text] { width:150px !important; }
  .card-form { max-width:100%; }
  table { display:block; overflow-x:auto; }
  .quick-links { flex-direction:column; }
}

/* ===== 控制台浮窗系统（2026-08-23改版：钱包流水/模板管理/待下架分组/增加账号） ===== */
.km-modal { position:fixed; inset:0; z-index:1000; visibility:hidden; }
.km-modal.open { visibility:visible; }
.km-modal-mask { position:absolute; inset:0; background:rgba(21,20,15,.45); opacity:0; transition:.2s; }
.km-modal.open .km-modal-mask { opacity:1; }
.km-modal-body { position:absolute; left:50%; top:50%; transform:translate(-50%,-48%) scale(.98); opacity:0;
  width:min(640px,94vw); max-height:86vh; background:var(--bg); border-radius:var(--r-lg);
  box-shadow:0 50px 120px -40px rgba(20,24,20,.5); padding:22px 26px 28px; overflow-y:auto; transition:.22s; }
.km-modal.open .km-modal-body { transform:translate(-50%,-50%) scale(1); opacity:1; }
.km-modal.wide .km-modal-body { width:min(860px,96vw); }
.km-modal-close { position:absolute; right:14px; top:12px; width:34px; height:34px; border-radius:11px;
  border:none; background:var(--card); font-size:18px; color:var(--ink-2); cursor:pointer; z-index:2; }
.km-modal-close:hover { background:var(--rose); color:var(--rose-d); }
.km-modal-head h2 { margin-bottom:14px; }
.km-modal-h { margin:16px 0 8px; font-size:13.5px; color:var(--ink-2); font-weight:700; }
.km-modal-scroll { max-height:44vh; overflow-y:auto; border-radius:var(--r-sm); }
.km-modal .card-form { max-width:100%; }
.km-modal .detail-cards { margin-bottom:12px; }

/* 待充值红条行 */
.funds-line { padding:4px 0; font-size:13px; }
.funds-line b { color:var(--rose-d); }

/* 闲鱼账号模块行内编辑 */
.acc-edit input { padding:6px 9px; font-size:12px; width:90px; }
.row-off td { opacity:.5; }

/* 待下架分组卡 */
.delist-group { background:var(--card); border-radius:var(--r-sm); padding:12px 14px; margin-bottom:10px; border:1px solid var(--line); }
.delist-group-head { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.delist-group-head .tpl-ops { margin-left:auto; }
.delist-items { list-style:none; margin:10px 0 0; padding:0; display:grid; gap:6px; }
.delist-items li { display:flex; align-items:center; gap:8px; font-size:12.5px; }
.kw-thumb { width:28px; height:38px; object-fit:cover; border-radius:5px; flex-shrink:0; }

@media (max-width:640px) {
  .km-modal-body { width:96vw; padding:16px; }
  .delist-group-head .tpl-ops { margin-left:0; width:100%; }
}
