/* ARA è¿è¥åå° Â· CRMEB ç»å¸ä¾§æ é£æ ¼ */
:root {
  --side: #2d323e;
  --side-hover: #3a4050;
  --side-active: #1890ff;
  --side-text: rgba(255, 255, 255, .75);
  --bg: #f0f2f5;
  --card: #fff;
  --primary: #1890ff;
  --primary-soft: #e6f4ff;
  --text: #515a6e;
  --text-strong: #17233d;
  --muted: #808695;
  --line: #e8eaec;
  --ok: #19be6b;
  --danger: #ed4014;
  --side-w: 200px;
  --side-w-mini: 64px;
  --top-h: 50px;
  --tabs-h: 40px;
  --shadow: 0 1px 4px rgba(0, 21, 41, .08);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
}

#adminApp {
  display: flex;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

/* ââ æ·±è²ä¾§æ  ââ */
.sidebar {
  width: var(--side-w);
  flex-shrink: 0;
  background: var(--side);
  color: var(--side-text);
  display: flex;
  flex-direction: column;
  transition: width .2s ease;
  z-index: 20;
  position: relative;
}
.logo {
  height: var(--top-h);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  white-space: nowrap;
  overflow: visible;
  position: relative;
  z-index: 30;
}
.logo-brand {
  flex-shrink: 0;
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  font-style: italic;
  letter-spacing: .04em;
  line-height: 1;
  color: #fff;
  opacity: 1;
}

/* Logo æè§è²åæ¢ */
.role-switch {
  position: relative;
  flex: 1;
  min-width: 0;
  font-style: normal;
}
.role-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  margin: 0;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, .72);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0;
  line-height: 1.2;
  cursor: pointer;
}
.role-switch-btn:hover,
.logo.role-open .role-switch-btn {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .12);
  color: #fff;
}
.role-switch-label {
  overflow: hidden;
  text-overflow: ellipsis;
}
.role-switch-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: .7;
  flex-shrink: 0;
}
.role-switch-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 128px;
  padding: 6px;
  border-radius: 8px;
  background: #1f2937;
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .35);
  z-index: 40;
}
.role-switch-item {
  display: block;
  width: 100%;
  margin: 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, .82);
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  font-style: normal;
  text-align: left;
  cursor: pointer;
}
.role-switch-item:hover {
  background: rgba(255, 255, 255, .08);
  color: #fff;
}
.role-switch-item.on {
  background: rgba(37, 99, 235, .35);
  color: #fff;
}

.menu {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0 16px;
  scrollbar-width: none;
}
.menu::-webkit-scrollbar { width: 0; height: 0; display: none; }
.menu-thumb {
  position: absolute;
  right: 2px;
  width: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .38);
  z-index: 4;
}
.menu-thumb::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -6px;
  right: -3px;
}
.menu-thumb[hidden] { display: none; }

.hb-thumb {
  display: block;
  width: 96px;
  height: 46px;
  border-radius: 6px;
  background: #f5f5f5 center/cover no-repeat;
}
.hb-preview {
  width: 320px;
  max-width: 100%;
  height: 154px;
  border-radius: 8px;
  border: 1px solid #f0f0f0;
  background: #fafafa;
  overflow: hidden;
}
.hb-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hb-preview-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #8c8c8c;
  font-size: 12px;
}
.hb-pick-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hb-pick-bar .input { width: 240px; height: 32px; }
.ops .btn.link:disabled { opacity: .35; cursor: default; }
.order-config-form .oc-radio-row {
  min-height: 32px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.menu-item,
.sub-item {
  width: 100%;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  height: 44px;
  position: relative;
}
.menu-item svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
  opacity: .9;
}
.menu-item .txt { flex: 1; white-space: nowrap; }
.menu-item:hover { background: var(--side-hover); color: #fff; }
.menu-item .caret {
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 5px solid rgba(255,255,255,.45);
  transition: transform .2s;
}
.menu-group.open > .group-hd .caret {
  transform: rotate(90deg);
  border-left-color: #fff;
}
.menu-group.open > .group-hd {
  color: #fff;
  background: rgba(255, 255, 255, .04);
}

.menu-sub {
  display: none;
  background: rgba(0, 0, 0, .15);
  padding: 4px 0;
}
.menu-group.open > .menu-sub { display: block; }

.sub-item {
  height: 40px;
  padding-left: 46px;
  color: rgba(255, 255, 255, .65);
}
.sub-item:hover { color: #fff; background: rgba(255, 255, 255, .04); }
.sub-item.on {
  color: #fff;
  background: var(--side-active);
}
.menu-item.on {
  color: #fff;
  background: var(--side-active);
}
.sub-item.disabled {
  opacity: .4;
  cursor: default;
}
.sub-item.disabled:hover { background: transparent; color: rgba(255,255,255,.65); }

/* ä¸çº§èåï¼è¥é â ä¼æ å¸ â åè¡¨/é¢åè®°å½ */
.menu-sub-group > .menu-sub-sub {
  display: none;
  padding: 0 0 4px;
}
.menu-sub-group.open > .menu-sub-sub {
  display: block;
}
.sub-item.sub-group-hd {
  justify-content: space-between;
  gap: 8px;
}
.sub-item.sub-group-hd .txt {
  flex: 1;
}
.sub-item.sub-group-hd .caret {
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 5px solid rgba(255,255,255,.35);
  transition: transform .2s;
  flex-shrink: 0;
}
.menu-sub-group.open > .sub-group-hd {
  color: #fff;
}
.menu-sub-group.open > .sub-group-hd .caret {
  transform: rotate(90deg);
  border-left-color: #fff;
}
.sub-item.sub-sub-item {
  padding-left: 62px;
  height: 36px;
  font-size: 12px;
}

/* æ¶èµ·ä¾§æ  */
#adminApp.collapsed .sidebar { width: var(--side-w-mini); }
#adminApp.collapsed .logo .role-switch,
#adminApp.collapsed .menu-item .txt,
#adminApp.collapsed .menu-item .caret,
#adminApp.collapsed .menu-sub { display: none; }
#adminApp.collapsed .menu-item { justify-content: center; padding: 0; }
#adminApp.collapsed .menu-item svg { margin: 0; }

/* ââ ä¸»åº ââ */
.workspace {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.topbar {
  height: var(--top-h);
  flex-shrink: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  box-shadow: var(--shadow);
  z-index: 5;
}
.fold-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  border-radius: 4px;
  cursor: pointer;
}
.fold-btn:hover { background: #f5f7fa; color: var(--primary); }
.crumb {
  color: var(--muted);
  font-size: 13px;
}
.crumb b { color: var(--text-strong); font-weight: 600; }
.tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2px;
}
.tool {
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  color: var(--muted);
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}
.tool:hover { background: #f5f7fa; color: var(--primary); }
.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
  padding: 4px 8px 4px 4px;
  color: var(--text);
  font-size: 13px;
}
.user-chip .av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #69c0ff, #1890ff);
}
.more { position: relative; }
.more-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 168px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  padding: 6px;
  z-index: 40;
}
.more.open .more-menu { display: block; }
.more-menu a {
  display: block;
  padding: 8px 10px;
  border-radius: 4px;
  color: var(--text);
  text-decoration: none;
  font-size: 12px;
}
.more-menu a:hover { background: var(--primary-soft); color: var(--primary); }

/* ââ é¡µç­¾ï¼å¯æ¨ªåæ»å¨ + æº¢åºå¯¼èª ââ */
.tabs-bar {
  height: var(--tabs-h);
  flex-shrink: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 4px 0 6px;
  gap: 2px;
  min-width: 0;
  position: relative;
}
.tabs {
  flex: 1;
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding: 0 4px;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { height: 0; display: none; }
.tabs-nav {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  color: var(--text);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
.tabs-nav:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-soft);
}
.tabs-nav:disabled {
  opacity: 0.35;
  cursor: default;
  color: var(--muted);
  border-color: var(--line);
  background: #fff;
}
.tabs-nav[hidden],
.tabs-more[hidden] {
  display: none !important;
}
.tabs-more {
  position: relative;
  flex-shrink: 0;
  margin-left: 2px;
}
.tabs-more-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #f5f7fa;
  color: var(--text);
  font-size: 12px;
  cursor: pointer;
  line-height: 1;
}
.tabs-more-btn:hover,
.tabs-more.open .tabs-more-btn {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-soft);
}
.tabs-more-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  min-width: 180px;
  max-width: 260px;
  max-height: min(360px, 60vh);
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  padding: 6px;
  z-index: 50;
}
.tabs-more.open .tabs-more-menu { display: block; }
.tabs-more-item {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--text);
  cursor: pointer;
}
.tabs-more-item:hover { background: var(--primary-soft); color: var(--primary); }
.tabs-more-item.on {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
}
.tabs-more-item .name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tabs-more-item .x {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
}
.tabs-more-item .x:hover { background: rgba(0,0,0,.06); color: var(--danger); }
.tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border: none;
  border-radius: 3px;
  background: #f5f7fa;
  color: var(--text);
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.tab:hover { color: var(--primary); }
.tab.on {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
}
.tab .x {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  line-height: 1;
  color: var(--muted);
}
.tab .x:hover { background: rgba(0,0,0,.06); color: var(--danger); }

.body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 12px 14px 8px;
}

.page { display: none; }
.page.active { display: block; }

.foot {
  flex-shrink: 0;
  text-align: center;
  padding: 10px 16px 14px;
  color: var(--muted);
  font-size: 12px;
}

