/* ═══════════════════════════════════════════════════════════════
   商品数据中心 (tab15)
   命名空间: pd-   （避免和现有 app.css 冲突）
   ═══════════════════════════════════════════════════════════════ */

#page-tab15 {
  --pd-primary: #1B3A6B;
  --pd-primary-soft: #EEF3FA;
  --pd-bg: #F6F8FC;
  --pd-surface: #FFFFFF;
  --pd-border: #E4EAF2;
  --pd-text-1: #16233A;
  --pd-text-2: #5A6B85;
  --pd-text-3: #94A3B8;
  --pd-success: #0F9D58;
  --pd-warning: #E8A33D;
  --pd-danger: #D93025;
  --pd-radius: 12px;
  --pd-shadow-sm: 0 1px 2px rgba(16, 35, 58, .04);
  --pd-shadow-md: 0 4px 14px -2px rgba(16, 35, 58, .09);
  --pd-shadow-lg: 0 14px 32px -10px rgba(16, 35, 58, .16);

  background: var(--pd-bg);
  padding: 18px 22px 40px;
}

/* ── 顶部工具条 ─────────────────────────────────── */
.pd-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.pd-toolbar__left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pd-toolbar__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pd-updated {
  font-size: 12px;
  color: var(--pd-text-3);
  font-variant-numeric: tabular-nums;
}

/* 分段控件 */
.pd-seg {
  display: inline-flex;
  background: #EDF1F8;
  border-radius: 9px;
  padding: 3px;
  gap: 2px;
}

.pd-seg__item {
  border: 0;
  background: transparent;
  padding: 6px 14px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--pd-text-2);
  cursor: pointer;
  transition: background .15s, color .15s, box-shadow .15s;
  white-space: nowrap;
}

.pd-seg__item:hover {
  background: #E2E9F4;
  color: var(--pd-text-1);
}

.pd-seg__item.is-active {
  background: #fff;
  color: var(--pd-primary);
  box-shadow: 0 1px 3px rgba(16, 35, 58, .13);
}

/* 搜索框 */
.pd-search input {
  width: 230px;
  height: 34px;
  border: 1px solid var(--pd-border);
  border-radius: 9px;
  padding: 0 12px;
  font-size: 13px;
  color: var(--pd-text-1);
  background: #fff;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.pd-search input::placeholder { color: #B3C0D2; }

.pd-search input:focus {
  border-color: #9DBBE0;
  box-shadow: 0 0 0 3px rgba(27, 58, 107, .07);
}

/* 按钮 */
.pd-btn {
  height: 34px;
  padding: 0 16px;
  border: 1px solid var(--pd-border);
  border-radius: 9px;
  background: #fff;
  color: var(--pd-text-1);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, border-color .15s, box-shadow .15s;
}

.pd-btn:hover:not(:disabled) {
  border-color: #C3D3E8;
  box-shadow: var(--pd-shadow-sm);
}

.pd-btn:disabled { opacity: .55; cursor: default; }

.pd-btn--primary {
  background: var(--pd-primary);
  border-color: var(--pd-primary);
  color: #fff;
}

.pd-btn--primary:hover { background: #16305A; border-color: #16305A; }

/* ── 店铺胶囊 ───────────────────────────────────── */
.pd-stores {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.pd-stores__label,
.pd-rankpick__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--pd-text-2);
  letter-spacing: .02em;
}

.pd-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 13px;
  border: 1px solid var(--pd-border);
  border-radius: 999px;
  background: #fff;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--pd-text-2);
  cursor: pointer;
  transition: all .15s;
}

