/* 商品中台 —— 全局样式（2026-11-22 按用户效果图重排）
   分区：
     ① 变量与基础
     ② 外壳（深色侧栏 / 顶部标题栏 / 内容区）
     ③ 通用控件（按钮 / 输入 / 徽标 / 提示条）
     ④ 首页（链接卡 / 平台行 / 上架流程卡 / 底部数据条）
     ⑤ 草稿核对页（左右分栏 / 图片对 / 重画进度）
     ⑥ 列表与时间线（表格 / 时间线 / 弹窗 / 图片库网格）
   改配色只动 ① 里的变量，不要在各处写死色值。 */

/* ① 变量与基础 */
:root {
  --bg: #f7f8fa;
  --panel: #ffffff;
  --line: #eceef4;
  --line-soft: #f2f4f8;
  --text: #111827;
  --muted: #6b7280;
  --dim: #9aa3b2;
  --accent: #4f46e5;
  --accent-deep: #4338ca;
  --accent-soft: #eef2ff;
  --ok: #059669;
  --fail: #dc2626;
  --warn: #d97706;
  --side: #0d1a2b;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.6 -apple-system, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code, .mono { font-family: ui-monospace, Consolas, monospace; }

/* ② 外壳 */
.layout { display: flex; min-height: 100vh; }

/* 侧栏：通栏深色（不是浮起的圆角卡），固定占位、内容自行滚动 */
.side {
  width: 232px; flex: 0 0 232px;
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  padding: 22px 14px 16px;
  background: var(--side);
  color: #c3ccdb;
}

.brand { display: flex; align-items: center; gap: 11px; padding: 2px 10px 26px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px; flex: 0 0 38px; border-radius: 10px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.brand-name { color: #fff; font-size: 16px; font-weight: 700; letter-spacing: .5px; }
.brand-sub { font-size: 9px; color: #7b89a0; letter-spacing: 2px; }

.nav { display: flex; flex-direction: column; gap: 3px; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: 10px;
  color: #b4bfd0; font-size: 13.5px;
}
.nav-item:hover { background: rgba(255, 255, 255, .05); color: #fff; text-decoration: none; }
.nav-item.on { background: #1b2a44; color: #fff; }
/* 导航图标只做描边（不铺底色方块），选中项整体提亮 */
.nav-ico { display: grid; place-items: center; color: #7f8da4; flex: 0 0 auto; }
.nav-item.on .nav-ico, .nav-item:hover .nav-ico { color: #fff; }
.nav-label { white-space: nowrap; }
.pill-new {
  margin-left: auto; padding: 2px 8px; border-radius: 6px;
  font-size: 10px; font-weight: 700; letter-spacing: .4px;
  background: var(--accent); color: #fff;
}

.side-foot { margin-top: auto; padding-top: 12px; }
/* 底部状态卡：服务是否正常 + 版本/环境，一眼可见 */
.status-card {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 12px; border-radius: 10px;
  background: #16243a;
}
.status-ok { display: grid; place-items: center; color: #22c55e; flex: 0 0 auto; }
.status-text { display: flex; flex-direction: column; line-height: 1.4; min-width: 0; }
.status-text b { color: #e6ebf3; font-size: 12.5px; font-weight: 600; }
.status-text span { color: #70809a; font-size: 11px; }

.content { flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* 顶部标题栏：左边大标题+副标题，右边通知与用户块 */
.topbar {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 20px; padding: 28px 30px 4px;
}
.topbar-title { min-width: 0; }
.topbar-title h1 {
  font-size: 26px; line-height: 1.3; font-weight: 700; letter-spacing: -.2px;
  margin: 0 0 8px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.topbar-title .sub { margin: 0; color: var(--muted); font-size: 13px; }
.topbar-right { display: flex; align-items: center; gap: 18px; flex: 0 0 auto; padding-top: 6px; }
/* 顶栏两件都是纯图标/纯文字，不套白底卡片（与效果图一致） */
.icon-btn { display: grid; place-items: center; color: #3f4a5c; cursor: default; }
.user-chip { display: flex; align-items: center; gap: 9px; font-size: 14px; color: #1f2937; }
.user-chip > svg { color: #8b95a6; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: #e9eafa; color: var(--accent);
  font-size: 13px; font-weight: 700;
}

.main { flex: 1; min-width: 0; padding: 18px 30px 60px; }

/* 兼容：万一某页仍在内容区写 <header class="page-head">，样式也不至于丢 */
.page-head { margin: 0 0 18px; }
.page-head h1 { font-size: 21px; margin: 0 0 6px; display: flex; align-items: center; gap: 10px; }
.page-head .sub { margin: 0; color: var(--muted); font-size: 13px; }
.id-tag { font-size: 12px; color: var(--muted); font-weight: 400; }

/* ③ 通用控件 */
.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow); margin-bottom: 16px;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.panel-head h2 { font-size: 15px; margin: 0; }

.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.tight { gap: 8px; flex-wrap: nowrap; }
.grow { flex: 1; min-width: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }

.field-label { display: block; font-size: 12.5px; color: var(--muted); margin: 14px 0 6px; }
.field-label:first-child { margin-top: 0; }
.count { float: right; font-size: 11.5px; color: var(--dim); }

.input {
  width: 100%; padding: 9px 12px; border: 1px solid #e4e8ef; border-radius: 8px;
  font: inherit; color: var(--text); background: #fff; transition: border-color .15s, box-shadow .15s;
}
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input::placeholder { color: #a9b2c1; }
textarea.input { resize: vertical; line-height: 1.65; }
.input.narrow { max-width: 160px; }
.input.lg { height: 50px; font-size: 14px; padding: 0 16px; }
.select {
  padding: 8px 10px; border: 1px solid #e4e8ef; border-radius: 8px; font: inherit; background: #fff;
}

.btn {
  padding: 9px 15px; border-radius: 8px; border: 1px solid #e4e8ef; background: #fff;
  color: var(--text); font: inherit; cursor: pointer; transition: .15s; white-space: nowrap;
}
.btn:hover { border-color: #cfd6e2; background: #fafbfd; }
.btn:disabled { opacity: .55; cursor: default; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 500; }
.btn.primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn.lg { height: 50px; padding: 0 24px; font-size: 14px; }
.btn.tiny { padding: 4px 10px; font-size: 12.5px; border-radius: 7px; }
.btn.danger { color: var(--fail); border-color: #fecaca; }
.btn.danger:hover { background: #fef2f2; }

.hint { color: var(--muted); font-size: 12.5px; margin: 8px 0 0; }
.hint-inline { margin-left: 10px; font-size: 12px; color: var(--dim); }
/* 行内复选框（如「重新采集一份」）：跟说明文字同一行，不另起一块 */
.inline-check { margin-left: 6px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.inline-check input { vertical-align: -2px; margin-right: 4px; }
.empty { color: var(--muted); text-align: center; padding: 26px 0; margin: 0; }
.hidden { display: none !important; }

.msg { margin: 12px 0 0; font-size: 13px; }
.msg:empty { display: none; }
.msg.ok { color: var(--ok); }
.msg.fail { color: var(--fail); background: #fef2f2; border: 1px solid #fecaca; padding: 10px 12px; border-radius: 9px; }
.msg.info { color: #475569; background: #f1f5f9; border: 1px solid #e2e8f0; padding: 10px 12px; border-radius: 9px; }

.badge {
  display: inline-block; font-size: 11.5px; padding: 2px 8px; border-radius: 999px;
  background: #f1f5f9; color: #475569; white-space: nowrap;
}
.badge.succeeded, .badge.listed { background: #ecfdf5; color: var(--ok); }
.badge.failed, .badge.blocked { background: #fef2f2; color: var(--fail); }
.badge.running, .badge.ready { background: var(--accent-soft); color: var(--accent); }
.badge.ok { background: #ecfdf5; color: var(--ok); }
.badge.muted { background: #f1f5f9; color: var(--muted); }
/* 图片库：类型徽标（重画=紫、原图=灰、自有=蓝），一眼分清能不能拿去上传 */
.badge.redraw { background: var(--accent-soft); color: var(--accent); }
.badge.orig { background: #f1f5f9; color: #64748b; }
.badge.upload { background: #e0f2fe; color: #0369a1; }

/* ④ 首页 */
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px 22px; box-shadow: var(--shadow);
}
.card-title { font-size: 16px; font-weight: 700; margin: 0 0 16px; }
.url-row { display: flex; gap: 12px; }
.url-row .input { flex: 1; min-width: 0; }
.example { margin: 12px 0 0; font-size: 13px; color: var(--dim); }

/* 平台行：图标 + 名称，中间用 › 串联（不是胶囊标签，照效果图） */
.platforms { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 22px; font-size: 13px; }
.plat-label { color: var(--dim); margin-right: 2px; }
.plat { display: inline-flex; align-items: center; gap: 6px; color: #4b5563; }
.plat.off { opacity: .65; }
.plat.off em { font-style: normal; font-size: 11px; color: var(--dim); margin-left: 2px; }
.plat-ico {
  width: 18px; height: 18px; border-radius: 5px;
  display: grid; place-items: center;
  font-size: 10px; font-weight: 700; color: #fff;
}
.plat-ico.wb { background: #cb11ab; }
.plat-ico.ozon { background: #005bff; }
.plat-sep { color: #c5cbd7; }
.plat-more { font-size: 12px; color: #b3bac6; margin-left: 4px; }

/* 采集选项行：跟主输入框用虚线分隔，视觉上不抢主操作 */
.opt-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line);
}
.opt-label { font-size: 12.5px; color: var(--muted); }
.opt-hint { font-size: 12px; color: var(--dim); }

.flow { margin-top: 30px; }
.flow-title { font-size: 18px; font-weight: 700; margin: 0 0 14px; }

/* 流程卡：四步在同一张白卡里，中间用「虚线 + 圆形箭头」连接 */
.flow-card {
  display: grid; grid-template-columns: 1fr 46px 1fr 46px 1fr 46px 1fr;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow);
}
.flow-step { min-width: 0; }
/* 图标：实心圆形 + 白色图标（每步一个主色） */
.step-ico {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  margin-bottom: 16px;
}
.step-num { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.flow-step h3 { font-size: 15px; margin: 0 0 8px; }
.flow-step p { margin: 0; font-size: 12.5px; line-height: 1.7; color: var(--muted); }

.s1 .step-ico { background: #4f7cf7; }
.s1 .step-num { color: #4f7cf7; }
.s2 .step-ico { background: #22c55e; }
.s2 .step-num { color: #16a34a; }
.s3 .step-ico { background: #7c3aed; }
.s3 .step-num { color: #7c3aed; }
.s4 .step-ico { background: #f59e0b; }
.s4 .step-num { color: #d97706; }

/* 连接件：一条虚线穿过格子，圆形箭头盖在中间（白底遮住虚线）。
   垂直位置对齐步骤图标中心（图标 40px → 中线 20px），不要沉到卡片中线。 */
.flow-conn { position: relative; display: grid; place-items: start center; }
.flow-conn::before {
  content: ""; position: absolute; left: 0; right: 0; top: 20px;
  border-top: 1px dashed #dfe4ec;
}
.flow-bubble {
  position: relative; margin-top: 7px;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; border: 1px solid #e2e7ef; color: #b9c1cf;
}

/* 底部数据条：只靠一条上分隔线与内容区隔开，不再套一张白卡 */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-top: 28px; padding: 22px 4px 0;
  border-top: 1px solid var(--line);
}
.stat { display: flex; align-items: center; gap: 12px; padding: 0 6px; }
.stat-ico {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px;
  display: grid; place-items: center;
}
.stat-ico.indigo { background: #eef0fe; color: #4f46e5; }
.stat-ico.green { background: #eafaf0; color: #16a34a; }
.stat-ico.red { background: #fdeef0; color: #dc2626; }
.stat-ico.amber { background: #fef6e7; color: #d97706; }
.stat-text { min-width: 0; }
.stat-label { display: block; font-size: 12px; color: #8a93a5; }
.stat-value { font-size: 19px; font-weight: 700; line-height: 1.3; color: var(--text); }
.stat-value small { font-size: 11.5px; font-weight: 400; color: var(--dim); margin-left: 6px; }

/* ⑤ 草稿核对页 */
.split { display: grid; grid-template-columns: minmax(340px, 1fr) minmax(420px, 1.1fr); gap: 16px; align-items: start; }

/* 卡片最小 172px：再窄两个按钮（重画这张 / 存入图片库）会折成两行，整排字幕高低不齐；
   再宽则左侧面板放不下 3 列，1000px 出头的屏幕会掉成 2 列。 */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); gap: 12px; }
.shot { margin: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fafafa; }
.shot .pair { display: grid; grid-template-columns: 1fr 1fr; }
.shot img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; background: #eef0f3; }
.shot img.new { border-left: 2px solid var(--accent); }
.shot .placeholder {
  display: grid; place-items: center; aspect-ratio: 3/4; padding: 6px; text-align: center;
  color: #9ca3af; font-size: 12px;
  background: repeating-linear-gradient(45deg, #f3f4f6, #f3f4f6 8px, #eceef1 8px, #eceef1 16px);
}
/* 序号一行、按钮一行：所有卡片等高，不会因为「已入库」比「存入图片库」短而高低不齐 */
.shot figcaption {
  display: flex; flex-direction: column; align-items: stretch; gap: 6px;
  padding: 7px 9px; font-size: 12.5px; color: var(--muted); background: #fff;
}
/* 图片可点开放大：鼠标变成放大镜，明确告诉用户「这里能点」（2026-11-23 用户要求） */
.shot img { cursor: zoom-in; }

/* 放大对比层：左原图 / 右重画图铺满视口，object-fit: contain 保证不裁切，
   用来逐处比对「商品本体是否一致、版式是否保留、人物陈设是否换新」 */
.zoom { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column;
        padding: 12px 16px 16px; background: #0f172a; }
.zoom-head { display: flex; align-items: center; justify-content: space-between; gap: 12px;
             margin-bottom: 10px; color: #e2e8f0; font-size: 13px; }
.zoom-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.zoom-body.single { grid-template-columns: 1fr; }
.zoom-col { margin: 0; display: flex; flex-direction: column; min-height: 0; }
.zoom-col figcaption { margin-bottom: 6px; color: #cbd5e1; font-size: 12.5px; }
.zoom-col img { flex: 1; min-height: 0; width: 100%; object-fit: contain;
                background: #0b1220; border-radius: 8px; }

/* 后台重画进度条：有任务时才显示，提示「不用在这儿等」 */
.redraw-bar {
  margin: 10px 0 0; padding: 9px 12px; border-radius: 8px; font-size: 12.5px;
  background: var(--accent-soft); color: var(--accent-deep); border: 1px solid #c7d2fe;
}

/* ⑥ 列表与时间线 */
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th, .tbl td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.tbl.list thead th { color: var(--muted); font-weight: 500; font-size: 12.5px; background: #fafbfc; }
.tbl.list thead th:first-child { border-radius: 8px 0 0 8px; }
.tbl.list thead th:last-child { border-radius: 0 8px 8px 0; }
.tbl.list tbody tr:hover { background: #fafbff; }
/* 详情表（键值对）第一列占 34%；**列表页不吃这条**，否则空的缩略图表头会被撑到三分之一宽 */
.tbl th { color: var(--muted); font-weight: 500; width: 34%; }
.tbl.list th { width: auto; }
/* 时间/编号列不许折行：表格挤压时「2026-11-22 22:06:17」会被拆成三行（2026-11-22 实测） */
.tbl td.nowrap, .tbl th.nowrap { white-space: nowrap; }
/* 多列表格（上架记录 / 我的商品）共用的间距口径（2026-11-23 用户要求「字段间距调整一下」）：
   .dense = 紧凑内边距与字号；.shrink = 按内容收紧，只有不标 .shrink 的「商品名称」吃剩余宽度。
   原因：表格 width:100% 时浏览器把富余宽度平摊给所有列，7 个字符的货号列也被撑到
   200px 以上，一行十几列看着到处是空隙、还不好横向对照。 */
.tbl.dense { font-size: 12.5px; }
.tbl.dense th, .tbl.dense td { padding: 7px 8px; }
/* ⚠️ 必须写成 th.shrink / td.shrink：写成 `.tbl.list .shrink` 时特异性低于上面那条
   `.tbl.list th { width: auto }`，表头的 width:1% 会被覆盖 → 表头列还是被平分撑开，
   与单元格宽度错位（2026-11-23 实测：改前「商品名称」表头比数据行右移了近 500px） */
.tbl.list th.shrink, .tbl.list td.shrink { width: 1%; white-space: nowrap; }
/* 长文本列（商品名称 / 商品）：单行省略，完整内容放 title 属性悬停看。
   760px 取值依据：两页这一列在 1920 窗口下分到 620–780px，取 760 让标题尽量完整显示、
   又不至于在列里留一大片空白；窗口更窄时表格横向滚动（.tbl-wrap 已开 overflow-x）。
   我的商品那一行有第二行小字（cell-sub），所以省略要分别加在 a 和小字上，不能整格 nowrap */
.tbl.dense td.name { max-width: 760px; overflow: hidden; }
.tbl.dense td.name > a { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbl.dense td.name .cell-sub { overflow: hidden; text-overflow: ellipsis; }
/* 货号同理收窄：老草稿里有 WB 自动生成的超长编码（0-1005009182377460-…-NB01，60+ 字符），
   不省略的话单列能吃掉 500px，把整张表挤到视口外（2026-11-23 实测） */
.tbl.dense td.vc { max-width: 130px; overflow: hidden; text-overflow: ellipsis; }
.dim { color: var(--muted); }

.attrs { margin-top: 16px; }
.attrs summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.attrs .tbl { margin-top: 10px; }
.code {
  background: #0f172a; color: #e2e8f0; padding: 14px; border-radius: 10px; overflow: auto;
  font-size: 12px; max-height: 360px;
}

.actionbar {
  position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 16px; margin-top: 8px; background: rgba(247, 248, 250, .92);
  backdrop-filter: blur(6px); border-top: 1px solid var(--line);
}
.actionbar .msg { margin: 0; }
/* 「上架前人工复审」开关：放在操作栏里，和「提交上架」挨着，一眼能看出当前是拦还是直接跑完 */
.gate { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); cursor: pointer; }
.gate input { width: 15px; height: 15px; margin: 0; }

.timeline { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.timeline li {
  display: flex; gap: 10px; align-items: baseline; padding: 7px 0; border-bottom: 1px dashed var(--line-soft);
}
.timeline.big li { padding: 10px 0; }
.timeline .st {
  font-size: 11px; padding: 1px 7px; border-radius: 999px; background: #f1f5f9; color: #475569; flex: 0 0 auto;
}
.timeline li.ok .st { background: #ecfdf5; color: var(--ok); }
.timeline li.fail .st { background: #fef2f2; color: var(--fail); }
.timeline li.skip .st { background: #fffbeb; color: var(--warn); }
.timeline .txt { color: var(--muted); }
.timeline time { margin-left: auto; color: var(--dim); font-size: 12px; }
.timeline li.fail .txt { color: var(--fail); }

.modal {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .45); display: grid; place-items: center; z-index: 50;
}
.modal-box {
  width: min(560px, 92vw); background: #fff; border-radius: 14px; padding: 20px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, .28); max-height: 80vh; overflow: auto;
}
.modal-box h3 { margin: 0 0 12px; font-size: 15px; }
.modal-foot { display: flex; justify-content: flex-end; margin-top: 14px; }
.dots::after { content: '…'; animation: blink 1.2s steps(4) infinite; }
@keyframes blink { 0%, 100% { opacity: .2 } 50% { opacity: 1 } }

/* 图片库：筛选 tab + 网格卡片 */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab {
  padding: 7px 13px; border-radius: 8px; font-size: 13px; color: var(--muted);
  text-decoration: none; border: 1px solid transparent;
}
.tab:hover { background: #f8fafc; text-decoration: none; }
.tab.on { background: var(--accent-soft); color: var(--accent); border-color: #c7d2fe; }
/* 按商品归组的区块：组头一行（标题 / 货号 / 上家 nmID / 计数 / 打开商品） */
.libgroup { margin-top: 22px; }
.libgroup:first-of-type { margin-top: 4px; }
.libgroup-head {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.libgroup-title { font-size: 15px; font-weight: 600; }
.libgroup-count { margin-left: auto; font-size: 12px; color: var(--dim); }
/* 表格里的第二行小字（如「素材 3 张 · 上架 7 次」） */
.cell-sub { font-size: 11px; color: var(--dim); margin-top: 3px; white-space: nowrap; }
/* 字段多的列表（我的商品 / 上架记录）横向可滚，窄屏时不把列挤压到折行 */
.tbl-wrap { overflow-x: auto; }
/* 我的商品的缩略图列：44px 方块，固定尺寸避免各行高度乱跳 */
.rowthumb {
  width: 44px; height: 44px; object-fit: cover; display: block;
  border-radius: 8px; border: 1px solid var(--line); background: #eef0f3;
}
.rowthumb.none {
  display: grid; place-items: center; font-size: 10.5px; color: var(--dim); background: #f8fafc;
}
.thumb-cell { width: 52px; }
/* 表格里当按钮用的行内文字（如「复制」nmID） */
.linkbtn {
  border: 0; background: none; padding: 0; margin-left: 4px; cursor: pointer;
  color: var(--accent); font-size: 11px; text-decoration: underline;
}
.linkbtn:hover { color: var(--accent-deep); }
/* 图片卡上的「被上架用 N 次」：说明这张图和上架记录的关系 */
.libuse { font-size: 11px; color: var(--accent); margin-top: 6px; }
.libuse.dim { color: var(--dim); }
.libgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.libcard {
  margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 11px;
  overflow: hidden; box-shadow: var(--shadow);
}
.libthumb img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; background: #eef0f3; }
.libcard figcaption { padding: 10px; }
.libmeta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 11.5px; color: var(--muted); }
.libtitle {
  font-size: 12.5px; margin-top: 7px; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.librow { display: flex; gap: 8px; align-items: center; margin-top: 9px; }

/* 窄屏：流程卡从横排改两列（连接件隐藏）；统计条改两列 */
@media (max-width: 1240px) {
  .flow-card { grid-template-columns: 1fr 1fr; gap: 22px 26px; }
  .flow-conn { display: none; }
  .stats { grid-template-columns: 1fr 1fr; gap: 18px 12px; }
}

@media (max-width: 1080px) {
  .split { grid-template-columns: 1fr; }
  .side { width: 72px; flex: 0 0 72px; padding: 18px 9px 12px; }
  .brand { justify-content: center; padding: 2px 0 22px; }
  .brand-text, .nav-label, .pill-new, .status-text { display: none; }
  .nav-item { justify-content: center; padding: 11px 0; }
  .status-card { justify-content: center; padding: 12px 0; }
  .topbar { padding: 22px 20px 4px; }
  .main { padding: 16px 20px 50px; }
}

@media (max-width: 720px) {
  .flow-card { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .url-row { flex-direction: column; }
  .topbar-right { display: none; }
}