/* ââ å¡çé£æ ¼ ââ */
.panel,
.chart-card,
.kpi,
.stat {
  background: var(--card);
  border: none;
  border-radius: 4px;
  box-shadow: var(--shadow);
}
.panel {
  padding: 14px 16px;
  margin-bottom: 12px;
}
.panel-hd h3,
.chart-card .hd h3 {
  color: var(--text-strong);
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}
.kpi {
  padding: 14px 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.kpi .ico {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
}
.kpi .ico.c1 { background: #722ed1; }
.kpi .ico.c2 { background: #1890ff; }
.kpi .ico.c3 { background: #19be6b; }
.kpi .ico.c4 { background: #fa8c16; }
.kpi .ico.c5 { background: #f5222d; }
.kpi .ico.c6 { background: #13c2c2; }
.kpi .k { font-size: 12px; color: var(--muted); }
.kpi .v { font-size: 20px; font-weight: 700; color: var(--text-strong); margin-top: 2px; }
.kpi .t { font-size: 11px; margin-top: 4px; }
.kpi .t.up { color: var(--danger); }
.kpi .t.down { color: var(--ok); }

/* ââ ç§æ·ä¸»é¡µçæ¿ ââ */
.home-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  padding: 16px 18px;
}
.home-welcome-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-strong);
}
.home-welcome-sub {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}
.home-welcome-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.home-kpi-row {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.home-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.4fr);
  gap: 12px;
  margin-bottom: 12px;
  align-items: stretch;
}
.home-grid-bottom {
  grid-template-columns: 1.2fr 0.9fr;
}
.home-sec-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.home-sec-hd h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}
.home-todo-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.home-todo-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  border: 1px solid var(--line);
  background: #fafafa;
  border-radius: 8px;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.home-todo-item:hover {
  border-color: #91caff;
  background: #f0f7ff;
}
.home-todo-item .ttl {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-strong);
}
.home-todo-item .desc {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}
.home-todo-num {
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 14px;
  background: #fff1f0;
  color: #cf1322;
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.home-feed {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 320px;
  overflow: auto;
}
.home-feed li {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
  line-height: 1.45;
}
.home-feed li:last-child { border-bottom: none; }
.home-feed .tm {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.home-feed .tx { color: var(--text); }
.home-status {
  display: inline-block;
  padding: 0 8px;
  height: 22px;
  line-height: 22px;
  border-radius: 4px;
  font-size: 12px;
}
.home-status.ok { background: #f6ffed; color: #389e0d; }
.home-status.warn { background: #fff7e6; color: #d46b08; }
.home-status.off { background: #f5f5f5; color: #8c8c8c; }
.shop-drawer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.shop-mat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.shop-mat-thumb {
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fafafa;
  min-height: 88px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}
.shop-mat-thumb .nm {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-strong);
}
.shop-mat-thumb .st {
  font-size: 12px;
  color: var(--muted);
}
.shop-mat-thumb.is-ok {
  border-style: solid;
  border-color: #b7eb8f;
  background: #f6ffed;
}
.shop-mat-thumb.is-ok .st { color: #389e0d; }
.shop-mat-thumb.is-miss {
  border-color: #ffccc7;
  background: #fff2f0;
}
.shop-mat-thumb.is-miss .st { color: #cf1322; }
@media (max-width: 900px) {
  .shop-mat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* å¥é©»å®¡æ ¸ Â· ä¸å¡æµè½¬ */
.shop-flow {
  list-style: none;
  margin: 0;
  padding: 4px 0 0;
}
.shop-flow-item {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  position: relative;
  padding-bottom: 18px;
}
.shop-flow-item.is-last { padding-bottom: 0; }
.shop-flow-axis {
  position: relative;
  display: flex;
  justify-content: center;
}
.shop-flow-axis::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: -18px;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: #e8e8e8;
}
.shop-flow-item.is-last .shop-flow-axis::before { display: none; }
.shop-flow-item.is-done .shop-flow-axis::before { background: #91caff; }
.shop-flow-axis .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d9d9d9;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #d9d9d9;
  margin-top: 4px;
  z-index: 1;
  flex-shrink: 0;
}
.shop-flow-item.is-done .dot {
  background: #1677ff;
  box-shadow: 0 0 0 1px #1677ff;
}
.shop-flow-item.is-current .dot {
  background: #fa8c16;
  box-shadow: 0 0 0 1px #fa8c16;
}
.shop-flow-item.is-reject .dot {
  background: #cf1322;
  box-shadow: 0 0 0 1px #cf1322;
}
.shop-flow-item.is-todo .dot {
  background: #fff;
  box-shadow: 0 0 0 1px #d9d9d9;
}
.shop-flow-card {
  min-width: 0;
  background: #fafafa;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  padding: 10px 12px;
}
.shop-flow-item.is-current .shop-flow-card {
  background: #fff7e6;
  border-color: #ffd591;
}
.shop-flow-item.is-reject .shop-flow-card {
  background: #fff2f0;
  border-color: #ffccc7;
}
.shop-flow-hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.shop-flow-hd .ttl {
  font-size: 13px;
  font-weight: 650;
  color: var(--text-strong);
}
.shop-flow-hd .tm {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.shop-flow-meta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}
.shop-flow-desc {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.55;
  color: #595959;
}

.chart-card {
  padding: 14px 16px;
  margin-bottom: 12px;
}
.chart-card .hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.chart-card .hd h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}
.chart-legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
}
.filter-panel .filters-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 16px;
  row-gap: 14px;
  align-items: start;
}
.filter-panel .filters-more {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.filter-panel .filters-more.hidden { display: none; }
.filter-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.filter-item .flab {
  height: 18px;
  line-height: 18px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.filter-item .select,
.filter-item .input,
.filter-item .tag-pick,
.filter-item .combo,
.filter-item .range,
.filter-item .date-range {
  width: 100%;
  min-width: 0;
  height: 32px;
  box-sizing: border-box;
}
.filter-item .tag-pick {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-combo .combo {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  height: 32px;
}
.search-combo .combo .select {
  width: 104px;
  flex: 0 0 104px;
  min-width: 104px;
  border: none;
  border-right: 1px solid var(--line);
  border-radius: 0;
  height: 100%;
}
.search-combo .combo .input {
  flex: 1;
  min-width: 0;
  width: auto;
  border: none;
  height: 100%;
  border-radius: 0;
}
.points-type-combo .combo .select:last-child {
  width: auto;
  flex: 1;
  min-width: 0;
  border-right: none;
}
.filter-item .range {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
}
.filter-item .range .input {
  flex: 1;
  width: auto;
  min-width: 0;
  height: 32px;
}
.filter-item .range .dash {
  color: var(--muted);
  flex: 0 0 auto;
}
.filter-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}
.expand-btn { height: auto; padding: 0 4px; }
.tag-pick {
  color: var(--muted);
  font-weight: 400;
  background: #fff;
}
.tag-pick.has-value { color: var(--text); }
.pager {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
}
.pager .pager-total { margin-right: 4px; }
.pager .pager-size {
  width: auto;
  min-width: 96px;
  height: 28px;
  font-size: 12px;
  padding: 0 8px;
}
.pager .pg {
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  user-select: none;
  box-sizing: border-box;
  font-size: 12px;
  line-height: 1;
}
.pager .pg:hover { border-color: var(--primary); color: var(--primary); }
.pager .pg.on {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.pager .pg.on:hover { color: #fff; }
.pager .pg.disabled,
.pager .pg[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
tr.pg-hide { display: none !important; }
.order-src { display: block; margin-top: 4px; font-size: 12px; color: #1677ff; }
.list-status-tabs {
  display: flex;
  gap: 4px;
  margin: 0 0 14px;
  border-bottom: 1px solid var(--line);
}
.list-status-tabs button {
  border: none;
  background: transparent;
  height: 40px;
  padding: 0 14px;
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
}
.list-status-tabs button:hover { color: var(--primary); }
.list-status-tabs button.on {
  color: var(--primary);
  font-weight: 600;
}
.list-status-tabs button.on::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 2px;
  background: var(--primary);
}
.order-status-tabs {
  flex-wrap: wrap;
  gap: 0 4px;
}
.order-search-combo .combo .select {
  width: 116px;
  flex: 0 0 116px;
  min-width: 116px;
}
.order-type-filter {
  position: relative;
}
.order-type-cascader {
  position: relative;
  width: 100%;
}
.order-type-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 2px 8px 2px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  box-sizing: border-box;
}
.order-type-trigger:hover,
.order-type-trigger.open,
.order-type-trigger:focus {
  border-color: var(--primary);
  outline: none;
}
.order-type-tags {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.order-type-placeholder {
  font-size: 13px;
  color: var(--muted);
  padding: 0 4px;
  line-height: 26px;
}
.order-type-tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  height: 24px;
  padding: 0 4px 0 8px;
  border-radius: 2px;
  background: #f5f5f5;
  font-size: 12px;
  color: var(--text);
  line-height: 24px;
}
.order-type-tag-chip .txt {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 160px;
}
.order-type-tag-chip .x {
  border: none;
  background: transparent;
  width: 16px;
  height: 16px;
  padding: 0;
  line-height: 16px;
  font-size: 14px;
  color: #999;
  cursor: pointer;
  border-radius: 50%;
}
.order-type-tag-chip .x:hover {
  color: #666;
  background: #e8e8e8;
}
.order-type-caret {
  flex: 0 0 auto;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #bfbfbf;
  margin-right: 2px;
}
.order-type-trigger.open .order-type-caret {
  transform: rotate(180deg);
  border-top-color: var(--primary);
}
.order-type-panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 40;
  width: 420px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.order-type-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 240px;
}
.order-type-col {
  padding: 6px 0;
  overflow: auto;
  max-height: 300px;
}
.order-type-col + .order-type-col {
  border-left: 1px solid var(--line);
}
.order-type-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  user-select: none;
}
.order-type-opt.parent {
  justify-content: flex-start;
}
.order-type-opt.parent:hover,
.order-type-opt.parent.active {
  background: #f5f5f5;
}
.order-type-opt.parent.has,
.order-type-opt.parent.has .order-type-opt-lab,
.order-type-opt.child.on,
.order-type-opt.child.on .order-type-opt-lab {
  color: var(--primary);
}
.order-type-opt.child:hover {
  background: #f5f9ff;
}
.order-type-check {
  display: inline-flex;
  align-items: center;
  margin: 0;
  cursor: pointer;
}
.order-type-opt input {
  margin: 0;
  accent-color: var(--primary);
  flex: 0 0 auto;
}
.order-type-opt-lab {
  flex: 1;
  min-width: 0;
  line-height: 1.4;
}
.order-type-arrow {
  flex: 0 0 auto;
  color: #bfbfbf;
  font-size: 16px;
  line-height: 1;
}

/* è®¢åç®¡ç */
.order-manage-table td { vertical-align: middle; }
.order-op-form .input[disabled],
.order-op-form .input[readonly] {
  background: #f5f5f5;
  color: #8c8c8c;
  cursor: not-allowed;
}
.order-ship-recv {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.order-ship-recv-text {
  flex: 1;
  font-size: 13px;
  line-height: 1.7;
  color: #595959;
}
.order-ship-copy {
  flex-shrink: 0;
  padding: 0;
  height: auto;
  white-space: nowrap;
}
.order-op-confirm {
  font-size: 14px;
  color: #262626;
}
.order-delivery-reserve {
  font-size: 13px;
  color: #595959;
}
.as-refund-info {
  font-size: 12px;
  line-height: 1.5;
}
.as-refund-info .price {
  font-size: 13px;
}
.as-no-cell .order-no {
  font-size: 13px;
}
.order-no-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.order-no {
  font-size: 13px;
  color: var(--text-strong);
  word-break: break-all;
}
.order-type-tag {
  max-width: 168px;
  white-space: normal;
  line-height: 1.35;
  text-align: left;
}
.order-product {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}
.order-products {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  max-width: 320px;
}
.order-products.is-multi .order-product {
  padding-bottom: 10px;
  border-bottom: 1px dashed #f0f0f0;
}
.order-products.is-multi .order-product:last-of-type {
  padding-bottom: 0;
  border-bottom: none;
}
.order-products-footer {
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.4;
}
.order-thumb {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background: linear-gradient(145deg, #e6f4ff, #1677ff);
}
.order-product-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.order-pname {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-strong);
}
.order-spec { font-size: 12px; }
.order-user {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.order-uname {
  font-size: 13px;
  color: var(--text-strong);
}
.order-uphone,
.order-uid {
  font-size: 12px;
}
.tag.is-muted {
  color: var(--muted);
  background: #f5f5f5;
  border-color: #e8e8e8;
}
.tag.red { background: #fff1f0; color: #cf1322; }
.tag.cyan { background: #e6fffb; color: #08979c; }

/* è®¢åè¯¦æ / ç¨æ·é©¾é©¶è±æ½å± */
.drawer-host .drawer:has(.od-wrap),
.drawer-host .drawer:has(.tu-cockpit) {
  width: min(860px, 96vw);
}
.od-wrap {
  padding: 4px 20px 20px;
}
.od-summary {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 8px 0 4px;
}
.od-summary-main {
  display: flex;
  align-items: center;
  gap: 14px;
}
.od-ico {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(145deg, #69b1ff, #1677ff);
  position: relative;
  box-shadow: 0 4px 12px rgba(22, 119, 255, 0.25);
}
.od-ico::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 12px;
  width: 20px;
  height: 24px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: inset 0 0 0 1.5px rgba(22, 119, 255, 0.15);
}
.od-ico::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 18px;
  width: 12px;
  height: 2px;
  background: #1677ff;
  box-shadow: 0 4px 0 #1677ff, 0 8px 0 #1677ff;
}
.od-type {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-strong);
  line-height: 1.45;
  word-break: break-all;
}
.od-no {
  margin-top: 4px;
  font-size: 13px;
}
.od-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 16px;
  padding: 4px 0 8px;
}
.od-metric {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.od-metric .k {
  font-size: 12px;
  color: var(--muted);
}
.od-metric .v {
  font-size: 14px;
  color: var(--text-strong);
  word-break: break-all;
  min-height: 20px;
}
.od-metric .v.price {
  font-weight: 600;
}
.od-tabs {
  display: flex;
  gap: 4px;
  margin: 8px 0 0;
  border-bottom: 1px solid var(--line);
}
.od-tab {
  border: none;
  background: transparent;
  height: 40px;
  padding: 0 16px;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  position: relative;
}
.od-tab:hover { color: var(--primary); }
.od-tab.on {
  color: var(--primary);
  font-weight: 600;
}
.od-tab.on::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 2px;
  background: var(--primary);
}
.od-body {
  padding: 18px 0 4px;
  min-height: 280px;
}
.od-section + .od-section {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed #e8e8e8;
}
.od-sec-title {
  position: relative;
  padding-left: 10px;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-strong);
}
.od-sec-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 3px;
  border-radius: 2px;
  background: var(--primary);
}
.od-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 24px;
}
.od-grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.drawer-host .od-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 720px) {
  .drawer-host .od-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.od-field {
  display: flex;
  gap: 4px;
  font-size: 13px;
  line-height: 1.6;
  min-width: 0;
}
.od-field.full { grid-column: 1 / -1; }
.od-field .k {
  flex: 0 0 auto;
  color: var(--muted);
  white-space: nowrap;
}
.od-field .k::after { content: "\FF1A"; }
.od-field .v {
  color: var(--text-strong);
  word-break: break-all;
}
.od-field .v.muted { color: #c0c4cc; }
.od-table-wrap { margin-top: 4px; }
.od-table thead th {
  background: #eef3ff;
  white-space: nowrap;
}
.od-table th:nth-child(2),
.od-table th:nth-child(3),
.od-table td:nth-child(2),
.od-table td:nth-child(3) {
  width: 100px;
  white-space: nowrap;
  text-align: center;
}
.od-goods {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  text-align: left;
}
.od-goods-thumb {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 4px;
}
.od-goods-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.od-goods-name {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-strong);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.od-goods-spec { font-size: 12px; }
.od-note {
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-strong);
  background: #fafafa;
  border: 1px solid #f0f0f0;
  border-radius: 4px;
  word-break: break-all;
}
.od-note.is-empty {
  color: #c0c4cc;
}

/* è¡¨æä½æé®ï¼ç»ä¸å¨è¡¨å¤´å·¦ä¸æ¹ï¼ä¸è¡¨å¤´ä¿æé´è·ãä¸ä¾µå¥è¡¨å¤´ */
.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
  min-height: 32px;
}
.list-toolbar + .table,
.list-toolbar + .table-scroll {
  margin-top: 0;
}
.panel-hd + .list-toolbar {
  margin-top: -2px;
}
.btn-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.dd-ops > .btn { min-width: auto; }
.product-form-panel .panel-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.product-form-tabs {
  flex-wrap: wrap;
  row-gap: 0;
}
.product-form-body {
  padding: 8px 4px 12px;
  min-height: 320px;
}
.product-form-grid {
  max-width: 760px;
}
.type-radios {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.radio-card {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  color: var(--text);
}
.radio-card input {
  margin: 0;
}
.radio-card.on {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

/* ååè¡¨å Â· åºç¡ä¿¡æ¯ */
.product-form-grid.pf-base { max-width: 860px; }
/* ç±»åå¡çä¸ºå¤è¡åï¼é«åº¦éåå®¹ï¼å¿è¢« form-grid åè¡ radio è§ååæ 32px */
.form-grid > .type-cards,
.product-form-grid > .type-cards {
  height: auto;
  min-height: 64px;
  max-height: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
}
.type-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.type-card {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 148px;
  min-height: 64px;
  padding: 10px 28px 10px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  box-sizing: border-box;
}
.type-card input { position: absolute; opacity: 0; pointer-events: none; }
.type-card-main { display: flex; align-items: center; }
.type-card-name { font-size: 14px; font-weight: 600; color: var(--text-strong); }
.type-card-check {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 22px 22px;
  border-color: transparent transparent #d9d9d9 transparent;
}
.type-card-check::after {
  content: "";
  position: absolute;
  right: 3px;
  bottom: -18px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
  opacity: 0.9;
}
.type-card.on {
  border-color: var(--primary);
  background: #f0f7ff;
}
.type-card.on .type-card-name { color: var(--primary); }
.type-card.on .type-card-check {
  border-color: transparent transparent var(--primary) transparent;
}
.pf-count-wrap {
  position: relative;
  max-width: 480px;
}
.pf-count-wrap .input {
  width: 100%;
  padding-right: 48px;
}
.pf-unit-input { max-width: 160px !important; }
.pf-count-wrap:has(.pf-unit-input) { max-width: 160px; }
.pf-count {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: var(--muted);
  pointer-events: none;
}
.pf-media-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
}
.pf-upload-box {
  width: 80px;
  height: 80px;
  border: 1px dashed #d9d9d9;
  border-radius: 4px;
  background: #fafafa;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.pf-upload-box:hover { border-color: var(--primary); }
.pf-upload-ico {
  width: 28px;
  height: 24px;
  position: relative;
  opacity: 0.55;
}
.pf-upload-ico.img {
  border: 2px solid #c0c4cc;
  border-radius: 3px;
}
.pf-upload-ico.img::before {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid #c0c4cc;
  top: 3px;
  left: 3px;
}
.pf-upload-ico.video {
  width: 26px;
  height: 18px;
  border: 2px solid #c0c4cc;
  border-radius: 3px;
}
.pf-upload-ico.video::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 3px;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent #c0c4cc;
}
.pf-media-tile {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
  cursor: grab;
  user-select: none;
}
.pf-media-tile.video {
  display: grid;
  place-items: center;
  background: #f5f5f5;
  cursor: default;
}
.pf-media-tile.dragging { opacity: 0.45; }
.pf-media-main {
  position: absolute;
  left: 0;
  top: 0;
  padding: 0 6px;
  height: 18px;
  line-height: 18px;
  font-size: 11px;
  color: #fff;
  background: rgba(0,0,0,.45);
  border-radius: 4px 0 4px 0;
}
.pf-media-x {
  position: absolute;
  right: 2px;
  top: 2px;
  width: 18px;
  height: 18px;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,.45);
  color: #fff;
  cursor: pointer;
  line-height: 1;
  font-size: 12px;
  padding: 0;
}
.pf-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.pf-cat-block {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 560px;
}
.pf-cat-field {
  position: relative;
  flex: 1;
  min-width: 0;
}
.pf-cat-add {
  flex: none;
  margin-top: 4px;
  white-space: nowrap;
}
.pf-cat-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 4px 28px 4px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  position: relative;
  box-sizing: border-box;
}
.pf-cat-block.open .pf-cat-trigger {
  border-color: var(--primary);
}
.pf-cat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
  min-width: 0;
  align-items: center;
}
.pf-cat-placeholder {
  font-size: 13px;
  color: var(--muted);
  line-height: 24px;
  padding-left: 4px;
}
.pf-cat-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  height: 24px;
  padding: 0 4px 0 8px;
  border-radius: 2px;
  background: #f5f5f5;
  border: 1px solid #f0f0f0;
  font-size: 12px;
  color: var(--text);
  line-height: 1;
}
.pf-cat-tag-x {
  width: 16px;
  height: 16px;
  border: none;
  background: transparent;
  color: #999;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0;
  border-radius: 2px;
}
.pf-cat-tag-x:hover {
  color: var(--text);
  background: rgba(0,0,0,.06);
}
.pf-cat-caret {
  position: absolute;
  right: 10px;
  top: 50%;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #bfbfbf;
  transform: translateY(-40%);
}
.pf-cat-block.open .pf-cat-caret {
  border-top: none;
  border-bottom: 5px solid #bfbfbf;
  transform: translateY(-60%);
}
.pf-cat-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 20;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
  overflow: hidden;
}
.pf-cat-cascade {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 200px;
  max-height: 260px;
}
.pf-cat-col {
  overflow: auto;
  min-height: 0;
}
.pf-cat-col + .pf-cat-col {
  border-left: 1px solid var(--line);
}
.pf-cat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 10px 0 12px;
  cursor: pointer;
  user-select: none;
  margin: 0;
}
.pf-cat-item:hover { background: #fafafa; }
.pf-cat-item.on { background: #f5f5f5; }
.pf-cat-item.marked .pf-cat-name { color: var(--primary); font-weight: 600; }
.pf-cat-cb {
  width: 14px;
  height: 14px;
  margin: 0;
  flex: none;
  accent-color: var(--primary);
  cursor: pointer;
}
.pf-cat-name {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pf-cat-arrow {
  flex: none;
  color: #bfbfbf;
  font-size: 16px;
  line-height: 1;
  padding-left: 4px;
}
.pf-cat-empty {
  padding: 12px;
  font-size: 12px;
  color: var(--muted);
}
.pf-tags .tag-pick { min-width: 120px; }
.pf-tag-chips { margin-top: 8px; }
.pf-status-radios {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 32px;
}
.pf-status-radios label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 13px;
}
.pf-status-radios input { accent-color: var(--primary); margin: 0; }
.pf-next-row { padding-top: 8px; }

/* è§æ ¼åºå­ */
.pf-sku-pane { max-width: 1100px; }
.pf-sku-top { max-width: 860px; margin-bottom: 8px; }
.pf-sku-mode {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.pf-radio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 13px;
}
.pf-radio input { accent-color: var(--primary); margin: 0; }
.pf-check-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  min-height: 32px;
}
.pf-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 13px;
}
.pf-check input { accent-color: var(--primary); margin: 0; }
.pf-logistics-pane { max-width: 860px; }
.pf-logistics-grid { max-width: 720px; }
.pf-freight-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pf-freight-extra { max-width: 280px; }
.pf-freight-fee { max-width: 200px; }
.pf-freight-tpl-row {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 480px;
}
.pf-freight-tpl {
  width: 240px;
  max-width: 100%;
}
.pf-freight-add-tpl {
  padding: 0;
  height: auto;
  color: var(--primary);
  font-size: 13px;
  white-space: nowrap;
}
.pf-freight-add-tpl:hover {
  color: #40a9ff;
}

