/* ============================================================
   千帆工作台 · 全局样式（2026-09-25 侧边栏中台改版）
   设计基调：青蓝侧边栏 + 浅灰画布 + 白卡片，
   主色青蓝 #1a73e8，点缀色克制；所有页面内容类与旧版一致，只换观感与布局。
   ============================================================ */
:root {
  --bg: #f5f6f8;
  --card: #ffffff;
  --line: #e8eaf0;
  --text: #1c2230;
  --muted: #6b7280;
  /* 主色：蓝色系（2026-09-27 全站换蓝，marvis 蓝 #1a73e8；保留旧变量名，模板内联样式继续可用） */
  --blue: #1a73e8;
  --blue-d: #1557c2;
  --brand: #1a73e8;
  --brand-d: #1557c2;
  --brand-l: #4a90f0;
  --brand-rgb: 26, 115, 232;
  --green: #059669;
  --green-bg: #e7f6ef;
  --red: #e11d48;
  --red-bg: #ffe9ee;
  --amber: #b45309;
  --amber-bg: #fdf3e1;
  --violet: #7c3aed;
  --violet-bg: #f1ebfe;
  --sky: #0369a1;
  --sky-bg: #e3f3fc;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(24, 32, 56, .04), 0 2px 10px rgba(24, 32, 56, .04);
  --shadow-md: 0 6px 24px rgba(24, 32, 56, .10);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background:
    radial-gradient(900px 400px at 90% -100px, rgba(26, 115, 232, .06), transparent 60%),
    radial-gradient(760px 380px at -80px 6%, rgba(8, 145, 178, .06), transparent 55%),
    radial-gradient(600px 320px at 50% 110%, rgba(6, 182, 212, .04), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.6;
}
a { color: var(--blue); text-decoration: none; transition: color .12s; }
a:hover { text-decoration: none; color: var(--blue-d); }

/* ---------------- 应用外壳：侧边栏 + 内容区 ---------------- */
.app { display: flex; min-height: 100vh; }

/* ===== 侧边栏 ===== */
.sb {
  width: 250px; flex: none; position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  background:
    radial-gradient(360px 240px at 100% 0%, rgba(8, 145, 178, .18), transparent 60%),
    linear-gradient(180deg, #0b3f8f 0%, #1a73e8 55%, #1557c2 100%);
  color: #e6f7fb;
  z-index: 20;
}
.sb-brand {
  display: flex; align-items: center; gap: 11px;
  padding: 18px 18px 14px;
}
.sb-logo {
  width: 36px; height: 36px; flex: none; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
}
.sb-logo svg { width: 22px; height: 22px; color: #fff; }
.sb-brand-txt h1 {
  margin: 0; font-size: 17px; font-weight: 700; color: #fff;
  letter-spacing: .5px; line-height: 1.3;
}
.sb-brand-txt p {
  margin: 1px 0 0; font-size: 10.5px; letter-spacing: 1.2px;
  color: rgba(255, 255, 255, .72); font-weight: 500;
}
.sb-brand-sep {
  height: 1px; margin: 0 16px 8px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .25), transparent);
}

.sb-nav { flex: 1; overflow-y: auto; padding: 4px 10px 12px; }
.sb-nav::-webkit-scrollbar { width: 6px; }
.sb-nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .18); border-radius: 3px; }

.sb-group { margin-top: 10px; }
.sb-group-hd {
  padding: 5px 12px 4px; font-size: 12px; font-weight: 600;
  letter-spacing: 1px; color: rgba(255, 255, 255, .62);
  text-transform: uppercase;
}
.sb-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 12px; border-radius: 9px; margin: 1px 0;
  color: rgba(255, 255, 255, .92); font-size: 14.5px;
  transition: background .14s, color .14s;
}
.sb-item .ic-box { width: 20px; height: 20px; flex: none; display: flex; align-items: center; justify-content: center; }
.sb-item .ic-box svg { width: 19px; height: 19px; }
.sb-item .lbl { line-height: 1.4; }
.sb-item:hover { background: rgba(255, 255, 255, .10); color: #fff; }
.sb-item.on {
  background: rgba(255, 255, 255, .18);
  color: #fff; font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}

.sb-foot { padding: 12px 14px 16px; border-top: 1px solid rgba(255, 255, 255, .14); }
.sb-user { display: flex; align-items: center; gap: 10px; }
.sb-avatar {
  width: 34px; height: 34px; flex: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .16); color: #fff;
  font-weight: 600; font-size: 15px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
}
.sb-user-txt { min-width: 0; }
.sb-user-txt .un {
  color: #fff; font-size: 14.5px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sb-user-txt .ur {
  color: rgba(255, 255, 255, .72); font-size: 12.5px; line-height: 1.3;
}
.sb-foot-acts { margin-top: 10px; }
.sb-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 6px 12px; border-radius: 8px; font-size: 12.5px; font-weight: 500;
  color: rgba(255, 255, 255, .8);
  border: 1px solid rgba(255, 255, 255, .22);
  transition: all .13s;
}
.sb-btn:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.sb-btn.danger:hover { background: rgba(225, 29, 72, .25); border-color: rgba(255, 120, 150, .4); }

/* ===== 内容区 ===== */
.area { flex: 1; min-width: 0; display: flex; flex-direction: column; }
main.main { flex: 1; width: 100%; max-width: 1720px; margin: 0 auto; padding: 24px 24px 48px; }

