:root {
  --blue: #005bff;
  --blue-dark: #0049cc;
  --bg: #f5f7fa;
  --card: #ffffff;
  --text: #1a1d21;
  --text-2: #6b7280;
  --border: #e5e7eb;
  --green: #16a34a;
  --orange: #ea8c00;
  --red: #dc2626;
  --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
}

.hidden { display: none !important; }

/* ---------- 登录 ---------- */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: linear-gradient(135deg, #005bff 0%, #003ea8 55%, #002d7a 100%);
  position: relative;
  overflow: hidden;
}
.login-wrap::before,
.login-wrap::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.login-wrap::before {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(255,255,255,.10) 0%, rgba(255,255,255,0) 70%);
  top: -160px; right: -120px;
}
.login-wrap::after {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(255,255,255,.08) 0%, rgba(255,255,255,0) 70%);
  bottom: -140px; left: -100px;
}
.login-card {
  background: var(--card);
  border-radius: 20px;
  padding: 36px 32px 28px;
  width: 400px;
  max-width: 100%;
  box-shadow: 0 24px 64px rgba(0, 25, 70, .38), 0 2px 8px rgba(0, 25, 70, .18);
  position: relative;
  z-index: 1;
  animation: login-card-in .35s ease both;
}
@keyframes login-card-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.login-logo { display: flex; align-items: center; gap: 10px; }
.login-logo h1 { font-size: 24px; letter-spacing: .5px; }
.logo-dot {
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--blue); display: inline-block; flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(0, 91, 255, .12);
}
.logo-img { width: 30px; height: 30px; border-radius: 8px; object-fit: contain; flex-shrink: 0; }
.logo-img-lg { width: 40px; height: 40px; border-radius: 10px; }
.login-sub { color: var(--text-2); margin: 8px 0 22px; font-size: 13.5px; }
.login-tabs {
  display: flex; gap: 4px; padding: 4px; margin-bottom: 20px;
  background: #f1f3f7; border-radius: 10px;
}
.login-tab {
  flex: 1; padding: 9px 0; border: 0; background: transparent; cursor: pointer;
  font-size: 13.5px; color: var(--text-2); border-radius: 8px; font-family: inherit;
  transition: background .15s ease, color .15s ease;
  white-space: nowrap;
}
.login-tab:hover { color: var(--text); }
.login-tab.active {
  background: var(--card); color: var(--blue); font-weight: 600;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .12);
}
.login-form input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: 10px; font-size: 14px; margin-bottom: 14px; outline: none;
  font-family: inherit; box-sizing: border-box;
  background: #fafbfc;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.login-form input::placeholder { color: #9ca3af; }