/* ä¼åä»·/ä½£é */
.pf-member-pane { max-width: 1100px; }
.pf-member-grid {
  max-width: 860px;
  margin-bottom: 4px;
  grid-template-columns: 112px minmax(0, 1fr);
  column-gap: 16px;
  row-gap: 16px;
  align-items: start;
}
.pf-member-grid > .lab {
  box-sizing: border-box;
  width: 112px;
  height: 22px;
  margin: 0;
  padding: 0;
  line-height: 22px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  white-space: nowrap;
  text-align: right;
}
.pf-member-grid > .pf-check-row {
  min-height: 22px;
  margin: 0;
  padding: 0;
  align-items: center;
}
.pf-member-exclusive {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  margin: 0;
  padding: 0;
  min-height: 22px;
}
.pf-member-exclusive > .status-switch {
  flex: 0 0 auto;
  width: 44px;
  height: 20px;
  margin-top: 6px;
  border-radius: 10px;
  padding: 0 4px;
}
.pf-member-exclusive > .status-switch .knob {
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
}
.pf-member-exclusive > .status-switch.on .knob {
  left: 26px;
}
.pf-member-exclusive > .status-switch .txt {
  margin-left: 16px;
  font-size: 11px;
  line-height: 20px;
}
.pf-member-exclusive > .status-switch.on .txt {
  margin-left: 0;
  margin-right: 16px;
}
.pf-member-exclusive > .status-switch:not(.on) .txt {
  margin-left: 16px;
}
.pf-member-mode {
  margin-top: 0;
  width: 100%;
}
.pf-member-sets {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 32px;
}
/* æ¯é¡¹ä¸å·¦ä¾§æ ç­¾åä¸º 32px è¡é«ï¼é¦é¡¹ä¸æ ç­¾å±ä¸­å¯¹é½ */
.pf-member-set-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  min-height: 32px;
}
.pf-member-set-extra {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pf-member-mode-sel {
  width: auto;
  min-width: 72px;
  height: 32px;
  padding: 0 6px;
  flex: 0 0 auto;
}
.pf-member-batch {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin: 8px 0 4px;
  padding: 4px 0 8px;
}
/* ä¸ä¸æ¹è¡¨åæ ç­¾åï¼112px å³å¯¹é½ + 16px é´è·ï¼å¯¹é½ */
.pf-member-batch-lab {
  box-sizing: border-box;
  width: 112px;
  margin-right: -4px;
  text-align: right;
  font-size: 12px;
  color: var(--ad-muted);
  white-space: nowrap;
  flex: 0 0 auto;
}
.pf-member-batch-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
  flex: 0 0 auto;
  white-space: nowrap;
}
.pf-member-batch-item > span {
  flex: 0 0 auto;
  white-space: nowrap;
}
.pf-member-batch-field {
  width: 120px;
}
.pf-member-batch-with-sel {
  display: inline-flex;
  align-items: stretch;
  gap: 0;
  width: auto !important;
  max-width: none !important;
  flex: 0 0 auto;
  position: static;
}
.pf-member-batch-with-sel > .input {
  width: 72px;
  min-width: 72px;
  flex: 0 0 72px;
  padding-right: 8px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.pf-member-batch-with-sel > .pf-member-mode-sel {
  margin-left: -1px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  height: auto;
  min-height: 32px;
  min-width: 88px;
  width: auto;
  flex: 0 0 auto;
}
.pf-member-attr { margin-top: 12px; }
.pf-member-table { min-width: 720px; }
.pf-member-table thead th {
  background: #eef3ff;
}
.pf-member-cell {
  width: 110px;
  max-width: 110px;
}
.pf-member-cell .input {
  width: 100%;
  min-width: 0;
  padding-right: 28px;
}
.pf-sku-mini-upload.is-static {
  pointer-events: none;
  cursor: default;
}
.pf-member-empty {
  margin: 16px 0;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  background: #fafafa;
  border: 1px dashed var(--line);
  border-radius: 4px;
}

/* è¥éè®¾ç½® */
.pf-mkt-pane { max-width: 860px; }
.pf-mkt-grid {
  max-width: 720px;
  grid-template-columns: 112px minmax(0, 1fr);
  column-gap: 16px;
  row-gap: 16px;
  align-items: start;
}
/* æ ç­¾ä¸å³ä¾§é¦è¡æ§ä»¶ï¼32pxï¼å±ä¸­ï¼æç¤ºæå­ / éå è¾å¥å¨ä¸æ¹ */
.pf-mkt-grid > .lab {
  text-align: right;
  white-space: nowrap;
}
.pf-mkt-grid .pf-mkt-switch { margin: 4px 0; }
.pf-mkt-divider {
  grid-column: 1 / -1;
  height: 0;
  margin: 4px 0;
  border: none;
  border-top: 1px dashed #e5e5e5;
}
.pf-mkt-input { width: 200px; max-width: 100%; }
.pf-mkt-tag-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.pf-mkt-tag {
  width: 240px;
  max-width: 100%;
}
.pf-mkt-add-tag {
  padding: 0;
  height: auto;
  color: var(--primary);
  font-size: 13px;
}
.pf-mkt-add-tag:hover { color: #40a9ff; }
.pf-mkt-switch {
  width: 58px;
  height: 24px;
}
.pf-mkt-switch .txt {
  font-size: 11px;
}
.pf-mkt-recommends {
  gap: 16px 20px;
}
.pf-mkt-priority-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pf-mkt-priority-chip {
  min-width: 56px;
  height: 32px;
  padding: 0 14px;
  border: none;
  border-radius: 2px;
  color: #fff;
  font-size: 13px;
  cursor: grab;
  user-select: none;
}
.pf-mkt-priority-chip.dragging {
  opacity: 0.45;
  cursor: grabbing;
}
.pf-mkt-priority-tip {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.pf-mkt-quality-upload {
  width: 72px;
  height: 72px;
  border: 1px dashed #d9d9d9;
  border-radius: 2px;
  background: #fafafa;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.pf-mkt-quality-upload:hover {
  border-color: var(--primary);
}
.pf-mkt-quality-img {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 2px;
}
.pf-mkt-quality-x {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 12px;
  line-height: 18px;
  padding: 0;
  cursor: pointer;
}
.pf-mkt-coupon-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pf-mkt-coupon-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
}

/* å¶ä»è®¾ç½® */
.pf-other-pane { max-width: 860px; }
.pf-other-grid {
  max-width: 720px;
  grid-template-columns: 100px minmax(0, 1fr);
  column-gap: 16px;
  row-gap: 18px;
  align-items: start;
}
.pf-other-grid > .lab {
  text-align: right;
  white-space: nowrap;
  line-height: 32px;
}
.pf-other-field { min-width: 0; }
.pf-other-tip {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.pf-other-field .pf-count-wrap {
  max-width: 520px;
}
.pf-other-textarea-wrap {
  position: relative;
  max-width: 520px;
}
.pf-other-textarea-wrap .textarea {
  width: 100%;
  min-height: 88px;
  resize: vertical;
  padding-bottom: 24px;
}
.pf-other-ta-count {
  position: absolute;
  right: 10px;
  bottom: 8px;
  font-size: 12px;
  color: var(--muted);
  pointer-events: none;
}
.pf-other-rec-upload {
  width: 72px;
  height: 72px;
  border: 1px dashed #d9d9d9;
  border-radius: 2px;
  background: #fafafa;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.pf-other-rec-upload:hover { border-color: var(--primary); }
.pf-other-rec-img {
  position: relative;
  width: 160px;
  height: 64px;
  border-radius: 2px;
}
.pf-other-guarantees {
  gap: 12px 18px;
}
.pf-other-param-sel {
  width: 240px;
  max-width: 100%;
  margin-bottom: 12px;
}
.pf-other-param-table {
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.pf-other-param-table .table {
  margin: 0;
  min-width: 480px;
}
.pf-other-param-table thead th {
  background: #eef3ff;
}
.pf-other-param-table .input {
  width: 100%;
  min-width: 100px;
}
.pf-other-param-name {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pf-other-param-name .spec-drag {
  flex: 0 0 auto;
  cursor: grab;
}
.pf-other-param-row.dragging {
  opacity: 0.45;
}
.pf-other-param-add {
  margin-top: 12px;
}
.pf-other-empty {
  text-align: center;
  color: var(--muted);
  padding: 28px 12px !important;
}
.pf-sku-tpl-btn { padding: 0; height: auto; }
.pf-sku-caret { font-size: 10px; margin-left: 2px; }
.pf-sku-grid { max-width: 520px; }
.pf-affix-field {
  position: relative;
  max-width: 280px;
}
.pf-affix-field .input {
  width: 100%;
  padding-right: 40px;
}
.pf-affix {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: var(--muted);
  pointer-events: none;
}
.pf-sku-text { max-width: 280px; width: 100%; }
.pf-sku-ft {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  padding-top: 8px;
}

/* ååè¯¦æ */
.pf-detail-pane { max-width: 1180px; }
.pf-detail-pane.is-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 1200;
  max-width: none;
  margin: 0;
  padding: 16px 20px 24px;
  background: #fff;
  overflow: auto;
}
.pf-detail-pane.is-fullscreen .pf-detail-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
  max-width: 1400px;
  margin: 0 auto;
}
.pf-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
}
.pf-detail-col-hd {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-strong);
  margin-bottom: 10px;
}
.pf-detail-editor-col {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
  padding: 12px 12px 0;
}
.pf-detail-toolbar {
  border-top: 1px solid #e8e8e8;
  border-bottom: 1px solid #e8e8e8;
  margin: 0 -12px 0;
  padding: 4px 8px;
  background: #fff;
}
.pf-detail-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  min-height: 32px;
}
.pf-detail-tool {
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  border-radius: 2px;
  background: transparent;
  font-size: 13px;
  cursor: pointer;
  color: #595959;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.pf-detail-tool[data-cmd="toggleSource"] {
  width: auto;
  min-width: 40px;
  padding: 0 6px;
}
.pf-detail-tool:hover {
  background: #f5f5f5;
  color: #262626;
}
.pf-detail-tool-txt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-family: Georgia, "Times New Roman", serif;
}
.pf-detail-tool-txt b,
.pf-detail-tool-txt i,
.pf-detail-tool-txt u,
.pf-detail-tool-txt s {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
}
.pf-detail-tool-h {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 700;
}
.pf-detail-tool-f {
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: 16px;
  font-weight: 400;
}
.pf-detail-editor {
  min-height: 420px;
  max-height: 560px;
  overflow: auto;
  padding: 12px 4px 16px;
  outline: none;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}
.pf-detail-pane.is-source .pf-detail-editor { display: none; }
.pf-detail-source {
  display: block;
  width: 100%;
  min-height: 420px;
  max-height: 560px;
  border: none;
  outline: none;
  resize: vertical;
  padding: 12px 4px 16px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  line-height: 1.6;
  color: #333;
  background: #fff;
}
.pf-detail-editor:empty:before {
  content: attr(data-placeholder);
  color: var(--muted);
}
.pf-detail-editor img,
.pf-detail-editor video {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 8px 0;
}
.pf-detail-media {
  position: relative;
  margin: 8px 0;
  outline: 1px solid transparent;
}
.pf-detail-media:hover {
  outline-color: #d9d9d9;
}
.pf-detail-media video {
  margin: 0;
  width: 100%;
  max-width: 100%;
  background: #000;
}
.pf-detail-media-del {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 16px;
  line-height: 24px;
  padding: 0;
  cursor: pointer;
  z-index: 2;
}
.pf-detail-media-del:hover {
  background: rgba(0, 0, 0, 0.75);
}
.pf-detail-editor h2 {
  font-size: 18px;
  margin: 12px 0 8px;
}
.pf-detail-editor blockquote {
  margin: 8px 0;
  padding: 6px 12px;
  border-left: 3px solid #d9d9d9;
  color: #666;
  background: #fafafa;
}
.pf-detail-editor pre {
  background: #f6f8fa;
  padding: 10px 12px;
  overflow: auto;
  font-size: 12px;
  border-radius: 2px;
}
.pf-detail-preview-col {
  position: sticky;
  top: 12px;
}
.pf-phone {
  width: 272px;
  margin: 0 auto;
  border: 1.5px solid #cfcfcf;
  border-radius: 36px;
  background: #fff;
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
  padding: 12px 10px 10px;
}
.pf-phone-speaker {
  width: 72px;
  height: 8px;
  margin: 2px auto 10px;
  border-radius: 999px;
  background: #e8e8e8;
}
.pf-phone-body {
  height: 480px;
  overflow: auto;
  padding: 0;
  font-size: 13px;
  line-height: 1.7;
  color: #333;
  background: #fff;
  border-radius: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.pf-phone-body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}
.pf-phone-bar {
  width: 96px;
  height: 4px;
  margin: 8px auto 2px;
  border-radius: 999px;
  background: #e0e0e0;
}
.pf-phone-body img,
.pf-phone-body video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
  border: 0;
  vertical-align: top;
}
.pf-phone-body h2 {
  font-size: 16px;
  margin: 10px 12px 6px;
}
.pf-phone-body p {
  margin: 0;
  padding: 0 12px 8px;
}
.pf-phone-body p:has(> img:only-child),
.pf-phone-body p:has(> video:only-child),
.pf-phone-body div:has(> img:only-child),
.pf-phone-body div:has(> video:only-child) {
  margin: 0;
  padding: 0;
  line-height: 0;
  font-size: 0;
}
.pf-phone-body p:has(> img:only-child) + p:has(> img:only-child),
.pf-phone-body p:has(> img:only-child) + div:has(> img:only-child),
.pf-phone-body div:has(> img:only-child) + p:has(> img:only-child),
.pf-phone-body div:has(> img:only-child) + div:has(> img:only-child) {
  margin-top: 0;
}
.pf-phone-body blockquote {
  margin: 8px 12px;
  padding: 6px 10px;
  border-left: 3px solid #e5e5e5;
  color: #666;
}
.pf-phone-body pre {
  background: #f6f8fa;
  margin: 8px 12px;
  padding: 8px 10px;
  overflow: auto;
  font-size: 11px;
}
.pf-detail-empty {
  color: #bbb;
  text-align: center;
  margin-top: 80px;
  padding: 0 12px;
}

@media (max-width: 1100px) {
  .pf-detail-layout {
    grid-template-columns: 1fr;
  }
  .pf-detail-preview-col { position: static; }
}
.pf-sku-multi .lab-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  align-items: start;
}
.pf-sku-multi .lab-row > .lab {
  text-align: right;
  padding-top: 8px;
  color: var(--text);
  font-size: 13px;
}
.pf-sku-multi-body { min-width: 0; }
.pf-sku-spec {
  position: relative;
  display: flex;
  gap: 8px;
  padding: 14px 16px 14px 8px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}
.pf-sku-spec:hover { background: #f7fbff; }
.pf-sku-drag {
  width: 12px;
  margin-top: 8px;
  background-image: radial-gradient(#c0c4cc 1.2px, transparent 1.3px);
  background-size: 4px 4px;
  background-repeat: repeat-y;
  background-position: center;
  opacity: 0.8;
  cursor: grab;
  flex: none;
}
.pf-sku-spec-main { flex: 1; min-width: 0; }
.pf-sku-spec-hd {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}
.pf-sku-name-wrap { max-width: 220px; width: 220px; }
.pf-sku-img-opt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  cursor: pointer;
  color: var(--text);
}
.pf-sku-img-opt input { margin: 0; accent-color: var(--primary); }
.pf-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid #91d5ff;
  color: #1890ff;
  font-size: 10px;
  font-style: normal;
  line-height: 1;
}
.pf-sku-spec-x {
  margin-left: auto;
  border: none;
  background: transparent;
  color: var(--primary);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}
