/* POFOREAL 品牌后台 — 不用 Google Fonts（国内访问极慢），改用系统字体 */
:root {
  --pof-black: #000000;
  --pof-text: #1a1a1a;
  --pof-muted: #767676;
  --pof-border: #e8e8e8;
  --pof-bg: #ffffff;
  --pof-bg-soft: #f7f7f7;
  --pof-accent: #8B0000;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-serif: 'Songti SC', 'Noto Serif SC', 'STSong', serif;
  --radius: 2px;
  --transition: 0.2s ease;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--pof-bg);
  color: var(--pof-text);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--pof-text); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.65; text-decoration: none; }

input, select, textarea {
  font-family: var(--font-sans);
  font-size: 14px;
  padding: 12px 14px;
  border: 1px solid var(--pof-border);
  border-radius: var(--radius);
  background: var(--pof-bg);
  color: var(--pof-text);
  width: 100%;
  transition: border-color var(--transition);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--pof-black);
}

button {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 11px 22px;
  border: 1px solid var(--pof-black);
  background: var(--pof-bg);
  color: var(--pof-black);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), opacity var(--transition);
}
button:hover { background: var(--pof-black); color: #fff; }
button.primary {
  background: var(--pof-black);
  color: #fff;
  border-color: var(--pof-black);
}
button.primary:hover { background: #333; border-color: #333; }
button.btn-sm { padding: 6px 14px; font-size: 12px; }
button.btn-ghost {
  border-color: var(--pof-border);
  color: var(--pof-muted);
  background: transparent;
}
button.btn-ghost:hover { background: var(--pof-bg-soft); color: var(--pof-text); border-color: var(--pof-text); }

label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 13px; letter-spacing: 0.02em; }
.form-group { margin-bottom: 20px; }

.page { max-width: 900px; margin: 0 auto; padding: 48px 24px; }
.page h1 {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.admin-layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 240px;
  background: var(--pof-bg);
  border-right: 1px solid var(--pof-border);
  padding: 24px 0;
}
.sidebar-brand {
  padding: 0 24px 20px;
  border-bottom: 1px solid var(--pof-border);
  margin-bottom: 12px;
}
/* 侧栏 Logo + 测试角标横排 */
.sidebar-brand-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-brand-row img { height: 20px; width: auto; max-width: 160px; display: block; }
.sidebar a {
  display: block;
  padding: 11px 24px;
  color: var(--pof-muted);
  font-size: 13px;
  letter-spacing: 0.02em;
}
.sidebar a:hover { background: var(--pof-bg-soft); color: var(--pof-text); opacity: 1; }
.sidebar a.active {
  background: var(--pof-bg-soft);
  color: var(--pof-black);
  font-weight: 600;
  border-left: 2px solid var(--pof-black);
  margin-left: -2px;
}
.sidebar #logout { margin-top: 12px; border-top: 1px solid var(--pof-border); padding-top: 16px; }

.main { flex: 1; padding: 40px 48px; background: var(--pof-bg); }
.main h2 {
  margin: 0 0 28px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--pof-border);
  font-size: 13px;
  vertical-align: middle;
}
th {
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pof-muted);
  background: var(--pof-bg);
}
td.col-center, th.col-center { text-align: center; }