.login-form input:focus {
  border-color: var(--blue); background: var(--card);
  box-shadow: 0 0 0 3px rgba(0, 91, 255, .12);
}
.login-form .btn-block {
  width: 100%; height: 46px; font-size: 15px; font-weight: 600;
  margin-top: 4px; letter-spacing: 4px;
  transition: transform .12s ease, box-shadow .12s ease, background .15s ease;
}
.login-form .btn-block:hover {
  background: var(--blue-dark);
  box-shadow: 0 6px 16px rgba(0, 91, 255, .30);
  transform: translateY(-1px);
}
.login-form .btn-block:active { transform: translateY(0); box-shadow: none; }
.code-row { display: flex; gap: 8px; margin-bottom: 14px; }
.code-row input { flex: 1; margin-bottom: 0; }
.code-row .btn { white-space: nowrap; padding: 0 14px; font-size: 13px; }
.captcha-row .captcha-img {
  height: 46px; width: 118px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--border); flex-shrink: 0; display: block;
  user-select: none;
}
.captcha-row .captcha-img:hover { border-color: var(--blue); }
/* 短信验证码行：输入框 + 获取按钮 */
.sms-row .btn-sms {
  white-space: nowrap; padding: 0 14px; font-size: 13px;
  background: #eef4ff; color: var(--blue); border: 1px solid #d8e4ff;
  border-radius: 10px; cursor: pointer; font-family: inherit;
}
.sms-row .btn-sms:hover { background: #e2ecff; }
.sms-row .btn-sms:disabled { opacity: .55; cursor: not-allowed; }
.btn-ghost {
  background: #eef4ff; color: var(--blue); border: 1px solid #d8e4ff;
  border-radius: 10px; cursor: pointer; font-family: inherit;
}
.btn-ghost:hover { background: #e2ecff; }
.btn-ghost:disabled { opacity: .55; cursor: not-allowed; }
.login-error {
  color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca;
  border-radius: 8px; padding: 8px 12px;
  margin-top: 14px; font-size: 13px; line-height: 1.5;
}
.login-tip {
  color: var(--text-2); font-size: 12px; margin-top: 18px; line-height: 1.6;
  padding-top: 14px; border-top: 1px solid #f0f2f5; text-align: center;
}
@media (max-width: 460px) {
  .login-wrap { padding: 16px 12px; align-items: flex-start; }
  .login-card { padding: 28px 22px 22px; border-radius: 16px; }
  .login-logo h1 { font-size: 20px; }
  .login-tab { font-size: 12.5px; }
}

/* ---------- 布局 ---------- */
.main { display: flex; min-height: 100vh; }
.sidebar {
  width: 220px; background: var(--card); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; padding: 20px 14px; position: sticky; top: 0; height: 100vh;
}
.sidebar-brand {
  display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px;
  padding: 4px 10px 20px;
}
.sidebar-brand .brand-txt { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.sidebar-brand .brand-txt b { font-size: 15px; font-weight: 700; }
.sidebar-brand .brand-txt em {
  font-style: normal; font-size: 10.5px; font-weight: 600; letter-spacing: .4px;
  color: var(--blue); background: #eef4ff; border: 1px solid #dbe7ff;
  border-radius: 5px; padding: 0 5px; margin-top: 2px; align-self: flex-start;
}
/* 菜单区可滚动：min-height:0 允许 flex 子项收缩，超出部分内部滚动，保证底部用户/退出按钮常驻可见 */
.nav {
  display: flex; flex-direction: column; gap: 4px; flex: 1;
  min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  padding: 2px 2px 8px; margin: 0 -2px;
  scrollbar-width: thin; scrollbar-color: #d3dbe8 transparent;
}
.nav::-webkit-scrollbar { width: 5px; }
.nav::-webkit-scrollbar-thumb { background: #d3dbe8; border-radius: 4px; }
.nav::-webkit-scrollbar-track { background: transparent; }
.nav-item {
  padding: 11px 14px; border-radius: 10px; cursor: pointer; color: var(--text-2);
  font-weight: 500; transition: all 0.15s;
}
.nav-item:hover { background: #f0f4ff; color: var(--text); }
.nav-item.active { background: #e8efff; color: var(--blue); font-weight: 600; }

/* 一级菜单分组（可折叠，含二级菜单） */
.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-parent { display: flex; align-items: center; justify-content: space-between; user-select: none; }
.nav-parent .nav-caret { font-size: 11px; color: #a8b3c4; transition: transform .2s; }
.nav-group.open > .nav-parent .nav-caret { transform: rotate(180deg); }
.nav-group.open > .nav-parent { color: var(--text); }
.nav-group.has-active > .nav-parent { color: var(--blue); font-weight: 600; background: #f2f6ff; }
.nav-sub-wrap {
  display: flex; flex-direction: column; gap: 2px;
  max-height: 0; overflow: hidden; transition: max-height .22s ease;
  margin-left: 14px; padding-left: 10px; border-left: 2px solid #e6ecf7;
}
.nav-group.open > .nav-sub-wrap { max-height: 240px; }
.nav-subitem { padding: 8px 12px; font-size: 13.5px; border-radius: 8px; color: var(--text-2); }
.nav-subitem:hover { background: #f0f4ff; color: var(--text); }
.nav-subitem.active { background: #e8efff; color: var(--blue); font-weight: 600; }
.sidebar-foot { padding-top: 12px; border-top: 1px solid var(--border); flex-shrink: 0; }
/* 侧边栏「浏览器插件」下载入口（醒目绿色） */
.side-plugin-btn {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 9px 12px; margin-bottom: 10px;
  background: linear-gradient(135deg, #e8f9ee 0%, #dcf5e6 100%);
  border: 1px solid #bfeacf; border-radius: 10px;
  font: inherit; color: var(--text); cursor: pointer; text-align: left;
  transition: border-color .15s, box-shadow .15s, transform .1s;
}
.side-plugin-btn:hover { border-color: #86d8a8; box-shadow: 0 2px 10px rgba(22,163,74,.16); }
.side-plugin-btn:active { transform: scale(.99); }
.side-plugin-btn .sp-ico { font-size: 15px; flex-shrink: 0; }
.side-plugin-btn .sp-txt { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; flex: 1; }
.side-plugin-btn .sp-txt b { font-size: 12.5px; font-weight: 700; color: #116a35; }
.side-plugin-btn .sp-txt b .sp-ver { display: inline-block; font-style: normal; font-weight: 700; font-size: 10px; line-height: 15px; padding: 0 5px; margin-left: 3px; border-radius: 6px; background: #e8f8ef; color: #12733d; border: 1px solid #bfe8d0; vertical-align: 1px; }
.side-plugin-btn .sp-txt em { font-style: normal; font-size: 10.5px; color: #3f9463; }
.side-plugin-btn .sp-txt em.warn { color: #c2410c; font-weight: 700; }
.side-plugin-btn .sp-dl { font-size: 13px; color: #16a34a; font-weight: 700; flex-shrink: 0; }

/* 当前登录用户：侧栏底部常驻，区分管理员与注册子账号 */
.cur-user {
  display: flex; align-items: center; gap: 10px;
  padding: 10px; margin-bottom: 10px;
  background: #f7f9ff; border: 1px solid #e8efff; border-radius: 10px;
}
.cur-user-avatar {
  flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--blue); color: #fff; font-size: 13px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.cur-user-avatar.member { background: #6b7280; }
.cur-user-avatar.demo { background: var(--orange); }
.cur-user-meta { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.cur-user-meta b { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cur-user-meta em { font-size: 11px; color: var(--text-2); font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.content { flex: 1; padding: 24px 32px; min-width: 0; width: 100%; }
.view-head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px;
}
.view-head h2 { font-size: 20px; }

.mode-banner {
  background: #fff7e6; color: #8a5a00; border: 1px solid #ffe1a6;
  padding: 10px 14px; border-radius: 10px; margin-bottom: 16px; font-size: 13px;
}

/* ---------- 组件 ---------- */
.card {
  background: var(--card); border-radius: var(--radius); padding: 20px;
  border: 1px solid var(--border); margin-bottom: 18px;
}
.card h3 { font-size: 15px; margin-bottom: 14px; }
.hint { color: var(--text-2); font-size: 12.5px; line-height: 1.7; margin: 6px 0 14px; }

.btn {
  border: none; border-radius: 10px; padding: 9px 18px; font-size: 14px;
  cursor: pointer; font-weight: 500; transition: all 0.15s;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { background: #f1f3f5; color: var(--text); }
.btn-ghost:hover { background: #e4e7ea; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.input, .select {
  padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px;
  font-size: 14px; outline: none; background: #fff;
}
.input:focus, .select:focus { border-color: var(--blue); }

.toolbar { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.tabs { display: flex; background: #eef0f3; border-radius: 10px; padding: 4px; }
.tab {
  border: none; background: transparent; padding: 8px 18px; border-radius: 8px;
  cursor: pointer; font-size: 14px; color: var(--text-2); font-weight: 500;
}
.tab.active { background: #fff; color: var(--blue); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }

/* ---------- 统计卡片 ---------- */
.stat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px; margin-bottom: 18px;
}
.stat-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px;
}
.stat-card .label { color: var(--text-2); font-size: 13px; margin-bottom: 8px; }
.stat-card .value { font-size: 26px; font-weight: 700; }
.stat-card .value.blue { color: var(--blue); }
.stat-card .value.green { color: var(--green); }
.stat-card .value.orange { color: var(--orange); }
.stat-card .sub { font-size: 12px; color: var(--text-2); margin-top: 6px; }

.chart-box { width: 100%; }
.chart-svg { width: 100%; height: auto; display: block; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { color: var(--text-2); font-weight: 500; font-size: 13px; background: #fafbfc; }
tbody tr:hover { background: #f7f9ff; }
td.wrap { white-space: normal; min-width: 220px; max-width: 380px; }

.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 500;
}
.badge.blue { background: #e8efff; color: var(--blue); }
.badge.green { background: #e5f7ec; color: var(--green); }
.badge.orange { background: #fff3e0; color: var(--orange); }
.badge.red { background: #fdecec; color: var(--red); }
.badge.gray { background: #f1f3f5; color: var(--text-2); }

.empty { color: var(--text-2); text-align: center; padding: 40px 0; }

.field { display: block; margin-bottom: 14px; max-width: 420px; }
.field span { display: block; margin-bottom: 6px; color: var(--text-2); font-size: 13px; }
.field .input { width: 100%; }
.card .btn { margin-right: 10px; }

.top-item { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--border); }
.top-item:last-child { border-bottom: none; }
.top-item .rank { color: var(--blue); font-weight: 700; margin-right: 10px; }
.top-item .name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-item .num { color: var(--text-2); margin-left: 12px; }

.toast {
  position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%);
  background: #1a1d21; color: #fff; padding: 11px 22px; border-radius: 10px;
  font-size: 14px; z-index: 99; box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.toast.err { background: var(--red); }

/* ---------- 状态页签（妙手ERP 风格） ---------- */
.status-tabs, .ship-tabs {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 8px;
}
.stab {
  border: none; background: transparent; padding: 7px 14px; border-radius: 8px;
  cursor: pointer; font-size: 13.5px; color: var(--text-2); display: flex; align-items: center; gap: 6px;
}
.stab:hover { background: #f0f4ff; color: var(--text); }
.stab.active { background: var(--blue); color: #fff; font-weight: 600; }
.stab-count {
  background: rgba(0,0,0,0.07); border-radius: 999px; font-size: 11.5px; padding: 1px 7px;
}
.stab.active .stab-count { background: rgba(255,255,255,0.25); }

.head-actions { display: flex; gap: 10px; }
.grow { flex: 1; min-width: 220px; }
.btn-sm { padding: 5px 12px; font-size: 13px; }

/* ---------- 订单卡片 ---------- */
.order-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 12px; overflow: hidden; transition: box-shadow 0.15s;
}
.order-card:hover { box-shadow: 0 4px 16px rgba(0, 91, 255, 0.08); }
.oc-head {
  display: flex; align-items: center; gap: 10px; padding: 10px 16px;
  background: #fafbfc; border-bottom: 1px solid var(--border); font-size: 13px;
}
.oc-no { font-weight: 700; color: var(--text); }
.ship-subtabs {
  display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap;
}
.ship-subtabs .stab { font-size: 12px; padding: 5px 12px; }
.ship-subtabs .stab.active { font-weight: 700; }
.badge.green { background: #e6f7ec; color: #1a7f4b; }
.badge.orange { background: #fff3e0; color: #b26a00; }
.oc-label-hint {
  padding: 6px 16px; font-size: 12px; color: #8a6d3b;
  background: #fff8e6; border-bottom: 1px solid var(--border);
}
.oc-cust { color: var(--text-2); }
.oc-head-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.oc-main {
  display: grid; grid-template-columns: minmax(320px, 1.8fr) 0.85fr 0.85fr 1fr 1fr;
  gap: 14px; padding: 14px 16px;
}
.oc-col { min-width: 0; }
.oc-col .label { color: var(--text-2); font-size: 12px; margin-bottom: 6px; white-space: nowrap; }
@media (max-width: 1100px) {
  .oc-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .oc-products { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .oc-main { grid-template-columns: 1fr; gap: 10px; }
  .oc-head { flex-wrap: wrap; }
}
.oc-col .sub { color: var(--text-2); font-size: 12px; margin-top: 4px; word-break: break-all; }
/* 剩余发货时间：按紧急度着色（≥2天绿 / 1-2天橙 / <1天红） */
.ship-left { font-weight: 600; margin-top: 2px !important; }
.ship-safe { color: #16a34a; }
.ship-warn { color: #d97706; }
.ship-danger { color: #dc2626; }
.oc-products { display: flex; flex-direction: column; }
.oc-product {
  display: flex; gap: 10px; align-items: center; padding: 7px 0;
  border-bottom: 1px dashed var(--border);
}
.oc-product:last-child { border-bottom: none; padding-bottom: 0; }
.oc-product:first-child { padding-top: 0; }
.oc-img {
  width: 52px; aspect-ratio: 3 / 4; height: auto; border-radius: 8px; object-fit: cover;
  border: 1px solid var(--border); flex-shrink: 0; background: #f1f3f5;
  cursor: zoom-in;
}

/* 图片悬停预览浮层 */
.img-preview {
  position: fixed; z-index: 9999; width: 240px; aspect-ratio: 3 / 4;
  border-radius: 12px; overflow: hidden; pointer-events: none;
  background: #fff; border: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(16, 30, 54, .22);
  opacity: 0; transform: scale(.96); display: none;
  transition: opacity .14s ease, transform .14s ease;
}
.img-preview.show { display: block; opacity: 1; transform: scale(1); }
.img-preview img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.oc-img-ph { display: flex; align-items: center; justify-content: center; font-size: 20px; }
.oc-img-err { visibility: hidden; }

/* 订单缩略图 + AI换图按钮 */
.oc-thumb { display: flex; flex-direction: column; align-items: center; gap: 5px; flex-shrink: 0; }
.oc-ai-btn {
  display: inline-flex; align-items: center; gap: 2px;
  font-size: 10.5px; line-height: 1; padding: 4px 6px; white-space: nowrap;
  color: var(--blue); background: #eef4ff; border: 1px solid #d8e4ff;
  border-radius: 6px; cursor: pointer; font-family: inherit;
  transition: background .15s ease, border-color .15s ease, transform .1s ease;
}
.oc-ai-btn:hover { background: #e2ecff; border-color: #b9d2ff; }
.oc-ai-btn:active { transform: scale(.96); }
.oc-pinfo { flex: 1; min-width: 0; }
.oc-pname {
  font-size: 13.5px; line-height: 1.45; word-break: break-word; white-space: normal;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.oc-qty { color: var(--blue); font-weight: 700; white-space: nowrap; flex-shrink: 0; font-size: 13.5px; }
.oc-pmeta { color: var(--text-2); font-size: 12px; margin-top: 4px; word-break: break-all; }
/* 商品标题＝Ozon 商品页链接：平时跟正文同色，悬停才提示可点 */
.oc-pname .oc-plink {
  color: inherit; text-decoration: none; cursor: pointer;
  border-bottom: 1px solid transparent; transition: color .15s ease, border-color .15s ease;
}
.oc-pname .oc-plink:hover { color: var(--blue); border-bottom-color: currentColor; }
.oc-pname .oc-plink::after {
  content: '↗'; margin-left: 3px; font-size: 11px; opacity: 0; transition: opacity .15s ease;
}
.oc-pname .oc-plink:hover::after { opacity: 1; }
.oc-money { font-size: 16px; color: var(--text); }
.oc-addr-val { font-size: 13.5px; font-weight: 500; word-break: break-all; }
.badge.purple { background: #f1e8ff; color: #7c3aed; }
.oc-print-time {
  font-size: 12px; color: #0f7a4d; background: #e8f7ef;
  border: 1px solid #c9ecd9; border-radius: 6px; padding: 2px 8px; white-space: nowrap;
}

/* ---------- 分页 ---------- */
.pager {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  padding: 6px 2px 20px;
}
.pager-info { color: var(--text-2); font-size: 13px; margin-right: auto; }

/* ---------- 打单发货 ---------- */
.ship-toolbar {
  display: flex; align-items: center; gap: 14px; margin-bottom: 14px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 10px 16px;
}
.ship-checkall { display: flex; align-items: center; gap: 6px; font-size: 13.5px; cursor: pointer; }
.btn-warn { background: var(--orange); color: #fff; }
.btn-warn:hover { background: #c77b00; }
.oc-selected { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(0, 91, 255, 0.12); }
.ship-check { width: 16px; height: 16px; cursor: pointer; }

/* ---------- 实时大屏（暗黑科技风，参考妙手） ---------- */
.bigscreen-view {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  background: radial-gradient(1200px 500px at 50% -100px, #0b3550 0%, #071e30 45%, #04121e 100%);
  color: #cfe9ff; overflow: hidden;
}
.view.bigscreen-view { position: absolute; }
.bs-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 22px 6px; }
.bs-title-center { text-align: center; }
.bs-title-center h1 {
  margin: 0; font-size: 26px; letter-spacing: 8px; color: #eaffff;
  text-shadow: 0 0 18px rgba(0, 229, 255, .8), 0 0 40px rgba(0, 160, 255, .5);
}
.bs-clock { font-size: 12px; color: #7fc6e8; margin-top: 2px; letter-spacing: 2px; }
.bs-title-left, .bs-title-right { font-size: 12px; color: #6fb4d8; width: 200px; }
.bs-title-right { text-align: right; }

.bs-grid { flex: 1; display: grid; grid-template-columns: 23% 1fr 26%; gap: 12px; padding: 8px 16px 16px; min-height: 0; }
.bs-col { display: flex; flex-direction: column; gap: 12px; min-height: 0; min-width: 0; }
.bs-panel {
  background: linear-gradient(160deg, rgba(9, 48, 74, .75), rgba(5, 26, 42, .9));
  border: 1px solid rgba(0, 200, 255, .25); border-radius: 10px;
  padding: 10px 12px; display: flex; flex-direction: column; min-height: 0;
  box-shadow: inset 0 0 30px rgba(0, 140, 220, .08);
}
.bs-grow { flex: 1; }
.bs-panel-head { font-size: 13px; color: #9fe2ff; font-weight: 700; margin-bottom: 8px; flex-shrink: 0; }
.bs-sub { font-weight: 400; font-size: 11px; color: #5d9ec4; margin-left: 8px; }

/* KPI */
.bs-kpi-row { display: flex; gap: 12px; }
.bs-kpi {
  flex: 1; text-align: center; padding: 14px 8px 10px;
  background: linear-gradient(180deg, rgba(0, 120, 200, .18), rgba(0, 40, 80, .35));
  border: 1px solid rgba(0, 210, 255, .35); border-radius: 10px;
  box-shadow: 0 0 24px rgba(0, 180, 255, .15);
}
.bs-kpi b { display: block; font-size: 40px; color: #fff; text-shadow: 0 0 22px rgba(0, 229, 255, .9); line-height: 1.1; }
.bs-kpi span { display: block; font-size: 12px; color: #8fd2f2; margin-top: 4px; letter-spacing: 3px; }
.bs-kpi em { display: block; font-style: normal; font-size: 11px; color: #5d9ec4; margin-top: 2px; }

/* 地图装饰 + 分时走势 */
.bs-map-panel { flex: 1.2; min-height: 150px; position: relative; overflow: hidden; }
.bs-map-deco {
  position: absolute; inset: 0; opacity: .35; pointer-events: none;
  background-image: radial-gradient(rgba(0, 200, 255, .5) 1px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 65% 60% at 50% 45%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 65% 60% at 50% 45%, #000 30%, transparent 75%);
}
.bs-hourly { position: relative; flex: 1; min-height: 0; }
.bs-hourly svg { width: 100%; height: 100%; }
.bs-legend { position: absolute; top: 4px; right: 8px; font-size: 11px; color: #8fd2f2; }
.bs-legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: middle; margin: 0 4px 0 10px; }

/* 产品排行 / 实时订单 */
.bs-rank { overflow-y: auto; min-height: 0; }
.bs-rank-row { display: flex; align-items: center; gap: 8px; padding: 5px 2px; border-bottom: 1px dashed rgba(0, 160, 255, .15); font-size: 12px; }
.bs-rank-idx { width: 18px; color: #ffb64d; font-weight: 700; text-align: center; flex-shrink: 0; }
.bs-rank-row:nth-child(n+4) .bs-rank-idx { color: #6fb4d8; }
.bs-rank-img { width: 30px; height: 30px; border-radius: 4px; object-fit: cover; flex-shrink: 0; background: rgba(0,0,0,.3); }
.bs-rank-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #d6efff; }
.bs-rank-num { text-align: right; flex-shrink: 0; }
.bs-rank-num b { color: #ffe08a; font-weight: 700; }
.bs-rank-num span { display: block; color: #6fb4d8; font-size: 10px; }
.bs-live { overflow-y: auto; min-height: 0; padding-right: 4px; }

/* 大屏滚动条美化：细窄、青色发光、悬停加亮 */
.bs-live, .bs-rank, .bs-grid {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 205, 255, .55) rgba(0, 120, 255, .08);
}
.bs-live::-webkit-scrollbar,
.bs-rank::-webkit-scrollbar,
.bs-grid::-webkit-scrollbar { width: 7px; height: 7px; }
.bs-live::-webkit-scrollbar-track,
.bs-rank::-webkit-scrollbar-track,
.bs-grid::-webkit-scrollbar-track {
  background: rgba(0, 120, 255, .07);
  border-radius: 4px;
  margin: 2px 0;
}
.bs-live::-webkit-scrollbar-thumb,
.bs-rank::-webkit-scrollbar-thumb,
.bs-grid::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(0, 229, 255, .7), rgba(0, 110, 255, .6));
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, .18);
  transition: background .2s;
}
.bs-live::-webkit-scrollbar-thumb:hover,
.bs-rank::-webkit-scrollbar-thumb:hover,
.bs-grid::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #3beeff, #2b7bff);
  box-shadow: 0 0 8px rgba(0, 229, 255, .65);
}
.bs-live::-webkit-scrollbar-thumb:active,
.bs-rank::-webkit-scrollbar-thumb:active,
.bs-grid::-webkit-scrollbar-thumb:active {
  background: linear-gradient(180deg, #00e5ff, #1a5df0);
}
.bs-live::-webkit-scrollbar-corner,
.bs-rank::-webkit-scrollbar-corner,
.bs-grid::-webkit-scrollbar-corner { background: transparent; }

.bs-loading { color: #00e5ff !important; animation: bs-pulse 1.2s ease-in-out infinite; }
@keyframes bs-pulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }

/* 实时订单表格（参考妙手：平台 / 地区 / 买家 / 金额 / 时间） */
.bs-live-head, .bs-live-tr {
  display: grid; grid-template-columns: 62px 1fr 74px 72px 76px;
  gap: 6px; align-items: center; padding: 5px 2px; font-size: 11.5px;
}
.bs-live-head {
  color: #7fc6e8; font-weight: 600; border-bottom: 1px solid rgba(0, 200, 255, .3);
  position: sticky; top: 0; background: rgba(5, 26, 42, .95); flex-shrink: 0;
}
.bs-live-tr { border-bottom: 1px dashed rgba(0,160,255,.12); }
.bs-live-tr .pf { color: #c9a6ff; }
.bs-live-tr .rg, .bs-live-tr .by { color: #d9eeff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.bs-live-tr .m { color: #ffe08a; text-align: right; font-weight: 600; }
.bs-live-tr .t { color: #6fb4d8; text-align: right; white-space: nowrap; }

/* 店铺排行榜 */
.bs-store-row { padding: 7px 2px; }
.bs-store-num { flex-shrink: 0; color: #9fe2ff; text-align: right; min-width: 42px; }
.bs-store-num b { color: #fff; font-size: 14px; }
.bs-store-num span { color: #5d9ec4; font-size: 10px; margin-left: 2px; }
.bs-store-rev { flex-shrink: 0; min-width: 74px; text-align: right; color: #ffe08a; font-weight: 700; font-size: 12.5px; }

/* 地区分布 */
.bs-regions { display: flex; flex-direction: column; gap: 7px; }
.bs-region-row { font-size: 12px; }
.bs-region-row .l { display: flex; justify-content: space-between; margin-bottom: 3px; color: #cfe9ff; }
.bs-region-row .l span:last-child { color: #6fb4d8; }
.bs-rg-idx {
  display: inline-block; width: 16px; height: 16px; line-height: 16px; text-align: center;
  border-radius: 4px; background: rgba(0, 200, 255, .2); color: #9fe2ff;
  font-size: 10px; font-style: normal; margin-right: 6px;
}
.bs-bar { height: 7px; background: rgba(0, 80, 130, .45); border-radius: 4px; overflow: hidden; }
.bs-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #00c8ff, #0066ff); box-shadow: 0 0 10px rgba(0, 200, 255, .8); transition: width .6s; }
.bs-region-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bs-rcard {
  background: linear-gradient(180deg, rgba(0, 100, 160, .25), rgba(0, 40, 80, .4));
  border: 1px solid rgba(0, 200, 255, .3); border-radius: 8px; padding: 8px 10px; font-size: 11px; color: #8fd2f2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bs-rcard b { display: block; font-size: 20px; color: #fff; margin-top: 2px; }
.bs-rcard em { display: block; font-style: normal; color: #ffe08a; font-size: 11px; }
.bs-rcard-empty { opacity: .55; }

/* 平台分布 donut + 平台排行表 */
.bs-platform { display: flex; align-items: center; gap: 14px; flex: 1; }
.bs-donut { width: 110px; height: 110px; flex-shrink: 0; }
.bs-donut text { fill: #eaffff; }
.bs-platform-table { flex: 1; min-width: 0; font-size: 12px; }
.bs-pt-head, .bs-pt-row {
  display: grid; grid-template-columns: 30px 1fr 56px 84px; gap: 6px;
  padding: 6px 2px; align-items: center;
}
.bs-pt-head { color: #7fc6e8; font-weight: 600; border-bottom: 1px solid rgba(0, 200, 255, .3); }
.bs-pt-row { color: #d9eeff; border-bottom: 1px dashed rgba(0,160,255,.12); }
.bs-pt-row span:first-child { color: #ffb64d; font-weight: 700; }
.bs-pt-row .pf { color: #c9a6ff; }
.bs-pt-row span:last-child { color: #ffe08a; text-align: right; }

@media (max-width: 1100px) {
  .bs-grid { grid-template-columns: 1fr; overflow-y: auto; }
  .bs-panel { min-height: 220px; }
  .bs-live { max-height: 280px; }
  .bs-rank { max-height: 280px; }
  .bs-hourly { min-height: 200px; }
  .bs-kpi b { font-size: 30px; }
}

/* ---------- 店铺切换器（侧边栏） ---------- */
.store-switch { position: relative; margin: 14px 0 4px; }
.store-btn {
  width: 100%; display: flex; align-items: center; gap: 9px; cursor: pointer;
  padding: 9px 10px; border: 1px solid var(--border); border-radius: 10px;
  background: #fbfcfe; color: var(--text); text-align: left; font-family: inherit;
  transition: border-color .15s, background .15s;
}
.store-btn:hover { border-color: #c9d6ee; background: #f4f8ff; }
.store-avatar {
  width: 28px; height: 28px; flex-shrink: 0; border-radius: 8px;
  background: linear-gradient(135deg, #005bff, #0d8bff); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; text-transform: uppercase;
}
.store-meta { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.store-meta b { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.store-meta em { font-size: 11px; color: var(--text-2); font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.store-caret { color: var(--text-2); font-size: 11px; flex-shrink: 0; }
.store-menu {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 12px 30px rgba(16, 40, 80, .14); padding: 6px; max-height: 320px; overflow: auto;
}
.store-menu-item {
  display: flex; align-items: center; gap: 8px; width: 100%; cursor: pointer;
  padding: 8px 9px; border: 0; background: none; border-radius: 8px;
  font-family: inherit; font-size: 13px; color: var(--text); text-align: left;
}
.store-menu-item:hover { background: #f2f6ff; }
.store-menu-item.active { background: #eef4ff; color: var(--blue); font-weight: 600; }
.store-menu-item .smi-dot { width: 7px; height: 7px; border-radius: 50%; background: #c7cedb; flex-shrink: 0; }
.store-menu-item.active .smi-dot { background: var(--blue); }
.store-menu-item .smi-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.store-menu-sep { height: 1px; background: var(--border); margin: 5px 2px; }
.store-menu-add { color: var(--blue); font-weight: 600; }

/* ---------- 店铺管理（设置页） ---------- */
.card-head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.card-head-row h3 { margin: 0; }
/* 看板同步状态：有缓存时先显示"数据 12:34 · 正在同步…"，避免用户对着空表等 Ozon */
#dash-sync { margin: 0 0 0 auto; color: var(--text-2); font-size: 12.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.store-list { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.store-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: 10px; background: #fcfdff;
}
.store-row.current { border-color: #b9d2ff; background: #f3f8ff; }
.store-row .sr-avatar {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  background: #e8f0ff; color: var(--blue); font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: center; text-transform: uppercase;
}
.store-row.current .sr-avatar { background: linear-gradient(135deg, #005bff, #0d8bff); color: #fff; }
.sr-main { flex: 1; min-width: 0; }
.sr-title { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.sr-sub { font-size: 12px; color: var(--text-2); margin-top: 3px; font-variant-numeric: tabular-nums; }
.sr-acts { display: flex; gap: 6px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.store-empty {
  padding: 26px 16px; text-align: center; color: var(--text-2);
  border: 1px dashed var(--border); border-radius: 10px; background: #fafbfd;
}
.empty-store-hint {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 0 0 14px; padding: 14px 16px; border-radius: 10px;
  background: #fff7e8; border: 1px solid #ffe0b2; color: #8a5b00; font-size: 13px;
}
@media (max-width: 720px) {
  .store-row { flex-wrap: wrap; }
  .sr-acts { width: 100%; justify-content: flex-start; }
}

/* ---------- 实时大屏独立窗口模式 ---------- */
body.standalone-mode { overflow: hidden; background: #04121e; }
body.standalone-mode .sidebar,
body.standalone-mode #demo-banner,
body.standalone-mode #no-store-hint { display: none !important; }
body.standalone-mode .main { display: block; min-height: 100vh; }
body.standalone-mode .content { max-width: none; padding: 0; }
body.standalone-mode .bigscreen-view { inset: 0; }

/* ---------- 数据看板（妙手式） ---------- */
.seg-tabs { display: inline-flex; background: #eef1f6; border-radius: 10px; padding: 3px; gap: 2px; }
.seg-tab { border: 0; background: none; padding: 7px 16px; border-radius: 8px; cursor: pointer; font-size: 13px; color: var(--text-2); font-family: inherit; transition: all .15s; }
.seg-tab:hover { color: var(--text); }
.seg-tab.active { background: var(--blue); color: #fff; font-weight: 600; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }
.kpi-card { background: #fafbfd; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.kpi-label { font-size: 12px; color: var(--text-2); }
.kpi-value { font-size: 22px; font-weight: 700; margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
.kpi-sub { font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.kpi-sub .up { color: var(--green); font-weight: 600; }
.kpi-sub .down { color: var(--red); font-weight: 600; }
.legend-dots { font-size: 12px; color: var(--text-2); display: flex; gap: 16px; align-items: center; }
.legend-dots .lg { margin-right: 5px; }
.lg { display: inline-block; width: 18px; height: 3px; border-radius: 2px; vertical-align: middle; }
.lg-today { background: var(--blue); }
.lg-yday { background: #f59e0b; }
.rank-table-wrap { overflow-x: auto; }
.rank-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.rank-table th { text-align: left; color: var(--text-2); font-weight: 500; padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.rank-table td { padding: 9px 10px; border-bottom: 1px solid #f0f2f5; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rank-table tr:last-child td { border-bottom: 0; }
.rank-table tr.hl td { background: #f5f9ff; }
.sr-store { display: flex; align-items: center; gap: 8px; }
.sr-ava { width: 24px; height: 24px; border-radius: 6px; background: #e8f0ff; color: var(--blue); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; flex-shrink: 0; }
.pr-info { display: flex; align-items: center; gap: 10px; max-width: 320px; }
.pr-info img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; border: 1px solid var(--border); flex-shrink: 0; }
.pr-name { max-width: 250px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 全店汇总：店铺标签（订单卡 / 商品表） ---------- */
.badge.store-tag {
  background: #f1f5fb;
  color: #4b5670;
  border: 1px solid #e2e8f2;
  font-weight: 500;
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}
/* 店铺列表菜单（只读项，不可切换） */
.store-menu-item.static { cursor: default; }
.store-menu-item.static:hover { background: none; }
.store-menu-item .smi-dot.on { background: var(--green, #16a34a); }
.store-avatar { font-variant-numeric: tabular-nums; }

/* ---------- 选品 · 商品分析 ---------- */
/* 优化建议 */
.sel-adv {
  border: 1px solid var(--border, #e5e9f2); border-radius: 10px;
  padding: 10px 12px; margin-bottom: 8px; background: #fff;
}
.sel-adv:last-child { margin-bottom: 0; }
.sel-adv-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.sel-adv-lv {
  font-size: 11px; padding: 1px 8px; border-radius: 999px;
  background: #fef3c7; color: #92400e; flex: 0 0 auto;
}
.sel-adv-lv.hi { background: #fee2e2; color: #b91c1c; }
.sel-adv-tag { font-size: 12px; font-weight: 700; color: var(--ink, #1e293b); flex: 0 0 auto; }
.sel-adv-name {
  font-size: 12px; color: var(--primary, #2563eb);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 320px; min-width: 0;
}
.sel-adv-head .pmeta { font-size: 11px; color: #8b95a6; flex: 0 0 auto; }
.sel-adv-text { font-size: 13px; line-height: 1.65; color: var(--ink-soft, #475569); margin-top: 6px; }
/* 榜单行内诊断标签 */
.adv-cell { white-space: normal; }
.adv-chip {
  display: inline-block; font-size: 11px; line-height: 16px; padding: 1px 7px;
  border-radius: 999px; border: 1px solid #fde68a; background: #fffbeb; color: #92400e;
  margin: 2px 4px 2px 0; cursor: pointer; font-family: inherit; white-space: nowrap;
}
.adv-chip:hover { background: #fef3c7; }
.adv-chip.hi { border-color: #fecaca; background: #fef2f2; color: #b91c1c; font-weight: 600; }
.adv-chip.hi:hover { background: #fee2e2; }
.adv-none { font-size: 12px; color: #c2cad6; }
tr.adv-row.hidden { display: none; }
tr.adv-row > td { background: #fbfcff; padding: 8px 12px 4px; }
tr.adv-row .sel-adv { background: #fff; }
/* 全店级建议横幅 */
.sel-store-adv { padding: 2px 0 10px; }
.sel-store-adv-item {
  display: block; font-size: 12px; line-height: 1.7; color: var(--ink-soft, #475569);
  margin-bottom: 4px;
}
.sel-store-adv-item .adv-chip { cursor: default; margin-right: 6px; font-style: normal; font-weight: 600; }

/* ---------- 商品管理 · 采集箱 ---------- */
.col-search { width: 220px; }
.col-steps { margin: 6px 0 14px; padding-left: 20px; font-size: 13px; line-height: 1.95; color: var(--ink-soft, #475569); }
.col-steps code {
  background: #f4f6fb; border: 1px solid var(--border, #e5e9f2); border-radius: 4px;
  padding: 1px 5px; font-size: 12px;
}
.col-key-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--ink-soft, #475569); }
.col-key-row code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px;
  background: #f4f6fb; border: 1px dashed var(--border, #e5e9f2); border-radius: 6px;
  padding: 4px 8px; color: var(--ink, #1e293b); word-break: break-all;
}
.col-chk-all { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-soft, #475569); cursor: pointer; }

/* 妙手式筛选工具栏 */
.col-filter {
  background: #fff; border: 1px solid var(--border, #e5e9f2); border-radius: 10px;
  padding: 10px 14px; margin-bottom: 10px;
}
.col-filter-row { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.col-fitem { display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; color: #64748b; }
.col-fitem .input { height: 32px; font-size: 12.5px; min-width: 130px; }
.col-fitem:nth-child(1) .input { min-width: 200px; }
.col-price-range { display: inline-flex; align-items: center; gap: 4px; }
.col-price-range .input { width: 76px; min-width: 76px; }
.col-price-range i { color: #94a3b8; font-style: normal; }

/* 妙手式状态标签页 */
.col-tabs { display: flex; align-items: center; gap: 4px; border-bottom: 2px solid var(--border, #e5e9f2); margin: 4px 0 0; }
.col-tab {
  appearance: none; background: none; border: none; cursor: pointer;
  padding: 9px 16px; font-size: 13px; color: var(--ink-soft, #475569);
  border-bottom: 2px solid transparent; margin-bottom: -2px; font-weight: 500;
}
.col-tab:hover { color: var(--ink, #1e293b); }
.col-tab.active { color: #0d9488; border-bottom-color: #0d9488; font-weight: 600; }
.col-tab i {
  font-style: normal; background: #eef1f6; color: #64748b; border-radius: 999px;
  font-size: 11px; padding: 1px 7px; margin-left: 3px;
}
.col-tab.active i { background: #ccfbf1; color: #0d9488; }
.col-tabs-right { margin-left: auto; font-size: 12px; color: #94a3b8; padding-right: 4px; }

/* 批量操作栏 */
.col-bulk { display: flex; align-items: center; gap: 8px; padding: 8px 2px; flex-wrap: wrap; }
.col-bulk .grow { flex: 1 1 auto; }
.col-rate { color: #f59e0b; font-weight: 600; }
.col-note { font-size: 12px; }
.col-note > div, .col-note { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 详情整页（不再弹卡片、不再分标签页）：五段内容平铺在一页里 */
.cdet-page-head { align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.cdet-page-head .cdet-page-l { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cdet-page-head h2 {
  margin: 0; font-size: 17px; line-height: 1.4; max-width: 58vw;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.cdet-page-head #cdet-sub { margin-top: 3px; }
.cdet-page-body { padding-bottom: 48px; }
.cdet-sec { padding: 18px 0 20px; border-bottom: 1px solid var(--border, #e5e9f2); }
.cdet-sec-last { border-bottom: 0; }
.cdet-h {
  display: flex; align-items: baseline; gap: 8px; margin: 0 0 12px;
  font-size: 14px; font-weight: 700; color: var(--ink, #1e293b);
}
.cdet-h::before {
  content: ''; flex: 0 0 auto; width: 3px; height: 14px; border-radius: 2px;
  background: #0d9488; transform: translateY(2px);
}
.cdet-h-n { font-size: 11.5px; font-weight: 400; color: #94a3b8; }
.cdet-sub-h { margin: 18px 0 8px; font-size: 12.5px; font-weight: 600; color: var(--ink, #1e293b); }
.cdet-grid-wrap { max-width: 1000px; }
.cdet-facts-line { margin-top: 10px; }
.cdet-kv { display: flex; gap: 10px; align-items: baseline; font-size: 12.5px; margin-bottom: 10px; }
.cdet-kv > span { flex: 0 0 auto; color: #7c8798; }
.cdet-form-title { margin: 14px 0 8px; font-size: 13px; color: var(--ink, #1e293b); }
.cdet-cat-path {
  background: #f0fdfa; border: 1px solid #99f6e4; color: #0f766e; border-radius: 8px;
  padding: 8px 12px; font-size: 12.5px; line-height: 1.6;
}
.cdet-img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.cdet-vid-box { max-width: 420px; border: 1px solid var(--border, #e5e9f2); border-radius: 8px; overflow: hidden; background: #f4f6fb; }
.cdet-vid-box video { width: 100%; max-height: 320px; display: block; background: #000; }
.cdet-vid-box img { width: 100%; max-height: 320px; display: block; object-fit: contain; background: #f4f6fb; }
.cdet-color-samples { display: flex; flex-wrap: wrap; gap: 10px; }
.cdet-color-sample { width: 92px; padding: 6px; border: 1px solid var(--border, #e5e9f2); border-radius: 8px; background: #fff; text-align: center; }
.cdet-color-sample.is-sel { border-color: #0d9488; box-shadow: 0 0 0 2px rgba(13, 148, 136, .14); }
.cdet-color-chip { display: block; width: 100%; height: 48px; border-radius: 6px; overflow: hidden; background: #f4f6fb; }
.cdet-color-chip img, .cdet-color-chip i { display: block; width: 100%; height: 100%; object-fit: cover; }
.cdet-color-chip b { display: block; line-height: 48px; font-size: 16px; color: #cbd5e1; font-weight: 400; }
.cdet-color-chip.nopic::after { content: '图片加载失败'; display: block; line-height: 48px; font-size: 10px; color: #94a3b8; }
.cdet-color-sample small { display: block; margin-top: 5px; font-size: 11px; color: #64748b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cdet-color-sample.is-used { border-color: #2563eb; box-shadow: 0 0 0 2px rgba(37, 99, 235, .16); }
.cdet-color-current { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin-bottom: 12px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; }
.cdet-color-current img { width: 64px; height: 64px; object-fit: contain; background: #fff; border: 1px solid #e5e9f2; border-radius: 6px; }
.cdet-color-current img.err { object-fit: none; }
.cdet-color-current-meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cdet-color-current-meta b { font-size: 13px; color: var(--ink, #0f172a); }
.cdet-color-current-meta span { font-size: 12px; color: #64748b; line-height: 1.5; }
.cdet-img-cell { position: relative; display: block; border: 1px solid var(--border, #e5e9f2); border-radius: 8px; overflow: hidden; background: #f4f6fb; }
.cdet-img-cell img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.cdet-img-cell.err::after { content: '图片加载失败'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; color: #94a3b8; }
.cdet-img-idx {
  position: absolute; left: 6px; top: 6px; background: rgba(15, 23, 42, 0.72); color: #fff;
  font-size: 10.5px; padding: 1px 7px; border-radius: 999px;
}

.col-table .sel-prod img { width: 44px; height: 44px; }
.col-old { font-size: 11px; color: #94a3b8; text-decoration: line-through; margin-top: 2px; }
.col-acts { white-space: nowrap; }
.col-acts .btn { margin: 1px; }
.col-meta { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 999px; font-weight: 600; white-space: nowrap; }
.col-meta.ok { background: #e8f7ee; color: #15803d; }
.col-meta.warn { background: #fff4e5; color: #b45309; }
/* 已上架标记：采集箱「已发布」页签与行内标记共用 */
.col-pubtag {
  display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
  font-size: 11px; padding: 1px 7px; border-radius: 999px; font-weight: 600; white-space: nowrap;
  background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0;
}
.col-pubtag::before {
  content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: #10b981; margin-right: 5px; vertical-align: 1px;
}
/* 采集箱列表：固定列宽，防止完整度等列被挤压重叠（列序：产品/类目/售价/完整度/时间/备注/操作） */
.col-table { table-layout: fixed; }
/* 窄屏（侧边栏展开 / 浏览器缩放）下别把产品名挤到价格列上：表格保底宽度，超出横向滚动 */
.col-table { min-width: 1000px; }
.col-table td:nth-child(3), .col-table td:nth-child(4), .col-table td:nth-child(5) { white-space: nowrap; }
.col-table td:nth-child(2) { overflow: hidden; }
.col-table td:nth-child(2) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.col-table td:nth-child(4) .pmeta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.col-table td:nth-child(4) .col-meta { max-width: 160px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.col-table td:nth-child(5) { white-space: nowrap; font-size: 12px; }
.col-table td.l .pname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.col-table td.l .pmeta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 售价 / 人民币列：上排原币种价格（可点 ✎ 手改），下排折算的人民币 */
.col-price-cell { font-size: 13px; }
.col-price-main { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.col-price-main b { font-weight: 700; }
.col-price-edit {
  border: 0; background: none; padding: 0 2px; cursor: pointer; color: #94a3b8;
  font-size: 12px; line-height: 1; opacity: 0.65;
}
.col-price-edit:hover { color: var(--blue, #2563eb); opacity: 1; }
.col-cny { font-size: 11px; color: #0f766e; margin-top: 1px; white-space: nowrap; }
.col-cny::before { content: ''; }
.col-manual {
  font-size: 10px; padding: 0 5px; border-radius: 999px; margin-left: 2px;
  background: #eef2ff; color: #4338ca; border: 1px solid #dbe2ff; white-space: nowrap;
}
.col-price-editbox { display: flex; align-items: center; gap: 2px; }
.col-price-sym { font-size: 12px; color: #64748b; }
.col-price-cur {
  border: 1px solid var(--line, #e2e8f0); border-radius: 5px; background: #fff;
  font-size: 11px; padding: 0 1px; height: 24px; color: #334155;
}
.col-price-inp {
  width: 78px; height: 24px; border: 1px solid var(--blue, #2563eb); border-radius: 5px;
  padding: 0 4px; font-size: 12px; outline: none; background: #fff; color: #0f172a;
}
.col-price-tip { font-size: 10px; color: #94a3b8; margin-top: 2px; white-space: nowrap; }
.cdet-reset-price {
  border: 0; background: none; padding: 0 4px; cursor: pointer;
  color: #64748b; font-size: 11px; text-decoration: underline dotted;
}
.cdet-reset-price:hover { color: var(--blue, #2563eb); }

/* 详情页里的分节标题与内容排布 */
.cdet-check { margin: 10px 0 6px; }

/* 顶部商品预览：左大图 + 右价格/关键信息（对齐插件「一键上架」预览页的首屏） */
.cdet-page-head {
  position: sticky; top: 0; z-index: 5;
  padding: 10px 0 12px; margin-bottom: 14px;
  background: linear-gradient(180deg, #fff 78%, rgba(255, 255, 255, 0));
}
.cdet-hero {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 4px 0 18px; border-bottom: 1px solid var(--border, #e5e9f2);
}
.cdet-hero-media {
  position: relative; flex: 0 0 auto; width: 200px; height: 250px;
  border: 1px solid var(--border, #e5e9f2); border-radius: 10px; overflow: hidden;
  background: #f4f6fb; display: flex; align-items: center; justify-content: center;
}
.cdet-hero-media img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.cdet-hero-media .ph { font-size: 30px; color: #cbd5e1; }
.cdet-hero-media.err::after {
  content: '图片没显示出来'; position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; font-size: 12px; color: #94a3b8;
}
.cdet-hero-n {
  position: absolute; right: 8px; bottom: 8px; padding: 1px 8px; border-radius: 999px;
  background: rgba(15, 23, 42, .66); color: #fff; font-size: 11px;
}
.cdet-hero-body { flex: 1 1 auto; min-width: 0; }
.cdet-hero-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--ink-soft, #475569); }
.cdet-hero-price b { font-size: 24px; font-weight: 700; color: #dc2626; letter-spacing: .5px; }
.cdet-hero-price s { color: #94a3b8; font-size: 12.5px; }
.cdet-cny { font-size: 13px; color: #15803d; font-weight: 600; }
.cdet-vtag { font-size: 11px; color: #0f766e; background: #f0fdfa; border: 1px solid #99f6e4; border-radius: 999px; padding: 0 7px; }
.cdet-chips { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 10px; font-size: 12px; color: #64748b; }
.cdet-chips span { background: #f6f8fc; border-radius: 6px; padding: 2px 8px; }
.cdet-hero-foot { margin-top: 8px; font-size: 11.5px; color: #94a3b8; }
.cdet-pubtag { color: #15803d; font-weight: 600; }
/* 上架后属性回读复核：缺失点名（黄底）/ 通过（绿字），按钮跟在后面 */
.cdet-pubtag.attr-audit-warn { color: #b45309; }
.attr-audit-bad { color: #b45309; background: #fef3c7; border-radius: 6px; padding: 4px 8px; margin-top: 4px; line-height: 1.6; }
.attr-audit-ok { color: #15803d; margin-top: 4px; }
#cdet-attr-audit .btn { margin-left: 4px; vertical-align: baseline; }

/* 变体卡片（横向一条，点一张换上面的大图） */
.cdet-varcards { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.cdet-vcard {
  flex: 0 0 auto; display: flex; align-items: center; gap: 9px; min-width: 190px; max-width: 260px;
  padding: 8px 10px; border: 1px solid var(--border, #e5e9f2); border-radius: 10px;
  background: #fff; cursor: pointer; text-align: left; font: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.cdet-vcard:hover { border-color: #99f6e4; }
.cdet-vcard.on { border-color: #0d9488; box-shadow: 0 0 0 2px rgba(13, 148, 136, .14); }
.cdet-vcard-img { flex: 0 0 auto; width: 44px; height: 44px; }
.cdet-vcard img { width: 44px; height: 44px; flex: 0 0 auto; object-fit: cover; border-radius: 6px; background: #f4f6fb; }
/* 变体图挂了（防盗链 / 扩展内地址）→ 隐藏破图，显示 📦 占位 */
.cdet-vcard.nopic img { display: none; }
.cdet-vcard.nopic::before {
  content: '📦'; width: 44px; height: 44px; flex: 0 0 auto; border-radius: 6px; background: #f4f6fb;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.cdet-vcard .ph {
  width: 44px; height: 44px; flex: 0 0 auto; border-radius: 6px; background: #f4f6fb;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.cdet-vcard-t { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.cdet-vcard-t b { font-size: 12.5px; color: var(--ink, #1e293b); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cdet-vcard-t em { font-style: normal; font-size: 11px; color: #94a3b8; }
.cdet-vcard-p { font-size: 12px; color: #dc2626; font-weight: 600; }
.cdet-vcard-cur {
  font-style: normal; margin-left: 4px; padding: 0 6px; border-radius: 999px;
  background: #f0fdfa; color: #0f766e; border: 1px solid #99f6e4; font-size: 10.5px; font-weight: 600;
  vertical-align: 1px;
}

/* 采集详情里的图：加载中先显示微光占位（和插件预览一致），载入后被图盖住 */
.cdet-hero-media img, .cdet-img-cell img, .cdet-vcard-img img, .cdet-thumbs img {
  background: linear-gradient(100deg, #eef1f5 40%, #f8fafc 50%, #eef1f5 60%);
  background-size: 200% 100%; animation: cdet-shimmer 1.1s linear infinite;
}
@keyframes cdet-shimmer { to { background-position: -200% 0; } }
.cdet-thumbs img.dead { visibility: hidden; }

/* 列表里的「变体 N」小标记 */
.col-vtag {
  display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 999px;
  background: #f0fdfa; color: #0f766e; border: 1px solid #99f6e4; font-size: 11px; font-weight: 600;
}
.cdet-section { margin-bottom: 18px; }
.cdet-section h4 { margin: 0 0 8px; font-size: 13px; color: var(--ink, #1e293b); }
.cdet-top { display: grid; grid-template-columns: 320px 1fr; gap: 18px; }
@media (max-width: 860px) { .cdet-top { grid-template-columns: 1fr; } }
.cdet-main {
  width: 100%; aspect-ratio: 1 / 1; background: #f4f6fb; border: 1px solid var(--border, #e5e9f2);
  border-radius: 10px; overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.cdet-main img { width: 100%; height: 100%; object-fit: contain; }
.cdet-thumbs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.cdet-thumbs img {
  width: 46px; height: 46px; object-fit: cover; border-radius: 6px; cursor: pointer;
  border: 2px solid transparent; background: #f4f6fb;
}
.cdet-thumbs img.on { border-color: var(--blue, #2563eb); }
/* 主题标签（#sporty 这类） */
.cdet-tags { font-size: 12px; color: #64748b; }
.cdet-tag {
  display: inline-block; margin: 0 4px 4px 0; padding: 1px 8px; border-radius: 999px;
  background: #eef4ff; color: #2563eb; font-size: 11.5px; font-weight: 600;
}
.cdet-fact-table, .cdet-attr-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.cdet-fact-table th, .cdet-attr-table th {
  text-align: left; font-weight: 500; color: #7c8798; white-space: nowrap;
  padding: 6px 10px 6px 0; vertical-align: top; width: 130px;
}
.cdet-fact-table td, .cdet-attr-table td {
  padding: 6px 0; color: var(--ink, #1e293b); word-break: break-word;
}
.cdet-fact-table tr + tr th, .cdet-fact-table tr + tr td,
.cdet-attr-table tr + tr th, .cdet-attr-table tr + tr td { border-top: 1px dashed #eef1f7; }
.cdet-off { color: #dc2626; font-weight: 600; font-size: 11.5px; }
.cdet-check { margin-top: 10px; font-size: 12px; padding: 8px 10px; border-radius: 8px; }
.cdet-check.ok { background: #e8f7ee; color: #15803d; }
.cdet-check.warn { background: #fff7e8; color: #b45309; }
.cdet-vars { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.cdet-var {
  display: flex; align-items: center; gap: 8px; padding: 6px 8px;
  border: 1px solid var(--border, #e5e9f2); border-radius: 8px; font-size: 12px;
}
.cdet-var img { width: 38px; height: 38px; object-fit: cover; border-radius: 6px; }
.cdet-var .vlabel { font-size: 12px; color: var(--ink, #1e293b); }
.cdet-desc {
  max-height: 520px; overflow: auto; white-space: pre-wrap; line-height: 1.75;
  font-size: 12.5px; color: var(--ink-soft, #475569);
  border-left: 2px solid #e2e8f0; padding: 2px 0 2px 14px;
}

/* 一键上架弹窗 */
.uic-mask .pub-box {
  width: min(920px, 96vw); max-width: 920px; max-height: 92vh;
  display: flex; flex-direction: column; padding: 0; overflow: hidden;
}
.pub-body { padding: 16px 18px; overflow: auto; flex: 1 1 auto; }
.pub-guide {
  background: #f0f6ff; border: 1px solid #cfe0fb; border-radius: 10px;
  padding: 9px 12px; margin-bottom: 16px; font-size: 12.5px; line-height: 1.7; color: #1e40af;
}
.pub-guide b { font-weight: 600; }
.pub-guide-sub { color: #475569; font-size: 12px; margin-top: 2px; }
.pub-req { color: #dc2626; font-weight: 600; }
.pub-cat-tr {
  display: inline-block; margin-left: 8px; font-size: 11.5px;
  color: #2563eb; background: #eef4ff; border-radius: 999px; padding: 1px 8px;
}
.pub-fld-zh { color: #94a3b8; font-size: 11px; font-weight: 400; line-height: 1.3; }
.pub-attr-zh { color: #1e293b; font-weight: 600; }
.pub-attr-ru { color: #94a3b8; font-size: 11px; line-height: 1.3; margin-top: 2px; word-break: break-word; }
.pub-row { margin-bottom: 16px; }
.pub-label { display: block; font-size: 12.5px; font-weight: 600; color: #475569; margin-bottom: 6px; }
.pub-inline { display: flex; align-items: center; gap: 10px; }
.pub-inline select { max-width: 380px; }
.pub-cat-cur {
  font-size: 12.5px; color: #475569; background: #f7f9fd;
  border: 1px dashed var(--border, #e5e9f2); border-radius: 8px; padding: 7px 10px; margin-bottom: 8px;
}
/* 采集页面包屑：类目识别按它逐层对齐，显示出来供核对 */
.pub-cat-col { margin-top: 4px; color: #64748b; font-size: 11.5px; line-height: 1.5; }
.pub-cat-col.w { color: #b45309; }
/* 面包屑 vs Ozon 类目 的叶子一致性徽标 */
.pub-cat-badge {
  display: inline-block; margin-left: 8px; font-size: 11px; padding: 1px 7px;
  border-radius: 999px; border: 1px solid transparent; white-space: nowrap;
}
.pub-cat-badge.ok { color: #047857; background: #ecfdf5; border-color: #a7f3d0; }
.pub-cat-badge.warn { color: #b45309; background: #fffbeb; border-color: #fde68a; }
.pub-cat-srch { display: flex; gap: 8px; margin-bottom: 8px; }
.pub-cat-srch .input { flex: 1; }
.pub-cat-list { display: grid; gap: 6px; max-height: 190px; overflow: auto; }
.pub-cat-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  text-align: left; background: #fff; border: 1px solid var(--border, #e5e9f2);
  border-radius: 8px; padding: 8px 10px; cursor: pointer; font-size: 12.5px;
}
.pub-cat-item:hover { border-color: var(--blue, #2563eb); background: #f5f9ff; }
.pub-cat-name { color: var(--ink, #1e293b); }
.pub-cat-zh {
  font-size: 11px; padding: 1px 7px; border-radius: 999px; font-weight: 600;
  background: #eef4ff; color: #2563eb; white-space: nowrap;
}
/* 类目级联选择器（参考妙手：逐级点选 + 面包屑 + 最近使用） */
.pub-cascader {
  border: 1px solid var(--border, #e5e9f2); border-radius: 10px;
  background: #fff; margin-bottom: 8px; overflow: hidden;
}
.pc-bread {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px;
  padding: 7px 10px; font-size: 12px; color: #64748b;
  background: #f7f9fd; border-bottom: 1px solid var(--border, #e5e9f2);
}
.pc-crumb { cursor: pointer; color: #64748b; }
.pc-crumb:hover { color: var(--blue, #2563eb); }
.pc-crumb:last-child { color: var(--ink, #1e293b); font-weight: 600; cursor: default; }
.pc-sep { color: #cbd5e1; }
.pc-cols { display: flex; overflow-x: auto; max-height: 280px; }
.pc-col {
  min-width: 200px; flex: 0 0 auto; max-height: 280px; overflow-y: auto;
  border-right: 1px solid var(--border, #e5e9f2); padding: 4px;
}
.pc-col:last-child { border-right: none; }
.pc-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; text-align: left; background: none; border: 0; border-radius: 6px;
  padding: 6px 8px; cursor: pointer; font-size: 12.5px; color: var(--ink, #1e293b);
}
.pc-item:hover { background: #f5f9ff; }
.pc-item.on { background: #eef4ff; color: #2563eb; font-weight: 600; }
.pc-item-n { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-item-end { font-size: 11px; color: #94a3b8; flex-shrink: 0; }
.pc-item:hover .pc-item-end { color: var(--blue, #2563eb); }
.pc-arrow { font-size: 14px; line-height: 1; }
.pc-recent {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  padding: 7px 10px; font-size: 12px; border-top: 1px solid var(--border, #e5e9f2);
  background: #fcfdff; min-height: 34px;
}
.pc-recent-t { color: #64748b; font-weight: 600; flex-shrink: 0; }
.pc-chip {
  max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 11.5px; padding: 3px 10px; border-radius: 999px; cursor: pointer;
  border: 1px solid #dbe7ff; background: #eef4ff; color: #2563eb;
}
.pc-chip:hover { background: #dbe7ff; }
.pub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 14px; margin-bottom: 8px; }
.pub-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; color: #64748b; }
.pub-grid .pub-span2 { grid-column: span 2; }
.pub-grid .input { height: 32px; font-size: 12.5px; }
@media (max-width: 760px) { .pub-grid { grid-template-columns: repeat(2, 1fr); } }
.pub-attr-head { display: flex; align-items: center; justify-content: space-between; }
.pub-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #64748b; cursor: pointer; }
.pub-attrs { max-height: 280px; overflow: auto; border-top: 1px dashed var(--border, #e5e9f2); padding-top: 4px; }
.pub-attr {
  display: grid; grid-template-columns: 220px 1fr; gap: 10px; align-items: center;
  padding: 6px 0; border-bottom: 1px dashed #eef1f7; font-size: 12.5px;
}
@media (max-width: 760px) { .pub-attr { grid-template-columns: 1fr; } }
.pub-attr-name { color: var(--ink-soft, #475569); }
.pub-attr.req .pub-attr-name i { color: #dc2626; font-style: normal; }
/* 必填缺失的提醒要显眼，否则用户直接点提交去撞 Ozon 的报错 */
.warn-txt { color: #dc2626; font-weight: 600; }
.auto-tag { color: #0f766e; background: #ccfbf1; border-radius: 4px; padding: 0 4px; }
.skip-tag { color: #9a3412; background: #ffedd5; border-radius: 4px; padding: 0 4px; }
.pub-attr-val { display: flex; align-items: center; gap: 6px; }
.pub-attr-val .input { height: 30px; font-size: 12.5px; padding: 4px 8px; }
.pub-result {
  margin-top: 6px; padding: 10px 12px; border-radius: 8px; font-size: 12.5px; line-height: 1.7;
  background: #f5f9ff; border: 1px solid #dfeaff; color: #334155;
}
.pub-result.err { background: #fff2f2; border-color: #ffd7d7; color: #b42318; }
.pub-res-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 3px 0; }
.pub-res-st { padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.pub-res-st.ok { background: #e8f7ee; color: #15803d; }
.pub-res-st.bad { background: #fde8e8; color: #b42318; }
.pub-res-st.wait { background: #fff4e5; color: #b45309; }
.pub-res-err { width: 100%; color: #b42318; font-size: 12px; }
.pub-res-warn { width: 100%; color: #b45309; font-size: 12px; margin-top: 2px; }
.sel-note {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: linear-gradient(90deg, #eef5ff, #f7fbff);
  border: 1px solid #dfeaff; border-radius: 10px;
  padding: 10px 14px; margin-bottom: 14px;
  font-size: 12.5px; color: #4a628a;
}
.sel-note-right { color: var(--blue); font-weight: 600; }

.sel-cols { display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; margin-top: 16px; }
@media (max-width: 1180px) { .sel-cols { grid-template-columns: 1fr; } }

.lg-sale { background: var(--blue); }
.lg-unit { background: #10b981; }

.seg-tabs-sm { padding: 2px; }
.seg-tabs-sm .seg-tab { padding: 5px 11px; font-size: 12.5px; }

/* 类目大盘 */
.sel-cats { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }
.sel-cat-row { font-size: 13px; }
.sel-cat-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 5px; }
.sel-cat-name { color: var(--text); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sel-cat-val { color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sel-cat-val b { color: var(--text); }
.sel-cat-bar { height: 8px; border-radius: 5px; background: #eef2f8; overflow: hidden; }
.sel-cat-bar i {
  display: block; height: 100%; border-radius: 5px;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  transition: width .5s ease;
}
.sel-cat-row:nth-child(2) .sel-cat-bar i { background: linear-gradient(90deg, #6366f1, #818cf8); }
.sel-cat-row:nth-child(3) .sel-cat-bar i { background: linear-gradient(90deg, #0ea5e9, #38bdf8); }
.sel-cat-row:nth-child(4) .sel-cat-bar i { background: linear-gradient(90deg, #14b8a6, #2dd4bf); }
.sel-cat-row:nth-child(n+5) .sel-cat-bar i { background: linear-gradient(90deg, #94a3b8, #cbd5e1); }

/* 广告分析 · 商品花费 TOP / 订单排名：带缩略图的排行行 */
.ads-prod-rank-row .sel-cat-top { align-items: center; }
.ads-prod-rank-name { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.ads-prod-rank-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ads-prod-rank-img {
  width: 30px; height: 30px; border-radius: 5px; object-fit: cover;
  border: 1px solid var(--border); background: #f1f3f5; flex-shrink: 0;
}
.ads-prod-rank-img.ph { display: inline-block; }

/* 商品机会榜 */
.sel-sku-wrap { overflow-x: auto; }
.sel-sku-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sel-sku-table th {
  text-align: right; color: var(--text-2); font-weight: 500; font-size: 12px;
  padding: 9px 10px; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.sel-sku-table th:first-child, .sel-sku-table th.l { text-align: left; }
/* 可排序表头：悬停变色 + 排序方向箭头 */
.sel-sku-table th.sortable { cursor: pointer; user-select: none; transition: color .15s, background .15s; }
.sel-sku-table th.sortable:hover { color: #2563eb; background: #f5f8ff; }
.sel-sku-table .sort-ind {
  display: inline-block; width: 12px; margin-left: 2px; font-size: 10px; color: #94a3b8;
}
.sel-sku-table .sort-ind.asc, .sel-sku-table .sort-ind.desc { color: #2563eb; font-weight: 700; }
.sel-pot { color: #7c3aed; font-weight: 600; }
.sel-sku-table td {
  padding: 8px 10px; border-bottom: 1px solid #f0f2f5;
  text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.sel-sku-table td.l { text-align: left; }
.sel-sku-table tr:last-child td { border-bottom: 0; }
.sel-sku-table tbody tr:hover td { background: #f7faff; }
.sel-sku-table .idx {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 6px; font-size: 11px; font-weight: 700;
  background: #eef2f8; color: #64748b;
}
.sel-sku-table tr:nth-child(1) .idx { background: #fff4e0; color: #d97706; }
.sel-sku-table tr:nth-child(2) .idx { background: #eef2f8; color: #475569; }
.sel-sku-table tr:nth-child(3) .idx { background: #fbeee4; color: #b45309; }
.sel-prod { display: flex; align-items: center; gap: 10px; min-width: 260px; max-width: 420px; }
.sel-prod img, .sel-prod .ph {
  width: 38px; height: 50px; border-radius: 6px; object-fit: cover;
  border: 1px solid var(--border); background: #f1f3f5; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: #b6bfcc; font-size: 15px;
}
.sel-prod .pname { font-size: 13px; color: var(--text); line-height: 1.4; max-height: 3.6em; overflow: hidden; }
.sel-prod .pmeta { font-size: 11.5px; color: var(--text-2); margin-top: 2px; }
/* 采集箱里「已自动识别 Ozon 类目」标记 */
.col-cat-ok { color: var(--green); font-weight: 500; }
.sel-bar-cell { display: inline-flex; align-items: center; gap: 7px; justify-content: flex-end; }
.sel-mini-bar { width: 48px; height: 5px; border-radius: 3px; background: #eef2f8; overflow: hidden; }
.sel-mini-bar i { display: block; height: 100%; background: var(--blue); border-radius: 3px; }
.sel-conv { font-weight: 600; }
.sel-conv.hi { color: var(--green); }
.sel-conv.lo { color: #ef4444; }
.sel-empty { padding: 26px 0; text-align: center; color: var(--text-2); font-size: 13px; }

/* ---------- 广告推广：当天数据 + 商品明细 + 优化建议 ---------- */
.ads-day-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 10px; font-size: 13px; font-weight: 600;
  background: #eef4ff; color: var(--blue); border: 1px solid #d8e4ff;
  font-variant-numeric: tabular-nums;
}

.ads-advice-list { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.ads-advice-item {
  border: 1px solid var(--border); border-left: 3px solid #cbd5e1;
  border-radius: 10px; padding: 11px 14px; background: #fbfcfe;
}
.ads-advice-item.lv-red { border-left-color: var(--red); background: #fef8f8; }
.ads-advice-item.lv-yellow { border-left-color: var(--orange); background: #fffcf5; }
.ads-advice-item.lv-green { border-left-color: var(--green); background: #f7fdf9; }
.ads-advice-top { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.ads-advice-lv {
  font-size: 11.5px; font-weight: 700; padding: 2px 7px; border-radius: 6px;
  background: #eef2f8; color: #64748b; white-space: nowrap;
}
.lv-red .ads-advice-lv { background: #fde8e8; color: #b91c1c; }
.lv-yellow .ads-advice-lv { background: #fff0d6; color: #b45309; }
.lv-green .ads-advice-lv { background: #e3f6ea; color: #15803d; }
.ads-advice-title { font-weight: 600; font-size: 13.5px; color: var(--text); }
.ads-advice-tag {
  margin-left: auto; font-size: 11.5px; color: var(--text-2);
  background: #f1f3f5; padding: 2px 8px; border-radius: 6px; white-space: nowrap;
}
.ads-advice-desc { margin-top: 6px; font-size: 12.5px; line-height: 1.65; color: #475569; }

.ads-camp-table td { vertical-align: middle; }
.ads-camp-row { cursor: pointer; }
.ads-camp-row:hover td { background: #f2f7ff; }
.ads-camp-row.open td { background: #eef5ff; }
/* 活动明细口径切换（今日 / 近 7 天 / 停投归档） */
.ads-scope { display: inline-flex; gap: 4px; padding: 3px; margin: 0 0 12px; background: #f1f3f7; border-radius: 10px; }
.ads-scope-btn {
  border: 0; background: transparent; cursor: pointer; font-family: inherit;
  font-size: 12.5px; color: var(--text-2); padding: 6px 14px; border-radius: 8px;
  transition: background .15s ease, color .15s ease;
}
.ads-scope-btn:hover { color: var(--text); }
.ads-scope-btn.active { background: var(--card); color: var(--blue); font-weight: 600; box-shadow: 0 1px 3px rgba(15,23,42,.1); }
/* 广告页「为什么没数据」提示横幅 */
.ads-notice { margin-top: 12px; padding: 10px 14px; border-radius: 10px; background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; font-size: 12.5px; line-height: 1.8; }
.ads-notice b { color: #7c2d12; }
.ads-caret {
  display: inline-block; width: 14px; color: #94a3b8; font-size: 11px;
  transition: transform .16s ease;
}
.ads-caret.open { transform: rotate(90deg); color: var(--blue); }

.ads-sub-row > td { padding: 0 !important; background: #fafbfd !important; }
.ads-sub-empty { padding: 12px 14px 14px 40px; font-size: 12.5px; color: var(--text-2); }
.ads-prod-table { width: 100%; border-collapse: collapse; font-size: 12.5px; margin: 2px 0 10px; }
.ads-prod-table th {
  text-align: right; color: #8b95a6; font-weight: 500; font-size: 11.5px;
  padding: 7px 9px; border-bottom: 1px solid #e8ecf2; white-space: nowrap;
  background: #f6f8fb;
}
.ads-prod-table th:first-child, .ads-prod-table th.l { text-align: left; }
.ads-prod-table th:first-child { padding-left: 40px; }
.ads-prod-table td {
  padding: 7px 9px; border-bottom: 1px solid #f1f3f7;
  text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.ads-prod-table td.l { text-align: left; white-space: normal; }
.ads-prod-table td.l:first-child { padding-left: 40px; }
.ads-prod-table tr:last-child td { border-bottom: 0; }
.ads-prod-table tbody tr:hover td { background: #f4f8ff; }
.ads-pcell { display: flex; align-items: center; gap: 10px; min-width: 220px; max-width: 340px; }
.ads-pimg {
  width: 36px; height: 48px; border-radius: 6px; object-fit: cover;
  border: 1px solid var(--border); background: #f1f3f5; flex-shrink: 0;
}
.ads-pimg.ph { display: block; }
.ads-pcell .pname { font-size: 12.5px; color: var(--text); line-height: 1.4; max-height: 2.8em; overflow: hidden; }
.ads-pcell .pmeta { font-size: 11px; color: var(--text-2); margin-top: 2px; }
/* 广告明细 · 类目排名（数字越小越靠前） */
.ads-rank { display: inline-block; min-width: 26px; text-align: center; font-weight: 600; color: var(--text); }
.ads-rank.rank-good { color: #15803d; }
.ads-rank.rank-bad { color: #b91c1c; }
/* 广告分析 · 投放商品类目排名榜 */
.ads-rank-table td { vertical-align: middle; }
.ads-rank-no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%; font-size: 12px; font-weight: 700;
  background: #eef1f6; color: #64748b;
}
.ads-rank-no.rank-top1 { background: #fbbf24; color: #7c2d12; }
.ads-rank-no.rank-top2 { background: #cbd5e1; color: #334155; }
.ads-rank-no.rank-top3 { background: #f0b27a; color: #7c2d12; }

.ads-dg {
  display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 8px;
  border-radius: 6px; background: #f1f3f5; color: #64748b; cursor: help; white-space: nowrap;
}
.ads-dg.red { background: #fde8e8; color: #b91c1c; }
.ads-dg.yellow { background: #fff0d6; color: #b45309; }
.ads-dg.green { background: #e3f6ea; color: #15803d; }

/* 建议条目：样本量标签 + 样本不足清单 + 趋势图例 */
.ads-advice-sample {
  font-size: 11.5px; color: #64748b; background: #eef2f8;
  padding: 2px 8px; border-radius: 6px; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.ads-advice-item.lv-info { border-left-color: #94a3b8; background: #f8fafc; }
.lv-info .ads-advice-lv { background: #e2e8f0; color: #475569; }

.ads-weak { margin-top: 14px; border-top: 1px dashed var(--border); padding-top: 12px; }
.ads-weak-title { font-size: 12.5px; color: var(--text-2); margin-bottom: 8px; }
.ads-weak-list { display: flex; flex-wrap: wrap; gap: 8px; }
.ads-weak-item {
  display: inline-flex; align-items: center; gap: 6px; max-width: 320px;
  font-size: 12px; color: #475569; background: #f6f8fb;
  border: 1px solid #e8ecf2; border-radius: 8px; padding: 4px 9px;
  cursor: help; overflow: hidden;
}
.ads-weak-item i {
  font-style: normal; color: #94a3b8; font-variant-numeric: tabular-nums; white-space: nowrap;
}

.ads-legend { display: flex; gap: 16px; justify-content: center; margin-top: 6px; font-size: 12px; color: var(--text-2); }
.ads-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ads-legend i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }

/* ============ 广告分析页视觉优化（仅作用于本页，不影响其他页面） ============ */
/* 视图标题：左侧蓝色强调条 */
#view-ads .view-head h2 { padding-left: 13px; position: relative; }
#view-ads .view-head h2::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 22px; border-radius: 3px;
  background: linear-gradient(180deg, #005bff, #5b8cff);
}
/* KPI 卡片：渐变底 + 顶部色带 + 悬浮抬升 + 数值蓝色 */
#view-ads .kpi-grid { gap: 14px; }
#view-ads .kpi-card {
  position: relative; overflow: hidden; padding: 15px 16px;
  background: linear-gradient(160deg, #ffffff 0%, #f7faff 100%);
  border: 1px solid #e6ecf6; border-radius: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
#view-ads .kpi-card::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, #005bff, #5b8cff, #38bdf8);
  opacity: .85;
}
#view-ads .kpi-card:hover {
  transform: translateY(-3px); border-color: #c9d9f5;
  box-shadow: 0 8px 22px rgba(0, 91, 255, .12);
}
#view-ads .kpi-label { font-weight: 500; }
#view-ads .kpi-value { color: var(--blue); font-size: 23px; letter-spacing: -.5px; }
#view-ads .kpi-sub { color: #8b95a6; }
/* 卡片统一投影与标题层次 */
#view-ads .card { box-shadow: 0 1px 2px rgba(15, 23, 42, .02), 0 6px 20px rgba(15, 23, 42, .03); }
#view-ads .card-head-row h3 { font-weight: 700; letter-spacing: .2px; }
/* 商品花费 TOP / 活动花费分布：条形图数值更醒目 */
#view-ads .sel-cat-val b { color: var(--blue); font-size: 13px; }
#view-ads .sel-cat-row:nth-child(-n+3) .sel-cat-name { font-weight: 600; }
/* 表格：表头更清晰、行 hover 更柔和 */
#view-ads .sel-sku-table thead th, #view-ads .ads-prod-table thead th { background: #f7f9fc; font-weight: 600; }
#view-ads .sel-sku-table tbody tr:hover td, #view-ads .ads-prod-table tbody tr:hover td { background: #f3f8ff; }
/* 类目排名榜：前三徽章加光泽 */
#view-ads .ads-rank-no { box-shadow: 0 1px 2px rgba(15, 23, 42, .08); }
#view-ads .ads-rank-no.rank-top1 { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #fff; }
#view-ads .ads-rank-no.rank-top2 { background: linear-gradient(135deg, #cbd5e1, #94a3b8); color: #fff; }
#view-ads .ads-rank-no.rank-top3 { background: linear-gradient(135deg, #f0b27a, #d97706); color: #fff; }
/* 优化建议：卡片悬浮微动效 + 等级标签更饱满 */
#view-ads .ads-advice-item { transition: transform .15s ease, box-shadow .15s ease; }
#view-ads .ads-advice-item:hover { transform: translateX(2px); box-shadow: 0 4px 14px rgba(15, 23, 42, .06); }
#view-ads .ads-advice-lv { font-weight: 700; letter-spacing: .3px; }
/* 口径切换按钮：选中态更突出 */
#view-ads .ads-scope-btn.active { box-shadow: 0 1px 4px rgba(0, 91, 255, .25); }
/* 图表容器：浅色底衬 */
#view-ads .chart-box { border-radius: 10px; }

/* ---------- AI 换主图（订单二级页面） ---------- */
.ai-top { display: grid; grid-template-columns: 300px 1fr; gap: 16px; align-items: start; }
@media (max-width: 900px) { .ai-top { grid-template-columns: 1fr; } }
.ai-pane h3 { margin-bottom: 12px; }
.ai-cur {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 3 / 4; background: #fff; border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
}
.ai-cur-img { width: 100%; height: 100%; object-fit: contain; }
.ai-cur-ph { color: var(--text-2); font-size: 13px; padding: 20px; text-align: center; }
.ai-meta { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.ai-kv { display: flex; gap: 10px; font-size: 12.5px; align-items: flex-start; }
.ai-kv span { color: var(--text-2); min-width: 64px; flex-shrink: 0; }
.ai-kv b { font-weight: 500; word-break: break-word; line-height: 1.5; }
/* SKU 行内「复制SKU」小按钮 */
.ai-copy-sku {
  border: 1px solid var(--border); background: #f1f3f5; color: var(--text);
  border-radius: 6px; padding: 1px 8px; font-size: 12px; font-weight: 400;
  cursor: pointer; margin-left: 8px; vertical-align: 1px; transition: background 0.15s;
}
.ai-copy-sku:hover { background: #e4e7ea; }
.ai-copy-sku:active { background: #d8dce1; }
/* 生成按钮 + 查看 SKU 并排，生成按钮占主位 */
.ai-actions { display: flex; gap: 10px; align-items: stretch; }
.ai-actions .btn-primary { flex: 1; }
.ai-actions .btn-ghost { flex: 0 0 auto; white-space: nowrap; }
/* <a> 当按钮用时去掉下划线并对齐基线 */
a.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.ai-rules {
  background: #f8fafc; border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; font-size: 12.5px; color: var(--text-2); margin-bottom: 14px;
}
.ai-rules b { display: block; color: var(--text); margin-bottom: 6px; }
.ai-rules ul { padding-left: 16px; display: flex; flex-direction: column; gap: 4px; }
.ai-nokey {
  background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412;
  border-radius: 10px; padding: 10px 12px; font-size: 12.5px; margin-bottom: 12px;
}
.ai-nokey a { color: #c2410c; font-weight: 600; }
.ai-result-box {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; min-height: 320px; padding: 16px;
  background: #fafbfd; border: 1px dashed var(--border); border-radius: var(--radius);
}
.ai-new-img {
  max-width: 100%; max-height: 520px; border-radius: 10px; background: #fff;
  box-shadow: 0 10px 30px rgba(16, 30, 54, .12);
}
.ai-result-meta { display: flex; gap: 14px; font-size: 12px; color: var(--text-2); }
.ai-empty { color: var(--text-2); font-size: 13px; text-align: center; }
.ai-empty-ico { font-size: 30px; opacity: .55; }
.ai-loading { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 13px; }
.ai-spin {
  display: inline-block; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid #d8e4ff; border-top-color: var(--blue);
  animation: ai-spin .8s linear infinite;
}
@keyframes ai-spin { to { transform: rotate(360deg); } }
.ai-err { color: var(--red); font-size: 13px; line-height: 1.7; text-align: left; padding: 6px 2px; }
.ai-hist-row { display: flex; gap: 10px; flex-wrap: wrap; }
.ai-hist {
  display: block; width: 88px; aspect-ratio: 3 / 4; border-radius: 8px;
  overflow: hidden; border: 1px solid var(--border); background: #fff;
}
.ai-hist img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- 手机号注册登录 / 短信配置 ---------- */
.btn-xs { padding: 4px 10px; font-size: 12px; margin-right: 6px; border-radius: 7px; }
.sms-block { padding: 4px 0 2px; }
.sms-block.hidden { display: none; }
#users-list .sel-sku-table td { vertical-align: middle; }
#users-list .btn-xs:last-child { margin-right: 0; }

/* ---------- 应用内确认弹窗 ---------- */
.uic-mask {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(15, 23, 42, .45);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.uic-mask.hidden { display: none; }
/* 确认/输入弹窗必须盖在业务弹窗（水印选择、发布设置等）之上：同 z-index 时 DOM 靠后的会盖住它，导致「删除水印」的确认框看不见也点不到 */
#ui-confirm-mask { z-index: 10100; }
.uic-box {
  width: 100%; max-width: 380px;
  background: #fff; border-radius: 14px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, .25);
  padding: 22px 22px 18px;
  animation: uic-pop .16s ease-out;
}
@keyframes uic-pop { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.uic-title { font-size: 16px; font-weight: 700; color: var(--ink, #1e293b); margin-bottom: 10px; }
.uic-msg { font-size: 14px; line-height: 1.7; color: var(--ink-soft, #475569); white-space: pre-line; }
.uic-acts { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.uic-opts { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.uic-opts.hidden, .uic-acts.hidden { display: none; }
.uic-opt { width: 100%; text-align: left; justify-content: flex-start; }
.uic-box .input { margin-top: 14px; width: 100%; }
#uic-input.hidden { display: none; }

/* 用户店铺明细弹窗 */
.uic-box.uic-wide { max-width: 640px; }
.ustore-body { max-height: 60vh; overflow: auto; }
.ustore-empty { font-size: 14px; color: var(--ink-soft, #475569); padding: 18px 0; text-align: center; }
.ustore-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ustore-table th, .ustore-table td {
  border: 1px solid var(--border, #e5e9f2); padding: 8px 10px; text-align: left;
  vertical-align: top; word-break: break-all;
}
.ustore-table th { background: var(--bg, #f4f6fb); font-weight: 600; white-space: nowrap; }
.ustore-key { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; }
.ustore-copy {
  border: none; background: none; color: var(--primary, #2563eb); cursor: pointer;
  font-size: 12px; padding: 0 0 0 6px; vertical-align: middle;
}
.ustore-copy:hover { text-decoration: underline; }

/* ---------- 管理后台（admin.html） ---------- */
.admin-body { margin: 0; }
.al-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--bg, #f4f6fb); padding: 20px;
}
.al-login-card { width: 100%; max-width: 380px; }
.al-logo { font-size: 18px; font-weight: 700; margin-bottom: 18px; color: var(--ink, #1e293b); }
.al-msg { margin-top: 10px; color: var(--red); min-height: 18px; }
.al-shell { display: flex; min-height: 100vh; }
.al-side {
  width: 210px; flex: 0 0 auto; background: #fff; border-right: 1px solid var(--border, #e5e9f2);
  display: flex; flex-direction: column; padding: 18px 14px;
}
.al-logo-sm { font-size: 15px; font-weight: 700; padding: 4px 10px 16px; color: var(--ink, #1e293b); }
.al-nav { display: flex; flex-direction: column; gap: 4px; }
.al-nav-item {
  display: block; padding: 10px 12px; border-radius: 9px; text-decoration: none;
  color: var(--ink-soft, #475569); font-size: 14px; font-weight: 600;
}
.al-nav-item:hover { background: var(--bg, #f4f6fb); }
.al-nav-item.active { background: var(--blue, #2f6bff); color: #fff; }
.al-side-foot { margin-top: auto; padding: 10px; display: flex; flex-direction: column; gap: 10px; }
.al-link { font-size: 13px; color: var(--blue, #2f6bff); text-decoration: none; }
.al-main { flex: 1; padding: 24px; max-width: 860px; }
.al-page.hidden { display: none; }

/* ---------- 新订单提醒（右下角弹卡） ---------- */
.notify-toggle.off { color: var(--text-2); border-color: var(--border); background: #fff; }

.order-alerts {
  position: fixed; right: 20px; bottom: 20px; z-index: 120;
  display: flex; flex-direction: column; gap: 10px; align-items: flex-end;
  pointer-events: none; max-width: calc(100vw - 40px);
}
.order-alert {
  pointer-events: auto; position: relative; overflow: hidden;
  width: 330px; max-width: 100%;
  background: var(--card); border: 1px solid #f1d5d1; border-left: 4px solid var(--red);
  border-radius: 12px; box-shadow: 0 14px 40px rgba(20, 30, 60, 0.18);
  padding: 12px 14px 14px;
  animation: oa-in 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.order-alert.out { animation: oa-out 0.24s ease forwards; }
@keyframes oa-in {
  from { opacity: 0; transform: translateX(24px) scale(0.97); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes oa-out {
  to { opacity: 0; transform: translateX(24px) scale(0.97); }
}
.oa-head { display: flex; align-items: center; gap: 8px; }
.oa-badge {
  background: var(--red); color: #fff; font-size: 12px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px; letter-spacing: 0.3px;
}
.oa-time { font-size: 12px; color: var(--text-2); margin-left: auto; }
.oa-close {
  border: none; background: transparent; color: #9aa3af; font-size: 18px; line-height: 1;
  cursor: pointer; padding: 0 2px; border-radius: 6px;
}
.oa-close:hover { background: #f3f4f6; color: var(--text); }
.oa-amount { font-size: 22px; font-weight: 800; margin-top: 8px; color: var(--text); letter-spacing: -0.3px; }
.oa-meta { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.oa-items {
  font-size: 12.5px; color: #374151; margin-top: 6px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* 新单提示卡：商品缩略图 */
.oa-thumbs { display: flex; gap: 8px; margin-top: 9px; }
.oa-thumb {
  position: relative; width: 54px; height: 54px; flex: 0 0 54px;
  border-radius: 10px; overflow: hidden; background: #f5f6f8;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #9aa3af;
}
.oa-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; animation: oa-thumb-in 0.25s ease; }
@keyframes oa-thumb-in { from { opacity: 0; } to { opacity: 1; } }
.oa-thumb-ph { line-height: 1; }
.oa-thumb .oa-qty {
  position: absolute; right: 2px; bottom: 2px; line-height: 15px;
  background: rgba(17, 24, 39, 0.78); color: #fff; font-size: 10.5px; font-weight: 700;
  padding: 0 4px; border-radius: 6px; letter-spacing: 0;
}
.oa-thumb-more {
  font-size: 13px; font-weight: 700; color: var(--text-2); background: #eef1f5; border-style: dashed;
}
.oa-acts { display: flex; gap: 8px; margin-top: 10px; }
.oa-acts button {
  border-radius: 8px; font-size: 13px; padding: 6px 12px; cursor: pointer; border: 1px solid var(--border);
  background: #fff; color: var(--text-2);
}
.oa-acts button:hover { background: #f7f8fa; }
.oa-acts .oa-go { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 600; }
.oa-acts .oa-go:hover { background: var(--blue-dark); }
.oa-bar {
  position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--red), #ff8a65);
  transform-origin: left center; animation: oa-bar 15s linear forwards;
}
@keyframes oa-bar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
/* 多笔新单合并堆叠卡：窗口内逐行列出每笔订单 */
.oa-stack { margin-top: 8px; display: flex; flex-direction: column; }
.oa-row {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 0; border-bottom: 1px dashed #eef0f4;
  font-size: 12.5px; min-width: 0;
}
.oa-row:last-child { border-bottom: 0; }
.oa-row-time { flex: 0 0 38px; color: var(--text-2); }
.oa-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.oa-row-main b { font-size: 12.5px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oa-row-main em { font-style: normal; font-size: 11px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oa-row-amt { flex: 0 0 auto; font-weight: 700; color: var(--text); }
.oa-row-more { color: var(--text-2); font-size: 12px; justify-content: center; padding-top: 7px; }

@media (max-width: 560px) {
  .order-alerts { right: 10px; left: 10px; bottom: 10px; align-items: stretch; }
  .order-alert { width: auto; }
}

/* 🤖 智能采集引擎状态卡 */
.col-engine-card { margin: 0 0 14px; padding: 14px 16px; }
.col-engine-card .card-head-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.col-engine-card .card-head-row h3 { margin: 0; font-size: 15px; }
.col-eng-quota { font-size: 13px; margin: 8px 0 6px; }
.col-eng-quota b { color: var(--brand, #2563eb); font-size: 15px; }
.col-eng-logs {
  max-height: 140px; overflow-y: auto; background: var(--bg-soft, #f6f8fb);
  border-radius: 8px; padding: 8px 10px; font-size: 12px; line-height: 1.8; color: var(--text-2, #64748b);
}
.col-metrics { color: var(--text-2, #64748b); }
.col-metrics b { color: var(--text, #0f172a); }

/* ---------- 1688 采集来源标记 + 跨境定价公式 ---------- */
.col-src {
  display: inline-block; background: #fff1e6; color: #d4581a; border: 1px solid #f7cfae;
  font-size: 11px; font-weight: 700; line-height: 16px; padding: 0 6px; border-radius: 5px;
  margin-right: 6px; vertical-align: 1px; letter-spacing: 0.2px;
}
.col-price-box {
  border: 1px solid var(--border); border-radius: 10px; background: #fbfcfe;
  padding: 0 12px; margin: 10px 0 12px;
}
.col-price-box > summary {
  cursor: pointer; padding: 9px 0; font-size: 13px; font-weight: 600; color: var(--text);
  display: flex; align-items: center; gap: 8px; list-style: none;
}
.col-price-box > summary::-webkit-details-marker { display: none; }
.col-price-box > summary::before { content: '▸'; color: var(--text-2); font-size: 11px; }
.col-price-box[open] > summary::before { content: '▾'; }
.col-price-box .hint { font-weight: 400; }
.col-price-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 10px 14px; padding-bottom: 10px;
}
.col-price-grid label { font-size: 12.5px; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.col-price-grid .input { width: 76px; padding: 5px 8px; font-size: 13px; }
.col-price-foot {
  display: flex; align-items: center; gap: 10px; padding: 0 0 12px;
  border-top: 1px dashed var(--border); padding-top: 10px;
}
.col-price-foot .hint { margin: 0; font-size: 12.5px; }

/* 💰 财务明细 */
.fin-tabs { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; flex-wrap: wrap; }
.fin-tabs .col-tabs-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.fin-filter-row { display: flex; align-items: center; gap: 8px; }
.fin-table td:nth-child(1), .fin-table td:nth-child(3) { white-space: nowrap; font-size: 12px; }
.fin-table td:nth-child(5) { max-width: 340px; white-space: normal; font-size: 12px; color: var(--text-2); }
.fin-table td:nth-child(6) { text-align: right; font-weight: 600; }
.fin-pos { color: var(--green, #16a34a); }
.fin-neg { color: var(--red, #dc2626); }
.fin-pager { display: flex; align-items: center; gap: 8px; justify-content: center; padding: 12px 0 0; font-size: 13px; color: var(--text-2); }
.fin-pager button { padding: 4px 12px; }

/* 🖼️ AI 商品套图 */
.suite-grid { display: grid; grid-template-columns: minmax(320px, 420px) 1fr; gap: 14px; align-items: start; }
@media (max-width: 1000px) { .suite-grid { grid-template-columns: 1fr; } }
.suite-drop {
  border: 1.5px dashed var(--border); border-radius: 10px; padding: 18px; text-align: center;
  cursor: pointer; transition: border-color .15s, background .15s; margin-bottom: 10px;
}
.suite-drop:hover, .suite-drop.drag { border-color: var(--primary, #4f6ef2); background: rgba(79,110,242,.05); }
.suite-drop-icon { font-size: 26px; margin-bottom: 6px; }
.suite-drop-inner .hint { margin-top: 4px; }
.suite-refs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.suite-ref { position: relative; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); aspect-ratio: 1 / 1; background: var(--bg-2, #f4f5f7); }
.suite-ref img { width: 100%; height: 100%; object-fit: cover; display: block; }
.suite-ref-del {
  position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(0,0,0,.55); color: #fff; border: none; cursor: pointer; font-size: 12px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.suite-form { display: flex; flex-direction: column; gap: 8px; }
.suite-form .input { width: 100%; }
.suite-form textarea.input { resize: vertical; }
.suite-kinds { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.suite-kind {
  display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--border);
  border-radius: 8px; cursor: pointer; font-size: 13px; user-select: none;
}
.suite-kind:hover { border-color: var(--primary, #4f6ef2); }
.suite-kind input { accent-color: var(--primary, #4f6ef2); }
.suite-kind b { font-weight: 600; }
.suite-kind .hint { margin: 0; font-size: 11.5px; }
.suite-kind.checked { border-color: var(--primary, #4f6ef2); background: rgba(79,110,242,.06); }
.suite-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.suite-item { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--bg-2, #f4f5f7); position: relative; }
.suite-item-img { aspect-ratio: 3 / 4; width: 100%; object-fit: cover; display: block; cursor: zoom-in; background: var(--bg-2, #eef0f2); }
.suite-item-meta { padding: 6px 8px; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.suite-item-meta b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suite-item-meta .suite-item-btns { display: flex; gap: 4px; flex-shrink: 0; }
.suite-item-btns button { padding: 2px 7px; font-size: 12px; }
.suite-item.loading { display: flex; flex-direction: column; align-items: center; justify-content: center; aspect-ratio: 3 / 4; gap: 8px; color: var(--text-2); font-size: 12.5px; }
.suite-item.error { padding: 10px; font-size: 12px; color: var(--red, #dc2626); word-break: break-all; }
.suite-item.error .btn { margin-top: 6px; }
.suite-spin { width: 22px; height: 22px; border: 2.5px solid var(--border); border-top-color: var(--primary, #4f6ef2); border-radius: 50%; animation: suite-spin .8s linear infinite; }
@keyframes suite-spin { to { transform: rotate(360deg); } }
.suite-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.78); z-index: 300; display: flex; align-items: center; justify-content: center; cursor: zoom-out; }
.suite-lightbox img { max-width: 92vw; max-height: 92vh; border-radius: 8px; }

/* 🚀 新品螺旋 */
.spiral-form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.spiral-form-grid .input { width: 100%; }
.spiral-auto-row { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.spiral-auto-row input { accent-color: var(--primary, #4f6ef2); }
.spiral-form-foot { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.spiral-plans { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.spiral-plan { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; background: var(--bg-1, #fff); }
.spiral-plan-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spiral-plan-head b.sp-name { font-size: 14.5px; }
.sp-badge { padding: 2px 10px; border-radius: 20px; font-size: 12px; font-weight: 500; }
.sp-badge.p1 { background: var(--blue-50, #E6F1FB); color: var(--blue-700, #185FA5); }
.sp-badge.p2 { background: var(--green-50, #EAF3DE); color: var(--green-700, #3B6D11); }
.sp-badge.p3 { background: var(--purple-50, #EEEDFE); color: var(--purple-700, #534AB7); }
.sp-badge.done { background: var(--gray-100, #F1EFE8); color: var(--gray-700, #444441); }
.sp-badge.risk { background: var(--red-50, #FCEBEB); color: var(--red-700, #A32D2D); }
.sp-badge.warn { background: var(--amber-50, #FAEEDA); color: var(--amber-700, #854F0B); }
.spiral-plan-head .sp-actions { margin-left: auto; display: flex; gap: 6px; }
.spiral-plan-head .sp-actions .btn { padding: 3px 10px; font-size: 12.5px; }
.spiral-plan-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin: 12px 0 0; }
.spiral-plan-stats .sp-stat { background: var(--bg-2, #f4f5f7); border-radius: 8px; padding: 8px 10px; }
.spiral-plan-stats .sp-stat em { display: block; font-style: normal; font-size: 11.5px; color: var(--text-2); margin-bottom: 2px; }
.spiral-plan-stats .sp-stat b { font-size: 15px; }
.spiral-plan-stats .sp-stat b.neg { color: var(--red, #dc2626); }
.spiral-plan-stats .sp-stat b.pos { color: var(--green, #16a34a); }
.spiral-tasks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-top: 12px; }
.spiral-tasks .sp-task-group { border: 1px dashed var(--border); border-radius: 8px; padding: 8px 10px; }
.spiral-tasks .sp-task-group h4 { margin: 0 0 6px; font-size: 12.5px; font-weight: 500; color: var(--text-2); }
.spiral-tasks label { display: flex; align-items: center; gap: 6px; font-size: 12.5px; padding: 2px 0; cursor: pointer; }
.spiral-tasks input { accent-color: var(--primary, #4f6ef2); }
.spiral-detail { margin-top: 12px; border-top: 1px dashed var(--border); padding-top: 12px; }
.spiral-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.spiral-table th, .spiral-table td { padding: 6px 8px; border-bottom: 1px solid var(--border); text-align: center; white-space: nowrap; }
.spiral-table th { color: var(--text-2); font-weight: 500; font-size: 12px; }
.spiral-table td.sp-price-now { color: var(--primary, #4f6ef2); font-weight: 500; }
.spiral-price-log { margin-top: 10px; font-size: 12px; color: var(--text-2); max-height: 130px; overflow: auto; }
.spiral-price-log div { padding: 2px 0; }
.spiral-risks { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.spiral-risks .sp-risk { border-radius: 8px; padding: 7px 10px; font-size: 12.5px; }
.sp-risk.r-high { background: var(--red-50, #FCEBEB); color: var(--red-700, #A32D2D); }
.sp-risk.r-mid { background: var(--amber-50, #FAEEDA); color: var(--amber-700, #854F0B); }
.sp-risk.r-ok { background: var(--green-50, #EAF3DE); color: var(--green-700, #3B6D11); }

/* 广告分析页头部的付费口径切换（与页头按钮同排，去掉默认外边距） */
.head-actions .ads-scope { margin: 0; }
.head-actions .ads-scope-btn { padding: 5px 11px; font-size: 12px; }
@media (max-width: 720px) {
  #view-ads .view-head { flex-wrap: wrap; }
  .head-actions .ads-scope { order: 3; width: 100%; justify-content: center; }
}

/* ---------- 💎 积分中心（AI 换图 / AI 套图 按次计费） ---------- */
.credit-pill {
  display: flex; align-items: center; gap: 6px; width: 100%;
  padding: 8px 12px; margin-bottom: 10px;
  background: linear-gradient(135deg, #eef4ff 0%, #e6f0ff 100%);
  border: 1px solid #d8e6ff; border-radius: 10px;
  font: inherit; color: var(--text); cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .1s;
}
.credit-pill:hover { border-color: #b9d2ff; box-shadow: 0 2px 10px rgba(0,91,255,.12); }
.credit-pill:active { transform: scale(.99); }
.credit-pill-ico { font-size: 14px; }
.credit-pill b { font-size: 15px; font-weight: 700; color: var(--blue); letter-spacing: .2px; }
.credit-pill em { font-size: 11px; font-style: normal; color: var(--text-2); }
.credit-pill.low b { color: var(--red); }
.credit-pill.low { background: #fff4f4; border-color: #ffd9d9; }

.credit-grid {
  display: grid; grid-template-columns: 300px minmax(0, 1fr);
  gap: 16px; margin-bottom: 16px;
}
@media (max-width: 900px) { .credit-grid { grid-template-columns: 1fr; } }

.credit-wallet {
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  background: linear-gradient(135deg, #005bff 0%, #003ea8 100%);
  border: none; color: #fff;
}
.credit-wallet-label { font-size: 12px; color: rgba(255,255,255,.78); }
.credit-wallet-num { display: flex; align-items: baseline; gap: 6px; }
.credit-wallet-num span { font-size: 34px; font-weight: 700; line-height: 1.1; letter-spacing: -0.5px; }
.credit-wallet-num em { font-size: 12px; font-style: normal; color: rgba(255,255,255,.78); }
.credit-wallet-yuan { font-size: 12px; color: rgba(255,255,255,.85); }
.credit-wallet-acts { display: flex; gap: 8px; margin-top: 10px; }
.credit-wallet-acts .btn-primary { background: #fff; color: var(--blue); }
.credit-wallet-acts .btn-primary:hover { background: #eef4ff; }
.credit-wallet-acts .btn-ghost { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.32); color: #fff; }
.credit-wallet-acts .btn-ghost:hover { background: rgba(255,255,255,.22); }

.credit-packs { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.credit-pack {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-width: 96px; padding: 10px 14px;
  background: #f8faff; border: 1px solid var(--border); border-radius: 10px;
  font: inherit; cursor: pointer; transition: all .15s;
}
.credit-pack:hover { border-color: #b9d2ff; background: #f2f7ff; }
.credit-pack.active { border-color: var(--blue); background: #e8efff; box-shadow: 0 0 0 2px rgba(0,91,255,.10) inset; }
.credit-pack b { font-size: 15px; font-weight: 700; color: var(--text); }
.credit-pack span { font-size: 11px; color: var(--text-2); }

.credit-amount-row { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.credit-amount-row .field { flex: 1 1 180px; margin-bottom: 0; }
.credit-amount-eq { font-size: 13px; color: var(--text-2); padding-bottom: 10px; }
.credit-amount-eq b { color: var(--blue); font-size: 15px; }

.credit-pay-body { display: flex; gap: 24px; flex-wrap: wrap; margin: 10px 0 14px; }
.credit-pay-info { flex: 1 1 260px; display: flex; flex-direction: column; gap: 8px; }
.credit-pay-kv { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; border-bottom: 1px dashed var(--border); padding-bottom: 6px; }
.credit-pay-kv span { color: var(--text-2); }
.credit-pay-kv b { font-weight: 600; }
.credit-pay-note { font-size: 12.5px; color: var(--text-2); line-height: 1.7; background: #fffdf5; border: 1px solid #ffecc7; border-radius: 8px; padding: 10px 12px; }
.credit-pay-qr { flex: 0 0 180px; text-align: center; }
.credit-pay-qr img { width: 180px; height: 180px; object-fit: contain; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.credit-pay-qr .hint { margin-top: 6px; font-size: 12px; }
.credit-pay-empty { width: 180px; height: 180px; border: 1px dashed var(--border); border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--text-2); font-size: 12.5px; text-align: center; padding: 10px; background: #fafbfc; }
.credit-pay-acts { display: flex; gap: 10px; flex-wrap: wrap; }

/* 微信支付扫码（自动到账） */
.credit-wx-qr { width: 180px; height: 180px; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 4px; margin: 0 auto; }
.credit-wx-qr img, .credit-wx-qr canvas { width: 172px !important; height: 172px !important; display: block; }
.credit-wx-tip { margin-top: 6px; font-size: 12px; color: var(--text-2); }
.credit-pay-done { border-style: solid; border-color: #c8ebd3; background: #f3fbf6; color: #1f9254; font-weight: 600; font-size: 13px; }

/* 后台：收款方式与微信支付参数 */
.pay-mode-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 14px 0 4px; padding: 10px 12px; background: #f7f9fc; border: 1px solid var(--border); border-radius: 9px; }
.pay-mode-label { font-size: 13px; color: var(--text-2); font-weight: 600; }
.wxpay-box { margin-top: 14px; padding: 14px; border: 1px solid #dfe8f6; border-radius: 10px; background: #fbfcff; }
.wxpay-head { margin-top: 0; }
.wxpay-acts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.pay-mode-hint { margin: 0 0 10px; }
.wxpay-guide { margin: 4px 0 14px; border: 1px solid var(--border); border-radius: 9px; background: #fff; padding: 10px 12px; }
.wxpay-guide summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--primary); }
.wxpay-guide ol { margin: 10px 0 8px; padding-left: 20px; font-size: 12.5px; line-height: 1.85; color: var(--text-2); }
.wxpay-guide li { margin-bottom: 4px; }
.wxpay-guide code { background: #f2f5f9; border-radius: 4px; padding: 1px 5px; font-size: 12px; color: var(--text-1); }
.wxpay-guide-tip { margin: 6px 0 0; font-size: 12.5px; line-height: 1.8; color: var(--text-2); background: #fffdf5; border: 1px solid #ffecc7; border-radius: 8px; padding: 8px 10px; }

/* AI 换图 / AI 套图 页面的积分提示行 */
.ai-credit {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 12px; padding: 9px 12px;
  background: #f6f8ff; border: 1px solid #e3ecff; border-radius: 9px;
  font-size: 12.5px; color: var(--text-2);
}
.ai-credit b { color: var(--blue); }
.ai-credit .btn-xs { margin-left: auto; }

/* 管理后台 · 积分设置网格与勾选行 */
.credit-cfg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.field-inline { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); margin: 6px 0 12px; cursor: pointer; }

/* ================= 极速上品 ================= */
.fp-notice { display: flex; align-items: flex-start; gap: 10px; background: linear-gradient(90deg, #fff8ec, #fffdf8); border: 1px solid #ffe6bd; border-left: 4px solid #f59e0b; padding: 9px 14px; border-radius: 10px; font-size: 12.5px; color: #7c5518; margin-bottom: 14px; line-height: 1.65; }
.fp-notice-icon { flex: none; font-size: 15px; line-height: 1.4; }
.fp-notice-text { min-width: 0; }
.fp-notice-text b { color: #92400e; font-weight: 700; }
.fp-table-wrap { min-height: 200px; }
.fp-table td { vertical-align: middle; }
.fp-table .l { text-align: left; }
.fp-thumb { width: 44px; height: 58px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); display: inline-block; vertical-align: middle; cursor: zoom-in; }
.fp-thumb-ph { display: inline-flex; align-items: center; justify-content: center; font-size: 18px; background: #f3f4f6; }
/* 极速上品操作列：编辑 / 发布 竖排，避免窄列挤成一团 */
.fp-row-acts { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
.fp-row-acts .btn { width: 100%; padding-left: 2px; padding-right: 2px; }

/* 极速上品 · 编辑：全屏复用采集箱整页编辑器（图片/视频/描述模块等全部沿用原实现） */
body.cdet-popup #view-colldetail {
  position: fixed; inset: 0; z-index: 9990;
  display: flex; flex-direction: column; padding: 0 24px;
  background: #f6f8fb; overflow: hidden;
}
body.cdet-popup #view-colldetail .cdet-page-head {
  position: relative; top: auto; z-index: 1; flex: none;
}
body.cdet-popup #cdet-body { flex: 1 1 auto; overflow: auto; padding-bottom: 24px; }
@media (max-width: 720px) {
  body.cdet-popup #view-colldetail { padding: 0 12px; }
}
.fp-table td:nth-child(3) { white-space: nowrap; }
.fp-sku { display: flex; align-items: center; gap: 6px; }
.fp-sku b { color: var(--blue); font-size: 13px; }
.fp-price-src { font-weight: 600; }
.fp-inp { padding: 5px 8px; font-size: 13px; width: 100%; }
.fp-inp-sm { width: 74px; }
.fp-dims { display: inline-flex; align-items: center; gap: 3px; }
.fp-dims i { color: var(--text-2); font-style: normal; }
.fp-dim { width: 44px !important; padding: 5px 4px !important; }
.fp-foot { display: flex; align-items: center; gap: 14px; padding: 10px 4px; }
.fp-pager { display: flex; align-items: center; gap: 4px; }
.fp-pager .btn.active { background: var(--blue); color: #fff; border-color: var(--blue); }

/* 发布设置弹窗 */
.fpub-box { width: min(920px, 94vw); max-height: 92vh; display: flex; flex-direction: column; }
.fpub-body { overflow: auto; flex: 1; padding: 14px 18px; }
.fpub-sec-title { font-weight: 700; font-size: 14px; border-left: 4px solid var(--blue); padding-left: 8px; margin-bottom: 10px; }
.fpub-shop-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.fpub-shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 10px; }
.fpub-shop { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; background: #fafbfd; }
.fpub-shop.on { border-color: var(--blue); background: #f0f5ff; }
.fpub-shop-name { display: flex; align-items: center; gap: 7px; font-size: 13px; cursor: pointer; }
.fpub-shop-wh, .fpub-shop-stock { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); margin-top: 7px; }
.fpub-shop-wh .input { flex: 1; padding: 5px 8px; font-size: 12.5px; }
.fpub-shop-stock .input { width: 110px; padding: 5px 8px; font-size: 12.5px; }
.fpub-settings { display: flex; flex-wrap: wrap; gap: 14px 26px; font-size: 13px; }
.fpub-settings label { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); }
.fpub-settings .input { padding: 5px 8px; font-size: 13px; }
.fp-wm-badge { background: #dcfce7; color: #047857; font-size: 12px; padding: 2px 8px; border-radius: 999px; }
.fp-wm-tip { color: #f59e0b; font-size: 13px; font-weight: 400; margin-left: 8px; }
.fp-prog-line { display: flex; justify-content: space-between; gap: 12px; padding: 6px 2px; border-bottom: 1px dashed var(--border); font-size: 13px; }
.fp-prog-label { color: var(--text); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fp-prog-st { white-space: nowrap; color: var(--text-2); }
.fp-prog-st.ok { color: #047857; font-weight: 600; }
.fp-prog-st.err { color: var(--red); font-weight: 600; }

/* 选择水印 */
.wm-box { width: min(900px, 94vw); max-height: 88vh; display: flex; flex-direction: column; }
.wm-grid { overflow: auto; padding: 16px 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.wm-card { border: 1px solid var(--border); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; align-items: center; gap: 10px; background: #fff; }
.wm-card .wm-prev { width: 150px; height: 200px; border: 1px solid var(--border); border-radius: 6px; background: #fff; }
.wm-card-acts { display: flex; gap: 6px; }
.wm-new { justify-content: center; min-height: 240px; cursor: pointer; color: #0d9488; font-size: 14px; }
.wm-new:hover { border-color: #0d9488; }
.wm-new-plus { width: 56px; height: 56px; border-radius: 50%; background: #0d9488; color: #fff; font-size: 26px; display: flex; align-items: center; justify-content: center; }

/* 水印编辑器（全屏） */
.wm-editor { position: fixed; inset: 0; z-index: 10000; background: #fff; display: flex; flex-direction: column; }
.wm-ed-head { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--border); }
.wm-ed-body { flex: 1; display: flex; min-height: 0; }
.wm-ed-side { width: 210px; border-right: 1px solid var(--border); padding: 14px; overflow: auto; }
.wm-ed-cap { font-size: 12px; font-weight: 700; color: #0d9488; margin-bottom: 8px; }
.wm-ed-side .btn { margin-bottom: 8px; }
.wm-ed-hint { font-size: 12px; color: var(--text-2); line-height: 1.7; margin-top: 14px; }
.wm-ed-canvas-wrap { flex: 1; display: flex; align-items: center; justify-content: center; background: #f3f4f6; overflow: auto; padding: 20px; }
#wm-ed-canvas { max-width: 100%; max-height: 100%; background: #fff; box-shadow: 0 4px 24px rgba(0,0,0,.12); cursor: default; touch-action: none; }
.wm-ed-props { width: 260px; border-left: 1px solid var(--border); padding: 14px; overflow: auto; }
.wm-prop { display: block; font-size: 12.5px; color: var(--text-2); margin-bottom: 10px; }
.wm-prop .input, .wm-prop textarea { width: 100%; margin-top: 4px; font-size: 13px; }
.wm-prop-row { display: flex; gap: 10px; font-size: 12.5px; color: var(--text-2); margin-bottom: 10px; }
.wm-ed-foot { display: flex; justify-content: center; gap: 12px; padding: 12px; border-top: 1px solid var(--border); }
/* 极速上品弹窗宽度（.uic-box 默认 max-width 380px 会盖掉） */
.uic-mask .fpub-box { width: min(960px, 96vw); max-width: 960px; padding: 0; overflow: hidden; }
.uic-mask .wm-box { width: min(900px, 96vw); max-width: 900px; padding: 0; overflow: hidden; }
.fpub-body { padding: 16px 18px; }

/* ================= 弹窗头/尾补定义（一键上架 / 发布设置 / 选择水印共用） ================= */
/* .cdet-head/.cdet-foot 之前只有结构没有样式：标题和关闭钮叠在一起、底部按钮靠左 */
.uic-box .cdet-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--border); flex: none;
}
.uic-box .cdet-head h3 { margin: 0; font-size: 15.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.uic-box .cdet-foot {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  padding: 12px 18px; border-top: 1px solid var(--border); background: #fafbfd; flex: none;
}
/* 发布设置区：label/按钮不许逐字换行竖排 */
.fpub-settings label { white-space: nowrap; flex: none; }
.fpub-settings label .btn, .fpub-settings .fp-wm-badge { white-space: nowrap; flex: none; }
.fp-wm-badge { display: inline-flex; align-items: center; }
.fpub-shop-bar .btn, .fpub-shop-bar .col-chk-all { white-space: nowrap; }
/* 极速上品：未采集到、用默认值补齐的包装字段（提示可核对，不是采集值） */
.fp-def { background: #fffbeb; border-color: #fcd34d; color: #92400e; }
.fp-def:focus { background: #fff; }

/* ================= 极速上品 · 一键改主图 ================= */
.uic-mask .fpai-box { width: min(980px, 96vw); max-width: 980px; padding: 0; overflow: hidden; display: flex; flex-direction: column; max-height: 92vh; }
.fpai-body { padding: 14px 18px; overflow: auto; flex: 1 1 auto; }
.fpai-set { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; font-size: 13px; color: var(--text-2); }
.fpai-set label { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; flex: none; }
.fpai-set .input { padding: 5px 8px; font-size: 13px; }
.fpai-chk { color: #0d9488; }
.fpai-prompt-wrap { margin-top: 10px; }
.fpai-prompt-wrap textarea { width: 100%; font-size: 13px; line-height: 1.6; resize: vertical; }
.fpai-hint { margin: 10px 0 6px; line-height: 1.7; }
.fpai-list { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #fff; }
.fpai-row { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-bottom: 1px dashed var(--border); }
.fpai-row:last-child { border-bottom: 0; }
.fpai-row.has-pick { background: #f0fdf4; }
.fpai-row.applied { background: #ecfdf5; }
.fpai-src { position: relative; flex: none; width: 62px; height: 80px; border-radius: 8px; overflow: hidden; background: #f3f4f6; border: 1px solid var(--border); }
.fpai-src img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fpai-src em { position: absolute; left: 0; right: 0; bottom: 0; font-style: normal; font-size: 10px; text-align: center; background: rgba(15, 23, 42, .55); color: #fff; line-height: 15px; }
.fpai-src.nopic::after { content: '坏图'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #94a3b8; }
.fpai-noimg { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 12px; color: #94a3b8; }
.fpai-info { flex: none; width: 250px; min-width: 0; display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; }
.fpai-info b { font-size: 13px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fpai-sub { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fpai-st { font-size: 12px; color: var(--text-2); }
.fpai-st.ok, .fpai-st.apply { color: #047857; font-weight: 600; }
.fpai-st.err, .fpai-st.skip { color: #b42318; }
.fpai-st.gen { color: #0d9488; }
.fpai-cands { flex: 1; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; min-height: 80px; }
.fpai-cand { padding: 0; border: 2px solid var(--border); border-radius: 8px; overflow: hidden; background: #fff; width: 62px; height: 80px; cursor: pointer; }
.fpai-cand img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fpai-cand:hover { border-color: #0d9488; }
.fpai-regen { align-self: flex-start; margin-top: 2px; padding: 3px 10px; font-size: 12px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--text-2); cursor: pointer; white-space: nowrap; }
.fpai-regen:hover { color: #0d9488; border-color: #0d9488; background: #f0fdf4; }
.fpai-regen:disabled { opacity: .5; cursor: not-allowed; }
/* 悬停大图预览（跟随鼠标，靠屏幕边缘自动翻转） */
#fpai-zoom { position: fixed; left: 0; top: 0; z-index: 10001; pointer-events: none; padding: 6px; background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 10px 30px rgba(15, 23, 42, .25); opacity: 0; transform: scale(.96); transition: opacity .12s ease, transform .12s ease; }
#fpai-zoom.show { opacity: 1; transform: scale(1); }
#fpai-zoom img { display: block; max-width: 300px; max-height: 380px; border-radius: 6px; }
.fpai-cand.on { border-color: #0d9488; box-shadow: 0 0 0 3px rgba(13, 148, 136, .18); }
.fpai-ph { color: var(--text-2); font-size: 12.5px; display: inline-flex; align-items: center; gap: 6px; }
.fpai-spin { display: inline-block; width: 13px; height: 13px; border: 2px solid var(--border); border-top-color: #0d9488; border-radius: 50%; animation: fpai-spin .7s linear infinite; }
@keyframes fpai-spin { to { transform: rotate(360deg); } }
/* 一键改主图：提示词说明行 */
.fpai-prompt-cap { font-size: 12.5px; font-weight: 600; color: var(--text); margin-bottom: 6px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.fpai-prompt-cap .pmeta { font-weight: 400; color: var(--text-2); }
/* AI优化：标签页（主图 / 标题 / 简介 / 富文本） */
.fpai-tabs { display: flex; gap: 4px; padding: 0 18px; border-bottom: 1px solid var(--border); background: #f7f9fc; flex: none; }
.fpai-tab { padding: 10px 18px; font-size: 13px; font-weight: 600; color: var(--text-2); background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer; transition: color .15s, border-color .15s; }
.fpai-tab:hover { color: #0d9488; }
.fpai-tab.on { color: #0d9488; border-bottom-color: #0d9488; }
/* AI优化：一键全部生成栏（标签页下方，始终可见） */
.fpai-allbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 18px; background: #f0fdfa; border-bottom: 1px solid var(--border); flex: none; }
.fpai-allbar .pmeta { font-size: 12.5px; color: var(--text-2); }
.fpai-allbar #fpai-all-msg.busy { color: #0d9488; font-weight: 600; }
.fpai-panel { display: block; }
.fpaix-extra { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); margin: 4px 0 10px; }
.fpaix-extra .input { flex: 1; padding: 6px 10px; font-size: 13px; }
.fpaix-list .fpaix-row { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border-bottom: 1px dashed var(--border); }
.fpaix-list .fpaix-row:last-child { border-bottom: 0; }
.fpaix-row .fpaix-info { flex: none; width: 220px; min-width: 0; display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; }
.fpaix-row .fpaix-info b { font-size: 13px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fpaix-row .fpaix-ta { flex: 1; min-width: 0; font-size: 12.5px; line-height: 1.6; resize: vertical; }
.fpaix-row.skip { opacity: .6; }
/* 极速上品：变体行标记（一个变体 = 一条可上架的商品卡） */
.fp-vtag { display: inline-flex; align-items: center; background: #eef2ff; color: #4f46e5; font-size: 11.5px; line-height: 16px; padding: 1px 7px; border-radius: 999px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fp-src-sku { color: #94a3b8; }
.fp-actor-tag { display: inline-flex; align-items: center; background: #f1f5f9; color: #64748b; font-size: 11px; line-height: 16px; padding: 1px 6px; border-radius: 999px; white-space: nowrap; max-width: 90px; overflow: hidden; text-overflow: ellipsis; }
/* 商品标题：点击在新标签打开采集源地址 */
.fp-title-link { color: var(--blue, #2563eb); cursor: pointer; text-decoration: none; }
.fp-title-link:hover { text-decoration: underline; }
/* 极速上品：删除按钮（危险操作，弱化成红色文字按钮） */
.fp-danger { color: var(--red); border-color: #fca5a5; }
.fp-danger:hover { background: #fef2f2; border-color: var(--red); color: var(--red); }

/* ===== 极速上品 · 布局优化（工具栏分组 / 表格卡片化 / 吸顶表头 / 吸底分页） ===== */
#view-fastpub .view-head { margin-bottom: 14px; }
#view-fastpub .view-head h2 { display: inline-flex; align-items: center; gap: 8px; }

/* 工具栏：第一行筛选条件，第二行批量操作，窄屏自动换行 */
.fp-toolbar { padding: 10px 14px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 10px; }
.fp-toolbar-row { display: flex; align-items: flex-end; gap: 10px 18px; flex-wrap: wrap; }
.fp-batch-row { align-items: center; padding-top: 10px; border-top: 1px dashed #e2e8f0; }
.fp-toolbar .btn { height: 32px; white-space: nowrap; }
.fp-toolbar .col-fitem .input { height: 32px; }
.fp-toolbar .col-fitem:nth-child(1) .input { min-width: 180px; }
.fp-batch-primary { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; }
@media (max-width: 1180px) {
  .fp-batch-primary { width: 100%; margin-left: 0; }
}

/* 列表卡片：内部滚动，表头/分页始终可见 */
.fp-list-card {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 28px -28px rgba(16, 24, 40, .5);
  overflow: auto; max-height: calc(100vh - 310px); min-height: 240px;
}
.fp-list-card::-webkit-scrollbar { width: 8px; height: 8px; }
.fp-list-card::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 6px; }
.fp-list-card::-webkit-scrollbar-track { background: #f8fafc; }

.fp-table { min-width: 1120px; table-layout: fixed; }
.fp-table thead th {
  position: sticky; top: 0; z-index: 2;
  padding: 8px 6px;
  background: #f7f9fc; color: #475569; font-weight: 600;
  border-bottom: 1px solid #e2e8f0;
  white-space: normal; vertical-align: middle; line-height: 1.3;
}
.fp-table thead th i { font-style: normal; font-weight: 400; }
.fp-table td { padding: 7px 6px; vertical-align: middle; }
/* 操作列固定右侧：即便窄屏仍需横向滚动，也不会把编辑/发布藏起来 */
.fp-table th:last-child, .fp-table td:last-child {
  position: sticky; right: 0; z-index: 1;
  background: #fff; box-shadow: -8px 0 12px -10px rgba(15, 23, 42, .35);
}
.fp-table thead th:last-child { z-index: 3; background: #f7f9fc; }
.fp-table tbody tr:nth-child(even) td:last-child { background: #fcfdff; }
.fp-table tbody tr:hover td:last-child { background: #f3f7ff; }
.fp-table tbody tr:has(.fp-chk:checked) td:last-child { background: #eef5ff; }
.fp-table tbody tr:nth-child(even) td { background: #fcfdff; }
.fp-table tbody tr:hover td { background: #f3f7ff; }
.fp-table tbody tr:has(.fp-chk:checked) td { background: #eef5ff; }
.fp-table tbody tr:has(.fp-chk:checked):hover td { background: #e5efff; }

/* 序号 / 商品信息 */
.fp-row-no {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 24px; height: 24px; padding: 0 5px; border-radius: 7px;
  background: #eef2f8; color: #64748b; font-size: 11.5px; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.fp-sku { flex-wrap: wrap; row-gap: 4px; }
.fp-sku b { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fp-table td .pmeta { line-height: 1.45; max-height: 2.9em; overflow: hidden; }
.fp-title-link { font-weight: 500; }

/* 类目格：标记单独一行，长类目最多三行，避免把行高撑乱 */
.fp-cat-cell {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: 100%;
  background: none; border: 0; padding: 0; margin: 0;
  font: inherit; color: inherit; text-align: left; cursor: pointer;
}
.fp-cat-txt {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 12px; line-height: 1.45; color: #1e293b; text-align: left;
  overflow-wrap: anywhere; transition: color .15s;
}
.fp-cat-none { color: #b45309; }
.fp-cat-cell:hover .fp-cat-txt { color: var(--blue); }

/* 输入控件：统一高度与聚焦反馈（列宽压缩后同步收窄） */
.fp-inp { height: 30px; padding: 4px 5px; border-radius: 7px; }
.fp-inp:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 91, 255, .10); }
.fp-inp-sm { width: 50px !important; }
.fp-dims { gap: 2px; }
.fp-dim { width: 38px !important; padding: 4px 2px !important; font-size: 12px; }
.fp-thumb { width: 36px; height: 48px; }
.fp-row-acts { flex-direction: row; align-items: center; gap: 4px; }
.fp-row-acts .btn { width: auto; flex: 1 1 0; height: 26px; padding: 0 4px; font-size: 11.5px; white-space: nowrap; }

/* 吸底分页栏 */
.fp-foot {
  position: sticky; bottom: 0; z-index: 5; margin-top: 12px; padding: 10px 14px;
  background: rgba(255, 255, 255, .96); border: 1px solid var(--border); border-radius: 10px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 -6px 18px -14px rgba(16, 24, 40, .45);
}
.fp-foot #fp-count { font-weight: 600; color: #475569; }
.fp-pager .btn { height: 28px; }

/* 全屏编辑器：头部操作栏与内容区更舒展 */
body.cdet-popup #view-colldetail { padding: 0 28px 24px; }
body.cdet-popup #view-colldetail .cdet-page-head {
  padding: 13px 0 12px; border-bottom: 1px solid #e5e9f2;
  background: rgba(246, 248, 251, .96);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
body.cdet-popup #cdet-body { width: 100%; max-width: 1320px; margin: 0 auto; padding-top: 16px; }

/* ===== 采集详情 · 编辑页（图片管理 / 富文本描述 / 改类目 / 一键换主图） ===== */
.cdet-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.cdet-sec-head .cdet-h { margin: 0; }
.cdet-img-acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cdet-img-cell.is-main { border-color: #0d9488; box-shadow: 0 0 0 2px rgba(13, 148, 136, .16); }
.cdet-img-view { display: block; }
.cdet-img-ops { position: absolute; right: 4px; bottom: 4px; display: flex; gap: 3px; opacity: 0; transition: opacity .12s; }
.cdet-img-cell:hover .cdet-img-ops, .cdet-img-cell:focus-within .cdet-img-ops { opacity: 1; }
.cdet-img-ops button {
  width: 22px; height: 22px; padding: 0; border: 0; border-radius: 6px; cursor: pointer;
  background: rgba(15, 23, 42, .72); color: #fff; font-size: 11px; line-height: 1;
}
.cdet-img-ops button:hover:not(:disabled) { background: #0d9488; }
.cdet-img-ops button:disabled { opacity: .35; cursor: default; }
.cdet-img-ops button.danger:hover { background: #dc2626; }
.cdet-inline-input { max-width: 320px; display: inline-block; }
.cdet-rt { border: 1px solid var(--border, #e5e9f2); border-radius: 10px; overflow: hidden; background: #fff; }
.cdet-rt-bar { display: flex; gap: 4px; padding: 6px 8px; border-bottom: 1px solid var(--border, #e5e9f2); background: #f8fafc; flex-wrap: wrap; }
.cdet-rt-bar button {
  min-width: 28px; height: 26px; padding: 0 8px; border: 1px solid var(--border, #e5e9f2);
  background: #fff; border-radius: 6px; font-size: 12px; color: #334155; cursor: pointer;
}
.cdet-rt-bar button:hover { border-color: #0d9488; color: #0d9488; }
.cdet-rt-body {
  min-height: 180px; max-height: 460px; overflow: auto; padding: 12px 14px;
  font-size: 13px; line-height: 1.75; color: var(--ink, #1e293b); outline: none;
}
.cdet-rt-body:empty::before { content: attr(data-ph); color: #94a3b8; }
.cdet-rt-body h2 { font-size: 15px; margin: 12px 0 6px; }
.cdet-rt-body p { margin: 0 0 8px; }
.cdet-rt-body ul, .cdet-rt-body ol { margin: 0 0 8px 20px; }
.cdet-tags-edit { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.cdet-tags-edit label { font-size: 12.5px; color: #475569; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.cdet-tags-edit .input { max-width: 640px; }

/* 改类目弹窗 */
.uic-mask .cdcat-box { width: min(760px, 96vw); max-width: 760px; padding: 0; overflow: hidden; display: flex; flex-direction: column; max-height: 88vh; }
.cdcat-body { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.cdcat-search { display: flex; gap: 8px; align-items: center; }
.cdcat-search .input { flex: 1 1 auto; margin: 0; }
.cdcat-list { overflow: auto; max-height: 52vh; display: flex; flex-direction: column; gap: 6px; }

/* 一键换主图弹窗 */
.uic-mask .cdai-box { width: min(760px, 96vw); max-width: 760px; padding: 0; overflow: hidden; display: flex; flex-direction: column; max-height: 88vh; }
.cdai-body { padding: 14px 18px 16px; overflow: auto; display: flex; flex-direction: column; gap: 12px; }
.cdai-cur { display: flex; align-items: center; gap: 10px; }
.cdai-cur img { width: 84px; height: 108px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border, #e5e9f2); background: #f4f6fb; }
.cdai-out { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; min-height: 90px; }
.cdai-out .fpai-cand { width: 96px; height: 128px; }
.cdai-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* ===== 详情描述 · 模块化富文本编辑器 ===== */
.cdmod { display: flex; gap: 14px; align-items: stretch; }
.cdmod-side { flex: 0 0 200px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cdmod-add { display: flex; gap: 6px; align-items: center; }
.cdmod-add .input { margin: 0; flex: 1 1 auto; min-width: 0; font-size: 12.5px; height: 30px; padding: 0 6px; }
.cdmod-list { display: flex; flex-direction: column; gap: 6px; overflow: auto; max-height: 420px; padding-right: 2px; }
.cdmod-item {
  display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--border, #e5e9f2); background: #fff; font-size: 12.5px; color: #334155; user-select: none;
}
.cdmod-item:hover { border-color: #0d9488; }
.cdmod-item.on { border-color: #0d9488; background: #f0fdfa; color: #0f766e; }
.cdmod-item.over { border-style: dashed; border-color: #0d9488; }
.cdmod-grip { color: #94a3b8; cursor: grab; font-size: 13px; }
.cdmod-t { font-weight: 600; }
.cdmod-n { flex: 1 1 auto; text-align: right; color: #94a3b8; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cdmod-del { border: 0; background: none; color: #94a3b8; cursor: pointer; font-size: 12px; padding: 0 2px; }
.cdmod-del:hover { color: #dc2626; }
.cdmod-main { flex: 1 1 auto; min-width: 0; border: 1px solid var(--border, #e5e9f2); border-radius: 10px; padding: 10px 12px 12px; background: #fff; display: flex; flex-direction: column; gap: 8px; }
.cdmod-main-h { font-weight: 600; font-size: 13px; color: #0f766e; }
.cdmod-imgs { display: flex; gap: 8px; flex-wrap: wrap; }
.cdmod-img { position: relative; width: 84px; height: 84px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border, #e5e9f2); background: #f4f6fb; }
.cdmod-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cdmod-img.err::after { content: '加载失败'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; color: #dc2626; background: #fef2f2; }
.cdmod-img-ops { position: absolute; right: 2px; bottom: 2px; display: flex; gap: 2px; opacity: 0; transition: opacity .12s; }
.cdmod-img:hover .cdmod-img-ops, .cdmod-img:focus-within .cdmod-img-ops { opacity: 1; }
.cdmod-img-ops button {
  width: 20px; height: 20px; padding: 0; border: 0; border-radius: 5px; cursor: pointer;
  background: rgba(15, 23, 42, .72); color: #fff; font-size: 10px; line-height: 1;
}
.cdmod-img-ops button:hover:not(:disabled) { background: #0d9488; }
.cdmod-img-ops button:disabled { opacity: .35; cursor: default; }
.cdmod-img-ops button.danger:hover { background: #dc2626; }
.cdmod-img-add {
  width: 84px; height: 84px; border: 1.5px dashed #94a3b8; border-radius: 8px; background: #fafcff;
  color: #64748b; cursor: pointer; font-size: 20px; line-height: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px;
}
.cdmod-img-add small { font-size: 11px; color: #94a3b8; }
.cdmod-img-add:hover { border-color: #0d9488; color: #0d9488; }
.cdmod-text { min-height: 200px; resize: vertical; line-height: 1.7; font-size: 13px; margin: 0; }
@media (max-width: 900px) { .cdmod { flex-direction: column; } .cdmod-side { flex: none; } .cdmod-list { max-height: 160px; } }

/* 描述预览弹窗 */
.uic-mask .cdprev-box { width: min(680px, 96vw); max-width: 680px; padding: 0; overflow: hidden; display: flex; flex-direction: column; max-height: 86vh; }
.cdprev-body { padding: 14px 18px 18px; overflow: auto; font-size: 13.5px; line-height: 1.8; color: var(--ink, #1e293b); }
.cdprev-body img { max-width: 100%; border-radius: 8px; display: block; margin: 0 auto; }
.cdprev-body p { margin: 0 0 10px; }
.rand-tag { color: #92400e; background: #fef3c7; border-radius: 4px; padding: 0 4px; }

/* 类目可信度提示（叶子贴合度低 = 识别可能不准） */
.cat-warn { color: #b45309; background: #fef3c7; border-radius: 4px; padding: 0 5px; }

/* ============================================================
   采集箱 · 编辑页（v2 重排版）
   卡片式分节 + 蓝 accent + 就绪度进度条；覆盖前面同名 cdet-* 规则
   ============================================================ */
#view-colldetail {
  --cd-acc: #005bff;
  --cd-acc-soft: #eef4ff;
  --cd-line: #e6ebf3;
  --cd-line-2: #eff3f9;
  --cd-mut: #78859b;
  --cd-ink: #16202e;
}

/* ---- 顶部操作栏：吸顶 + 毛玻璃 ---- */
#view-colldetail .cdet-page-head {
  position: sticky; top: 0; z-index: 8;
  align-items: center; gap: 16px; flex-wrap: wrap;
  margin: 0 0 16px; padding: 13px 0 12px;
  max-width: 1220px; background: none;
}
/* 吸顶背景左右出血到内容区边缘（不改布局，兼容 standalone 模式） */
#view-colldetail .cdet-page-head::before {
  content: ''; position: absolute; z-index: -1; top: 0; bottom: 0; left: -32px; right: -32px;
  background: rgba(245, 247, 250, .94);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(226, 235, 243, .9);
  box-shadow: 0 10px 22px -18px rgba(16, 24, 40, .45);
}
#view-colldetail .cdet-page-l { display: flex; align-items: center; gap: 14px; min-width: 0; }
#view-colldetail .cdet-back {
  flex: 0 0 auto; height: 32px; padding: 0 12px; border-radius: 9px; font-size: 12.5px;
  background: #fff; border: 1px solid var(--cd-line); color: #475569;
}
#view-colldetail .cdet-back:hover { border-color: #c7d7f7; color: var(--cd-acc); background: #fff; }
#view-colldetail .cdet-page-title { min-width: 0; }
#view-colldetail .cdet-crumb {
  font-size: 11px; color: #97a3b6; letter-spacing: .2px; margin-bottom: 2px;
  display: flex; align-items: center; gap: 5px;
}
#view-colldetail .cdet-crumb i { font-style: normal; color: #cbd5e1; }
#view-colldetail .cdet-crumb b { font-weight: 500; color: #64748b; }
#view-colldetail .cdet-page-head h2 {
  margin: 0; font-size: 18px; line-height: 1.35; font-weight: 700; letter-spacing: -.2px;
  color: var(--cd-ink); max-width: 52vw;
}
#view-colldetail .cdet-page-head #cdet-sub { margin-top: 2px; font-size: 11.5px; color: #94a3b8; }
#view-colldetail .cdet-head-acts { display: flex; align-items: center; gap: 8px; margin-left: auto; }
#view-colldetail .cdet-acts-sep { width: 1px; height: 18px; background: #dfe6f1; }
#view-colldetail .cdet-head-acts .btn { height: 34px; padding: 0 14px; border-radius: 9px; font-size: 12.5px; }
#view-colldetail .cdet-head-acts .btn-ghost { background: #fff; border: 1px solid var(--cd-line); }
#view-colldetail .cdet-head-acts .btn-ghost:hover { border-color: #c7d7f7; color: var(--cd-acc); background: #fff; }
#view-colldetail .cdet-pub {
  background: linear-gradient(180deg, #1a6dff, #0052e6);
  border: 1px solid #0047c9; font-weight: 600; letter-spacing: .2px;
  box-shadow: 0 6px 16px -8px rgba(0, 82, 230, .8);
}
#view-colldetail .cdet-pub:hover { background: linear-gradient(180deg, #0f63ff, #0047c9); }
/* 有未保存改动时「保存修改」点亮，避免改完忘了点保存 */
#view-colldetail #cdet-save.is-dirty {
  background: #f5f9ff; border-color: #b9d2ff; color: var(--cd-acc); font-weight: 600;
  box-shadow: 0 0 0 3px rgba(0, 91, 255, .1);
}
#view-colldetail #cdet-save.is-dirty::after {
  content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 7px;
  border-radius: 50%; background: var(--cd-acc); vertical-align: 2px;
}

/* ---- 页面主体 ---- */
#view-colldetail .cdet-page-body {
  display: flex; flex-direction: column; gap: 14px;
  max-width: 1220px; padding-bottom: 64px;
}

/* ---- 顶部商品预览卡 ---- */
#view-colldetail .cdet-hero {
  display: grid; grid-template-columns: 216px minmax(0, 1fr); gap: 20px;
  align-items: stretch; padding: 16px; border: 1px solid var(--cd-line); border-radius: 16px;
  background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 18px 40px -32px rgba(16, 24, 40, .4);
}
#view-colldetail .cdet-hero-media {
  position: relative; width: 216px; height: 288px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--cd-line-2); background: linear-gradient(180deg, #fbfcfe, #f1f4f9);
}
#view-colldetail .cdet-hero-media img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
#view-colldetail .cdet-hero-n {
  position: absolute; right: 8px; bottom: 8px; padding: 2px 9px; border-radius: 999px;
  background: rgba(15, 23, 42, .62); color: #fff; font-size: 10.5px; letter-spacing: .2px;
  backdrop-filter: blur(4px);
}
#view-colldetail .cdet-hero-body {
  display: grid; grid-template-columns: minmax(0, 1fr) 246px; gap: 18px; align-items: stretch; min-width: 0;
}
#view-colldetail .cdet-ready { align-self: start; }
#view-colldetail .cdet-hero-main {
  display: flex; flex-direction: column; min-width: 0; min-height: 100%;
}
#view-colldetail .cdet-hero-foot { margin-top: auto; padding-top: 12px; }
#view-colldetail .cdet-price-k {
  font-size: 11px; color: #9aa6b8; letter-spacing: .6px; margin-bottom: 2px;
}
#view-colldetail .cdet-hero-price {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  font-size: 13px; color: #64748b; margin-bottom: 12px;
}
#view-colldetail .cdet-hero-price b {
  font-size: 30px; font-weight: 800; color: #dc2626; letter-spacing: -.5px;
  font-variant-numeric: tabular-nums;
}
#view-colldetail .cdet-hero-price s { color: #a3aebd; font-size: 13px; }
#view-colldetail .cdet-cny { font-size: 13px; color: #0f766e; font-weight: 600; }
#view-colldetail .cdet-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 0; }
#view-colldetail .cdet-chips span {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 999px; font-size: 11.5px; color: #5b6a80;
  background: #f7f9fc; border: 1px solid var(--cd-line-2);
}
#view-colldetail .cdet-chips .is-sku {
  color: #1e40af; background: #f3f7ff; border-color: #dbe7ff; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
#view-colldetail .cdet-chips .is-off { color: #b91c1c; background: #fef2f2; border-color: #fecaca; }
#view-colldetail .cdet-hero-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-top: auto; padding-top: 12px; font-size: 11.5px; color: #9aa6b8;
}
#view-colldetail .cdet-hero-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 14px;
  max-width: 460px;
}
#view-colldetail .cdet-hero-stats > div {
  padding: 7px 10px; border-radius: 10px; background: #f8fafd; border: 1px solid var(--cd-line-2);
  min-width: 0;
}
#view-colldetail .cdet-hero-stats b {
  display: block; font-size: 16px; font-weight: 700; color: #334155; line-height: 1.25;
  font-variant-numeric: tabular-nums;
}
#view-colldetail .cdet-hero-stats span { font-size: 10.5px; color: #97a3b6; letter-spacing: .2px; }
#view-colldetail .cdet-unpub { color: #94a3b8; }

/* 就绪度 */
#view-colldetail .cdet-ready {
  border-radius: 12px; padding: 12px 13px; border: 1px solid #e3edff;
  background: linear-gradient(180deg, #f6faff, #fff);
}
#view-colldetail .cdet-ready.warn { border-color: #fde8c4; background: linear-gradient(180deg, #fffaf1, #fff); }
#view-colldetail .cdet-ready-h {
  display: flex; align-items: baseline; justify-content: space-between;
  font-size: 12px; color: #64748b; margin-bottom: 8px;
}
#view-colldetail .cdet-ready-h b {
  font-size: 19px; font-weight: 800; color: var(--cd-acc); letter-spacing: -.4px;
  font-variant-numeric: tabular-nums;
}
#view-colldetail .cdet-ready.warn .cdet-ready-h b { color: #d97706; }
#view-colldetail .cdet-ready-bar { height: 6px; border-radius: 999px; background: #e8eef8; overflow: hidden; }
#view-colldetail .cdet-ready-bar i {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #4d8dff, #005bff);
  transition: width .35s ease;
}
#view-colldetail .cdet-ready.warn .cdet-ready-bar i { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
#view-colldetail .cdet-ready-n { margin-top: 8px; font-size: 11.5px; line-height: 1.55; color: #8593a8; }
#view-colldetail .cdet-ready-n b { color: #b45309; font-weight: 600; }
#view-colldetail .cdet-ready.ok .cdet-ready-n { color: #0f766e; }

/* ---- 分节卡片 ---- */
#view-colldetail .cdet-sec {
  padding: 16px 18px 18px; border: 1px solid var(--cd-line); border-radius: 16px;
  background: #fff; border-bottom: 1px solid var(--cd-line);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
}
#view-colldetail .cdet-sec-last { border-bottom: 1px solid var(--cd-line); }
#view-colldetail .cdet-sec-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; margin-bottom: 14px; padding-bottom: 11px;
  border-bottom: 1px solid var(--cd-line-2);
}
#view-colldetail .cdet-h {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin: 0;
  font-size: 14.5px; font-weight: 700; color: var(--cd-ink); letter-spacing: -.1px;
}
#view-colldetail .cdet-h::before { content: none; }
#view-colldetail .cdet-h-ico {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-style: normal;
  background: linear-gradient(135deg, #eaf2ff, #f7faff);
  border: 1px solid #e2ecff;
}
#view-colldetail .cdet-h-n {
  min-width: 0; flex: 0 1 auto;
  font-size: 11.5px; font-weight: 400; color: #96a2b5; letter-spacing: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
#view-colldetail .cdet-hint {
  margin-top: 10px; font-size: 11.5px; line-height: 1.6; color: #96a2b5;
}
#view-colldetail .cdet-hint b { color: #64748b; font-weight: 600; }

/* ---- 基本信息：分组表单 ---- */
#view-colldetail .cdet-fs {
  border: 1px solid var(--cd-line-2); border-radius: 12px;
  padding: 12px 14px 14px; background: #fcfdff;
}
#view-colldetail .cdet-fs + .cdet-fs { margin-top: 12px; }
#view-colldetail .cdet-fs-h {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  font-size: 11.5px; font-weight: 700; color: #56657c; letter-spacing: .3px; margin-bottom: 10px;
}
#view-colldetail .cdet-fgrid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 12px;
}
#view-colldetail .cdet-fgrid > label {
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "k s" "i i";
  align-items: center; gap: 3px 6px; min-width: 0;
  font-size: 11.5px; font-weight: 500; color: #64748b;
}
#view-colldetail .cdet-fgrid .cdet-f-sub {
  grid-area: s; justify-self: start; min-width: 0;
  font-size: 10.5px; font-weight: 400; color: #a3adbd; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
#view-colldetail .cdet-fgrid .input {
  grid-area: i; width: 100%; height: 34px; padding: 0 10px; font-size: 13px;
  border-radius: 9px; border-color: #e2e8f2; background: #fff; color: var(--cd-ink);
}
#view-colldetail .cdet-fgrid .input:focus {
  border-color: var(--cd-acc); box-shadow: 0 0 0 3px rgba(0, 91, 255, .1);
}
#view-colldetail .cdet-fgrid .span2 { grid-column: span 2; }
#view-colldetail .cdet-fgrid .span3 { grid-column: span 3; }
#view-colldetail .cdet-fgrid .span4 { grid-column: span 4; }
#view-colldetail .cdet-fnote {
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
  padding: 6px 11px; border-radius: 9px; border: 1px dashed #e0e7f2; background: #fff;
  min-width: 0;
}
#view-colldetail .cdet-fnote-k { font-size: 10.5px; color: #9aa6b8; }
#view-colldetail .cdet-fnote-v { font-size: 13px; color: #334155; font-weight: 600; }
#view-colldetail .cdet-fact-line, #view-colldetail .cdet-facts-line {
  margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--cd-line-2);
  font-size: 11.5px; color: #96a2b5;
}
#view-colldetail .cdet-facts-line b { color: #475569; font-weight: 700; }

/* ---- 商品图片 ---- */
#view-colldetail .cdet-img-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#view-colldetail .cdet-img-acts .btn { height: 28px; padding: 0 11px; border-radius: 8px; font-size: 12px; }
#view-colldetail .cdet-img-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px;
}
#view-colldetail .cdet-img-cell {
  position: relative; border: 1px solid var(--cd-line); border-radius: 12px;
  overflow: hidden; background: #f7f9fc; transition: border-color .15s, box-shadow .15s;
}
#view-colldetail .cdet-img-cell:hover { border-color: #c3d7ff; box-shadow: 0 6px 18px -12px rgba(16, 24, 40, .55); }
#view-colldetail .cdet-img-cell.is-main { border-color: #9dc0ff; box-shadow: 0 0 0 2px rgba(0, 91, 255, .12); }
#view-colldetail .cdet-img-view { display: block; }
#view-colldetail .cdet-img-cell img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
#view-colldetail .cdet-img-idx {
  position: absolute; left: 7px; top: 7px; z-index: 2;
  padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 600;
  color: #fff; background: rgba(15, 23, 42, .58); backdrop-filter: blur(4px);
  font-variant-numeric: tabular-nums;
}
#view-colldetail .cdet-img-cell.is-main .cdet-img-idx {
  background: linear-gradient(180deg, #1a6dff, #0052e6); box-shadow: 0 3px 10px -4px rgba(0, 82, 230, .8);
}
#view-colldetail .cdet-img-ops {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; justify-content: flex-end; gap: 3px; padding: 14px 6px 6px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0), rgba(15, 23, 42, .68));
  opacity: 0; transform: translateY(3px); transition: opacity .15s, transform .15s;
}
#view-colldetail .cdet-img-cell:hover .cdet-img-ops,
#view-colldetail .cdet-img-cell:focus-within .cdet-img-ops { opacity: 1; transform: none; }
#view-colldetail .cdet-img-ops button {
  width: 22px; height: 22px; padding: 0; border: 0; border-radius: 6px; cursor: pointer;
  background: rgba(255, 255, 255, .92); color: #334155; font-size: 11px; line-height: 1;
}
#view-colldetail .cdet-img-ops button:hover:not(:disabled) { background: #fff; color: var(--cd-acc); }
#view-colldetail .cdet-img-ops button:disabled { opacity: .4; cursor: default; }
#view-colldetail .cdet-img-ops button.danger:hover { background: #dc2626; color: #fff; }
/* 拖动排序：整格可拖，链接/按钮不抢拖拽 */
#view-colldetail .cdet-img-cell[draggable="true"] { cursor: grab; }
#view-colldetail .cdet-img-cell.is-dragging { opacity: .45; cursor: grabbing; }
#view-colldetail .cdet-img-cell.is-dragover { border-color: var(--cd-acc); box-shadow: 0 0 0 2px rgba(0, 91, 255, .28); }

/* ---- 类目与属性 ---- */
#view-colldetail .cdet-cat-cols {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px;
}
#view-colldetail .cdet-cat-card {
  border: 1px solid var(--cd-line-2); border-radius: 12px; padding: 11px 13px 13px;
  background: #fcfdff; min-width: 0;
}
#view-colldetail .cdet-cat-card.hl {
  border-color: #dbe7ff; background: linear-gradient(180deg, #f6faff, #fff);
}
#view-colldetail .cdet-cat-l {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .3px; color: #7b8798; margin-bottom: 7px;
}
#view-colldetail .cdet-cat-l span { font-weight: 400; color: #a3adbd; letter-spacing: 0; }
#view-colldetail .cdet-cat-card .input {
  height: 32px; font-size: 12.5px; border-radius: 8px; border-color: #e2e8f2; width: 100%;
}
#view-colldetail .cdet-cat-path {
  margin-top: 8px; padding: 0; border: 0; background: none;
  font-size: 11.5px; line-height: 1.6; color: #8593a8;
}
#view-colldetail .cdet-cat-val { font-size: 12.5px; line-height: 1.65; color: #1f2937; word-break: break-word; }
#view-colldetail .cdet-cat-val .pmeta { display: inline-block; color: #97a3b6; font-size: 11px; }
#view-colldetail .cdet-attr-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px;
}
#view-colldetail .cdet-attr {
  display: flex; align-items: baseline; gap: 10px; min-width: 0;
  padding: 7px 11px; border-radius: 9px; border: 1px solid var(--cd-line-2);
  background: #fcfdff; font-size: 12.5px;
}
#view-colldetail .cdet-attr > span {
  flex: 0 0 42%; color: #8593a8; font-size: 11.5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
#view-colldetail .cdet-attr > b {
  flex: 1 1 auto; min-width: 0; font-weight: 600; color: var(--cd-ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---- 详情描述：模块编辑器 ---- */
#view-colldetail .cdmod { display: flex; gap: 14px; align-items: stretch; }
#view-colldetail .cdmod-side {
  flex: 0 0 212px; display: flex; flex-direction: column; gap: 9px; min-width: 0;
  padding: 10px; border: 1px solid var(--cd-line-2); border-radius: 12px;
  background: #f7f9fd;
}
#view-colldetail .cdmod-add { display: flex; gap: 6px; align-items: center; }
#view-colldetail .cdmod-add .input { height: 30px; font-size: 12px; border-radius: 8px; padding: 0 8px; }
#view-colldetail .cdmod-add .btn { height: 30px; padding: 0 10px; border-radius: 8px; font-size: 12px; flex: 0 0 auto; }
#view-colldetail .cdmod-list { display: flex; flex-direction: column; gap: 6px; overflow: auto; max-height: 420px; padding-right: 2px; }
#view-colldetail .cdmod-item {
  display: flex; align-items: center; gap: 6px; padding: 7px 9px; border-radius: 9px; cursor: pointer;
  border: 1px solid var(--cd-line); background: #fff; font-size: 12px; color: #465468; user-select: none;
  transition: border-color .12s, background .12s;
}
#view-colldetail .cdmod-item:hover { border-color: #b9d2ff; }
#view-colldetail .cdmod-item.on { border-color: #b9d2ff; background: var(--cd-acc-soft); color: var(--cd-acc); font-weight: 600; }
#view-colldetail .cdmod-item.over { border-style: dashed; border-color: var(--cd-acc); }
#view-colldetail .cdmod-grip { color: #94a3b8; cursor: grab; font-size: 12px; letter-spacing: -1px; }
#view-colldetail .cdmod-n { color: #a3adbd; font-size: 11px; }
#view-colldetail .cdmod-del { color: #b6c0cf; }
#view-colldetail .cdmod-del:hover { color: #dc2626; }
#view-colldetail .cdmod-main {
  flex: 1 1 auto; min-width: 0; border: 1px solid var(--cd-line); border-radius: 12px;
  padding: 12px 14px 14px; background: #fff;
}
#view-colldetail .cdmod-main-h { font-weight: 700; font-size: 12.5px; color: var(--cd-acc); }
#view-colldetail .cdmod-tip { font-size: 11px; line-height: 1.55; color: #a3adbd; }
#view-colldetail .cdmod-img-add { border-color: #cbd5e1; background: #fbfcfe; }
#view-colldetail .cdmod-img-add:hover { border-color: var(--cd-acc); color: var(--cd-acc); }
#view-colldetail .cdmod-text { border-radius: 9px; border-color: #e2e8f2; }
#view-colldetail .cdmod-text:focus { border-color: var(--cd-acc); box-shadow: 0 0 0 3px rgba(0, 91, 255, .1); outline: none; }

/* ---- 主题标签 ---- */
#view-colldetail .cdet-tags-edit {
  margin-top: 14px; padding: 12px 14px 13px; border-radius: 12px;
  border: 1px solid var(--cd-line-2); background: #fcfdff;
  display: flex; flex-direction: column; gap: 8px;
}
#view-colldetail .cdet-tags-l { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
#view-colldetail .cdet-tags-l label { font-size: 11.5px; font-weight: 700; color: #56657c; letter-spacing: .3px; }
#view-colldetail .cdet-tags-l .cdet-f-sub { font-size: 10.5px; color: #a3adbd; }
#view-colldetail .cdet-tags-edit .input {
  max-width: 100%; height: 34px; font-size: 12.5px; border-radius: 9px; border-color: #e2e8f2;
  font-variant-numeric: tabular-nums;
}
#view-colldetail .cdet-tag-pills { display: flex; flex-wrap: wrap; gap: 6px; }
#view-colldetail .cdet-tag-pills:empty::before { content: '还没有标签'; font-size: 11.5px; color: #b6c0cf; }
#view-colldetail .cdet-tag-pills span {
  font-size: 11.5px; font-weight: 600; color: #1e40af;
  background: #f3f7ff; border: 1px solid #dbe7ff; border-radius: 999px; padding: 2px 9px;
}

/* ---- 货源信息 ---- */
#view-colldetail .cdet-facts-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 18px;
  grid-auto-flow: row dense;
}
#view-colldetail .cdet-fact { min-width: 0; padding: 8px 0 7px; border-bottom: 1px solid #f1f5fa; }
#view-colldetail .cdet-fact.wide { grid-column: 1 / -1; }
#view-colldetail .cdet-fact .k { display: block; font-size: 10.5px; color: #9aa6b8; letter-spacing: .2px; margin-bottom: 2px; }
#view-colldetail .cdet-fact .v { font-size: 12.5px; color: #1f2937; word-break: break-word; }
#view-colldetail .cdet-fact .v a { color: var(--cd-acc); text-decoration: none; font-weight: 500; }
#view-colldetail .cdet-fact .v a:hover { text-decoration: underline; }

/* ---- 变体卡片 ---- */
#view-colldetail .cdet-varcards { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 6px; }
#view-colldetail .cdet-vcard {
  flex: 0 0 auto; display: flex; align-items: center; gap: 10px; min-width: 196px; max-width: 268px;
  padding: 8px 10px; border: 1px solid var(--cd-line); border-radius: 12px; background: #fff;
  cursor: pointer; text-align: left; font: inherit; transition: border-color .15s, box-shadow .15s, background .15s;
}
#view-colldetail .cdet-vcard:hover { border-color: #b9d2ff; background: #fcfdff; }
#view-colldetail .cdet-vcard.on {
  border-color: #9dc0ff; background: #f7faff; box-shadow: 0 0 0 2px rgba(0, 91, 255, .12);
}
#view-colldetail .cdet-vcard img { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; background: #f4f6fb; }
#view-colldetail .cdet-vcard.nopic::before { width: 46px; height: 46px; border-radius: 8px; }
#view-colldetail .cdet-vcard-t b { font-size: 12.5px; color: var(--cd-ink); }
#view-colldetail .cdet-vcard-cur {
  background: var(--cd-acc-soft); color: var(--cd-acc); border-color: #dbe7ff; font-weight: 700;
}
#view-colldetail .cdet-vcard-p { font-size: 12px; color: #dc2626; font-weight: 700; }

/* ---- 通用小件 ---- */
#view-colldetail .cdet-reset-price { font-size: 11px; color: #64748b; text-decoration: underline dotted; }
#view-colldetail .cdet-reset-price:hover { color: var(--cd-acc); }
#view-colldetail .sel-empty {
  padding: 22px 16px; text-align: center; font-size: 12px; color: #97a3b6;
  border: 1px dashed #dfe6f1; border-radius: 12px; background: #fbfcfe;
}
#view-colldetail .cdet-sec .pmeta { color: #97a3b6; }
#view-colldetail .col-manual { background: #eef2ff; color: #4338ca; border-color: #dbe2ff; }

/* ---- 响应式 ---- */
@media (max-width: 1180px) {
  #view-colldetail .cdet-hero-body { grid-template-columns: minmax(0, 1fr); }
  #view-colldetail .cdet-ready { max-width: 420px; }
}
@media (max-width: 1024px) {
  #view-colldetail .cdet-facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #view-colldetail .cdet-attr-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  #view-colldetail .cdet-page-head { margin: 0 0 14px; padding: 11px 0 10px; }
  #view-colldetail .cdet-hero { grid-template-columns: 132px minmax(0, 1fr); gap: 14px; padding: 12px; }
  #view-colldetail .cdet-hero-media { width: 132px; height: 176px; }
  #view-colldetail .cdet-hero-price b { font-size: 24px; }
  #view-colldetail .cdet-fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #view-colldetail .cdet-fgrid .span3, #view-colldetail .cdet-fgrid .span4 { grid-column: span 2; }
  #view-colldetail .cdet-cat-cols { grid-template-columns: minmax(0, 1fr); }
  #view-colldetail .cdmod { flex-direction: column; }
  #view-colldetail .cdmod-side { flex: none; }
  #view-colldetail .cdmod-list { max-height: 168px; }
}
@media (max-width: 640px) {
  #view-colldetail .cdet-facts-grid { grid-template-columns: minmax(0, 1fr); }
  #view-colldetail .cdet-page-head h2 { max-width: 100%; font-size: 16px; }
  #view-colldetail .cdet-head-acts { width: 100%; margin-left: 0; }
  #view-colldetail .cdet-head-acts .cdet-pub { flex: 1 1 auto; }
}

/* ===== 极速上品 · 样式优化（2026-11-29）：视觉层次 / 交互反馈 / 细节打磨 ===== */

/* 页头：标题与徽章更紧凑，按钮加投影 */
#view-fastpub .view-head h2 { letter-spacing: .2px; }
#view-fastpub .view-head .btn { box-shadow: 0 1px 2px rgba(16, 24, 40, .06); transition: transform .12s, box-shadow .12s; }
#view-fastpub .view-head .btn:hover { transform: translateY(-1px); box-shadow: 0 3px 8px -2px rgba(16, 24, 40, .18); }

/* 提示条：更轻的底色与圆角，弱化存在感 */
#view-fastpub .fp-notice { border-radius: 12px; padding: 8px 14px; background: linear-gradient(90deg, #fffaef, #fffefb); }

/* 工具栏：白卡片 + 细边框，与列表卡片呼应 */
#view-fastpub .fp-toolbar {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
#view-fastpub .fp-toolbar .col-fitem { color: #64748b; font-size: 12px; }
#view-fastpub .fp-toolbar .col-fitem:focus-within { color: var(--blue); }
#view-fastpub .fp-toolbar .input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
#view-fastpub .fp-toolbar .btn { border-radius: 9px; transition: transform .12s, box-shadow .12s, background .12s; }
#view-fastpub .fp-toolbar .btn:hover { transform: translateY(-1px); }
/* 主操作（搜索 / 批量发布）渐变强调 */
#view-fastpub .fp-toolbar .btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-color: transparent;
  box-shadow: 0 2px 6px -1px rgba(37, 99, 235, .45);
}
#view-fastpub .fp-toolbar .btn-primary:hover { background: linear-gradient(135deg, #3b76f0, #2563eb); box-shadow: 0 4px 10px -2px rgba(37, 99, 235, .5); }
/* 危险操作更醒目 */
#view-fastpub .fp-batch-row .fp-danger { background: #fff; }

/* 列表卡片：外阴影更柔和 */
#view-fastpub .fp-list-card { border-radius: 14px; }

/* 表头：加轻微底部投影，滚动时层次更清楚 */
#view-fastpub .fp-table thead th { box-shadow: inset 0 -2px 0 #dbe4ef; letter-spacing: .2px; }

/* 主图：圆角放大 + 悬停放大预览感 */
#view-fastpub .fp-thumb { border-radius: 9px; transition: transform .15s, box-shadow .15s; box-shadow: 0 1px 3px rgba(16, 24, 40, .12); }
#view-fastpub .fp-thumb:hover { transform: scale(1.08); box-shadow: 0 4px 12px rgba(16, 24, 40, .22); z-index: 4; position: relative; }
#view-fastpub .fp-thumb-ph { color: #cbd5e1; }

/* 商品行：悬停/选中过渡 + 选中行左侧蓝色描边 */
#view-fastpub .fp-table tbody td { transition: background .12s; }
#view-fastpub .fp-table tbody tr:has(.fp-chk:checked) td:first-child { box-shadow: inset 3px 0 0 var(--blue); }

/* 类目标签与采集账号标签：更圆润 */
#view-fastpub .fp-vtag, #view-fastpub .fp-actor-tag { border-radius: 999px; }
#view-fastpub .fp-actor-tag { background: #f8fafc; border: 1px solid #e2e8f0; }

/* 售价输入：空值时占位符高亮提醒，聚焦聚焦环统一 */
#view-fastpub .fp-inp::placeholder { color: #f59e0b; opacity: .75; font-weight: 600; }
#view-fastpub .fp-inp:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }

/* 操作列按钮：统一圆角与悬停 */
#view-fastpub .fp-row-acts .btn { border-radius: 8px; transition: transform .12s, box-shadow .12s; }
#view-fastpub .fp-row-acts .btn:hover { transform: translateY(-1px); }
#view-fastpub .fp-row-acts .btn-primary { background: linear-gradient(135deg, #2563eb, #1d4ed8); border-color: transparent; }

/* 序号徽章：选中行时变蓝 */
#view-fastpub .fp-table tbody tr:has(.fp-chk:checked) .fp-row-no { background: #dbeafe; color: #1d4ed8; }

/* 吸底分页栏：页码胶囊化，当前页更醒目 */
#view-fastpub .fp-foot { border-radius: 12px; }
#view-fastpub .fp-pager .btn { border-radius: 999px; min-width: 28px; }
#view-fastpub .fp-pager .btn.active { background: linear-gradient(135deg, #2563eb, #1d4ed8); border-color: transparent; box-shadow: 0 2px 6px -1px rgba(37, 99, 235, .4); }
#view-fastpub .fp-foot #fp-count { font-size: 12.5px; }
#view-fastpub .fp-foot .col-chk-all { cursor: pointer; }

/* 已发布 / 变体 标签微调 */
#view-fastpub .col-pubtag { border-radius: 999px; }

/* 滚动条更细 */
#view-fastpub .fp-list-card::-webkit-scrollbar { width: 6px; height: 6px; }

/* 发布设置弹窗：店铺卡片悬停反馈、区块间距 */
.fpub-shop { transition: border-color .15s, background .15s, box-shadow .15s; }
.fpub-shop:hover { border-color: #b6ccf5; box-shadow: 0 2px 8px -4px rgba(37, 99, 235, .25); }
.fpub-shop.on { box-shadow: 0 2px 10px -6px rgba(37, 99, 235, .45); }
.fpub-shop-name b { color: var(--text); }

/* ===== 极速上品 · 工具栏布局优化（2026-11-29）：两行分区，筛选行 / 批量操作行 ===== */

/* 筛选行：输入控件高度统一，搜索/重置与输入框底对齐 */
#view-fastpub .fp-filter-row { row-gap: 10px; }
#view-fastpub .fp-filter-row .col-fitem { min-width: 0; }
#view-fastpub .fp-filter-row .btn { flex: none; }

/* 批量操作行：普通批量操作靠左，核心发布动作靠右 */
#view-fastpub .fp-batch-row { row-gap: 10px; }
#view-fastpub .fp-batch-row .btn { box-shadow: 0 1px 2px rgba(16, 24, 40, .05); }

/* 核心动作组（批量发布 / 全店上架）与普通批量操作之间加分隔线 */
#view-fastpub .fp-batch-primary {
  padding-left: 14px;
  border-left: 1px solid #e2e8f0;
}
@media (max-width: 1180px) {
  #view-fastpub .fp-batch-primary { border-left: 0; padding-left: 0; }
}

/* ---------- 上架记录页样式优化（2026-11-29） ---------- */
/* 通用表格底座（.sel-table 之前没有样式定义，靠浏览器默认渲染） */
.sel-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.sel-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8fafc;
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 600;
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.sel-table tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
  vertical-align: middle;
  color: var(--text);
  word-break: break-word;
}
.sel-table tbody tr:last-child td { border-bottom: none; }
.sel-table tbody tr:nth-child(even) { background: #fbfcfe; }
.sel-table tbody tr:hover { background: #f3f7ff; }
.sel-table .pmeta { font-size: 11.5px; color: var(--text-2); margin-top: 3px; word-break: break-all; }
.sel-table td.l { text-align: left; }

/* 状态胶囊：成功/失败 */
.pubrec-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.pubrec-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; flex: none; }
.pubrec-pill.ok { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.pubrec-pill.ok::before { background: #10b981; }
.pubrec-pill.fail { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.pubrec-pill.fail::before { background: #ef4444; }

/* 来源标签 */
.pubrec-src {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 6px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  color: #1d4ed8;
  font-size: 12px;
  white-space: nowrap;
}

/* 错误信息与成功备注 */
.pubrec-err {
  color: #b91c1c;
  font-size: 12.5px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  cursor: help;
}
.pubrec-oknote { color: var(--text-2); font-size: 12px; }

/* 店铺额度卡片（数据看板沿用） */
.pubrec-day-title { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.pubrec-day-sub { font-size: 12px; color: var(--text-2); margin-top: 6px; }
.pubrec-store-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pubrec-store-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--border);
  font-size: 12.5px;
}
.pubrec-store-chip b.name {
  color: var(--text);
  font-weight: 600;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pubrec-store-chip .n-used { color: #b45309; font-weight: 700; white-space: nowrap; }
.pubrec-store-chip .n-remain { color: #047857; font-weight: 700; white-space: nowrap; }
.pubrec-store-chip.quota-full { border-color: #fecaca; background: #fffafa; }
.pubrec-store-chip.quota-full .n-remain { color: #b91c1c; }
.pubrec-store-chip.sum-chip { background: #eff6ff; border-color: #bfdbfe; }

/* ---------- 库存设置页样式优化（2026-11-30） ---------- */
.rts-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 14px 0;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.rts-bar label { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
.rts-bar .input { min-height: 34px; }
#rts-stock { width: 90px; }
#rts-wh-hint { max-width: 320px; line-height: 1.5; }
.rts-bar-acts { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rts-count {
  margin-left: auto;
  padding: 5px 12px;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}
.rts-table-wrap { overflow: auto; }
.rts-col-chk { width: 36px; }
.rts-col-img { width: 56px; }
.rts-empty { padding: 28px !important; text-align: center; color: var(--text-2); font-size: 13px; }

/* ---- 💵 价格检查页视觉优化（仅作用于本页，2026-11-30） ---- */
#view-pricecheck .view-head h2 { padding-left: 13px; position: relative; }
#view-pricecheck .view-head h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  border-radius: 3px;
  background: linear-gradient(180deg, #f59e0b, #d97706);
}
#view-pricecheck .view-head h2 .badge { font-weight: 700; letter-spacing: .3px; }
#view-pricecheck .fp-notice {
  border-radius: 12px;
  background: linear-gradient(90deg, #fff8ec, #fffdf8 70%, #ffffff);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .02), 0 4px 14px rgba(245, 158, 11, .06);
}
#view-pricecheck .rts-bar {
  box-shadow: 0 1px 2px rgba(15, 23, 42, .02), 0 6px 20px rgba(15, 23, 42, .03);
}
#view-pricecheck .rts-bar .input {
  min-height: 36px;
  border-radius: 9px;
  font-weight: 600;
  color: var(--ink, #1e293b);
}
#view-pricecheck .rts-count {
  padding: 5px 12px;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--blue, #2563eb);
  border: 1px solid #dbe7ff;
  font-size: 12px;
}
#view-pricecheck .rts-table-wrap {
  max-height: calc(100vh - 330px);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .02), 0 6px 20px rgba(15, 23, 42, .03);
}
#view-pricecheck .sel-table { border-collapse: separate; border-spacing: 0; width: 100%; }
#view-pricecheck .sel-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f7f9fc;
  font-weight: 600;
  letter-spacing: .2px;
  border-bottom: 1px solid var(--border);
}
#view-pricecheck .sel-table tbody td { border-bottom: 1px solid rgba(15, 23, 42, .05); padding: 9px 10px; }
#view-pricecheck .sel-table tbody tr { transition: background .12s ease; }
#view-pricecheck .sel-table tbody tr:hover td { background: #f3f8ff; }
#view-pricecheck .rts-col-chk input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; accent-color: var(--blue, #2563eb); }
#view-pricecheck .rts-thumb {
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .10);
  transition: transform .15s ease;
}
#view-pricecheck .rts-thumb:hover { transform: scale(1.08); }
#view-pricecheck .rts-col-img .ph {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  border-radius: 8px; background: #f3f4f6; border: 1px dashed #d4d9e2; font-size: 18px;
}
#view-pricecheck .sel-table td:nth-child(3) { font-size: 11.5px; color: var(--text-2); font-family: ui-monospace, Menlo, Consolas, monospace; }
#view-pricecheck .sel-table td.l { max-width: 340px; }
#view-pricecheck .pname {
  font-weight: 600;
  letter-spacing: .1px;
  max-width: 330px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#view-pricecheck .pmeta {
  color: #8b95a6;
  max-width: 330px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#view-pricecheck .sel-table td:nth-child(5) b {
  color: var(--ink, #1e293b);
  font-size: 13.5px;
  letter-spacing: -.2px;
}
#view-pricecheck .sel-table td:nth-child(5) { color: var(--text-2); font-size: 11px; }
#view-pricecheck .badge.red {
  box-shadow: 0 1px 3px rgba(220, 38, 38, .18);
  font-weight: 700;
}
#view-pricecheck .sel-table td:nth-child(7) { font-size: 12px; color: var(--text-2); }
#view-pricecheck .rts-empty { padding: 46px 28px !important; font-size: 13.5px; }

/* ---- 📦 FBP库存页（2026-12-01）---- */
#view-fbpstock .sel-table td.l { max-width: 340px; }
#view-fbpstock .pname {
  font-weight: 600;
  letter-spacing: .1px;
  max-width: 330px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#view-fbpstock .pmeta {
  color: #8b95a6;
  max-width: 330px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#view-fbpstock .fbp-num { color: #2563eb; font-size: 13.5px; }
#view-fbpstock .sel-table td:nth-child(7),
#view-fbpstock .sel-table td:nth-child(8) { font-size: 12px; color: var(--text-2); }
#view-fbpstock .sel-table td:nth-child(3) { font-size: 11.5px; color: var(--text-2); font-family: ui-monospace, Menlo, Consolas, monospace; }
#view-fbpstock .rts-empty { padding: 46px 28px !important; font-size: 13.5px; }

/* ---- 🧬 商品裂变页（2026-12-01）---- */
#view-fission .fs-src-wrap { margin: 10px 0 4px; }
#view-fission .fs-src {
  display: flex;
  gap: 14px;
  padding: 12px 14px;
  background: rgba(37, 99, 235, .04);
  border: 1px solid rgba(37, 99, 235, .14);
  border-radius: 10px;
  align-items: flex-start;
}
#view-fission .fs-src-img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 8px;
  background: #f1f5f9;
  flex: none;
}
#view-fission .fs-src-info { min-width: 0; flex: 1; }
#view-fission .fs-src-name { font-weight: 700; font-size: 13.5px; line-height: 1.45; margin-bottom: 4px; }
#view-fission .fs-src-desc { margin-top: 6px; font-size: 12px; color: #8b95a6; line-height: 1.5; }
#view-fission .fs-mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11.5px; }
#view-fission .pname {
  font-weight: 600;
  max-width: 300px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#view-fission .fs-errmsg { margin-top: 3px; color: #dc2626; font-size: 11px; max-width: 260px; }
#view-fission .rts-empty { padding: 40px 24px !important; font-size: 13.5px; }
#view-fission .rts-table-wrap { margin-top: 8px; }


.rts-thumb {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #f8fafc;
}
.rts-thumb-ph { display: flex; align-items: center; justify-content: center; font-size: 18px; }
.rts-sku { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; color: var(--text); }
.rts-offer { font-size: 12px; color: var(--text-2); word-break: break-all; }
.rts-name { font-size: 13px; line-height: 1.45; max-width: 320px; word-break: break-word; }
.rts-price { color: #047857; font-weight: 700; font-size: 13px; white-space: nowrap; }
.rts-price-orig { color: var(--text); font-weight: 600; }
.rts-store { display: inline-block; padding: 2px 8px; border-radius: 6px; background: #f1f5f9; color: var(--text-2); font-size: 12px; white-space: nowrap; }
.rts-status {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #b45309;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
/* 结果区 */
.rts-result {
  margin: 12px 0;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  background: var(--card);
}
.rts-result-ok { border-left-color: #10b981; }
.rts-result-fail { border-left-color: #ef4444; }
.rts-result-busy { border-left-color: var(--blue); color: var(--text-2); font-size: 13px; }
.rts-result-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.rts-result-nums { display: inline-flex; gap: 8px; }
.rts-num { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.rts-num.ok { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.rts-num.fail { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.rts-allok { color: #047857; font-size: 12.5px; }
.rts-errs { max-height: 180px; overflow: auto; margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.rts-err { font-size: 12px; line-height: 1.55; color: #b91c1c; background: #fef2f2; border-radius: 6px; padding: 5px 9px; word-break: break-word; }
.rts-progress { display: flex; align-items: center; gap: 9px; }
.rts-spinner { width: 13px; height: 13px; border: 2px solid #bfdbfe; border-top-color: var(--blue); border-radius: 50%; animation: rts-spin 0.7s linear infinite; flex: none; }
@keyframes rts-spin { to { transform: rotate(360deg); } }

/* ---------- 仓库设置页样式优化（2026-11-30） ---------- */
.whp-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 14px 0 12px;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  border-radius: 10px;
  color: var(--text-2);
  font-size: 12.5px;
}
.whp-summary-num { padding: 4px 10px; border-radius: 8px; background: #f8fafc; border: 1px solid var(--border); white-space: nowrap; }
.whp-summary-num b { color: var(--text); font-size: 13px; }
.whp-summary-num b.ok { color: #047857; }
.whp-summary-num b.warn { color: #b45309; }
.whp-table-wrap { margin-top: 0; }
.whp-col-store { width: 26%; }
.whp-col-wh { width: 44%; }
.whp-empty { padding: 28px !important; text-align: center; color: var(--text-2); font-size: 13px; }
.whp-store b { display: block; font-size: 13px; color: var(--text); }
.whp-store .pmeta { display: block; margin-top: 2px; }
.whp-sel { width: 100%; max-width: 320px; }
.whp-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: default;
}
.whp-tag.ok { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.whp-tag.warn { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.whp-tag.none { background: #f1f5f9; color: var(--text-2); border: 1px solid var(--border); }

/* ---------- 上架记录页样式优化 II（2026-11-30） ---------- */
/* 统计条：数字 chip 化 */
.pubrec-stats {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
  margin: 14px 0; padding: 11px 15px;
  background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--blue);
  border-radius: 10px; color: var(--text);
}
.pubrec-stats-icon { font-size: 16px; flex: none; }
.pubrec-stats-text { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12.5px; }
.pubrec-stat-num { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background: #f8fafc; border: 1px solid var(--border); color: var(--text-2); white-space: nowrap; }
.pubrec-stat-num b { color: var(--text); font-size: 13px; }
.pubrec-stat-num.ok { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
.pubrec-stat-num.ok b { color: #047857; }
.pubrec-stat-num.fail { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.pubrec-stat-num.fail b { color: #b91c1c; }
/* 筛选栏搜索框 */
.pubrec-q { width: 240px; max-width: 100%; }
/* 表格列宽（不再内联写死） */
.pubrec-col-time { width: 132px; }
.pubrec-col-status { width: 82px; }
.pubrec-col-src { width: 104px; }
.pubrec-col-sku { width: 138px; }
.pubrec-col-offer { width: 172px; }
.pubrec-col-price { width: 110px; }
.pubrec-col-store { width: 122px; }
.pubrec-col-err { width: 208px; }
/* 单元格内容 */
.pubrec-time { font-size: 12px; color: var(--text-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pubrec-name { font-size: 13px; line-height: 1.45; max-width: 340px; word-break: break-word; cursor: help; }
.pubrec-sku { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; }
.pubrec-offer { font-size: 12px; color: var(--text-2); word-break: break-all; }
.pubrec-price { font-weight: 700; color: #047857; font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pubrec-store { display: inline-block; padding: 2px 8px; border-radius: 6px; background: #f1f5f9; color: var(--text-2); font-size: 12px; white-space: nowrap; }
.pubrec-oknote::before { content: '✓ '; color: #10b981; font-weight: 700; }
.pubrec-err::before { content: '⚠ '; color: #ef4444; font-weight: 700; }
.pubrec-empty { padding: 28px !important; text-align: center; color: var(--text-2); font-size: 13px; }
.pubrec-empty.err { color: #b91c1c; }
/* 来源按渠道分色 */
.pubrec-src.src-fastpub { background: #eff6ff; border-color: #dbeafe; color: #1d4ed8; }
.pubrec-src.src-plugin { background: #f5f3ff; border-color: #ddd6fe; color: #6d28d9; }
.pubrec-src.src-box { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }

/* ---------- 上架记录筛选栏横向布局（2026-11-30） ---------- */
.pubrec-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin: 12px 0 14px;
  padding: 12px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.pubrec-fitem { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
.pubrec-fitem .input { height: 34px; min-height: 34px; font-size: 12.5px; }
.pubrec-sel { width: 128px; }
.pubrec-q { width: 280px; }

/* ---------- 促销管理页样式（2026-11-30） ---------- */
.promo-toolbar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px;
  margin: 12px 0; padding: 12px 16px;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
}
.promo-fitem { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
.promo-fitem .input { height: 34px; min-height: 34px; font-size: 12.5px; }
.promo-sel { width: 180px; }
.promo-count { padding: 4px 12px; border-radius: 999px; background: #eff6ff; border: 1px solid #bfdbfe; color: #1d4ed8; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.promo-errors { margin: 0 0 12px; padding: 10px 14px; border-radius: 10px; background: #fffbeb; border: 1px solid #fde68a; color: #92400e; font-size: 12.5px; }
.promo-col-store { width: 120px; }
.promo-col-status { width: 110px; }
.promo-col-num { width: 110px; }
.promo-col-date { width: 190px; }
.promo-col-act { width: 150px; }
.promo-store { display: inline-block; padding: 2px 9px; border-radius: 6px; background: #f1f5f9; color: var(--text-2); font-size: 12px; white-space: nowrap; }
.promo-title { font-size: 13px; line-height: 1.45; max-width: 420px; word-break: break-word; cursor: help; }
.promo-num { color: #047857; font-size: 14px; }
.promo-date { font-size: 12px; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.promo-tag { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.promo-tag.active { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.promo-tag.available { background: #f1f5f9; color: var(--text-2); border: 1px solid var(--border); }
.promo-tag.upcoming { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.promo-tag.ended { background: #f8fafc; color: #94a3b8; border: 1px solid #e2e8f0; }
/* 商品抽屉 */
.promo-drawer { margin-top: 16px; padding: 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--blue); }
.promo-drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.promo-drawer-head b { font-size: 14px; color: var(--text); }
.promo-drawer-head .pmeta { display: block; margin-top: 3px; }
.promo-drawer-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.promo-remove-btn { background: #dc2626 !important; color: #fff !important; border-color: #b91c1c !important; }
.promo-remove-btn:hover { background: #b91c1c !important; }
.promo-drawer-result { margin: 8px 0 12px; padding: 10px 14px; border-radius: 10px; font-size: 12.5px; }
.promo-drawer-result.ok { background: #ecfdf5; border: 1px solid #a7f3d0; color: #047857; }
.promo-drawer-result.warn { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.promo-drawer-result.err { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.promo-drawer-table { max-height: 480px; overflow: auto; }
.promo-col-chk { width: 40px; }
.promo-col-id { width: 130px; }
.promo-col-price { width: 100px; }
.promo-col-mode { width: 110px; }
.promo-pid { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; }
.promo-item-name { font-size: 13px; max-width: 360px; word-break: break-word; cursor: help; }
.promo-price { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.promo-price.act { color: #047857; }
.promo-mode { display: inline-block; padding: 2px 8px; border-radius: 6px; background: #f1f5f9; color: var(--text-2); font-size: 11.5px; }
.promo-pager { display: flex; align-items: center; gap: 12px; margin-top: 12px; }

/* ---- 归档管理（2026-12-01）---- */
.arch-table .arch-title { max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--text); }
.arch-table td { vertical-align: middle; }
.arch-del-btn { background: #dc2626 !important; color: #fff !important; border: 1px solid #b91c1c !important; }
.arch-del-btn:hover { background: #b91c1c !important; }
.arch-del-btn:disabled { opacity: .55; cursor: not-allowed; }
.arch-table .promo-col-chk { width: 42px; }
.arch-table input[type="checkbox"] { width: 15px; height: 15px; cursor: pointer; }
#arch-delete { margin-left: auto; }
#arch-loadmore, #arch-sel-all, #arch-sel-none { white-space: nowrap; }