.pf-sku-vals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.pf-sku-val {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 28px;
  padding: 0 4px 0 6px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fff;
  font-size: 13px;
}
.pf-sku-val-input {
  width: 64px;
  min-width: 40px;
  max-width: 120px;
  height: 24px;
  border: none;
  outline: none;
  background: transparent;
  font-size: 13px;
  color: var(--text);
  padding: 0 2px;
}
.pf-sku-val-input:focus {
  background: #f0f7ff;
  border-radius: 2px;
}
.pf-sku-val-x {
  border: none;
  background: transparent;
  color: #999;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0 2px;
}
.pf-sku-val-x:hover { color: #f56c6c; }
.pf-sku-val-enter {
  width: 120px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 13px;
  box-sizing: border-box;
}
.pf-sku-val-enter:focus {
  outline: none;
  border-color: var(--primary);
}
.pf-sku-add-val-btn { align-self: center; }
.pf-sku-img-opt {
  display: none;
}
.pf-sku-multi-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}
.pf-sku-multi,
.pf-sku-pane { min-width: 0; max-width: 100%; }
.pf-sku-attr { margin-top: 20px; min-width: 0; max-width: 100%; }
.pf-sku-attr .table-wrap {
  overflow: auto;
  max-width: 100%;
  max-height: 560px;
  border: 1px solid var(--line);
  border-radius: 4px;
}
/* è§æ ¼å¤æ¶è¡¨æ ¼æ¨ªçºµé½ä¼æ»å¨ï¼è¡¨å¤´å¸é¡¶ãæä½åå¸å³ï¼å§ç»å¯è§ */
.pf-sku-attr .pf-sku-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fafafa;
}
.pf-sku-attr .pf-sku-table:not(.pf-member-table) th:last-child,
.pf-sku-attr .pf-sku-table:not(.pf-member-table) td:last-child {
  position: sticky;
  right: 0;
  z-index: 1;
  background: #fff;
  box-shadow: -6px 0 8px -6px rgba(0, 0, 0, 0.18);
}
.pf-sku-attr .pf-sku-table:not(.pf-member-table) thead th:last-child {
  z-index: 3;
  background: #fafafa;
}
.pf-sku-attr .pf-sku-table .pf-sku-batch td { background: #fcfcfc; }
.pf-sku-attr-hd {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}
.pf-sku-table { min-width: 960px; margin: 0; }
.pf-sku-table th,
.pf-sku-table td {
  white-space: nowrap;
  vertical-align: middle;
}
.pf-sku-table .input,
.pf-sku-table .select {
  width: 88px;
  min-width: 72px;
}
.pf-sku-batch .select { width: 110px; }
.pf-sku-merge {
  background: #fafafa;
  font-weight: 500;
}
.pf-sku-mini-upload,
.pf-sku-mini-img {
  width: 36px;
  height: 36px;
  border-radius: 2px;
}
.pf-sku-mini-upload {
  border: 1px dashed #d9d9d9;
  background: #fafafa;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.pf-sku-mini-upload .pf-upload-ico {
  transform: scale(0.7);
  opacity: 0.55;
}
.pf-sku-mini-upload.has-img {
  border: 1px solid #1677ff;
}
.pf-sku-mini-img.is-btn {
  border: 0;
  padding: 0;
  cursor: pointer;
  display: block;
}
.pf-sku-img-wrap {
  position: relative;
  display: inline-block;
}
.pf-sku-img-wrap .pf-sku-img-x {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 12px;
  line-height: 16px;
  cursor: pointer;
  display: none;
}
.pf-sku-img-wrap:hover .pf-sku-img-x { display: block; }
.pf-sku-show {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
.pf-sku-tpl-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pf-sku-tpl-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  text-align: left;
}
.pf-sku-tpl-item:hover {
  border-color: var(--primary);
  background: #f0f7ff;
}
.pf-sku-tpl-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-strong);
}


.product-form-placeholder {
  padding: 28px 8px;
  color: var(--muted);
}
.product-form-placeholder h4 {
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--text-strong);
}
.product-form-placeholder p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

/* ååè¯¦æåªè¯» */
.product-form-panel.pf-readonly .product-form-body .pf-upload-box,
.product-form-panel.pf-readonly .product-form-body .pf-media-x,
.product-form-panel.pf-readonly .product-form-body .pf-cat-add,
.product-form-panel.pf-readonly .product-form-body .pf-sku-val-x,
.product-form-panel.pf-readonly .product-form-body .pf-sku-spec-x,
.product-form-panel.pf-readonly .product-form-body .pf-sku-add-val-btn,
.product-form-panel.pf-readonly .product-form-body .pf-sku-val-enter,
.product-form-panel.pf-readonly .product-form-body [data-action="pf-sku-add-spec"],
.product-form-panel.pf-readonly .product-form-body [data-action="pf-pick-sku-template"],
.product-form-panel.pf-readonly .product-form-body [data-action="pf-sku-save-template"],
.product-form-panel.pf-readonly .product-form-body [data-action="pf-sku-batch-apply"],
.product-form-panel.pf-readonly .product-form-body [data-action="pf-sku-batch-clear"],
.product-form-panel.pf-readonly .product-form-body [data-action="pf-sku-batch-image"],
.product-form-panel.pf-readonly .product-form-body [data-action="pf-sku-row-image"],
.product-form-panel.pf-readonly .product-form-body [data-action="pf-add-image"],
.product-form-panel.pf-readonly .product-form-body [data-action="pf-add-video"],
.product-form-panel.pf-readonly .product-form-body [data-action="pf-remove-video"],
.product-form-panel.pf-readonly .product-form-body [data-action="pick-product-form-tags"],
.product-form-panel.pf-readonly .product-form-body [data-action="pf-cat-remove"],
.product-form-panel.pf-readonly .product-form-body [data-action="pf-mkt-pick-coupon"],
.product-form-panel.pf-readonly .product-form-body [data-action="pf-mkt-add-tag"],
.product-form-panel.pf-readonly .product-form-body [data-action="pf-mkt-quality-add"],
.product-form-panel.pf-readonly .product-form-body [data-action="pf-mkt-quality-remove"],
.product-form-panel.pf-readonly .product-form-body [data-action="pf-add-freight-template"],
.product-form-panel.pf-readonly .product-form-body [data-action="pf-other-rec-add"],
.product-form-panel.pf-readonly .product-form-body [data-action="pf-other-rec-remove"],
.product-form-panel.pf-readonly .product-form-body [data-action="pf-other-param-add"],
.product-form-panel.pf-readonly .product-form-body [data-action="pf-other-param-remove"],
.product-form-panel.pf-readonly .product-form-body [data-action="pf-member-batch-apply"],
.product-form-panel.pf-readonly .product-form-body .pf-detail-toolbar,
.product-form-panel.pf-readonly .product-form-body .pf-detail-media-del,
.product-form-panel.pf-readonly .product-form-body .spec-drag {
  display: none !important;
}
.product-form-panel.pf-readonly .product-form-body input:disabled:not([type="radio"]):not([type="checkbox"]),
.product-form-panel.pf-readonly .product-form-body textarea:disabled,
.product-form-panel.pf-readonly .product-form-body select:disabled {
  color: var(--text);
  background: #fafafa;
  cursor: default;
  opacity: 1;
}
/* ç±»åå¡çéçåéæ¡æ¬èº«æ¯éèçï¼åªè¯»æä¸è½è¢«ä¸é¢ç opacity: 1 å¸¦åºæ¥ */
.product-form-panel.pf-readonly .product-form-body .type-card input {
  opacity: 0;
}
/* åªè¯»æçéä¸­é¡¹ä»ç¨ä¸»è²ï¼å¼è¦çå¾æ¸ */
.product-form-panel.pf-readonly .product-form-body input[type="radio"]:checked {
  border-color: var(--primary);
  background-image: radial-gradient(circle, var(--primary) 0 3px, transparent 3.5px);
}
.product-form-panel.pf-readonly .product-form-body input[type="checkbox"]:checked {
  border-color: var(--primary);
  background-color: var(--primary);
}
.product-form-panel.pf-readonly .product-form-body .pf-sku-show,
.product-form-panel.pf-readonly .product-form-body .pf-mkt-priority-chip,
.product-form-panel.pf-readonly .product-form-body .status-switch,
.product-form-panel.pf-readonly .product-form-body .type-card,
.product-form-panel.pf-readonly .product-form-body .pf-check,
.product-form-panel.pf-readonly .product-form-body .pf-radio,
.product-form-panel.pf-readonly .product-form-body .guarantee-radio {
  pointer-events: none;
  cursor: default;
}
.product-form-panel.pf-readonly .product-form-body .pf-detail-editor {
  background: #fafafa;
  cursor: default;
}
.product-form-panel.pf-readonly .product-form-body .pf-cat-trigger {
  pointer-events: none;
  background: #fafafa;
}

/* ââ åååç±» ââ */
.cat-table thead th {
  background: #eef3ff;
  color: var(--text-strong);
  font-weight: 600;
}
.cat-name-cell {
  text-align: left !important;
  white-space: nowrap;
}
.cat-name-cell .cat-name {
  vertical-align: middle;
}
.cat-name-cell.level-2 {
  padding-left: 8px;
}
.cat-name-cell.fc-level-2 {
  padding-left: 32px !important;
}
.cat-name-cell.fc-level-3 {
  padding-left: 60px !important;
}
.fc-level-tag {
  display: inline-block;
  padding: 0 8px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 20px;
}
.fc-level-tag.lv1 {
  background: #e8f1ff;
  color: #1d6ff2;
}
.fc-level-tag.lv2 {
  background: #e9f8f0;
  color: #1f9d57;
}
.fc-level-tag.lv3 {
  background: #fff4e5;
  color: #d97706;
}
.fc-notice {
  margin-bottom: 12px;
  padding: 10px 14px;
  border: 1px solid #cfe2ff;
  border-radius: 6px;
  background: #f0f6ff;
  color: #3a5a8c;
  font-size: 13px;
  line-height: 1.7;
}
.pf-fc-cascade {
  grid-template-columns: 1fr 1fr 1fr;
}
#productManageBody tr.fc-hidden {
  display: none;
}
.product-manage-table .fc-cell {
  white-space: nowrap;
  color: #4b5563;
}
.pf-fc-value {
  color: #1f2937;
}
.tree-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-right: 6px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #595959;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
  transform: rotate(0deg);
  transition: transform .15s, color .15s;
  padding: 0;
}
.tree-caret:hover {
  color: var(--primary);
}
.tree-caret.open {
  transform: rotate(90deg);
  color: var(--primary);
}
.tree-caret.placeholder {
  visibility: hidden;
  cursor: default;
}
.cat-icon {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  display: inline-block;
  vertical-align: middle;
  background: #f0f0f0;
}
.cat-icon.lg {
  width: 48px;
  height: 48px;
}
.status-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 58px;
  height: 24px;
  border: none;
  border-radius: 12px;
  background: #bfbfbf;
  cursor: pointer;
  padding: 0 6px;
  vertical-align: middle;
  transition: background .15s;
}
.status-switch .knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  transition: left .15s;
}
.status-switch .txt {
  margin-left: 20px;
  font-size: 12px;
  color: #fff;
  line-height: 24px;
}
.status-switch.on {
  background: var(--primary);
}
.status-switch.on .knob { left: 36px; }
.status-switch.on .txt {
  margin-left: 0;
  margin-right: 20px;
}
.status-switch:not(.on) .txt {
  margin-left: 22px;
}

/* ââ ååè§æ ¼ ââ */
.spec-table thead th {
  background: #eef3ff;
  color: var(--text-strong);
  font-weight: 600;
}
.spec-attr-cell {
  text-align: left !important;
  line-height: 1.55;
  color: var(--text);
}
.spec-attr-line + .spec-attr-line { margin-top: 2px; }
.ops-sep {
  margin: 0 6px;
  color: var(--line);
}