.preview-box {
  border: 1px solid var(--pof-border);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 16px;
  max-width: 360px;
  background: var(--pof-bg-soft);
}
.preview-box .img { width: 100%; aspect-ratio: 3/4; background: #eee; border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.preview-box .img img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); display: block; }
.preview-img-placeholder { font-size: 12px; padding: 12px; text-align: center; line-height: 1.5; }
.preview-box .name { font-weight: 600; margin-bottom: 4px; }
.preview-box .desc { font-size: 13px; color: var(--pof-muted); }

.err { color: #c00; font-size: 13px; margin-top: 6px; }
.muted { color: var(--pof-muted); font-size: 13px; line-height: 1.6; }
/* 品牌主页：引导语行距与下方「品牌介绍」输入框一致 */
.brand-home-hints { margin: 0 0 16px; }
.brand-home-hints .muted {
  margin: 0;
  font-size: 14px;
  line-height: normal;
  color: var(--pof-muted);
}
.header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }

.modal-mask {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
  backdrop-filter: blur(2px);
}
.modal {
  background: var(--pof-bg);
  padding: 32px;
  border-radius: var(--radius);
  max-width: 480px;
  width: 92%;
  box-shadow: 0 24px 48px rgba(0,0,0,.08);
}
.modal h3 {
  margin: 0 0 20px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 20px;
}

/* 发货弹窗（物流 + 分销佣金两个输入框） */
.modal-logistics { max-width: 440px; padding: 24px 28px 28px; max-height: 90vh; overflow-y: auto; }
.po-logistics-tip { margin: 0 0 14px; font-size: 13px; line-height: 1.6; }
.po-logistics-field { margin-bottom: 4px; }
.po-commission-field {
  margin-top: 8px;
  padding: 12px 14px 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}
.po-commission-hint { margin: 6px 0 0; font-size: 12px; }
.po-comm-cell { white-space: nowrap; font-size: 13px; }
.po-comm-val { color: #8b0000; font-weight: 600; }
.po-comm-empty { font-size: 12px; }
.po-prod-text { min-width: 0; }
.po-prod-comm { font-size: 11px; color: #8b0000; margin-top: 2px; font-weight: 600; }
.po-prod-comm.muted { color: #999; font-weight: normal; }
.po-commission-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 12px;
  padding: 10px 14px;
  background: linear-gradient(90deg, #fdf5f5 0%, #fff 100%);
  border: 1px solid #e8d4d4;
  border-radius: 8px;
}
.po-commission-banner-label { font-size: 12px; color: #666; flex-shrink: 0; }
.po-commission-banner-val { font-size: 18px; font-weight: 700; color: #8b0000; }
.po-commission-banner-empty .po-commission-banner-val { font-size: 13px; font-weight: normal; }
.hc-prev-comm { color: #ffe8e8; font-weight: 600; }
.po-build-tag { font-size: 11px; color: #aaa; margin-left: 6px; }
.po-logistics-label .req { color: #c0392b; font-weight: 700; }
.po-logistics-input {
  width: 100%;
  box-sizing: border-box;
  font-size: 14px;
  padding: 11px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
}
.po-logistics-err { min-height: 20px; margin: 8px 0 0; font-size: 13px; }
.po-logistics-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}
.po-logistics-foot .primary { min-width: 96px; }

/* 顶部操作结果提示 */
.admin-toast-wrap {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.admin-toast {
  padding: 11px 18px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
  animation: admin-toast-in 0.28s ease;
  white-space: nowrap;
}
.admin-toast.out { animation: admin-toast-out 0.28s ease forwards; }
.admin-toast-success {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}
.admin-toast-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}
@keyframes admin-toast-in {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes admin-toast-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-8px); }
}

.flex { display: flex; gap: 12px; flex-wrap: wrap; }
.mb { margin-bottom: 16px; }

/* ---------- 数据总览 ---------- */
.analytics-page { width: 100%; max-width: none; }
.analytics-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--pof-border);
}
.analytics-top h2 { margin: 0; font-family: var(--font-serif); font-size: 22px; font-weight: 400; flex: 0 0 auto; }
/* 周期 / 环比：靠页面最右侧 */
.analytics-toolbar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 0 0 auto;
  margin-left: auto;
  align-items: flex-end;
}
.analytics-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 10px;
}
.analytics-toolbar-label {
  flex: 0 0 auto;
  font-size: 12px;
  color: var(--pof-muted);
  letter-spacing: 0.04em;
}
.period-tabs,
.an-compare-tabs { display: flex; gap: 6px; flex-wrap: wrap; flex: 0 0 auto; justify-content: flex-end; }
@media (min-width: 860px) {
  .analytics-toolbar { flex-direction: row; align-items: center; gap: 20px 28px; }
}
.period-btn {
  padding: 7px 14px;
  border: 1px solid var(--pof-border);
  background: var(--pof-bg);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 12px;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.period-btn:hover { border-color: #ccc; background: var(--pof-bg-soft); color: var(--pof-text); }
.period-btn.active { background: var(--pof-black); color: #fff; border-color: var(--pof-black); }

.analytics-filter-panel {
  padding: 14px 18px;
  margin-bottom: 16px;
  background: var(--pof-bg-soft);
  border: 1px solid var(--pof-border);
  border-radius: var(--radius);
}
.analytics-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 20px;
}
.analytics-filter-left {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 16px;
  flex: 0 0 auto;
}
/* 合作分类：整组靠右 */
.analytics-filter-right {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-end;
  margin-left: auto;
  flex: 1 1 320px;
}
.analytics-filter-panel .form-group { margin-bottom: 0; }
.analytics-filter-panel .form-group label {
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--pof-muted);
  font-weight: 400;
}
.an-filter-narrow select {
  width: 148px;
  max-width: 100%;
  min-width: 0;
  padding: 8px 10px;
  font-size: 13px;
}
.analytics-filter-panel .an-coop-filter { margin-bottom: 0; }
.analytics-filter-panel .an-coop-filter label { text-align: right; }
.analytics-filter-panel .an-coop-filter .chip-row {
  margin: 0;
  justify-content: flex-end;
}
.analytics-filter-custom {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--pof-border);
}
.an-custom-range input[type="date"] { width: auto; margin: 0 6px; }

.analytics-meta {
  margin: 0 0 20px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--pof-muted);
}
.an-compare-hint {
  margin: -8px 0 16px;
  padding: 10px 14px;
  font-size: 12px;
  color: var(--pof-text);
  background: var(--pof-bg-soft);
  border-left: 3px solid var(--pof-black);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* KPI 指标区：统一白底卡片，固定列数避免参差不齐 */
.analytics-block-title {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--pof-muted);
  letter-spacing: 0.06em;
  text-transform: none;
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
@media (min-width: 720px) { .kpi-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .kpi-grid { grid-template-columns: repeat(5, 1fr); } }
.kpi-card {
  border: 1px solid var(--pof-border);
  border-radius: var(--radius);
  padding: 16px 18px;
  background: var(--pof-bg);
  min-height: 96px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* 仅数字标红，不再整卡粉底 */
.kpi-card.kpi-warn .kpi-value { color: var(--pof-accent); }
.kpi-card.kpi-clickable { cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s; }
.kpi-card.kpi-clickable:hover { border-color: #bbb; box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
.kpi-card.kpi-clickable:focus-visible { outline: 2px solid var(--pof-black); outline-offset: 2px; }
.mp-users-modal-table { max-height: calc(100vh - 260px); overflow: auto; margin-top: 8px; }
.kpi-label { font-size: 12px; color: var(--pof-muted); margin-bottom: 6px; letter-spacing: 0.02em; }
.kpi-value { font-size: 26px; font-weight: 600; color: var(--pof-black); line-height: 1.15; font-variant-numeric: tabular-nums; }
.kpi-hint { font-size: 11px; color: #b0b0b0; margin-top: 4px; line-height: 1.4; }

.analytics-section {
  margin-bottom: 32px;
  padding-top: 8px;
  border-top: 1px solid var(--pof-border);
}
.analytics-section h3 {
  font-family: var(--font-serif);
  font-size: 16px;
  margin: 0 0 6px;
  font-weight: 400;
}
.analytics-section > .muted { margin: 0 0 14px; font-size: 12px; }

.bar-chart { max-width: 560px; }
.bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 12px; }
.bar-date { width: 88px; flex-shrink: 0; color: var(--pof-muted); }
.bar-track { flex: 1; height: 8px; background: var(--pof-bg-soft); border-radius: 0; overflow: hidden; }
.bar-fill { height: 100%; background: var(--pof-black); min-width: 2px; }
.bar-num { width: 28px; text-align: right; color: var(--pof-text); }

.analytics-two-col { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 960px) { .analytics-two-col { grid-template-columns: 1fr 1fr; } }
.footnote { margin-top: 28px; font-size: 12px; line-height: 1.6; color: var(--pof-muted); }

/* 紧急待办：与 KPI 同风格，去掉大面积粉底 */
.analytics-urgent {
  margin-bottom: 24px;
  padding: 16px 18px;
  border: 1px solid var(--pof-border);
  background: var(--pof-bg);
  border-radius: var(--radius);
}
.analytics-urgent-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-bottom: 12px;
}
.analytics-urgent-head h3 { margin: 0; font-size: 14px; font-weight: 500; color: var(--pof-text); }
.analytics-urgent-head .muted { font-size: 12px; }
.urgent-today-badge {
  background: var(--pof-accent);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 500;
}
.urgent-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 640px) { .urgent-grid { grid-template-columns: repeat(4, 1fr); } }
.urgent-card {
  border: 1px solid var(--pof-border);
  background: var(--pof-bg-soft);
  border-radius: var(--radius);
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  font-weight: 400;
  letter-spacing: normal;
}
.urgent-card.has-count {
  background: var(--pof-bg);
  border-color: #d8d8d8;
}
.urgent-card.has-count .urgent-num { color: var(--pof-accent); }
/* 覆盖全局 button:hover 黑底，避免待办卡片悬停变色突兀 */
.urgent-card:hover {
  border-color: var(--pof-black);
  background: var(--pof-bg);
  color: var(--pof-text);
}
.period-btn.active:hover { background: var(--pof-black); color: #fff; }
.urgent-label { display: block; font-size: 12px; color: var(--pof-muted); margin-bottom: 4px; }
.urgent-num { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }

.kpi-grid-period { margin-bottom: 8px; }
.kpi-grid-snapshot { margin-bottom: 28px; }
.analytics-chart-box {
  padding: 16px 12px 8px;
  border: 1px solid var(--pof-border);
  border-radius: var(--radius);
  background: var(--pof-bg);
  overflow-x: auto;
}

/* ---------- 申请量趋势（图表区视觉优化） ---------- */
.an-trend-section-head { margin-bottom: 14px; }
.an-trend-section-head h3 { margin: 0 0 4px; }
.an-trend-section-head .muted { margin: 0; font-size: 12px; }
.an-trend-chart-box {
  padding: 18px 16px 14px;
  background: linear-gradient(180deg, #fafafa 0%, #fff 48%);
}
.an-trend-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-bottom: 14px;
}
.an-trend-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.an-trend-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #e4e4e4;
  background: #fff;
  color: #555;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: normal;
  transition: border-color 0.15s, background 0.15s, opacity 0.15s, color 0.15s, box-shadow 0.15s;
}
/* 覆盖全局 button:hover 黑底，避免筛选标签悬停变色突兀 */
.an-trend-chart-box .an-trend-chip:hover,
.an-trend-chart-box .an-trend-chip:focus {
  border-color: #c8c8c8;
  background: #f7f7f7;
  color: #333;
}
.an-trend-chip.on {
  border-color: #d8d8d8;
  color: #333;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.an-trend-chip.off { opacity: 0.4; background: #f8f8f8; color: #999; }
.an-trend-chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.an-trend-gran-badge {
  font-size: 11px;
  color: #888;
  background: #f0f0f0;
  border: 1px solid #e8e8e8;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.an-trend-sparse {
  margin: -4px 0 12px;
  font-size: 11px;
  color: #a0a0a0;
}
.an-trend-body {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.an-trend-yaxis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  flex-shrink: 0;
  padding: 12px 0 28px;
  font-size: 10px;
  color: #b8b8b8;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.an-trend-main { flex: 1; min-width: 0; position: relative; }
.an-trend-plot-panel {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 6px;
  padding: 10px 8px 6px;
  position: relative;
}
.an-trend-line-hint {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 4;
  font-size: 10px;
  color: #b0b0b0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  pointer-events: none;
}
.an-trend-line-hint i {
  display: inline-block;
  width: 14px;
  height: 0;
  border-top: 1.5px solid #b0b0b0;
  position: relative;
}
.an-trend-line-hint i::after {
  content: '';
  position: absolute;
  right: -1px;
  top: -3px;
  width: 5px;
  height: 5px;
  border: 1.5px solid #b0b0b0;
  border-radius: 50%;
  background: #fff;
}
.an-trend-wrap {
  position: relative;
  overflow-x: auto;
  padding: 0 2px 2px;
  -webkit-overflow-scrolling: touch;
}
.an-trend-line-svg {
  position: absolute;
  left: 2px;
  top: 0;
  pointer-events: none;
  z-index: 2;
}
.an-trend-grid-line {
  stroke: #efefef;
  stroke-width: 1;
  stroke-dasharray: 3 5;
}
.an-trend-grid-line:last-of-type {
  stroke: #e0e0e0;
  stroke-dasharray: none;
}
.an-trend-line-path {
  fill: none;
  stroke: #a8a8a8;
  stroke-width: 1.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.an-trend-chart {
  display: flex;
  align-items: flex-start;
  position: relative;
  z-index: 1;
  min-width: min-content;
  padding-bottom: 2px;
}
.an-trend-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}
.an-trend-col-has .an-date { color: #666; font-weight: 500; }
.an-trend-col-has .an-trend-plot::before {
  content: '';
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 0;
  top: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.025) 100%);
  border-radius: 4px 4px 0 0;
  z-index: 0;
  pointer-events: none;
}
.an-trend-plot {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-sizing: border-box;
}
/* 柱顶标记组：数字在上、折线圆点在下，互不遮挡 */
.an-trend-marker {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  z-index: 4;
  margin-bottom: -3.5px;
}
.an-trend-marker-zero { gap: 4px; margin-bottom: -2.5px; }
.an-bar-value {
  font-size: 10px;
  color: #888;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
  padding: 0 2px;
  background: rgba(255,255,255,0.85);
}
.an-bar-value-zero { color: #b5b5b5; font-size: 9px; }
.an-trend-col-zero .an-date { color: #aaa; }
.an-bar-track {
  width: 68%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.an-stack {
  display: flex;
  flex-direction: column-reverse;
  align-items: stretch;
  width: 100%;
  position: relative;
  z-index: 1;
  border-radius: 4px 4px 0 0;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}
.an-stack-seg { width: 100%; }
.an-stack-seg-top { border-radius: 3px 3px 0 0; }
.an-line-dot {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border: 1.5px solid #a8a8a8;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.9);
}
/* 0 值：较小空心圆点贴在基线上，折线仍会经过 */
.an-line-dot-zero {
  width: 5px;
  height: 5px;
  border-color: #c8c8c8;
  background: #fafafa;
}
.an-date {
  width: 100%;
  margin-top: 8px;
  font-size: 10px;
  color: #b5b5b5;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.an-date-skip { visibility: hidden; height: 12px; }
.an-trend-empty { padding: 24px 0; text-align: center; }

.kpi-ach-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 12px 0 20px; }
@media (min-width: 900px) { .kpi-ach-grid { grid-template-columns: repeat(2, 1fr); } }
.kpi-ach-card { border: 1px solid var(--pof-border); border-radius: var(--radius); padding: 14px 16px; background: #fafafa; }
.kpi-ach-card h4 { margin: 0 0 8px; font-size: 14px; }
.kpi-ach-card p { margin: 4px 0; font-size: 13px; }
.kpi-rule-add { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0; }
.kpi-rule-add select, .kpi-rule-add input { min-width: 120px; }
.sa-scope-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.sa-scope-row select { min-width: 140px; }
.mua-social-tabs { margin-bottom: 14px; }
.mua-social-foot { margin-top: 10px; }
.url-cell { max-width: 220px; word-break: break-all; font-size: 12px; }
.kpi-config-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin: 16px 0; }
@media (min-width: 768px) { .kpi-config-grid { grid-template-columns: 1fr 1fr; } }
.kpi-config-block { border: 1px solid var(--pof-border); padding: 16px; border-radius: var(--radius); }
.kpi-config-block h4 { margin: 0 0 12px; font-size: 14px; }
.kpi-config-block label { display: block; font-size: 12px; color: var(--pof-muted); margin: 10px 0 4px; }
.kpi-config-block input { width: 100%; max-width: 280px; }
.kpi-range-hint { font-size: 12px; margin-top: 8px; }
.kpi-rollover-check { display: block; margin: 12px 0; font-size: 13px; }
.kpi-expiry-warn { background: #fff3cd; border: 1px solid #ffc107; padding: 10px 14px; border-radius: var(--radius); margin-bottom: 12px; font-size: 13px; }

/* ---------- 公开页（登录 / 入驻 / 帮助） ---------- */
body.public-page { min-height: 100vh; display: flex; flex-direction: column; background: var(--pof-bg); }
.public-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 56px 24px 32px;
}
.public-main.form-page { justify-content: flex-start; }

.brand-logo-wrap,
.brand-logo-link { display: block; margin-bottom: 48px; text-align: center; }
.brand-logo-img { height: 40px; width: auto; max-width: min(320px, 80vw); display: block; margin: 0 auto; }
.sidebar-brand-row img { height: 22px; width: auto; max-width: 180px; display: block; }
.brand-logo-fallback {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.28em;
  color: var(--pof-black);
}

.login-card {
  max-width: 400px;
  width: 100%;
  padding: 40px 36px;
  border: 1px solid var(--pof-border);
  border-radius: var(--radius);
  background: var(--pof-bg);
}
.login-title {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  text-align: center;
}
/* 测试环境登录页角标（testenv 子域名显示） */
.env-test-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 10px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
  background: #d97706;
  border-radius: 999px;
  vertical-align: middle;
  letter-spacing: 0.06em;
}
.login-card .muted { text-align: center; }
.login-card .primary { width: 100%; margin-top: 8px; }
.apply-link { text-align: center; margin-top: 24px; }
.apply-link a { font-size: 13px; letter-spacing: 0.04em; border-bottom: 1px solid var(--pof-black); padding-bottom: 2px; }
.apply-link a:hover { opacity: 1; border-color: var(--pof-muted); }

.success-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  min-height: 50vh;
}
.success-msg {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.8;
  max-width: 480px;
  margin: 0 0 28px;
  color: var(--pof-text);
}

.site-footer {
  text-align: center;
  padding: 28px 16px 36px;
  margin-top: auto;
  border-top: 1px solid var(--pof-border);
}
.site-footer-line1 { font-size: 13px; margin-bottom: 10px; letter-spacing: 0.02em; }
.site-footer-line1 .sep { color: #d1d1d1; margin: 0 8px; }
.site-footer-line2 { font-size: 11px; color: #a3a3a3; line-height: 1.7; letter-spacing: 0.02em; }

body.page-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  gap: 12px;
}
.page-loading-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 0;
  margin: 0;
}
.page-loading-spin {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--pof-border, #ddd);
  border-top-color: var(--pof-text, #111);
  border-radius: 50%;
  animation: admin-page-spin 0.75s linear infinite;
  flex-shrink: 0;
}
.page-loading-inline .page-loading-spin {
  width: 16px;
  height: 16px;
}
@keyframes admin-page-spin {
  to { transform: rotate(360deg); }
}

.admin-body { min-height: 100vh; display: flex; flex-direction: column; }
body.admin-body .admin-layout { flex: 1; }
body.admin-body .site-footer { flex-shrink: 0; }

/* ---------- 帮助中心 FAQ ---------- */
.help-page { max-width: 720px; width: 100%; }
.faq-section { margin-top: 32px; }
.faq-section > h3 {
  font-family: var(--font-serif);
  font-size: 16px;
  margin: 0 0 16px;
  border-bottom: 1px solid var(--pof-border);
  padding-bottom: 10px;
  font-weight: 400;
}
.faq-item { margin-bottom: 20px; }
.faq-item h4 { margin: 0 0 8px; font-size: 14px; font-weight: 600; }
.faq-item p { margin: 0; font-size: 13px; color: var(--pof-muted); line-height: 1.7; }

/* ---------- 品牌申请审核 ---------- */
.nav-badge {
  display: inline-block;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  padding: 0 5px;
  margin-left: 6px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: var(--pof-black);
  border-radius: 9px;
  text-align: center;
  vertical-align: middle;
}
.status-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.status-pending { color: #c00; background: #fff5f5; border: 1px solid #ffd6d6; }
.status-approved { color: #0a7a3e; background: #f0faf4; border: 1px solid #c8ebd4; }
.status-rejected { color: var(--pof-muted); background: var(--pof-bg-soft); border: 1px solid var(--pof-border); }

.detail-grid { display: grid; gap: 14px; text-align: left; }
.detail-row { border-bottom: 1px solid var(--pof-border); padding-bottom: 10px; }
.detail-row .label { font-size: 11px; color: var(--pof-muted); margin-bottom: 4px; letter-spacing: 0.06em; text-transform: uppercase; }
.detail-row .value { font-size: 14px; word-break: break-all; }
.detail-row .value a { color: var(--pof-black); border-bottom: 1px solid var(--pof-border); }

.apply-page .primary { min-width: 140px; }

/* 品牌入驻：多条店铺/社媒链接 */
.shop-links-group { margin-bottom: 20px; }
.shop-link-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
  margin-bottom: 8px;
}
/* 自定义平台选择器（与输入框同风格，替代 Safari 原生 select） */
.shop-link-platform-picker {
  position: relative;
  flex: 0 0 148px;
  width: 148px;
}
.shop-link-platform-trigger {
  width: 100%;
  height: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--pof-border);
  border-radius: var(--radius);
  background: var(--pof-bg);
  color: var(--pof-text);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  text-align: left;
  line-height: 1.3;
}
.shop-link-platform-trigger:hover {
  border-color: #ccc;
  background: var(--pof-bg);
  color: var(--pof-text);
}
.shop-link-platform-picker.is-open .shop-link-platform-trigger {
  border-color: var(--pof-black);
}
.shop-link-platform-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.shop-link-platform-label.is-placeholder { color: var(--pof-muted); }
.shop-link-platform-chevron {
  flex-shrink: 0;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--pof-muted);
  transition: transform var(--transition);
}
.shop-link-platform-picker.is-open .shop-link-platform-chevron {
  transform: rotate(180deg);
}
.shop-link-platform-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 240px;
  overflow-y: auto;
  background: var(--pof-bg);
  border: 1px solid var(--pof-border);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  padding: 4px 0;
}
.shop-link-platform-menu[hidden] { display: none; }
.shop-link-platform-option {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border: none;
  background: none;
  color: var(--pof-text);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  text-align: left;
  border-radius: 0;
  line-height: 1.4;
}
.shop-link-platform-option:hover {
  background: var(--pof-bg-soft);
  color: var(--pof-text);
}
.shop-link-platform-option.is-selected {
  font-weight: 500;
  background: var(--pof-bg-soft);
}
.shop-link-row input.shop-link-url {
  flex: 1;
  min-width: 0;
  min-height: 46px;
}
.shop-link-del {
  flex: 0 0 46px;
  width: 46px;
  height: auto;
  min-height: 46px;
  padding: 0;
  border: 1px solid var(--pof-border);
  background: var(--pof-bg);
  color: var(--pof-muted);
  font-size: 18px;
  line-height: 1;
  border-radius: var(--radius);
}
.shop-link-del:hover:not(:disabled) { background: var(--pof-bg-soft); color: var(--pof-text); }
.shop-link-del:disabled { opacity: 0.35; cursor: not-allowed; }
.shop-link-add-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.shop-link-add-btn {
  padding: 0;
  border: none;
  background: none;
  color: #1a7f37;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
}
.shop-link-add-btn:hover:not(:disabled) { background: none; color: #145c28; opacity: 1; }
.shop-link-add-btn:disabled { color: var(--pof-muted); cursor: not-allowed; }
.shop-link-hint { font-size: 12px; color: var(--pof-muted); }
.ba-shop-link-item { margin-bottom: 6px; }
.ba-shop-link-item:last-child { margin-bottom: 0; }

/* ---------- Banner / 开屏可视化配置 ---------- */
.ads-main { max-width: 880px; }
.ads-section { margin-bottom: 20px; }
.ads-section h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}
.ads-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.ads-section-header h3 { flex: 1; }
.toggle-enable-btn {
  display: inline-block;
  padding: 8px 18px;
  border: none;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease;
}
.toggle-enable-btn.is-off {
  background: var(--pof-black, #000);
  color: #fff;
}
.toggle-enable-btn.is-on {
  background: #0a7a3e;
  color: #fff;
}
.toggle-enable-btn:hover { opacity: 0.88; }
.ad-target-picker { margin-top: 12px; }
.ad-product-checks {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid var(--pof-border);
  padding: 10px 12px;
  background: var(--pof-bg-soft);
  border-radius: var(--radius);
}
/* 商品勾选行：覆盖全局 label{display:block} 与 input{width:100%}，避免复选框与文字分两端 */
.ad-product-checks .ad-product-check,
.poch-product-checks .ad-product-check {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  margin: 6px 0 !important;
  padding: 6px 0;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.45;
  cursor: pointer;
}
.ad-product-checks .ad-product-check input[type="checkbox"],
.poch-product-checks .ad-product-check input[type="checkbox"] {
  -webkit-appearance: checkbox;
  appearance: checkbox;
  display: inline-block !important;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  max-width: 16px !important;
  margin: 2px 0 0 !important;
  padding: 0 !important;
  flex: 0 0 16px;
  cursor: pointer;
}
/* 勾选列表里的商品首图缩略图 */
.ad-product-check-thumb {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--pof-bg);
  border: 1px solid var(--pof-border);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--pof-muted);
}
.ad-product-check-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ad-product-check-text {
  flex: 1;
  min-width: 0;
  word-break: break-word;
}
.ad-link-hint { font-size: 12px; margin-top: 8px; word-break: break-all; }
/* 小程序首页 POchoise 商品配置 */
.pochoise-admin-picker { margin-top: 8px; }
.poch-product-checks {
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid var(--pof-border);
  padding: 10px 12px;
  background: var(--pof-bg-soft);
  border-radius: var(--radius);
  margin-bottom: 10px;
}
.poch-product-checks .ad-product-check.is-added { opacity: 0.55; }
.poch-add-group .poch-add-btn { margin-top: 4px; }
.poch-selected-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.poch-selected-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--pof-border);
}
.poch-selected-thumb {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: var(--pof-bg-soft);
  border: 1px solid var(--pof-border);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--pof-muted);
}
.poch-selected-thumb img { width: 100%; height: 100%; object-fit: cover; }
.poch-selected-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
}
.poch-selected-meta strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.poch-selected-actions { display: flex; gap: 4px; flex-shrink: 0; }
.mp-pochoise-section { margin-bottom: 20px; }
.mp-layout-advanced { margin: 16px 0; }
.mp-layout-advanced-summary { cursor: pointer; font-weight: 600; margin-bottom: 8px; }
/* 小程序首页配置：未配置板块默认折叠 */
.mp-home-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.mp-home-section-head h3 { margin: 0 0 4px; }
.mp-home-section-status { font-size: 12px; display: block; }
.mp-home-section-status.is-set { color: #0a7a3e; }
.mp-home-section.is-expanded .mp-home-section-head { margin-bottom: 16px; }
.mp-home-section-body.is-collapsed { display: none; }
.card-panel {
  border: 1px solid var(--pof-border);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--pof-bg);
}
.ad-preview {
  margin-top: 12px;
  min-height: 120px;
  background: var(--pof-bg-soft);
  border: 1px dashed var(--pof-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}
.ad-preview img {
  width: 100%;
  max-height: 160px;
  object-fit: cover;
}
.ad-preview .splash-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 12px;
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 13px;
}
.banner-cards { display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; }
.banner-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  border: 1px solid var(--pof-border);
  padding: 12px;
  border-radius: var(--radius);
}
.banner-card-active { border-color: var(--pof-black); box-shadow: 0 0 0 1px var(--pof-black); }
.banner-card-image { align-self: start; }
.banner-card-fields .form-group { margin-bottom: 8px; }
.banner-card-fields label { font-size: 11px; }
.banner-card-fields input { font-size: 13px; padding: 6px 8px; }
.banner-card-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }

/* 小程序 Banner 滑动预览（模拟选品页 swiper：350rpx 高、3 秒切换、指示点 #8B0000） */
.banner-swiper-preview-wrap {
  margin: 12px 0 20px;
  padding: 16px;
  background: var(--pof-bg-soft);
  border-radius: var(--radius);
  border: 1px solid var(--pof-border);
}
.mp-banner-empty {
  text-align: center;
  padding: 32px 16px;
  font-size: 13px;
}
.mp-phone-frame {
  max-width: 320px;
  margin: 0 auto;
  background: #111;
  border-radius: 24px;
  padding: 10px 8px 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.mp-phone-notch {
  width: 72px;
  height: 6px;
  background: #333;
  border-radius: 3px;
  margin: 0 auto 8px;
}
.mp-banner-swiper {
  position: relative;
  width: 100%;
  aspect-ratio: 750 / 350;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
}
.mp-banner-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
  will-change: transform;
}
.mp-banner-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}
.mp-banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mp-banner-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  display: flex;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
}
.mp-banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  pointer-events: auto;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.mp-banner-dot.active {
  background: #8B0000;
  transform: scale(1.15);
}
.mp-preview-meta {
  text-align: center;
  margin: 10px 0 0;
  font-size: 12px;
}

.faq-edit-item {
  border: 1px solid var(--pof-border);
  padding: 12px;
  margin-bottom: 10px;
  border-radius: var(--radius);
}

