:root {
  --bg: #f4f6f9;
  --panel: #ffffff;
  --ink: #1f2733;
  --muted: #7a869a;
  --line: #e3e8ef;
  --primary: #2f6fed;
  --primary-d: #2257c4;
  --designing: #8a94a6;
  --progress: #2f6fed;
  --done: #2fae66;
  --cancel: #e0594f;
  --warn: #f0a020;
  --paused: #8b5cf6;
  --shadow: 0 1px 3px rgba(20,30,50,.08), 0 6px 18px rgba(20,30,50,.05);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
}

/* Topbar */
.topbar {
  display: flex; align-items: center; gap: 24px;
  height: 56px; padding: 0 22px;
  background: #fff; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
  box-shadow: var(--shadow);
}
.brand { font-weight: 700; font-size: 17px; }
.brand .ver { font-size: 11px; color: #fff; background: var(--primary); padding: 1px 6px; border-radius: 8px; margin-left: 4px; }
.topnav { display: flex; gap: 4px; flex: 1; }
.topnav a {
  text-decoration: none; color: var(--muted); padding: 8px 12px;
  border-radius: 8px; font-weight: 500;
}
.topnav a:hover { background: #eef3ff; color: var(--primary); }
.topnav a.active { background: #eaf1ff; color: var(--primary); }

/* 顶部"产品"悬停下拉：饰品 / 投资金 */
.nav-dropdown { position: relative; }
.nav-dropdown > .nav-drop-trigger { display: inline-block; }
.nav-dropdown > .nav-drop-trigger .caret { font-size: 10px; margin-left: 2px; opacity: .7; }
.nav-dropdown:hover > .nav-drop-trigger,
.nav-dropdown.active > .nav-drop-trigger { background: #eef3ff; color: var(--primary); }
.nav-dropdown.active > .nav-drop-trigger { background: #eaf1ff; }
.nav-drop-menu {
  display: none;
  position: absolute; top: calc(100% + 4px); left: 0;
  min-width: 120px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 8px; box-shadow: var(--shadow);
  padding: 4px 0; z-index: 50;
}
.nav-drop-menu a {
  display: block; padding: 8px 14px;
  color: var(--text); text-decoration: none;
  font-weight: 500; border-radius: 0;
}
.nav-drop-menu a:hover { background: #eef3ff; color: var(--primary); }
.nav-dropdown:hover > .nav-drop-menu { display: block; }
/* 移动端（窄屏）下拉始终展示，且触发器免 hover 也能用 */
@media (max-width: 720px) {
  .nav-drop-menu { position: static; box-shadow: none; border: none; padding: 0 0 0 12px; background: transparent; }
  .nav-drop-menu a { padding: 4px 12px; }
  .nav-dropdown:hover > .nav-drop-menu { display: block; }
  .nav-dropdown > .nav-drop-trigger .caret { display: none; }
}
.badge {
  background: var(--cancel); color: #fff; font-size: 11px;
  border-radius: 10px; padding: 0 6px; margin-left: 4px;
}
.userbox { display: flex; align-items: center; gap: 12px; }
.uname { color: var(--muted); }
.role-tag-readonly {
  display: inline-block; margin-left: 6px; padding: 1px 7px;
  font-size: 11px; line-height: 1.5; border-radius: 999px;
  background: #eef2f7; color: #5b6b7b; border: 1px solid #d7dee7;
  vertical-align: middle;
}
.btn-logout { color: var(--muted); text-decoration: none; font-size: 13px; }
.btn-logout:hover { color: var(--cancel); }

/* 用户菜单下拉 */
.user-menu { position: relative; }
.user-menu-trigger {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 10px; border-radius: 8px; cursor: pointer;
  list-style: none; color: var(--muted); font-size: 13px;
  user-select: none;
}
.user-menu-trigger::-webkit-details-marker { display: none; }
.user-menu-trigger:hover { background: #eef3ff; color: var(--primary); }
.user-menu[open] .user-menu-trigger { background: #eef3ff; color: var(--primary); }
.user-menu-caret { font-size: 10px; opacity: .7; transition: transform .15s; }
.user-menu[open] .user-menu-caret { transform: rotate(180deg); }
.user-menu-list {
  position: absolute; right: 0; top: calc(100% + 6px);
  list-style: none; margin: 0; padding: 6px;
  min-width: 160px; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; box-shadow: 0 8px 24px rgba(15,23,42,.12);
  z-index: 50;
}
.user-menu-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 6px;
  color: var(--ink); text-decoration: none; font-size: 13px;
}
.user-menu-item:hover { background: #eef3ff; color: var(--primary); }
.user-menu-item.active { background: #eaf1ff; color: var(--primary); font-weight: 600; }
.user-menu-ico { width: 16px; text-align: center; opacity: .8; }
.user-menu-logout { color: var(--cancel); }
.user-menu-logout:hover { background: #fdecea; color: #b91c1c; }

.container { max-width: 960px; margin: 22px auto; padding: 0 18px; }
.footer { text-align: center; color: var(--muted); font-size: 12px; padding: 28px 0 18px; }
.foot-access { font-size: 12px; color: #64748b; margin-top: 4px; }
.foot-access a { color: #2563eb; text-decoration: none; }
.foot-access a:hover { text-decoration: underline; }
.beian-link { font-size: 12px; color: #64748b; text-decoration: none; }
.beian-link:hover { text-decoration: underline; }
/* 访问地址页 */
.access-wrap { max-width: 760px; margin: 24px auto; padding: 0 16px; }
.access-wrap h2 { margin-bottom: 6px; }
.access-wrap .muted { color: #64748b; font-size: 13px; }
.access-card { border: 1px solid #e2e8f0; border-radius: 10px; padding: 16px 18px; margin: 16px 0; background: #fff; }
.access-card h3 { margin: 0 0 8px; font-size: 15px; }
.access-card .url { font-size: 17px; font-weight: 600; margin: 4px 0 10px; }
.access-card .url a { color: #2563eb; text-decoration: none; word-break: break-all; }
.access-card .qr { width: 200px; max-width: 100%; }
.access-card .qr svg { width: 200px; height: 200px; display: block; }
.access-wrap .note { color: #b45309; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 10px 12px; font-size: 13px; }
.access-card-public { border-color: #16a34a; background: #f0fdf4; }
.access-card-public h3 { color: #15803d; }

/* Page */
.page-title { font-size: 20px; margin: 0 0 14px; }
.page-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.page-head-actions { display: flex; gap: 8px; align-items: center; }
.muted { color: var(--muted); }

/* 最终商品名称（成品取名完成后展示，与原产品名称区隔） */
.final-name { color: #0e7490; font-weight: 600; font-size: 13px; }
.kv td.final-name { font-size: 14px; }
.table td .final-name { font-size: 12px; font-weight: 500; margin-top: 2px; letter-spacing: 0.2px; }
.craft-name { color: #b8860b; font-weight: 600; font-size: 13px; }
.table td .craft-name { font-size: 12px; font-weight: 500; margin-top: 2px; letter-spacing: 0.2px; }

.req { color: #e23d3d; margin-left: 2px; font-weight: 700; }
.warn-tip { color: #c47700; background: #fff5e0; border: 1px solid #ffe2a8; border-radius: 8px; padding: 7px 10px; font-size: 13px; margin: 10px 0 0; }

/* 导出弹窗 */
.modal-mask { position: fixed; inset: 0; background: rgba(15,23,42,.45); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.modal-mask[hidden] { display: none; }
.modal { background: var(--panel); border-radius: 14px; box-shadow: 0 20px 60px rgba(15,23,42,.25); width: 420px; max-width: 92vw; padding: 18px 20px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.modal-head h3 { margin: 0; font-size: 16px; }
.modal-x { border: none; background: transparent; font-size: 16px; cursor: pointer; color: var(--muted); }
.modal-x:hover { color: var(--ink); }
.col-list { list-style: none; margin: 6px 0 12px; padding: 0; max-height: 320px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.col-item { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-bottom: 1px solid var(--line); cursor: pointer; }
.col-item:last-child { border-bottom: none; }
.col-item.on { background: #f4f8ff; }
.col-item.active { outline: 2px solid var(--primary); outline-offset: -2px; }
.col-item span { font-size: 14px; }
.modal-actions { display: flex; gap: 8px; align-items: center; }

.tag { font-size: 12px; background: #eef1f6; color: var(--muted); padding: 2px 8px; border-radius: 6px; margin-left: 6px; }
/* 渠道 chips 多选：可关闭标签 */
.channel-chip { display: inline-flex; align-items: center; gap: 4px; background: #eaf1ff; color: var(--progress); border: 1px solid #c8dafd; padding: 3px 4px 3px 10px; border-radius: 14px; font-size: 13px; margin: 2px 4px 2px 0; line-height: 1.2; }
.channel-chip .chip-x { border: none; background: transparent; color: #6b7a90; cursor: pointer; font-size: 16px; line-height: 1; padding: 0 6px; border-radius: 50%; }
.channel-chip .chip-x:hover { background: #d8e3f5; color: #b91c1c; }
.tag-designing { background: #eef1f6; color: var(--designing); }
.tag-in_progress { background: #eaf1ff; color: var(--progress); }
.tag-completed { background: #e7f7ee; color: var(--done); }
.tag-cancelled { background: #fdecea; color: var(--cancel); }
.tag-paused { background: #f1ecfd; color: var(--paused); }

/* Panels */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-bottom: 16px; box-shadow: var(--shadow); }
.panel h3 { margin: 0 0 12px; font-size: 15px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.panel-head h3 { margin: 0; }
.panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel-grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.detail-grid { display: grid; grid-template-columns: 320px 1fr; gap: 16px; align-items: start; }
@media (max-width: 880px) { .panel-grid, .detail-grid { grid-template-columns: 1fr; } }

/* 用户列表：操作列窄列，每个控件一行一个（约 100px） */
.users-table th, .users-table td { vertical-align: top; }
.users-table .ops-col { width: 100px; }
.users-table .ops-cell { white-space: nowrap; min-width: 240px; }
.users-table .ops-cell .row { display: block; margin-bottom: 4px; }
.users-table .ops-cell .row-flex { display: flex; align-items: center; gap: 6px; }
.users-table .ops-cell .ops-row { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.users-table .ops-cell .role-tag { display: block; font-size: 12px; color: var(--primary); font-weight: 600; margin-bottom: 4px; }
.users-table .ops-cell input[type="text"] { width: 80px; box-sizing: border-box; font-size: 12px; padding: 3px 6px; }
.users-table .ops-cell .chk { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; }
.users-table .ops-cell .btn { font-size: 12px; padding: 3px 8px; }
.users-table .ops-cell form { display: block; }
.users-table .extra-roles-cell { min-width: 180px; max-width: 260px; }
/* 角色列：每个角色独占一行（垂直排列），主角色高亮 */
.users-table .role-cell { min-width: 140px; line-height: 1.7; }
.users-table .role-cell .role-tag { display: block; padding: 2px 10px; margin: 0 0 4px 0; border-radius: 10px; background: #eef2ff; color: #4b5fc1; font-size: 12px; white-space: nowrap; width: max-content; }
.users-table .role-cell .role-tag.main { background: var(--primary); color: #fff; font-weight: 600; }

/* 通用角色/分类标签（不只在用户列表） */
.role-tag {
  display: inline-block;
  padding: 2px 10px;
  margin: 0 4px 4px 0;
  border-radius: 10px;
  background: #eef2ff;
  color: #4b5fc1;
  font-size: 12px;
  white-space: nowrap;
}
.role-tag.main { background: var(--primary); color: #fff; font-weight: 600; }

/* 渠道管理嵌套面板 */
.category-panel {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 12px 0;
}
.category-head { align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.category-head .category-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}
.category-head .category-title form { margin: 0; }
.channels-table th, .channels-table td { vertical-align: middle; }
.channels-table .inline-form { gap: 4px; flex-wrap: nowrap; }
.channels-table .inline-form input,
.channels-table .inline-form select { width: auto; }
.move-cat-select { width: 116px; max-width: 100%; font-size: 13px; }
/* 渠道大类颜色选择器 */
.cat-color-form { display: inline-flex; align-items: center; gap: 4px; }
.cat-color-input {
  width: 28px; height: 28px; padding: 0; border: 1px solid var(--line);
  border-radius: 50%; background: none; cursor: pointer; overflow: hidden;
}
.cat-color-input::-webkit-color-swatch-wrapper { padding: 0; }
.cat-color-input::-webkit-color-swatch { border: none; border-radius: 50%; }
.cat-color-input::-moz-color-swatch { border: none; border-radius: 50%; }
/* 可点击色块（大类颜色选择器） */
.color-pick {
  position: relative;
  display: inline-block;
  cursor: pointer;
}
.color-pick-swatch {
  display: inline-block;
  width: 32px; height: 32px;
  border: 2px solid #cbd5e1;
  border-radius: 6px;
  background: #e5e7eb;
  vertical-align: middle;
}
.color-pick input[type="color"] {
  position: absolute;
  opacity: 0;
  width: 100%; height: 100%;
  top: 0; left: 0;
  cursor: pointer;
}
.color-pick-sm .color-pick-swatch {
  width: 24px; height: 24px;
  border-radius: 50%;
}
.cat-hex-input {
  width: 88px;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 13px;
  padding: 4px 6px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: #fafafa;
}
.cat-hex-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px #eaf1ff;
}
@media (max-width: 768px) {
  .category-head { flex-direction: column; align-items: flex-start; }
  .table-scroll .channels-table.table { table-layout: fixed; width: 100%; min-width: 620px; }
  .channels-table th, .channels-table td { font-size: 12px; padding: 6px 4px; }
  .channels-table th:nth-child(3), .channels-table td:nth-child(3) { width: 160px; }
  .channels-table th:nth-child(4), .channels-table td:nth-child(4) { width: 78px; }
  .channels-table th:nth-child(5), .channels-table td:nth-child(5) { width: 78px; }
  .channels-table th:nth-child(6), .channels-table td:nth-child(6) { width: 68px; }
  .channels-table .move-cat-select { width: 118px; font-size: 11px; flex-shrink: 0; }
  .channels-table .inline-form .btn { font-size: 11px; padding: 3px 7px; flex-shrink: 0; }
  /* 用户管理页手机端：保持三列紧凑布局，去掉卡片式间隔 */
  .users-table { table-layout: fixed; width: 100%; font-size: 12px; }
  .users-table thead { display: table-header-group; }
  .users-table th, .users-table td { padding: 5px 3px; }
  .users-table tr { display: table-row; border: none; border-radius: 0; padding: 0; margin: 0; }
  .users-table td { display: table-cell; border-bottom: 1px solid var(--line); vertical-align: top; }
  .users-table td::before { content: none; }
  .users-table th:nth-child(1), .users-table td:nth-child(1) { width: 20%; }
  .users-table th:nth-child(2), .users-table td:nth-child(2) { width: 42%; }
  .users-table th:nth-child(3), .users-table td:nth-child(3) { width: 38%; }
  .users-table .user-info-stack { font-size: 11px; gap: 0; }
  .users-table .role-cell { min-width: 0; line-height: 1.4; }
  .users-table .role-cell form { display: block; }
  .users-table .role-cell .role-tag { font-size: 11px; padding: 1px 5px; margin-bottom: 2px; }
  .users-table .add-extra-btn { font-size: 11px; padding: 2px 5px; margin-top: 2px; }
  .users-table .ops-col { width: auto; }
  .users-table .ops-cell { min-width: 0; white-space: normal; }
  .users-table .ops-cell .ops-row { display: flex; flex-direction: column; gap: 3px; margin-bottom: 3px; }
  .users-table .ops-cell input[type="text"] { width: 100%; max-width: 90px; font-size: 11px; padding: 2px 4px; }
  .users-table .ops-cell .btn { font-size: 11px; padding: 2px 5px; }
  .users-table .ops-cell .chk { font-size: 11px; }
}

/* Stats */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-bottom: 18px; }
@media (max-width: 880px) { .stat-grid { grid-template-columns: repeat(3, 1fr); } }
.stat-card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; text-align: center; box-shadow: var(--shadow); }
.stat-num { font-size: 28px; font-weight: 700; }
.stat-label { color: var(--muted); font-size: 12px; margin-top: 4px; }
.c-designing .stat-num { color: var(--designing); }
.c-progress .stat-num { color: var(--progress); }
.c-done .stat-num { color: var(--done); }
.c-cancel .stat-num { color: var(--cancel); }
.c-paused .stat-num { color: var(--paused); }
.c-todo .stat-num { color: var(--warn); }
a.stat-card { display: block; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s, border-color .15s; }
a.stat-card:hover { transform: translateY(-2px); border-color: var(--primary); box-shadow: 0 2px 6px rgba(20,30,50,.12), 0 10px 24px rgba(20,30,50,.08); }
a.stat-card:focus { outline: none; box-shadow: 0 0 0 3px #eaf1ff; }
.c-gold .stat-num { color: #a06900; }
.c-gold { background: linear-gradient(180deg, #fffaf0 0%, #fff5d9 100%); }
.c-jewelry .stat-num { color: #b1325f; }
.c-jewelry { background: linear-gradient(180deg, #fff7fb 0%, #ffe3ee 100%); }

/* 仪表盘统计概览：分组布局（按状态 / 按产品类型） */
.stat-overview {
  display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 18px;
  align-items: flex-start;
}
.stat-overview .stat-group {
  display: flex; flex-direction: column; gap: 8px;
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px 12px;
  background: #fafbfd;
}
.stat-overview .group-label {
  font-size: 12px; font-weight: 600; color: var(--primary);
  letter-spacing: .5px; padding-left: 4px;
}
.stat-overview .stat-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(110px, 1fr);
  gap: 10px;
}
.stat-overview .stat-group.status-group .stat-row { grid-auto-columns: minmax(105px, 1fr); }
.stat-overview .stat-group.type-group .stat-row { grid-auto-columns: minmax(120px, 1fr); }
.stat-overview .stat-group .stat-card { padding: 12px 8px; }
.stat-overview .stat-group .stat-num { font-size: 24px; }
.stat-overview .stat-group .stat-card.c-gold { background: linear-gradient(180deg, #fffaf0 0%, #fff5d9 100%); }
.stat-overview .stat-group .stat-card.c-jewelry { background: linear-gradient(180deg, #fff7fb 0%, #ffe3ee 100%); }
@media (max-width: 880px) {
  .stat-overview { flex-direction: column; }
  .stat-overview .stat-row { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); }
}

/* Bottleneck view row */
.bottleneck-row { cursor: default; }
.bottleneck-row:hover td { background: #f7faff; }
.row-link { color: inherit; text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.row-link:hover { color: var(--primary); }
.link-arrow { font-size: 12px; opacity: 0; transition: opacity .15s; color: var(--primary); }
.row-link:hover .link-arrow { opacity: 1; }
.bottleneck-row .pill-warn { background: var(--warn-bg, #fff5e0); color: var(--warn, #c47700); }

/* Filter chip */
.filter-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: #eaf1ff; color: #1d4ed8; border-radius: 14px;
  padding: 4px 10px; font-size: 13px; margin-left: 8px;
}
.filter-chip b { font-weight: 600; }
.chip-x { color: #1d4ed8; opacity: .6; text-decoration: none; font-size: 13px; }
.chip-x:hover { opacity: 1; }

/* Table */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--line); }
.table th { color: var(--muted); font-weight: 600; font-size: 12px; background: #fafbfd; }
.table th.sortable { padding: 0; }
.table th.sortable .sort-link { display: block; padding: 9px 10px; color: var(--muted); text-decoration: none; cursor: pointer; white-space: nowrap; }
.table th.sortable .sort-link:hover { color: var(--primary); background: #f1f4fb; }
.table th.sortable .sort-link.active { color: var(--primary); }
.table tr:hover td { background: #fafbff; }

/* 多值克重标签 */
.weight-cell { line-height: 1.6; }
.weight-tag { display: inline-block; padding: 1px 7px; margin: 0 4px 3px 0; border-radius: 10px;
  background: #eef2ff; color: #4b5fc1; font-size: 12px; font-weight: 600; }
.weight-tag .wt-note { font-style: normal; font-weight: 400; color: #7a86c8; margin-left: 3px; font-size: 11px; }

/* 编辑器：多值克重行 */
.weight-row { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.weight-row .weight-val { width: 120px; }
.weight-row .weight-gross { width: 100px; }
.weight-row .weight-note { flex: 1; min-width: 80px; }
.weight-row .w-del { padding: 3px 8px; }
.row-done td { color: var(--muted); text-decoration: line-through; text-decoration-color: #cdd5e0; }
.kv th { width: 90px; color: var(--muted); text-align: left; font-weight: 500; padding: 6px 8px; white-space: nowrap; }
.kv td { padding: 6px 8px; }

/* Pills */
.pill { font-size: 12px; padding: 2px 9px; border-radius: 20px; display: inline-block; }
.pill-pending { background: #eef1f6; color: var(--designing); }
.pill-in_progress { background: #eaf1ff; color: var(--progress); }
.pill-done { background: #e7f7ee; color: var(--done); }
.pill-cancel { background: #fdecea; color: var(--cancel); }
.pill-warn { background: #fef3e0; color: var(--warn); }
.pill-muted { background: #eef1f6; color: var(--muted); }
.recur-badge { display:inline-block; font-size:11px; padding:1px 8px; border-radius:10px; background:#f3e8ff; color:#7e22ce; }

/* Buttons */
.btn { display: inline-block; border: 1px solid transparent; border-radius: 8px; padding: 8px 14px; font-size: 13px; cursor: pointer; text-decoration: none; background: #eef1f6; color: var(--ink); }
.btn[hidden] { display: none; }
.btn:hover { filter: brightness(.97); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-d); }
.btn-danger { background: #fff; color: #b91c1c; border-color: #fecaca; }
.btn-danger:hover { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }
.panel-actions { display: inline-flex; gap: 6px; align-items: center; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--muted); }

/* ---------- 问题反馈板块 ---------- */
.fb-new textarea { border: 1px solid var(--line); border-radius: 8px; resize: vertical; font-family: inherit; }
.fb-new-foot { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.fb-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.fb-anon { font-weight: 600; color: var(--primary); }
.fb-manage { margin-left: auto; display: inline-flex; gap: 6px; }
.fb-content { white-space: pre-wrap; line-height: 1.6; margin: 4px 0 8px; }
.fb-imgs { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.fb-img { width: 110px; height: 110px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); cursor: zoom-in; }
.fb-replies { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 10px; }
.fb-replies-title { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.fb-reply { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; }
.fb-reply-head { display: flex; gap: 8px; align-items: center; margin-bottom: 4px; }
.fb-reply-author { font-weight: 600; font-size: 13px; }
.fb-reply-content { white-space: pre-wrap; line-height: 1.55; }
.fb-reply-form { margin-top: 8px; }
.fb-reply-form textarea { border: 1px solid var(--line); border-radius: 8px; resize: vertical; font-family: inherit; }
.fb-edit-img { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; }
.btn-cancel { background: #eef1f6; color: var(--ink); border-color: transparent; }
.btn-cancel:hover { background: #dde2eb; }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-block { width: 100%; padding: 10px; font-size: 15px; }

/* Forms */
label { display: block; font-size: 12px; color: var(--muted); margin: 10px 0 4px; }
input[type=text], input[type=password], select, textarea {
  width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 14px; font-family: inherit; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px #eaf1ff; }
.form-card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; max-width: 540px; box-shadow: var(--shadow); }
.form-actions { margin-top: 16px; display: flex; gap: 10px; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.inline-form input, .inline-form select { width: auto; }
.chk { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; margin-right: 10px; color: var(--ink); }
.chk input { width: auto; }
.form-row { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.form-row label { font-size: 12px; color: var(--muted); font-weight: 500; }
.gold-price-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px 16px; }
.price-mode-toggle { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 6px; }

/* Filter bar */
.filter-bar { display: flex; gap: 8px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; box-shadow: var(--shadow); }
.filter-bar input, .filter-bar select { width: auto; }
.gold-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: linear-gradient(135deg,#fff8e6,#fdf0cf); border: 1px solid #f0d48a; border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; box-shadow: var(--shadow); }
.gold-bar-label { font-size: 13px; font-weight: 600; color: #8a6d1f; }
.gold-tag { font-size: 13px; color: #6b551a; background: #fff; border: 1px solid #f0d48a; border-radius: 999px; padding: 3px 10px; }
.gold-tag b { color: #b8860b; }
.gold-bar-link { margin-left: auto; background: #b8860b; color: #fff; border-color: #b8860b; }
.gold-bar-link:hover { background: #9c720a; }

/* Flash */
.flash-wrap { margin-bottom: 12px; }
.flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 8px; font-size: 13px; }
.flash-success { background: #e7f7ee; color: #1f7a44; }
.flash-danger { background: #fdecea; color: #b23a2e; }
.flash-info { background: #eaf1ff; color: #2257c4; }

/* Login */
.login-wrap { display: flex; justify-content: center; align-items: center; min-height: 70vh; }
.login-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 32px 34px; width: 340px; box-shadow: var(--shadow); }
.login-card h1 { margin: 0 0 4px; font-size: 22px; }
.subtitle { color: var(--muted); font-size: 13px; margin: 0 0 18px; }
.login-card label { margin-top: 12px; }
.hint { margin-top: 16px; font-size: 12px; color: var(--muted); line-height: 1.6; }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 14px 0 0; }
.tl-item { position: relative; padding: 0 0 18px 26px; border-left: 2px solid var(--line); }
.tl-item:last-child { border-left-color: transparent; }
.tl-dot { position: absolute; left: -7px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--muted); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--line); }
.tl-done .tl-dot { background: var(--done); }
.tl-in_progress .tl-dot { background: var(--progress); }
.tl-pending .tl-dot { background: var(--designing); }
.tl-row { display: flex; align-items: center; gap: 10px; }
.tl-name { font-weight: 600; }
.tl-meta { font-size: 12px; color: var(--muted); margin: 4px 0 6px; }
.tl-actions { display: flex; gap: 8px; }

/* 父节点（渠道上线）：突出显示 + 子节点缩进 */
.tl-parent { border-left-color: var(--primary); }
.tl-parent > .tl-body { background: #f5f8ff; border: 1px solid #d6e0ff; border-radius: 8px; padding: 10px 12px; }
.tl-parent > .tl-body .tl-dot { background: var(--primary); box-shadow: 0 0 0 2px #d6e0ff; }
.tl-parent-progress { font-size: 12px; color: var(--primary); background: #eef4ff; padding: 2px 8px; border-radius: 10px; }
.tl-child { margin-left: 24px; border-left-style: dashed; border-left-color: #cbd5e1; }
.tl-child > .tl-body .tl-name { font-weight: 500; }
.tl-tree-indent { color: var(--muted); font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; margin-right: 4px; }
.tl-child-row td:first-child { padding-left: 28px; color: var(--muted); }
.tl-child-row td:nth-child(2) { color: var(--muted); }

/* Progress bar */
.progress-text { font-size: 13px; color: var(--muted); }
.progress-bar { height: 8px; background: #eef1f6; border-radius: 6px; overflow: hidden; margin-bottom: 4px; }
.progress-fill { height: 100%; background: var(--done); transition: width .3s; }

/* Images */
.img-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.img-grid img { width: 100px; height: 100px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); cursor: zoom-in; transition: transform .15s, box-shadow .15s; }
.img-grid img:hover { transform: scale(1.04); box-shadow: 0 4px 14px rgba(0,0,0,.15); }
/* 缩略图统一：100×100，点击放大 */
.thumb-100 { width: 100px; height: 100px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); cursor: zoom-in; transition: transform .15s, box-shadow .15s; }
.thumb-100:hover { transform: scale(1.04); box-shadow: 0 4px 14px rgba(0,0,0,.15); }
/* Lightbox 弹层 */
.lightbox-mask { position: fixed; inset: 0; background: rgba(15,23,42,.85); z-index: 9999; display: none; align-items: center; justify-content: center; padding: 20px; }
.lightbox-mask.open { display: flex; }
.lightbox-mask img { max-width: 96vw; max-height: 94vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.lightbox-mask .lightbox-close { position: absolute; top: 20px; right: 28px; color: #fff; font-size: 32px; cursor: pointer; background: rgba(0,0,0,.3); border: 0; width: 44px; height: 44px; border-radius: 50%; line-height: 1; }
.lightbox-mask .lightbox-close:hover { background: rgba(0,0,0,.6); }
.upload-form { display: flex; gap: 8px; align-items: center; }
.upload-form input[type=file] { width: auto; }
.link { color: var(--primary); text-decoration: none; margin-right: 8px; }

/* 上传 + 方框（点击 / 拖拽 多文件上传） */
.upload-zone-form { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.upload-zone {
  width: 96px; height: 96px;
  border: 2px dashed #c8d0e0; border-radius: 10px;
  background: #fafbfd; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: border-color .15s, background .15s;
  user-select: none;
}
.upload-zone:hover, .upload-zone:focus, .upload-zone.dragover { border-color: var(--primary); background: #eef4ff; outline: none; }
.upload-plus { font-size: 32px; line-height: 1; color: #94a3b8; font-weight: 300; }
.upload-zone:hover .upload-plus, .upload-zone.dragover .upload-plus { color: var(--primary); }
.upload-hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.upload-pending { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: #4b5563; max-width: 360px; }
.upload-pending[hidden] { display: none; }
.upload-pending .pending-item { background: #f1f5fb; padding: 2px 8px; border-radius: 4px; display: flex; gap: 6px; align-items: center; }
.upload-pending .pending-item .pending-size { color: var(--muted); font-size: 11px; }
.upload-pending .pending-item .pending-err { color: #d33; }
.upload-pending .pending-item .pending-status { margin-left: auto; font-size: 11px; }
.upload-pending .pending-item .pending-ok { color: #16a34a; font-weight: 600; }
.upload-pending .pending-item .pending-err { color: #d33; }
.upload-pending .pending-item .pending-retry { background: #fff; border: 1px solid var(--primary); color: var(--primary); font-size: 11px; padding: 1px 8px; border-radius: 3px; cursor: pointer; }
.upload-pending .pending-item .pending-retry:hover { background: var(--primary); color: #fff; }
.upload-submit { margin-top: 2px; }

/* 上传自动提交：toast 浮层 */
.upload-toast { position: fixed; top: 24px; left: 50%; transform: translateX(-50%) translateY(-20px); background: #1f2937; color: #fff; padding: 10px 18px; border-radius: 6px; font-size: 14px; z-index: 9999; opacity: 0; transition: opacity 0.2s, transform 0.2s; box-shadow: 0 4px 16px rgba(0,0,0,0.15); }
.upload-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.upload-toast-success { background: #16a34a; }
.upload-toast-error { background: #dc2626; }
.upload-toast-info { background: #2563eb; }

/* 图片/文件卡片：hover 显示删除按钮 */
.img-cell { position: relative; display: inline-block; }
.img-cell .img-delete {
  position: absolute; top: 4px; right: 4px;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(220, 38, 38, 0.92); color: #fff;
  border: none; font-size: 14px; line-height: 1; cursor: pointer;
  display: none; align-items: center; justify-content: center;
  padding: 0; font-weight: 700;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.img-cell:hover .img-delete { display: flex; }
.img-cell .img-delete:hover { background: #b91c1c; transform: scale(1.08); }
.img-cell .img-delete:disabled { opacity: 0.5; cursor: not-allowed; }

/* 图片丢失占位（DB 有记录但磁盘文件已丢失，例如换服务器未迁移 uploads） */
.img-missing {
  width: 110px;
  height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff7ed;
  border: 1px dashed #f59e0b;
  border-radius: 6px;
  color: #b45309;
  font-size: 12px;
  padding: 6px;
  gap: 4px;
  cursor: not-allowed;
}
.img-missing-icon { font-size: 22px; opacity: 0.7; }
.img-missing-text { font-weight: 600; }
.img-missing-name {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  opacity: 0.7;
}

/* 文件类型附件（doc/pdf/zip...） */
.file-cell { width: 96px; height: 96px; border: 1px solid var(--line); border-radius: 8px; display: flex; align-items: center; justify-content: center; background: #f6f8fc; }
.file-cell:hover { background: #eef4ff; }
.file-icon { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px; width: 100%; }
.file-ext { background: var(--primary); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 4px; text-transform: uppercase; font-weight: 600; }
.file-name { font-size: 10px; color: var(--muted); text-align: center; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 节点内"+"方框（紧凑） */
.tl-upload .upload-zone { width: 84px; height: 84px; }
.tl-upload .upload-plus { font-size: 26px; }
.link:hover { text-decoration: underline; }
.link-warn { color: #e67e22; }
.link-ghost { color: var(--muted); }
code { background: #f0f3f8; padding: 1px 5px; border-radius: 4px; font-size: 12px; }

/* 节点提交文字 / 图片 / 返修 */
.tl-note { background: #f6f8fc; border-left: 3px solid var(--primary); padding: 6px 10px; border-radius: 6px; margin: 6px 0; font-size: 13px; color: #d32f2f; white-space: pre-wrap; }
.tl-note-label { color: var(--muted); font-weight: 600; }
.tl-style-code { background: #fff8e6; border-left: 3px solid #e6a23c; padding: 6px 10px; border-radius: 6px; margin: 6px 0; font-size: 13px; color: #5b3e1a; }
.tl-style-code-label { color: #8a6d3b; font-weight: 600; margin-right: 4px; }
.tl-style-code code { background: #fff3d6; padding: 2px 8px; border-radius: 4px; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; color: #7a5b1f; font-size: 13px; }
.tl-rework .tl-dot { background: #e67e22; }
.pill-rework { background: #fdebd0; color: #b9530a; border: 1px solid #f5cfa0; }
.adv-form { display: flex; flex-direction: column; gap: 6px; align-items: stretch; width: 100%; max-width: 420px; }
.adv-input, .adv-note { width: 100%; font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; }
.adv-note { min-height: 32px; height: 32px; resize: none; line-height: 1.4; }
.adv-link { border-color: #c5d9f1; background: #f6faff; }
.adv-link::placeholder { color: #4a78b8; }
.adv-file { width: auto; }
.adv-buttons { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.adv-buttons .btn { margin: 0; }

/* ===== 共享视频面板（一次上传，多产品共用） ===== */
.shared-video-panel { background: #f3f7ff; border: 1px solid #d6e4ff; border-radius: 10px; padding: 12px 14px; margin: 10px 0; }
.svp-head { font-weight: 700; color: #2b5fa8; margin-bottom: 8px; font-size: 13px; }
.sv-empty { font-size: 13px; color: var(--muted); }
.sv-item { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px; margin-bottom: 8px; }
.sv-item video { width: 220px; max-width: 50%; border-radius: 6px; background: #000; }
.sv-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.sv-name { font-weight: 600; font-size: 13px; color: #222; word-break: break-all; }
.sv-info { font-size: 12px; color: var(--muted); }
.sv-upload-form, .sv-link-form { background: #fff; border: 1px dashed #cfe0ff; border-radius: 8px; padding: 10px; margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.sv-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; }
.sv-row label { color: #444; font-weight: 600; }
.sv-title-input { flex: 1; min-width: 160px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; font: inherit; }
.sv-select { min-width: 200px; max-width: 100%; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; font: inherit; }
/* 修复：adv-form 是 column flex，按钮直接子元素会被 align-items: stretch 顶成 100% 宽；
   统一让表单内直接按钮左对齐（短版），与 adv-buttons 内的视觉一致 */
.adv-form > button.btn,
.adv-form > input[type="submit"].btn,
.adv-form > a.btn {
  align-self: flex-start;
  width: auto;
}
.rework-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.btn-warn { background: #e67e22; color: #fff; border: none; }
.btn-warn:hover { background: #d35400; }

/* 视频流程开关栏（详情页时间线之上） */
.video-toggle-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 10px 0 4px; padding: 8px 10px; background: #faf6ef; border: 1px dashed #e3c98f; border-radius: 8px; }
.video-hint { font-size: 12px; color: var(--muted); }

/* 列表"未上线渠道"列 */
.chan-pending { color: #b9530a; font-weight: 500; }
.chan-done { color: #2e8b57; font-weight: 600; }

/* 渠道分组标记 chip：default=中性灰、中国工艺=红框/红字、山姆=绿框/绿字 */
.chan-tag {
  display: inline-block;
  padding: 1px 6px;
  margin: 0 2px 2px 0;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.4;
  border: 1px solid transparent;
}
.chan-tag-df { background: #f3f4f6; color: #6b7280; border-color: #d1d5db; }
.chan-tag-cg { background: #fef2f2; color: #b91c1c; border-color: #ef4444; font-weight: 600; }
.chan-tag-sm { background: #f0fdf4; color: #166534; border-color: #16a34a; font-weight: 600; }
/* 渠道标签容器：固定两列网格，单个渠道内文本不换行 */
.chan-stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; align-items: center; }
.chan-stack .chan-tag { margin: 0; white-space: nowrap; text-align: center; overflow: hidden; text-overflow: ellipsis; padding: 1px 4px; }

/* 角色管理页 CRUD 表格样式 */
.role-actions { display: flex; gap: 6px; }
.role-add-form { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.role-add-form input, .role-add-form textarea { min-width: 120px; }
.roles-table code { word-break: break-all; }

/* 角色表移动端：行变块 + 标签前置，避免英文 role_key 撑列宽 */
@media (max-width: 768px) {
  .roles-table thead { display: none; }
  .roles-table tr { display: block; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; }
  .roles-table td { display: block; padding: 4px 0; border: none; word-break: break-word; }
  .roles-table td::before { content: attr(data-label); color: var(--muted); font-size: 11px; margin-right: 6px; }
  .roles-table td:last-child { white-space: normal; }
  .roles-table td:last-child form { display: block; margin: 4px 0; }
  .roles-table td:last-child input[type="text"] { width: 100%; box-sizing: border-box; }
}

/* 用户管理页：多选角色 */
.user-roles-list { display: flex; flex-wrap: wrap; gap: 4px; max-width: 320px; }
.user-roles-list label { display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 12px; cursor: pointer; }
.user-roles-list label.on { background: #dbeafe; border-color: #3b82f6; color: #1e40af; }
.user-roles-list input[type=checkbox] { margin: 0; }

/* 流程看板：上一/下一节点导航 */
.board-prev-next { display: flex; gap: 8px; margin-top: 10px; font-size: 12px; flex-wrap: wrap; }
.board-prev-next .pn-link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 6px; background: #f3f4f6; color: #374151; text-decoration: none;
  border: 1px solid #e5e7eb;
}
.board-prev-next .pn-link:hover { background: #dbeafe; color: #1e40af; border-color: #3b82f6; }
.board-prev-next .pn-link.next { background: #ecfdf5; color: #047857; border-color: #6ee7b7; }
.board-prev-next .pn-link.next:hover { background: #d1fae5; }
.board-prev-next .pn-label { color: #6b7280; font-size: 11px; }
.pn-dropdown { position: relative; display: inline-block; }
.pn-dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0; z-index: 100;
  background: #fff; border: 1px solid #d1d5db; border-radius: 6px; min-width: 140px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08); padding: 4px 0;
}
.pn-dropdown:hover .pn-dropdown-menu, .pn-dropdown-menu:hover { display: block; }
.pn-dropdown-menu a { display: block; padding: 4px 12px; color: #374151; text-decoration: none; font-size: 12px; }
.pn-dropdown-menu a:hover { background: #f3f4f6; }

/* 流程看板 */
.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.board-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.board-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.board-name { font-weight: 700; }
.board-counts { font-size: 12px; display: flex; gap: 10px; }
.board-counts .c-done { color: var(--done); }
.board-counts .c-todo { color: var(--progress); }
.board-todo { list-style: none; padding: 0; margin: 6px 0 0; }
.board-todo li { padding: 5px 0; border-top: 1px dashed var(--line); font-size: 13px; }
.board-todo a { color: var(--primary); text-decoration: none; }
.board-todo a:hover { text-decoration: underline; }
.board-empty { color: var(--muted); font-size: 13px; padding: 6px 0; }
.seg { display: flex; gap: 8px; }

/* ---------- 产品列表：批量操作 ---------- */
.checkbox-cell { width: 32px; text-align: center; }
.checkbox-cell input[type="checkbox"] { cursor: pointer; }
.batch-bar {
  display: flex; flex-direction: column; align-items: stretch;
  gap: 8px;
  margin: 0 0 12px; padding: 10px 14px;
  background: #eaf1ff; border: 1px solid #c7d8f7;
  border-radius: 8px; box-shadow: var(--shadow);
  position: sticky; top: 64px; z-index: 10;
}
.batch-bar[hidden] { display: none; }
/* 未勾选任何产品时：背景变灰、计数文字变灰，按钮 disabled 已在 HTML 里加 */
.batch-bar.is-empty { background: #f5f7fb; border-color: #e2e6ee; box-shadow: none; }
.batch-bar.is-empty .batch-count b { color: var(--muted); }
.batch-bar.is-empty .batch-count { color: var(--muted); }
.batch-row {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap; width: 100%;
}
.batch-row + .batch-row {
  padding-top: 8px; border-top: 1px dashed #c7d8f7;
}
.batch-count { font-size: 14px; }
.batch-count b { color: var(--primary); font-weight: 700; }
.batch-sep { color: var(--muted); }
.batch-label { color: var(--muted); }
.batch-status {
  width: auto; max-width: 180px;
  padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px;
  background: #fff; font-size: 14px;
}
.batch-input {
  padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px;
  background: #fff; font-size: 14px;
}
/* 批量条内的渠道 chips */
.batch-chips {
  display: inline-flex; flex-wrap: wrap; align-items: center;
  min-width: 160px; max-width: 320px;
  padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px;
  background: #fff; min-height: 32px;
}
.batch-chips .batch-channel-empty { font-size: 13px; }
.batch-channel-chip {
  display: inline-flex; align-items: center; gap: 2px;
  background: #eaf1ff; color: var(--progress);
  border: 1px solid #c8dafd; padding: 2px 4px 2px 8px;
  border-radius: 12px; font-size: 12px; margin: 1px 3px 1px 0;
}
.batch-channel-chip .bcc-x {
  border: none; background: transparent; color: #6b7a90;
  cursor: pointer; font-size: 14px; line-height: 1; padding: 0 4px;
}
.batch-channel-chip .bcc-x:hover { color: #b91c1c; }
#products-table tr.row-checked { background: #f5f9ff; }
#check-all { cursor: pointer; }
/* 桌面端产品列表：缩略图 100×100，点击放大 */
#products-table .img-cell { width: 110px; min-width: 110px; text-align: center; vertical-align: middle; }
#products-table .img-cell img { width: 100px; height: 100px; max-width: 100px; max-height: 100px;
  object-fit: cover; border-radius: 6px; border: 1px solid #eee;
  cursor: zoom-in; transition: transform .15s, box-shadow .15s; display: inline-block; }
#products-table .img-cell img:hover { transform: scale(1.06); box-shadow: 0 4px 12px rgba(0,0,0,.12); }
/* 无图占位符：与有图缩略图同高（100×100），列表/详情页统一 */
#products-table .img-placeholder { display: inline-flex; align-items: center; justify-content: center; min-width: 100px; width: 100px; height: 100px; padding: 0 8px; font-size: 12px; color: #aaa; background: #f5f5f5; border: 1px dashed #d0d0d0; border-radius: 6px; }
/* 操作列：固定一行两个词的网格排布（2026-10-29 定案），避免「完成」等词被拆行 */
#products-table .ops-cell {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 5px 16px;
  align-content: start;
}
#products-table .ops-cell .link { margin-right: 0; white-space: nowrap; }
/* 产品详情页：图片资料上传框/无图占位符均与缩略图同高（100px） */
.upload-zone-product { width: 100px; height: 100px; }
.product-images-empty { display: inline-flex; align-items: center; justify-content: center; width: 100px; height: 100px; padding: 0 8px; font-size: 12px; color: #aaa; background: #f5f5f5; border: 1px dashed #d0d0d0; border-radius: 6px; }

/* 编辑页「产品图片」缩略图：全局 96×96（原来只写在手机端 media query 里，桌面端显示原图），点击新窗口看原图 */
.pf-images { margin: 12px 0 16px; padding: 12px; border: 1px dashed #d0d0d0; border-radius: 6px; background: #fafbfc; }
.pf-images-title { font-weight: 600; margin-bottom: 8px; }
.pf-images-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.pf-images-grid .pf-img { position: relative; width: 96px; height: 96px; border: 1px solid #eee; border-radius: 4px; overflow: hidden; background: #fff; }
.pf-images-grid .pf-img img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; transition: transform .15s, box-shadow .15s; }
.pf-images-grid .pf-img img:hover { transform: scale(1.04); box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.pf-images-grid .pf-img .pf-img-del { position: absolute; top: 2px; right: 2px; width: 22px; height: 22px; line-height: 20px; text-align: center; border: 0; border-radius: 11px; background: rgba(0,0,0,.6); color: #fff; font-size: 14px; cursor: pointer; padding: 0; }
.pf-images-grid .pf-img .pf-img-del:hover { background: #c0392b; }
.pf-images-empty { display: inline-flex; align-items: center; justify-content: center; width: 96px; height: 96px; padding: 0 8px; font-size: 12px; color: #aaa; background: #f5f5f5; border: 1px dashed #d0d0d0; border-radius: 6px; }
.pf-upload-form { margin-top: 4px; }
.pf-new-hint { font-size: 12px; color: #888; }
.section-title { margin: 22px 0 12px; font-size: 16px; color: var(--ink); }
.dash-todos .panel-head { display: flex; align-items: center; justify-content: space-between; }
.dash-todos .pill { margin-left: 6px; }

/* 记录按钮：与"完成"按钮并排但用 ghost 灰色区分 */
.adv-record-form { margin-top: 6px; }
.adv-record-form .adv-note { min-height: 38px; font-size: 12px; }

/* ===== 手机端响应式（< 768px）===== */
@media (max-width: 768px) {
  /* topbar 折叠：品牌+汉堡+用户名 */
  .topbar { flex-wrap: wrap; height: auto; padding: 8px 12px; gap: 8px; }
  .topnav { order: 3; flex: 1 1 100%; flex-wrap: wrap; gap: 2px; }
  .topnav a { padding: 6px 8px; font-size: 13px; }
  .userbox { order: 2; }
  .brand { font-size: 15px; }
  .container { padding: 0 12px; margin: 12px auto; }
  .page-title { font-size: 18px; }
  .page-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .form-card { max-width: 100%; }

  /* dashboard 统计：水平一排，可滑动，节省垂直空间 */
  .stat-overview {
    flex-direction: row;            /* 覆盖 880px 的 column */
    flex-wrap: nowrap; overflow-x: auto;
    gap: 8px; padding: 4px 4px 8px;
    align-items: stretch;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .stat-overview .stat-group {
    flex: 0 0 auto; min-width: 0;
    padding: 6px 8px 8px;
    border-radius: 10px;
  }
  .stat-overview .stat-row {
    display: flex; flex-direction: row; flex-wrap: nowrap;
    gap: 6px;
  }
  .stat-overview .stat-group .stat-card {
    flex: 0 0 auto;
    min-width: 52px;
    padding: 6px 8px;
  }
  .stat-overview .group-label {
    padding-left: 0; font-size: 10px; margin-bottom: 2px;
    letter-spacing: .3px;
  }
  .stat-overview .stat-group .stat-num { font-size: 18px; line-height: 1.2; }
  .stat-overview .stat-group .stat-label { font-size: 11px; margin-top: 2px; }

  /* detail-grid / panel-grid 单列 */
  .panel-grid, .detail-grid, .panel-grid-2-1 { grid-template-columns: 1fr; }

  /* 表格：横向滚动容器 */
  .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table { font-size: 13px; }
  .table th, .table td { padding: 6px 8px; }

  /* filter-bar 换行 */
  .filter-bar { flex-wrap: wrap; }
  .filter-bar input, .filter-bar select { flex: 1 1 140px; min-width: 120px; }

  /* 批量条 */
  .batch-bar { top: 0; padding: 8px; }
  .batch-bar select, .batch-bar input.batch-input { flex: 1 1 140px; min-width: 120px; max-width: none; }
  .batch-bar .batch-row-actions { justify-content: stretch; }
  .batch-bar .batch-row-actions #batch-remark { flex: 1 1 140px; }

  /* 节点进度 */
  .tl-item { flex-direction: column; gap: 6px; }
  .tl-body { width: 100%; }
  .adv-form, .adv-record-form { max-width: 100%; }
  .upload-zone { padding: 10px; }

  /* 用户列表响应式在 .users-table 内已定义 */
}

/* ===== 粘贴图片 toast 提示 ===== */
.paste-toast {
  position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%) translateY(20px);
  padding: 10px 18px; border-radius: 8px; font-size: 14px; font-weight: 500;
  background: #2c3e50; color: #fff; box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  z-index: 9999; opacity: 0; transition: opacity .25s, transform .25s;
  pointer-events: none;
}
.paste-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.paste-toast-success { background: #1f9d55; }
.paste-toast-error   { background: #c0392b; }
.paste-toast-info    { background: #2c3e50; }

/* ===== 渠道多选组件 channel-picker ===== */
.channel-picker { position: relative; display: inline-block; vertical-align: middle; }
.cp-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border: 1px solid #c8dafd; border-radius: 8px;
  background: #f3f7ff; color: #1f3a5f; cursor: pointer; font-size: 13px; line-height: 1.4;
}
.cp-trigger:hover { border-color: #8fb6ef; }
.cp-summary.is-empty { color: #8a98ad; font-weight: 400; }
.cp-caret { font-size: 10px; color: #6b7a90; }
.channel-picker.is-open .cp-trigger { border-color: #4a90e2; box-shadow: 0 0 0 2px rgba(74,144,226,.15); }

.cp-pop {
  position: absolute; z-index: 1000; top: calc(100% + 6px); left: 0;
  min-width: 320px; max-width: 420px; max-height: 340px; overflow: auto;
  background: #fff; border: 1px solid #d7e0ee; border-radius: 10px;
  box-shadow: 0 8px 28px rgba(30,50,80,.16); padding: 10px 12px;
}
.cp-groups { display: flex; flex-direction: column; gap: 10px; }
.cp-group-title { font-size: 12px; color: #5a6b82; font-weight: 600; margin: 2px 0 6px; }
.cp-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 10px; }
.cp-opt { display: flex; align-items: center; gap: 4px; font-size: 13px; color: #2b3a4d; cursor: pointer; }
.cp-opt input { margin: 0; transform: scale(1.25); cursor: pointer; }
/* picker 顶部提示 banner，告诉用户"勾复选框=批量填这些渠道" */
.cp-hint {
  background: #fff8e1; border: 1px solid #f5d680; color: #6a4c00;
  padding: 6px 10px; border-radius: 6px; font-size: 12px; margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.cp-hint::before { content: "💡"; font-size: 14px; }
.cp-foot {
  display: flex; align-items: center; gap: 8px; margin-top: 12px;
  padding-top: 10px; border-top: 1px solid #eef2f7; flex-wrap: wrap;
}
.cp-custom-input { flex: 1 1 140px; min-width: 120px; padding: 4px 8px; border: 1px solid #d2dbe8; border-radius: 6px; font-size: 13px; }
.cp-spacer { flex: 1 1 auto; }
/* 批量条里的渠道组件跟随条内尺寸 */
.batch-bar .channel-picker .cp-trigger { padding: 3px 9px; }
.batch-bar .channel-picker .cp-pop { min-width: 300px; }

/* 完成环节多选（节点选择器），视觉对齐渠道选择器 */
.node-picker { position: relative; display: inline-block; vertical-align: middle; }
.np-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px;
  background: #fff; color: #2b3a4d; cursor: pointer; font-size: 14px; line-height: 1.4;
}
.np-trigger:hover { border-color: #8fb6ef; }
.node-picker.is-open .np-trigger { border-color: #4a90e2; box-shadow: 0 0 0 2px rgba(74,144,226,.15); }
.np-trigger.has-val { border-color: #4a90e2; color: #1f3a5f; font-weight: 600; }
.np-pop {
  position: absolute; z-index: 1000; top: calc(100% + 6px); left: 0;
  min-width: 300px; max-width: 460px; max-height: 360px; overflow: auto;
  background: #fff; border: 1px solid #d7e0ee; border-radius: 10px;
  box-shadow: 0 8px 28px rgba(30,50,80,.16); padding: 10px 12px;
}
.np-hint {
  background: #fff8e1; border: 1px solid #f5d680; color: #6a4c00;
  padding: 6px 10px; border-radius: 6px; font-size: 12px; margin-bottom: 8px;
}
.np-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 10px; }
.np-opt { display: flex; align-items: center; gap: 4px; font-size: 13px; color: #2b3a4d; cursor: pointer; }
.np-opt input { margin: 0; transform: scale(1.25); cursor: pointer; }
.np-foot { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #eef2f7; }
.np-spacer { flex: 1 1 auto; }
/* 批量条内的节点选择器跟随条内尺寸 */
.batch-bar .node-picker .np-trigger { padding: 5px 8px; }
.batch-bar .node-picker .np-pop { min-width: 300px; }

/* 渠道上线情况弹窗（点击「渠道上线」触发） */
.cl-mask {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(20,32,52,.42);
  display: flex; align-items: center; justify-content: center;
}
.cl-box {
  width: min(440px, 92vw); max-height: 80vh; overflow: auto;
  background: #fff; border-radius: 14px; box-shadow: 0 18px 50px rgba(20,32,52,.28);
  padding: 0; animation: cl-pop .14s ease-out;
}
@keyframes cl-pop { from { transform: translateY(8px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.cl-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid #eef2f7;
}
.cl-titles { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cl-prod { font-size: 15px; font-weight: 700; color: #1f2d44; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-title { font-size: 12px; font-weight: 500; color: #64748b; }
.cl-x {
  border: none; background: #f1f4f9; color: #5a6b82; cursor: pointer;
  width: 28px; height: 28px; border-radius: 8px; font-size: 18px; line-height: 1;
}
.cl-x:hover { background: #e3e9f2; }
.cl-body { padding: 14px 18px 18px; }
.cl-loading, .cl-err { color: #7a8aa0; font-size: 14px; text-align: center; padding: 18px 0; }
.cl-err { color: #d9480f; }
.cl-sec { margin-bottom: 14px; }
.cl-sec:last-child { margin-bottom: 0; }
.cl-sec-t { font-size: 13px; font-weight: 700; margin-bottom: 8px; padding-left: 9px; border-left: 4px solid; }
.cl-sec-t.on { color: #15803d; border-color: #22c55e; }
.cl-sec-t.off { color: #b45309; border-color: #f59e0b; }
.cl-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.cl-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; line-height: 1.4;
}
.cl-pill.on { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }
.cl-pill.off { background: #fff7ed; color: #b45309; border: 1px solid #fcd9a3; }
.cl-empty { font-size: 13px; color: #8a98ad; padding: 4px 0; }
.cl-all-done { color: #15803d; font-weight: 600; }
/* 可点击的「渠道上线」文字链接（待办/产品列表） */
.cl-link { color: #b45309; font-weight: 600; cursor: pointer; text-decoration: none; border-bottom: 1px dashed #f0b86a; }
.cl-link:hover { color: #92400e; border-bottom-style: solid; }

/* 可点击的环节记录文字链接（待办/产品列表，点击弹出本环节记录） */
.rec-link { color: #2563eb; font-weight: 600; cursor: pointer; text-decoration: none; border-bottom: 1px dashed #93b4f5; }
.rec-link:hover { color: #1d4ed8; border-bottom-style: solid; }
/* 列表暗红：环节有记录内容 / 渠道上线部分完成，需关注（覆盖 rec-link 蓝 / cl-link 橙） */
.attn-red { color: #9b1c1c !important; border-bottom-color: #e0a3a3 !important; }
.attn-red:hover { color: #7a1414 !important; border-bottom-color: #c98a8a !important; }

/* 环节记录弹窗（与渠道上线弹窗同框架，蓝色主调区分） */
.rec-mask {
  position: fixed; inset: 0; z-index: 2100;
  background: rgba(20,32,52,.42);
  display: flex; align-items: center; justify-content: center;
}
.rec-box {
  width: min(480px, 94vw); max-height: 84vh; overflow: auto;
  background: #fff; border-radius: 14px; box-shadow: 0 18px 50px rgba(20,32,52,.28);
  padding: 0; animation: cl-pop .14s ease-out;
}
.rec-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid #eef2f7;
}
.rec-title { font-size: 16px; font-weight: 700; color: #1f2d44; }
.rec-x {
  border: none; background: #f1f4f9; color: #5a6b82; cursor: pointer;
  width: 28px; height: 28px; border-radius: 8px; font-size: 18px; line-height: 1;
}
.rec-x:hover { background: #e3e9f2; }
.rec-body { padding: 14px 18px 18px; }
.rec-loading, .rec-err { color: #7a8aa0; font-size: 14px; text-align: center; padding: 18px 0; }
.rec-err { color: #d9480f; }
.rec-info { font-size: 13px; color: #5a6b82; margin-bottom: 12px; }
.rec-info b { color: #1f2d44; }
.rec-sec { margin-bottom: 14px; }
.rec-sec:last-child { margin-bottom: 0; }
/* 区块标题：按需求弱化（正常颜色/字重），让记录内容（红色）成为视觉重点 */
.rec-sec-t { font-size: 12px; font-weight: 400; color: #7a8aa0; margin-bottom: 8px; letter-spacing: .02em; }
/* 已记录文字：与流程详情页 .tl-note 一致标红，提示「有记录内容」 */
.rec-note {
  font-size: 14px; color: #d32f2f; line-height: 1.6; white-space: pre-wrap; word-break: break-word;
  background: #fdf4f4; border: 1px solid #f1d4d4; border-left: 3px solid #d32f2f; border-radius: 8px; padding: 10px 12px;
}
.rec-empty { font-size: 13px; color: #8a98ad; padding: 4px 0; }
.rec-files { display: flex; flex-direction: column; gap: 8px; }
.rec-file { display: flex; align-items: center; gap: 8px; }
.rec-thumb-wrap { display: inline-flex; }
.rec-thumb { width: 46px; height: 46px; object-fit: cover; border-radius: 6px; border: 1px solid #e6ecf5; }
.rec-doc { font-size: 22px; line-height: 1; }
.rec-fname { flex: 1; min-width: 0; font-size: 13px; color: #334155; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-del { color: #c0392b; font-size: 12px; white-space: nowrap; }
.rec-del:hover { text-decoration: underline; }
.rec-form { margin: 0; }
.rec-textarea {
  width: 100%; box-sizing: border-box; resize: vertical; font: inherit; font-size: 14px;
  border: 1px solid #d4dcea; border-radius: 8px; padding: 9px 11px; color: #243b53; background: #fff;
}
.rec-textarea:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.rec-upload { margin-top: 9px; }
.rec-file-label {
  display: inline-block; font-size: 13px; color: #334155; background: #f1f4f9;
  border: 1px dashed #c3cee0; border-radius: 8px; padding: 8px 12px; cursor: pointer;
}
.rec-file-label:hover { border-color: #2563eb; color: #1d4ed8; }
.rec-actions { display: flex; align-items: center; gap: 10px; margin-top: 11px; flex-wrap: wrap; }
.rec-hint { font-size: 12px; }
.rec-ro { font-size: 13px; background: #fff7ed; border: 1px solid #fcd9a3; color: #b45309; border-radius: 8px; padding: 9px 11px; }

/* 批量条底部动作行：备注 + 应用 + 取消 */
.batch-row-actions { gap: 8px; }
.batch-row-actions .batch-spacer { flex: 1 1 auto; }
.batch-row-actions #batch-remark { flex: 1 1 180px; min-width: 140px; max-width: 360px; }
.batch-inline-label {
  color: var(--muted); font-size: 13px; white-space: nowrap;
}

/* 节点名称单元格：中文一行 + 英文 key 一行 + 子流程标签单独排（手机端友好） */
.node-name-cell { display: flex; flex-direction: column; gap: 2px; line-height: 1.25; }
.node-cn { font-weight: 600; }
.node-key { color: var(--muted); font-size: 11px; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; }
.node-subtag {
  display: inline-block; align-self: flex-start;
  padding: 1px 6px; border-radius: 10px;
  background: #fef3c7; color: #92400e;
  font-size: 11px; font-weight: 600;
  white-space: nowrap;
}

/* 流程模板列表：手机端节点列宽度自适应 5 中文字宽 */
@media (max-width: 768px) {
  /* 节点表格在手机端节点列宽度≈ 90px（5 中文字），其余列变窄 */
  .table-scroll .table { table-layout: fixed; min-width: 0; }
  /* 只对节点名称等真正需要强制断字的列应用 break-all；其它 cell 走 normal，
     避免产品列表 ID/克重等数字被字符级断行（之前导致 "1.050" -> 1/./0/5/0 竖排） */
  .table-scroll .table th, .table-scroll .table td { word-break: normal; overflow-wrap: normal; }
  .table-scroll .table .node-name-cell,
  .table-scroll .table .key-col { word-break: break-all; overflow-wrap: anywhere; }
  /* 第1列 checkbox 38px；第2列 顺序 30px；第3列 节点 90px；其余自适应 */
  .table-scroll .table th:nth-child(1),
  .table-scroll .table td:nth-child(1) { width: 30px; }
  .table-scroll .table th:nth-child(2),
  .table-scroll .table td:nth-child(2) { width: 36px; text-align: center; }
  .table-scroll .table th:nth-child(3),
  .table-scroll .table td:nth-child(3) {
    width: 90px; max-width: 90px; min-width: 90px;
  }
  /* 第4列 负责角色 自适应 */
  .table-scroll .table th:nth-child(4),
  .table-scroll .table td:nth-child(4) { font-size: 11px; }
  /* 第5列 前置依赖 隐藏原 chip，缩短 */
  .table-scroll .table th:nth-child(5),
  .table-scroll .table td:nth-child(5) { font-size: 10px; }
  /* 第6列 渠道分组 自适应 */
  .node-name-cell { gap: 1px; }
  .node-key { font-size: 10px; word-break: break-all; }

  /* 产品列表：手机端压缩产品名列，加宽克重/计划上线，避免重叠 */
  #products-table { min-width: 480px; }
  #products-table .name-col,
  #products-table .name-cell {
    max-width: 70px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  #products-table .name-cell .final-name { display: none; }
  /* 克重(g) 列：移动端禁止字符级断行，每个克重 tag 独占一行可读 */
  /* 用 class 选择而非 nth-child：避免 checkbox 列存在/不存在时列号偏移 */
  #products-table th.weight-col,
  #products-table td.weight-cell { min-width: 110px; max-width: 140px;
    vertical-align: top; word-break: normal; overflow-wrap: normal; white-space: normal;
  }
  #products-table td.weight-cell .weight-cell-inner { display: flex; flex-direction: column; gap: 3px; }
  #products-table td.weight-cell .weight-tag { display: block; margin: 0;
    white-space: nowrap; word-break: keep-all; max-width: 100%;
    overflow: hidden; text-overflow: ellipsis;
  }
  #products-table .plan-col,
  #products-table .plan-cell { min-width: 110px; white-space: nowrap; }
  #products-table .ops-col,
  #products-table .ops-cell { min-width: 64px; white-space: nowrap; }
  /* 产品列表 - 图片缩略图列（位于产品名称之前） */
  #products-table .img-col,
  #products-table .img-cell { width: 68px; min-width: 68px; text-align: center; vertical-align: middle; }
  #products-table .img-cell img { max-width: 56px; max-height: 56px; width: auto; height: auto; object-fit: cover; border-radius: 4px; border: 1px solid #eee; display: inline-block; }
  #products-table .img-placeholder { display: inline-block; min-width: 48px; height: 36px; line-height: 36px; padding: 0 8px; font-size: 12px; color: #aaa; background: #f5f5f5; border-radius: 4px; }
  /* 编辑页图片管理区 */
  .pf-images { margin: 12px 0 16px; padding: 12px; border: 1px dashed #d0d0d0; border-radius: 6px; background: #fafbfc; }
  .pf-images-title { font-weight: 600; margin-bottom: 8px; }
  .pf-images-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
  .pf-images-grid .pf-img { position: relative; width: 96px; height: 96px; border: 1px solid #eee; border-radius: 4px; overflow: hidden; background: #fff; }
  .pf-images-grid .pf-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .pf-images-grid .pf-img .pf-img-del { position: absolute; top: 2px; right: 2px; width: 22px; height: 22px; line-height: 20px; text-align: center; border: 0; border-radius: 11px; background: rgba(0,0,0,.6); color: #fff; font-size: 14px; cursor: pointer; padding: 0; }
  .pf-images-grid .pf-img .pf-img-del:hover { background: #c0392b; }
  .pf-images-empty { color: #999; font-size: 13px; padding: 8px 0; }
  .pf-upload-form { display: flex; gap: 8px; align-items: center; }
  .pf-upload-form input[type=file] { flex: 1; }
  .pf-new-hint { color: #888; font-size: 13px; padding: 8px 0; }
}