/* ååè§æ ¼ Â· æ·»å /ç¼è¾å¼¹çª */
.spec-editor { padding: 4px 0 8px; }
.spec-field { margin-bottom: 16px; }
.spec-field .lab {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--text);
}
.spec-field .input { width: 100%; }
.spec-groups { display: flex; flex-direction: column; gap: 12px; }
.spec-group {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 14px 12px;
  background: #f5f7fa;
  border-radius: 4px;
}
.spec-drag {
  flex: 0 0 14px;
  width: 14px;
  height: 22px;
  margin-top: 6px;
  cursor: grab;
  background:
    radial-gradient(circle, #c0c4cc 1.2px, transparent 1.3px) 0 0 / 6px 6px,
    radial-gradient(circle, #c0c4cc 1.2px, transparent 1.3px) 6px 0 / 6px 6px;
  background-repeat: repeat-y;
  opacity: 0.9;
}
.spec-group-main { flex: 1; min-width: 0; }
.spec-name-wrap {
  position: relative;
  max-width: 360px;
}
.spec-name-wrap .input {
  width: 100%;
  padding-right: 48px;
  background: #fff;
}
.spec-name-count {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: var(--muted);
  pointer-events: none;
}
.spec-values-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-left: 14px;
  border-left: 2px solid #dcdfe6;
  margin-left: 6px;
}
.spec-values {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.spec-value-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 30px;
  padding: 0 8px 0 6px;
  background: #fff;
  border: 1px solid #dcdfe6;
  border-radius: 3px;
  font-size: 13px;
  color: var(--text);
  cursor: grab;
  user-select: none;
}
.spec-value-chip.dragging {
  opacity: 0.45;
  cursor: grabbing;
}
.spec-value-chip:active { cursor: grabbing; }
.spec-value-chip .spec-drag {
  height: 16px;
  margin-top: 0;
  flex-basis: 10px;
  width: 10px;
  background-size: 5px 5px, 5px 5px;
}
.spec-value-chip .chip-x {
  border: none;
  background: transparent;
  color: #c0c4cc;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0 0 0 2px;
}
.spec-value-chip .chip-x:hover { color: #f56c6c; }
.spec-value-enter {
  width: 120px;
  height: 30px;
  border: 1px dashed #dcdfe6;
  border-radius: 3px;
  background: #fff;
  padding: 0 8px;
  font-size: 13px;
  color: var(--text);
  outline: none;
  box-sizing: border-box;
}
.spec-value-enter:focus {
  border-color: var(--primary);
  border-style: solid;
}
.spec-value-enter::placeholder {
  color: #c0c4cc;
  font-size: 12px;
}
.add-value-btn {
  height: auto;
  padding: 0 4px;
  white-space: nowrap;
}
.spec-group-del {
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--muted);
}
.spec-add-group {
  width: 100%;
  margin-top: 12px;
  height: 36px;
  background: #fff;
}

/* ââ åååæ° ââ */
.param-table thead th {
  background: #eef3ff;
  color: var(--text-strong);
  font-weight: 600;
}
.param-form-grid {
  margin-bottom: 16px;
  max-width: 100%;
}
.param-form-grid .param-tpl-sort {
  width: 120px;
}
.param-edit-wrap {
  margin-top: 4px;
  border: 1px solid var(--border, #e8e8e8);
  border-radius: 4px;
}
.param-edit-table {
  margin: 0;
  width: 100%;
}
.param-edit-table thead th {
  background: #eef3ff;
  color: var(--text-strong);
  font-weight: 600;
  white-space: nowrap;
}
.param-edit-table td,
.param-edit-table th {
  vertical-align: middle;
}
.param-edit-table .param-name-input,
.param-edit-table .param-value-input {
  width: 100%;
  background: #fff;
}
.param-edit-table .param-name-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}
.param-edit-table .param-name-cell .spec-drag {
  flex: 0 0 14px;
  margin-top: 0;
}
.param-edit-table .param-name-cell .param-name-input {
  flex: 1;
  min-width: 0;
}
.param-edit-table tr.param-item-row {
  cursor: grab;
  user-select: none;
}
.param-edit-table tr.param-item-row.dragging { opacity: 0.45; }
.param-edit-table tr.param-item-row:active { cursor: grabbing; }
.param-edit-table .param-empty {
  text-align: center;
  color: var(--muted, #999);
  padding: 36px 12px;
  border-bottom: none;
}
.param-add-btn {
  margin-top: 12px;
}

/* ââ ååæ ç­¾ ââ */
.product-tag-preview {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid;
  border-radius: 2px;
  font-size: 12px;
  line-height: 18px;
  white-space: nowrap;
}
.color-field {
  display: flex;
  align-items: center;
  gap: 8px;
}
.color-field .color-swatch {
  width: 36px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line, #dcdfe6);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
}
.color-field .input {
  width: 120px;
}

/* ââ ååä¿é ââ */
.guarantee-table {
  table-layout: fixed;
  width: 100%;
}
.guarantee-table thead th {
  background: #eef3ff;
  color: var(--text-strong);
  font-weight: 600;
}
.guarantee-table .col-id { width: 72px; }
.guarantee-table .col-name { width: auto; }
.guarantee-table .col-img { width: 100px; text-align: center; }
.guarantee-table .col-status { width: 110px; text-align: center; }
.guarantee-table .col-sort { width: 88px; text-align: center; }
.guarantee-table .col-ops { width: 132px; }
.guarantee-table td:nth-child(3),
.guarantee-table td:nth-child(4),
.guarantee-table td:nth-child(5) {
  text-align: center;
}
.guarantee-table td:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.guarantee-thumb {
  display: inline-block;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  vertical-align: middle;
  background:
    linear-gradient(135deg, rgba(255,255,255,.35), transparent),
    linear-gradient(145deg, #91d5ff, #1890ff);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}
.guarantee-thumb.lg {
  width: 64px;
  height: 64px;
}
.guarantee-form {
  max-width: 100%;
}
.guarantee-icon-upload {
  width: 80px;
  height: 80px;
  border: 1px dashed #d9d9d9;
  border-radius: 4px;
  background: #fafafa;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.guarantee-icon-upload:hover {
  border-color: var(--primary);
}
.guarantee-icon-upload.has-img {
  border-style: solid;
  background: #fff;
}
.guarantee-icon-ph {
  width: 28px;
  height: 22px;
  border: 2px solid #c0c4cc;
  border-radius: 3px;
  position: relative;
  opacity: 0.7;
}
.guarantee-icon-ph::before {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid #c0c4cc;
  top: 3px;
  left: 3px;
}
.guarantee-icon-ph::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 3px;
  height: 8px;
  border-bottom: 2px solid #c0c4cc;
  border-left: 2px solid #c0c4cc;
  border-right: 2px solid #c0c4cc;
  border-radius: 0 0 2px 2px;
  clip-path: polygon(0 100%, 35% 35%, 55% 60%, 75% 25%, 100% 100%);
}

/* ââ ååè¯è®º ââ */
.comment-table thead th {
  background: #eef3ff;
  color: var(--text-strong);
  font-weight: 600;
  white-space: nowrap;
}
.comment-product {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 180px;
  max-width: 260px;
}
.comment-thumb {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.35), transparent),
    linear-gradient(145deg, #ffe7ba, #d48806);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}
.comment-pname {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.35;
}
.comment-content {
  display: inline-block;
  max-width: 220px;
  line-height: 1.45;
  word-break: break-word;
}
/* é¿ææ¡ä»ç¨äºæªæ­å±ç¤ºï¼é¢è²ä¸æ­£æä¸è´ï¼å¿ç¨ä¸»é¢èï¼æè¢«å½æå¯ç¹é¾æ¥ï¼ */
.comment-content.is-long {
  color: inherit;
  cursor: default;
}
.comment-reply {
  display: inline-block;
  max-width: 160px;
  line-height: 1.45;
  word-break: break-word;
}
.comment-audit {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 3px;
  font-size: 12px;
  line-height: 20px;
  color: #fff;
  white-space: nowrap;
}
.comment-audit.pending { background: #fa8c16; }
.comment-audit.pass { background: #1890ff; }
.comment-audit.reject { background: #8c8c8c; }
.comment-reply-status {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 3px;
  font-size: 12px;
  line-height: 20px;
  color: #595959;
  background: #f5f5f5;
  white-space: nowrap;
}
.comment-reply-status.on {
  color: #389e0d;
  background: #f6ffed;
}
.table-scroll { overflow-x: auto; }
.manage-table .av.sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-block;
  background: linear-gradient(135deg, #69c0ff, #1890ff);
  vertical-align: middle;
}
.manage-table .ops {
  white-space: nowrap;
}
.more-ops {
  position: relative;
  display: inline-block;
  margin-left: 2px;
}
.more-pop {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  min-width: 148px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
  padding: 4px;
  z-index: 15;
}
.more-ops.open .more-pop {
  display: block;
  z-index: 120;
}
.more-pop button {
  display: block;
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: 8px 10px;
  font-size: 12px;
  color: var(--text);
  cursor: pointer;
  border-radius: 3px;
}
.more-pop button:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.tag-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag-picker .chip { cursor: pointer; }

.pf-tag-picker {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 120px;
  max-height: 420px;
  overflow: auto;
  padding: 4px 2px 8px;
}
.pf-tag-group-hd {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-strong, #303133);
  margin-bottom: 12px;
}
.pf-tag-group-bd {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}
.product-tag-pick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: auto;
  min-height: 28px;
  padding: 4px 12px;
  border: 1px solid;
  border-radius: 2px;
  background: #fff;
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: none;
}
.product-tag-pick.chip.on {
  /* ä¿çæ ç­¾èªèº«éè²ï¼ä»å å¼ºéä¸­æ */
  filter: none;
  box-shadow: inset 0 0 0 1px currentColor;
}
.pf-tag-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

@media (max-width: 900px) {
  .filter-panel .filters-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .filter-panel .filters-grid {
    grid-template-columns: 1fr;
  }
}

.channel-tip {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 10px;
  border-radius: 3px;
  background: #e6f4ff;
  color: #1890ff;
  font-size: 12px;
  font-weight: 600;
}
.date-range {
  min-width: 230px;
  cursor: pointer;
  background: #fff;
}
.compare-switch {
  display: inline-flex;
  border: 1px solid #d9d9d9;
  border-radius: 3px;
  overflow: hidden;
  background: #fff;
}
.compare-switch button {
  border: none;
  background: transparent;
  height: 28px;
  padding: 0 12px;
  font-size: 12px;
  color: #515a6e;
  cursor: pointer;
}
.compare-switch button + button {
  border-left: 1px solid #d9d9d9;
}
.compare-switch button.on {
  background: #1890ff;
  color: #fff;
}
.kpi .trend-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.kpi .cmp-label {
  font-size: 11px;
  color: #808695;
}
.echart-box {
  width: 100%;
  background: #fff;
}
.echart-box.trend { height: 280px; }
.echart-box.map { height: 360px; min-height: 320px; }
.stats-split {
  display: grid;
  grid-template-columns: 1.55fr .95fr;
  gap: 12px;
}
.map-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 12px;
  align-items: stretch;
}
.map-table-wrap {
  max-height: 360px;
  overflow: auto;
}
.map-table-wrap .table tr.on {
  background: #e6f4ff;
}
.map-card .hd .muted {
  font-size: 12px;
  font-weight: 400;
}
.map-fallback {
  height: 360px;
  display: grid;
  place-items: center;
  color: #808695;
  background: #fafafa;
  border: 1px dashed #d9d9d9;
  border-radius: 4px;
}

@media (max-width: 1100px) {
  .map-layout { grid-template-columns: 1fr; }
}
.donut-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 20px 10px;
  min-height: 240px;
}
.donut {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: conic-gradient(#d9d9d9 0 48%, #1890ff 48% 78%, #fa8c16 78% 100%);
  position: relative;
  flex-shrink: 0;
}
.donut::after {
  content: "æ»ç¨æ·æ°\A490";
  white-space: pre;
  position: absolute;
  inset: 34px;
  background: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 12px;
  color: var(--text-strong);
  font-weight: 600;
  line-height: 1.35;
}
.donut-legend { font-size: 12px; line-height: 2; color: var(--text); }
.donut-legend span {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}

/* è¡¨æ ¼å¤´æµè */
.page .table th {
  background: #f0f7ff;
  color: var(--text);
  font-weight: 600;
}

#adminApp .btn,
#adminApp .chip,
#adminApp .switch,
#adminApp .table .ops .btn.link { cursor: pointer; }
#adminApp .chip { user-select: none; }
#adminApp .chip.on {
  border-color: #91d5ff;
  background: var(--primary-soft);
  color: var(--primary);
}
#adminApp input[type="checkbox"] { cursor: pointer; }

/* åé / å¤éï¼ç»ä¸ 14px èªç»ï¼åçæ§ä»¶ä¸ä¸­ææå­è§è§ä¸ä¸å±ä¸­ï¼ï¼ä¸æ¹ position / opacityï¼éèå¼ç¨æ³ä¸åå½±å */
input[type="radio"],
input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  width: 14px;
  height: 14px;
  margin: 0;
  flex: none;
  border: 1px solid #c0c4cc;
  background: #fff center / 100% 100% no-repeat;
  vertical-align: -0.15em;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}
input[type="radio"] { border-radius: 50%; }
input[type="checkbox"] { border-radius: 3px; }
input[type="radio"]:hover,
input[type="checkbox"]:hover { border-color: var(--primary); }
input[type="radio"]:checked {
  border-color: var(--primary);
  background-image: radial-gradient(circle, var(--primary) 0 3px, transparent 3.5px);
}
input[type="checkbox"]:checked {
  border-color: var(--primary);
  background-color: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 7.2 6 9.6l4.6-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
input[type="checkbox"]:indeterminate {
  border-color: var(--primary);
  background-color: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 7h7' stroke='%23fff' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}
input[type="radio"]:focus-visible,
input[type="checkbox"]:focus-visible { outline: 2px solid rgba(24, 144, 255, 0.35); outline-offset: 1px; }
input[type="radio"]:disabled,
input[type="checkbox"]:disabled { border-color: #d9d9d9; background-color: #f5f5f5; cursor: not-allowed; }
/*
 * ????????????????????/???
 * ????????? `input:disabled { background: #f5f5f5 }` ???? background-image?
 * ??? !important ??????????/????????????????????
 */
#adminApp input[type="radio"]:checked,
#adminApp input[type="radio"]:disabled:checked {
  border-color: var(--primary) !important;
  background-color: #fff !important;
  background-image: radial-gradient(circle, var(--primary) 0 3px, transparent 3.5px) !important;
}
#adminApp input[type="checkbox"]:checked,
#adminApp input[type="checkbox"]:disabled:checked {
  border-color: var(--primary) !important;
  background-color: var(--primary) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 7.2 6 9.6l4.6-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}
#adminApp input[type="checkbox"]:indeterminate {
  border-color: var(--primary) !important;
  background-color: var(--primary) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 7h7' stroke='%23fff' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") !important;
}

#toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%) translateY(12px);
  background: rgba(23, 35, 61, .92);
  color: #fff;
  padding: 10px 18px;
  border-radius: 4px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: .2s;
  z-index: 100;
}
#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* èå±åªçä¸»åå®¹åºï¼ä¸æ¡ä¾§æ ï¼å¦åç¹èåå®éç¹å°é®ç½©ï¼åªä¼å³å¼¹çªä¸ä¼åé¡µ */
.modal-host {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: var(--side-w);
  background: rgba(0, 21, 41, .45);
  z-index: 110;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#adminApp.collapsed .modal-host {
  left: var(--side-w-mini);
}
.modal-host.show { display: flex; }
.modal-host .modal {
  width: min(520px, 100%);
  max-height: min(80vh, 640px);
  overflow: auto;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .2);
}
.modal-host .modal.wide { width: min(680px, 100%); }
.modal-host .modal.xl {
  width: min(980px, 96vw);
  max-height: min(88vh, 820px);
  display: flex;
  flex-direction: column;
}
.modal-host .modal.xl .modal-bd {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0;
}
.pf-mgr-modal {
  padding: 16px 20px 8px;
}
.pf-mgr-modal .pf-mgr-batch {
  margin-top: 0;
  margin-bottom: 12px;
}
.pf-mgr-modal .pf-member-attr {
  margin-top: 4px;
}
.pf-mgr-modal .table-wrap {
  max-height: 420px;
  overflow: auto;
}
.pf-mgr-grid {
  max-width: 100%;
  grid-template-columns: 100px minmax(0, 1fr);
  column-gap: 16px;
  row-gap: 14px;
  align-items: start;
  margin-bottom: 12px;
}
.pf-mgr-grid > .lab {
  text-align: right;
  line-height: 24px;
  white-space: nowrap;
}
.pf-mgr-modal .pf-member-exclusive {
  gap: 10px;
}
.drawer-host {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: var(--side-w);
  z-index: 95;
  background: rgba(0, 21, 41, .45);
}
#adminApp.collapsed .drawer-host {
  left: var(--side-w-mini);
}
.drawer-host.show { display: block; }
.drawer-host .drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(820px, 94vw);
  background: #fff;
  box-shadow: -8px 0 32px rgba(0, 0, 0, .12);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .28s ease;
}
.drawer-host.open .drawer { transform: translateX(0); }
.drawer-hd {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-strong);
}
.drawer-bd {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.drawer-host .ud-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.drawer-ft {
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  background: #fafafa;
}

.ud-wrap { padding: 0 0 12px; }
.ud-summary {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.ud-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 140px;
}
.ud-profile .av.lg {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #69c0ff, #1890ff);
  flex-shrink: 0;
}
.ud-profile .name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-strong);
}
.ud-metrics {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 24px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--text);
}
.ud-metrics .k { color: var(--muted); }
.ud-metrics .v { color: var(--text-strong); font-weight: 600; }
.ud-summary > .btn.primary { flex-shrink: 0; margin-top: 4px; }

.ud-tabs {
  display: flex;
  gap: 4px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.ud-tab {
  border: none;
  background: transparent;
  height: 42px;
  padding: 0 14px;
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
}
.ud-tab:hover { color: var(--primary); }
.ud-tab.on {
  color: var(--primary);
  font-weight: 600;
}
.ud-tab.on::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px 1px 0 0;
}

/* ââ ç¨æ·éç½® Tab ââ */
.config-tabs {
  display: flex;
  gap: 4px;
  margin: 0 0 16px;
  border-bottom: 1px solid var(--line);
}
.config-tab {
  border: none;
  background: transparent;
  height: 40px;
  padding: 0 16px;
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
}
.config-tab:hover { color: var(--primary); }
.config-tab.on {
  color: var(--primary);
  font-weight: 600;
}
.config-tab.on::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 2px;
  background: var(--primary);
}
.config-pane { display: none; padding-top: 4px; }
.config-pane.on { display: block; }

/* ââ è®¢åéç½® ââ */
.order-config-form {
  max-width: 720px;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 18px 16px;
  align-items: start;
}
.order-config-form > .lab {
  height: 32px;
  display: flex;
  align-items: center;
  padding: 0;
  line-height: 1.4;
  color: var(--text, #334155);
  font-size: 13px;
}
.order-config-form .oc-field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.order-config-form .oc-ctrl {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  width: 100%;
  max-width: 420px;
}
.order-config-form .oc-ctrl .input {
  width: 120px;
  flex-shrink: 0;
}
.order-config-form .oc-ctrl .input.oc-input-text {
  width: 100%;
  max-width: none;
  flex: 1;
  min-width: 0;
}
.order-config-form .oc-unit {
  font-size: 13px;
  color: var(--text, #334155);
  flex-shrink: 0;
}
.order-config-form .oc-hint {
  margin: 0;
  max-width: 420px;
  font-size: 12px;
  line-height: 1.55;
  color: #94a3b8;
}
.order-config-form .oc-textarea {
  width: 100%;
  max-width: 420px;
  min-height: 96px;
  resize: vertical;
  line-height: 1.5;
  padding: 8px 10px;
}
.order-config-form .oc-pickup-extra[hidden] {
  display: none !important;
}
.oc-check-row,
.oc-radio-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 20px;
  min-height: 32px;
}
.oc-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  user-select: none;
}
.oc-check input {
  margin: 0;
}