/* ---------- 全平台品牌库 ---------- */
.brand-lib-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0;
  align-items: center;
}
.brand-search-input {
  flex: 1;
  min-width: 200px;
  padding: 8px 12px;
  border: 1px solid var(--pof-border);
  border-radius: var(--radius);
  font-size: 14px;
}
.brand-lib-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.brand-lib-card {
  border: 1px solid var(--pof-border);
  background: var(--pof-bg);
  padding: 12px;
  text-align: center;
  cursor: pointer;
  border-radius: var(--radius);
  transition: border-color var(--transition);
}
.brand-lib-card:hover { border-color: var(--pof-black); }
.brand-lib-thumb {
  width: 56px;
  height: 56px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: var(--pof-bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-weight: 600;
}
.brand-lib-thumb img { width: 100%; height: 100%; object-fit: cover; }
.brand-lib-name { font-size: 13px; font-weight: 600; }
.brand-lib-id { font-size: 11px; margin-top: 4px; }

/* ---------- 本地上传图片（点击图片框上传/更换） ---------- */
.img-upload-preview {
  width: 120px;
  height: 120px;
  border: 1px dashed var(--pof-border);
  background: var(--pof-bg-soft);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.img-upload-preview:hover {
  border-color: var(--pof-black);
  box-shadow: 0 0 0 1px var(--pof-black);
}
.img-upload-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pof-bg-soft);
}
.img-upload-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.img-upload-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  text-align: center;
  background: rgba(0, 0, 0, 0.06);
  color: var(--pof-muted, #666);
  font-size: 12px;
  line-height: 1.4;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  pointer-events: none;
}
/* 无图：始终显示「点击上传」 */
.img-upload-preview.is-empty .img-upload-overlay {
  opacity: 1;
  visibility: visible;
}
/* 有图：默认不遮罩；鼠标移上去只在底部显示轻提示，不挡住整张图 */
.img-upload-preview.has-image .img-upload-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.08) 55%, transparent 100%);
  color: #fff;
  align-items: flex-end;
  padding-bottom: 8px;
}
.img-upload-preview.has-image:hover .img-upload-overlay {
  opacity: 1;
  visibility: visible;
}
.img-upload-preview.has-image:not(:hover) .img-upload-overlay {
  opacity: 0;
  visibility: hidden;
}
/* 上传中：底部轻提示，不遮挡已显示的本地预览 */
.img-upload-preview.is-uploading::after {
  content: '上传中…';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 3px 6px;
  font-size: 10px;
  text-align: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  pointer-events: none;
}
.img-upload-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.img-upload-status { font-size: 12px; max-width: 220px; word-break: break-all; }
.banner-card-image .img-upload-field { margin-bottom: 0; }
.banner-card-image .img-upload-preview {
  width: 120px;
  height: 72px;
}
.banner-card-image .img-upload-footer {
  flex-direction: column;
  align-items: flex-start;
  margin-top: 6px;
}
.banner-card-image .img-upload-clear {
  font-size: 11px;
  padding: 2px 6px;
}
.banner-card-image .img-upload-status {
  font-size: 11px;
  max-width: 120px;
}
.banner-card-image .img-upload-hint { font-size: 11px; }