h1.page {
  font-size: 22px; font-weight: 700; margin: 0 0 4px; letter-spacing: .2px;
  background: linear-gradient(120deg, #1557c2, #1a73e8 45%, #4a90f0);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--blue-d);
}
p.sub { color: var(--muted); margin: 0 0 20px; font-size: 13px; }

/* ---------------- 卡片 ---------------- */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.card > b:first-child, .card .row > b:first-child { font-size: 15px; }
.grid { display: grid; gap: 14px; }
.g4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.stat {
  position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 16px 14px;
  box-shadow: var(--shadow-sm); transition: transform .12s, box-shadow .12s;
}
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
/* 汇总卡统一青蓝系（收敛旧 6 色渐变） */
.stat::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #1a73e8, #5aa7ff);
}
.grid .stat { background: linear-gradient(135deg, #ecfeff, #f8fdfe 70%); }
.grid .stat .n { color: #1a73e8; }
.stat .n { font-size: 26px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat .l { color: var(--muted); font-size: 12px; margin-top: 2px; }
/* 业绩榜汇总条：按语义固定配色（沿用语义色，主色收敛为青蓝） */
.grid .stat.k-orders { background: linear-gradient(135deg, #e9f9f1, #f7fdfa 70%); }
.grid .stat.k-orders::before { background: linear-gradient(90deg, #10b981, #6ee7b7); }
.grid .stat.k-orders .n { color: #059669; }
.grid .stat.k-pay { background: linear-gradient(135deg, #fdf4e0, #fffdf7 70%); }
.grid .stat.k-pay::before { background: linear-gradient(90deg, #f59e0b, #fcd34d); }
.grid .stat.k-pay .n { color: #b45309; }
.grid .stat.k-merchant { background: linear-gradient(135deg, #fdeaef, #fff8fa 70%); }
.grid .stat.k-merchant::before { background: linear-gradient(90deg, #f43f5e, #fda4af); }
.grid .stat.k-merchant .n { color: #e11d48; }
.grid .stat.k-up { background: linear-gradient(135deg, #e6f5fd, #f8fcff 70%); }
.grid .stat.k-up::before { background: linear-gradient(90deg, #0ea5e9, #7dd3fc); }
.grid .stat.k-up .n { color: #0284c7; }
.grid .stat.k-users { background: linear-gradient(135deg, #f3ecfe, #fbf9ff 70%); }
.grid .stat.k-users::before { background: linear-gradient(90deg, #8b5cf6, #c4b5fd); }
.grid .stat.k-users .n { color: #7c3aed; }

/* ---------------- 表格 ---------------- */
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
th, td { text-align: left; padding: 10px 11px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th {
  color: #6b7280; font-weight: 600; font-size: 12px; background: #f8f9fc;
  border-bottom: 1px solid var(--line);
}
tbody tr:nth-child(even) { background: #fbfcfe; }
tbody tr:hover { background: #f4f6fd; }
tr:last-child td { border-bottom: none; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------------- 标签 ---------------- */
.tag { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 12px; font-weight: 500; }
.tag.ok { background: var(--green-bg); color: var(--green); }
.tag.no { background: var(--red-bg); color: var(--red); }
.tag.wait { background: var(--amber-bg); color: var(--amber); }
.tag[title] { cursor: help; }
.tag.gray { background: #f0f2f6; color: #5b6472; }
/* 商品库分类标签（平台归属，如「微信小店」）—— 与草稿状态标签区分开 */
.tag.cat { background: var(--sky-bg); color: var(--sky); }

/* ---------------- 表单与按钮 ---------------- */
label.f { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 5px; }
input[type=text], input[type=password], input[type=date], select {
  width: 100%; padding: 9px 11px; border: 1px solid #d8dce6;
  border-radius: 10px; font-size: 14px; font-family: inherit; background: #fff;
  transition: border-color .12s, box-shadow .12s;
}
input:focus, select:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .12);
}
button, .btn {
  display: inline-block; padding: 9px 18px; border: none; border-radius: 10px;
  background: linear-gradient(135deg, #1a73e8, #4a90f0); color: #fff;
  font-size: 14px; cursor: pointer; font-family: inherit; font-weight: 500;
  box-shadow: 0 2px 8px rgba(var(--brand-rgb), .28);
  transition: background .12s, transform .12s, box-shadow .12s;
}
button:hover, .btn:hover {
  background: linear-gradient(135deg, #1557c2, #1a73e8); transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(var(--brand-rgb), .36);
  text-decoration: none;
}
button:active, .btn:active { transform: translateY(0); }
button.ghost, .btn.ghost {
  background: #fff; color: var(--text); box-shadow: none;
  border: 1px solid #d8dce6;
}
button.ghost:hover, .btn.ghost:hover { background: #f4f6fd; border-color: #c3cade; }
button.sm, .btn.sm { padding: 5px 12px; font-size: 12px; border-radius: 8px; }
button.danger { background: var(--red-bg); color: var(--red); box-shadow: none; }
button.danger:hover { background: #ffdbe3; }

.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sp { flex: 1; }
.hint { color: var(--muted); font-size: 12px; margin-top: 6px; }

pre.out {
  background: #171d2e; color: #dbe2f0; padding: 16px; border-radius: 10px;
  overflow-x: auto; font-size: 12.5px; line-height: 1.55; max-height: 520px;
  font-family: ui-monospace, Menlo, Consolas, monospace; white-space: pre-wrap;
  word-break: break-all;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.flash {
  padding: 11px 15px; border-radius: 10px; margin-bottom: 14px; font-size: 13px;
  border-left: 4px solid transparent; box-shadow: var(--shadow-sm);
}
.flash.error { background: var(--red-bg); color: var(--red); border-left-color: var(--red); }
.flash.ok { background: var(--green-bg); color: var(--green); border-left-color: var(--green); }

/* ---------------- 商品卡片 ---------------- */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.pcard {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.pcard img { width: 100%; height: 165px; object-fit: cover; background: #f0f2f7; display: block; }
.pcard .body { padding: 11px 12px 13px; }
.pcard .code {
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px;
  color: var(--sky); background: var(--sky-bg);
  display: inline-block; padding: 0 7px; border-radius: 5px;
}
.pcard .ti { font-size: 13px; margin: 6px 0 7px; height: 42px; overflow: hidden; font-weight: 500; }

/* ---------------- 登录页 ---------------- */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px;
  background:
    radial-gradient(800px 400px at 85% 0%, rgba(8, 145, 178, .30), transparent 60%),
    radial-gradient(700px 420px at 10% 100%, rgba(6, 182, 212, .24), transparent 55%),
    linear-gradient(135deg, #1557c2, #1a73e8 60%, #4a90f0);
}
.login-box {
  background: rgba(255, 255, 255, .97); border: none; border-radius: 20px;
  padding: 34px 30px; width: 100%; max-width: 380px;
  box-shadow: 0 24px 60px rgba(6, 50, 64, .45);
}
.login-box h1 {
  background: linear-gradient(120deg, #1557c2, #1a73e8 50%, #4a90f0);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--blue-d);
}
.login-box h1 {
  font-size: 19px; font-weight: 700; margin: 0 0 3px; color: var(--text);
}
.login-box p { color: var(--muted); font-size: 13px; margin: 0 0 18px; }
.login-box button { width: 100%; margin-top: 20px; padding: 11px; font-size: 15px; }
.login-foot { text-align: center; color: rgba(255, 255, 255, .85); font-size: 12px; margin-top: 18px; }

@media (max-width: 900px) {
  .sb { width: 68px; }
  .sb-brand-txt, .sb-group-hd, .sb-item .lbl,
  .sb-user-txt, .sb-btn { display: none; }
  .sb-brand { justify-content: center; padding: 16px 10px 12px; }
  .sb-item { justify-content: center; padding: 9px; }
  .sb-foot { padding: 10px; }
  .sb-avatar { margin: 0 auto; }
}
@media (max-width: 640px) {
  main.main { padding: 14px; }
}

/* ---------------- 商品详情页 ---------------- */
.kv { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.kv th { text-align: left; color: var(--muted); font-weight: 400; width: 92px;
  vertical-align: top; padding: 7px 10px 7px 0; white-space: nowrap; background: none; border: none; }
.kv td { padding: 7px 0; line-height: 1.6; word-break: break-all; border: none; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px;
  border: 1px solid var(--line); background: #f0f2f7; cursor: zoom-in; transition: transform .12s; }
.gallery img:hover { transform: scale(1.02); }
.gallery img:active { position: fixed; inset: 0; width: 96vw; height: 96vh;
  aspect-ratio: auto; object-fit: contain; z-index: 99; background: rgba(10, 14, 28, .9);
  border: none; cursor: zoom-out; padding: 2vh; }
.tbl th { background: #f8f9fc; }
.tbl th, .tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line); }
.pcard { transition: transform .12s, box-shadow .12s; }
.pcard:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: #a9c7f0; }
.pcard .pthumb, .pcard .plink { text-decoration: none; color: inherit; display: block; }
.pcard .noimg { height: 165px; background: #f0f2f5; display: flex; align-items: center;
  justify-content: center; color: #b4b2a9; font-size: 12px; }
.pcard.dup { border-color: var(--red); box-shadow: 0 0 0 2px var(--red-bg); }

/* 商品卡底部的操作条（编辑 / 删除） */
.pcard .acts { display: flex; gap: 8px; align-items: center; margin-top: 10px;
  padding-top: 9px; border-top: 1px solid var(--line); }
.pcard .acts form { margin: 0; flex: 1; display: flex; }
.pcard .acts .btn, .pcard .acts button { flex: 1; text-align: center; cursor: pointer; }

/* 编码重复警示条 */
.warnbox { background: var(--red-bg); border-left: 4px solid var(--red); color: var(--red);
  padding: 12px 15px; border-radius: 10px; margin-bottom: 14px; font-size: 13px;
  line-height: 1.6; }

/* 商品新增 / 编辑表单 */
.formcard { background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px 20px; max-width: 780px;
  box-shadow: var(--shadow-sm); }
.fsec { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .04em;
  margin: 20px 0 12px; padding-bottom: 6px; border-bottom: 1px dashed var(--line); }
.fsec:first-child { margin-top: 0; }
.frow { margin-bottom: 14px; }
.frow label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.frow input[type=text], .frow select, .frow textarea {
  width: 100%; box-sizing: border-box; padding: 9px 11px; border: 1px solid #d8dce6;
  border-radius: 9px; font-family: inherit; font-size: 13.5px; background: #fff;
  color: var(--text); }
.frow textarea { resize: vertical; line-height: 1.55; }
.frow input:focus, .frow select:focus, .frow textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .12); }
.frow .hint { margin-top: 5px; }
.req { color: var(--red); }
.hint.okmsg { color: var(--green); }
.hint.badmsg { color: var(--red); font-weight: 500; }
.finfo { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }

/* ---------------- 销量排行榜缩略图 ---------------- */
.thumb { width: 46px; height: 46px; object-fit: cover; border-radius: 9px;
  border: 1px solid var(--line); background: #f0f2f7; cursor: zoom-in;
  display: block; transition: transform .12s; }
.thumb:hover { transform: scale(1.06); }
.thumb.zoom { position: fixed; inset: 0; width: 92vw; height: 92vh; margin: auto;
  object-fit: contain; z-index: 99; background: rgba(10, 14, 28, .9);
  border: none; padding: 3vh; cursor: zoom-out; }
.thumb.none { display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 9px; border: 1px dashed #cdd4e2;
  color: var(--muted); font-size: 11px; cursor: default; }
.thumb.blank { width: 46px; height: 46px; border-radius: 9px;
  background: #f4f6fb; border: 1px solid #e8ecf4; cursor: default; }
.thumb.blank::after { content: none; }

/* ---------------- 实时榜卡片 ---------------- */
.card.live { border-color: #a9c7f0; box-shadow: 0 0 0 3px #ecfeff, var(--shadow-sm); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: #10b981; margin-right: 7px; vertical-align: 1px;
  animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, .5); }
  50% { opacity: .55; box-shadow: 0 0 0 5px rgba(16, 185, 129, 0); }
}
.tag.green { background: var(--green-bg); color: var(--green); margin-left: 6px; }
.tag.new { background: #e5484d; color: #fff; font-weight: 600;
  margin-left: 6px; padding: 1px 7px; letter-spacing: .5px;
  box-shadow: 0 1px 4px rgba(229, 72, 77, .4); }
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } }

/* ---------------- 业绩表 ---------------- */
.seg { display: inline-flex; background: #eef0f6; border-radius: 11px; padding: 3px; }
.seg a { padding: 6px 14px; border-radius: 8px; font-size: 13px;
  color: #55607a; text-decoration: none; white-space: nowrap; transition: all .12s; }
.seg a:hover { color: var(--blue-d); }
.seg a.on {
  background: linear-gradient(135deg, #1a73e8, #4a90f0); color: #fff; font-weight: 600;
  box-shadow: 0 2px 8px rgba(var(--brand-rgb), .32);
}
.seg a.on:hover { color: #fff; background: linear-gradient(135deg, #1a73e8, #4a90f0); }
.seg a .d { font-size: 11px; font-weight: 400; opacity: .6; margin-left: 5px;
  font-variant-numeric: tabular-nums; }
.seg a.on .d { opacity: .8; }
.stat-range { margin: 0 0 14px; font-size: 14px; }
.stat-range b { color: var(--muted); font-weight: 500; font-size: 13px;
  margin-right: 8px; letter-spacing: .3px; }
.stat-range .hint { font-weight: 400; }

/* 逐日柱状图 */
.spark { display: flex; align-items: flex-end; gap: 4px; height: 110px; overflow-x: auto; }
.spark-col { flex: 1 0 26px; min-width: 26px; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.spark-bar { width: 100%; max-width: 26px;
  background: linear-gradient(180deg, #5aa7ff, #1a73e8);
  border-radius: 5px 5px 0 0; min-height: 2px; transition: height .3s ease; }
.spark-col:hover .spark-bar { background: linear-gradient(180deg, #67e8f9, #4a90f0); }
.spark-x { font-size: 10px; color: var(--muted); margin-top: 5px;
  transform: rotate(-45deg); transform-origin: center; white-space: nowrap; }

/* 表格里的占比条 */
.bar { height: 5px; background: #eceef4; border-radius: 3px; margin-top: 5px;
  width: 76px; margin-left: auto; }
.bar i { display: block; height: 100%;
  background: linear-gradient(90deg, #1a73e8, #5aa7ff); border-radius: 3px; }

/* ---------------- 可访问店铺选择器（人员管理） ---------------- */
.picker { border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; background: #fafbfd; box-shadow: var(--shadow-sm); }
.picker label.pk-item, .picker label.pk-allrow {
  display: flex; align-items: center; gap: 6px; font-size: 13px;
  margin: 0; white-space: nowrap; cursor: pointer; }
.picker label.pk-allrow { margin-bottom: 4px; }
.picker label.pk-allrow .hint { margin: 0; }
.picker .pk-item .hint { margin: 0; font-size: 11px; }
.picker input[type=checkbox] { width: auto; margin: 0; flex: none; cursor: pointer; }
.picker input[type=checkbox]:checked { accent-color: var(--blue); }
.pk-grid { display: grid; gap: 6px 14px; margin: 6px 0 4px;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.pk-stores { max-height: 260px; overflow-y: auto; margin-top: 10px;
  padding-top: 8px; border-top: 1px dashed #d8dce6; }
.pk-more { margin-top: 12px; }
.pk-more summary { margin: 0; cursor: pointer; }
.pk-sum { margin-top: 10px; }

/* 改店铺弹层 */
.modal { display: none; position: fixed; inset: 0; z-index: 60; padding: 24px;
  background: rgba(15, 23, 42, .45); overflow-y: auto; }
.modal.on { display: block; }
.modal-box { background: #fff; border-radius: 16px; padding: 18px 20px 20px;
  max-width: 780px; margin: 0 auto; box-shadow: 0 20px 60px rgba(15, 23, 42, .25); }

/* ---------------- 滚动条（webkit） ---------------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #c9cfdb; border-radius: 6px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #aab3c8; }
::-webkit-scrollbar-track { background: transparent; }

/* ─────────────────────────────────────────────
   业绩榜页
   ───────────────────────────────────────────── */

/* 筛选工具条：白底卡片，包住 榜单页签 + 分组下拉 + 状态提示 */
.toolbar {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  margin-bottom: 14px; padding: 10px 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.toolbar .hint { margin: 0; }

/* 榜单页签：选中项主色 + 白字 */
.seg { background: #eef0f6; border-radius: 12px; padding: 4px;
       box-shadow: inset 0 1px 2px rgba(30, 41, 90, .05); }
.seg a { padding: 6px 15px; border-radius: 9px; font-size: 13px; font-weight: 500;
         color: #55607a; transition: all .15s ease; }
.seg a:hover { color: var(--blue-d); background: rgba(26, 115, 232, .07); }
.seg a.on { background: var(--blue); color: #fff;
            box-shadow: 0 2px 8px rgba(var(--brand-rgb), .30); }
.seg a.on:hover { color: #fff; background: var(--blue-d); }

/* 下拉框统一样式 */
select { padding: 6px 12px; border: 1px solid #d8dce6; border-radius: 9px;
         background: #fff; font-size: 13px; color: #1f2430; cursor: pointer;
         box-shadow: 0 1px 2px rgba(20, 30, 70, .04); }
select:hover { border-color: #67e8f9; }
select:focus { outline: 2px solid #a9c7f0; outline-offset: 1px; }

/* 区块标题：左侧色条 */
h2.sec { display: flex; align-items: baseline; gap: 8px;
         font-size: 16px; margin: 24px 0 8px; }
h2.sec::before { content: ""; align-self: center; width: 4px; height: 16px;
                 border-radius: 2px; flex: none;
                 background: linear-gradient(180deg, #1a73e8, #4a90f0, #5aa7ff); }

/* 统计区间：浅色信息条 */
.stat-range { background: #f8f9fc; border: 1px solid var(--line); border-radius: 10px;
              padding: 8px 12px; margin: 0 0 14px !important; }

/* 金色「榜首」标签 */
.tag.gold { background: linear-gradient(135deg, #f59e0b, #fbbf24); color: #fff;
            font-weight: 600; margin-left: 6px;
            box-shadow: 0 1px 4px rgba(217, 119, 6, .30); }

/* 占比条渐变 */
.tbl .bar i { background: linear-gradient(90deg, #1a73e8, #5aa7ff) !important;
              border-radius: 3px; }

/* 表格行首列名次数字稍微放大 */
.tbl td b { font-variant-numeric: tabular-nums; }

/* ── 概览页「业绩概览」卡片 ── */
.pgrid.perfgrid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.pgrid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.pstat { background: linear-gradient(160deg, #ecfeff, #fbfcff 65%); border: 1px solid #d6ecf2;
         border-radius: 12px; padding: 12px 14px; transition: box-shadow .12s, border-color .12s; }
.pstat:hover { border-color: #a9c7f0; box-shadow: var(--shadow-sm); }
.pstat .pl { font-weight: 600; font-size: 13px; color: #55607a; margin-bottom: 4px; }
.pstat .pn { font-size: 24px; font-weight: 700; color: #1a73e8;
             font-variant-numeric: tabular-nums; line-height: 1.25; }
.pstat .hint { margin-top: 2px; }
.pstat .pteam { margin-top: 9px; padding: 7px 10px;
                border-radius: 8px;
                background: #f2fbf6;
                border: 1px solid #d3eee0;
                display: flex; align-items: baseline; gap: 7px;
                font-weight: 600; color: #3d8b68; font-size: 13px; }
.pstat .pteam .tn { font-size: 16px; font-weight: 700; color: #12996e;
                    font-variant-numeric: tabular-nums; line-height: 1.2; }
.pstat .pteam .hint { margin: 0; color: #6aa88d; }

/* 项目小标题（首页 礼物店 / 百货店 分组行） */
.pgroup { font-weight: 700; font-size: 13px; color: #55607a; margin-bottom: 6px;
          display: flex; align-items: center; gap: 7px; }
.pgroup::before { content: ""; width: 8px; height: 8px; border-radius: 3px;
                  background: linear-gradient(135deg, #1a73e8, #4a90f0); }

/* ═══════════════════════════════════════════════════════════
   资料库 · 微信小店页
   ═══════════════════════════════════════════════════════════ */

/* 页头 */
.libhead { margin-bottom: 16px; }
.libhead .sub b { color: var(--blue-d); font-weight: 600; }

/* 工具卡：搜索行 + 类目胶囊组 */
.libtoolbar {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 13px 15px 14px; margin-bottom: 18px;
}
@media (min-width: 720px) {
  .libtoolbar {
    background:
      radial-gradient(520px 160px at 100% 0%, rgba(26, 115, 232, .07), transparent 70%),
      var(--card);
  }
}

/* 搜索框：图标 + 输入 + 清空 + 按钮 一体 */
.libsearch {
  display: flex; align-items: center; gap: 8px;
  background: #f7f8fc; border: 1px solid #e3e6ef; border-radius: 11px;
  padding: 3px 4px 3px 11px; max-width: 460px;
  transition: border-color .14s, box-shadow .14s, background .14s;
}
.libsearch:focus-within {
  background: #fff; border-color: #a9c7f0;
  box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .10);
}
.libsearch .mag { color: #9aa3b8; display: flex; flex: none; }
.libsearch input[type="text"] {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  padding: 7px 0; font-size: 13.5px; color: var(--text);
}
.libsearch input[type="text"]::placeholder { color: #a7aec0; }
.libsearch .libsearch-clear {
  flex: none; width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: #8b93a7; background: #e9ecf4; line-height: 1;
}
.libsearch .libsearch-clear:hover { background: #dde2ee; color: #5a6377; }
.libsearch .libsearch-go {
  flex: none; border: 0; cursor: pointer; padding: 7px 16px; border-radius: 8px;
  background: linear-gradient(135deg, #1a73e8, #4a90f0); color: #fff;
  font-size: 13px; font-weight: 600; letter-spacing: .3px;
  box-shadow: 0 2px 8px rgba(var(--brand-rgb), .28);
  transition: filter .14s, box-shadow .14s;
}
.libsearch .libsearch-go:hover { filter: brightness(1.06); box-shadow: 0 3px 12px rgba(var(--brand-rgb), .34); }

/* 类目胶囊组：可换行 */
.libcats {
  display: flex; flex-wrap: wrap; align-items: center; gap: 7px;
  margin-top: 13px; padding-top: 13px; border-top: 1px dashed #e6e9f2;
}
.libcats-label {
  font-size: 12px; font-weight: 600; color: #99a1b3; letter-spacing: 1px;
  margin-right: 2px; flex: none;
}
.libcats .chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px; border-radius: 999px; font-size: 13px;
  color: #55607a; background: #f2f4f9; border: 1px solid transparent;
  white-space: nowrap; line-height: 1.45;
  transition: all .14s ease;
}
.libcats .chip:hover {
  color: var(--blue-d); background: #e6f7fb; border-color: #b9e2ec;
  transform: translateY(-1px);
}
.libcats .chip.on {
  background: linear-gradient(135deg, #1a73e8, #4a90f0); color: #fff;
  font-weight: 600; border-color: transparent;
  box-shadow: 0 3px 10px rgba(var(--brand-rgb), .30);
}
.libcats .chip.on:hover { transform: translateY(-1px); filter: brightness(1.05); }
.libcats .chip .d {
  font-size: 11px; font-weight: 400; opacity: .62;
  font-variant-numeric: tabular-nums;
}
.libcats .chip.on .d { opacity: .85; }

/* 分页条 */
.libpager {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px; margin: 20px 0 4px;
  padding: 11px 15px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.libpager-l { display: flex; align-items: center; gap: 9px; margin: 0; flex-wrap: wrap; }
.libpager-l .hint b { color: var(--blue-d); font-variant-numeric: tabular-nums; }
.libpager-r { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.libpager .pg {
  min-width: 32px; height: 32px; padding: 0 9px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; color: #55607a; background: #f4f6fa;
  font-variant-numeric: tabular-nums; border: 1px solid transparent;
  transition: all .13s ease;
}
.libpager a.pg:hover { background: #e6f7fb; color: var(--blue-d); border-color: #b9e2ec; }
.libpager .pg.cur {
  background: linear-gradient(135deg, #1a73e8, #4a90f0); color: #fff;
  font-weight: 600; box-shadow: 0 2px 8px rgba(var(--brand-rgb), .28);
}
.libpager .pg.off { color: #c3c8d6; background: #f7f8fb; }
.libpager .pg.dots { background: transparent; color: #a7aec0; min-width: 18px; padding: 0; }

/* 窄屏微调 */
@media (max-width: 640px) {
  .libsearch { max-width: 100%; }
  .libcats { gap: 6px; }
  .libcats .chip { padding: 5px 9px; font-size: 12.5px; }
  .libpager { padding: 10px 12px; }
  .libpager .pg { min-width: 30px; height: 30px; }
}

/* ── 商品卡细节美化 ── */
.pgrid { grid-template-columns: repeat(auto-fill, minmax(224px, 1fr)); gap: 16px; }
.pcard {
  border-radius: 16px; display: flex; flex-direction: column;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.pcard .pthumb { position: relative; overflow: hidden; background: #f4f6fa; }
.pcard img {
  height: 176px; transition: transform .35s ease;
  border-bottom: 1px solid var(--line);
}
.pcard:hover img { transform: scale(1.035); }
.pcard .pthumb::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 46px;
  background: linear-gradient(to top, rgba(28, 34, 48, .02), transparent);
  pointer-events: none;
}
.pcard .body { display: flex; flex-direction: column; flex: 1; padding: 12px 13px 13px; }
.pcard .code {
  font-size: 11.5px; letter-spacing: .2px; padding: 1px 8px; border-radius: 6px;
  font-weight: 500;
}
.pcard .ti {
  font-size: 13.5px; line-height: 1.5; height: auto; min-height: 41px;
  margin: 7px 0 9px; font-weight: 500; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.pcard .row { gap: 5px; row-gap: 6px; }
.pcard .tag { font-size: 11.5px; padding: 2px 8px; }
.pcard .acts { margin-top: auto; }

/* ── 资料库列表页批量操作条（#bat） ── */
#bat button { padding: 6px 14px; font-size: 13px; border-radius: 8px; }
#bat button.danger {
  background: #fff; color: var(--red);
  border: 1px solid #f2b8c6; box-shadow: none;
}
#bat button.danger:hover { background: #fff5f7; border-color: #ec9db1; }

/* ── v7.1 分区：规划占位项（sb-soon）与角标（sb-badge） ──
   占位项 = 原型里带「计划」角标的未开发入口：灰显、不可点击、无链接。 */
.sb-item.sb-soon {
  color: rgba(255, 255, 255, .52);
  cursor: not-allowed;
}
.sb-item.sb-soon .ic-box { opacity: .68; }
.sb-item.sb-soon:hover { background: none; color: rgba(255, 255, 255, .52); }
.sb-badge {
  margin-left: auto; flex: none;
  padding: 1px 7px; border-radius: 9px;
  font-size: 10.5px; font-weight: 500; line-height: 1.5;
  color: rgba(255, 255, 255, .75);
  background: rgba(255, 255, 255, .12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
}

/* ============================================================
   铺货向导（2026-09-25）：资料库 .pick-bar 选品区 + pick/set 弹窗
   主色沿用青蓝 --blue/#1a73e8，变量名与旧版一致（--blue/--line/--muted）。
   ============================================================ */

/* ---- 弹窗骨架 ---- */
.mask {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(15, 23, 42, .48);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: none; align-items: flex-start; justify-content: center;
  padding: 48px 20px 20px;
}
.mask.on { display: flex; }
.wizmodal, .mask .modal {
  position: relative;   /* 回归 mask 的 flex 布局流，让居中控制生效（原 fixed+inset:0 导致弹窗偏左） */
  width: 100%; max-width: 920px;
  max-height: calc(100vh - 68px);
  display: flex; flex-direction: column;
  background: #fff; border-radius: 18px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .32); overflow: hidden;
}
.mask .modal.wide { max-width: 1120px; }
.mask .modal.slim { max-width: 720px; }
html.modal-open, html.modal-open body { overflow: hidden; }

.m-hd {
  display: flex; align-items: center; gap: 12px; flex: none;
  padding: 17px 22px; border-bottom: 1px solid var(--line); background: #fff;
}
.m-hd .mi {
  width: 36px; height: 36px; flex: none; border-radius: 10px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #1a73e8, #4a90f0);
}
.m-hd .mi svg { width: 18px; height: 18px; }
.m-hd .mt { flex: 1; min-width: 0; }
.m-hd .mt h3 { margin: 0 0 1px; font-size: 16px; font-weight: 600; }
.m-hd .mt p { margin: 0; font-size: 12px; color: var(--muted); }
.m-hd .mx {
  width: 34px; height: 34px; flex: none; border: none; background: none;
  padding: 0; box-shadow: none; border-radius: 50%; display: grid; place-items: center;
  color: var(--muted); transition: background .12s, color .12s;
}
.m-hd .mx:hover { background: #f1f5f9; color: var(--red); }
.m-hd .mx svg { width: 18px; height: 18px; }

.m-steps {
  display: flex; align-items: center; flex: none;
  padding: 14px 22px; background: #f8fafc; border-bottom: 1px solid var(--line);
}
.m-step { display: flex; align-items: center; gap: 9px; flex: none; }
.m-step .sn {
  width: 24px; height: 24px; flex: none; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; font-weight: 600;
  background: #eef0f6; color: #9ca3af; transition: all .15s;
}
.m-step.on .sn { background: #1a73e8; color: #fff; box-shadow: 0 2px 8px rgba(26,115,232,.32); }
.m-step.done .sn { background: var(--green); color: #fff; }
.m-step .sl { font-size: 13px; font-weight: 500; color: #9ca3af; white-space: nowrap; }
.m-step.on .sl { color: #1557c2; font-weight: 600; }
.m-step.done .sl { color: var(--muted); }
.m-line { flex: 1; height: 2px; background: var(--line); margin: 0 14px; border-radius: 1px; min-width: 20px; }
.m-line.done { background: #a7f3d0; }

.m-body { padding: 20px 22px; flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.m-foot {
  display: flex; align-items: center; gap: 10px; flex: none;
  padding: 14px 22px; border-top: 1px solid var(--line); background: #f8fafc;
  box-shadow: 0 -6px 16px -12px rgba(15, 23, 42, .22);
}
.m-foot .fill { flex: 1; }
.m-foot .sel-info { font-size: 13px; color: var(--muted); }
.m-foot .sel-info b { color: #1557c2; font-variant-numeric: tabular-nums; }

/* ---- 平台选择 ---- */
.pk-sec { display: block; }
.pk-hd { display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
  font-size: 14px; font-weight: 600; color: var(--text); }
.pk-hd svg { width: 17px; height: 17px; color: #1a73e8; }
.pk-hd .pk-tip { font-size: 12px; font-weight: 500; color: var(--muted);
  padding-left: 9px; border-left: 1px solid var(--line); }
.plat-grid { display: grid; gap: 12px 10px; grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); }
.plat {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 10px 4px 8px; border-radius: 12px; border: 1.5px solid transparent;
  background: none; transition: all .15s; position: relative; cursor: pointer;
}
.plat .pi {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  color: #1a73e8; position: relative; background: #e8f1fe; transition: transform .15s;
}
.plat .pi svg { width: 22px; height: 22px; }
.plat .pn { font-size: 12px; color: #374151; font-weight: 500; white-space: nowrap; }
.plat.on { border-color: #1a73e8; background: #e8f1fe; }
.plat.on .pn { color: #1557c2; font-weight: 600; }
.plat.off { opacity: .42; cursor: not-allowed; filter: grayscale(.85); }
.plat .pk {
  position: absolute; top: -5px; left: -5px; width: 18px; height: 18px; border-radius: 50%;
  display: none; place-items: center; background: var(--green); color: #fff;
  box-shadow: 0 2px 6px rgba(5,150,105,.4);
}
.plat.on .pk { display: grid; }
.plat .pk svg { width: 10px; height: 10px; }

/* ---- 店铺选择 ---- */
.store-toolbar { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 14px; }
.store-toolbar .search { max-width: 300px; flex: none; }
.store-toolbar .lnk { font-size: 12px; color: #1a73e8; font-weight: 500; }
.store-toolbar .lnk:hover { color: #1557c2; text-decoration: underline; }
.store-toolbar .fill { flex: 1; }
.store-picks {
  display: grid; gap: 2px 14px; padding: 4px 0 2px;
  grid-template-columns: repeat(4, minmax(0, 1fr)); max-height: 300px; overflow-y: auto;
}
@media (max-width: 1080px) { .store-picks { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 820px)  { .store-picks { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.store-pick {
  display: flex; align-items: center; gap: 9px; padding: 8px 10px;
  border-radius: 8px; font-size: 13px; color: #374151; cursor: pointer;
  transition: background .12s;
}
.store-pick:hover { background: #f1f5f9; }
.store-pick.on { background: #e8f1fe; color: #1557c2; font-weight: 600; }
.store-pick input[type=checkbox] { width: 15px; height: 15px; flex: none; margin: 0; cursor: pointer; accent-color: #1a73e8; }
.store-pick .sn2 { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.store-pick .sc { font-size: 11px; color: var(--muted); flex: none; }

/* ---- 资料库 .pick-bar 选品区 ---- */
.pick-bar {
  display: flex; align-items: flex-start; gap: 20px; flex-wrap: wrap;
  padding: 16px 18px; margin-bottom: 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.pick-bar .pb-tabs { display: flex; gap: 4px; flex: none; background: #eef0f6; padding: 4px; border-radius: 12px; }
.pick-bar .pb-tabs .tab {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px;
  border: none; background: none; cursor: pointer; border-radius: 8px;
  font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap;
  transition: all .12s; box-shadow: none;
}
.pick-bar .pb-tabs .tab:hover { color: var(--text); }
.pick-bar .pb-tabs .tab.on { background: #fff; color: #1557c2; font-weight: 600; box-shadow: 0 1px 3px rgba(15,23,42,.10); }
.pick-bar .pb-body { flex: 1; min-width: 320px; padding-top: 2px; }
.pick-bar .pb-panel { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pick-bar .unit-wrap { flex: none; display: inline-flex; align-items: stretch; }
.pick-bar .pb-lb { font-size: 13px; font-weight: 600; color: #374151; white-space: nowrap; }
.pick-bar .pb-hint { font-size: 12px; color: var(--muted); line-height: 1.55; flex: 1 1 240px; min-width: 0; }
.pick-bar .pb-go {
  display: flex; align-items: center; gap: 16px; flex: none;
  margin-left: auto; padding-left: 22px; border-left: 1px dashed var(--line); align-self: center;
}
.pick-bar .pb-sel { font-size: 13px; color: var(--muted); white-space: nowrap; }
.pick-bar .pb-sel b { color: #1557c2; font-size: 15px; font-variant-numeric: tabular-nums; }
.pick-bar .cat-chips { display: flex; flex-wrap: wrap; gap: 7px; max-height: 118px; overflow-y: auto; }

/* ---- 铺货设置 6 组参数面板 ---- */
.pl-panel { display: grid; gap: 16px; }
.pl-panel .pbox legend { color: #1557c2; }
.pl-panel .pfields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 12px; margin-top: 10px; }
.pl-panel .pfields.pf4 { grid-template-columns: repeat(4, 1fr); }
.pl-panel .pfields > div { min-width: 0; }
.pl-panel .pfields .f { margin-top: 0; font-size: 12.5px; white-space: nowrap; }
.pl-panel .pfields input, .pl-panel .pfields select { width: 100%; box-sizing: border-box; }
.pl-panel .pmgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 12px; margin-top: 8px; }
.pl-panel .pmcell { min-width: 0; background: #fbfcfe; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px 9px; }
.pl-panel .pmcell .f { margin-top: 0; font-size: 12.5px; white-space: nowrap; color: #374151; }
.pl-panel .pmcell .inp { display: flex; align-items: center; gap: 5px; margin-top: 4px; }
.pl-panel .pmcell .inp input { width: 100%; min-width: 0; box-sizing: border-box; }
.pl-panel .pmcell .u { font-size: 12.5px; color: var(--muted); }
.pl-panel .pmcell .sub { font-size: 11.5px; color: #9ca3af; margin-top: 4px; white-space: nowrap; }
.pl-panel .pmcell.base { border-color: #c3d9f7; background: #f2fbfd; }
@media (max-width: 1080px) { .pl-panel .pfields.pf4 { grid-template-columns: repeat(2, 1fr); } }

/* ---- 大按钮 ---- */
.btn-lg { padding: 11px 26px; font-size: 14.5px; font-weight: 600; border-radius: 10px; }

/* ---- 铺货设置参数表单基础（从 tasking.html 迁入，供资料库向导复用） ---- */
.pbox { border: 1px solid #e8eaf0; border-radius: 12px; padding: 14px 16px 16px;
        margin: 0; min-width: 0; background: #fff; }
.pbox legend { font-size: 13px; color: #1557c2; padding: 0 8px; font-weight: 700;
               letter-spacing: .5px; }
.pbox .f { margin-top: 14px; }
.pbox .f:first-of-type { margin-top: 10px; }
.pck { display: flex; align-items: center; gap: 7px; font-size: 13.5px; cursor: pointer;
       padding: 4px 0; }
.pck input { width: auto; margin: 0; accent-color: #1a73e8; }
.pbox input[type=text], .pbox input[type=number] { max-width: 100%; }
.pbox input[type=text] { width: 100%; }
.pbox .hint { line-height: 1.7; margin-top: 8px; }
.pfields .pck { white-space: nowrap; min-height: 36px; padding: 0; }
.pfields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 12px; margin-top: 10px; }
.pfields > div { min-width: 0; }
.pfields .f { margin-top: 0; font-size: 12.5px; white-space: nowrap; }
.pfields input { width: 100%; box-sizing: border-box; }
.pfields.pf4 { grid-template-columns: repeat(4, 1fr); }

/* ---- 抽奖弹窗（随机选品 · 奖池式卡片动画） ---- */
/* 抽奖弹窗垂直居中（覆盖 .mask 的 align-items: flex-start 靠上默认值） */
.mask#wizDraw { align-items: center; padding-top: 20px; }
.mask .modal.draw { max-width: 1060px; }
.draw-stage {
  position: relative; min-height: 360px; overflow: hidden;
  border-radius: 14px; border: 1px dashed #d5dae5;
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(26,115,232,.10), transparent 60%),
    #f7f9fc;
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
/* 抽奖时：三排 5 列滚动图库墙（图片在抽取，纯情绪价值，与选品无关） */
.draw-reel {
  position: absolute; inset: 0; overflow: hidden;
  border-radius: 14px; background: #f7f9fc;
}
.draw-reel .rows {
  position: absolute; left: -40px; right: -40px; top: 50%;
  transform: translateY(-50%);
}
.draw-row {
  display: flex; gap: 14px; width: max-content; will-change: transform;
  margin-bottom: 14px;
}
.draw-row:last-child { margin-bottom: 0; }
.draw-row .cell {
  width: 148px; height: 148px; flex: none; border-radius: 12px; overflow: hidden;
  background: linear-gradient(135deg, #e6f2f5, #f2e8ee, #eef0f6);   /* 加载中淡色块 */
  box-shadow: 0 4px 14px rgba(15,23,42,.08);
}
.draw-row .cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 三排横向无缝滚动：速度/方向各不相同（GPU 合成层，丝滑） */
.draw-row.r1 { animation: reel-left 9s linear infinite; }
.draw-row.r2 { animation: reel-right 13s linear infinite; }
.draw-row.r3 { animation: reel-left 17s linear infinite; }
@keyframes reel-left  { from { transform: translate3d(0,0,0); }      to { transform: translate3d(-50%,0,0); } }
@keyframes reel-right { from { transform: translate3d(-50%,0,0); }  to { transform: translate3d(0,0,0); } }
/* 整体竖向漂移（慢速呼吸感），叠加横向制造「多套组合」 */
.draw-reel.vert .rows { animation: reel-bob 6s ease-in-out infinite; }
@keyframes reel-bob { 0%,100% { transform: translateY(-52%); } 50% { transform: translateY(-48%); } }
/* 中央提示文字浮层 */
.draw-reel .hint-badge {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 22px 34px; border-radius: 16px; text-align: center;
  background: rgba(255,255,255,.88); backdrop-filter: blur(6px);
  box-shadow: 0 12px 40px rgba(15,23,42,.16); z-index: 2;
}
.draw-reel .hint-badge .ring {
  width: 30px; height: 30px; border-radius: 50%;
  border: 3px solid #e8f1fe; border-top-color: #1a73e8;
  animation: drawspin 0.8s linear infinite;
}
@keyframes drawspin { to { transform: rotate(360deg); } }
.draw-reel .hint-badge .txt { font-size: 16px; font-weight: 700; color: #1557c2; letter-spacing: .5px; }
.draw-reel .hint-badge .sub { font-size: 12px; color: var(--muted); }
/* 定格后的卡片墙 */
.draw-wall {
  width: 100%; display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
/* 单张抽中卡片（比资料库 .pcard 小一号） */
.dcard {
  position: relative; background: #fff; border: 1.5px solid var(--line);
  border-radius: 12px; overflow: hidden; cursor: pointer;
  transition: transform .18s, box-shadow .18s, border-color .18s, opacity .18s;
  animation: dcard-in .34s cubic-bezier(.22,.9,.32,1.15) both;
}
.dcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #c3d9f7; }
.dcard .dthumb { aspect-ratio: 1/1; background: #eef0f6; display: grid; place-items: center; overflow: hidden; }
.dcard .dthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dcard .dthumb .noimg { font-size: 11px; color: #9ca3af; }
.dcard .dbody { padding: 7px 9px 8px; }
.dcard .dcode { font-size: 11px; color: #1557c2; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dcard .dti { font-size: 12px; color: #374151; margin-top: 2px; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 32px; }
/* 勾掉态（不想要的款）：打叉 + 置灰 */
.dcard.off { opacity: .4; filter: grayscale(.9); border-color: #f3c2ce; }
.dcard.off .dthumb::after {
  content: '✕'; position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--red); font-size: 26px; font-weight: 700; background: rgba(255,255,255,.35);
}
.dcard.off .dthumb { position: relative; }
@keyframes dcard-in { from { opacity: 0; transform: translateY(12px) scale(.92); } to { opacity: 1; transform: none; } }
/* 抽奖弹窗顶部计数 + 空态 */
.draw-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.draw-meta .hint { margin: 0; }
.draw-empty { text-align: center; color: var(--muted); padding: 40px 0; }
.draw-empty .big { font-size: 40px; margin-bottom: 8px; }

/* ===== 多标签页（2026-09-27 移植 marvis 架构 + 主题色对齐青色系） ===== */
.topbar { display:flex; align-items:stretch; background:#f3f6fb; border-bottom:1px solid #e3e9f2; flex:none; }
.tabbar { display:flex; align-items:center; gap:6px; padding:8px 14px 0; flex:1; min-width:0; overflow-x:auto; overflow-y:hidden; }
.tabbar::-webkit-scrollbar { height:6px; }
.tabbar::-webkit-scrollbar-thumb { background:#dbe3ec; border-radius:3px; }
.top-user { display:flex; align-items:center; gap:9px; padding:8px 16px; flex:none; border-left:1px solid #e3e9f2; background:rgba(255,255,255,.6); }
.tu-avatar { width:28px; height:28px; border-radius:50%; background:linear-gradient(135deg,#1a73e8,#4a90f0); color:#fff; font-size:13px; font-weight:700; display:flex; align-items:center; justify-content:center; flex:none; box-shadow:0 2px 6px rgba(26,115,232,.35); }
.tu-txt { min-width:0; line-height:1.2; }
.tu-txt .tu-un { font-size:13px; font-weight:600; color:#1e293b; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:140px; }
.tu-txt .tu-ur { font-size:11px; color:#64748b; white-space:nowrap; }
.tu-btn { padding:4px 10px; border-radius:7px; font-size:12px; color:#e11d48; background:transparent; border:1px solid rgba(225,29,72,.35); text-decoration:none; cursor:pointer; transition:all .15s; }
.tu-btn:hover { background:rgba(225,29,72,.08); border-color:#e11d48; }
.tab-item { display:inline-flex; align-items:center; gap:8px; padding:8px 14px; font-size:13px; color:#4a5568; background:#fff; border:1px solid #e3e9f2; border-bottom:none; border-radius:10px 10px 0 0; cursor:pointer; position:relative; max-width:220px; box-shadow:0 -1px 3px rgba(15,43,91,.04); user-select:none; flex:none; }
.tab-item .tab-label { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.tab-item .tab-close { width:16px; height:16px; line-height:15px; text-align:center; border-radius:50%; color:#94a3b8; font-size:14px; flex:none; }
.tab-item .tab-close:hover { background:#fee2e2; color:#dc2626; }
.tab-item.on { color:#1557c2; border-color:#1a73e8; box-shadow:inset 0 2px 0 #1a73e8; font-weight:600; }
.tab-item.fixed .tab-label::before { content:''; display:inline-block; width:6px; height:6px; border-radius:50%; background:#1a73e8; margin-right:7px; vertical-align:1px; }
.tab-host { flex:1; position:relative; overflow:hidden; background:#fff; }
.tab-frame { position:absolute; inset:0; width:100%; height:100%; border:none; display:none; background:#fff; }
.tab-frame.on { display:block; }
body.embed .app { display:block; }
body.embed .embed-main { flex:none; min-height:100vh; box-sizing:border-box; }

/* ===== ICP 备案号（登录页） ===== */
.login-icp {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
  letter-spacing: .2px;
}
.login-icp a { color: var(--muted); text-decoration: none; transition: color .15s; }
.login-icp a:hover { color: var(--blue); text-decoration: underline; }