/* ââ ä¼æ å¸è¡¨å ââ */
.form-grid.coupon-form {
  max-width: 760px;
  grid-template-columns: 128px minmax(0, 1fr);
  column-gap: 16px;
  row-gap: 18px;
  /* æ ç­¾åªè´´é¡¶å¯¹é½ä¸»æ§ä»¶è¡ï¼ä¸åä¸æ¹æç¤º/è¡¥å½æé«å½±å */
  align-items: start;
}
.form-grid.coupon-form > .lab {
  box-sizing: border-box;
  height: 32px;
  min-height: 32px;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-size: 13px;
  line-height: 1.2;
  color: var(--text, #334155);
  text-align: right;
  white-space: nowrap;
}
.form-grid.coupon-form > .lab[hidden],
.form-grid.coupon-form > .cp-field[hidden] {
  display: none !important;
}
.coupon-form .cp-field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.coupon-form .cp-field > .oc-radio-row,
.coupon-form .cp-field > .oc-ctrl,
.coupon-form .cp-field > .cp-input {
  flex-shrink: 0;
}
.coupon-form .cp-input {
  width: 100%;
  max-width: 420px;
  min-width: 0;
  box-sizing: border-box;
}
.coupon-form .cp-date {
  width: 260px;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.coupon-form .cp-num {
  width: 100px;
  min-width: 0;
  box-sizing: border-box;
  -moz-appearance: textfield;
}
.coupon-form .cp-num::-webkit-outer-spin-button,
.coupon-form .cp-num::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.coupon-form .cp-inline-rule {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  font-size: 13px;
  line-height: 32px;
  margin: 0;
  padding: 0;
}
.coupon-form .cp-inline-rule[hidden],
.coupon-form .cp-sub[hidden] {
  display: none !important;
}
.coupon-form .oc-hint {
  margin: 0;
  padding: 0;
  max-width: 420px;
  font-size: 12px;
  line-height: 1.55;
  color: #94a3b8;
}
.coupon-form .oc-ctrl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  margin: 0;
  padding: 0;
}
.coupon-form .oc-unit {
  font-size: 13px;
  line-height: 32px;
  color: var(--text, #334155);
  flex-shrink: 0;
}
.coupon-form .oc-radio-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 20px;
  box-sizing: border-box;
  width: 100%;
  min-height: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
}
.coupon-form .oc-radio-row .oc-check {
  height: 32px;
  margin: 0;
}
.coupon-form .cp-sub {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  max-width: 420px;
  margin: 0;
  padding: 0;
}
.coupon-form .cp-sub .oc-ctrl {
  display: inline-flex;
}
.coupon-form .cp-sub .cp-date {
  display: block;
}
.coupon-form .cp-cat-sub,
.coupon-form .cp-sub.cp-cat-sub {
  max-width: 560px;
  width: 100%;
  align-self: stretch;
  min-width: 0;
}
.coupon-form .cp-cat-sub .pf-cat-block {
  width: 100%;
  max-width: 560px;
  min-width: min(100%, 480px);
}
.coupon-form .cp-cat-sub .pf-cat-field {
  flex: 1 1 auto;
  min-width: 240px;
}
.coupon-form .cp-cat-sub .pf-cat-dropdown {
  min-width: 480px;
  width: max(100%, 480px);
  right: auto;
}
.coupon-form .cp-cat-sub .pf-cat-cascade {
  grid-template-columns: minmax(200px, 1fr) minmax(200px, 1fr);
}
.coupon-form .cp-prod-sub {
  max-width: 640px;
  width: 100%;
  align-self: stretch;
}
.coupon-form .cp-prod-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.coupon-form .cp-prod-empty {
  margin: 0;
}
.coupon-form .cp-prod-table {
  width: 100%;
}
.coupon-form .cp-prod-table .prod-thumb {
  display: inline-block;
}
.cp-prod-picker {
  padding: 16px 20px 12px;
}
/* åºéºå¸ï¼éæ©åºéº */
.coupon-form #cpShopWrap { align-items: stretch; width: 100%; max-width: 640px; }
.cp-shop-bar { display: flex; align-items: center; gap: 12px; font-size: 12px; }
.cp-shop-bar .btn.link { padding: 0; height: auto; }
.cp-shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 8px;
  width: 100%;
}
.cp-shop-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}
.cp-shop-item:hover { border-color: #91caff; }
.cp-shop-item.on { border-color: var(--primary); background: var(--primary-soft); }
.cp-shop-item.is-disabled { cursor: not-allowed; opacity: 0.75; }
.cp-shop-logo {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cp-shop-info { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.cp-shop-info b { font-size: 13px; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-shop-info small { font-size: 12px; color: #8c8c8c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-shop-tag { font-style: normal; font-size: 11px; color: var(--primary); border: 1px solid #91caff; border-radius: 3px; padding: 0 3px; margin-right: 4px; }
.cp-shop-tag.off { color: #ff4d4f; border-color: #ffa39e; }
.cp-prod-picker-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 16px;
  margin-bottom: 14px;
}
.cp-prod-picker-filters .filter-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 180px;
}
.cp-prod-picker-filters .filter-item .input {
  min-width: 200px;
}
.cp-prod-picker-filters .cp-pick-cat-filter {
  min-width: 320px;
  flex: 1 1 320px;
  max-width: 480px;
}
.cp-prod-picker-filters .cp-pick-cat-block {
  width: 100%;
  max-width: 480px;
  min-width: 280px;
}
.cp-prod-picker-filters .cp-pick-cat-block .pf-cat-field {
  min-width: 240px;
}
.cp-prod-picker-filters .cp-pick-cat-block .pf-cat-dropdown {
  min-width: 420px;
  width: max(100%, 420px);
  right: auto;
}
.cp-prod-picker-filters .cp-pick-cat-block .pf-cat-cascade {
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr);
}
.cp-prod-picker-filters .filter-actions {
  display: flex;
  gap: 8px;
  padding-bottom: 1px;
}
.cp-prod-picker-table {
  max-height: 360px;
  overflow: auto;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 4px;
}
.cp-prod-picker-table .table {
  margin: 0;
}
.cp-prod-picker-pager {
  margin-top: 12px;
  padding: 0;
}
.cp-claims-modal {
  padding: 12px 16px 8px;
}
.cp-claims-hd {
  margin-bottom: 10px;
  font-size: 12px;
}
.cp-claims-table {
  max-height: 420px;
  overflow: auto;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 4px;
}
.cp-claims-table .table {
  margin: 0;
}
.cp-claims-pager {
  margin-top: 10px;
}
.coupon-claim-table .cp-claim-user {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.4;
  min-width: 120px;
}
.coupon-claim-table .cp-claim-user .name {
  color: var(--text-strong, #1f2329);
  font-weight: 500;
}
.coupon-claim-table .cp-claim-user .sub {
  font-size: 12px;
  color: var(--muted, #94a3b8);
}
.coupon-form-panel .coupon-form-body {
  padding: 16px 20px 24px;
}
.coupon-form-panel .coupon-form {
  max-width: 760px;
}
.coupon-form.coupon-form-edit .oc-check.is-disabled {
  opacity: 1;
  cursor: not-allowed;
  color: var(--text, #334155);
}
/* ??????????/???? background ???????????? */
.coupon-form.coupon-form-edit input:disabled:not([type="radio"]):not([type="checkbox"]),
.coupon-form.coupon-form-edit .pf-cat-trigger.is-readonly {
  background: #f5f5f5;
  cursor: not-allowed;
  color: var(--text, #334155);
}
.coupon-form.coupon-form-edit input[type="radio"]:disabled,
.coupon-form.coupon-form-edit input[type="checkbox"]:disabled {
  cursor: not-allowed;
}
.coupon-form.coupon-form-edit input[type="radio"]:disabled:checked {
  border-color: var(--primary);
  background-color: #fff;
  background-image: radial-gradient(circle, var(--primary) 0 3px, transparent 3.5px);
}
.coupon-form.coupon-form-edit input[type="checkbox"]:disabled:checked {
  border-color: var(--primary);
  background-color: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 7.2 6 9.6l4.6-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.coupon-form.coupon-form-edit .pf-cat-block.is-readonly {
  max-width: 560px;
}
.coupon-list-table .cp-invalid-tip,
.coupon-form .cp-invalid-tip {
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 6px;
  background: #fff7e6;
  border: 1px solid #ffd591;
  font-size: 12px;
  line-height: 1.5;
  color: #ad6800;
}
.coupon-list-table .cp-invalid-tip.all,
.coupon-form .cp-invalid-tip.all {
  background: #fff1f0;
  border-color: #ffa39e;
  color: #a8071a;
}
.coupon-list-table .cp-invalid-tip b,
.coupon-form .cp-invalid-tip b {
  display: block;
  font-weight: 600;
}
.coupon-list-table .cp-invalid-tip span,
.coupon-form .cp-invalid-tip span {
  opacity: 0.9;
}
.coupon-form .cp-prod-table tr.cp-prod-dead td {
  background: #fff1f0;
  color: #a8071a;
}
.coupon-list-table .cp-qty-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  line-height: 1.45;
  white-space: nowrap;
}
.coupon-list-table .cp-qty-stack .k {
  color: var(--muted, #94a3b8);
  margin-right: 6px;
}
.coupon-list-table .cp-qty-stack .v {
  color: var(--text, #334155);
}
.avatar-upload {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.avatar-upload .config-av,
.av.lg.config-av {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffd4a8, #ff8a3d);
  flex-shrink: 0;
  display: inline-block;
}

.ud-body { padding: 16px 20px 8px; min-height: 280px; }
.ud-section + .ud-section { margin-top: 20px; }
.ud-sec-title {
  position: relative;
  padding-left: 10px;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-strong);
}
.ud-sec-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 3px;
  border-radius: 2px;
  background: var(--primary);
}
.ud-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 20px;
}
.ud-grid.one { grid-template-columns: 1fr; }
.ud-field {
  display: flex;
  gap: 8px;
  font-size: 13px;
  line-height: 1.6;
  min-width: 0;
}
.ud-field .k {
  flex: 0 0 auto;
  color: var(--muted);
  white-space: nowrap;
}
.ud-field .k::after { content: "\FF1A"; }
.ud-field .v {
  color: var(--text-strong);
  word-break: break-all;
}
.ud-field .v.muted { color: #c0c4cc; }
.ud-field.full { grid-column: 1 / -1; }

.ud-tags-lv2 {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag-lv2 {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.4;
}
.tag-lv2 .tag-cat {
  padding: 2px 8px;
  background: #f5f7fa;
  color: var(--muted);
  border-right: 1px solid var(--line);
  white-space: nowrap;
}
.tag-lv2 .tag-name {
  padding: 2px 8px;
  color: var(--text-strong);
  background: #fff;
}
.tag-lv2.purple .tag-name { background: #f3eaff; color: #7c3aed; }
.tag-lv2.orange .tag-name { background: #fff1eb; color: #d34a1f; }
.tag-lv2.blue .tag-name { background: #eaf2ff; color: #2f6fed; }
.tag-lv2.green .tag-name { background: #e8f8ef; color: #18a058; }

.ud-tag-field { width: 100%; }
.ud-tag-selected {
  margin-bottom: 10px;
  padding: 8px 10px;
  border-radius: 4px;
  background: #f5f7fa;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.ud-tag-group + .ud-tag-group { margin-top: 12px; }
.ud-tag-group-hd {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-strong);
}
.tag-cat-picker .chip-row { gap: 8px; }

.tag-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-height: 420px;
}
.tag-cat-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px;
}
.tag-cat-hd {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 10px;
  padding: 0 4px;
}
.tag-cat-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tag-cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: 10px 12px;
  border-radius: 4px;
  cursor: pointer;
  color: var(--text);
  font-size: 13px;
}
.tag-cat-item:hover { background: #f5f7fa; }
.tag-cat-item.on {
  background: #e6f4ff;
  color: var(--primary);
  font-weight: 600;
}
.tag-cat-item .count {
  flex-shrink: 0;
  min-width: 22px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  border-radius: 10px;
  background: #f0f2f5;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.tag-cat-item.on .count {
  background: #bae0ff;
  color: var(--primary);
}
.tag-lib-panel { margin: 0; min-height: 420px; }

@media (max-width: 900px) {
  .tag-layout { grid-template-columns: 1fr; }
}

.ud-table .up { color: #ed4014; font-weight: 600; }
.ud-table .empty {
  text-align: center;
  color: var(--muted);
  padding: 40px 0 !important;
}
.ud-pager {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

/* ç§æ· Â· ç¨æ·é©¾é©¶è± */
.tu-cockpit-hero {
  padding: 20px 20px 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.tu-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
}
.tu-hero-user {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.tu-av {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}
.tu-hero-meta { min-width: 0; }
.tu-hero-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-strong);
  line-height: 1.3;
}
.tu-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.tu-chip {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 22px;
  color: #595959;
  background: #f5f5f5;
  border: 1px solid transparent;
}
.tu-chip.vip {
  color: #ad6800;
  background: #fffbe6;
  border-color: #ffe58f;
}
.tu-chip.mute { color: #8c8c8c; background: #fafafa; }
.tu-chip.danger {
  color: #cf1322;
  background: #fff1f0;
  border-color: #ffa39e;
}
.tu-hero-id {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}
.tu-cockpit-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
  padding-top: 4px;
}
.tu-cockpit-actions .btn.sm {
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
}
.tu-cockpit-actions .btn.danger-outline {
  color: #cf1322;
  border-color: #ffa39e;
  background: #fff;
}
.tu-cockpit-actions .btn.danger-outline:hover {
  background: #fff1f0;
}
.tu-kpi {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  margin: 0 -20px;
  padding: 14px 8px;
  border-top: 1px solid #f0f0f0;
  background: #fafbfc;
}
.tu-kpi-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  padding: 2px 10px;
  text-align: center;
}
.tu-kpi-item + .tu-kpi-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 18%;
  width: 1px;
  background: #e8e8e8;
}
.tu-kpi-item span {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.tu-kpi-item b {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: -0.02em;
  word-break: break-all;
  line-height: 1.25;
}
@media (max-width: 900px) {
  .tu-hero-top { flex-direction: column; align-items: stretch; }
  .tu-cockpit-actions { justify-content: flex-start; }
  .tu-kpi { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 12px; }
  .tu-kpi-item:nth-child(3n + 1)::before { display: none; }
}

.ud-edit { padding: 16px 20px 8px; }
.ud-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}
.ud-edit-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.ud-edit-item.full { grid-column: 1 / -1; }
.ud-edit-item .lab {
  font-size: 12px;
  color: var(--muted);
}
.lab.req::before {
  content: "*";
  color: #ed4014;
  margin-right: 3px;
}

.lv-icon {
  display: inline-block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  vertical-align: middle;
  border: 1px solid var(--line);
}
.lv-bg {
  display: inline-block;
  width: 72px;
  height: 32px;
  border-radius: 4px;
  vertical-align: middle;
  border: 1px solid var(--line);
}
.level-table td { vertical-align: middle; }
.field-tip {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #8c8c8c;
  line-height: 1.4;
  font-weight: 400;
}
.pt-alert {
  display: block;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fff7e6;
  border: 1px solid #ffd591;
  color: #ad6800;
  font-size: 13px;
  line-height: 1.65;
  margin-bottom: 12px;
}
.pt-alert.danger {
  background: #fff1f0;
  border-color: #ffa39e;
  color: #a8071a;
}
.pt-alert.info {
  background: #e6f4ff;
  border-color: #91caff;
  color: #0958d9;
}
.ud-edit-item .input,
.ud-edit-item .select,
.ud-edit-item .textarea {
  width: 100%;
}
.ud-edit-item .textarea { min-height: 88px; }
.ud-edit-item .chip-row,
.ud-edit-item .ud-tag-field { margin-top: 2px; }
.ud-edit-item.full .lab { margin-bottom: 2px; }

@media (max-width: 800px) {
  .ud-summary { flex-wrap: wrap; }
  .ud-metrics { grid-template-columns: 1fr; width: 100%; }
  .ud-grid { grid-template-columns: 1fr; }
  .ud-edit-grid { grid-template-columns: 1fr; }
}


@media (max-width: 1200px) {
  .kpi-row { grid-template-columns: repeat(3, 1fr); }
  .home-kpi-row { grid-template-columns: repeat(3, 1fr); }
  .home-grid,
  .home-grid-bottom { grid-template-columns: 1fr; }
  .stats-split { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .sidebar { position: absolute; height: 100%; }
  #adminApp.collapsed .sidebar { transform: translateX(-100%); width: var(--side-w); }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .home-welcome { flex-direction: column; align-items: flex-start; }
}

/* ââ ååç»è®¡ ââ */
.product-sec-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.product-sec-hd .sec-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.product-sec-hd .sec-title .compare-switch {
  margin-left: 4px;
}
.product-sec-hd h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-strong);
}
.product-sec-hd .sec-hint {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted, #808695);
}
.help-tip {
  position: relative;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid #c0c4cc;
  color: #808695;
  font-size: 11px;
  line-height: 14px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: help;
  flex-shrink: 0;
}
.help-tip .help-pop {
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 40;
  width: 420px;
  max-width: min(420px, 70vw);
  padding: 14px 16px;
  background: rgba(48, 49, 51, 0.96);
  color: #fff;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  text-align: left;
  line-height: 1.55;
  font-weight: 400;
  white-space: normal;
  pointer-events: none;
}
.help-tip .help-pop::before {
  content: "";
  position: absolute;
  left: 8px;
  top: -5px;
  width: 10px;
  height: 10px;
  background: rgba(48, 49, 51, 0.96);
  transform: rotate(45deg);
}
.help-tip:hover .help-pop,
.help-tip:focus .help-pop,
.help-tip:focus-within .help-pop {
  display: block;
}
.help-tip .help-pop b {
  display: block;
  margin: 10px 0 4px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.help-tip .help-pop b:first-child { margin-top: 0; }
.help-tip .help-pop p {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.88);
}
.help-tip .help-pop p + p { margin-top: 6px; }
.help-tip--end .help-pop {
  left: auto;
  right: 0;
  width: 280px;
}
.help-tip--end .help-pop::before {
  left: auto;
  right: 8px;
}
.product-rank-table thead th .help-tip {
  margin-left: 4px;
  vertical-align: middle;
}
.product-sec-hd .sec-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.product-sec-hd .date-range { min-width: 220px; }
.product-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.product-kpi {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 16px 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  box-shadow: var(--shadow);
}
.product-kpi .ico {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
.product-kpi .ico.c-blue { background: #1890ff; }
.product-kpi .ico.c-green { background: #52c41a; }
.product-kpi .ico.c-orange { background: #fa8c16; }
.product-kpi .ico.c-purple { background: #722ed1; }
.product-kpi .ico.c-cyan { background: #13c2c2; }
.product-kpi .ico.c-teal { background: #389e0d; }
.product-kpi .k {
  font-size: 13px;
  color: var(--muted);
}
.product-kpi .v {
  margin-top: 4px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-strong);
  line-height: 1.2;
}
.product-kpi .mom {
  display: block;
  margin-top: 6px;
  font-size: 12px;
}
.product-kpi .mom.up { color: #ed4014; }
.product-kpi .mom.down { color: #19be6b; }
.product-chart-card { padding: 8px 8px 4px; margin-bottom: 0; }
.echart-box.product-trend { height: 360px; }
.product-rank { margin-top: 12px; }
.product-rank-table thead th {
  background: #eef3ff;
  color: var(--text-strong);
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}
.product-rank-table td {
  text-align: center;
  vertical-align: middle;
}
.product-rank-table td.name-cell {
  text-align: left;
  max-width: 280px;
  line-height: 1.45;
  word-break: break-all;
}
.prod-thumb {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  display: inline-block;
  border: 1px solid var(--line);
  vertical-align: middle;
}
@media (max-width: 1200px) {
  .product-kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .product-kpi-row { grid-template-columns: 1fr; }
  .echart-box.product-trend { height: 280px; }
}

/* ââ è®¢åç»è®¡ ââ */
.product-kpi-row.order-kpi-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.order-stats-block {
  margin-top: 16px;
}
.order-compose-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.order-compose-card {
  padding: 12px 12px 8px;
}
.order-compose-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-strong, #1f2329);
  padding: 4px 8px 0;
}
.echart-box.order-compose-chart {
  height: 300px;
}
@media (max-width: 1100px) {
  .product-kpi-row.order-kpi-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .order-compose-grid {
    grid-template-columns: 1fr;
  }
}

/* ââ ç§¯åç»è®¡ ââ */
.points-kpi-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 0;
}
.points-stats-overview {
  margin-bottom: 12px;
}
.points-stats-overview .sec-hint {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 400;
}
.points-stats-block {
  margin-bottom: 12px;
}
.points-stats-block .product-sec-hd {
  margin-bottom: 8px;
}
.echart-box.points-trend {
  height: 360px;
}
.points-compose-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.points-compose-grid > .panel {
  margin-bottom: 0;
}
.echart-box.points-compose-chart {
  height: 320px;
}
.points-compose-card {
  padding: 8px 12px 12px;
  min-height: 320px;
}
.btn.icon-btn {
  min-width: 32px;
  padding: 0 10px;
  line-height: 30px;
}
.points-consume-table {
  max-height: none;
}
.points-consume-table .table th,
.points-consume-table .table td {
  white-space: nowrap;
}
.points-rate-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 160px;
}
.points-rate-bar {
  flex: 1;
  height: 8px;
  background: #f0f2f5;
  border-radius: 4px;
  overflow: hidden;
}
.points-rate-bar > i {
  display: block;
  height: 100%;
  background: #5b8ff9;
  border-radius: 4px;
}
.points-rate-num {
  width: 48px;
  text-align: right;
  color: var(--muted, #8c8c8c);
  font-size: 12px;
}
@media (max-width: 1100px) {
  .points-compose-grid {
    grid-template-columns: 1fr;
  }
  .points-kpi-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .points-kpi-row {
    grid-template-columns: 1fr;
  }
}

.points-log-table .points-delta.inc {
  color: #ed4014;
  font-weight: 600;
  white-space: nowrap;
}
.points-log-table .points-delta.dec {
  color: var(--text, #334155);
  font-weight: 600;
  white-space: nowrap;
}
.points-log-table .points-delta.wait {
  color: var(--muted, #94a3b8);
  font-weight: 600;
  white-space: nowrap;
}
.points-log-table .points-log-sub {
  font-size: 12px;
  color: var(--muted, #94a3b8);
}
.points-log-table .points-log-user {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.4;
  min-width: 120px;
}
.points-log-table .points-log-user .name {
  color: var(--text-strong, #1f2329);
  font-weight: 500;
}
.points-log-table .points-log-user .sub {
  font-size: 12px;
  color: var(--muted, #94a3b8);
}

/* ââ ç§¯åéç½® ââ */
.points-config-panel .panel-hd {
  margin-bottom: 8px;
}
.points-config-sec {
  padding: 16px 4px 8px;
  border-top: 1px solid var(--line, #e5e7eb);
}
.points-config-sec:first-of-type {
  border-top: none;
  padding-top: 8px;
}
.points-config-sec-hd {
  margin-bottom: 14px;
}
.points-config-sec-hd h4 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-strong, #1f2329);
}
.points-config-sec-hd p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #94a3b8;
}
.points-config-form .oc-ctrl.oc-sentence {
  flex-wrap: wrap;
  max-width: 560px;
}
.points-config-form .oc-unit.strong {
  font-weight: 600;
  color: var(--text-strong, #1f2329);
}
.points-config-form .oc-ctrl[hidden] {
  display: none !important;
}

.od-goods-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.od-goods-cell .od-goods-meta {
  min-width: 0;
  line-height: 1.4;
}
.od-goods-cell .od-goods-meta .name {
  color: var(--text-strong, #1f2329);
}
.od-goods-cell .od-goods-meta .sub {
  font-size: 12px;
  color: var(--muted, #94a3b8);
}
.points-mall-product-table .price,
.order-manage-table .price {
  white-space: nowrap;
}

/* ç»å¸ iframe éæå¿«ç§ï¼å¤è§ä¸äº¤äºååä¸è´ï¼ç¦ç¨æä½ */
html.flow-static,
html.flow-static body {
  overflow: hidden;
}
html.flow-static #adminApp {
  pointer-events: none;
  user-select: none;
  height: 100vh;
  height: 100dvh;
}
html.flow-static .more-menu,
html.flow-static footer.foot {
  display: none !important;
}


/* ===== åºéºåå° Â· ä¸»é¡µ Â· åºéºå½¢è±¡ ===== */
.sb-welcome { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 24px; }
.sb-welcome h2 { margin: 0 0 6px; font-size: 20px; display: flex; align-items: center; gap: 8px; }
.sb-tag { font-size: 11px; font-weight: 600; color: #fff; background: linear-gradient(90deg,#ff5a1f,#e8380d); padding: 1px 6px; border-radius: 4px; }
.sb-welcome p { margin: 0; font-size: 13px; }
.sb-kpis { display: flex; gap: 36px; }
.sb-kpis div { display: flex; flex-direction: column; align-items: flex-end; }
.sb-kpis b { font-size: 22px; color: #1f2329; }
.sb-kpis span { font-size: 12px; color: #8c8c8c; margin-top: 2px; }
.sb-brand { margin-top: 16px; }
.sb-layout { display: flex; gap: 40px; padding: 8px 4px 4px; }
.sb-form { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.sb-label { font-size: 14px; font-weight: 600; color: #1f2329; margin-bottom: 10px; display: flex; align-items: baseline; gap: 10px; }
.sb-label .muted { font-size: 12px; font-weight: 400; }
.sb-up { position: relative; border-radius: 10px; overflow: hidden; background: #fafafa; border: 1px dashed #d9d9d9; }
.sb-up.logo { width: 112px; height: 112px; border-radius: 20px; }
.sb-up.cover { width: 100%; max-width: 480px; aspect-ratio: 750 / 280; }
.sb-up.has { border-style: solid; border-color: #e8e8e8; }
.sb-up img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sb-up-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #8c8c8c; font-size: 12px; cursor: pointer; }
.sb-up-empty:hover { color: var(--primary); border-color: var(--primary); background: var(--primary-soft); }
.sb-up-empty .plus { font-size: 26px; line-height: 1; font-weight: 300; }
.sb-up-ops { position: absolute; inset: auto 0 0 0; display: flex; justify-content: center; gap: 16px; padding: 6px; background: rgba(0,0,0,.5); opacity: 0; transition: opacity .15s; }
.sb-up:hover .sb-up-ops { opacity: 1; }
.sb-up-ops label, .sb-up-ops button { color: #fff; font-size: 12px; cursor: pointer; background: none; border: none; padding: 0; }
.sb-tints { display: flex; flex-wrap: wrap; gap: 10px; }
.sb-tints button { display: flex; align-items: center; gap: 6px; padding: 5px 12px 5px 6px; border-radius: 999px; border: 1px solid #e8e8e8; background: #fff; font-size: 12px; color: #595959; cursor: pointer; }
.sb-tints button i { width: 20px; height: 20px; border-radius: 50%; }
.sb-tints button.on { border-color: var(--primary); color: var(--primary); box-shadow: 0 0 0 2px var(--primary-soft); }
.sb-actions { display: flex; gap: 10px; align-items: center; }
.sb-dirty { font-size: 12px; color: #fa8c16; }
.sb-actions a.btn { text-decoration: none; display: inline-flex; align-items: center; }

.sb-preview { width: 320px; flex-shrink: 0; }
.sb-preview-tt { font-size: 12px; color: #8c8c8c; margin-bottom: 8px; text-align: center; }
.sb-phone { border-radius: 28px; border: 8px solid #1f1f1f; background: #f3efe8; overflow: hidden; box-shadow: 0 12px 30px rgba(0,0,0,.12); }
.sb-phone-hd { height: 44px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; background: #fff; color: #1c1916; }
.sb-phone-body { padding: 12px 10px 16px; }
.sb-card { position: relative; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 6px 18px rgba(60,40,20,.07); color: #1c1916; }
.sb-cover { position: relative; height: 84px; padding: 0 10px 10px 68px; display: flex; align-items: flex-end; gap: 6px; color: #fff; overflow: hidden; }
.sb-cover::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 88% -10%, rgba(255,255,255,.45), transparent 42%), repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0 2px, transparent 2px 10px); }
.sb-cover.has-img::before { background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.5)); }
.sb-wm { position: absolute; right: 60px; top: -16px; font-size: 86px; font-weight: 900; line-height: 1; color: rgba(255,255,255,.16); }
.sb-cover-info { position: relative; flex: 1; min-width: 0; }
.sb-name { display: flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 800; white-space: nowrap; }
.sb-name em { font-style: normal; font-size: 9px; padding: 0 4px; line-height: 14px; border-radius: 3px; background: #fff; color: #c4361a; }
.sb-fans { font-size: 10px; opacity: .88; margin-top: 2px; }
.sb-enter { position: relative; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; border: 1px solid rgba(255,255,255,.6); background: rgba(255,255,255,.2); }
.sb-logo { position: absolute; left: 10px; top: 56px; width: 48px; height: 48px; padding: 3px; border-radius: 14px; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.sb-logo i { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 11px; font-style: normal; color: #fff; font-size: 19px; font-weight: 800; }
.sb-sub { padding: 7px 10px 0 68px; min-height: 24px; font-size: 11px; font-weight: 650; display: flex; align-items: center; gap: 5px; }
.sb-sub::before { content: ""; width: 3px; height: 10px; border-radius: 2px; background: #c45c26; }
.sb-goods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; padding: 12px 10px; }
.sb-goods i { display: block; aspect-ratio: 1/1; border-radius: 8px; }
.sb-goods p { margin: 5px 0 2px; font-size: 10px; line-height: 1.35; height: 2.7em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sb-goods b { font-size: 12px; color: #c45c26; }

/* åè´¦å¯¹è´¦åæ±æ» */
.fz-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.fz-sum-item { padding: 12px 14px; border-radius: 8px; background: #f7f8fa; }
.fz-sum-item span { display: block; font-size: 12px; color: #8c8c8c; }
.fz-sum-item b { display: block; margin-top: 4px; font-size: 18px; color: #1f1f1f; }
.fz-sum-item.warn b { color: #fa8c16; }

/* ââ è®¾ç½® Â· è¿è´¹æ¨¡æ¿ ââ */
.ft-tip { font-size: 12px; }
.ft-table td { vertical-align: top; line-height: 1.6; }
.ft-table .ft-name b { font-weight: 600; color: var(--text); }
.ft-table .ops { white-space: nowrap; }
.ft-table th,
.ft-table td:nth-child(2),
.ft-table td:nth-child(3),
.ft-table td:nth-child(7),
.ft-table td:nth-child(8) { white-space: nowrap; }
.ft-table .ft-spec-cell { min-width: 220px; max-width: 360px; }
.ft-table .ft-cell-line + .ft-cell-line { margin-top: 6px; }
.ft-host { z-index: 130; }
.ft-host .modal.ft-modal { width: min(860px, 100%); max-height: min(88vh, 760px); display: flex; flex-direction: column; }
.ft-modal .modal-bd { flex: 1; min-height: 0; overflow: auto; padding: 20px 24px 12px; }
.form-grid.ft-form { grid-template-columns: 96px minmax(0, 1fr); max-width: none; gap: 18px 12px; }
.ft-form .ft-name-input { width: 320px; max-width: 100%; }
.ft-block { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ft-sub-table { min-width: 0; }
.ft-sub-table .table { margin: 0; }
.ft-sub-table .table th { background: #fafafa; font-weight: 500; white-space: nowrap; }
.ft-sub-table .table td { vertical-align: middle; }
.ft-sub-table .ops { white-space: nowrap; width: 56px; }
.ft-region-cell { min-width: 220px; }
.ft-region-cell .muted { font-size: 12px; margin-left: 2px; }
.ft-region-txt { color: var(--text); margin-right: 6px; line-height: 1.6; }
.ft-modal .input.ft-num { width: 72px; min-width: 0; height: 28px; }
.ft-modal .select.ft-cond { width: 150px; min-width: 0; height: 28px; }
.ft-sub-table .table th,
.ft-sub-table .table td { padding-left: 10px; padding-right: 10px; }
.ft-cond-vals { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.ft-cond-val { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.ft-add-row { margin-top: 8px; padding-left: 0; }
.ft-nd-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-height: 28px; padding: 6px 10px; border: 1px dashed var(--line); border-radius: 4px; background: #fafafa; }
.ft-hint { font-size: 12px; color: var(--muted); }
.ft-rg-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.ft-rg-col + .ft-rg-col { border-left: 1px solid var(--line); }
.ft-rg-hd { height: 34px; display: flex; align-items: center; padding: 0 12px; background: #fafafa; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.ft-rg-list { height: 320px; overflow: auto; padding: 4px 0; }
.ft-rg-item { display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 10px 0 12px; font-size: 13px; color: var(--text); cursor: pointer; }
.ft-rg-item:hover { background: #f5f7fa; }
.ft-rg-item.on { background: #e6f4ff; }
.ft-rg-item.on .ft-rg-name { color: var(--primary); font-weight: 600; }
.ft-rg-item input { width: 14px; height: 14px; margin: 0; flex: none; accent-color: var(--primary); cursor: pointer; }
.ft-rg-item .ft-rg-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ft-rg-item.is-off { color: #bfbfbf; cursor: not-allowed; }
.ft-rg-item.is-off .ft-rg-name { color: #bfbfbf; }
.ft-rg-item.is-off input { cursor: not-allowed; }
.ft-rg-cnt { flex: none; font-style: normal; font-size: 12px; color: var(--primary); }
.ft-rg-arrow { flex: none; font-style: normal; color: #bfbfbf; font-size: 16px; }
.ft-rg-empty { padding: 16px 12px; font-size: 12px; color: var(--muted); }
.ft-rg-picked { margin-top: 12px; padding: 10px 12px; background: #fafafa; border-radius: 4px; }
.ft-rg-picked-hd { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.ft-rg-picked-hd b { color: var(--primary); }
.ft-rg-picked-hd .muted { font-size: 12px; flex: 1; }
.ft-rg-picked-txt { margin-top: 6px; max-height: 66px; overflow: auto; font-size: 12px; line-height: 1.7; color: var(--text); }

/* ===== åºéºåå°ï¼å½ååºéºåæ¢ï¼ååæ¼ç¤ºï¼ ===== */
.shop-ctx { position: relative; margin-right: 12px; }
.shop-ctx-btn { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 1px solid #d9e1ec; border-radius: 15px; background: #f7f9fc; font-size: 13px; color: #1f2d3d; cursor: pointer; }
.shop-ctx-btn:hover { border-color: #1677ff; }
.shop-ctx-k { color: #8a94a6; font-size: 12px; }
.shop-ctx-self { font-style: normal; font-size: 11px; line-height: 16px; padding: 0 4px; border-radius: 3px; background: #fff1eb; color: #d34a1f; }
.shop-ctx-caret { width: 0; height: 0; border: 4px solid transparent; border-top-color: #8a94a6; margin-top: 4px; }
.shop-ctx-menu { position: absolute; right: 0; top: 36px; z-index: 300; width: 260px; padding: 6px; border-radius: 8px; background: #fff; box-shadow: 0 6px 24px rgba(0,0,0,.14); }
.shop-ctx-tip { padding: 6px 8px 8px; font-size: 12px; color: #8a94a6; border-bottom: 1px solid #f0f2f5; margin-bottom: 4px; }
.shop-ctx-item { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 8px; border: 0; border-radius: 6px; background: none; font-size: 13px; color: #1f2d3d; cursor: pointer; text-align: left; }
.shop-ctx-item:hover { background: #f5f7fa; }
.shop-ctx-item.on { background: #e8f3ff; color: #1677ff; font-weight: 600; }
.shop-ctx-item small { color: #8a94a6; font-weight: 400; }
.shop-ctx-empty { margin: 0 0 12px; padding: 10px 14px; border-radius: 6px; background: #fffbe6; border: 1px solid #ffe58f; font-size: 13px; color: #8c6d1f; }
/* åºéºåå° Â· æ¬åºé¡¾å®¢ï¼å½å±è¯´ææ¡ */
.crm-note {
  margin: 0 0 12px;
  padding: 9px 14px;
  border: 1px solid #91caff;
  border-radius: 6px;
  background: var(--primary-soft);
  color: #1f2d3d;
  font-size: 13px;
  line-height: 1.6;
}
.crm-table .ops .btn + .btn { margin-left: 6px; }

/* æ ç­¾ç®¡ç */
.tm-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 24px;
  margin: 0 0 14px;
  padding: 18px 20px;
  border-radius: 10px;
  border: 1px solid #e8edf5;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(22, 119, 255, 0.08), transparent 55%),
    linear-gradient(180deg, #fbfcff 0%, #f5f8fc 100%);
}
.tm-hero-main h2 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 650;
  color: #1f2d3d;
  letter-spacing: 0.02em;
}
.tm-hero-main p {
  margin: 0;
  max-width: 640px;
  font-size: 13px;
  line-height: 1.65;
  color: #5c6b7a;
}
.tm-stats {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.tm-stat {
  min-width: 88px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #eef1f6;
  text-align: center;
  box-shadow: 0 1px 2px rgba(31, 45, 61, 0.04);
}
.tm-stat b {
  display: block;
  font-size: 20px;
  font-weight: 650;
  color: #1677ff;
  line-height: 1.2;
}
.tm-stat span {
  font-size: 12px;
  color: #8a94a6;
}
.tm-panel .tm-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.tm-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.tm-filters .input { width: 220px; max-width: 100%; }
.tm-filters .select { width: 120px; }
.tm-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--tm-c, #1677ff);
  background: color-mix(in srgb, var(--tm-c, #1677ff) 12%, #fff);
  border: 1px solid color-mix(in srgb, var(--tm-c, #1677ff) 28%, #fff);
  vertical-align: middle;
}
.tm-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tm-c, #1677ff);
  flex-shrink: 0;
}
.tm-desc {
  margin-top: 4px;
  font-size: 12px;
  color: var(--ad-muted, #8a94a6);
  line-height: 1.4;
}
.tm-rule {
  font-size: 12px;
  line-height: 1.55;
  color: #5c6b7a;
  max-width: 420px;
}
.tm-ex {
  display: inline-block;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 4px;
  background: #f5f7fa;
  color: #8a94a6;
  font-style: normal;
  font-size: 11px;
}
.tm-empty {
  padding: 36px 16px 48px;
}
.tm-empty-inner {
  max-width: 360px;
  margin: 0 auto;
  text-align: center;
}
.tm-empty-inner strong {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  color: #1f2d3d;
}
.tm-empty-inner p {
  margin: 0 0 16px;
  font-size: 13px;
  color: #8a94a6;
  line-height: 1.6;
}
.tm-form-intro {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 6px;
  background: #f5f9ff;
  border: 1px solid #d6e4ff;
  font-size: 13px;
  line-height: 1.55;
  color: #3d5a80;
}
/*
 * æ ç­¾è¡¨åï¼ç§æ coupon-form ç»æ
 * grid ç´æ¥å­åç´  = .lab + .tm-fieldï¼æ ç­¾åºå® 32px åªå¯¹é½ä¸»æ§ä»¶é¦è¡
 * å¾é/è¾å¥å·¦ç¼ä¸è§ååºå·¦ç¼åä¸ç«çº¿ï¼ç¦æ­¢ææ§ä»¶æ°´å¹³å±ä¸­
 */
.tm-form .form-grid.tm-grid {
  grid-template-columns: 88px minmax(0, 1fr);
  column-gap: 16px;
  row-gap: 16px;
  max-width: none;
  align-items: start;
}
.tm-form .tm-grid > .lab {
  box-sizing: border-box;
  height: 32px;
  min-height: 32px;
  max-height: 32px;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-size: 13px;
  line-height: 1.2;
  color: var(--text, #334155);
  text-align: right;
  white-space: nowrap;
}
.tm-form .tm-grid > .tm-field {
  box-sizing: border-box;
  min-width: 0;
  min-height: 32px;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 8px;
}
/* ä»å«å¾éçè¡ï¼æ¨ªæ 32pxï¼ä¸ lab åç´å±ä¸­ï¼æ§ä»¶è´´å·¦ï¼å¿æ°´å¹³å±ä¸­ï¼ */
.tm-form .tm-grid > .tm-field:not(.tm-rule-val):has(> .oc-check) {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  height: 32px;
  max-height: 32px;
  gap: 0;
}
.tm-form .tm-grid > .tm-field > .input,
.tm-form .tm-grid > .tm-field > .select {
  width: 100%;
  max-width: 480px;
  height: 32px;
  box-sizing: border-box;
}
.tm-form .tm-grid > .tm-field > .oc-check {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  height: 32px;
  line-height: 1.2;
  font-size: 13px;
}
.tm-form .tm-grid > .tm-field > .oc-check input {
  margin: 0;
  flex-shrink: 0;
}
.tm-form .tm-preview-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  height: 32px;
  min-height: 32px;
  margin: 0;
  padding: 0;
}
.tm-preview {
  font-weight: 600;
  color: #1677ff;
}
/* è§ååºï¼é¦è¡ 32px ä¸ãè§åæ¡ä»¶ãå¯¹é½ï¼å¶ä½ä¸æ² */
.tm-form .tm-grid > .tm-field.tm-rule-val {
  gap: 0;
}
.tm-form .tm-grid > .tm-field.tm-rule-val > [data-rule-root] {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
}
.tm-form [data-rule-root] .rule-top-logic {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  box-sizing: border-box;
  height: 32px;
  min-height: 32px;
  max-height: 32px;
  margin: 0 0 8px;
  padding: 0;
}
.tm-form [data-rule-root] .oc-radio-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  min-height: 32px;
  margin: 0;
}
.tm-form [data-rule-root] .rule-hint {
  margin: 8px 0 0;
}
.tm-form .rule-group {
  margin: 0 0 8px;
  padding: 10px 12px;
  border: 1px solid #e8edf5;
  border-radius: 8px;
  background: #fafbfc;
}
.tm-form .rule-group-hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  height: 32px;
  min-height: 32px;
}
.tm-form .rule-group > .btn {
  margin-top: 6px;
}
.tm-form .rule-cond {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  min-height: 32px;
}
.tm-form .rule-cond .input,
.tm-form .rule-cond .select {
  height: 32px;
  box-sizing: border-box;
}
.tm-form .rule-cond .muted {
  display: inline-flex;
  align-items: center;
  height: 32px;
  margin: 0;
}
@supports not (color: color-mix(in srgb, red 50%, white)) {
  .tm-chip {
    background: #e8f3ff;
    border-color: #91caff;
    color: #1677ff;
  }
}
/*
 * è¡¨åè¡æ§ä»¶åï¼æ ¹å ä¿®å¤ï¼ï¼
 * æ§åæ³ padding:6px ä¸ä¸ºçº¯æå­å 32pxï¼å´ä¼æ input/checkbox æ´ä½é¡¶æ­ªï¼åå¤åºç°ãæ ç­¾ä¸æ§ä»¶ä¸å¯¹é½ãã
 * ç»ä¸æ¹ä¸ºï¼æ é¢å¤ paddingï¼flex ä¸ 32px ä¸»è¡å±ä¸­ï¼å¤è¡åå®¹ç¨åå¸å±ä¸æ²ã
 */
.form-grid > .fg-val {
  min-height: 32px;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  line-height: 20px;
  box-sizing: border-box;
  font-size: 13px;
  color: var(--ad-text);
}
.form-grid > .fg-val.muted { font-size: 12px; color: var(--ad-muted); }
.form-grid > .fg-val.fg-stack {
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  align-content: flex-start;
}
/* è¡¨åè¡ï¼åé / æ¨ªææ§ä»¶ */
.form-grid > .fg-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 20px; min-height: 32px; padding: 0; }
/* è¡¨åè¡ï¼è¾å¥æ¡ + åä½ / è¯´ææå­ */
.form-grid > .fg-inline { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; min-height: 32px; padding: 0; font-size: 13px; }
/* ååå¹³å°ç®¡æ§ï¼åååå®¡ï¼ï¼ç§æ·ååç®¡çç¶æåå ãå¾å¤çè§æ ï¼åºéºåå°ç¶æåç®¡æ§æ ç­¾ï¼ååè¯¦æ Â· æä½æ¥å¿ */
.tp-sub { max-width: 160px; margin-top: 4px; font-size: 12px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-badge { display: inline-block; min-width: 16px; height: 16px; padding: 0 4px; margin-left: 2px; border-radius: 8px; background: #ff4d4f; color: #fff; font-size: 11px; font-style: normal; line-height: 16px; text-align: center; vertical-align: 1px; }
.gov-box { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.gov-box .gov-why { max-width: 150px; font-size: 12px; line-height: 1.4; color: var(--ad-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gov-box .btn.link { height: auto; padding: 0; font-size: 12px; }
.gov-box .muted { font-size: 12px; }
.pf-log-pane .product-form-grid { margin-bottom: 16px; }
.pf-log-pane .pf-log-table { max-width: 960px; }

/* 抽奖管理 */
.lottery-form .oc-field { padding: 0; display: flex; flex-direction: column; align-items: flex-start; min-height: 32px; }
.lt-list-hint {
  margin: 0 0 12px;
  padding: 8px 12px;
  background: #fafafa;
  border-radius: 6px;
  color: var(--ad-muted, #8c8c8c);
  font-size: 12px;
  line-height: 1.6;
}
.lt-act-table td { vertical-align: middle; }
.lt-act-table .lt-id { color: var(--ad-muted, #8c8c8c); font-variant-numeric: tabular-nums; }
.lt-act-table .lt-name-cell b { font-weight: 600; }
.lt-act-table .lt-time-cell { line-height: 1.45; white-space: nowrap; }
.lt-act-table .lt-time-cell .muted { display: block; font-size: 12px; }
.lt-act-table .lt-num,
.lt-act-table .lt-touch { font-variant-numeric: tabular-nums; white-space: nowrap; }
.lt-act-table .lt-status-cell { white-space: nowrap; }
.lt-act-table .lt-status-cell .tag { margin-left: 8px; vertical-align: middle; }
.lt-act-table .lt-ops { white-space: nowrap; }
.lt-act-table .lt-ops .btn.link { margin-right: 2px; }
.lt-act-rec { padding: 16px 20px 12px; }
.lt-act-rec-bar {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 12px;
}
.lt-act-rec .filters-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 12px;
  row-gap: 0;
  margin: 0;
}
.lt-act-rec .filter-item .input,
.lt-act-rec .filter-item .select { width: 100%; }
.lt-act-rec .filter-actions { margin: 0; flex-shrink: 0; }
.lt-act-rec-tip {
  margin: 0 0 12px;
  padding: 8px 12px;
  background: #fff7f0;
  border-radius: 6px;
  color: #ad4e00;
  font-size: 12px;
  line-height: 1.5;
}
.lt-act-rec-table { max-height: 460px; border: 1px solid #f0f0f0; border-radius: 6px; }
.lt-act-rec .table { margin: 0; }
.lt-act-rec .table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fafafa;
  white-space: nowrap;
}
.lt-act-rec .table td { vertical-align: middle; }
.bg-rec-help { min-width: 200px; vertical-align: top; }
.bg-rec-progress { font-variant-numeric: tabular-nums; font-weight: 600; color: #262626; }
.bg-rec-helper {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.55;
  color: #595959;
  white-space: nowrap;
}
.bg-rec-helper b { margin-right: 6px; font-weight: 500; color: #262626; }
.bg-rec-helper em { margin-left: 8px; font-style: normal; color: #d4380d; }
.bg-rec-anon { margin-top: 2px; font-size: 12px; line-height: 1.5; color: #8c8c8c; }
.lt-act-rec .table tbody tr:hover td { background: #fffaf7; }
.lottery-form .lt-time-row,
.bg-form .lt-time-row {
  max-width: none;
  height: 32px;
  flex-wrap: nowrap;
}
.lottery-form .lt-time-row .input[type="datetime-local"],
.bg-form .lt-time-row .input[type="datetime-local"] {
  width: 220px;
  min-width: 220px;
  flex: 0 0 220px;
}
.bg-form.order-config-form { max-width: 1180px; }
.bg-goods-field { width: 100%; max-width: none; }
.bg-goods-top {
  display: flex;
  align-items: center;
  height: 32px;
}
.bg-goods-scroll {
  width: 100%;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  background: #fff;
}
.bg-goods-table { margin: 0; }
.bg-goods-table th {
  background: #fafafa;
  font-size: 12px;
  font-weight: 600;
  color: #8c8c8c;
  white-space: nowrap;
}
.bg-goods-table td { vertical-align: middle; }
.bg-goods-table tbody tr:hover td { background: #fafafa; }
.bg-goods-table .select,
.bg-goods-table .input {
  width: 100%;
  height: 32px;
  min-width: 0;
}
.bg-goods-table .input[readonly] {
  background: #fafafa;
  color: #595959;
}
.bg-goods-table .bg-used {
  font-variant-numeric: tabular-nums;
  color: #595959;
}
.bg-goods-empty {
  text-align: center;
  color: #8c8c8c;
  padding: 28px 0;
}
.bg-prod-name { font-weight: 600; color: #262626; line-height: 1.4; }
.bg-prod-shop { margin-top: 2px; font-size: 12px; color: #8c8c8c; line-height: 1.4; }
.modal-host .modal.xl:has(.bg-pick) {
  overflow: hidden;
  height: min(720px, 88vh);
}
.modal-host .modal.xl .modal-bd:has(.bg-pick) {
  display: flex;
  flex-direction: column;
  padding: 0;
}
.bg-pick {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  flex: 1;
  padding: 16px 20px 12px;
}
.bg-pick-filters {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 12px 16px;
}
.bg-pick-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 0 1 240px;
}
.bg-pick-field .flab {
  height: 18px;
  line-height: 18px;
  font-size: 12px;
  color: #8c8c8c;
}
.bg-pick-field .select,
.bg-pick-field .input {
  width: 100%;
  height: 32px;
  min-width: 0;
}
.bg-pick-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  flex: 0 0 auto;
}
.bg-pick-cat { position: relative; flex: 1 1 280px; max-width: 360px; }
.bg-pick .pf-cat-block {
  max-width: none;
  width: 100%;
}
.bg-pick .pf-cat-field { position: static; }
.bg-pick .pf-cat-trigger {
  height: 32px;
  min-height: 32px;
  padding: 0 28px 0 8px;
}
.bg-pick .pf-cat-trigger.has-value { padding-right: 48px; }
.bg-pick .bg-pick-fc-clear {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}
.bg-pick .pf-cat-dropdown {
  left: 0;
  right: auto;
  width: 360px;
  z-index: 30;
}
.bg-pick .pf-cat-cascade {
  grid-template-columns: 1fr 1fr;
  min-height: 180px;
  max-height: 240px;
}
.bg-pick-hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #8c8c8c;
}
.bg-pick-table {
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  overflow: auto;
  flex: 1;
  min-height: 160px;
  background: #fff;
}
.bg-pick-table .table { margin: 0; }
.bg-pick-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fafafa;
  font-size: 12px;
  font-weight: 600;
  color: #8c8c8c;
  white-space: nowrap;
}
.bg-pick-table td { font-size: 13px; color: #262626; }
.bg-pick-table tbody tr:hover td { background: #fafafa; }
.bg-pick-table th.bg-pick-ck,
.bg-pick-table td.bg-pick-ck { width: 44px; text-align: center; }
.bg-pick-table .bg-pick-spec { color: #595959; white-space: nowrap; }
.bg-pick-table th.bg-pick-price,
.bg-pick-table td.bg-pick-price {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  padding-right: 16px;
}
.bg-goods-brief b {
  display: block;
  font-weight: 600;
  color: var(--text, #334155);
}
.bg-goods-brief div {
  font-size: 12px;
  line-height: 1.5;
  color: #595959;
}
.lt-prize-table .input, .lt-prize-table .select { height: 32px; }
.tag.on { color: #389e0d; background: #f6ffed; border: 1px solid #b7eb8f; padding: 0 6px; border-radius: 2px; font-size: 12px; }
.tag.off { color: #8c8c8c; background: #fafafa; border: 1px solid #d9d9d9; padding: 0 6px; border-radius: 2px; font-size: 12px; }
.tag.wait { color: #d48806; background: #fffbe6; border: 1px solid #ffe58f; padding: 0 6px; border-radius: 2px; font-size: 12px; }
.tag.muted { color: #8c8c8c; background: #f5f5f5; border: 1px solid #e8e8e8; padding: 0 6px; border-radius: 2px; font-size: 12px; }

/* 入驻申请 · 图片上传（原型点选生成占位图） */
.sa-up-wrap {
  display: flex;
  align-items: center;
  min-height: 32px;
}
.sa-up-box {
  width: 88px;
  height: 88px;
  border: 1px dashed #d9d9d9;
  border-radius: 6px;
  background: #fafafa;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  padding: 0;
  overflow: hidden;
  font: inherit;
  color: inherit;
}
.sa-up-box:hover { border-color: var(--primary, #1677ff); }
.sa-up-box em {
  font-size: 11px;
  color: #8c8c8c;
  font-style: normal;
  line-height: 1.2;
}
.sa-up-box.has { border-style: solid; border-color: #d9d9d9; }
.sa-up-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sa-up-ico {
  width: 28px;
  height: 24px;
  position: relative;
  opacity: 0.55;
  border: 2px solid #c0c4cc;
  border-radius: 3px;
  box-sizing: border-box;
}
.sa-up-ico::before {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid #c0c4cc;
  top: 2px;
  left: 2px;
  box-sizing: border-box;
}
.sa-check {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  min-height: 32px;
  font-size: 13px;
  color: #595959;
  line-height: 1.4;
}
.sa-check input {
  margin-top: 2px;
  accent-color: var(--primary, #1677ff);
}
.sa-hint {
  margin: 4px 0 0;
  font-size: 12px;
  color: #8c8c8c;
  line-height: 1.5;
}
.sa-up-box.sa-up-static {
  cursor: default;
  pointer-events: none;
}
.sa-ubo-card {
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  background: #fafafa;
}
.sa-ubo-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 10px;
  min-height: 32px;
}
.sa-ubo-hd b { font-size: 13px; color: #262626; }