.pd-chip:hover { border-color: #C3D3E8; color: var(--pd-text-1); }

/* ★ 2026-10-23: 选中态必须一眼看出来 —— 实心深蓝 + 白字 + 勾
   原来只有一个很淡的浅蓝底(#EEF3FA), 在白底上几乎看不出选没选 */
.pd-chip.is-on {
  background: var(--pd-primary);
  border-color: var(--pd-primary);
  color: #fff;
  box-shadow: 0 1px 2px rgba(27, 58, 107, .25);
}

.pd-chip.is-on:hover { border-color: var(--pd-primary); color: #fff; }

/* 选中勾 */
.pd-chip__tick {
  font-size: 10.5px;
  font-weight: 900;
  line-height: 1;
}

/* 「全部」后面的店铺数量 */
.pd-chip__num {
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: rgba(27, 58, 107, .08);
  color: var(--pd-primary);
  font-size: 11px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.pd-chip.is-on .pd-chip__num {
  background: rgba(255, 255, 255, .22);
  color: #fff;
}

/* 活跃店铺小绿点 */
.pd-chip__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22A45D;
  flex: none;
}

.pd-chip.is-on .pd-chip__dot { background: #fff; }

/* 「全部」和具体店铺之间的竖分隔 */
.pd-stores__divider {
  width: 1px;
  height: 16px;
  background: var(--pd-border);
  flex: none;
}

/* 右侧常驻的"当前统计口径" */
.pd-stores__scope {
  margin-left: auto;
  font-size: 12px;
  line-height: 1.4;
  padding: 4px 10px;
  border-radius: 6px;
  max-width: 52%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pd-stores__scope.is-all {
  color: var(--pd-text-2);
  background: #F5F7FA;
}

.pd-stores__scope.is-picked {
  color: var(--pd-primary);
  background: var(--pd-primary-soft);
  font-weight: 700;
}

/* 勾选框（排行榜多选） */
.pd-chip__box {
  width: 13px;
  height: 13px;
  border: 1.5px solid #C6D2E0;
  border-radius: 3.5px;
  background: #fff;
  position: relative;
  flex: none;
  transition: all .15s;
}

/* 选中=实心深蓝，所以勾选框改成白底 + 深蓝勾，否则糊成一片 */
.pd-chip.is-on .pd-chip__box {
  background: #fff;
  border-color: #fff;
}

.pd-chip.is-on .pd-chip__box::after {
  content: '';
  position: absolute;
  left: 3.5px;
  top: 1px;
  width: 4px;
  height: 7px;
  border: solid #fff;
  border-width: 0 1.8px 1.8px 0;
  border-color: var(--pd-primary);
  transform: rotate(42deg);
}

/* ── KPI ───────────────────────────────────────── */
.pd-kpi {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.pd-kpi__card {
  background: var(--pd-surface);
  border: 1px solid var(--pd-border);
  border-radius: var(--pd-radius);
  padding: 14px 16px;
  box-shadow: var(--pd-shadow-sm);
  position: relative;
  overflow: hidden;
}

.pd-kpi__card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
}

.pd-kpi__card--blue::before  { background: #2563EB; }
.pd-kpi__card--sky::before   { background: #0EA5E9; }
.pd-kpi__card--amber::before { background: #D97706; }
.pd-kpi__card--green::before { background: #059669; }
.pd-kpi__card--teal::before  { background: #0D9488; }
.pd-kpi__card--rose::before  { background: #DC2626; }
.pd-kpi__card--violet::before { background: #7C3AED; }

.pd-kpi__label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--pd-text-3);
  letter-spacing: .03em;
  margin-bottom: 7px;
}

.pd-kpi__value {
  font-size: 24px;
  font-weight: 800;
  color: var(--pd-text-1);
  line-height: 1.16;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.015em;
}

.pd-kpi__sub {
  margin-top: 5px;
  font-size: 11px;
  color: var(--pd-text-3);
}

/* ── 区块 ───────────────────────────────────────── */
.pd-section { margin-bottom: 26px; }

.pd-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.pd-section__title {
  margin: 0;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--pd-text-1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pd-count {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--pd-text-3);
}

.pd-sortbox select {
  height: 32px;
  border: 1px solid var(--pd-border);
  border-radius: 8px;
  background: #fff;
  padding: 0 10px;
  font-size: 12.5px;
  color: var(--pd-text-1);
  cursor: pointer;
  outline: none;
}

/* ── 排行榜多选 ─────────────────────────────────── */
.pd-rankpick {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── 排行榜网格 ─────────────────────────────────── */
.pd-rankgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 14px;
  align-items: start;
}

.pd-rankgrid--empty { display: block; }

.pd-rankcard {
  background: var(--pd-surface);
  border: 1px solid var(--pd-border);
  border-radius: var(--pd-radius);
  box-shadow: var(--pd-shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 560px;
}

.pd-rankcard__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-bottom: 1px solid var(--pd-border);
  background: linear-gradient(180deg, #FAFCFE, #F3F7FC);
}

.pd-rankcard__title {
  font-size: 13px;
  font-weight: 800;
  color: var(--pd-text-1);
}

.pd-rankcard__top {
  font-size: 11px;
  font-weight: 600;
  color: var(--pd-text-3);
}

.pd-rankcard__list {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.pd-rankcard__empty,
.pd-rankcard__note {
  padding: 10px 14px;
  font-size: 11.5px;
  color: var(--pd-text-3);
}

.pd-rankcard__empty { padding: 34px 14px; text-align: center; }
.pd-rankcard__note { border-top: 1px solid #F2F6FB; background: #FBFDFF; }

.pd-rankrow {
  display: grid;
  grid-template-columns: 22px 40px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid #F4F7FB;
  cursor: pointer;
  transition: background .13s;
  outline: none;
}

.pd-rankrow:hover { background: #F7FAFD; }

/* ★ 2026-10-23: 榜单行现在可点开商品详情 —— 加按压/键盘焦点反馈，
   避免"看起来能点、点了没反应"的错觉。 */
.pd-rankrow:active { background: #EAF3FF; }

.pd-rankrow:focus-visible {
  background: #F7FAFD;
  box-shadow: inset 0 0 0 2px #93C5FD;
}

/* 点击后名称变主题色，和商品卡片的"查看"提示保持一致 */
.pd-rankrow:hover .pd-rankrow__name { color: #2563EB; }

.pd-rankrow__no {
  font-size: 12px;
  font-weight: 800;
  color: var(--pd-text-3);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.pd-rankrow__no.is-top1 { color: #E8A33D; font-size: 13.5px; }
.pd-rankrow__no.is-top2 { color: #8A9BB4; font-size: 13.5px; }
.pd-rankrow__no.is-top3 { color: #B4713A; font-size: 13.5px; }

.pd-rankrow__thumb {
  width: 40px;
  height: 40px;
  border-radius: 7px;
  object-fit: contain;
  background: #F4F8FD;
  border: 1px solid #E8EFF7;
  padding: 2px;
  flex: none;
}

.pd-rankrow__thumb--ph {
  display: block;
  background: repeating-linear-gradient(45deg, #F4F8FD, #F4F8FD 5px, #EAF1F9 5px, #EAF1F9 10px);
}

.pd-rankrow__main { min-width: 0; }

.pd-rankrow__name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--pd-text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pd-rankrow__sku {
  font-size: 10.5px;
  color: var(--pd-text-3);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  margin-top: 2px;
}

.pd-rankrow__val {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--pd-text-1);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ── 商品卡片网格 ───────────────────────────────── */
.pd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  gap: 14px;
}

.pd-card {
  background: var(--pd-surface);
  border: 1px solid var(--pd-border);
  border-radius: var(--pd-radius);
  overflow: hidden;
  box-shadow: var(--pd-shadow-sm);
  cursor: pointer;
  transition: transform .18s, box-shadow .18s, border-color .18s;
  display: flex;
  flex-direction: column;
}

.pd-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--pd-shadow-md);
  border-color: #CFDDEF;
}

.pd-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: linear-gradient(170deg, #FBFCFE 0%, #EFF4FA 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pd-card__media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  padding: 8px;
  transition: transform .25s;
}

.pd-card:hover .pd-card__media img { transform: scale(1.03); }

.pd-card__ph {
  font-size: 12px;
  color: var(--pd-text-3);
}

.pd-card__zoom {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(22, 35, 58, 0);
  color: transparent;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .06em;
  transition: background .18s, color .18s;
}

.pd-card:hover .pd-card__zoom {
  background: rgba(22, 35, 58, .34);
  color: #fff;
}

.pd-card__body {
  padding: 10px 11px 11px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.pd-card__name {
  margin: 0;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.42;
  color: var(--pd-text-1);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 35px;
}

.pd-card__sku {
  font-size: 10.5px;
  color: var(--pd-text-3);
  font-family: ui-monospace, Consolas, monospace;
}

.pd-card__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px 4px;
  padding-top: 7px;
  border-top: 1px solid #F2F6FB;
  margin-top: auto;
}

.pd-card__metric { text-align: center; }

.pd-card__metric-v {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--pd-text-1);
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
}

.pd-card__metric-l {
  display: block;
  font-size: 9.5px;
  color: var(--pd-text-3);
  letter-spacing: .02em;
}

.pd-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pd-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2.5px 7px;
  border-radius: 5px;
  white-space: nowrap;
}

.pd-badge--low  { background: #ECFDF5; color: #047857; }
.pd-badge--mid  { background: #FFFBEB; color: #B45309; }
.pd-badge--high { background: #FEF2F2; color: #B91C1C; }
.pd-badge--none { background: #F1F5F9; color: #64748B; }

.pd-card__pos {
  font-size: 10.5px;
  color: var(--pd-text-3);
  font-variant-numeric: tabular-nums;
}

/* ── 分页 ───────────────────────────────────────── */
.pd-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.pd-pager__btn {
  min-width: 33px;
  height: 32px;
  padding: 0 11px;
  border: 1px solid var(--pd-border);
  border-radius: 8px;
  background: #fff;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--pd-text-2);
  cursor: pointer;
  transition: all .14s;
  font-variant-numeric: tabular-nums;
}

.pd-pager__btn:hover:not(:disabled):not(.is-active) {
  border-color: #C3D3E8;
  color: var(--pd-text-1);
}

.pd-pager__btn.is-active {
  background: var(--pd-primary);
  border-color: var(--pd-primary);
  color: #fff;
}

.pd-pager__btn:disabled { opacity: .4; cursor: default; }

.pd-pager__gap {
  padding: 0 4px;
  color: var(--pd-text-3);
  font-size: 12px;
}

/* ── 空态 ───────────────────────────────────────── */
.pd-empty {
  grid-column: 1 / -1;
  padding: 56px 20px;
  text-align: center;
  color: var(--pd-text-3);
  font-size: 13px;
}

.pd-empty--box {
  background: var(--pd-surface);
  border: 1px dashed #D2DEEB;
  border-radius: var(--pd-radius);
}

.pd-empty--box p { margin: 0 0 14px; }

/* ── 详情抽屉 ───────────────────────────────────── */
.pd-drawer-mask {
  position: fixed;
  inset: 0;
  background: rgba(12, 22, 38, .34);
  backdrop-filter: blur(1.5px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, visibility .2s;
  z-index: 1200;
}

.pd-drawer-mask.is-show { opacity: 1; visibility: visible; }

.pd-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(560px, 94vw);
  background: #fff;
  box-shadow: -20px 0 48px -18px rgba(12, 22, 38, .3);
  transform: translateX(102%);
  transition: transform .26s cubic-bezier(.32, .72, .28, 1);
  z-index: 1201;
  display: flex;
  flex-direction: column;
}

.pd-drawer.is-show { transform: translateX(0); }

.pd-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--pd-border);
  flex: none;
}

.pd-drawer__head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--pd-text-1);
}

.pd-drawer__close {
  width: 30px;
  height: 30px;
  border: 0;
  background: #F2F6FB;
  border-radius: 7px;
  color: var(--pd-text-2);
  font-size: 15px;
  cursor: pointer;
  transition: background .14s, color .14s;
}

.pd-drawer__close:hover { background: #E6EEF8; color: var(--pd-text-1); }

.pd-drawer__body {
  padding: 18px 20px 32px;
  overflow-y: auto;
  flex: 1;
}

.pd-drawer__hero {
  aspect-ratio: 4 / 3;
  background: linear-gradient(170deg, #FBFCFE, #EEF3FA);
  border-radius: 11px;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-bottom: 14px;
}

.pd-drawer__hero img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  padding: 10px;
  cursor: zoom-in;
  transition: transform .2s;
}

.pd-drawer__hero img:hover { transform: scale(1.02); }

.pd-drawer__ph { color: var(--pd-text-3); font-size: 13px; }

.pd-drawer__title {
  margin: 0 0 9px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
  color: var(--pd-text-1);
}

.pd-drawer__meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--pd-text-3);
  margin-bottom: 18px;
}

.pd-drawer__meta b {
  color: var(--pd-text-2);
  font-family: ui-monospace, Consolas, monospace;
  font-weight: 600;
}

/* ★ 2026-10-23: 从排行榜点进来的来源标识
   —— 让用户一眼知道"我是在哪个榜第几名点到这个商品的" */
.pd-drawer__rank {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 16px;
  padding: 9px 13px;
  border-radius: 10px;
  background: linear-gradient(90deg, #EDF4FF 0%, #F7FAFF 100%);
  border: 1px solid #D8E7FA;
}

.pd-drawer__rank-tag {
  font-size: 12.5px;
  font-weight: 800;
  color: #1D4ED8;
  letter-spacing: .01em;
}

.pd-drawer__rank-val {
  font-size: 13px;
  font-weight: 800;
  color: #0F172A;
  font-variant-numeric: tabular-nums;
}

.pd-drawer__rank-val::before {
  content: '榜上数值 ';
  font-size: 11px;
  font-weight: 600;
  color: #64748B;
}

.pd-drawer__h4 {
  margin: 20px 0 10px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--pd-text-2);
  letter-spacing: .04em;
  padding-top: 14px;
  border-top: 1px solid #F0F4F9;
}

.pd-drawer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--pd-border);
  border: 1px solid var(--pd-border);
  border-radius: 10px;
  overflow: hidden;
}

.pd-dcell {
  background: #fff;
  padding: 12px 8px;
  text-align: center;
}

.pd-dcell__v {
  display: block;
  font-size: 17px;
  font-weight: 800;
  color: var(--pd-text-1);
  font-variant-numeric: tabular-nums;
}

.pd-dcell__l {
  display: block;
  margin-top: 3px;
  font-size: 10.5px;
  color: var(--pd-text-3);
}

.pd-drawer__health {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pd-health {
  border-radius: 10px;
  padding: 11px 13px;
  border-left-width: 3px;
  border-left-style: solid;
}

.pd-health--return    { background: #FEF6F6; border-left-color: #DC2626; }
.pd-health--cancel    { background: #F7FAFD; border-left-color: #94A3B8; }
.pd-health--delivered { background: #F4FBF7; border-left-color: #059669; }
.pd-health--rate      { background: #FBF9FE; border-left-color: #7C3AED; }

.pd-health__label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--pd-text-2);
}

.pd-health__val {
  display: block;
  margin: 3px 0 2px;
  font-size: 19px;
  font-weight: 800;
  color: var(--pd-text-1);
  font-variant-numeric: tabular-nums;
}

.pd-health__val--low  { color: #047857; }
.pd-health__val--mid  { color: #B45309; }
.pd-health__val--high { color: #B91C1C; }
.pd-health__val--none { color: var(--pd-text-3); }

.pd-health__hint {
  font-size: 10.5px;
  color: var(--pd-text-3);
}

.pd-drawer__pos {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  color: var(--pd-text-2);
  background: #F7FAFD;
  border: 1px solid var(--pd-border);
  border-radius: 10px;
  padding: 12px 14px;
}

.pd-drawer__pos b {
  font-size: 17px;
  font-weight: 800;
  color: var(--pd-primary);
  font-variant-numeric: tabular-nums;
}

.pd-drawer__pos span { font-size: 11px; color: var(--pd-text-3); }
.pd-drawer__pos-none { color: var(--pd-text-3); }

/* ── Lightbox ───────────────────────────────────── */
.pd-lb {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(9, 16, 28, .95);
  display: grid;
  grid-template-rows: 1fr auto;
  opacity: 0;
  transition: opacity .18s;
}

.pd-lb.is-show { opacity: 1; }
.pd-lb[hidden] { display: none; }

.pd-lb__stage {
  display: grid;
  place-items: center;
  padding: 46px 84px 16px;
  min-height: 0;
}

.pd-lb__stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .6);
}

.pd-lb__close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: #E6EDF7;
  font-size: 16px;
  cursor: pointer;
  transition: background .15s;
  z-index: 2;
}

.pd-lb__close:hover { background: rgba(255, 255, 255, .2); }

.pd-lb__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  background: rgba(255, 255, 255, .09);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background .15s;
  z-index: 2;
}

.pd-lb__nav:hover { background: rgba(255, 255, 255, .22); }
.pd-lb__nav--prev { left: 20px; }
.pd-lb__nav--next { right: 20px; }

.pd-lb__meta {
  padding: 12px 24px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pd-lb__title {
  font-size: 13.5px;
  font-weight: 600;
  color: #EAF1FB;
}

.pd-lb__sub {
  font-size: 11.5px;
  color: #8FA3BE;
}

/* ── Toast ──────────────────────────────────────── */
.pd-toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translate(-50%, 14px);
  padding: 11px 20px;
  background: #16233A;
  color: #fff;
  font-size: 13px;
  border-radius: 9px;
  box-shadow: 0 14px 32px -10px rgba(0, 0, 0, .45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 4000;
}

.pd-toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.pd-toast--error { background: #B91C1C; }
.pd-toast--warn  { background: #B45309; }

/* ── 响应式 ─────────────────────────────────────── */
@media (max-width: 1440px) {
  .pd-grid { grid-template-columns: repeat(auto-fill, minmax(184px, 1fr)); }
}

@media (max-width: 1100px) {
  #page-tab15 { padding: 14px 14px 32px; }
  .pd-search input { width: 180px; }
  .pd-kpi { grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); }
  .pd-rankgrid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}

@media (max-width: 720px) {
  .pd-toolbar { flex-direction: column; align-items: stretch; }
  .pd-search input { width: 100%; }
  .pd-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .pd-card__metrics { grid-template-columns: repeat(2, 1fr); }
  .pd-drawer { width: 100vw; }
  .pd-drawer__grid { grid-template-columns: repeat(2, 1fr); }
  .pd-lb__stage { padding: 52px 16px 12px; }
  .pd-lb__nav { width: 38px; height: 38px; }
}

/* ═══════════════════════════════════════════════════════════════
   32 号新增：tab15 子页签（滞销品 / 搜索词 / 卡片诊断）+ 新品跟踪
   命名空间仍是 pd-；只追加，不动上面任何规则。
   ═══════════════════════════════════════════════════════════════ */

/* ── 子页签栏（照 pd-seg 的写法） ── */
.pd-subtabs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.pd-subtabs__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--pd-text-2);
  letter-spacing: .02em;
}

.pd-subtabs__hint {
  font-size: 11.5px;
  color: var(--pd-text-3);
}

.pd-subnote {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--pd-text-2);
}

/* 子页签 view 表格横向溢出时只滚本区，不撑坏整页 */
#pd-view-deadstock, #pd-view-searchterms, #pd-view-cardscore, #pd-newprod {
  overflow-x: auto;
}

/* ── 通用小表格 ── */
.pd-subtable {
  width: 100%;
  border-collapse: collapse;
  background: var(--pd-surface);
  border: 1px solid var(--pd-border);
  border-radius: var(--pd-radius);
  overflow: hidden;
  font-size: 12.5px;
  margin-bottom: 14px;
}

.pd-subtable th,
.pd-subtable td {
  padding: 9px 10px;
  border-bottom: 1px solid #F2F6FB;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.pd-subtable th {
  background: linear-gradient(180deg, #FAFCFE, #F3F7FC);
  font-size: 11.5px;
  color: var(--pd-text-2);
}

.pd-subtable tbody tr:last-child td { border-bottom: 0; }
.pd-subtable tbody tr:hover { background: #F7FAFD; }

/* 评分低于 60 分：整行标红（32 号功能 3） */
.pd-subtable tr.is-low { background: #FEF2F2; }
.pd-subtable tr.is-low:hover { background: #FEECEC; }

/* 没流量的新品行：淡红底 + “没流量”标签 */
.pd-subtable tr.is-none { background: #FFF7ED; }
.pd-subtable tr.is-none:hover { background: #FFEDD5; }

.pd-subtable__prod {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
}

.pd-subtable__prod img {
  width: 40px;
  height: 40px;
  border-radius: 7px;
  object-fit: contain;
  background: #F4F8FD;
  border: 1px solid #E8EFF7;
  padding: 2px;
  flex: none;
}

.pd-subtable__name {
  font-weight: 700;
  color: var(--pd-text-1);
  white-space: normal;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  max-width: 420px;
}

.pd-subtable__sub {
  font-size: 10.5px;
  color: var(--pd-text-3);
  font-family: ui-monospace, Consolas, monospace;
  margin-top: 2px;
}

.pd-subtable__h4 {
  margin: 20px 0 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--pd-text-1);
}

/* 行内操作按钮组 */
.pd-rowacts {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pd-mini-btn {
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--pd-border);
  border-radius: 7px;
  background: #fff;
  color: var(--pd-text-1);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.pd-mini-btn:hover:not(:disabled) { border-color: #C3D3E8; box-shadow: var(--pd-shadow-sm); }
.pd-mini-btn:disabled { opacity: .45; cursor: default; }

.pd-mini-btn--primary {
  background: var(--pd-primary);
  border-color: var(--pd-primary);
  color: #fff;
}

.pd-mini-btn--primary:hover { background: #16305A; border-color: #16305A; }

/* ── 批量操作栏 ── */
.pd-batchbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 12px;
  background: #F7FAFD;
  border: 1px solid var(--pd-border);
  border-radius: 10px;
  margin-bottom: 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--pd-text-1);
  position: sticky;
  bottom: 0;
}

/* ── 趋势标签 ── */
.pd-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  background: #F1F5F9;
  color: #64748B;
  white-space: nowrap;
}

.pd-tag--hot { background: #ECFDF5; color: #047857; }
.pd-tag--cold { background: #FEF2F2; color: #B91C1C; }

/* ── 提示条 / 导入框 / 建议框 ── */
.pd-notice {
  padding: 12px 14px;
  border-radius: 10px;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  color: #92400E;
  font-size: 12.5px;
  line-height: 1.6;
  margin-bottom: 14px;
}

.pd-importbox {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 12px;
  background: #F7FAFD;
  border: 1px solid var(--pd-border);
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 12.5px;
  color: var(--pd-text-2);
}

.pd-importbox input[type="file"] { font-size: 12px; }

.pd-suggestbox {
  padding: 12px 14px;
  border-radius: 10px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--pd-text-1);
  margin-bottom: 14px;
}

.pd-suggestbox__title { font-weight: 800; margin-bottom: 4px; }

.pd-suggestbox__new {
  font-weight: 700;
  background: #fff;
  border: 1px solid #DBEAFE;
  border-radius: 8px;
  padding: 8px 10px;
  margin: 8px 0;
}

@media (max-width: 720px) {
  .pd-subtable__prod { min-width: 180px; }
  .pd-subtable__name { max-width: 240px; }
  .pd-batchbar { position: static; }
}


/* ═══ 2026-11-25 新品跟踪：卡片化 + 主图放大 + 10 行分页 ═══ */
#pd-newprod-section {
  background: linear-gradient(180deg, #f7f9ff 0%, #f3f6fc 100%);
  border: 1px solid #e4eaf5;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 26px rgba(15, 23, 42, .06);
}
#pd-newprod-section .pd-section__head {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #dde6f2;
}
#pd-newprod-section .pd-section__title {
  font-size: 16px;
  letter-spacing: .2px;
}
#pd-newprod-section .pd-section__title::before {
  content: "✦";
  color: #6366f1;
  margin-right: 6px;
}
.pd-np-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 14px 16px;
  margin-bottom: 14px;
  border-radius: 13px;
  background: linear-gradient(120deg, #eef2ff 0%, #f5f3ff 52%, #eff6ff 100%);
  border: 1px solid #dbe4ff;
}
.pd-np-banner__eyebrow {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1.4px;
  color: #6366f1;
  margin-bottom: 4px;
}
.pd-np-banner__title {
  font-size: 18px;
  font-weight: 800;
  color: #1e1b4b;
}
.pd-np-banner__sub {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 3px;
}
.pd-np-banner__stats {
  display: flex;
  gap: 10px;
}
.pd-np-banner__stats > div {
  min-width: 76px;
  text-align: center;
  background: rgba(255,255,255,.78);
  border: 1px solid #e0e7ff;
  border-radius: 10px;
  padding: 7px 10px;
}
.pd-np-banner__stats b {
  display: block;
  font-size: 20px;
  line-height: 1.1;
  color: #4338ca;
}
.pd-np-banner__stats span {
  font-size: 10px;
  color: #64748b;
}
.pd-np-card {
  border: 1px solid #e4eaf5;
  border-radius: 13px;
  background: #fff;
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: 0 3px 14px rgba(15, 23, 42, .035);
}
.pd-np-card--tips {
  background: linear-gradient(180deg, #fbfaff 0%, #fff 100%);
}
.pd-np-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid #eef2f8;
  background: #fbfcff;
}
.pd-np-card__head h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: #1e293b;
}
.pd-np-card__head p {
  margin: 2px 0 0;
  font-size: 10.5px;
  color: #94a3b8;
}
.pd-np-chip {
  font-size: 10.5px;
  font-weight: 800;
  color: #4338ca;
  background: #eef2ff;
  border-radius: 999px;
  padding: 3px 8px;
}
.pd-np-chip--violet {
  color: #6d28d9;
  background: #f5f3ff;
}
.pd-np-tablewrap {
  overflow-x: auto;
}
.pd-np-table {
  border: 0 !important;
  border-radius: 0 !important;
  margin: 0 !important;
}
.pd-np-table th {
  background: #f8fafc !important;
  border: 0 !important;
  border-bottom: 1px solid #e8eef7 !important;
  color: #64748b !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  letter-spacing: .2px;
  padding: 9px 10px !important;
  white-space: nowrap;
}
.pd-np-table td {
  border: 0 !important;
  border-bottom: 1px solid #f0f4fa !important;
  padding: 8px 10px !important;
  vertical-align: middle;
}
.pd-np-table tr:last-child td { border-bottom: 0 !important; }
.pd-np-table tbody tr:hover { background: #f8faff; }
.pd-np-table .pd-np-name {
  max-width: 230px;
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.45;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.pd-np-imgcell {
  width: 64px;
  text-align: center;
}
.pd-np-thumb {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 9px;
  border: 1px solid #e2e8f0;
  cursor: zoom-in;
  background: #f8fafc;
  transition: transform .15s ease, box-shadow .15s ease;
}
.pd-np-thumb:hover {
  transform: scale(1.08);
  box-shadow: 0 5px 14px rgba(15,23,42,.18);
}
.pd-np-noimg {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: #f1f5f9;
  color: #94a3b8;
  font-size: 10px;
}
.pd-np-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10.5px !important;
  color: #475569;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pd-np-store {
  font-size: 11px !important;
  color: #475569;
  max-width: 130px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pd-np-days {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  color: #0369a1;
  background: #e0f2fe;
  border-radius: 999px;
  padding: 3px 8px;
  white-space: nowrap;
}
.pd-np-num {
  font-size: 12px !important;
  font-weight: 700;
  color: #334155;
  text-align: right;
}
.pd-np-tip {
  font-size: 11.5px !important;
  color: #475569;
  max-width: 210px;
  line-height: 1.45;
}
.pd-np-pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 9px 12px;
  border-top: 1px solid #eef2f8;
  background: #fcfdff;
  color: #94a3b8;
  font-size: 10.5px;
}
.pd-np-pager__btn {
  border: 1px solid #dbe4f0;
  background: #fff;
  color: #475569;
  border-radius: 7px;
  padding: 4px 10px;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
}
.pd-np-pager__btn:hover:not(:disabled) {
  border-color: #a5b4fc;
  color: #4338ca;
  background: #f8faff;
}
.pd-np-pager__btn:disabled {
  opacity: .42;
  cursor: not-allowed;
}
.pd-np-loading {
  display: flex;
  gap: 8px;
  padding: 30px;
  justify-content: center;
}
.pd-np-loading span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #818cf8;
  animation: pdNpPulse .9s infinite alternate;
}
.pd-np-loading span:nth-child(2) { animation-delay: .2s; }
.pd-np-loading span:nth-child(3) { animation-delay: .4s; }
@keyframes pdNpPulse { from { opacity: .25; transform: translateY(0); } to { opacity: 1; transform: translateY(-4px); } }
@media (max-width: 720px) {
  #pd-newprod-section { padding: 10px; }
  .pd-np-banner { padding: 12px; }
  .pd-np-banner__title { font-size: 16px; }
  .pd-np-table .pd-np-name { max-width: 170px; }
  .pd-np-tip { max-width: 160px; }
}