/* ---------- 品牌主页 / 企业资料 / 平台类目 ---------- */
.brand-page-layout {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 320px);
  gap: 24px;
  align-items: start;
}
@media (max-width: 900px) {
  .brand-page-layout { grid-template-columns: 1fr; }
}
.brand-preview-panel {
  position: sticky;
  top: 24px;
}
.brand-preview-label {
  font-size: 12px;
  margin: 0 0 10px;
  text-align: center;
}
/* 小程序品牌主页预览（对齐 pages/brand/home.wxss） */
.mp-brand-preview-frame {
  max-width: 100%;
  padding: 10px 6px 12px;
}
.mp-brand-preview {
  background: #111;
  color: #fff;
  border-radius: 12px;
  overflow: hidden;
  max-height: 72vh;
  overflow-y: auto;
}
.mp-brand-hero {
  position: relative;
  width: 100%;
  padding-top: 133.33%;
  overflow: hidden;
}
.mp-brand-hero-image {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: #222;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mp-brand-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mp-brand-hero-image .preview-img-placeholder {
  color: #888;
  font-size: 11px;
  padding: 12px;
  text-align: center;
}
.mp-brand-hero-gradient {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 45%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(10, 10, 10, 0.8) 40%,
    rgba(10, 10, 10, 0.95) 100%
  );
  pointer-events: none;
}
.mp-brand-hero-info {
  position: absolute;
  left: 16px;
  bottom: 24px;
  right: 16px;
  z-index: 1;
}
.mp-brand-hero-name {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.3;
}
.mp-brand-hero-desc {
  font-size: 13px;
  color: #ddd;
  line-height: 1.4;
}
.mp-brand-hero-underline {
  width: 60px;
  height: 1px;
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.6);
}
.mp-brand-content {
  margin-top: -20px;
  padding: 20px 16px 16px;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0.96), #111);
  position: relative;
  z-index: 2;
}
.mp-brand-section { margin-bottom: 16px; }
.mp-brand-intro {
  font-size: 13px;
  color: #ddd;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}
.mp-brand-cat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.mp-brand-cat-tag {
  font-size: 11px;
  color: #ccc;
  padding: 3px 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
}
.mp-brand-section-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}
.mp-brand-product-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.mp-brand-product-item {
  width: 48%;
  margin-bottom: 12px;
  border-radius: 8px;
  background: #191919;
  overflow: hidden;
}
.mp-brand-product-image {
  width: 100%;
  height: 120px;
  background: #222;
  overflow: hidden;
}
.mp-brand-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mp-brand-product-info { padding: 8px 8px 10px; }
.mp-brand-product-name {
  font-size: 12px;
  color: #f5f5f5;
  line-height: 1.4;
  height: 34px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.mp-brand-product-price-row {
  margin-top: 4px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
}
.mp-brand-product-price {
  font-size: 14px;
  color: #8B0000;
  font-weight: 600;
}
.mp-brand-product-original {
  font-size: 10px;
  color: #777;
  text-decoration: line-through;
}
.mp-brand-products-empty {
  font-size: 12px;
  color: #888;
  padding: 8px 0;
  width: 100%;
}
.brand-cat-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
/* 类目 chip：外框同时包裹勾选框 + 横向文字（覆盖全局 label/input 样式） */
.form-group .brand-cat-grid label.brand-cat-chip {
  display: inline-flex !important;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: auto !important;
  max-width: none;
  height: 36px;
  padding: 0 14px 0 10px;
  margin: 0 !important;
  border: 1px solid var(--pof-border);
  border-radius: 6px;
  background: #fff;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: normal;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  box-sizing: border-box;
  vertical-align: middle;
  transition: border-color 0.15s, background 0.15s;
}
.brand-cat-grid .brand-cat-chip input.brand-cat-check,
.brand-cat-grid .brand-cat-chip input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  display: inline-block !important;
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  max-width: 14px !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: 0 0 14px;
  border: 1.5px solid #c8c8c8 !important;
  border-radius: 3px !important;
  background: #fff !important;
  cursor: pointer;
  position: relative;
  box-sizing: border-box;
  vertical-align: middle;
}
.brand-cat-grid .brand-cat-chip input.brand-cat-check:checked,
.brand-cat-grid .brand-cat-chip input[type="checkbox"]:checked {
  background: var(--pof-black) !important;
  border-color: var(--pof-black) !important;
}
.brand-cat-grid .brand-cat-chip input.brand-cat-check:checked::after,
.brand-cat-grid .brand-cat-chip input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 3.5px;
  top: 1px;
  width: 3px;
  height: 6px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.brand-cat-chip-text {
  display: inline-block;
  flex: 0 1 auto;
  white-space: nowrap;
  writing-mode: horizontal-tb;
  line-height: 1.4;
  color: var(--pof-text);
}
.form-group .brand-cat-grid label.brand-cat-chip:has(input:checked) {
  border-color: var(--pof-black);
  background: var(--pof-bg-soft);
}
.form-group .brand-cat-grid label.brand-cat-chip:hover {
  border-color: var(--pof-black);
}
.brand-cat-tip { font-size: 12px; margin-top: 8px; }
.brand-preview-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.brand-cat-tag {
  display: inline-block;
  padding: 2px 10px;
  font-size: 11px;
  border-radius: 999px;
  background: var(--pof-bg-soft);
  border: 1px solid var(--pof-border);
}
/* ---------- 账号管理（密码 + 企业资料） ---------- */
.account-tabs {
  display: flex;
  gap: 8px;
  margin: 16px 0 20px;
  border-bottom: 1px solid var(--pof-border);
  padding-bottom: 0;
}
.account-tab {
  appearance: none;
  border: none;
  background: transparent;
  padding: 10px 16px;
  margin: 0 0 -1px;
  font-size: 14px;
  font-weight: 500;
  color: var(--pof-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.account-tab:hover { color: var(--pof-text); }
.account-tab.is-active {
  color: var(--pof-black);
  border-bottom-color: var(--pof-black);
}
.account-panel { max-width: 720px; margin-bottom: 24px; }
.account-panel-desc { margin: 0 0 16px; }
.account-section-title {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 16px;
}
.account-form-section {
  margin-bottom: 24px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--pof-border);
}
.account-form-section:last-of-type { border-bottom: none; }
.account-form-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.account-subtitle {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}
.account-enterprise-form .enterprise-cert-row {
  border: 1px solid var(--pof-border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  background: var(--pof-bg-soft);
}
.section-subtitle {
  font-size: 14px;
  font-weight: 600;
  margin: 24px 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.enterprise-form { max-width: 640px; }
.enterprise-cert-row {
  border: 1px solid var(--pof-border);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 12px;
}
.plat-cat-list { margin-bottom: 12px; }
.plat-cat-list table { width: 100%; max-width: 520px; }
.plat-cat-list input.plat-cat-name {
  width: 100%;
  max-width: 240px;
  padding: 6px 8px;
}

/* ---------- 商品编辑 + 小程序预览 ---------- */
.product-form-wrap { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--pof-border); }
.hand-card-section-title { margin-top: 28px; }
.hand-card-section-title .required-tag {
  font-size: 12px;
  color: #8b0000;
  font-weight: normal;
  margin-left: 8px;
}
.hand-card-tip { margin: -8px 0 16px; font-size: 12px; line-height: 1.5; }
.optional-tag {
  font-size: 11px;
  font-weight: normal;
  color: #888;
  margin-left: 4px;
}
.hc-list-tip, .hc-sync-note, .hc-field-hint {
  font-size: 12px;
  color: #888;
  margin: 4px 0 10px;
  line-height: 1.45;
}
.hc-field-hint { margin-top: 6px; }
.hc-dynamic-rows { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
/* 输入框与删除按钮同一行：叉号在编辑框右侧 */
.hc-dynamic-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.hc-dynamic-row .hc-field {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  box-sizing: border-box;
}
.hc-dynamic-row .hc-del-row {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  padding: 0;
  margin: 0;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  color: #666;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.hc-dynamic-row .hc-del-row:hover {
  border-color: #8b0000;
  color: #8b0000;
  background: #faf5f5;
}
/* 产品卖点第一条：占位保持与删除钮同宽，不显示叉号 */
.hc-dynamic-row .hc-del-spacer {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  display: inline-block;
}
/* 兜底：产品卖点区块第一条永不显示删除钮（防止旧 JS 缓存时误删） */
.hc-selling-points .hc-dynamic-row:first-child .hc-del-row {
  display: none !important;
}
.hc-selling-points .hc-dynamic-row:first-child .hc-del-spacer {
  display: inline-block !important;
}
.required-tag-inline {
  font-size: 11px;
  font-weight: normal;
  color: #8b0000;
  margin-left: 4px;
}
.hc-add-row { margin-top: 4px; }
/* 产品规格说明图：单张上传卡片 */
.hc-spec-diagram-upload { margin: 18px 0 22px; }
.hc-spec-diagram-card {
  padding: 16px 18px 18px;
  background: linear-gradient(180deg, #faf9f7 0%, #fff 100%);
  border: 1px solid #e8e4df;
  border-radius: 10px;
}
.hc-spec-diagram-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.hc-spec-diagram-title {
  font-size: 14px;
  font-weight: 600;
  color: #222;
}
.hc-spec-diagram-desc {
  margin: 0 0 6px;
  font-size: 13px;
  color: #444;
  line-height: 1.5;
}
.hc-spec-diagram-note {
  margin: 0 0 14px;
  font-size: 12px;
  color: #888;
  line-height: 1.45;
}
.hc-spec-diagram-uploader {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.hc-spec-diagram-preview {
  position: relative;
  width: 100%;
  max-width: 320px;
  min-height: 140px;
  border: 2px dashed #c8c0b8;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.hc-spec-diagram-uploader.is-empty .hc-spec-diagram-preview:hover {
  border-color: #8b0000;
  box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.08);
}
.hc-spec-diagram-uploader.has-image .hc-spec-diagram-preview {
  border-style: solid;
  border-color: #d4cec6;
  min-height: 120px;
}
.hc-spec-diagram-preview img {
  display: block;
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  background: #f5f3f0;
}
.hc-spec-diagram-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 140px;
  padding: 20px;
  text-align: center;
}
.hc-spec-diagram-plus {
  width: 44px;
  height: 44px;
  line-height: 44px;
  border-radius: 50%;
  background: #f0ebe6;
  color: #8b0000;
  font-size: 28px;
  font-weight: 300;
}
.hc-spec-diagram-cta {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}
.hc-spec-diagram-fmt {
  font-size: 11px;
  color: #999;
}
.hc-spec-diagram-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.hc-spec-diagram-preview .hc-spec-img-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.55);
  z-index: 2;
}
.hc-spec-diagram-preview .hc-spec-img-progress-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  overflow: hidden;
}
.hc-spec-diagram-preview .hc-spec-img-progress-bar {
  height: 100%;
  width: 0;
  background: #fff;
  border-radius: 2px;
  transition: width 0.15s;
}
.hc-spec-diagram-preview .hc-spec-img-progress-text {
  font-size: 11px;
  color: #fff;
}
.po-logistics-label { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 6px; color: #333; }
.form-group.row-2 { display: flex; gap: 16px; flex-wrap: wrap; }
.form-group.row-2 .half { flex: 1; min-width: 200px; }
.hc-row label { font-size: 13px; }
.product-edit-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 1100px) {
  .product-edit-layout { grid-template-columns: 1fr; }
}
.product-form-col { max-width: 720px; }
.product-preview-col { position: sticky; top: 16px; }
.mp-preview-label { font-size: 12px; margin-bottom: 8px; }
.product-mp-preview-scroll {
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  border: 1px solid var(--pof-border);
  border-radius: 12px;
  background: #f5f5f5;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.product-mp-preview { background: #fff; font-size: 12px; color: #333; }
.mp-prev-swiper { width: 100%; aspect-ratio: 1; background: #eee; overflow-x: auto; display: flex; scroll-snap-type: x mandatory; }
.mp-prev-slide { flex: 0 0 100%; scroll-snap-align: start; height: 100%; min-height: 280px; display: flex; align-items: center; justify-content: center; background: #eee; }
.mp-prev-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mp-prev-slide-empty { font-size: 12px; padding: 20px; }
.mp-prev-body { padding: 12px 14px 24px; }
.mp-prev-name { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.mp-prev-desc { font-size: 12px; color: #666; margin-bottom: 8px; line-height: 1.5; }
.mp-prev-price { margin-bottom: 12px; }
.mp-prev-price .mp-price { color: #8B0000; font-size: 18px; font-weight: 700; margin-right: 8px; }
.mp-prev-price .mp-oprice { color: #999; font-size: 12px; text-decoration: line-through; }
.mp-prev-highlights { background: #fafafa; padding: 10px; margin-bottom: 12px; border-radius: 6px; }
.mp-hl-block { margin-bottom: 10px; }
.mp-hl-block:last-child { margin-bottom: 0; }
.mp-hl-title { font-weight: 600; font-size: 11px; margin-bottom: 4px; }
.mp-hl-text { font-size: 11px; color: #555; line-height: 1.5; }
.mp-hl-list { margin: 0; padding-left: 16px; font-size: 11px; color: #555; }
.mp-prev-tabs { display: flex; border-bottom: 1px solid #eee; margin-bottom: 10px; }
.mp-prev-tabs span { flex: 1; text-align: center; padding: 8px 0; font-size: 12px; color: #999; }
.mp-prev-tabs span.active { color: #8B0000; border-bottom: 2px solid #8B0000; font-weight: 600; }
.mp-prev-detail, .mp-prev-specs { padding-bottom: 16px; }
.mp-detail-text { font-size: 11px; line-height: 1.6; color: #444; margin-bottom: 8px; }
.mp-detail-img { width: 100%; display: block; margin-bottom: 4px; }
.mp-spec-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #f0f0f0; font-size: 11px; }
.mp-spec-row span:first-child { color: #999; }
.multi-img-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.main-img-slot, .detail-img-slot {
  position: relative;
  width: 88px;
  height: 88px;
  border: 1px dashed var(--pof-border);
  border-radius: 8px;
  background: var(--pof-bg-soft);
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
}
.main-img-slot.has-image, .detail-img-slot.has-image { border-style: solid; }
.main-img-slot.has-image { cursor: grab; }
.main-img-slot.main-img-dragging { opacity: 0.55; cursor: grabbing; }
.main-img-slot.main-img-drag-over { outline: 2px solid var(--pof-accent, #c41e3a); outline-offset: -2px; }
.main-images-tip { font-size: 12px; margin: -8px 0 10px; }
.detail-images-tip { font-size: 12px; margin: -8px 0 10px; }
.detail-images-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.main-img-slot.is-empty { cursor: pointer; }
.main-img-slot.is-empty:hover { border-color: var(--pof-black); background: #fff; }
.main-img-visual, .detail-img-visual {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.main-img-visual img, .detail-img-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.main-img-plus, .detail-img-plus { font-size: 24px; color: var(--pof-muted); }
.main-img-slot input.main-img-file,
.detail-img-slot input.detail-img-file,
.main-img-slot input[type="file"],
.detail-img-slot input[type="file"] {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  padding: 0 !important;
  border: none !important;
}
.main-img-del, .detail-img-del {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 14px;
  line-height: 20px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s;
}
.main-img-slot.has-image:hover .main-img-del,
.detail-img-slot.has-image:hover .detail-img-del { opacity: 1; }
.main-img-progress, .detail-img-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  padding: 4px 5px;
  background: rgba(0,0,0,0.55);
  z-index: 2;
}
.main-img-progress-track, .detail-img-progress-track {
  height: 4px;
  background: rgba(255,255,255,0.25);
  border-radius: 2px;
  overflow: hidden;
}
.main-img-progress-bar, .detail-img-progress-bar {
  height: 100%;
  width: 0;
  background: #fff;
  border-radius: 2px;
  transition: width 0.15s ease;
}
.main-img-progress-text, .detail-img-progress-text {
  font-size: 9px;
  color: #fff;
  text-align: center;
  line-height: 1.2;
}
.specs-table { width: 100%; border-collapse: collapse; margin-bottom: 10px; }
.specs-table th, .specs-table td { padding: 6px 8px; border-bottom: 1px solid var(--pof-border); text-align: left; font-size: 13px; }
.specs-table input { width: 100%; padding: 6px 8px; font-size: 13px; }
.highlight-row { margin-bottom: 8px; }
.highlight-row label { font-size: 11px; }
.detail-img-grid-wrap { margin-bottom: 8px; }

/* ---------- 销售规格 SKU 编辑器 ---------- */
.sku-editor { margin-bottom: 24px; padding: 16px; border: 1px solid var(--pof-border); border-radius: 8px; background: var(--pof-bg-soft); }
.sku-editor-tip { font-size: 12px; margin: 0 0 12px; }
.spec-dims-list { margin-bottom: 12px; }
.spec-dim-row { padding: 12px; margin-bottom: 10px; background: #fff; border: 1px solid var(--pof-border); border-radius: 6px; }
.spec-dim-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.spec-dim-label { font-size: 12px; color: var(--pof-muted); min-width: 56px; }
.spec-dim-name { flex: 1; min-width: 120px; padding: 6px 8px !important; width: auto !important; }
.spec-dim-values-input { width: 100% !important; padding: 8px 10px !important; font-size: 13px; }
.sku-editor-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.sku-table { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; }
.sku-table th, .sku-table td { padding: 8px 6px; border: 1px solid var(--pof-border); text-align: left; }
.sku-table input { width: 100%; padding: 4px 6px !important; font-size: 13px; }
.sku-image-cell { width: 80px; min-width: 80px; vertical-align: middle; padding: 6px 8px !important; }
/* 规格图槽：空态横排「上传」；有图时整格铺满（同主图槽位逻辑） */
.sku-image-slot {
  position: relative;
  width: 72px;
  height: 72px;
  border: 1px dashed var(--pof-border);
  border-radius: 8px;
  background: var(--pof-bg-soft, #fafafa);
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
}
.sku-image-slot.has-image { border-style: solid; background: #fff; }
.sku-image-visual {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sku-image-preview { width: 100%; height: 100%; object-fit: cover; display: block; }
.sku-image-empty-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px;
  user-select: none;
  pointer-events: none;
}
.sku-image-empty-icon {
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  color: var(--pof-muted);
}
.sku-image-empty-text {
  font-size: 12px;
  line-height: 1.2;
  color: var(--pof-muted);
  white-space: nowrap;
  letter-spacing: 0;
  writing-mode: horizontal-tb;
}
.sku-image-del {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 14px;
  line-height: 20px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 2;
}
.sku-image-slot.has-image:hover .sku-image-del { opacity: 1; }
.sku-image-slot input.sku-image-file,
.sku-image-slot input[type="file"] {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
.sku-table-empty, .sku-stock-sum { font-size: 12px; margin: 8px 0 0; }
.product-list-thumb {
  display: inline-block;
  width: 48px;
  height: 48px;
  background: #eee;
  overflow: hidden;
  border-radius: 4px;
  text-align: center;
  line-height: 48px;
  font-size: 12px;
  color: #999;
  vertical-align: middle;
}
.product-list-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- 小程序用户注册审核 ---------- */
.mp-app-list { display: flex; flex-direction: column; gap: 16px; }
.mp-app-card {
  border: 1px solid var(--pof-border);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}
.mp-app-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--pof-border);
  background: var(--pof-bg-soft);
}
.mp-app-meta { font-size: 12px; margin-top: 6px; }
.mp-app-body { padding: 16px; }
.mp-app-shot {
  max-width: 200px;
  max-height: 120px;
  border-radius: 4px;
  border: 1px solid var(--pof-border);
  object-fit: cover;
}
.role-review-tag {
  display: inline-block;
  margin: 0 6px 6px 0;
  padding: 4px 10px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 600;
}
.role-tag-pending { color: #c00; background: #fff5f5; border: 1px solid #ffd6d6; }
.role-tag-ok { color: #0a7a3e; background: #f0faf4; border: 1px solid #c8ebd4; }
.role-tag-no { color: var(--pof-muted); background: var(--pof-bg-soft); border: 1px solid var(--pof-border); }
.mp-role-checks {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 12px 0;
  padding: 12px 14px;
  background: var(--pof-bg-soft);
  border-radius: var(--radius);
}
.mp-check-all { font-weight: 600; width: 100%; margin-bottom: 4px; }
.mp-role-check { font-size: 13px; cursor: pointer; }
.mp-app-actions { gap: 8px; flex-wrap: wrap; margin-top: 8px; }
/* 勾选行：复选框 + 文字紧挨排列（覆盖全局 label/input 100% 宽度） */
.mp-role-check-row {
  display: inline-flex !important;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100% !important;
  margin: 0 !important;
  padding: 10px 6px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.4;
  cursor: pointer;
  box-sizing: border-box;
  border-bottom: 1px solid var(--pof-bg-soft);
}
.mp-role-check-row:last-child { border-bottom: none; }
.mp-check-all-row {
  font-size: 12px;
  color: var(--pof-muted);
  border-bottom: 1px solid var(--pof-border);
  margin-bottom: 2px !important;
  padding-bottom: 12px;
}
.mp-role-check-text {
  flex: 0 1 auto;
  white-space: nowrap;
}
.mp-role-checks input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  display: inline-block !important;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  max-width: 16px !important;
  padding: 0 !important;
  margin: 0 !important;
  flex: 0 0 16px;
  border: 1.5px solid #c8c8c8 !important;
  border-radius: 3px !important;
  background: #fff !important;
  cursor: pointer;
  position: relative;
  box-sizing: border-box;
  vertical-align: middle;
}
.mp-role-checks input[type="checkbox"]:checked {
  background: var(--pof-black) !important;
  border-color: var(--pof-black) !important;
}
.mp-role-checks input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
/* 兼容旧类名 */
.mp-check-all-muted {
  width: 100%;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--pof-muted);
  font-weight: 400;
}
.mp-role-check-left {
  display: inline-flex !important;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  width: 100% !important;
  margin: 0 !important;
  font-size: 14px;
  cursor: pointer;
}
.mp-role-check-left input { flex-shrink: 0; }
.mp-role-checks-modal { margin-top: 0; }
/* 小程序用户审核弹窗：详情可滚动，审核区固定底部 */
.modal-mask-scroll {
  align-items: flex-start;
  overflow-y: auto;
  padding: 24px 16px;
  box-sizing: border-box;
}
.modal-mp-review {
  max-width: 620px;
  width: 100%;
  padding: 0;
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal-mp-head {
  flex-shrink: 0;
  padding: 24px 28px 16px;
  border-bottom: 1px solid var(--pof-border);
}
.modal-mp-head h3 { margin: 0 0 6px; }
.mp-modal-sub { margin: 0; font-size: 13px; color: var(--pof-muted); }
.modal-mp-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 28px;
  -webkit-overflow-scrolling: touch;
}
.modal-mp-body .detail-grid { gap: 12px; }
.mp-shot-link { display: inline-block; }
.mp-shot-tip { margin-top: 6px; font-size: 11px; }
.mp-review-panel {
  flex-shrink: 0;
  padding: 18px 28px 20px;
  border-top: 2px solid var(--pof-black);
  background: var(--pof-bg-soft);
}
.mp-review-panel-done { border-top-color: var(--pof-border); }
.mp-review-panel-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.mp-review-hint {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--pof-muted);
  line-height: 1.5;
}
.mp-review-section { margin-bottom: 14px; }
.mp-review-label {
  font-size: 11px;
  color: var(--pof-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.mp-role-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mp-role-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--pof-border);
  background: #fff;
}
.role-chip-pending { color: #c00; background: #fff5f5; border-color: #ffd6d6; }
.role-chip-ok { color: #0a7a3e; background: #f0faf4; border-color: #c8ebd4; }
.role-chip-no { color: var(--pof-muted); background: #fff; border-color: var(--pof-border); }
.mp-review-panel .mp-role-checks {
  margin: 0;
  background: #fff;
  border: 1px solid var(--pof-border);
  padding: 8px 12px;
}
.mp-review-panel .mp-role-check-row {
  border-bottom-color: var(--pof-bg-soft);
}
.mp-review-panel .mp-check-all-row {
  border-bottom: 1px solid var(--pof-border);
}
.mp-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.mp-review-actions .btn-sm {
  min-height: 40px;
  padding: 0 20px;
  font-size: 14px;
}
.mp-btn-approve { flex: 1; min-width: 140px; }
.mp-btn-reject {
  flex: 1;
  min-width: 140px;
  border: 1px solid var(--pof-border);
  background: #fff;
}
.mp-btn-reject:hover { background: var(--pof-bg-soft); }
.modal-mp-foot {
  flex-shrink: 0;
  padding: 12px 28px 20px;
  border-top: 1px solid var(--pof-border);
  display: flex;
  justify-content: flex-end;
  background: var(--pof-bg);
}

/* ---------- 账号与归属 ---------- */
.sa-section-title {
  margin: 28px 0 12px;
  font-size: 16px;
  font-weight: 600;
}
.sa-section-title:first-of-type { margin-top: 8px; }
.sa-brand-grid { margin-top: 8px; }
.sa-brand-tag {
  display: inline-block;
  margin: 2px 6px 2px 0;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: var(--pof-bg-soft);
  border: 1px solid var(--pof-border);
}
.sa-brand-tags-cell { max-width: 320px; }
/* 账号与归属页：删除按钮（红色提示危险操作） */
button.sa-btn-del {
  color: #b42318;
  border-color: #fecdca;
  background: #fff5f5;
}
button.sa-btn-del:hover { background: #fee4e2; }
.sa-perm-label { display: block; font-weight: 500; font-size: 13px; margin-bottom: 4px; }
.sa-perm-grid { margin-top: 8px; }
.sa-perm-tag { font-size: 11px; }
.modal-sa-form { max-width: 560px; width: 92%; padding: 28px; }
.modal-sa-body { max-height: calc(100vh - 220px); overflow-y: auto; margin-bottom: 12px; }
.sa-modal-foot { margin-top: 8px; gap: 10px; justify-content: flex-end; }
.sa-field-tip { font-size: 11px; margin: -4px 0 6px; }
.sa-report-ta {
  width: 100%;
  min-height: 72px;
  padding: 10px 12px;
  border: 1px solid var(--pof-border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 13px;
  box-sizing: border-box;
  resize: vertical;
}
.sa-report-card {
  border: 1px solid var(--pof-border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 14px;
  background: #fff;
}
.sa-report-date { font-weight: 600; margin-bottom: 10px; font-size: 14px; }
.sa-report-block { margin-bottom: 10px; }
.sa-report-label { font-size: 11px; color: var(--pof-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.sa-report-val { font-size: 13px; line-height: 1.6; white-space: pre-wrap; }
/* 密码框 + 显示/隐藏小眼睛 */
.pwd-field-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.pwd-field-input {
  width: 100%;
  padding-right: 44px !important;
}
.pwd-eye-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 4px 6px;
  opacity: 0.65;
}
.pwd-eye-btn:hover { opacity: 1; }

/* 商品申请单状态筛选 */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
/* 合作管理：合作状态（主分类）+ 合作角色（子分类） */
.po-filter-group-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0 0 10px;
  padding: 10px 12px;
  background: #f7f7f7;
  border: 1px solid var(--pof-border);
  border-radius: 8px;
}
.po-filter-group-wrap:last-of-type { margin-bottom: 16px; }
.po-filter-group-label {
  font-size: 13px;
  font-weight: 600;
  color: #666;
  flex-shrink: 0;
  min-width: 4.5em;
}
.po-filter-chips { margin: 0; flex: 1; overflow: visible; }
.po-filter-group-wrap { overflow: visible; }
.chip-btn.chip-sub { font-size: 13px; }
/* 合作管理 Tab 右上角红色角标（挂在按钮外角，不挤占文字） */
.chip-btn.po-chip-has-badge {
  position: relative;
  overflow: visible;
}
.po-chip-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  background: #e53935;
  border-radius: 8px;
  border: 1px solid #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  pointer-events: none;
  z-index: 1;
}
/* 后台列表分页（阶段 A） */
.pager-row { margin: 12px 0 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pager-row .chip-btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.checkbox-line { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.checkbox-line input { width: auto; margin: 0; }
.ok-line { color: #0a7a28; margin: 8px 0; }
.login-card .pwd-field-wrap { max-width: 100%; }
.chip-btn {
  border: 1px solid var(--pof-border, #ddd);
  background: #fff;
  color: #333;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
}
.chip-btn.on {
  background: var(--pof-primary, #8b0000);
  color: #fff;
  border-color: var(--pof-primary, #8b0000);
}

/* 博主内容合作 brief 编辑 */
.brief-alert {
  position: relative;
  background: linear-gradient(135deg, #fffbeb 0%, #fff8e6 100%);
  border: 1px solid #f0d878;
  border-left: 4px solid #e6b800;
  border-radius: 8px;
  padding: 14px 18px 14px 48px;
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.65;
  color: #5c4a00;
}
.brief-alert::before {
  content: '!';
  position: absolute;
  left: 16px;
  top: 14px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #e6b800;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  line-height: 22px;
  text-align: center;
}
.brief-panel {
  border: 1px solid var(--pof-border);
  border-radius: 10px;
  margin-bottom: 28px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.brief-panel-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--pof-border);
  background: var(--pof-bg-soft);
}
.brief-title {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.brief-sub { margin: 0; font-size: 13px; color: var(--pof-muted); line-height: 1.5; }
.brief-badge {
  flex-shrink: 0;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: rgba(139, 0, 0, 0.08);
  color: var(--pof-accent);
  border: 1px solid rgba(139, 0, 0, 0.18);
}
.brief-body { padding: 8px 24px 4px; }
.brief-block {
  padding: 18px 0;
  border-bottom: 1px solid #f0f0f0;
}
.brief-block:last-child { border-bottom: none; }
.brief-block-head {
  display: flex; align-items: baseline; gap: 10px;
  margin-bottom: 14px;
}
.brief-block-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--pof-text);
}
.brief-block-required .brief-block-title::after { content: ' *'; color: var(--pof-accent); font-weight: 500; }
.brief-block-tip { font-size: 12px; color: var(--pof-muted); }
.brief-exp-list { max-width: 560px; display: flex; flex-direction: column; gap: 10px; }
.brief-exp-row {
  display: flex; align-items: center; gap: 10px;
}
.brief-exp-num {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--pof-bg-soft);
  border: 1px solid var(--pof-border);
  font-size: 12px; font-weight: 600;
  color: var(--pof-muted);
  display: flex; align-items: center; justify-content: center;
}
.brief-exp-input {
  flex: 1; min-width: 0; max-width: 480px;
  padding: 10px 12px !important;
  font-size: 14px !important;
}
.brief-exp-del {
  flex-shrink: 0;
  width: 28px; height: 28px; padding: 0 !important;
  border: 1px solid var(--pof-border) !important;
  background: #fff !important; color: var(--pof-muted) !important;
  border-radius: 6px !important;
  font-size: 16px !important; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.brief-exp-del:hover { background: #fee !important; color: #c33 !important; border-color: #fcc !important; }
.brief-exp-del-ph { flex-shrink: 0; width: 28px; }
.brief-add-btn { margin-top: 12px; font-size: 13px !important; padding: 8px 16px !important; }
.brief-pub-list { max-width: 560px; display: flex; flex-direction: column; gap: 4px; }
.brief-check {
  display: flex !important; align-items: flex-start; gap: 10px;
  margin: 0 !important; padding: 10px 12px;
  border-radius: 8px; cursor: pointer;
  transition: background 0.15s;
}
.brief-check:hover { background: var(--pof-bg-soft); }
.brief-check input[type="checkbox"] {
  width: auto !important; margin-top: 2px;
  flex-shrink: 0; accent-color: var(--pof-black);
}
.brief-check-txt { font-size: 14px; font-weight: 400; line-height: 1.5; color: var(--pof-text); }
.brief-check-group { margin-left: 0; }

/* 销售渠道退样设置：标签 + 分段二选一按钮 */
.return-policy-panel .brief-panel-head {
  align-items: flex-start;
}
.return-policy-badge {
  flex-shrink: 0;
  background: #f0f0f0;
  color: var(--pof-text);
  border: 1px solid var(--pof-border);
}
.return-policy-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px 0 4px;
  max-width: 720px;
}
.return-policy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 16px 20px;
  background: var(--pof-bg-soft);
  border: 1px solid var(--pof-border);
  border-radius: 12px;
}
.return-policy-label {
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 600;
  color: var(--pof-text);
  line-height: 1.4;
  min-width: 168px;
}
.return-policy-segment {
  display: inline-flex;
  flex-shrink: 0;
  align-items: stretch;
  padding: 3px;
  background: #fff;
  border: 1px solid #d8d8d8;
  border-radius: 999px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}
.return-policy-opt {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 118px;
  padding: 9px 18px;
  margin: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  user-select: none;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.return-policy-opt:hover:not(.is-selected) {
  background: #f5f5f5;
}
.return-policy-opt input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.return-policy-opt-mark {
  display: none;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}
.return-policy-opt-text {
  font-size: 14px;
  font-weight: 500;
  color: #666;
  white-space: nowrap;
}
.return-policy-opt.is-selected,
.return-policy-opt:has(input:checked) {
  background: var(--pof-black);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.return-policy-opt.is-selected .return-policy-opt-mark,
.return-policy-opt:has(input:checked) .return-policy-opt-mark {
  display: inline;
  color: #fff;
}
.return-policy-opt.is-selected .return-policy-opt-text,
.return-policy-opt:has(input:checked) .return-policy-opt-text {
  color: #fff;
}
.return-policy-foot {
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--pof-border);
}
@media (max-width: 720px) {
  .return-policy-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .return-policy-segment {
    width: 100%;
    justify-content: stretch;
  }
  .return-policy-opt {
    flex: 1;
    min-width: 0;
  }
}

.brief-nick-wrap {
  display: none;
  margin: 4px 0 8px 34px;
  max-width: 400px;
}
.brief-nick-wrap.is-open { display: block; }
.brief-nick-input {
  width: 100% !important;
  padding: 10px 12px !important;
  font-size: 13px !important;
  background: var(--pof-bg-soft) !important;
  border-color: #ddd !important;
}
.brief-cycle-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px;
  font-size: 14px; color: var(--pof-text);
}
.brief-days-select {
  width: auto !important; min-width: 88px;
  padding: 8px 32px 8px 12px !important;
  font-size: 14px !important;
  font-weight: 600;
  background: var(--pof-bg-soft);
}
.brief-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 24px;
  border-top: 1px solid var(--pof-border);
  background: #fafafa;
}
.brief-err { margin: 0 !important; flex: 1; font-size: 13px; }
.brief-foot .primary { min-width: 120px; }
.req { color: var(--pof-accent); }

/* 商品申请单 / 合作申请 列表 */
.po-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.po-table th, .po-table td { padding: 10px 8px; border-bottom: 1px solid var(--pof-border, #eee); vertical-align: middle; }
/* 待发货：同地址合并发货 */
.po-ship-batch-bar,
.po-return-batch-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--pof-border, #eee);
  border-radius: 8px;
  background: #fafafa;
}
/* 批量操作栏：覆盖全局 label{display:block} 与 input{width:100%} */
.po-ship-batch-bar .po-batch-check,
.po-return-batch-bar .po-batch-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 400;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.po-ship-batch-bar .po-batch-check input[type="checkbox"],
.po-return-batch-bar .po-batch-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--pof-border, #ccc);
  border-radius: 3px;
  background: #fff;
  flex-shrink: 0;
  box-sizing: border-box;
}
.po-ship-batch-bar .po-batch-check span,
.po-return-batch-bar .po-batch-check span {
  line-height: 1;
}
.po-ship-batch-bar > .primary,
.po-return-batch-bar > .primary {
  flex-shrink: 0;
  margin: 0;
}
.po-ship-batch-tip { font-size: 12px; line-height: 1.4; }
.po-merge-ship-hint {
  margin: 0 0 10px;
  padding: 10px 12px;
  border: 1px dashed #d8c4c4;
  border-radius: 8px;
  background: #fff9f9;
  font-size: 13px;
}
.po-merge-ship-hint-title { margin: 0 0 8px; }
.po-merge-ship-hint-list { margin: 0; padding-left: 18px; }
.po-merge-ship-hint-list li { margin: 6px 0; line-height: 1.5; }
.po-merge-ship-hint-addr { margin-right: 6px; }
.modal-merge-ship { max-width: 560px; }
.po-merge-addr { margin: 12px 0 14px; }
.po-merge-addr-label { display: block; font-size: 12px; color: #888; margin-bottom: 4px; }
.po-merge-addr-text {
  margin: 0;
  padding: 8px 10px;
  border-radius: 6px;
  background: #f7f7f7;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-all;
}
.po-merge-order-table-wrap { max-height: 220px; overflow: auto; margin: 10px 0 4px; border: 1px solid #eee; border-radius: 6px; }
.po-merge-order-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.po-merge-order-table th,
.po-merge-order-table td { padding: 8px 6px; border-bottom: 1px solid #eee; vertical-align: middle; }
.po-merge-order-table .po-logistics-input { width: 100%; min-width: 72px; box-sizing: border-box; }
.po-prod { display: flex; align-items: center; gap: 10px; min-width: 140px; }
.po-thumb { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; border: 1px solid #eee; flex-shrink: 0; }
.po-thumb-empty { display: inline-flex; align-items: center; justify-content: center; background: #f5f5f5; color: #999; font-size: 11px; }
.po-prod-name { font-weight: 500; line-height: 1.4; max-width: 160px; word-break: break-all; }
.po-sku-sublist { margin: 4px 0 0; padding-left: 16px; font-size: 11px; color: #666; line-height: 1.45; max-width: 200px; }
.po-sku-sublist li { margin: 2px 0; }
.po-prod-qty-hint { font-size: 11px; margin-top: 2px; }
.po-coop-tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; background: #f0e8e8; color: #8b0000; border: 1px solid #dcc; }
.po-coop-tag.muted { background: #f5f5f5; color: #999; border-color: #eee; }
.po-dp-icon { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; font-size: 13px; font-weight: bold; margin-right: 4px; }
.po-dp-icon-ok { background: #e6f7e6; color: #2a8; }
.po-dp-icon-reject { background: #fde8e8; color: #c33; }
.po-dp-icon-pending { background: #fff3e0; color: #e90; }
.po-dp-icon-none { background: #f5f5f5; color: #bbb; }
.po-dp-txt { font-size: 12px; color: #666; }
.po-addr { max-width: 180px; font-size: 12px; color: #666; line-height: 1.4; word-break: break-all; }
.po-roles-cell { min-width: 100px; }
.po-role-tag {
  display: inline-block;
  margin: 2px 4px 2px 0;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  background: #eef2ff;
  color: #334;
  border: 1px solid #ccd4ee;
}
.po-thumb-broken { opacity: 0.35; }
.po-status-txt { font-size: 13px; color: #333; white-space: nowrap; }
.po-ops-cell { white-space: nowrap; min-width: 120px; }
.po-ops-cell .btn-sm { margin: 2px 4px 2px 0; font-size: 12px; padding: 4px 10px; }
.chip-btn.chip-locked { opacity: 0.72; border-style: dashed; }

/* 商品申请单详情弹窗 */
.po-detail-mask {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center;
  padding: 16px; box-sizing: border-box;
}
.po-detail-panel {
  background: #fff; border-radius: 10px; width: min(820px, 96vw);
  max-height: 88vh; overflow: hidden; position: relative;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  display: flex; flex-direction: column;
}
.po-detail-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid #eee; background: #fff;
  flex-shrink: 0;
}
.po-detail-topbar-title {
  font-size: 15px; font-weight: 600; color: #222; margin: 0;
}
button.po-detail-close {
  position: static; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; min-width: 0; min-height: 0;
  padding: 0; margin: 0;
  border: none; background: transparent; border-radius: 6px;
  cursor: pointer; color: #888; line-height: 0;
  letter-spacing: 0; font-weight: normal;
  box-shadow: none;
  transition: background 0.15s, color 0.15s;
}
button.po-detail-close:hover {
  background: #f0f0f0; color: #333;
}
button.po-detail-close:focus { outline: 2px solid #2563eb; outline-offset: 2px; }
button.po-detail-close svg { display: block; pointer-events: none; }

/* 详情弹窗：等待接口时的加载层 */
.po-detail-fetch-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 49px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 0 0 10px 10px;
}
.po-detail-fetch-box {
  text-align: center;
  padding: 28px 24px;
  max-width: 280px;
}
.po-detail-fetch-spinner {
  width: 36px;
  height: 36px;
  margin: 0 auto;
  border: 3px solid #e8e8e8;
  border-top-color: #333;
  border-radius: 50%;
  animation: po-detail-spin 0.75s linear infinite;
}
@keyframes po-detail-spin {
  to { transform: rotate(360deg); }
}
.po-detail-fetch-title {
  margin: 16px 0 6px;
  font-size: 16px;
  font-weight: 600;
  color: #222;
}
.po-detail-fetch-sub {
  margin: 0;
  font-size: 13px;
  color: #888;
  line-height: 1.5;
}

/* 左侧资料区单独 loading（overlay 去掉前的兜底） */
.po-detail-profile-loading {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
  text-align: center;
  background: #1a1a1a;
  color: #fff;
}
.po-detail-profile-loading-title {
  margin: 16px 0 6px;
  font-size: 15px;
  font-weight: 600;
}
.po-detail-profile-loading-sub {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
}
.po-detail-profile-loading .po-detail-fetch-spinner {
  border-color: rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
}

.po-detail-layout { display: flex; flex: 1; min-height: 0; max-height: calc(88vh - 52px); }
.po-detail-profile {
  flex: 0 0 38%; max-width: 340px; overflow: hidden;
  border-radius: 10px 0 0 10px; background: #111;
}
.po-detail-profile-scroll { max-height: 88vh; overflow-y: auto; overscroll-behavior: contain; }
.po-info-loading { color: #888; padding: 80px 16px; text-align: center; font-size: 13px; }

.po-detail-info {
  flex: 1; padding: 14px 16px 16px; overflow-y: auto; max-height: 88vh;
  min-width: 0;
}
.po-detail-info-head { margin-bottom: 10px; }
.po-detail-info-head h3 { font-size: 15px; font-weight: 600; margin: 0 0 8px; color: #222; }
.po-detail-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.po-detail-tag {
  font-size: 11px; padding: 3px 10px; border-radius: 999px; font-weight: 500; line-height: 1.4;
}
.po-tag-coop { background: #eef4ff; color: #2563eb; border: 1px solid #c7d9ff; }
.po-tag-role { background: #f3f0ff; color: #6d28d9; border: 1px solid #ddd6fe; }
.po-tag-muted { background: #f5f5f5; color: #888; border: 1px solid #e8e8e8; }

.po-product-card {
  display: flex; gap: 12px; padding: 10px 12px; margin-bottom: 12px;
  background: #fafafa; border: 1px solid #eee; border-radius: 8px;
}
.po-product-thumb-wrap { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 6px; overflow: hidden; background: #eee; }
.po-product-thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.po-modal-img-pending { background: #eee; min-height: 40px; }
.po-product-thumb-empty {
  flex: 0 0 64px; width: 64px; height: 64px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center; font-size: 11px; color: #aaa; background: #eee;
}
.po-product-body { flex: 1; min-width: 0; }
.po-product-name { font-size: 14px; font-weight: 600; color: #222; line-height: 1.35; margin-bottom: 4px; }
.po-product-price { margin-bottom: 4px; }
.po-price-now { font-size: 15px; font-weight: 700; color: #c41e3a; margin-right: 8px; }
.po-price-orig { font-size: 12px; color: #aaa; text-decoration: line-through; }
.po-product-meta { font-size: 12px; color: #666; display: flex; flex-wrap: wrap; gap: 8px 12px; }
.po-product-hl { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px; }
.po-hl-chip { font-size: 10px; padding: 2px 6px; background: #fff; border: 1px solid #e0e0e0; border-radius: 4px; color: #666; }

.po-meta-compact { display: grid; gap: 6px; margin-bottom: 12px; }
.po-meta-row { display: flex; gap: 8px; font-size: 12px; line-height: 1.45; }
.po-meta-label { flex: 0 0 56px; color: #999; }
.po-meta-val { flex: 1; color: #444; word-break: break-word; }

.po-addr-section { margin-top: 4px; }
.po-addr-label { font-size: 12px; font-weight: 600; color: #666; margin-bottom: 6px; }
.po-addr-block {
  padding: 10px 12px; background: #f8f8f8; border-radius: 6px;
  font-size: 12px; line-height: 1.6; white-space: pre-wrap; color: #444;
  border: 1px solid #eee;
}

/* 旧版 info 行（其它页面可能仍用） */
.po-info-grid { display: grid; gap: 10px; }
.po-info-row { display: flex; gap: 12px; font-size: 13px; line-height: 1.5; border-bottom: 1px solid #f0f0f0; padding-bottom: 8px; }
.po-info-label { flex: 0 0 88px; color: #888; }
.po-info-val { flex: 1; color: #333; word-break: break-word; }

@media (max-width: 768px) {
  .po-detail-layout { flex-direction: column; max-height: 92vh; }
  .po-detail-profile { flex: none; max-width: none; border-radius: 10px 10px 0 0; max-height: 36vh; }
  .po-detail-panel { width: 98vw; }
}

/* 商品编辑：手卡预览（模拟主播端 POFOREAL 横版，1024×768 缩放） */
.hc-preview-section { margin: 20px 0 8px; background: #fff; }
.hc-preview-tip { font-size: 12px; margin: 0 0 12px; line-height: 1.5; }
.hc-preview-viewport {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  position: relative;
  background: #fff;
  border: none;
  border-radius: 0;
  line-height: 0;
  /* 固定 4:3 比例，缩放后高度自动对齐，避免右侧/底部灰边 */
  aspect-ratio: 1024 / 768;
}
.hc-preview-card {
  width: 1024px;
  height: 768px;
  min-height: 768px;
  max-height: 768px;
  transform-origin: 0 0;
  position: absolute;
  top: 0;
  left: 0;
  background: #fff;
  box-shadow: none;
  font-size: 11px;
  color: #333;
  box-sizing: border-box;
  overflow: hidden;
}
.hc-preview-placeholder { padding: 24px; text-align: center; }
/* 水印 PNG 贴图（与小程序手卡同款 Logo） */
.hc-prev-watermark-img {
  position: absolute;
  z-index: 0;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 62%;
  max-width: 100%;
  height: auto;
  pointer-events: none;
}
.hc-prev-para-gap {
  height: 6px;
}
.hc-prev-header {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: #6b1a1a;
  color: #fff;
  padding: 10px 14px;
  min-height: 42px;
}
.hc-prev-header-brand { font-size: 15px; font-weight: 700; flex-shrink: 0; }
.hc-prev-header-prices {
  text-align: right;
  font-size: 10px;
  line-height: 1.4;
  word-break: break-all;
}
.hc-prev-main {
  position: relative;
  display: flex;
  padding: 16px 16px 48px;
  gap: 0;
  width: 1024px;
  box-sizing: border-box;
  min-height: 478px;
}
/* 左栏宽 = 竖线位置 - 边距（与 handCardLayout 红框 388px 行宽一致） */
.hc-prev-left {
  flex: 0 0 388px;
  width: 388px;
  max-width: 388px;
  min-width: 388px;
  padding-right: 0;
  border-right: 1px solid #d8d4cf;
  font-size: 11px;
  line-height: 1.45;
  box-sizing: border-box;
}
/* 右栏 = 画布剩余宽度；卖点区 width 100% 贴满右侧红框 */
.hc-prev-right {
  flex: 0 0 588px;
  width: 588px;
  max-width: 588px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding-left: 16px;
  box-sizing: border-box;
}
.hc-prev-field { margin-bottom: 11px; }
.hc-prev-lbl { display: block; font-weight: 800; color: #111; font-size: 11px; margin-bottom: 3px; }
.hc-prev-val {
  color: #333;
  word-break: normal;
  overflow-wrap: normal;
  margin-top: 2px;
  line-height: 1.45;
}
.hc-prev-name { font-weight: 700; color: #111; }
.hc-prev-inline-field { margin-bottom: 3px; }
.hc-prev-right-top {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 0;
  align-items: flex-start;
}
.hc-prev-right-imgs { flex: 0 0 38%; min-width: 0; width: 38%; }
.hc-prev-right-info { flex: 1; font-size: 10px; line-height: 1.45; color: #222; }
.hc-prev-info-line { margin-bottom: 5px; word-break: break-all; line-height: 1.45; }
.hc-info-lbl { font-weight: 700; color: #111; }
.hc-info-val { font-weight: 400; color: #6b1a1a; }
.hc-info-sep { color: #6b1a1a; font-weight: 400; }
.hc-prev-images { display: flex; gap: 5px; align-items: flex-start; }
.hc-prev-images-single .hc-prev-img-box { width: 100%; max-width: 100%; }
.hc-prev-images-dual .hc-prev-img-box { flex: 1; min-width: 0; }
.hc-prev-img-box {
  background: transparent;
  border: none;
  overflow: hidden;
  display: block;
}
.hc-prev-img-box img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}
.hc-prev-img-empty { color: #aaa; font-size: 10px; }
.hc-prev-right-bottom {
  margin-top: 16px;
  padding-top: 4px;
  border-top: 1px solid #d8d4cf;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.hc-prev-sp-head {
  font-size: 17px;
  font-weight: 800;
  color: #111;
  margin-bottom: 6px;
}
.hc-prev-sp-val {
  font-size: 16.5px;
  line-height: 1.45;
  color: #333;
  margin-bottom: 4px;
  word-break: normal;
  overflow-wrap: normal;
}

/* 合作管理：填写直播口令/链接 */
.po-live-link-box {
  margin: 16px 0;
  padding: 14px 16px;
  border: 1px solid var(--pof-border);
  border-radius: 8px;
  background: #fafafa;
}
.po-live-link-box.po-live-link-urgent {
  border-color: #c9a227;
  background: #fffbeb;
}
.po-live-link-box h4 { margin: 0 0 8px; font-size: 15px; }
.po-live-link-input {
  width: 100%;
  max-width: 520px;
  margin: 8px 0;
  padding: 10px 12px;
  box-sizing: border-box;
}
.po-live-link-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}
.po-live-link-saved {
  margin: 10px 0 12px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--pof-border);
  border-radius: 6px;
  word-break: break-all;
}
.po-live-link-val {
  font-size: 15px;
  color: #222;
  line-height: 1.5;
}
.po-live-link-url {
  color: var(--pof-accent, #8b0000);
  text-decoration: underline;
}
.po-live-link-edit {
  margin-top: 4px;
}
.po-build-tag {
  font-size: 12px;
  color: #888;
  margin-left: 6px;
}

/* 合作凭证：弹窗内完整展示截图，多图左右轮播 */
.po-coop-block { margin-top: 12px; padding-top: 12px; border-top: 1px solid #eee; }
.po-coop-h4 { margin: 0 0 8px; font-size: 14px; color: #333; }
.po-coop-ev-viewer { margin: 8px 0 12px; }
.po-coop-ev-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  max-height: 420px;
  background: #f8f8f8;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
}
.po-coop-ev-link { display: block; width: 100%; text-align: center; }
.po-coop-ev-slide {
  display: none;
  max-width: 100%;
  max-height: 400px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}
.po-coop-ev-slide.on { display: block; }
.po-coop-ev-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}
.po-coop-ev-prev,
.po-coop-ev-next {
  width: 32px;
  height: 32px;
  border: 1px solid #ddd;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
.po-coop-ev-counter { font-size: 12px; color: #666; min-width: 48px; text-align: center; }
.po-coop-sup-links { margin-top: 8px; font-size: 12px; color: #555; }
.po-coop-sup-title { font-weight: 600; margin-bottom: 4px; }
.po-coop-sup-links ul { margin: 0; padding-left: 18px; }
.po-coop-sup-links li { margin: 4px 0; word-break: break-all; }
