/* 棱格数据面板 · 第 1 批设计语言。无框架、无外部资源。 */
:root {
  color-scheme: light;
  --bg-canvas: #F5F5F7;
  --bg-card: #FFFFFF;
  --bg-sunken: #F2F2F7;
  --bg-hover: #F5F5F7;
  --text-primary: #1C1C1E;
  --text-secondary: #636366;
  --text-tertiary: #8E8E93;
  --separator: rgba(60,60,67,.08);
  --card-stroke: rgba(60,60,67,.06);
  --primary: #0A84FF;
  --primary-deep: #0066D6;
  --primary-tint: #E8F1FF;
  --success: #34C759;
  --success-tint: #E9F8EE;
  --warning: #FF9500;
  --warning-tint: #FFF4E5;
  --danger: #FF3B30;
  --danger-tint: #FFEBEA;
  --ai-purple: #AF52DE;
  --ai-tint: #F4EBFB;
  --font-family: -apple-system, "SF Pro Text", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  --font-display: 32px;
  --font-h1: 24px;
  --font-h2: 18px;
  --font-card: 15px;
  --font-body: 13.5px;
  --font-caption: 12px;
  --font-overline: 11px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --radius-card: 18px;
  --radius-inner: 12px;
  --radius-button: 12px;
  --radius-input: 12px;
  --radius-pill: 999px;
  --radius-drawer: 20px;
  --shadow-card: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(28,28,30,.04);
  --shadow-float: 0 12px 40px rgba(28,28,30,.14);
  --focus-ring: 0 0 0 1.5px rgba(10,132,255,.35), inset 0 0 0 1px rgba(10,132,255,.2);
  --input-ring: 0 0 0 1px rgba(60,60,67,.10);
  --ease: cubic-bezier(.4,0,.2,1);
  --ease-feedback: cubic-bezier(.34,1.56,.64,1);
  --duration: 200ms;
  --sidebar-width: 248px;
  --topbar-height: 64px;
  --page-width: 1440px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; color: var(--text-primary); background: var(--bg-canvas); font: 400 var(--font-body)/1.55 var(--font-family); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; text-wrap: pretty; }
body, button, input, select, textarea, table, svg text { font-variant-numeric: tabular-nums; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1 { font-size: var(--font-h1); font-weight: 600; line-height: 1.3; letter-spacing: -.5px; }
h2 { font-size: var(--font-h2); font-weight: 600; line-height: 1.4; }
h3, h4 { font-size: var(--font-card); font-weight: 600; line-height: 1.45; }
a { color: var(--primary-deep); text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button, select, summary { cursor: pointer; }
button { color: inherit; }
button:focus-visible, a:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-inner); }
input:focus, select:focus, textarea:focus { outline: none; }
svg { display: inline-block; vertical-align: -.125em; }
.icon { width: 24px; height: 24px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 18px; height: 18px; }
.icon-xs { width: 14px; height: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; padding: 12px 20px; border-radius: 12px; background: var(--bg-card); }
.skip-link:focus { top: 8px; }
[hidden] { display: none !important; }
.text-secondary, .caption { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.text-primary { color: var(--primary-deep); }
.text-success { color: #24883F; }
.text-warning { color: #A75C00; }
.text-danger { color: var(--danger); }
.text-ai { color: var(--ai-purple); }
.caption { font-size: var(--font-caption); }
.overline { color: var(--text-tertiary); font-size: var(--font-overline); font-weight: 500; letter-spacing: .6px; text-transform: uppercase; }
.display { font-size: var(--font-display); line-height: 1.15; font-weight: 600; letter-spacing: -.8px; }
.nowrap { white-space: nowrap; }
.numeric { text-align: right; font-variant-numeric: tabular-nums; }
.stack { display: grid; gap: 16px; min-width: 0; }
.row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wrap { flex-wrap: wrap; }
.full-width { width: 100%; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }

/* 1440px 画板；顶栏全宽，侧栏独立滚动，内容高度由文档决定。 */
.app-shell { max-width: var(--page-width); margin-inline: auto; }
.topbar { position: sticky; top: 0; z-index: 30; height: var(--topbar-height); background: var(--bg-card); box-shadow: 0 1px 0 var(--card-stroke); }
.topbar-inner { height: 100%; max-width: var(--page-width); margin-inline: auto; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text-primary); white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: var(--primary); background: var(--primary-tint); }
.brand strong { font-size: 16px; letter-spacing: .1px; font-weight: 600; }
.brand-caption { margin-left: 13px; padding-left: 16px; border-left: 1px solid var(--separator); color: var(--text-tertiary); font-size: 12px; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.avatar { width: 32px; height: 32px; display: inline-grid; place-items: center; flex: 0 0 auto; background: var(--primary-tint); color: var(--primary-deep); border-radius: 50%; font-size: 12px; font-weight: 600; }
.account-button { display: flex; align-items: center; gap: 9px; padding: 3px 0 3px 4px; background: transparent; border: 0; border-radius: 12px; }
.account-copy { text-align: left; font-size: 12px; line-height: 1.4; }
.account-copy small { display: block; color: var(--text-tertiary); font-size: 10px; }
.freshness { display: inline-flex; align-items: center; gap: 7px; min-height: 28px; border: 0; border-radius: 999px; padding: 4px 10px; color: var(--text-secondary); background: var(--bg-hover); font-size: 11px; white-space: nowrap; }
.status-dot { width: 6px; height: 6px; background: var(--success); border-radius: 50%; flex: 0 0 auto; }
.sidebar { position: fixed; top: var(--topbar-height); bottom: 0; left: max(0px, calc((100vw - var(--page-width)) / 2)); z-index: 25; width: var(--sidebar-width); background: var(--bg-card); display: flex; flex-direction: column; padding: 18px 16px 16px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.sidebar-workspace { margin: 0 4px 17px; padding: 10px 11px; border-radius: 12px; background: var(--bg-canvas); display: flex; gap: 9px; align-items: center; }
.workspace-icon { color: var(--text-secondary); }
.sidebar-workspace strong { display: block; font-size: 12px; font-weight: 600; }
.sidebar-workspace small { display: block; color: var(--text-tertiary); font-size: 10px; }
.nav-group { margin-bottom: 13px; }
.sidebar-caption { padding: 0 12px; margin-bottom: 6px; font-size: 11px; font-weight: 500; letter-spacing: .6px; color: var(--text-tertiary); text-transform: uppercase; }
.nav-link { position: relative; display: flex; align-items: center; gap: 12px; min-height: 38px; padding: 7px 12px; margin: 2px 0; color: var(--text-secondary); border-radius: 12px; transition: background var(--duration) var(--ease), color var(--duration) var(--ease); }
.nav-link:hover { background: var(--bg-hover); color: var(--text-primary); }
.nav-link.active, .nav-link[aria-current="page"] { color: var(--primary); background: var(--primary-tint); font-weight: 600; }
.nav-link.active::before { content: ""; position: absolute; left: -4px; top: 11px; bottom: 11px; width: 3px; border-radius: 999px; background: var(--primary); }
.nav-link .badge { margin-left: auto; min-width: 20px; padding: 1px 6px; font-size: 10px; }
.nav-link[data-unavailable] { cursor: pointer; }
.sidebar-footer { margin-top: auto; padding: 16px 12px 0; }
.sidebar-health { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 9px; font-size: 11px; color: var(--text-secondary); }
.sidebar-health strong { font-size: 14px; color: var(--text-primary); font-weight: 600; }
.progress { height: 4px; background: var(--bg-sunken); border-radius: 999px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--primary); border-radius: inherit; }
.sidebar-footer a { display: flex; align-items: center; gap: 8px; margin-top: 15px; font-size: 11px; color: var(--text-tertiary); }
.mobile-menu-button, .sidebar-close { display: none; }
.nav-scrim { display: none; }
.app-main, .page-wrapper { margin-left: var(--sidebar-width); padding: 28px 32px 32px; min-width: 0; }
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.page-header .overline { margin-bottom: 6px; }
.page-subtitle { color: var(--text-secondary); margin-top: 7px; font-size: 12px; }
.page-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.page-footer { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--text-tertiary); font-size: 11px; margin-top: 28px; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); }
.span-3 { grid-column: span 3; min-width: 0; }
.span-4 { grid-column: span 4; min-width: 0; }
.span-6 { grid-column: span 6; min-width: 0; }
.span-8 { grid-column: span 8; min-width: 0; }
.span-12 { grid-column: 1 / -1; min-width: 0; }
.section-gap { margin-top: 32px; }

/* 同名类保留 Tabler 的开发映射，但不依赖 Tabler 样式。 */
.card { min-width: 0; background: var(--bg-card); border: 1px solid var(--card-stroke); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.card-header { padding: 20px 24px 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card-title { font-size: 15px; font-weight: 600; }
.card-subtitle { color: var(--text-secondary); font-size: 12px; margin-top: 4px; }
.card-body { padding: 20px 24px 24px; }
.card-footer { padding: 14px 24px; border-top: 1px solid var(--separator); }
.kpi { position: relative; padding: 20px; min-height: 162px; overflow: hidden; }
.kpi-label { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-secondary); gap: 6px; }
.kpi-icon { color: var(--text-tertiary); }
.kpi-value { margin: 13px 0 6px; font-size: 32px; font-weight: 600; line-height: 1.1; letter-spacing: -.9px; white-space: nowrap; }
.kpi-value .unit { font-size: 13px; letter-spacing: 0; margin-left: 3px; color: var(--text-tertiary); font-weight: 400; }
.kpi-note { font-size: 11px; color: var(--text-tertiary); }
.kpi-footer { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 13px; }
.delta { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; white-space: nowrap; color: #24883F; }
.delta.warning { color: #A75C00; }
.delta.danger { color: var(--danger); }
.sparkline { width: 84px; height: 27px; overflow: visible; color: var(--primary); flex: 0 1 auto; }
.sparkline path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.context-strip { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 16px 0 0; color: var(--text-secondary); font-size: 11px; }
.context-strip .row { gap: 16px; flex-wrap: wrap; }
.context-strip strong { color: var(--text-primary); font-weight: 600; }

/* 默认 / hover / active / disabled / loading：三种按钮均覆盖。 */
.btn { --btn-bg: var(--bg-card); --btn-fg: var(--text-primary); --btn-hover: var(--bg-hover); --btn-shadow: inset 0 0 0 1px var(--card-stroke); display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 7px 13px; border: 0; border-radius: var(--radius-button); background: var(--btn-bg); color: var(--btn-fg); box-shadow: var(--btn-shadow); font-size: 12px; font-weight: 500; line-height: 1.4; white-space: nowrap; text-decoration: none; transition: background var(--duration) var(--ease), box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease), opacity var(--duration) var(--ease); }
.btn-primary { --btn-bg: var(--primary); --btn-fg: #FFFFFF; --btn-hover: var(--primary-deep); --btn-shadow: none; }
.btn-secondary { --btn-bg: var(--bg-card); --btn-fg: var(--text-primary); }
.btn-link { --btn-bg: transparent; --btn-fg: var(--primary-deep); --btn-hover: var(--primary-tint); --btn-shadow: none; }
.btn-ai { --btn-bg: var(--ai-tint); --btn-fg: #8B37B4; --btn-hover: #ECDDF7; --btn-shadow: none; }
.btn:hover, .btn.is-hover { background: var(--btn-hover); }
.btn:active, .btn.is-active { background: var(--btn-hover); transform: scale(.98); }
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.btn:disabled, .btn[aria-disabled="true"], .btn.is-disabled { cursor: not-allowed; opacity: .4; transform: none; }
.btn:disabled:hover, .btn[aria-disabled="true"]:hover { background: var(--btn-bg); }
.btn.is-loading, .btn[aria-busy="true"] { cursor: progress; opacity: .75; pointer-events: none; }
.btn.is-loading::before, .btn[aria-busy="true"]::before { content: ""; width: 13px; height: 13px; border: 1.6px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
.btn-lg { min-height: 40px; padding: 9px 16px; }
.btn-sm { min-height: 28px; font-size: 11px; padding: 4px 8px; }
.btn-icon { width: 36px; padding: 7px; }
.btn-icon.btn-sm { width: 28px; padding: 4px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 输入框默认单环，聚焦双环。 */
.form-label { display: block; font-size: 11px; color: var(--text-secondary); margin-bottom: 6px; }
.form-control, .form-select { width: 100%; min-height: 36px; padding: 8px 12px; border: 0; border-radius: var(--radius-input); background: var(--bg-sunken); color: var(--text-primary); font-size: 12px; line-height: 1.5; box-shadow: var(--input-ring); transition: box-shadow var(--duration) var(--ease), background var(--duration) var(--ease); }
.form-select { padding-right: 28px; }
.form-control::placeholder { color: var(--text-tertiary); }
.form-control:hover, .form-select:hover { background: var(--bg-hover); }
.form-control:focus, .form-select:focus, .form-control.is-focus, .form-select.is-focus { outline: none; background: var(--bg-card); box-shadow: var(--focus-ring); }
.form-control:disabled, .form-select:disabled { opacity: .45; cursor: not-allowed; }
.input-icon { position: relative; min-width: 0; }
.input-icon > .icon { position: absolute; left: 11px; top: 9px; color: var(--text-tertiary); pointer-events: none; }
.input-icon .form-control { padding-left: 36px; }
.filter-bar { margin-bottom: 20px; padding: 16px 20px; }
.filter-main { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.filter-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filter-controls .form-select { width: auto; min-width: 126px; }
.filter-controls .btn { color: var(--text-secondary); }
.segmented { display: inline-flex; padding: 3px; gap: 2px; background: var(--bg-sunken); border-radius: 12px; min-width: 0; }
.segmented button { border: 0; min-height: 30px; padding: 5px 10px; border-radius: 9px; background: transparent; color: var(--text-secondary); font-size: 12px; white-space: nowrap; transition: background var(--duration) var(--ease), color var(--duration) var(--ease), transform var(--duration) var(--ease); }
.segmented button:hover { color: var(--primary-deep); }
.segmented button:active { transform: scale(.98); }
.segmented button[aria-pressed="true"], .segmented button.active { background: var(--bg-card); color: var(--primary-deep); box-shadow: 0 1px 3px rgba(28,28,30,.06); font-weight: 500; }
.filter-meta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; font-size: 11px; color: var(--text-tertiary); }
.filter-chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.filter-chip { border: 0; border-radius: 999px; padding: 4px 9px; background: var(--bg-canvas); color: var(--text-secondary); font-size: 11px; display: inline-flex; align-items: center; gap: 4px; }
.advanced-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; padding-top: 16px; }
.disclosure { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--duration) var(--ease); }
.disclosure.is-open { grid-template-rows: 1fr; }
.disclosure-inner { min-height: 0; overflow: hidden; visibility: hidden; transition: visibility var(--duration) var(--ease); }
.disclosure.is-open > .disclosure-inner { visibility: visible; }

.badge { display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 3px 8px; color: var(--text-secondary); background: var(--bg-sunken); border-radius: var(--radius-pill); font-size: 11px; font-weight: 400; line-height: 1.45; white-space: nowrap; }
.badge-primary { color: var(--primary-deep); background: var(--primary-tint); }
.badge-success { color: #24883F; background: var(--success-tint); }
.badge-warning { color: #A75C00; background: var(--warning-tint); }
.badge-danger { color: var(--danger); background: var(--danger-tint); }
.badge-ai { color: #8B37B4; background: var(--ai-tint); }
.badge .status-dot { width: 5px; height: 5px; }
.ai-summary { height: 100%; }
.ai-summary .card-header { padding-bottom: 5px; }
.ai-heading { display: flex; align-items: center; gap: 8px; }
.ai-icon { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--ai-tint); color: var(--ai-purple); }
.ai-summary .card-body { padding-top: 14px; }
.diagnosis-list { display: grid; gap: 17px; }
.diagnosis-item { display: grid; gap: 6px; }
.diagnosis-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 7px; font-size: 12px; font-weight: 600; }
.diagnosis-item p { color: var(--text-secondary); font-size: 11px; line-height: 1.6; }
.diagnosis-impact { font-size: 11px; color: var(--text-tertiary); }
.ai-summary .btn { margin-top: 20px; }

/* 手写 SVG 图表。数据与图形直接存在 HTML；CSS 只定义视觉。 */
.chart { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { font: 400 11px var(--font-family); fill: var(--text-tertiary); }
.chart .grid-line { stroke: var(--card-stroke); stroke-width: .5; }
.chart .chart-line { fill: none; stroke: var(--primary); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.chart .chart-comparison { fill: none; stroke: var(--text-tertiary); stroke-width: 1.4; stroke-dasharray: 4 5; opacity: .45; vector-effect: non-scaling-stroke; }
.chart .chart-dot { fill: var(--bg-card); stroke: var(--primary); stroke-width: 2; }
.chart .bar { fill: var(--primary); }
.chart .bar-secondary { fill: var(--primary); opacity: .2; }
.chart .bar-neutral { fill: var(--text-tertiary); opacity: .35; }
.chart-legend { display: flex; align-items: center; gap: 14px; font-size: 11px; color: var(--text-secondary); flex-wrap: wrap; }
.legend-item { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.legend-mark { width: 13px; height: 3px; background: var(--primary); border-radius: 2px; }
.legend-mark.muted { height: 0; background: transparent; border-top: 1px dashed var(--text-tertiary); }
.legend-mark.bar-mark { width: 7px; height: 7px; border-radius: 2px; opacity: .25; }
.trend-card .card-body { padding-top: 14px; }
.trend-block + .trend-block { margin-top: 17px; }
.trend-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 0 2px 36px; font-size: 12px; }
.trend-heading strong { font-weight: 600; }
.trend-heading span { font-size: 11px; color: var(--text-tertiary); }
.trend-svg { max-height: 138px; }
.chart-caption { color: var(--text-tertiary); font-size: 11px; margin-top: 8px; }
.chart-tooltip { fill: var(--bg-card); stroke: var(--card-stroke); stroke-width: 1; }
.rank-list { display: grid; gap: 15px; }
.rank-item { display: grid; grid-template-columns: 110px minmax(0,1fr) 65px; gap: 12px; align-items: center; font-size: 11px; }
.rank-track { height: 6px; background: var(--bg-sunken); border-radius: 999px; overflow: hidden; display: flex; }
.rank-track > i { height: 100%; background: var(--primary); display: block; }
.rank-track > i.cn { background: var(--text-tertiary); opacity: .4; }

/* 表格只在自己的容器内横滚；首列粘附，任何字段均不折叠隐藏。 */
.table-scroll { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; border-radius: 0 0 18px 18px; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; line-height: 1.4; }
.table th { height: 38px; padding: 10px 12px; background: var(--bg-sunken); color: var(--text-secondary); font-size: 11px; font-weight: 500; letter-spacing: .6px; text-transform: uppercase; text-align: left; white-space: nowrap; border: 0; }
.table td { height: 52px; padding: 9px 12px; vertical-align: middle; border: 0; box-shadow: inset 0 -1px 0 var(--card-stroke); background: var(--bg-card); transition: background var(--duration) var(--ease); white-space: nowrap; }
.table th:first-child, .table td:first-child { padding-left: 24px; }
.table th:last-child, .table td:last-child { padding-right: 24px; }
.table tbody tr:last-child td { box-shadow: none; }
.table tbody tr:hover td, .table tbody tr:focus-within td { background: var(--bg-hover); }
.table .numeric { text-align: right; }
.table th:first-child, .table td:first-child { position: sticky; left: 0; z-index: 2; }
.table thead th:first-child { z-index: 3; }
.table th button { background: none; color: inherit; border: 0; font: inherit; text-transform: inherit; letter-spacing: inherit; padding: 0; display: inline-flex; gap: 4px; align-items: center; white-space: nowrap; }
.table th.numeric button { justify-content: flex-end; }
.table th[aria-sort="descending"], .table th[aria-sort="ascending"] { color: var(--primary-deep); }
.sort-icon { width: 12px; height: 12px; }
.table th[aria-sort="ascending"] .sort-icon { transform: rotate(180deg); }
.table .cell-secondary { display: block; color: var(--text-tertiary); font-size: 10px; margin-top: 3px; }
.table .cell-secondary.row-between { display: flex; }
.store-cell { display: flex; align-items: center; gap: 9px; }
.store-avatar { width: 26px; height: 26px; flex: 0 0 auto; display: inline-grid; place-items: center; background: var(--bg-sunken); color: var(--text-secondary); border-radius: 8px; }
.store-name { color: var(--text-primary); font-size: 12px; font-weight: 500; }
.table-card .card-header { padding-bottom: 20px; }
.health-table { min-width: 1000px; }
.health-table td { font-size: 12px; }
.table-note { padding: 12px 24px; font-size: 11px; color: var(--text-tertiary); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.order-filters { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; padding: 0 24px 20px; }
.order-filters .field { width: 148px; }
.order-filters .search-field { flex: 1 1 240px; }
.order-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 20px; }
.order-tabs button { display: inline-flex; align-items: center; gap: 7px; border: 0; border-radius: 10px; padding: 8px 12px; background: transparent; color: var(--text-secondary); font-size: 12px; }
.order-tabs button[aria-pressed="true"] { color: var(--primary-deep); background: var(--primary-tint); font-weight: 500; }
.order-tabs .count { font-size: 10px; opacity: .75; }
.orders-table { min-width: 1370px; }
.orders-table th, .orders-table td { padding-inline: 10px; }
.orders-table td { font-size: 12px; }
.orders-table .order-no { color: var(--primary-deep); font-size: 12px; font-weight: 500; }
.orders-table .sku-thumb { display: grid; place-items: center; width: 40px; height: 34px; border-radius: 9px; background: var(--bg-sunken); }
.shoe-svg { width: 35px; height: 25px; }
.shoe-svg .shoe-upper { fill: #E3E4E9; stroke: #C5C7D0; stroke-width: 1; }
.shoe-svg .shoe-sole { fill: #FFFFFF; stroke: #C5C7D0; stroke-width: 1; }
.shoe-svg .shoe-lace { fill: none; stroke: var(--text-tertiary); stroke-width: 1; stroke-linecap: round; }
.orders-table .row-action { opacity: 0; transition: opacity var(--duration) var(--ease); }
.orders-table tr:hover .row-action, .orders-table tr:focus-within .row-action { opacity: 1; }
.row-detail { display: inline-flex; align-items: center; gap: 4px; color: var(--text-tertiary); background: none; border: 0; padding: 3px 0 0; font-size: 10px; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 24px; font-size: 11px; color: var(--text-secondary); border-top: 1px solid var(--separator); }
.pagination-controls { display: flex; align-items: center; gap: 5px; }
.page-number { min-width: 29px; height: 29px; min-height: 29px; padding: 4px 8px; }
.page-number[aria-current="page"] { background: var(--primary-tint); color: var(--primary-deep); box-shadow: none; }
.pagination .form-select { min-height: 29px; width: auto; padding: 4px 24px 4px 9px; font-size: 11px; }
.table-scroll-hint { display: flex; justify-content: flex-end; align-items: center; gap: 5px; padding: 0 24px 10px; font-size: 10px; color: var(--text-tertiary); }

/* 右侧 480px 详情抽屉，与左侧移动导航互相独立。 */
.drawer { width: min(480px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; position: fixed; inset: 0 0 0 auto; margin: 0; padding: 0; border: 0; border-radius: 20px 0 0 20px; color: var(--text-primary); background: var(--bg-card); box-shadow: var(--shadow-float); overflow: auto; }
.drawer::backdrop { background: rgba(28,28,30,.22); }
.drawer[open] { animation: drawer-in var(--duration) var(--ease); }
.drawer-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 24px; }
.drawer-body { padding: 0 24px 24px; }
.drawer-section { padding-top: 24px; }
.detail-list { display: grid; grid-template-columns: 1fr 1.4fr; gap: 15px 18px; margin: 18px 0 0; font-size: 12px; }
.detail-list dt { color: var(--text-secondary); }
.detail-list dd { margin: 0; overflow-wrap: anywhere; text-align: right; }
.drawer-callout { padding: 16px; border-radius: 12px; margin-top: 24px; background: var(--ai-tint); font-size: 12px; color: #8B37B4; }
@keyframes drawer-in { from { transform: translateX(100%); opacity: .5; } to { transform: translateX(0); opacity: 1; } }
.popover-wrap { position: relative; }
.popover { position: absolute; top: calc(100% + 12px); right: 0; z-index: 45; width: 280px; background: var(--bg-card); box-shadow: var(--shadow-float); border: 1px solid var(--card-stroke); border-radius: 12px; padding: 16px; font-size: 12px; }
.popover p { margin-top: 8px; }
.popover .btn { margin-top: 8px; }
.toast { position: fixed; bottom: 24px; left: 50%; z-index: 90; max-width: calc(100vw - 32px); padding: 12px 18px; border: 1px solid var(--card-stroke); border-radius: 12px; box-shadow: var(--shadow-float); background: var(--bg-card); color: var(--text-primary); font-size: 12px; transform: translate(-50%,16px) scale(.98); opacity: 0; visibility: hidden; transition: transform var(--duration) var(--ease-feedback), opacity var(--duration) var(--ease), visibility var(--duration); }
.toast.is-visible { transform: translate(-50%,0) scale(1); opacity: 1; visibility: visible; }
.empty-state { display: grid; justify-items: center; align-content: center; text-align: center; gap: 8px; padding: 24px; min-height: 170px; }
.empty-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: var(--text-tertiary); background: var(--bg-sunken); }
.empty-state h3 { font-size: 13px; }
.empty-state p { font-size: 11px; color: var(--text-tertiary); max-width: 240px; }
.skeleton { position: relative; overflow: hidden; background: var(--bg-sunken); border-radius: 6px; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg,transparent,rgba(255,255,255,.7),transparent); animation: shimmer 1.6s var(--ease) infinite; }
.skeleton-line { height: 9px; width: 76%; margin: 10px 0; }
.skeleton-chart { height: 86px; border-radius: 12px; }
@keyframes shimmer { to { transform: translateX(100%); } }

/* 设计系统：紧凑的三列组件展台，1440px 首屏可读。 */
.system-main { padding-top: 24px; }
.system-main .page-header { margin-bottom: 20px; }
.system-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; align-items: start; }
.system-column { display: grid; gap: 16px; min-width: 0; }
.spec-card { padding: 16px; }
.spec-card h2 { font-size: 15px; margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; }
.spec-number { font-size: 10px; letter-spacing: .6px; color: var(--text-tertiary); font-weight: 400; }
.swatches { display: grid; grid-template-columns: repeat(6,1fr); gap: 10px 6px; }
.swatch { min-width: 0; text-align: center; font-size: 9px; line-height: 1.3; color: var(--text-secondary); }
.swatch-color { height: 24px; border-radius: 9px; margin-bottom: 4px; box-shadow: inset 0 0 0 1px var(--card-stroke); background: var(--swatch); }
.swatch code { display: block; color: var(--text-tertiary); font-size: 8px; font-family: var(--font-family); }
.palette-surfaces { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; margin-top: 12px; }
.surface-sample { padding: 8px; border-radius: 9px; text-align: center; font-size: 9px; color: var(--text-secondary); background: var(--swatch); box-shadow: inset 0 0 0 1px var(--card-stroke); }
.type-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 3px 0; line-height: 1.2; }
.type-row small { white-space: nowrap; font-size: 10px; color: var(--text-tertiary); }
.type-display { font-size: 32px; line-height: 1.2; font-weight: 600; letter-spacing: -.8px; }
.type-h1 { font-size: 24px; font-weight: 600; }
.type-h2 { font-size: 18px; font-weight: 600; }
.type-card { font-size: 15px; font-weight: 600; }
.type-body { font-size: 13.5px; }
.type-caption { font-size: 12px; color: var(--text-secondary); }
.type-overline { font-size: 11px; font-weight: 500; letter-spacing: .6px; text-transform: uppercase; color: var(--text-secondary); }
.geometry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.space-demo { display: flex; align-items: flex-end; gap: 9px; height: 36px; }
.space-demo i { display: block; width: var(--sample); height: var(--sample); background: var(--primary-tint); border-radius: 3px; }
.space-labels { display: flex; gap: 10px; font-size: 9px; color: var(--text-tertiary); margin-top: 7px; }
.radius-demo { display: flex; gap: 10px; align-items: center; height: 42px; }
.radius-demo i { width: 40px; height: 40px; background: var(--bg-sunken); border: 1px solid var(--card-stroke); }
.shadow-demo { display: flex; gap: 12px; margin-top: 15px; }
.shadow-demo span { display: grid; place-items: center; flex: 1; height: 38px; background: var(--bg-card); border-radius: 12px; box-shadow: var(--shadow-card); color: var(--text-secondary); font-size: 10px; }
.shadow-demo span:last-child { box-shadow: var(--shadow-float); }
.state-grid { display: grid; grid-template-columns: 52px repeat(5,minmax(0,1fr)); gap: 9px 4px; align-items: center; }
.state-grid .state-label { font-size: 9px; text-align: center; color: var(--text-tertiary); }
.state-grid .state-name { font-size: 10px; color: var(--text-secondary); }
.state-grid .btn { min-height: 31px; padding: 4px 3px; font-size: 10px; gap: 3px; border-radius: 10px; }
.state-grid .btn.is-loading::before { width: 9px; height: 9px; }
.spec-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.spec-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.spec-table { margin-inline: -16px; }
.spec-table .table { min-width: 300px; }
.spec-table th, .spec-table td { font-size: 11px; }
.spec-table .table td { height: 52px; }
.spec-chart { height: 98px; }
.spec-chart + .chart-legend { margin-top: 7px; }
.chart-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.spec-card .empty-state { min-height: 125px; padding: 12px 4px; gap: 6px; }
.spec-card .empty-icon { width: 34px; height: 34px; border-radius: 11px; }
.spec-card .empty-state .btn { min-height: 28px; font-size: 11px; }
.spec-state-title { color: var(--text-tertiary); font-size: 10px; margin-bottom: 7px; }
.drawer-mini { border-radius: 12px; background: var(--bg-sunken); padding: 12px; position: relative; height: 83px; overflow: hidden; margin-top: 12px; }
.drawer-mini-content { background: var(--bg-card); box-shadow: var(--shadow-float); border-radius: 20px 0 0 20px; margin: -12px -12px -12px auto; padding: 15px; width: 76%; height: 83px; display: flex; align-items: center; justify-content: space-between; font-size: 11px; }
.system-links { display: flex; gap: 6px; flex-wrap: wrap; }

@media (min-width: 1600px) { .app-shell { box-shadow: 1px 0 0 var(--card-stroke), -1px 0 0 var(--card-stroke); } }
@media (max-width: 1199px) {
  .app-main, .page-wrapper { padding-inline: 24px; }
  .topbar-inner { padding-inline: 24px; }
  .brand-caption { display: none; }
  .kpi { padding: 18px; }
  .kpi-value { font-size: 28px; }
  .sparkline { width: 58px; }
  .grid > .span-8, .grid > .span-4 { grid-column: span 12; }
  .system-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .system-column:last-child { grid-column: 1 / -1; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .system-column:last-child .spec-card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  :root { --topbar-height: 56px; }
  .topbar-inner { gap: 8px; padding-inline: 16px; }
  .topbar-actions { gap: 6px; }
  .mobile-menu-button { display: inline-flex; }
  .brand { gap: 8px; }
  .brand strong { font-size: 14px; }
  .brand-mark { width: 28px; height: 28px; border-radius: 9px; }
  .brand-mark .icon { width: 21px; height: 21px; }
  .sidebar { top: 0; bottom: 0; left: 0; z-index: 65; padding-top: 20px; width: 248px; transform: translateX(-105%); visibility: hidden; transition: transform var(--duration) var(--ease), visibility var(--duration) var(--ease); }
  .nav-open .sidebar { transform: translateX(0); visibility: visible; }
  .nav-open { overflow: hidden; }
  .nav-scrim { display: block; position: fixed; inset: 0; z-index: 60; border: 0; background: rgba(28,28,30,.24); opacity: 0; visibility: hidden; transition: opacity var(--duration) var(--ease), visibility var(--duration) var(--ease); }
  .nav-open .nav-scrim { opacity: 1; visibility: visible; }
  .sidebar-close { display: flex; justify-content: space-between; align-items: center; padding: 0 10px 16px; font-weight: 600; font-size: 13px; }
  .app-main, .page-wrapper { margin-left: 0; padding: 24px; }
  .account-copy { display: none; }
  .system-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .system-column:last-child { grid-column: 1 / -1; grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 699px) {
  .app-main, .page-wrapper { padding: 24px 16px; }
  .topbar-inner { padding-inline: 10px; }
  .brand strong { font-size: 13px; }
  .topbar-actions .freshness { padding: 4px 7px; font-size: 10px; }
  .freshness .freshness-label { display: none; }
  .topbar-refresh span, .account-chevron { display: none; }
  .topbar-refresh { width: 28px; min-height: 28px; padding: 4px; }
  .account-button { padding-left: 0; }
  .avatar { width: 28px; height: 28px; font-size: 11px; }
  .page-header { align-items: flex-start; gap: 12px; margin-bottom: 20px; }
  .page-header .page-actions { justify-content: flex-end; }
  .page-header .page-actions .btn { padding-inline: 9px; font-size: 11px; }
  .page-subtitle { font-size: 11px; max-width: 230px; }
  .page-header .overline { font-size: 10px; }
  h1 { font-size: 24px; }
  .grid { gap: 12px; }
  .grid > .span-3 { grid-column: span 6; }
  .grid > .span-4, .grid > .span-6, .grid > .span-8 { grid-column: span 12; }
  .kpi { padding: 16px; min-height: 154px; }
  .kpi-label { font-size: 11px; }
  .kpi-value { margin-top: 15px; font-size: 28px; letter-spacing: -.8px; }
  .kpi-value .unit { font-size: 11px; }
  .kpi-icon { width: 16px; height: 16px; }
  .kpi-note { font-size: 10px; }
  .kpi-footer { gap: 3px; margin-top: 12px; }
  .kpi-footer .delta { font-size: 10px; }
  .sparkline { width: 48px; height: 22px; }
  .filter-bar { padding: 14px; }
  .filter-main, .filter-controls { width: 100%; gap: 10px; }
  .segmented { width: 100%; overflow-x: auto; scrollbar-width: none; }
  .segmented button { flex: 1 0 auto; padding-inline: 9px; font-size: 11px; }
  .filter-controls .form-select { min-width: 0; width: 100%; }
  .filter-controls > label { flex: 1 1 100px; min-width: 0; }
  .filter-controls .btn { padding-inline: 9px; }
  .filter-meta { align-items: flex-start; font-size: 10px; }
  .advanced-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .card-header { padding: 20px 20px 0; }
  .card-body { padding: 16px 20px 20px; }
  .card-subtitle { font-size: 11px; }
  .section-gap { margin-top: 28px; }
  .context-strip { align-items: flex-start; }
  .context-strip .row { gap: 8px 12px; }
  .trend-card .card-header { flex-wrap: wrap; }
  .trend-heading { margin-left: 0; }
  .trend-svg { min-height: 110px; }
  .table th:first-child, .table td:first-child { padding-left: 20px; }
  .table td:first-child::after, .table th:first-child::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 1px; box-shadow: 3px 0 8px rgba(28,28,30,.04); }
  .order-filters { padding-inline: 20px; gap: 12px; }
  .order-filters .field { width: auto; flex: 1 1 130px; }
  .order-filters .search-field { flex: 1 1 100%; }
  .order-filters > .btn { flex: 1; }
  .order-tabs { gap: 2px; }
  .order-tabs button { padding-inline: 9px; font-size: 11px; }
  .orders-table .row-action { opacity: 1; }
  .pagination { padding: 14px 20px; }
  .pagination-controls { gap: 3px; }
  .pagination .page-select-label { display: none; }
  .table-note { padding-inline: 20px; }
  .system-grid { grid-template-columns: 1fr; }
  .system-column:last-child { grid-column: auto; grid-template-columns: 1fr; }
  .system-column:last-child .spec-card:last-child { grid-column: auto; }
  .system-main .page-header { display: grid; }
  .popover { width: min(280px,calc(100vw - 32px)); }
  .drawer { width: 100%; border-radius: 20px 0 0 20px; }
  .page-footer { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Production bridge: the source design system above is copied verbatim.
   Tabler and legacy.css remain available to the thirteen deferred modules. */
:root { --tblr-body-bg:var(--bg-canvas); --tblr-body-color:var(--text-primary); --tblr-bg-surface:var(--bg-card); --tblr-bg-surface-secondary:var(--bg-sunken); --tblr-border-color:var(--separator); --tblr-muted:var(--text-secondary); --tblr-primary:var(--primary); }
body.lengge-workspace { background:var(--bg-canvas); color:var(--text-primary); font-family:var(--font-family); font-size:var(--font-body); }
body .page.app-shell { display:block; width:100%; min-height:calc(100vh - var(--topbar-height)); }
body .page-wrapper { display:block; margin:0 0 0 248px!important; padding:28px 32px 32px; background:transparent; min-height:calc(100vh - var(--topbar-height)); }
body .topbar { height:var(--topbar-height); min-height:0; background:var(--bg-card); box-shadow:0 1px 0 var(--card-stroke); border:0; }
.topbar .row { flex-wrap:nowrap; margin:0; }
.topbar .row>* { width:auto; max-width:none; padding:0; margin:0; flex-shrink:0; }
.topbar .brand-mark { font-size:inherit; }
.topbar .brand-caption { font-size:12px; }
.topbar .freshness { max-width:340px; color:var(--text-secondary); border:0; background:var(--bg-hover); }
#freshnessText { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.topbar .account-copy { max-width:160px; }
.dropdown-menu { color:var(--text-primary); border:1px solid var(--card-stroke); border-radius:12px; box-shadow:var(--shadow-float); background:var(--bg-card); }
.freshness-menu { width:340px; max-width:calc(100vw - 24px); padding:18px; font-size:12px; }
#freshnessList { margin:12px 0; }
.account-menu { min-width:220px; padding:12px; }
.dropdown-item { border-radius:8px; font-size:12px; }
body .sidebar { display:flex!important; width:248px!important; max-width:248px!important; height:auto; background:var(--bg-card)!important; color:var(--text-secondary); box-shadow:none; border:0; padding:18px 16px 16px; }
.sidebar .sidebar-workspace { margin-inline:4px; }
.sidebar .nav-item { display:block; }
.sidebar .nav-link { min-height:38px; margin:2px 0; font-size:13.5px; font-weight:400; box-shadow:none; }
.sidebar .nav-link.active { background:var(--primary-tint); color:var(--primary); font-weight:600; }
.sidebar .nav-link .icon { width:24px; height:24px; stroke-width:1.6; }
.sidebar .sidebar-caption { margin:0 0 6px; padding:0 12px; color:var(--text-tertiary); }
.sidebar .sidebar-footer { padding:16px 12px 0; border-top:1px solid var(--separator); }
.sidebar .sidebar-health { display:flex; margin:0 0 9px; padding:0; border:0; background:none; }
.health-note { color:var(--text-tertiary); font-size:10px; line-height:1.65; margin-top:10px; }
.page-header { margin:0 0 24px; padding:0; min-height:0; }
.page-header h1 { font-size:24px; font-weight:600; line-height:1.3; }
.page-actions { max-width:50%; justify-content:flex-end; }
.page-actions .badge { max-width:310px; overflow:hidden; text-overflow:ellipsis; display:inline-block; }
.batch-page { min-width:0; }
.batch-page .card { background:var(--bg-card); border:1px solid var(--card-stroke); border-radius:18px; box-shadow:var(--shadow-card); }
.batch-page .card-header { min-height:0; border:0; border-radius:0; background:transparent; padding:20px 24px 0; }
.batch-page .card-header .card-title { margin:0; font-size:15px; font-weight:600; }
.batch-page .card-body { padding:20px 24px 24px; }
.batch-page .card-subtitle { margin-top:4px; line-height:1.6; color:var(--text-secondary); }
.batch-page .row, .filter-bar .row { margin:0; }
.batch-page .row>*, .filter-bar .row>* { width:auto; max-width:none; padding:0; margin:0; flex-shrink:initial; }
.batch-page .kpi { padding:20px; min-height:170px; height:auto; }
.batch-page .kpi-value { font-size:32px; line-height:1.1; margin:13px 0 6px; letter-spacing:-.9px; color:var(--text-primary); }
.kpi-label-text { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.kpi-note { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; min-height:34px; line-height:1.55; }
.kpi-footer { margin-top:12px; min-height:27px; }
.metric-spark.sparkline { margin:0; width:84px; height:27px; }
.metric-spark .spark-svg { position:static; display:block; width:100%; height:27px; }
.metric-spark .spark-svg polygon { fill:var(--primary); opacity:.05; }
.metric-spark .spark-svg polyline { stroke:var(--primary); stroke-width:2; }
.spark-placeholder { display:inline-block; width:60px; height:22px; border-bottom:1px dashed var(--separator); }
.context-strip { margin-top:16px; }
.context-strip .row { align-items:center; gap:12px 20px; }
.context-metric { display:inline-flex; align-items:center; gap:6px; flex-wrap:wrap; }
.context-note { max-width:240px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--text-tertiary); }
.batch-page .trend-card .card-body { padding-top:14px; }
.trend-empty { display:grid; justify-items:center; align-content:center; gap:5px; height:114px; margin-top:8px; background:repeating-linear-gradient(to bottom,transparent 0,transparent 36px,var(--separator) 37px,transparent 38px); color:var(--text-tertiary); font-size:11px; }
.trend-empty small { font-size:10px; }
.trend-heading { margin-left:0; }
.metric-timeline { position:relative; padding-top:10px; }
.metric-timeline .caption,.metric-timeline-label { font-size:10px; color:var(--text-tertiary); }
.metric-timeline .form-range { width:100%; height:12px; accent-color:var(--primary); margin:6px 0 0; }
.metric-timeline-ticks { display:flex; justify-content:space-between; font-size:9px; margin-top:0; padding:0; color:var(--text-tertiary); }
.metric-timeline-bubble { background:var(--primary); }
.batch-page .diagnosis-item { display:grid; grid-template-columns:1fr; border:0; padding:0; gap:6px; }
.batch-page .diagnosis-item .text-secondary { font-size:11px; line-height:1.65; }
.batch-page .ai-summary { background:var(--bg-card); border-color:var(--card-stroke); }
.batch-page .ai-summary .card-body { padding-top:16px; }
.ai-evidence.alert { display:block; margin:0; padding:14px; font-size:11px; line-height:1.6; background:var(--ai-tint); color:#8B37B4; border:0; border-radius:12px; }
.ai-evidence p { margin:5px 0 0; font-size:10px; }
.batch-page .table-card .card-header { padding-bottom:20px; }
.batch-page .table { margin:0; color:var(--text-primary); --tblr-table-bg:var(--bg-card); }
.batch-page .table thead th { background:var(--bg-sunken); padding:10px 12px; height:38px; color:var(--text-secondary); font-size:11px; font-weight:500; letter-spacing:.4px; border:0; }
.batch-page .table td { background:var(--bg-card); padding:11px 12px; border:0; height:58px; }
.batch-page .table th:first-child,.batch-page .table td:first-child { padding-left:24px; }
.batch-page .table th:last-child,.batch-page .table td:last-child { padding-right:24px; }
.batch-page .table tbody tr:hover td { background:var(--bg-hover); }
.batch-page .table .numeric { text-align:right; }
.batch-page .table .store-name { display:block; max-width:220px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.batch-page .table .cell-secondary { font-size:10px; max-width:190px; overflow:hidden; text-overflow:ellipsis; }
.batch-page .table .sort-active { color:var(--primary-deep); }
.batch-page .table .sortable-th::after { font-size:9px; opacity:.65; }
.table-note { line-height:1.6; }
.batch-page .analytics-card { height:100%; }
.rank-list.store-bar-list { gap:16px; max-height:360px; overflow-y:auto; }
.rank-item.store-bar-row { display:grid; grid-template-columns:18px minmax(0,1fr) auto; grid-template-areas:"rank name value" ". bar bar"; padding:0; gap:5px 8px; }
.store-bar-rank { grid-area:rank; font-size:10px; color:var(--text-tertiary); text-align:left; }
.store-bar-name { grid-area:name; min-width:0; font-size:11px; }
.store-bar-value { grid-area:value; font-size:10px; text-align:right; white-space:normal; }
.store-bar-value .badge { font-size:9px; padding:1px 4px; }
.rank-track.store-bar-track { grid-area:bar; position:relative; width:100%; height:6px; min-width:0; background:var(--bg-sunken); border-radius:99px; }
.store-bar-prev { background:#dbe9fc; top:0; bottom:0; }
.store-bar-fill,.store-bar-seg { top:0; bottom:0; background:var(--primary); min-width:0; border-radius:0; }
.store-bar-cn { background:#92929a; }
.legend-mark.cn { background:#92929a; }
.legend-mark.gmv { background:var(--warning); }
.store-bar-tooltip { max-width:min(340px,calc(100vw - 24px)); }
.batch-page .chart-placeholder { height:245px; position:relative; }
.batch-page .chart-placeholder>svg { position:absolute; inset:10px 0 30px; width:100%; height:205px; }
.batch-page .chart-placeholder>svg path:first-child { fill:none; }
.chart-placeholder .empty-state { min-height:245px; }
.chart-axis { color:var(--text-tertiary); }
.operator-summary>summary { display:flex; align-items:baseline; justify-content:space-between; gap:12px; padding:18px 24px; }
.operator-summary .operator-strip { display:flex; gap:12px; flex-wrap:wrap; }
.operator-summary .operator-tile { padding:14px 18px; background:var(--bg-sunken); color:var(--text-primary); border:0; border-radius:12px; text-align:left; }
.operator-name,.operator-count { color:var(--text-secondary); font-size:11px; }
.operator-value { font-size:18px; font-weight:600; margin:7px 0; }
.operator-tile.zero { opacity:.6; }
.orders-workbench>.order-tabs { margin:0; padding:0 24px 18px; }
.batch-page .order-filter-summary.card-body { padding:12px 24px; border-top:1px solid var(--separator); background:var(--bg-hover); }
.order-scope-line { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:6px 12px; font-size:10px; color:var(--text-tertiary); }
.order-scope-line+.order-scope-line { margin-top:6px; }
#orderTableHint { color:var(--text-secondary); font-size:10px; max-width:80%; }
.orders-workbench>.table-scroll-hint { padding-top:12px; }
.batch-page .orders-table { min-width:1420px; table-layout:fixed; }
.batch-page .orders-table td { font-size:12px; padding-inline:10px; height:72px; }
.orders-table .order-detail { padding:4px 0; font-size:11px; }
.orders-table .order-ai { display:inline-flex; align-items:center; gap:4px; color:var(--ai-purple); }
.orders-table .order-ai .badge { font-size:10px; padding:2px 5px; }
.orders-table .order-list-size strong { font-size:12px; }
.orders-table .order-list-sku-thumb { width:40px; height:34px; border-radius:9px; background:var(--bg-sunken); border-color:var(--separator); }
.orders-table .order-list-sku-thumb img { width:40px; height:34px; object-fit:contain; }
.orders-table .order-list-no-image { width:40px; height:34px; }
.orders-table .order-list-ellipsis { max-width:125px; font-size:10px; }
.orders-table .order-track-no { font-size:10px; max-width:125px; }
.batch-page .pagination { margin:0; padding:16px 24px; }
.filter-bar { position:static; margin:0 0 24px; padding:16px 20px; background:var(--bg-card); border:1px solid var(--card-stroke); box-shadow:var(--shadow-card); border-radius:18px; }
.filter-bar .filter-main { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:12px; }
.filter-bar .filter-controls { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.filter-bar .form-select,.filter-bar .form-control { min-width:0; color:var(--text-primary); background-color:var(--bg-card); border:0; border-radius:12px; box-shadow:var(--input-ring); }
.filter-controls .form-select { max-width:200px; min-width:120px; width:100%; font-size:12px; }
.filter-bar .native-time-select { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); border:0; }
.filter-bar .segmented { margin:0; width:auto; max-width:100%; }
.filter-bar .segmented button { font-size:11px; padding-inline:9px; }
.filter-bar .advanced-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.filter-extra:has(>.filter-field:not(.d-none)) { margin-top:16px; }
.filter-bar .filter-field { margin:0; min-width:0; }
.filter-bar .filter-search { min-width:0; }
.filter-bar .filter-search .input-icon { display:block; }
.filter-bar .filter-submit { display:flex; align-items:flex-end; gap:6px; }
.filter-bar .form-label { font-size:11px; color:var(--text-secondary); margin-bottom:6px; }
.filter-bar .custom-date-inputs { display:flex; align-items:center; gap:6px; }
.filter-bar .filter-meta { margin-top:14px; padding-top:12px; border-top:1px solid var(--separator); font-size:10px; }
.filter-bar .filter-chips { display:flex; border:0; gap:7px; }
.filter-chip-row { display:flex; flex-wrap:wrap; gap:6px; }
.filter-bar .filter-chip { font-size:10px; border:0; border-radius:99px; padding:3px 8px; background:var(--primary-tint); color:var(--primary-deep); box-shadow:none; }
.filter-bar .chip-x { margin-left:5px; }
.filter-explanation { font-size:10px; margin-top:8px; color:var(--text-tertiary); }
.filter-explanation .small { font-size:10px; }
.filter-bar .amount-menu { width:315px; min-width:0; max-width:calc(100vw - 32px); padding:18px; }
.filter-bar .amount-menu .advanced-grid { grid-template-columns:1fr 1fr; }
#orderFilterDock .filter-bar { margin:0; border:0; border-radius:0; padding:0 24px 18px; box-shadow:none; }
#orderFilterDock .filter-extra { grid-template-columns:minmax(240px,2fr) minmax(135px,1fr) minmax(150px,1.4fr) auto; align-items:end; }
#orderFilterDock .filter-meta { margin-top:12px; }
#orderFilterDock .filter-explanation { display:none; }
#orderFilterDock .order-status-field { order:0; }
#orderFilterDock .filter-search { order:1; }
#orderFilterDock .amount-quick { order:2; }
#orderFilterDock .filter-submit { order:3; }
body .text-secondary { color:var(--text-secondary)!important; }
body .bg-blue-lt,body .bg-cyan-lt { background:var(--primary-tint)!important; }
body .text-blue,body .text-cyan { color:var(--primary-deep)!important; }
body .bg-green-lt { background:var(--success-tint)!important; }
body .text-green { color:#24883F!important; }
body .bg-yellow-lt,body .bg-orange-lt { background:var(--warning-tint)!important; }
body .text-yellow,body .text-orange { color:#A75C00!important; }
body .bg-red-lt { background:var(--danger-tint)!important; }
body .text-red { color:var(--danger)!important; }
body .bg-purple-lt { background:var(--ai-tint)!important; }
body .text-purple { color:#8B37B4!important; }
body .btn-ghost-secondary { color:var(--text-secondary); border-color:var(--separator); }
body .progress { background:var(--bg-sunken); }
.legacy-page .row { gap:0; align-items:initial; }
.legacy-page .card-header { min-height:3.5rem; padding:16px 20px; border-bottom:1px solid var(--separator); }
.legacy-page .table-responsive { overflow:auto; }
body .detail-drawer { position:absolute; width:min(480px,100vw); height:100%; top:0; bottom:0; right:0; margin:0; padding:24px; background:var(--bg-card); color:var(--text-primary); border:0; border-radius:20px 0 0 20px; box-shadow:var(--shadow-float); overflow:auto; }
body .detail-drawer .drawer-header { padding:0 0 16px; border-bottom:1px solid var(--separator); }
body .drawer-backdrop { background:rgba(28,28,30,.22); }
.login-gate { background:var(--bg-canvas); }
.login-gate-card { background:var(--bg-card); color:var(--text-primary); border:1px solid var(--card-stroke); border-radius:18px; box-shadow:var(--shadow-card); }
html.auth-pending .topbar { visibility:hidden; }
@media(min-width:901px) {
  body.sidebar-collapsed .sidebar { width:64px!important; max-width:64px!important; padding-inline:8px; }
  body.sidebar-collapsed .page-wrapper { margin-left:64px!important; }
  body.sidebar-collapsed .sidebar-workspace,body.sidebar-collapsed .sidebar-footer { display:none; }
  body.sidebar-collapsed .sidebar .nav-link { padding:8px; }
}
@media(max-width:1199px) {
  body .page-wrapper { padding-inline:24px; }
  #orderFilterDock .filter-extra { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .kpi-label-text { font-size:11px; }
}
@media(max-width:900px) {
  body .page-wrapper,body.sidebar-collapsed .page-wrapper { margin-left:0!important; padding:24px; }
  body .sidebar { top:0; left:0; bottom:0; z-index:65; padding-top:20px; }
  body.sidebar-collapsed .sidebar { display:flex!important; }
  body.nav-open .sidebar { display:flex!important; }
  .topbar .freshness { max-width:175px; }
  .page-actions { max-width:50%; }
}
@media(max-width:699px) {
  body .page-wrapper,body.sidebar-collapsed .page-wrapper { padding:24px 16px; }
  .topbar .row { gap:5px; }
  .topbar .brand { gap:6px; }
  .topbar .brand strong { font-size:13px; }
  .topbar .freshness { max-width:86px; padding:4px 7px; }
  .freshness .icon { display:none; }
  .topbar .topbar-actions { gap:5px; }
  .topbar .account-button .account-copy { display:none; }
  .topbar .topbar-refresh { min-width:28px; }
  .topbar .mobile-menu-button { padding:4px; min-width:28px; min-height:28px; }
  .page-actions { max-width:116px; }
  .page-actions .badge { font-size:9px; max-width:116px; }
  .page-actions .btn { font-size:10px; min-height:30px; padding:5px 9px; }
  .page-subtitle { max-width:215px; line-height:1.6; }
  .batch-page .kpi { padding:16px; min-height:168px; }
  .batch-page .kpi-value { font-size:28px; }
  .kpi-label-text { font-size:10px; }
  .kpi-icon { width:16px; height:16px; }
  .kpi-note { font-size:10px; min-height:31px; }
  .kpi-footer .delta { font-size:9px; }
  .metric-spark.sparkline { width:48px; height:22px; }
  .context-strip { font-size:10px; gap:8px; }
  .context-note { max-width:140px; }
  .batch-page .card-header { padding:20px 20px 0; }
  .batch-page .card-body { padding:16px 20px 20px; }
  .batch-page .table th:first-child,.batch-page .table td:first-child { padding-left:20px; }
  .batch-page .table-card .card-header { flex-wrap:wrap; }
  .table-note { padding-inline:20px; }
  .filter-bar { padding:14px; margin-bottom:20px; }
  .filter-bar .time-field { width:100%; }
  .filter-bar .segmented { width:100%; overflow-x:auto; }
  .filter-bar .filter-controls { width:100%; gap:8px; }
  .filter-controls .filter-field { flex:1 1 90px; }
  .filter-controls .form-select { min-width:0; max-width:none; }
  .filter-controls .btn { font-size:11px; padding-inline:8px; }
  .filter-bar .advanced-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .filter-bar .filter-search { grid-column:1/-1; }
  .filter-meta { gap:8px; }
  #orderFilterDock .filter-bar { padding:0 20px 16px; }
  #orderFilterDock .filter-extra { grid-template-columns:1fr 1fr; }
  #orderFilterDock .filter-search { grid-column:1/-1; }
  #orderFilterDock .amount-quick { grid-column:1/-1; }
  .orders-workbench>.order-tabs { padding-inline:20px; }
  .order-tabs button { padding:8px; }
  .batch-page .order-filter-summary.card-body { padding:12px 20px; }
  .order-scope-line { justify-content:flex-start; font-size:9px; }
  #orderTableHint { max-width:100%; }
  .batch-page .pagination { padding:14px 20px; }
  .rank-item.store-bar-row { grid-template-columns:14px minmax(0,1fr) auto; }
  .store-bar-value .text-secondary { display:none; }
  .operator-summary>summary { display:block; padding:18px 20px; }
  .operator-summary>summary .caption { display:block; margin-top:6px; }
  .legacy-page .table { min-width:700px; }
}

/* ===== 2026-10-27 legacy.css 深色主题残留修复（新设计浅色统一） ===== */
body.lengge-workspace,
body.lengge-workspace h1, body.lengge-workspace h2, body.lengge-workspace h3,
body.lengge-workspace h4, body.lengge-workspace h5, body.lengge-workspace h6,
body.lengge-workspace .card-title, body.lengge-workspace .page-title {
  color: var(--text-primary);
}
#pageTitle, .page-header h1 { color: var(--text-primary) !important; }
#pageSubtitle, .page-subtitle { color: var(--text-secondary) !important; }
#pageEyebrow, .overline { color: var(--text-tertiary) !important; }
body.lengge-workspace { background: var(--bg-canvas); color: var(--text-primary); }
/* legacy 页文字统一为浅色主题深字（页面内 theme-light 作用域保留但覆盖其页面标题） */
.theme-light .page-title, .theme-light h1, .theme-light h2, .theme-light h3 { color: var(--text-primary); }
/* 旧页面里 .text-secondary / 提示文字统一 */
body.lengge-workspace .text-secondary { color: var(--text-secondary) !important; }
/* 旧 alert 默认样式统一为新设计质感 */
body.lengge-workspace .alert { border-radius: 12px; border: 1px solid var(--card-stroke); }
/* 表格行内旧骨架条样式统一 */
body.lengge-workspace .table { color: var(--text-primary); }

/* ===== 数据质量横幅改为底部浮动提示（不占文档流，避免压住侧栏/顶栏） ===== */
#dataQualityBanner {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 120;
  max-width: min(760px, calc(100vw - 40px));
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(28, 28, 30, .14);
  background: var(--warning-tint);
  color: #8a5200;
  border: 1px solid rgba(255, 149, 0, .28);
  font-size: 12px;
  line-height: 1.5;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===== 2026-10-27 legacy 深色表单/徽章/卡片残留覆盖 ===== */
body.lengge-workspace .form-control,
body.lengge-workspace .form-select,
body.lengge-workspace textarea,
body.lengge-workspace input[type="date"],
body.lengge-workspace input[type="month"] {
  background: var(--bg-card) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--separator) !important;
  border-radius: 12px !important;
  font-size: var(--font-body);
  padding: 9px 12px;
  min-height: 38px;
}
body.lengge-workspace .form-control::placeholder { color: var(--text-tertiary); }
body.lengge-workspace .form-control:focus,
body.lengge-workspace .form-select:focus {
  outline: none !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 1.5px rgba(10,132,255,.35), inset 0 0 0 1px rgba(10,132,255,.2) !important;
}
body.lengge-workspace .form-label { color: var(--text-secondary); }
body.lengge-workspace .bg-blue-lt { background: var(--primary-tint) !important; }
body.lengge-workspace .text-blue { color: var(--primary-deep) !important; }
body.lengge-workspace .bg-green-lt { background: var(--success-tint) !important; }
body.lengge-workspace .text-green { color: #1f9a45 !important; }
body.lengge-workspace .bg-yellow-lt { background: var(--warning-tint) !important; }
body.lengge-workspace .text-yellow { color: #a75c00 !important; }
body.lengge-workspace .bg-red-lt { background: var(--danger-tint) !important; }
body.lengge-workspace .text-red { color: var(--danger) !important; }
body.lengge-workspace .bg-purple-lt { background: var(--ai-tint) !important; }
body.lengge-workspace .text-purple { color: var(--ai-purple) !important; }
body.lengge-workspace .bg-cyan-lt { background: #E6F7FA !important; }
body.lengge-workspace .text-cyan { color: #0f7f8f !important; }
body.lengge-workspace .metric-card { background: linear-gradient(150deg, #ffffff, #fbfbfd) !important; }
body.lengge-workspace .ai-card { background: linear-gradient(145deg, #ffffff, #f8f3fd) !important; }
body.lengge-workspace .alert-yellow-lt { background: var(--warning-tint) !important; color: #8a5200 !important; border-color: rgba(255,149,0,.28) !important; }
body.lengge-workspace .alert-purple-lt { background: var(--ai-tint) !important; color: #6a3b96 !important; border-color: rgba(175,82,222,.22) !important; }
body.lengge-workspace .alert-red-lt, body.lengge-workspace .alert-danger { background: var(--danger-tint) !important; color: #a1221a !important; }
body.lengge-workspace .table th { color: var(--text-tertiary); }
body.lengge-workspace .table td, body.lengge-workspace .table th { border-color: var(--separator); }
body.lengge-workspace .table tbody tr:hover { background: var(--bg-hover); }
/* 旧 status-live / badge 胶囊统一 */
body.lengge-workspace .status-live { background: var(--success-tint) !important; color: #1f9a45 !important; border-color: rgba(52,199,89,.25) !important; }

/* ===== 2026-10-27 布局宽度修正：数据看板满宽利用视口（Operate 模式），不居中留大片空白 ===== */
.app-shell { max-width: none !important; margin-inline: 0 !important; }
.topbar-inner { max-width: none !important; padding-inline: 28px; }
.sidebar { left: 0 !important; }
@media (min-width: 1600px) { .app-shell { box-shadow: none; } }
/* 超大屏给内容区一个合理上限（表格式看板超过 1920 会拉散，用 1920 兜底） */
@media (min-width: 1921px) {
  .app-main, .page-wrapper { max-width: calc(1920px - var(--sidebar-width) - 64px); }
}
/* 页头在满宽下标题靠左、操作靠右 */
.page-header { justify-content: space-between; }

/* ===== 2026-10-27 修复：Tabler 旧规则把 page-header 设成 column，导致标题靠右 ===== */
.page-header {
  flex-flow: row nowrap !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  max-width: 100%;
}
.page-header > :first-child { flex: 1 1 auto; min-width: 0; }
.page-header .page-actions { flex: 0 0 auto; }
@media (max-width: 699px) {
  .page-header { flex-flow: column nowrap !important; align-items: flex-start !important; gap: 12px; }
  .page-header .page-actions { justify-content: flex-end; width: 100%; }
}

/* ===== 2026-10-27 恢复 Tabler/Bootstrap 栅格（.row>* 覆盖导致 col-* 失效） ===== */
.row > [class*="col-"] { max-width: none; flex-shrink: 0; }
.row > .col-1{width:8.3333%}.row > .col-2{width:16.6667%}.row > .col-3{width:25%}.row > .col-4{width:33.3333%}
.row > .col-5{width:41.6667%}.row > .col-6{width:50%}.row > .col-7{width:58.3333%}.row > .col-8{width:66.6667%}
.row > .col-9{width:75%}.row > .col-10{width:83.3333%}.row > .col-11{width:91.6667%}.row > .col-12{width:100%}
@media (min-width: 576px){
  .row > .col-sm-3{width:25%}.row > .col-sm-4{width:33.3333%}.row > .col-sm-6{width:50%}.row > .col-sm-8{width:66.6667%}
}
@media (min-width: 768px){
  .row > .col-md-2{width:16.6667%}.row > .col-md-3{width:25%}.row > .col-md-4{width:33.3333%}.row > .col-md-6{width:50%}.row > .col-md-8{width:66.6667%}
}
@media (min-width: 992px){
  .row > .col-lg-2{width:16.6667%}.row > .col-lg-3{width:25%}.row > .col-lg-4{width:33.3333%}.row > .col-lg-6{width:50%}.row > .col-lg-8{width:66.6667%}.row > .col-lg-9{width:75%}
}

/* ===== 2026-10-27 栅格行 gap 归零（Bootstrap 栅格用 padding 做 gutter，避免 3 列被 gap 挤成 2 列） ===== */
.row:has(> [class*="col-"]) { gap: 0 !important; margin-inline: -8px !important; }
.row:has(> [class*="col-"]) > [class*="col-"] { padding-left: 8px !important; padding-right: 8px !important; }

/* ===== 2026-10-27 表单下拉框恢复「可下拉」视觉暗示（原生箭头被 appearance:none 去掉） ===== */
body.lengge-workspace .form-select {
  appearance: none !important;
  -webkit-appearance: none !important;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23636366' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 14px 14px !important;
  padding-right: 34px !important;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}
body.lengge-workspace .form-select:hover {
  border-color: rgba(60,60,67,.22) !important;
  background-color: #FBFBFD !important;
}
body.lengge-workspace .form-select:active { background-color: #F2F2F7 !important; }
body.lengge-workspace .form-select:disabled { opacity: .55; cursor: not-allowed; }
/* 按钮悬停/按压反馈补全（避免"假按钮"观感） */
body.lengge-workspace .btn:not(:disabled) { cursor: pointer; transition: background-color .16s ease, border-color .16s ease, transform .12s ease, box-shadow .16s ease; }
body.lengge-workspace .btn:not(:disabled):active { transform: scale(.98); }
body.lengge-workspace .btn-secondary:not(:disabled):hover { background: #F2F2F7 !important; border-color: rgba(60,60,67,.18) !important; }
body.lengge-workspace .btn-primary:not(:disabled):hover { background: var(--primary-deep) !important; }

/* ===== 2026-10-27 订单/链接详情抽屉重构：分组卡片 + 两列描述 + 空值/说明弱化 ===== */
.drawer-section { background: var(--bg-card); border: 1px solid var(--card-stroke); border-radius: 14px; padding: 14px 16px; margin-top: 12px; }
.drawer-section h4 { font-size: 13px; font-weight: 600; margin: 0 0 10px; color: var(--text-primary); letter-spacing: 0; }
.desc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
.desc-item { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; line-height: 1.55; }
.desc-label { color: var(--text-tertiary); flex: 0 0 auto; }
.desc-value { color: var(--text-primary); text-align: right; word-break: break-all; }
.desc-list { display: grid; gap: 6px; }
.drawer-note { color: var(--text-tertiary); font-size: 11px; line-height: 1.5; margin-top: 10px; }
.drawer-missing { color: #A75C00; font-size: 11px; margin-top: 8px; background: var(--warning-tint); border-radius: 8px; padding: 6px 10px; display: inline-block; }
.drawer-section .timeline { margin: 0; padding: 0; list-style: none; }
.drawer-section .timeline-item { padding: 6px 0 6px 14px; border-left: 1px solid var(--separator); margin-left: 4px; font-size: 12px; }
.drawer-section .timeline-item .timeline-time { color: var(--text-tertiary); font-size: 11px; font-variant-numeric: tabular-nums; }
.drawer-section .table { font-size: 12px; }
@media (max-width: 699px) { .desc-grid { grid-template-columns: 1fr; } }

/* ===== 2026-10-27 旧深色主题文字残留覆盖 + 趋势图样式 ===== */
body.lengge-workspace .link-store { color: var(--text-primary) !important; }
body.lengge-workspace .link-cell .link-meta .text-secondary { color: var(--text-secondary) !important; }
.trend-chart { display: block; width: 100%; }
.trend-chart svg { display: block; width: 100%; height: 132px; }
.trend-chart .trend-foot { display: flex; justify-content: space-between; align-items: baseline; margin-top: 4px; }
.trend-chart .trend-foot span { font-size: 11px; color: var(--text-tertiary); }
.trend-chart .trend-foot b { color: var(--text-primary); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ===== 2026-10-27 AI 诊断页新结构样式 ===== */
#aiSummary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
#aiSummary .kpi { padding: 18px 20px; }
.diagnosis-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.diag-card { background: var(--bg-card); border: 1px solid var(--card-stroke); border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(28,28,30,.04); }
.diag-head { display: flex; gap: 10px; align-items: flex-start; }
.diag-icon { color: var(--ai-purple); font-size: 16px; line-height: 1.3; }
.diag-title-wrap { flex: 1; min-width: 0; }
.diag-title-wrap h3 { font-size: 14px; font-weight: 600; margin: 0; color: var(--text-primary); }
.diag-title-wrap p { font-size: 12px; color: var(--text-tertiary); margin: 2px 0 0; }
.diag-evidence { font-size: 12px; color: var(--text-secondary); background: var(--ai-tint); border-radius: 10px; padding: 10px 12px; margin: 0; line-height: 1.55; }
.diag-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-tertiary); }
.diag-meta b { color: var(--text-primary); font-variant-numeric: tabular-nums; }
.diag-card .diag-action { align-self: flex-start; }
@media (max-width: 1199px) { #aiSummary { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 699px) { #aiSummary { grid-template-columns: 1fr; } .diagnosis-cards { grid-template-columns: 1fr; } }

/* ===== 2026-10-27 全局加载反馈：顶部进度条 + KPI 骨架强化 ===== */
#topProgress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 9999; background: transparent; pointer-events: none; opacity: 0; transition: opacity .18s ease; }
#topProgress.active { opacity: 1; }
#topProgress::before { content: ""; display: block; height: 100%; width: 38%; border-radius: 2px; background: linear-gradient(90deg, var(--primary), #6aa9ff); animation: dsh-top-progress 1.05s ease-in-out infinite; }
@keyframes dsh-top-progress { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }
body.is-data-loading { cursor: progress; }
.kpi-value.skeleton { color: transparent !important; background: var(--bg-sunken); border-radius: 8px; min-height: 34px; min-width: 90px; display: inline-block; }
.kpi-value.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent); animation: shimmer 1.6s var(--ease) infinite; }
.kpi-value.skeleton { position: relative; overflow: hidden; }

/* ===== 2026-10-27 通用统计卡网格 + 预警列表 + 页面堆叠（预警/差评/违规/数据源等页复用） ===== */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.stat-grid .kpi { padding: 18px 20px; }
@media (max-width: 1199px) { .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 699px) { .stat-grid { grid-template-columns: 1fr; } }
.alert-list { display: grid; gap: 12px; }
.alert-item { display: flex; gap: 14px; background: var(--bg-card); border: 1px solid var(--card-stroke); border-radius: 14px; padding: 16px 18px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.alert-icon { width: 32px; height: 32px; border-radius: 10px; background: var(--danger-tint); color: var(--danger); display: grid; place-items: center; font-size: 15px; flex: 0 0 auto; }
.alert-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.alert-title { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.alert-evidence { margin: 0; font-size: 12px; color: var(--text-secondary); line-height: 1.55; }
.alert-meta { display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--text-tertiary); }
.alert-meta b { color: var(--text-primary); font-variant-numeric: tabular-nums; }
.alert-meta .btn { margin-left: auto; }
.stack { display: grid; gap: 16px; }
#reviewsCards .col-12 { width: 100%; }

/* ===== 2026-10-27 违规/数据源页补充样式 ===== */
#punishmentsPanel .card, #risksCards .card { border-radius: 16px; }
#syncCards .card { border-radius: 16px; }

/* ===== 2026-10-27 页头整段移除（用户要求）：pages 内容直接顶到工具栏 ===== */
.page-header { display: none !important; }

/* ===== 2026-10-27 手机端工具栏收紧 + 趋势空态压缩 ===== */
@media (max-width: 768px) {
  #exportViewBtn span { display: none; }
  #exportViewBtn { padding: 6px 10px; }
  .trend-empty { min-height: 56px; padding: 10px 0; }
}

/* ===== 2026-10-27 订单详情抽屉：手机端滑动体验优化 ===== */
.detail-drawer { -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
@media (max-width: 699px) {
  .detail-drawer {
    width: 100%;
    padding: 14px 14px calc(22px + env(safe-area-inset-bottom));
    border-radius: 0;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
  }
  .detail-drawer .drawer-header {
    position: sticky;
    top: -14px;
    z-index: 6;
    background: var(--bg-card);
    padding: 12px 0 12px;
    margin: -12px 0 2px;
  }
  .detail-drawer .drawer-section { margin-top: 10px; padding: 12px 13px; }
  .detail-drawer .drawer-section h4 { font-size: 13px; }
  .detail-drawer .drawer-note, .detail-drawer .drawer-missing { font-size: 11px; }
  .detail-drawer .table-scroll, .detail-drawer .table-responsive { -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
  .drawer-backdrop { overscroll-behavior: contain; }
}

/* 店铺抽屉：指标日期口径小字 */
.desc-note { font-size: 10.5px; color: var(--text-tertiary); font-weight: 400; margin-left: 4px; }

/* ===== 2026-10-27 手机端侧边栏体验优化（用 .sidebar 前缀覆盖既有高优先级规则） ===== */
@media (max-width: 900px) {
  /* 覆盖 body .sidebar 的 !important 强制宽度（第 530 行） */
  body .sidebar {
    width: min(88vw, 340px) !important;
    max-width: min(88vw, 340px) !important;
    padding: 16px 12px calc(18px + env(safe-area-inset-bottom)) !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .sidebar .sidebar-workspace { margin: 0 0 16px; padding: 12px 13px; border-radius: 14px; }
  .sidebar .sidebar-workspace strong { font-size: 14px; }
  .sidebar .sidebar-workspace small { font-size: 12px; color: var(--text-secondary); }
  .sidebar .sidebar-caption {
    margin: 18px 0 8px;
    padding: 0 13px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .3px;
    color: var(--text-secondary);
    text-transform: none;
  }
  .sidebar .nav-link {
    min-height: 50px;
    padding: 12px 13px;
    margin: 3px 0;
    font-size: 15.5px;
    font-weight: 500;
    gap: 14px;
    border-radius: 14px;
    color: var(--text-primary);
  }
  .sidebar .nav-link .icon { width: 22px; height: 22px; stroke-width: 1.8; flex: 0 0 auto; }
  .sidebar .nav-link .badge { font-size: 11.5px; min-width: 24px; padding: 2px 7px; }
  .sidebar .nav-link.active, .sidebar .nav-link[aria-current="page"] { background: var(--primary-tint); color: var(--primary); }
  .sidebar .nav-link.active::before { left: 4px; top: 12px; bottom: 12px; width: 3px; }
  .sidebar .sidebar-footer a { font-size: 12.5px; }
  /* 头部：标题 + 关闭按钮同一行，标题不换行（之前误把容器当按钮压成 40px，导致标题折行） */
  .sidebar .sidebar-close {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: auto !important;
    height: 44px;
    margin-bottom: 6px;
    padding: 0 4px;
  }
  .sidebar .sidebar-close span { font-size: 15px; font-weight: 600; color: var(--text-secondary); white-space: nowrap; }
  .sidebar .sidebar-close .btn-icon { width: 40px; height: 40px; display: grid; place-items: center; }
  .sidebar-backdrop { background: rgba(28,28,30,.35); }
}

/* ===== 2026-10-27 链接监控页手机端卡片化（不再横滑看表格） ===== */
@media (max-width: 900px) {
  section[data-page="links"] .table-card .table-scroll { overflow: visible; }
  section[data-page="links"] table.table { display: block; border: 0; }
  section[data-page="links"] table thead { display: none; }
  section[data-page="links"] #linkRows { display: grid; gap: 12px; }
  section[data-page="links"] #linkRows tr.clickable-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
    padding: 14px;
    border-radius: 16px;
    background: var(--bg-card);
    border: 1px solid var(--card-stroke);
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
    align-items: start;
  }
  section[data-page="links"] #linkRows td {
    display: block;
    padding: 0;
    border: 0;
    min-width: 0;
    font-size: 14.5px;
    font-variant-numeric: tabular-nums;
  }
  section[data-page="links"] #linkRows td::before {
    content: attr(data-label);
    display: block;
    font-size: 10.5px;
    font-weight: 500;
    color: var(--text-tertiary);
    margin-bottom: 3px;
    letter-spacing: .2px;
  }
  section[data-page="links"] #linkRows td:first-child { grid-column: 1 / -1; }
  section[data-page="links"] #linkRows td:last-child {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-top: 4px;
  }
  section[data-page="links"] #linkRows td:last-child::before { display: none; }
  section[data-page="links"] .link-cell { display: flex; gap: 11px; align-items: center; }
  section[data-page="links"] .link-thumb { width: 54px; height: 54px; flex: 0 0 auto; }
  section[data-page="links"] .link-store { font-size: 15px; }
  section[data-page="links"] .link-meta .text-secondary.small { font-size: 11.5px; }
}

/* ===== 2026-10-27 手机端筛选条收紧（链接页等） ===== */
@media (max-width: 900px) {
  section[data-page="links"] .toolbar-row { display: none; }
  #globalFilters.filter-bar { padding: 12px; }
  #globalFilters .filter-explanation { display: none; }
  #globalFilters #dataUpdatedAt { font-size: 10px; color: var(--text-tertiary); }
  #globalFilters .filter-meta { margin-top: 8px; padding-top: 8px; gap: 6px; flex-wrap: nowrap; align-items: center; }
  #globalFilters .filter-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  #globalFilters .filter-chips::-webkit-scrollbar { display: none; }
  #globalFilters .filter-chip-row { display: flex; gap: 6px; flex-wrap: nowrap; }
  #globalFilters .filter-chip-row > * { flex: 0 0 auto; }
  #globalFilters .filter-controls .form-select { font-size: 14.5px; }
}

/* ===== 2026-10-27 手机端筛选条 meta 修复（chips 横滚、隐藏挤压的更新时间） ===== */
@media (max-width: 900px) {
  #globalFilters .filter-meta { flex-wrap: wrap; overflow: visible; }
  #globalFilters #dataUpdatedAt { display: none; }
  #globalFilters .filter-chips { flex-wrap: nowrap; overflow-x: auto; }
}

/* ===== 2026-10-27 动效层 v1（按 codex MOTION-SPEC 接入） ===== */
:root {
  --motion-press: 90ms;
  --motion-fast: 160ms;
  --motion-page: 180ms;
  --motion-list: 260ms;
  --motion-collapse: 350ms;
  --ease-press: cubic-bezier(.2,0,0,1);
  --ease-out: cubic-bezier(.215,.61,.355,1);
  --ease-exit: cubic-bezier(.4,0,1,1);
}

/* M03/M09 按钮按压：即时触觉暗示（90ms 按下去，松开回弹） */
.btn, .segmented button, .link-copy-ic, .sku-code-copy, .btn-icon {
  transition: transform var(--motion-press) var(--ease-press),
              background-color var(--motion-fast) var(--ease-press),
              color var(--motion-fast) var(--ease-press),
              box-shadow var(--motion-fast) var(--ease-press);
}
.btn:active:not(:disabled), .segmented button:active, .link-copy-ic:active, .sku-code-copy:active, .btn-icon:active { transform: scale(.97); }

/* 键盘焦点：双环咬合（不依赖颜色传达状态） */
:where(button, [role="button"], a, select, input, textarea):focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(10,132,255,.25), 0 0 0 1px rgba(10,132,255,.6);
}

/* M12 路由切换：内容轻淡入 + 上移 6px（不白屏、不横移） */
.page-view:not(.d-none) { animation: lge-page-in var(--motion-page) var(--ease-out) both; }
@keyframes lge-page-in { from { opacity: .25; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* M06/M07/M16 抽屉：侧滑进入（420ms 过阻尼感）+ 遮罩渐显 */
#drawerBackdrop:not(.d-none) { animation: lge-scrim-in 200ms ease-out both; }
#drawerBackdrop:not(.d-none) #detailDrawer { animation: lge-drawer-in 420ms var(--ease-out) both; }
@keyframes lge-scrim-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes lge-drawer-in { from { transform: translateX(100%); } to { transform: none; } }
#drawerBackdrop.is-closing { animation: lge-scrim-out 200ms ease-in both; pointer-events: none; }
#drawerBackdrop.is-closing #detailDrawer { animation: lge-drawer-out 220ms var(--ease-exit) both; }
@keyframes lge-scrim-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes lge-drawer-out { from { transform: none; } to { transform: translateX(100%); } }

/* 统一降级：系统减少动效偏好 / 手动低性能模式 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .btn:active, .segmented button:active { transform: none; }
}
html[data-motion="reduced"] *, html[data-motion="reduced"] *::before, html[data-motion="reduced"] *::after {
  animation: none !important; transition: none !important; scroll-behavior: auto !important;
}
html[data-motion="reduced"] .btn:active, html[data-motion="reduced"] .segmented button:active { transform: none; }
html[data-motion="low"] *, html[data-motion="low"] *::before, html[data-motion="low"] *::after {
  animation: none !important; transition-duration: 120ms !important;
}

/* ===== 动效层 v1：Toast + 刷新按钮 + 复制成功 ===== */
.lge-toast-host { position: fixed; z-index: 9999; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.lge-toast { display: flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 13px; background: var(--bg-card); box-shadow: var(--shadow-float); font-size: 13px; color: var(--text-primary); opacity: 0; transform: translateY(8px); transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out); }
.lge-toast.is-in { opacity: 1; transform: none; }
.lge-toast.is-success .lge-toast-icon { color: var(--success); }
.lge-toast.is-error .lge-toast-icon { color: var(--danger); }
.lge-toast-icon { font-weight: 700; }
#refreshBtn.is-loading .icon { animation: lge-spin 900ms linear infinite; }
#refreshBtn.is-success { color: var(--success); background: var(--success-tint); }
#refreshBtn.is-error { color: var(--danger); background: var(--danger-tint); }
@keyframes lge-spin { to { transform: rotate(360deg); } }
.btn.is-copied { animation: lge-copy-pop 600ms var(--ease-out) both; }
@keyframes lge-copy-pop { 0% { transform: scale(.92); } 55% { transform: scale(1.04); } 100% { transform: scale(1); } }

/* ===== M01 时间分段控件滑动指示器 ===== */
.segmented { position: relative; }
.segment-indicator { position: absolute; left: 0; top: 0; border-radius: 9px; background: var(--bg-card); box-shadow: 0 1px 3px rgba(28,28,30,.08); pointer-events: none; z-index: 0; opacity: 0; transition: transform 420ms var(--ease-out), width 420ms var(--ease-out), opacity 160ms var(--ease-out); }
.segmented button { position: relative; z-index: 1; }
#timeSegments button[aria-pressed="true"], #timeSegments button.active { background: transparent !important; box-shadow: none !important; }

/* ===== M11 手机侧边导航：420ms 过阻尼感滑入（对齐 MOTION-SPEC） ===== */
@media (max-width: 900px) {
  .sidebar { transition: transform 420ms var(--ease-out), visibility 420ms var(--ease-out); }
  .sidebar-backdrop { transition: opacity 200ms ease-out, visibility 200ms ease-out; }
}

/* ===== M13 AI 证据折叠（Grid 0fr↔1fr 350ms） ===== */
.diag-collapse { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 350ms var(--ease-out), opacity 200ms var(--ease-out); opacity: 1; }
.diagnosis-item.is-collapsed .diag-collapse { grid-template-rows: 0fr; opacity: 0; }
.diag-collapse-inner { overflow: hidden; min-height: 0; }

/* ===== M14 店铺条形图增长（480ms，左侧伸缩；只在完整视图播） ===== */
#storeBarChart.bars-animate .store-bar-seg,
#storeBarChart.bars-animate .store-bar-prev { transform-origin: left center; animation: lge-bar-grow 480ms var(--ease-out) both; }
@keyframes lge-bar-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ===== 订单抽屉分组错峰入场（0/30/60/90/120ms，上移 4px 淡入 180ms） ===== */
#drawerBody > .drawer-section { animation: lge-group-in 180ms var(--ease-out) both; }
#drawerBody > .drawer-section:nth-of-type(1) { animation-delay: 0ms; }
#drawerBody > .drawer-section:nth-of-type(2) { animation-delay: 30ms; }
#drawerBody > .drawer-section:nth-of-type(3) { animation-delay: 60ms; }
#drawerBody > .drawer-section:nth-of-type(4) { animation-delay: 90ms; }
#drawerBody > .drawer-section:nth-of-type(5) { animation-delay: 120ms; }
#drawerBody > .drawer-section:nth-of-type(n+6) { animation-delay: 140ms; }
@keyframes lge-group-in { from { opacity: .5; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  #drawerBody > .drawer-section { animation: none !important; }
  #storeBarChart.bars-animate .store-bar-seg, #storeBarChart.bars-animate .store-bar-prev { animation: none !important; }
  .diag-collapse { transition: none !important; }
}

/* ===== 2026-10-27 订单管理页手机端卡片化（不用横滑看 12 列） ===== */
@media (max-width: 900px) {
  section[data-page="orders"] .table-scroll { overflow: visible; }
  section[data-page="orders"] table.table { display: block; border: 0; }
  section[data-page="orders"] table thead { display: none; }
  section[data-page="orders"] #orderRows { display: grid; gap: 12px; }
  section[data-page="orders"] #orderRows tr.clickable-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px 14px;
    padding: 14px;
    border-radius: 16px;
    background: var(--bg-card);
    border: 1px solid var(--card-stroke);
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
    align-items: start;
  }
  section[data-page="orders"] #orderRows td {
    display: block;
    padding: 0;
    border: 0;
    min-width: 0;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
  }
  section[data-page="orders"] #orderRows td::before {
    content: attr(data-label);
    display: block;
    font-size: 10.5px;
    font-weight: 500;
    color: var(--text-tertiary);
    margin-bottom: 3px;
  }
  section[data-page="orders"] #orderRows td[data-label=""]::before { display: none; }
  section[data-page="orders"] #orderRows td:nth-child(1),
  section[data-page="orders"] #orderRows td:nth-child(2) { grid-column: 1 / -1; }
  section[data-page="orders"] #orderRows td:nth-child(3) { grid-column: 1; }
  section[data-page="orders"] #orderRows td:nth-child(4) { grid-column: 2; }
  section[data-page="orders"] #orderRows td:nth-child(11) { display: none; }
  section[data-page="orders"] #orderRows td:nth-child(12) { grid-column: 1 / -1; display: flex; justify-content: flex-end; padding-top: 2px; }
  section[data-page="orders"] #orderRows td:nth-child(12) .btn { font-size: 13px; }
  section[data-page="orders"] #orderRows .order-detail { min-height: 40px; }
}

/* ===== 2026-10-27 订单页卡片化补充：解除表格 min-width 与列宽固定 ===== */
@media (max-width: 900px) {
  section[data-page="orders"] .orders-table { min-width: 0 !important; width: 100% !important; }
  section[data-page="orders"] .orders-table colgroup { display: none; }
  section[data-page="orders"] .table-scroll-hint { display: none; }
  section[data-page="orders"] #ordersTable caption { display: none; }
}

/* ===== 2026-10-27 订单卡片密度优化（Operate 模式：一屏 3 单，去低价值字段） ===== */
@media (max-width: 900px) {
  section[data-page="orders"] #orderRows tr.clickable-row {
    grid-template-columns: 1fr 1fr;
    gap: 6px 12px;
    padding: 11px 13px;
    border-radius: 14px;
  }
  section[data-page="orders"] #orderRows td { font-size: 13px; line-height: 1.35; }
  section[data-page="orders"] #orderRows td::before { font-size: 9.5px; margin-bottom: 0; letter-spacing: .1px; }
  section[data-page="orders"] #orderRows td:nth-child(1) { grid-column: 1 / -1; }
  section[data-page="orders"] #orderRows td:nth-child(2) { grid-column: 1 / -1; }
  section[data-page="orders"] #orderRows td:nth-child(3) { display: none; }
  section[data-page="orders"] #orderRows td:nth-child(4) { grid-column: 1; }
  section[data-page="orders"] #orderRows td:nth-child(5) { grid-column: 2; }
  section[data-page="orders"] #orderRows td:nth-child(6) { grid-column: 1; }
  section[data-page="orders"] #orderRows td:nth-child(7) { grid-column: 2; }
  section[data-page="orders"] #orderRows td:nth-child(8) { display: none; }
  section[data-page="orders"] #orderRows td:nth-child(9) { grid-column: 1; }
  section[data-page="orders"] #orderRows td:nth-child(10) { grid-column: 2; }
  section[data-page="orders"] #orderRows td:nth-child(12) { grid-column: 1 / -1; justify-content: flex-end; padding-top: 0; }
  section[data-page="orders"] #orderRows td:nth-child(12) .btn { min-height: 34px; padding: 4px 10px; }
  section[data-page="orders"] #orderRows td:nth-child(2) .cell-secondary { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  section[data-page="orders"] #orderRows .order-no { font-size: 13px; }
  section[data-page="orders"] #orderRows .cell-secondary { font-size: 11px; }
}

/* ===== 2026-10-27 订单卡片：标签与值同行（再压一档密度） ===== */
@media (max-width: 900px) {
  section[data-page="orders"] #orderRows td {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 5px;
  }
  section[data-page="orders"] #orderRows td::before {
    display: inline;
    margin: 0;
    font-size: 9.5px;
    flex: 0 0 auto;
  }
  section[data-page="orders"] #orderRows td:nth-child(1)::before,
  section[data-page="orders"] #orderRows td:nth-child(2)::before { display: none; }
  section[data-page="orders"] #orderRows td:nth-child(1) { gap: 2px 8px; }
  section[data-page="orders"] #orderRows td:nth-child(1) .cell-secondary { font-size: 11px; }
  section[data-page="orders"] #orderRows tr.clickable-row { gap: 5px 12px; padding: 10px 12px; }
  section[data-page="orders"] #orderRows td:nth-child(12) { justify-content: flex-end; }
}

/* ===== 2026-10-27 订单卡片最终密度版（自然流，不被拉伸，~200px/卡） ===== */
@media (max-width: 900px) {
  section[data-page="orders"] #orderRows tr.clickable-row {
    grid-template-columns: 1fr 1fr;
    gap: 4px 12px;
    padding: 10px 12px;
  }
  section[data-page="orders"] #orderRows td {
    grid-column: auto !important;
    grid-row: auto !important;
    align-self: start;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 5px;
    font-size: 13px;
    line-height: 1.4;
  }
  section[data-page="orders"] #orderRows td::before { display: inline; margin: 0; font-size: 9.5px; }
  section[data-page="orders"] #orderRows td:nth-child(1),
  section[data-page="orders"] #orderRows td:nth-child(2) { grid-column: 1 / -1 !important; }
  section[data-page="orders"] #orderRows td:nth-child(3),
  section[data-page="orders"] #orderRows td:nth-child(8),
  section[data-page="orders"] #orderRows td:nth-child(11) { display: none !important; }
  section[data-page="orders"] #orderRows td:nth-child(12) {
    grid-column: 1 / -1 !important;
    justify-content: flex-end;
    padding-top: 2px;
  }
  section[data-page="orders"] #orderRows td:nth-child(12) .btn { min-height: 32px; padding: 3px 10px; }
  section[data-page="orders"] #orderRows td:nth-child(2) .cell-secondary { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* ===== 2026-10-27 订单卡片：解除固定单元格高度（72px） ===== */
@media (max-width: 900px) {
  section[data-page="orders"] .orders-table td,
  section[data-page="orders"] #orderRows td {
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
  }
}

/* ===== 2026-10-27 订单手机卡片（参考订单 App 卡片设计：平台标签/三列数据/底部信息） ===== */
.order-cards { display: none; }
@media (max-width: 900px) {
  .order-cards { display: grid; gap: 12px; padding: 0 0 12px; }
  section[data-page="orders"] .table-scroll { display: none; }
  .ocard {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 6px 18px rgba(28,28,30,.03);
    display: grid;
    gap: 10px;
    cursor: pointer;
  }
  .ocard:active { transform: scale(.995); }
  .ocard-head { display: flex; align-items: center; gap: 8px; }
  .ocard-platform { background: var(--bg-sunken); color: var(--text-secondary); font-size: 11px; padding: 2px 8px; border-radius: 8px; flex: 0 0 auto; }
  .ocard-no { font-size: 14px; color: var(--primary); font-weight: 600; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ocard-status { margin-left: auto; flex: 0 0 auto; }
  .ocard-main { display: flex; gap: 11px; align-items: flex-start; }
  .ocard-thumb { flex: 0 0 auto; width: 64px; height: 64px; border-radius: 11px; overflow: hidden; background: var(--bg-sunken); display: grid; place-items: center; }
  .ocard-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .ocard-thumb .link-thumb { width: 100%; height: 100%; border-radius: 0; background: var(--bg-sunken); }
  .ocard-body { flex: 1; min-width: 0; display: grid; gap: 3px; }
  .ocard-title { font-size: 14px; font-weight: 500; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .ocard-spec { font-size: 12px; color: var(--text-secondary); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .ocard-ids { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 1px; }
  .ocard-id { background: var(--primary-tint); color: var(--primary-deep); font-size: 11px; padding: 1px 7px; border-radius: 6px; font-variant-numeric: tabular-nums; }
  .ocard-more { background: var(--bg-sunken); color: var(--text-secondary); font-size: 11px; padding: 1px 7px; border-radius: 6px; }
  .ocard-metrics { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--separator); padding-top: 9px; }
  .ocard-metric { text-align: center; display: grid; gap: 2px; }
  .ocard-metric + .ocard-metric { border-left: 1px solid var(--separator); }
  .ocard-metric span { font-size: 11px; color: var(--text-tertiary); }
  .ocard-metric b { font-size: 15px; font-variant-numeric: tabular-nums; font-weight: 600; }
  .ocard-foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--separator); padding-top: 8px; font-size: 12px; color: var(--text-tertiary); }
  .ocard-detail { color: var(--primary); font-weight: 500; }
}

/* ===== 2026-10-27 订单卡片：多 SKU 堆叠缩略图 + 三列数据 ===== */
.ocard-thumb.is-multi { width: auto; min-width: 96px; height: 64px; overflow: visible; background: transparent; display: flex; align-items: center; }
.ocard-stack { display: flex; align-items: center; }
.ocard-stack-img { width: 46px; height: 46px; border-radius: 10px; background-size: cover; background-position: center; border: 2px solid var(--bg-card); margin-left: -14px; box-shadow: 0 1px 3px rgba(0,0,0,.08); flex: 0 0 auto; }
.ocard-stack-img:first-child { margin-left: 0; }
.ocard-stack-more { width: 46px; height: 46px; border-radius: 10px; border: 2px solid var(--bg-card); margin-left: -14px; background: var(--bg-sunken); display: grid; place-items: center; font-size: 11px; font-weight: 600; color: var(--text-secondary); flex: 0 0 auto; }
.ocard-stack-count { position: absolute; right: 2px; bottom: 2px; background: var(--text-primary); color: #fff; font-size: 10px; padding: 1px 6px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.ocard-thumb.is-multi { position: relative; }
.ocard.is-multi .ocard-more { background: var(--primary-tint); color: var(--primary-deep); }

/* ===== 2026-10-27 订单卡片：主图放大 ===== */
@media (max-width: 900px) {
  .ocard-thumb { width: 88px; height: 88px; border-radius: 13px; }
  .ocard-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .ocard-thumb .link-thumb { width: 100%; height: 100%; border-radius: 0; }
  .ocard-thumb.is-multi { width: auto; min-width: 0; height: 88px; }
  .ocard-stack-img { width: 58px; height: 58px; border-radius: 12px; margin-left: -16px; }
  .ocard-stack-more { width: 58px; height: 58px; border-radius: 12px; margin-left: -16px; font-size: 12px; }
  .ocard-stack-count { font-size: 11px; padding: 2px 7px; }
  .ocard-main { gap: 12px; }
  .ocard-body { gap: 3px; }
}

/* ===== 2026-10-27 图片查看器（SKU 大图 + 左右滑动切换） ===== */
.ocard-thumb { cursor: zoom-in; }
.lge-lightbox { position: fixed; inset: 0; z-index: 9998; background: rgba(10,10,12,.92); display: none; overscroll-behavior: contain; }
.lge-lightbox.is-open { display: block; animation: lge-lb-in 160ms var(--ease-out) both; }
@keyframes lge-lb-in { from { opacity: 0; } to { opacity: 1; } }
.lge-lb-stage { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; }
.lge-lb-img { max-width: 100%; max-height: 82vh; border-radius: 12px; box-shadow: 0 24px 70px rgba(0,0,0,.5); background: #fff; object-fit: contain; }
.lge-lb-close { position: absolute; top: max(14px, env(safe-area-inset-top)); right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; font-size: 24px; line-height: 1; display: grid; place-items: center; }
.lge-lb-prev, .lge-lb-next { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; font-size: 24px; line-height: 1; display: grid; place-items: center; }
.lge-lb-prev { left: 12px; }
.lge-lb-next { right: 12px; }
.lge-lb-count { position: absolute; bottom: max(18px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); color: #fff; font-size: 13px; background: rgba(0,0,0,.45); padding: 4px 12px; border-radius: 999px; font-variant-numeric: tabular-nums; }
body.lge-lb-lock { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .lge-lightbox.is-open { animation: none; } }

/* ===== 2026-10-27 订单主图：放大裁切，商品填满容器（去掉白边/浅色空隙） ===== */
@media (max-width: 900px) {
  .ocard-thumb { background: #fff; overflow: hidden; }
  .ocard-thumb .order-list-sku-images,
  .ocard-thumb .order-list-thumb-row { width: 100%; height: 100%; display: block; }
  .ocard-thumb .order-list-sku-thumb {
    display: block;
    width: 100% !important;
    height: 100% !important;
    border-radius: 0;
    overflow: hidden;
    background: #fff;
  }
  .ocard-thumb .order-list-sku-thumb img,
  .ocard-thumb > img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    transform: scale(1.22);
    transform-origin: center;
  }
  .ocard-thumb.is-multi { background: transparent; overflow: visible; }
  .ocard-thumb.is-multi .order-list-sku-thumb img { transform: scale(1.12); }
}

/* ===== 2026-10-27 店铺健康度手机端卡片（替代宽表格） ===== */
.store-cards { display: none; }
@media (max-width: 900px) {
  .store-cards { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 0 0 10px; }
  section[data-page="overview"] .health-table { display: none; }
  section[data-page="overview"] .table-scroll:has(.health-table) { display: none; }
  .scard {
    background: var(--bg-card);
    border-radius: 14px;
    padding: 12px 14px;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
    display: grid;
    gap: 7px;
    cursor: pointer;
  }
  .scard:active { transform: scale(.995); }
  .scard-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .scard-name { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .scard-operator { margin-top: -2px; }
  .scard-operator .badge { font-size: 11px; }
  .scard-metrics { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--separator); padding-top: 8px; }
  .scard-metrics > div { display: grid; gap: 2px; text-align: center; }
  .scard-metrics > div + div { border-left: 1px solid var(--separator); }
  .scard-metrics span { font-size: 10.5px; color: var(--text-tertiary); }
  .scard-metrics b { font-size: 14px; font-variant-numeric: tabular-nums; }
}

/* ===== 2026-10-27 卡片立体感加强：画布加深到 iOS 分组背景 + 卡片阴影强化 ===== */
:root {
  --bg-canvas: #F2F2F7;
  --shadow-card: 0 1px 2px rgba(28,28,30,.06), 0 8px 22px rgba(28,28,30,.05);
}
body { background: var(--bg-canvas); }
.scard, .ocard {
  background: #FFFFFF;
  box-shadow: 0 1px 2px rgba(28,28,30,.06), 0 8px 22px rgba(28,28,30,.06);
}
.store-cards { gap: 12px; padding-top: 2px; }
.order-cards { gap: 12px; }

/* ===== 2026-10-27 统一卡片底色（消除 AI 卡/KPI 卡渐变与白卡的色差） ===== */
body.lengge-workspace .metric-card { background: #FFFFFF !important; }
body.lengge-workspace .ai-card { background: #FFFFFF !important; }
body.lengge-workspace .card,
body.lengge-workspace .ocard,
body.lengge-workspace .scard { background: #FFFFFF; }

/* ===== 2026-10-27 全站卡片边界强化：阴影收紧贴边 + 描边微微加深 + 间距加大 ===== */
:root { --card-stroke: rgba(60,60,67,.10); }

body.lengge-workspace .card,
body.lengge-workspace .ocard,
body.lengge-workspace .scard,
body.lengge-workspace .diag-card,
body.lengge-workspace .alert-item,
body.lengge-workspace .metric-card {
  box-shadow: 0 1px 1px rgba(20,20,24,.06), 0 2px 6px rgba(20,20,24,.05) !important;
}

.store-cards { gap: 14px; padding: 0 0 14px; }
.order-cards { gap: 14px; padding: 0 0 14px; }
.alert-list { gap: 14px; }
.diagnosis-cards { gap: 14px; }

/* 卡片之间露出画布灰（列表容器留白） */
section[data-page="overview"] .store-cards { padding-inline: 2px; }

/* ===== 2026-10-27 卡片列表加灰底包裹（卡片间隙露出画布灰，不再连成一片） ===== */
@media (max-width: 900px) {
  .store-cards, .order-cards {
    background: var(--bg-canvas);
    border-radius: 16px;
    padding: 10px;
    margin: 0 -4px;
    gap: 12px;
  }
  /* 列表外框在父白卡内的过渡：轻微内阴影增加"区域"感 */
  .store-cards, .order-cards { box-shadow: inset 0 0 0 1px rgba(60,60,67,.04); }
}

/* ===== 2026-10-27 KPI0 可点击切换（GMV / 实收USD） ===== */
[data-overview-metric="0"] { cursor: pointer; }
[data-overview-metric="0"]:active { transform: scale(.995); }

/* ===== 2026-10-27 广告与成交页手机端卡片化 ===== */
.ad-cards { display: none; }
@media (max-width: 900px) {
  .ad-cards { display: grid; gap: 12px; padding: 10px; background: var(--bg-canvas); border-radius: 16px; margin: 0 -4px; }
  section[data-page="ads"] .table-scroll { display: none; }
  .adcard {
    background: #FFFFFF;
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 1px 1px rgba(20,20,24,.06), 0 2px 6px rgba(20,20,24,.05);
    display: grid;
    gap: 9px;
  }
  .adcard:active { transform: scale(.995); }
  .adcard-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .adcard-store { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .adcard-day { font-size: 11px; color: var(--text-tertiary); flex: 0 0 auto; }
  .adcard-main { display: flex; gap: 10px; align-items: flex-start; }
  .adcard-thumb { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: var(--bg-sunken); display: grid; place-items: center; }
  .adcard-thumb img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); }
  .adcard-noimg { font-size: 10px; color: var(--text-tertiary); }
  .adcard-body { flex: 1; min-width: 0; display: grid; gap: 3px; }
  .adcard-title { font-size: 13px; font-weight: 500; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .adcard-id { font-size: 11px; color: var(--primary-deep); background: var(--primary-tint); border-radius: 6px; padding: 1px 7px; justify-self: start; }
  .adcard-sub { font-size: 11.5px; color: var(--text-tertiary); }
  .adcard-metrics { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--separator); padding-top: 8px; }
  .adcard-metrics > div { display: grid; gap: 2px; text-align: center; }
  .adcard-metrics > div + div { border-left: 1px solid var(--separator); }
  .adcard-metrics span { font-size: 10px; color: var(--text-tertiary); }
  .adcard-metrics b { font-size: 13.5px; font-variant-numeric: tabular-nums; }
}

/* ===== 2026-10-27 利润分析 / 包裹追踪 手机端卡片化 ===== */
@media (max-width: 900px) {
  /* 利润分析 */
  section[data-page="profit"] .table-scroll { overflow: visible; }
  section[data-page="profit"] table.table { display: block; border: 0; }
  section[data-page="profit"] table thead { display: none; }
  section[data-page="profit"] tbody { display: grid; gap: 12px; }
  section[data-page="profit"] tbody tr.profit-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #FFFFFF;
    box-shadow: 0 1px 1px rgba(20,20,24,.06), 0 2px 6px rgba(20,20,24,.05);
  }
  section[data-page="profit"] tbody td { display: block; padding: 0 !important; height: auto !important; border: 0; font-size: 13px; }
  section[data-page="profit"] tbody td::before { content: attr(data-label); display: block; font-size: 10px; color: var(--text-tertiary); margin-bottom: 1px; }
  section[data-page="profit"] tbody td:first-child { grid-column: 1 / -1; font-size: 14px; font-weight: 600; }
  section[data-page="profit"] tbody td:first-child::before { display: none; }
  section[data-page="profit"] tbody tr td[colspan] { grid-column: 1 / -1; }

  /* 包裹追踪 */
  section[data-page="logistics"] .table-scroll { overflow: visible; }
  section[data-page="logistics"] table.table { display: block; border: 0; }
  section[data-page="logistics"] table thead { display: none; }
  section[data-page="logistics"] tbody { display: grid; gap: 12px; }
  section[data-page="logistics"] tbody tr.logistics-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #FFFFFF;
    box-shadow: 0 1px 1px rgba(20,20,24,.06), 0 2px 6px rgba(20,20,24,.05);
  }
  section[data-page="logistics"] tbody td { display: block; padding: 0 !important; height: auto !important; border: 0; font-size: 13px; }
  section[data-page="logistics"] tbody td::before { content: attr(data-label); display: block; font-size: 10px; color: var(--text-tertiary); margin-bottom: 1px; }
  section[data-page="logistics"] tbody td:first-child { grid-column: 1 / -1; }
  section[data-page="logistics"] tbody td:nth-child(2) { grid-column: 1 / -1; }
  section[data-page="logistics"] tbody td:nth-child(6) { grid-column: 1 / -1; min-width: 0 !important; }
  section[data-page="logistics"] tbody td:nth-child(9) { grid-column: 1 / -1; }
  section[data-page="logistics"] tbody tr[data-track-detail] { display: none; }
  section[data-page="logistics"] tbody tr[data-track-detail]:not(.d-none) { display: grid; grid-template-columns: 1fr; padding: 10px 14px; border-radius: 12px; background: var(--bg-canvas); }
  section[data-page="logistics"] tbody tr[data-track-detail] td { grid-column: 1 / -1; }
  section[data-page="logistics"] tbody tr[data-track-detail] td::before { display: none; }
}

/* ===== 2026-10-27 电脑端优化：表格行悬停加强 + 宽度自适应 + 超宽屏适配 ===== */
:root { --bg-hover: rgba(10,132,255,.055); }

@media (min-width: 901px) {
  /* 表格撑满容器宽度（右侧不再留白） */
  body.lengge-workspace .orders-table,
  body.lengge-workspace section[data-page="overview"] .health-table,
  body.lengge-workspace section[data-page="ads"] .table,
  body.lengge-workspace section[data-page="profit"] .table,
  body.lengge-workspace section[data-page="logistics"] .table { width: 100%; }
  body.lengge-workspace .orders-table { min-width: 0; }
  /* 行悬停：整行明显高亮 + 左侧强调线 */
  body.lengge-workspace .table tbody tr { position: relative; }
  body.lengge-workspace .table tbody tr:hover td,
  body.lengge-workspace .table tbody tr:focus-within td { background: rgba(10,132,255,.06); }
  body.lengge-workspace .table tbody tr:hover td:first-child { box-shadow: inset 3px 0 0 var(--primary); }
}

/* 超宽屏（2K/4K）：放宽间距、图表更高、行更高，充分利用横向空间 */
@media (min-width: 1920px) {
  body.lengge-workspace .kpi-grid { gap: 20px; }
  body.lengge-workspace .trend-chart svg { height: 185px; }
  body.lengge-workspace .table td { height: 58px; }
  body.lengge-workspace .orders-table td { height: 64px; }
  body.lengge-workspace .orders-table th,
  body.lengge-workspace .orders-table td { padding-inline: 14px; }
  body.lengge-workspace .card-header { padding-left: 28px; padding-right: 28px; }
}

/* ===== 2026-10-28 电脑端视觉与交互强化同步 ===== */
/* 1. 表格内与抽屉内的缩略图尺寸优化与放大提示手型 */
.orders-table .order-list-sku-thumb {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  cursor: zoom-in;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--card-stroke);
}
.orders-table .order-list-sku-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.18);
  transition: transform 160ms ease;
}
.orders-table .order-list-sku-thumb:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
  z-index: 2;
}
.orders-table .order-list-sku-thumb:hover img {
  transform: scale(1.28);
}

/* 抽屉内 SKU 缩略图 */
.order-sku-thumb {
  width: 52px;
  height: 52px;
  object-fit: cover;
  transform: scale(1.15);
  border-radius: 10px;
}
.order-item-thumb-wrap {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  cursor: zoom-in;
  overflow: hidden;
  border: 1px solid var(--card-stroke);
  transition: transform var(--duration) var(--ease);
}
.order-item-thumb-wrap:hover {
  transform: scale(1.06);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

/* 链接监控与广告页缩略图：电脑端也加大为 48px 并支持看图手型 */
.link-thumb {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--card-stroke);
  background: #fff;
}
.link-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.15);
}

/* 2. 电脑端表格斑马纹与悬停高级立体感（消除纯灰纯平） */
@media (min-width: 901px) {
  .table tbody tr:nth-child(even) td {
    background-color: rgba(0, 0, 0, 0.012);
  }
  .table tbody tr:hover td {
    background-color: rgba(10, 132, 255, 0.05) !important;
  }
  /* 列宽更协调 */
  .orders-table th:nth-child(3),
  .orders-table td:nth-child(3) {
    width: 68px;
    text-align: center;
  }
}

/* ===== 2026-10-28 修复包裹追踪 KPI 卡片网格布局 ===== */
#logisticsSummary {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
#logisticsSummary > div {
  flex: 1 1 calc(25% - 16px);
  min-width: 220px;
}
#logisticsSummary .card.kpi {
  margin-bottom: 0;
  height: 100%;
}
@media (max-width: 900px) {
  #logisticsSummary > div {
    flex: 1 1 calc(50% - 12px);
    min-width: 140px;
  }
}

/* ===== 2026-10-28 数据质量提示：紧凑单行、不遮挡内容 ===== */
#dataQualityBanner {
  left: 50%;
  bottom: 14px;
  max-width: min(920px, calc(100vw - 32px));
  padding: 8px 12px !important;
  border-radius: 10px !important;
  font-size: 12px;
  line-height: 1.4;
  opacity: .97;
}
#dataQualityBanner .fw-bold { font-size: 12px; }

/* 店铺健康度表格：广告花费列单行不折行 */
.health-table td.numeric { white-space: nowrap; }

/* 广告消耗 KPI：大数字与说明都不换行溢出 */
.overview-page .metric-card .kpi-value { white-space: nowrap; }
.overview-page .metric-card .kpi-note { word-break: break-word; }

/* ==========================================================================
   商品发布 · 产品中心（采集中心 / 素材库 / 上架页）
   布局：左 190px 状态树（sticky）+ 右自适应主区；分层只用微明度色阶，无硬边框线。
   唯一强调色 = var(--primary)；数字全部 tabular-nums（body 已全局开启）。
   ========================================================================== */
.pc-shell { display: grid; gap: var(--space-4); }

/* —— 顶部大页签：产品中心 / 直连发布 —— */
.pc-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.pc-head-tabs { display: inline-flex; gap: var(--space-1); padding: 4px; border-radius: var(--radius-pill); background: var(--bg-sunken); }
.pc-head-tab { border: 0; background: transparent; color: var(--text-secondary); font-size: var(--font-body); font-weight: 500; padding: 7px 18px; border-radius: var(--radius-pill);
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease), box-shadow var(--duration) var(--ease); }
.pc-head-tab:hover { color: var(--text-primary); }
.pc-head-tab.is-active { background: var(--bg-card); color: var(--primary-deep); box-shadow: 0 1px 3px rgba(28,28,30,.08); }
.pc-head-tab:active { transform: scale(.98); }
.pc-tutorial { color: var(--text-secondary); font-size: var(--font-caption); display: inline-flex; align-items: center; gap: 4px; }
.pc-tutorial:hover { color: var(--primary-deep); }

/* —— 流程页签：采集中心 / 素材库 / 上架页 —— */
.pc-flow { position: relative; display: flex; align-items: flex-end; gap: var(--space-6); padding: 0 var(--space-1); background: transparent; }
.pc-flow-tab { position: relative; border: 0; background: transparent; padding: 6px 2px 12px; font-size: var(--font-card); font-weight: 500; color: var(--text-secondary);
  transition: color var(--duration) var(--ease), font-weight var(--duration) var(--ease); }
.pc-flow-tab:hover { color: var(--text-primary); }
.pc-flow-tab.is-active { color: var(--primary-deep); font-weight: 600; }
.pc-flow-underline { position: absolute; bottom: 0; height: 2.5px; border-radius: 2px; background: var(--primary); width: 0; left: 0;
  transition: transform .32s cubic-bezier(.215,.61,.355,1), width .32s cubic-bezier(.215,.61,.355,1); }
.pc-flow-note { margin-left: auto; padding-bottom: 12px; font-size: var(--font-overline); color: var(--text-tertiary); }
.pc-flow-line { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--separator); }

/* —— 面板切换动效 —— */
.pc-panel[hidden] { display: none; }
.pc-panel.is-entering { animation: pc-panel-in 200ms cubic-bezier(.215,.61,.355,1) both; }
@keyframes pc-panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* —— 素材库两栏骨架 —— */
.pc-library { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: var(--space-4); align-items: start; }
.pc-tree { position: sticky; top: 88px; max-height: calc(100dvh - 108px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg-card); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: var(--space-3) var(--space-2); scrollbar-width: thin; }
.pc-tree-head { display: flex; align-items: center; justify-content: space-between; padding: 2px var(--space-2) var(--space-2); }
.pc-tree-title { font-size: var(--font-button-xs, 11px); font-weight: 600; letter-spacing: .4px; color: var(--text-tertiary); text-transform: uppercase; }
.pc-tree-item { display: flex; align-items: center; gap: 4px; width: 100%; min-height: 30px; padding: 5px 8px; border: 0; border-radius: 9px; background: transparent;
  color: var(--text-secondary); font-size: var(--font-caption); text-align: left;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease); }
.pc-tree-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.pc-tree-item.is-active { background: var(--primary-tint); color: var(--primary-deep); font-weight: 600; }
.pc-tree-item.is-active .pc-tree-count { color: var(--primary-deep); }
.pc-tree-caret { width: 14px; height: 14px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; color: var(--text-tertiary);
  transition: transform .3s cubic-bezier(.215,.61,.355,1); }
.pc-tree-caret.is-open { transform: rotate(90deg); }
.pc-tree-icon { width: 14px; height: 14px; flex: 0 0 auto; color: var(--text-tertiary); }
.pc-tree-item.is-active .pc-tree-icon { color: var(--primary-deep); }
.pc-tree-label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-tree-count { flex: 0 0 auto; font-size: var(--font-overline); color: var(--text-tertiary); font-variant-numeric: tabular-nums; }
.pc-tree-children { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s cubic-bezier(.215,.61,.355,1); }
.pc-tree-children.is-open { grid-template-rows: 1fr; }
.pc-tree-children > div { overflow: hidden; }
.pc-tree-sub .pc-tree-item { padding-left: 22px; font-size: var(--font-caption); min-height: 28px; }
.pc-tree-sep { margin: var(--space-3) 8px var(--space-2); font-size: var(--font-overline); color: var(--text-tertiary); display: flex; align-items: center; gap: 6px; }
.pc-tree-sep::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--separator); }
.pc-tree-scope { display: flex; gap: 2px; padding: 3px; margin: var(--space-2) 0 2px; border-radius: var(--radius-pill); background: var(--bg-sunken); }
.pc-tree-scope button { flex: 1 1 0; border: 0; background: transparent; border-radius: var(--radius-pill); padding: 4px 6px; font-size: var(--font-overline); color: var(--text-secondary);
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease); }
.pc-tree-scope button.is-active { background: var(--bg-card); color: var(--primary-deep); font-weight: 500; box-shadow: 0 1px 2px rgba(28,28,30,.06); }

/* —— 工具栏三行 —— */
.pc-main { min-width: 0; display: grid; gap: var(--space-3); }
.pc-toolbar { background: var(--bg-card); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: var(--space-3) var(--space-4); display: grid; gap: var(--space-3); }
.pc-toolbar-row { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; min-width: 0; }
.pc-platform-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: var(--radius-pill); background: var(--primary-tint);
  color: var(--primary-deep); font-size: var(--font-caption); font-weight: 500; }
.pc-attr-chip { display: inline-flex; align-items: center; gap: 4px; border: 0; border-radius: var(--radius-pill); padding: 5px 10px; background: var(--bg-sunken);
  color: var(--text-secondary); font-size: var(--font-overline); white-space: nowrap;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease), transform var(--duration) var(--ease); }
.pc-attr-chip:hover { background: var(--primary-tint); color: var(--primary-deep); }
.pc-attr-chip:active { transform: scale(.97); }
.pc-attr-chip.is-set { background: var(--primary-tint); color: var(--primary-deep); box-shadow: inset 0 0 0 1px rgba(10,132,255,.18); }
.pc-search { display: flex; align-items: center; gap: var(--space-2); min-width: 0; flex: 1 1 420px; }
.pc-search .form-select { width: auto; min-width: 132px; }
.pc-search .form-control { flex: 1 1 auto; min-width: 120px; }
.pc-btn-group { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pc-btn-group.is-right { margin-left: auto; }
.pc-toolbar .btn { min-height: 32px; font-size: var(--font-caption); padding: 6px 12px; }

/* 属性占位下拉 */
.pc-popover { position: absolute; z-index: 60; min-width: 180px; padding: var(--space-2); border-radius: var(--radius-inner); background: var(--bg-card);
  box-shadow: var(--shadow-float); animation: pc-pop-in 160ms var(--ease) both; }
@keyframes pc-pop-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
.pc-popover-note { padding: 6px 8px; font-size: var(--font-overline); color: var(--text-tertiary); }
.pc-popover-item { display: block; width: 100%; text-align: left; border: 0; background: transparent; border-radius: 8px; padding: 6px 8px; font-size: var(--font-caption); color: var(--text-secondary); }
.pc-popover-item:hover { background: var(--bg-hover); color: var(--text-primary); }

/* —— 素材库表格 —— */
.pc-table-card { position: relative; }
.pc-table-scroll { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
.pc-table { width: 100%; min-width: 1010px; border-collapse: separate; border-spacing: 0; font-size: var(--font-caption); }
.pc-table th { position: sticky; top: 0; z-index: 2; height: 36px; padding: 8px; background: var(--bg-sunken); color: var(--text-secondary);
  font-size: var(--font-overline); font-weight: 500; letter-spacing: .4px; text-align: left; white-space: nowrap; }
.pc-table td { padding: 8px; vertical-align: top; background: var(--bg-card); box-shadow: inset 0 -1px 0 var(--card-stroke); transition: background var(--duration) var(--ease); }
.pc-table tbody tr:hover td { background: var(--bg-hover); }
.pc-table tbody tr.is-selected td { background: rgba(10,132,255,.045); }
.pc-table tbody tr.is-selected td:first-child { box-shadow: inset 2px 0 0 var(--primary), inset 0 -1px 0 var(--card-stroke); }
.pc-table th:first-child, .pc-table td:first-child { padding-left: 12px; }
.pc-table th:last-child, .pc-table td:last-child { padding-right: 12px; }
.pc-col-check { width: 32px; }
.pc-col-no { width: 30px; }
.pc-col-img { width: 96px; }
.pc-col-price { width: 112px; }
.pc-col-source { width: 84px; }
.pc-col-status { width: 92px; }
.pc-col-time { width: 126px; }
.pc-col-code { width: 68px; }
.pc-col-src { width: 80px; }
.pc-check { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }
.pc-row-no { color: var(--text-tertiary); font-variant-numeric: tabular-nums; }

.pc-thumb { position: relative; width: 80px; height: 80px; border-radius: var(--radius-inner); overflow: hidden; background: var(--bg-sunken);
  display: flex; align-items: center; justify-content: center; cursor: zoom-in; }
.pc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s cubic-bezier(.215,.61,.355,1); }
.pc-thumb:hover img { transform: scale(1.045); }
.pc-thumb-fallback { font-size: var(--font-overline); color: var(--text-tertiary); }
.pc-thumb-more { position: absolute; right: 5px; bottom: 5px; padding: 1px 5px; border-radius: var(--radius-pill); background: rgba(28,28,30,.62);
  color: #fff; font-size: 10px; line-height: 1.5; }

.pc-title-cell { min-width: 168px; max-width: 520px; }
.pc-title-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal;
  color: var(--text-primary); font-size: var(--font-body); line-height: 1.45; text-wrap: pretty; }
.pc-title-text mark { background: rgba(255,149,0,.22); color: inherit; border-radius: 3px; padding: 0 1px; }
.pc-subline { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 5px; font-size: var(--font-overline); color: var(--text-tertiary); }
.pc-store-chip { display: inline-flex; align-items: center; gap: 4px; max-width: 190px; padding: 1px 7px; border-radius: var(--radius-pill);
  background: var(--bg-sunken); color: var(--text-secondary); font-size: var(--font-overline); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-cat { color: var(--text-tertiary); font-size: var(--font-overline); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 320px; }
.pc-rowactions { display: flex; align-items: center; gap: 2px; margin-top: 6px; opacity: 0; transform: translateY(2px);
  transition: opacity var(--duration) var(--ease), transform var(--duration) var(--ease); }
.pc-table tbody tr:hover .pc-rowactions, .pc-rowactions:focus-within { opacity: 1; transform: none; }
.pc-rowactions .btn { min-height: 24px; padding: 2px 8px; font-size: var(--font-overline); }
.pc-rowactions .btn-link { color: var(--text-secondary); }
.pc-rowactions .btn-link:hover { color: var(--primary-deep); }
.pc-rowactions .btn-link.is-danger:hover { color: var(--danger); }

.pc-price { display: grid; gap: 6px; }
.pc-price-main { font-size: var(--font-body); font-weight: 600; color: var(--text-primary); white-space: nowrap; }
.pc-price-main .cur { font-size: var(--font-overline); color: var(--text-tertiary); font-weight: 400; margin-right: 3px; }
.pc-price-dash { color: var(--text-tertiary); font-weight: 400; margin: 0 3px; }
.pc-price-hint { font-size: 10px; color: var(--text-tertiary); }
.pc-profit-card { border-radius: 9px; background: var(--bg-sunken); padding: 6px 8px; display: grid; gap: 2px; font-size: var(--font-overline); color: var(--text-secondary); }
.pc-profit-card span { display: flex; justify-content: space-between; gap: 6px; white-space: nowrap; }
.pc-profit-card b { font-weight: 500; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.pc-profit-card b.is-neg { color: var(--danger); }

.pc-source { display: inline-flex; align-items: center; gap: 6px; }
.pc-src-badge { display: inline-flex; align-items: center; padding: 1px 6px; border-radius: 5px; background: var(--primary-tint); color: var(--primary-deep);
  font-size: 10px; font-weight: 600; letter-spacing: .2px; }
.pc-src-link { color: var(--text-tertiary); display: inline-flex; align-items: center; }
.pc-src-link:hover { color: var(--primary-deep); }

.pc-status { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: var(--text-secondary); font-size: var(--font-caption); }
.pc-dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; background: var(--dot, var(--text-tertiary)); box-shadow: 0 0 0 3px var(--dot-ring, rgba(60,60,67,.08)); }
.pc-dot.is-known { --dot-ring: var(--dot-ring-c); }
.pc-status[data-tone="green"] { --dot: var(--success); --dot-ring-c: rgba(52,199,89,.16); color: #24883F; }
.pc-status[data-tone="blue"] { --dot: var(--primary); --dot-ring-c: rgba(10,132,255,.16); color: var(--primary-deep); }
.pc-status[data-tone="red"] { --dot: var(--danger); --dot-ring-c: rgba(255,59,48,.16); color: var(--danger); }
.pc-status[data-tone="gray"] { --dot: #B4B4B9; --dot-ring-c: rgba(60,60,67,.10); color: var(--text-tertiary); }
.pc-status[data-tone="amber"] { --dot: var(--warning); --dot-ring-c: rgba(255,149,0,.18); color: #A75C00; }

.pc-time { display: grid; gap: 1px; font-size: 10px; color: var(--text-tertiary); }
.pc-time span { display: flex; gap: 4px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pc-time em { font-style: normal; color: var(--text-tertiary); opacity: .8; }
.pc-time b { font-weight: 400; color: var(--text-secondary); font-variant-numeric: tabular-nums; }

.pc-code { font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace; font-size: var(--font-caption); color: var(--text-secondary);
  letter-spacing: .3px; }
.pc-srcprice { font-variant-numeric: tabular-nums; color: var(--text-secondary); white-space: nowrap; }

/* —— 空态 / 骨架 —— */
#catalogRows tr.pc-empty-row td { position: sticky; left: 0; z-index: 1; }
.pc-empty { display: grid; justify-items: center; align-content: center; gap: var(--space-2); padding: var(--space-10) var(--space-4); min-height: 260px; text-align: center; }
.pc-empty-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--bg-sunken); display: flex; align-items: center; justify-content: center; color: var(--text-tertiary);
  animation: pc-empty-float 3.2s ease-in-out infinite; }
@keyframes pc-empty-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.pc-empty h3 { font-size: var(--font-card); }
.pc-empty p { font-size: var(--font-caption); color: var(--text-tertiary); max-width: 420px; line-height: 1.6; }
.pc-empty-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; justify-content: center; margin-top: var(--space-2); }
.pc-skeleton-row td { padding: 12px 10px; }
.pc-skeleton-bar { height: 12px; border-radius: 6px; background: var(--bg-sunken); position: relative; overflow: hidden; }
.pc-skeleton-bar::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent); animation: shimmer 1.5s var(--ease) infinite; }

/* —— 表格底部 —— */
.pc-pager { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-top: 1px solid var(--separator); flex-wrap: wrap; color: var(--text-secondary); font-size: var(--font-caption); }
.pc-pager .form-select { width: auto; min-height: 28px; padding: 3px 26px 3px 9px; font-size: var(--font-overline); }
.pc-pager-controls { display: flex; align-items: center; gap: var(--space-2); flex-wrap: nowrap; }
.pc-pager-pages { display: flex; align-items: center; gap: 4px; }
.pc-page-btn { min-width: 28px; height: 28px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; color: var(--text-secondary);
  font-size: var(--font-overline); font-variant-numeric: tabular-nums; transition: background var(--duration) var(--ease), color var(--duration) var(--ease); }
.pc-page-btn:hover:not(:disabled) { background: var(--bg-hover); color: var(--text-primary); }
.pc-page-btn.is-active { background: var(--primary-tint); color: var(--primary-deep); font-weight: 600; }
.pc-page-btn:disabled { opacity: .4; cursor: not-allowed; }

/* —— 采集中心 —— */
.pc-collect-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--space-4); align-items: start; }
.pc-collect-form textarea { min-height: 132px; resize: vertical; font-family: inherit; line-height: 1.6; }
.pc-collect-actions { display: flex; align-items: center; gap: var(--space-2); margin-top: var(--space-3); flex-wrap: wrap; }
.pc-collect-actions .form-select { width: auto; min-width: 168px; }
.pc-collect-hint { font-size: var(--font-overline); color: var(--text-tertiary); line-height: 1.6; }
.pc-rule-box { padding: 12px 14px; border-radius: var(--radius-inner); background: var(--primary-tint); color: var(--primary-deep); font-size: var(--font-caption); line-height: 1.65; }
.pc-collect-log { display: grid; gap: var(--space-2); }
.pc-log-item { display: flex; align-items: flex-start; gap: var(--space-2); padding: 10px 12px; border-radius: var(--radius-inner); background: var(--bg-sunken);
  animation: pc-panel-in 200ms var(--ease) both; }
.pc-log-item.is-ok { background: var(--success-tint); }
.pc-log-item.is-fail { background: var(--danger-tint); }
.pc-log-main { min-width: 0; flex: 1 1 auto; }
.pc-log-title { font-size: var(--font-caption); color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-log-note { font-size: var(--font-overline); color: var(--text-tertiary); margin-top: 2px; }

/* —— 上架页 —— */
.pc-shelf { display: grid; gap: var(--space-4); }
.pc-step { background: var(--bg-card); border-radius: var(--radius-card); box-shadow: var(--shadow-card); overflow: hidden; }
.pc-step-head { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4) var(--space-4) 0; }
.pc-step-no { width: 22px; height: 22px; border-radius: 50%; background: var(--primary-tint); color: var(--primary-deep); font-size: var(--font-overline);
  font-weight: 600; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.pc-step-title { font-size: var(--font-card); font-weight: 600; }
.pc-step-note { font-size: var(--font-overline); color: var(--text-tertiary); }
.pc-step-body { padding: var(--space-3) var(--space-4) var(--space-4); }
.pc-pick-chips { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.pc-pick-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 8px 6px 6px; border-radius: var(--radius-inner); background: var(--bg-sunken); max-width: 320px; }
.pc-pick-chip img { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; background: var(--bg-canvas); flex: 0 0 auto; }
.pc-pick-meta { min-width: 0; }
.pc-pick-title { font-size: var(--font-caption); color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-pick-sub { font-size: 10px; color: var(--text-tertiary); font-variant-numeric: tabular-nums; }
.pc-pick-x { border: 0; background: transparent; color: var(--text-tertiary); width: 22px; height: 22px; border-radius: 6px; flex: 0 0 auto;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease); }
.pc-pick-x:hover { background: var(--danger-tint); color: var(--danger); }

.pc-store-tools { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; margin-bottom: var(--space-3); }
.pc-store-tools .form-control { max-width: 260px; }
.pc-store-list { display: grid; gap: 6px; max-height: 420px; overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; scrollbar-width: thin; }
.pc-store-row { display: grid; grid-template-columns: 18px minmax(0, 1.1fr) minmax(150px, .9fr) auto; align-items: center; gap: var(--space-2);
  padding: 8px 10px; border-radius: var(--radius-inner); background: var(--bg-sunken); transition: background var(--duration) var(--ease); }
.pc-store-row:hover { background: var(--bg-hover); }
.pc-store-row.is-on { background: var(--primary-tint); }
.pc-store-name { font-size: var(--font-caption); color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-store-id { font-size: 10px; color: var(--text-tertiary); font-variant-numeric: tabular-nums; }
.pc-store-row .form-select { min-height: 30px; font-size: var(--font-overline); padding: 4px 26px 4px 9px; }
.pc-store-quote { font-size: var(--font-overline); color: var(--text-secondary); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pc-store-quote.is-pending { color: var(--text-tertiary); font-style: normal; }

.pc-breakdown { margin-top: var(--space-3); border-radius: var(--radius-inner); background: var(--bg-sunken); padding: var(--space-3); display: grid; gap: 6px; }
.pc-breakdown-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); font-size: var(--font-caption); color: var(--text-secondary); }
.pc-breakdown-row b { font-weight: 500; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.pc-breakdown-row.is-total { padding-top: 6px; margin-top: 2px; box-shadow: inset 0 1px 0 var(--separator); }
.pc-breakdown-row.is-total b { font-size: var(--font-body); font-weight: 600; color: var(--primary-deep); }
.pc-breakdown-note { font-size: var(--font-overline); color: var(--text-tertiary); line-height: 1.55; }
.pc-breakdown-note.is-pending { color: var(--text-tertiary); }
.pc-price-formula { margin-top: var(--space-2); font-size: 10.5px; color: var(--text-tertiary); font-variant-numeric: tabular-nums; }

.pc-shelf-submit { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.pc-shelf-submit .caption { color: var(--text-tertiary); }

/* 上架结果表 */
.pc-result-table { width: 100%; min-width: 980px; border-collapse: separate; border-spacing: 0; font-size: var(--font-caption); }
.pc-result-table th { height: 36px; padding: 8px 10px; background: var(--bg-sunken); color: var(--text-secondary); font-size: var(--font-overline); font-weight: 500; text-align: left; white-space: nowrap; }
.pc-result-table td { padding: 10px; background: var(--bg-card); box-shadow: inset 0 -1px 0 var(--card-stroke); vertical-align: middle; }
.pc-result-table tbody tr:last-child td { box-shadow: none; }
.pc-result-table td.pc-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pc-result-table .pc-result-title { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.pc-result-err { color: var(--danger); font-size: var(--font-overline); max-width: 220px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-result-progress { display: inline-flex; align-items: center; gap: 6px; }
.pc-spinner { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid rgba(10,132,255,.25); border-top-color: var(--primary); animation: pc-spin .7s linear infinite; }
@keyframes pc-spin { to { transform: rotate(360deg); } }

/* —— 编辑抽屉内的定价明细 —— */
.pc-edit-field { display: grid; gap: 5px; margin-bottom: var(--space-3); }
.pc-edit-field > label { font-size: var(--font-overline); color: var(--text-secondary); }
.pc-edit-skus { display: grid; gap: 6px; }
.pc-edit-sku { display: grid; grid-template-columns: minmax(0,1fr) 104px 104px; gap: 6px; align-items: center; font-size: var(--font-overline); color: var(--text-tertiary); }
.pc-edit-sku .form-control { min-height: 30px; font-size: var(--font-caption); }
.pc-edit-imgs { display: flex; gap: 8px; flex-wrap: wrap; }
.pc-edit-img { position: relative; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--bg-sunken); }
.pc-edit-img img { width: 100%; height: 100%; object-fit: cover; }
.pc-edit-img-x { position: absolute; top: 2px; right: 2px; width: 16px; height: 16px; border: 0; border-radius: 50%; background: rgba(28,28,30,.6); color: #fff; font-size: 10px; line-height: 1; }
.pc-edit-foot { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-4); }

/* —— 响应式：<1200px 状态树折叠成横向 chips —— */
@media (max-width: 1200px) {
  .pc-library { grid-template-columns: minmax(0, 1fr); }
  .pc-tree { position: static; max-height: none; display: flex; gap: 6px; align-items: center; overflow-x: auto; overflow-y: hidden;
    padding: 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .pc-tree::-webkit-scrollbar { display: none; }
  .pc-tree-head, .pc-tree-sep, .pc-tree-caret { display: none; }
  .pc-tree > .pc-tree-flat, .pc-tree-children, .pc-tree-children > div { display: contents; }
  .pc-tree .pc-tree-item { flex: 0 0 auto; width: auto; min-height: 28px; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--bg-sunken); font-size: var(--font-overline); }
  .pc-tree .pc-tree-item.is-active { background: var(--primary); color: #fff; }
  .pc-tree .pc-tree-item.is-active .pc-tree-count, .pc-tree .pc-tree-item.is-active .pc-tree-icon { color: rgba(255,255,255,.82); }
  .pc-tree .pc-tree-count { padding-left: 2px; }
  .pc-collect-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .pc-flow { gap: var(--space-4); }
  .pc-toolbar-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .pc-toolbar-row::-webkit-scrollbar { display: none; }
  .pc-toolbar-row > * { flex: 0 0 auto; }
  .pc-search { flex: 1 1 320px; }
  .pc-flow-note { display: none; }
  .pc-store-row { grid-template-columns: 18px minmax(0, 1fr) auto; row-gap: 4px; }
  .pc-store-row .form-select { grid-column: 2 / -1; }
  .pc-pager { justify-content: space-between; }
}

@media (max-width: 640px) {
  .pc-head { align-items: flex-start; }
  .pc-head-tab { padding: 7px 14px; font-size: var(--font-caption); }
  .pc-toolbar { padding: var(--space-3); }
  .pc-search { flex: 1 1 100%; }
  .pc-search .form-select { min-width: 110px; }
  .pc-btn-group.is-right { margin-left: 0; }
  .pc-table { min-width: 900px; }
  .pc-title-cell { min-width: 180px; }
  .pc-pager { gap: 8px; }
  .pc-rowactions { opacity: 1; transform: none; }
  .pc-step-head { padding: var(--space-3) var(--space-3) 0; }
  .pc-step-body { padding: var(--space-2) var(--space-3) var(--space-3); }
  .pc-pick-chip { max-width: 100%; }
}

@media (prefers-color-scheme: dark) {
  .pc-head-tab.is-active { box-shadow: 0 1px 3px rgba(0,0,0,.5); }
  .pc-tree, .pc-toolbar, .pc-step, .pc-thumb { background: var(--bg-card); }
}

html[data-motion="reduced"] .pc-panel.is-entering,
html[data-motion="reduced"] .pc-log-item,
html[data-motion="reduced"] .pc-empty-icon { animation: none !important; }
html[data-motion="reduced"] .pc-flow-underline { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .pc-panel.is-entering, .pc-log-item, .pc-empty-icon { animation: none !important; }
  .pc-flow-underline { transition: none; }
  .pc-thumb img { transition: none; }
}

/* ==========================================================================
   买家视角预览（逆向敦煌商品详情页结构）
   左图右信息 5:5；用棱格设计系统渲染，不用敦煌的黄色/黑色皮肤
   ========================================================================== */
.pc-preview-layer { position: fixed; inset: 0; z-index: 900; display: flex; align-items: center; justify-content: center; padding: 24px;
  background: rgba(22,22,24,.42); animation: pc-layer-in 180ms var(--ease) both; }
@keyframes pc-layer-in { from { opacity: 0; } to { opacity: 1; } }
.pc-preview-layer.is-closing { animation: pc-layer-out 160ms var(--ease) both; }
@keyframes pc-layer-out { from { opacity: 1; } to { opacity: 0; } }
.pc-preview-panel { width: min(1180px, 100%); max-height: min(94dvh, 940px); display: flex; flex-direction: column;
  background: var(--bg-card); border-radius: 20px; box-shadow: 0 24px 80px rgba(28,28,30,.24); overflow: hidden;
  animation: pc-panel-up 240ms cubic-bezier(.215,.61,.355,1) both; }
@keyframes pc-panel-up { from { opacity: 0; transform: translateY(14px) scale(.99); } to { opacity: 1; transform: none; } }
.pc-preview-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: 14px 20px;
  box-shadow: inset 0 -1px 0 var(--separator); flex-wrap: wrap; }
.pc-preview-bar-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pc-preview-bar-title .badge { flex: 0 0 auto; }
.pc-preview-bar-title strong { font-size: var(--font-body); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 520px; }
.pc-preview-bar-actions { display: flex; align-items: center; gap: 8px; }
.pc-preview-body { overflow-y: auto; overscroll-behavior: contain; padding: 18px 20px 24px; scrollbar-width: thin; }
.pc-breadcrumb { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: var(--font-overline); color: var(--text-tertiary); margin-bottom: 14px; }
.pc-breadcrumb b { font-weight: 500; color: var(--text-secondary); }
.pc-breadcrumb .sep { opacity: .6; }

.pc-buyer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.pc-buyer-gallery { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 10px; align-items: start; }
.pc-buyer-thumbs { display: flex; flex-direction: column; gap: 8px; max-height: 460px; overflow-y: auto; scrollbar-width: none; }
.pc-buyer-thumbs::-webkit-scrollbar { display: none; }
.pc-buyer-thumb { width: 62px; height: 62px; border-radius: 10px; overflow: hidden; background: var(--bg-sunken); border: 0; padding: 0; cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--card-stroke); transition: box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease); }
.pc-buyer-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-buyer-thumb:hover { transform: translateY(-1px); }
.pc-buyer-thumb.is-active { box-shadow: 0 0 0 2px var(--primary), inset 0 0 0 1px rgba(10,132,255,.4); }
.pc-buyer-stage { position: relative; border-radius: var(--radius-inner); overflow: hidden; background: var(--bg-sunken); aspect-ratio: 1 / 1; display: flex;
  align-items: center; justify-content: center; cursor: zoom-in; }
.pc-buyer-stage img { width: 100%; height: 100%; object-fit: contain; transition: opacity 180ms var(--ease); }
.pc-buyer-stage img.is-swapping { opacity: .25; }
.pc-buyer-stage-note { position: absolute; left: 10px; bottom: 10px; padding: 3px 8px; border-radius: var(--radius-pill);
  background: rgba(28,28,30,.62); color: #fff; font-size: 10px; }
.pc-buyer-stage-empty { font-size: var(--font-caption); color: var(--text-tertiary); }

.pc-buyer-info { display: grid; gap: var(--space-3); min-width: 0; }
.pc-buyer-title { font-size: var(--font-h2); font-weight: 600; line-height: 1.45; letter-spacing: -.2px; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-wrap: pretty; }
.pc-buyer-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.pc-buyer-price .usd { font-size: var(--font-overline); color: var(--text-tertiary); }
.pc-buyer-price strong { font-size: 26px; font-weight: 600; letter-spacing: -.6px; color: var(--text-primary); }
.pc-buyer-price .unit { font-size: var(--font-caption); color: var(--text-tertiary); }
.pc-buyer-price .range { color: var(--text-tertiary); font-weight: 400; }
.pc-ladder { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.pc-ladder::-webkit-scrollbar { display: none; }
.pc-ladder-card { flex: 0 0 auto; min-width: 132px; padding: 9px 12px; border-radius: var(--radius-inner); background: var(--bg-card);
  box-shadow: inset 0 0 0 1px var(--separator); text-align: left; cursor: default; transition: box-shadow var(--duration) var(--ease); }
.pc-ladder-card b { display: block; font-size: var(--font-body); font-weight: 600; }
.pc-ladder-card span { font-size: var(--font-overline); color: var(--text-tertiary); }
.pc-ladder-card.is-active { box-shadow: inset 0 0 0 1.5px var(--text-primary), 0 1px 2px rgba(28,28,30,.05); }
.pc-ladder-card.is-single { min-width: 168px; }
.pc-buyer-block { display: grid; gap: 8px; }
.pc-buyer-label { font-size: var(--font-overline); color: var(--text-tertiary); }
.pc-buyer-label b { color: var(--text-primary); font-weight: 600; }
.pc-spec-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pc-spec-chip { border: 0; padding: 7px 16px; border-radius: 10px; background: var(--bg-sunken); color: var(--text-secondary);
  font-size: var(--font-caption); transition: box-shadow var(--duration) var(--ease), background var(--duration) var(--ease), color var(--duration) var(--ease); }
.pc-spec-chip:hover { background: var(--bg-hover); color: var(--text-primary); }
.pc-spec-chip.is-active { background: var(--primary-tint); color: var(--primary-deep); box-shadow: inset 0 0 0 1.5px rgba(10,132,255,.45); font-weight: 500; }
.pc-swatch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; max-height: 210px; overflow-y: auto; scrollbar-width: thin; }
.pc-swatch { position: relative; border: 0; padding: 0; border-radius: 9px; overflow: hidden; background: var(--bg-sunken); cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--card-stroke); transition: box-shadow var(--duration) var(--ease); }
.pc-swatch img { width: 100%; height: 66px; object-fit: cover; display: block; }
.pc-swatch span { position: absolute; left: 3px; right: 3px; bottom: 3px; padding: 1px 4px; border-radius: 5px; background: rgba(28,28,30,.62);
  color: #fff; font-size: 9px; line-height: 1.5; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-swatch.is-active { box-shadow: 0 0 0 2px var(--primary); }
.pc-swatch.is-text { display: flex; align-items: center; justify-content: center; min-height: 66px; font-size: var(--font-overline); color: var(--text-secondary); }

.pc-buyer-total { border-radius: var(--radius-inner); background: var(--bg-sunken); padding: 12px 14px; display: grid; gap: 6px; }
.pc-buyer-total-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: var(--font-caption); color: var(--text-secondary); }
.pc-buyer-total-row b { font-weight: 500; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.pc-buyer-total-row.is-grand { padding-top: 8px; margin-top: 2px; box-shadow: inset 0 1px 0 var(--separator); }
.pc-buyer-total-row.is-grand span { font-size: var(--font-body); color: var(--text-primary); font-weight: 500; }
.pc-buyer-total-row.is-grand b { font-size: 22px; font-weight: 600; letter-spacing: -.4px; }
.pc-buyer-total-note { font-size: 10.5px; color: var(--text-tertiary); line-height: 1.55; }
.pc-buyer-cta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 2px; }
.pc-buyer-fav { width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--bg-card); box-shadow: inset 0 0 0 1px var(--separator);
  color: var(--text-secondary); display: inline-flex; align-items: center; justify-content: center; }
.pc-buyer-fav:hover { color: var(--danger); }
.pc-buyer-buy { flex: 1 1 180px; min-height: 44px; border-radius: 12px; border: 0; background: var(--primary); color: #fff; font-size: var(--font-body); font-weight: 600; }
.pc-buyer-cart { flex: 1 1 180px; min-height: 44px; border-radius: 12px; border: 0; background: var(--primary-tint); color: var(--primary-deep); font-size: var(--font-body); font-weight: 600; }
.pc-buyer-buy:active, .pc-buyer-cart:active { transform: scale(.99); }

.pc-buyer-sections { margin-top: var(--space-6); display: grid; gap: var(--space-3); }
.pc-buyer-section { border-radius: var(--radius-card); background: var(--bg-sunken); padding: var(--space-4); }
.pc-buyer-section h4 { font-size: var(--font-card); font-weight: 600; margin-bottom: var(--space-2); }
.pc-buyer-spec-grid { display: grid; grid-template-columns: 120px minmax(0,1fr); gap: 6px 14px; font-size: var(--font-caption); }
.pc-buyer-spec-grid dt { color: var(--text-tertiary); }
.pc-buyer-spec-grid dd { margin: 0; color: var(--text-primary); word-break: break-word; }
.pc-buyer-hidden-note { font-size: var(--font-overline); color: var(--text-tertiary); line-height: 1.6; }
.pc-preview-empty { padding: var(--space-10); text-align: center; color: var(--text-tertiary); font-size: var(--font-caption); }

@media (max-width: 1100px) {
  .pc-preview-layer { padding: 0; }
  .pc-preview-panel { width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; }
  .pc-buyer { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .pc-buyer-gallery { grid-template-columns: minmax(0, 1fr); }
  .pc-buyer-thumbs { flex-direction: row; max-height: none; overflow-x: auto; order: 2; }
  .pc-buyer-stage { aspect-ratio: 1 / 1; }
  .pc-preview-bar-title strong { max-width: 190px; }
}
@media (prefers-reduced-motion: reduce) {
  .pc-preview-layer, .pc-preview-panel { animation: none !important; }
}

/* 买家视角：色块网格（选中黑框，对标真实买家页）+ 缺货态 */
.pc-swatch-grid { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 7px; max-height: 268px; }
.pc-swatch { position: relative; border-radius: 8px; overflow: hidden; background: var(--bg-sunken); }
.pc-swatch img { height: 62px; }
.pc-swatch.is-active { box-shadow: 0 0 0 2px var(--text-primary), inset 0 0 0 1px rgba(255,255,255,.6); }
.pc-swatch.is-active span { background: var(--text-primary); }
.pc-swatch-ph { display: block; width: 100%; height: 62px; background: var(--bg-canvas); }
.pc-stock-out { margin-left: 8px; padding: 2px 8px; border-radius: var(--radius-pill); background: var(--danger-tint); color: var(--danger); font-size: var(--font-overline); font-weight: 500; }
.pc-buyer-buy:disabled, .pc-buyer-cart:disabled { opacity: .45; cursor: not-allowed; }
.pc-spec-row .pc-spec-chip[aria-pressed="true"], .pc-spec-chip.is-active { background: var(--primary-tint); color: var(--primary-deep); }
.pc-buyer-label b { font-variant-numeric: tabular-nums; }

/* 色块网格定稿：格子放大到 86px，角标缩成右下小胶囊，避免遮住鞋图 */
.pc-swatch-grid { grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); gap: 8px; max-height: 312px; }
.pc-swatch { min-height: 86px; }
.pc-swatch img { height: 86px; }
.pc-swatch-ph { height: 86px; }
.pc-swatch span { left: auto; right: 4px; bottom: 4px; max-width: calc(100% - 8px); padding: 1px 5px; border-radius: 5px;
  background: rgba(28,28,30,.72); font-size: 9px; line-height: 1.45; }
.pc-swatch.is-active span { background: var(--primary); color: #fff; }

/* 尺码按钮选中态：实心（对标买家页的实心按钮） */
#catalogBuyerSize .pc-spec-chip { min-width: 58px; justify-content: center; text-align: center; }
#catalogBuyerSize .pc-spec-chip.is-active { background: var(--primary); color: #fff; box-shadow: none; font-weight: 600; }
#catalogBuyerSize .pc-spec-chip.is-active:hover { background: var(--primary-deep); color: #fff; }
.pc-swatch-grid { max-height: 340px; }

/* ==========================================================================
   素材库 · 按店铺看（同一素材多店复用，各店状态独立）
   ========================================================================== */
.pc-viewswitch { display: flex; align-items: center; gap: var(--space-2); padding: 4px; border-radius: var(--radius-pill);
  background: var(--bg-card); box-shadow: var(--shadow-card); flex-wrap: wrap; }
.pc-viewswitch-btn { border: 0; background: transparent; padding: 6px 16px; border-radius: var(--radius-pill); color: var(--text-secondary);
  font-size: var(--font-caption); font-weight: 500;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease), box-shadow var(--duration) var(--ease); }
.pc-viewswitch-btn:hover { color: var(--text-primary); }
.pc-viewswitch-btn.is-active { background: var(--primary-tint); color: var(--primary-deep); box-shadow: inset 0 0 0 1px rgba(10,132,255,.18); }
.pc-viewswitch-btn:active { transform: scale(.98); }
.pc-viewswitch-hint { margin-left: auto; padding-right: var(--space-3); font-size: var(--font-overline); color: var(--text-tertiary); }

.pc-storeview { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: var(--space-4); align-items: start; }
.pc-storeview-list { position: sticky; top: 88px; max-height: calc(100dvh - 108px); display: flex; flex-direction: column; gap: var(--space-2);
  background: var(--bg-card); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: var(--space-3); }
.pc-storeview-search .form-control { min-height: 32px; font-size: var(--font-caption); }
.pc-storeview-stores { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; scrollbar-width: thin; }
.pc-sv-store { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: transparent; border-radius: 9px; padding: 7px 8px;
  text-align: left; color: var(--text-secondary); font-size: var(--font-caption);
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease); }
.pc-sv-store:hover { background: var(--bg-hover); color: var(--text-primary); }
.pc-sv-store.is-active { background: var(--primary-tint); color: var(--primary-deep); font-weight: 600; }
.pc-sv-store-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-sv-store-badge { flex: 0 0 auto; min-width: 22px; text-align: right; font-size: var(--font-overline); color: var(--text-tertiary);
  font-variant-numeric: tabular-nums; }
.pc-sv-store.is-active .pc-sv-store-badge { color: var(--primary-deep); }

.pc-storeview-main { min-width: 0; display: grid; gap: var(--space-3); }
.pc-sv-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-2); }
.pc-sv-stat { background: var(--bg-card); border-radius: var(--radius-inner); box-shadow: var(--shadow-card); padding: 12px 14px; }
.pc-sv-stat-label { font-size: var(--font-overline); color: var(--text-tertiary); display: flex; align-items: center; gap: 5px; }
.pc-sv-stat-value { margin-top: 4px; font-size: 22px; font-weight: 600; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.pc-sv-stat.is-accent .pc-sv-stat-value { color: var(--primary-deep); }
.pc-sv-stat.is-ok .pc-sv-stat-value { color: #24883F; }
.pc-sv-stat.is-fail .pc-sv-stat-value { color: var(--danger); }
.pc-sv-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.pc-sv-filter { border: 0; border-radius: var(--radius-pill); padding: 5px 12px; background: var(--bg-card); color: var(--text-secondary);
  font-size: var(--font-overline); box-shadow: inset 0 0 0 1px var(--separator);
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease), box-shadow var(--duration) var(--ease); }
.pc-sv-filter:hover { color: var(--text-primary); }
.pc-sv-filter.is-active { background: var(--primary-tint); color: var(--primary-deep); box-shadow: inset 0 0 0 1px rgba(10,132,255,.28); font-weight: 500; }
.pc-sv-table { min-width: 940px; }
.pc-sv-table td { vertical-align: middle; }
.pc-sv-thumb { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: var(--bg-sunken); }
.pc-sv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-sv-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal;
  font-size: var(--font-caption); color: var(--text-primary); max-width: 340px; text-wrap: pretty; }
.pc-sv-actions { display: flex; gap: 2px; white-space: nowrap; }
.pc-sv-empty { display: grid; justify-items: center; gap: 6px; padding: var(--space-8) var(--space-4); text-align: center; }
.pc-sv-empty h3 { font-size: var(--font-card); }
.pc-sv-empty p { font-size: var(--font-caption); color: var(--text-tertiary); max-width: 360px; line-height: 1.6; }

@media (max-width: 1200px) {
  .pc-storeview { grid-template-columns: minmax(0, 1fr); }
  .pc-storeview-list { position: static; max-height: none; }
  .pc-storeview-stores { flex-direction: row; overflow-x: auto; gap: 6px; scrollbar-width: none; }
  .pc-storeview-stores::-webkit-scrollbar { display: none; }
  .pc-sv-store { flex: 0 0 auto; background: var(--bg-sunken); border-radius: var(--radius-pill); padding: 5px 12px; }
  .pc-sv-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .pc-sv-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pc-viewswitch-hint { display: none; }
  .pc-sv-table { min-width: 860px; }
}

/* ==========================================================================
   店铺为中心：店铺工具条 / 导入素材弹窗 / 发布队列
   ========================================================================== */
.pc-storebar { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; padding: 10px var(--space-3);
  border-radius: var(--radius-card); background: var(--bg-card); box-shadow: var(--shadow-card); }
.pc-storebar-lg { padding: 12px var(--space-4); }
.pc-storebar-label { font-size: var(--font-overline); color: var(--text-tertiary); letter-spacing: .3px; }
.pc-storebar-select { width: auto; min-width: 220px; max-width: 320px; min-height: 32px; font-size: var(--font-caption); }
.pc-storebar-hint { flex: 1 1 240px; min-width: 0; font-size: var(--font-overline); color: var(--text-tertiary); line-height: 1.5; }
.pc-queue-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.pc-import-layer { position: fixed; inset: 0; z-index: 920; display: flex; align-items: center; justify-content: center; padding: 24px;
  background: rgba(22,22,24,.42); animation: pc-layer-in 180ms var(--ease) both; }
.pc-import-panel { width: min(900px, 100%); max-height: min(90dvh, 820px); display: flex; flex-direction: column; background: var(--bg-card);
  border-radius: 20px; box-shadow: 0 24px 80px rgba(28,28,30,.24); overflow: hidden; animation: pc-panel-up 240ms cubic-bezier(.215,.61,.355,1) both; }
.pc-import-tabs { display: flex; align-items: center; gap: var(--space-4); padding: 0 20px; box-shadow: inset 0 -1px 0 var(--separator); }
.pc-import-tab { border: 0; background: transparent; padding: 10px 2px; font-size: var(--font-caption); color: var(--text-secondary); position: relative; }
.pc-import-tab.is-active { color: var(--primary-deep); font-weight: 600; }
.pc-import-tab.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--primary); }
.pc-import-body { flex: 1 1 auto; overflow-y: auto; padding: var(--space-4) 20px; scrollbar-width: thin; }
.pc-import-toolbar { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; margin-bottom: var(--space-3); }
.pc-import-toolbar .form-control { flex: 1 1 220px; max-width: 320px; min-height: 32px; font-size: var(--font-caption); }
.pc-import-list { display: grid; gap: 6px; }
.pc-import-row { display: grid; grid-template-columns: 18px 44px minmax(0, 1fr) auto; align-items: center; gap: var(--space-2);
  padding: 8px 10px; border-radius: var(--radius-inner); background: var(--bg-sunken); cursor: pointer;
  transition: background var(--duration) var(--ease); }
.pc-import-row:hover { background: var(--bg-hover); }
.pc-import-row.is-on { background: var(--primary-tint); }
.pc-import-row img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--bg-canvas); }
.pc-import-row-title { font-size: var(--font-caption); color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-import-row-sub { font-size: 10px; color: var(--text-tertiary); font-variant-numeric: tabular-nums; }
.pc-import-row-price { font-size: var(--font-caption); font-variant-numeric: tabular-nums; color: var(--text-secondary); white-space: nowrap; }
.pc-import-foot { display: flex; align-items: center; justify-content: flex-end; gap: var(--space-2); padding: 12px 20px;
  box-shadow: inset 0 1px 0 var(--separator); flex-wrap: wrap; }
.pc-import-local { display: grid; gap: var(--space-3); }
.pc-import-drop { border-radius: var(--radius-card); background: var(--bg-sunken); padding: var(--space-6); text-align: center; color: var(--text-tertiary); font-size: var(--font-caption); }
.pc-import-drop input[type="file"] { display: none; }
.pc-import-filelist { display: flex; gap: 6px; flex-wrap: wrap; font-size: var(--font-overline); color: var(--text-secondary); }
.pc-import-filelist span { padding: 2px 8px; border-radius: var(--radius-pill); background: var(--bg-sunken); }
.pc-queue-empty { display: grid; justify-items: center; gap: 6px; padding: var(--space-8) var(--space-4); text-align: center; }
.pc-queue-empty h3 { font-size: var(--font-card); }
.pc-queue-empty p { font-size: var(--font-caption); color: var(--text-tertiary); max-width: 420px; line-height: 1.6; }

@media (max-width: 900px) {
  .pc-queue-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pc-storebar-select { min-width: 0; flex: 1 1 160px; max-width: none; }
  .pc-import-layer { padding: 0; }
  .pc-import-panel { width: 100%; height: 100dvh; max-height: 100dvh; border-radius: 0; }
}

/* 导入弹窗行：标题与副信息分两行，价格不换行 */
.pc-import-row > span:nth-child(3) { min-width: 0; display: block; }
.pc-import-row-title { display: block; }
.pc-import-row-sub { display: block; margin-top: 2px; }
.pc-import-row-price { align-self: center; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pc-import-row .pc-check { align-self: center; }

/* 编辑抽屉：主图工具条 + SKU 表格 */
.pc-edit-img-tools { position: absolute; left: 2px; right: 2px; bottom: 2px; display: flex; gap: 2px; justify-content: center; opacity: 0;
  transition: opacity var(--duration) var(--ease); }
.pc-edit-img:hover .pc-edit-img-tools { opacity: 1; }
.pc-edit-img-tools button { flex: 1 1 0; min-width: 0; border: 0; border-radius: 5px; background: rgba(28,28,30,.62); color: #fff; font-size: 9px; line-height: 16px;
  padding: 0; cursor: pointer; }
.pc-edit-img-tools button:hover { background: var(--primary); }
.pc-edit-img-badge { position: absolute; left: 3px; top: 3px; padding: 0 5px; border-radius: 4px; background: var(--primary); color: #fff; font-size: 9px; line-height: 15px; }
.pc-sku-wrap { max-height: 320px; overflow: auto; scrollbar-width: thin; border-radius: var(--radius-inner); background: var(--bg-sunken); }
.pc-sku-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--font-overline); }
.pc-sku-table th { position: sticky; top: 0; z-index: 1; background: var(--bg-sunken); padding: 6px 8px; text-align: left; color: var(--text-tertiary); font-weight: 500; }
.pc-sku-table td { padding: 4px 8px; vertical-align: middle; }
.pc-sku-table .form-control { min-height: 28px; padding: 3px 8px; font-size: var(--font-overline); }
.pc-sku-color { display: block; color: var(--text-primary); }
.pc-sku-opt { display: block; font-size: 9px; color: var(--text-tertiary); }
/* SKU 输入框等宽，避免价格抖动 */
.pc-sku-table .form-control { font-variant-numeric: tabular-nums; }

/* 素材库：全宽（不再有状态树两栏） */
.pc-main-wide { display: grid; gap: var(--space-3); min-width: 0; }
.pc-main-wide .pc-table { min-width: 1180px; }

/* 上架页：左侧状态树（该店铺维度）+ 右侧发布队列 */
.pc-queue-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: var(--space-4); align-items: start; }
.pc-queue-layout > .pc-tree { max-height: calc(100dvh - 190px); }
@media (max-width: 1200px) {
  .pc-queue-layout { grid-template-columns: minmax(0, 1fr); }
  .pc-queue-layout > .pc-tree { position: static; max-height: none; }
}

/* 素材库：操作列固定在右侧（10 个数据列一个不少，操作单列） */
.pc-col-ops { width: 178px; }
.pc-table th.pc-col-ops, .pc-table td.pc-ops-cell { position: sticky; right: 0; z-index: 2; background: var(--bg-card); }
.pc-table th.pc-col-ops { background: var(--bg-sunken); z-index: 3; }
.pc-table tbody tr:hover td.pc-ops-cell { background: var(--bg-hover); }
.pc-table td.pc-ops-cell::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; box-shadow: -4px 0 10px rgba(28,28,30,.05); }
.pc-main-wide .pc-table { min-width: 1320px; }
@media (max-width: 900px) {
  .pc-table td.pc-ops-cell, .pc-table th.pc-col-ops { position: static; }
  .pc-col-ops { width: auto; }
}

/* 买家视角定稿：分系列尺码行 + 弹层头部固定、内容独立滚动 */
.pc-size-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.pc-size-series { flex: 0 0 auto; min-width: 46px; font-size: var(--font-overline); color: var(--text-tertiary); letter-spacing: .2px; }
.pc-size-row .pc-spec-row { flex: 1 1 auto; }
.pc-size-row .pc-spec-chip { min-width: 54px; text-align: center; }
.pc-size-row .pc-spec-chip.is-active { background: var(--primary); color: #fff; box-shadow: none; font-weight: 600; }

.pc-preview-layer { padding: 16px; }
.pc-preview-panel { max-height: calc(100dvh - 32px); }
.pc-preview-bar { position: sticky; top: 0; z-index: 3; background: var(--bg-card); }
.pc-preview-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.pc-buyer-title { font-size: 20px; }
@media (max-width: 1100px) {
  .pc-preview-panel { max-height: 100dvh; }
}

/* 虚拟滚动：行固定高度 + 屏幕外跳过渲染（content-visibility 让浏览器跳过离屏行布局/绘制） */
#catalogRows tr[data-catalog-ic] { content-visibility: auto; contain-intrinsic-size: auto 112px; }
#catalogRows tr.pc-vrow-pad td { padding: 0 !important; box-shadow: none !important; background: transparent !important; }
.pc-thumb img { width: 80px; height: 80px; }

/* ==========================================================================
   产品编辑（照旺销王三栏）：顶部页签 + 左分组导航 + 中字段清单 + 右编辑区 + 底部固定
   ========================================================================== */
.drawer-backdrop.wxe-wide .detail-drawer { width: min(1280px, 96vw); max-width: 96vw; }
.drawer-backdrop.wxe-wide #drawerBody { height: calc(100dvh - 74px); display: flex; }

.wxe { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; width: 100%; }
.wxe-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 20px;
  box-shadow: inset 0 -1px 0 var(--separator); flex-wrap: wrap; }
.wxe-tabs { display: flex; gap: 4px; }
.wxe-tab { border: 0; background: transparent; padding: 11px 14px; font-size: var(--font-caption); color: var(--text-secondary);
  border-radius: 8px 8px 0 0; position: relative;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease); }
.wxe-tab:hover { color: var(--text-primary); background: var(--bg-hover); }
.wxe-tab.is-active { color: var(--primary-deep); font-weight: 600; background: var(--primary-tint); }
.wxe-tab.is-active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--primary); border-radius: 2px; }
.wxe-meta { font-size: var(--font-overline); color: var(--text-tertiary); font-variant-numeric: tabular-nums; }

.wxe-body { flex: 1 1 auto; min-height: 0; display: flex; overflow: hidden; }
.wxe-3col { display: grid; grid-template-columns: 168px 208px minmax(0, 1fr); width: 100%; min-height: 0; }

.wxe-nav { border-right: 1px solid var(--separator); padding: 8px 6px; overflow-y: auto; scrollbar-width: thin; background: var(--bg-canvas); }
.wxe-nav-item { display: block; width: 100%; text-align: left; border: 0; background: transparent; border-radius: 8px;
  padding: 8px 12px; font-size: var(--font-caption); color: var(--text-secondary); margin-bottom: 2px;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease); }
.wxe-nav-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.wxe-nav-item.is-active { background: var(--primary); color: #fff; font-weight: 500; }
.wxe-nav-child { display: block; width: 100%; text-align: left; border: 0; background: transparent; border-radius: 8px;
  padding: 6px 12px 6px 26px; font-size: var(--font-overline); color: var(--text-tertiary); margin-bottom: 2px; }
.wxe-nav-child:hover { background: var(--bg-hover); color: var(--text-primary); }
.wxe-nav-child.is-active { background: var(--primary-tint); color: var(--primary-deep); }

.wxe-fields { border-right: 1px solid var(--separator); overflow-y: auto; scrollbar-width: thin; padding: 8px 6px; }
.wxe-fields-title { padding: 6px 10px 8px; font-size: var(--font-overline); color: var(--text-tertiary); letter-spacing: .4px; }
.wxe-field-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; text-align: left;
  border: 0; background: transparent; border-radius: 8px; padding: 8px 10px; font-size: var(--font-caption); color: var(--text-secondary); }
.wxe-field-row:hover { background: var(--bg-hover); color: var(--text-primary); }
.wxe-field-row.is-active { background: var(--primary-tint); color: var(--primary-deep); font-weight: 500; }
.wxe-field-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wxe-req { color: var(--danger); font-style: normal; margin-left: 2px; }
.wxe-field-count { flex: 0 0 auto; font-size: 10px; color: var(--text-tertiary); font-variant-numeric: tabular-nums; }

.wxe-editor { padding: 14px 20px 20px; overflow-y: auto; scrollbar-width: thin; min-width: 0; }
.wxe-field { display: grid; gap: 6px; margin-bottom: 14px; }
.wxe-label { font-size: var(--font-overline); color: var(--text-secondary); }
.wxe-label em { color: var(--danger); font-style: normal; }
.wxe-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.wxe-count { font-size: var(--font-overline); color: var(--text-tertiary); font-variant-numeric: tabular-nums; }
.wxe-quick { display: flex; gap: 6px; flex-wrap: wrap; }
.wxe-quick .btn { min-height: 28px; padding: 3px 10px; font-size: var(--font-overline); }
.wxe-note { font-size: var(--font-overline); color: var(--text-tertiary); line-height: 1.6; }
.wxe-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.wxe-chip { padding: 3px 10px; border-radius: var(--radius-pill); background: var(--bg-sunken); color: var(--text-secondary); font-size: var(--font-overline); }
.wxe-size-row { display: flex; gap: 8px; align-items: flex-start; margin-top: 6px; flex-wrap: wrap; }
.wxe-size-series { flex: 0 0 auto; min-width: 46px; font-size: var(--font-overline); color: var(--text-tertiary); }
.wxe-tools { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.wxe-tools .btn { min-height: 28px; font-size: var(--font-overline); }
.wxe-placeholder { padding: 32px 20px; text-align: center; color: var(--text-tertiary); }
.wxe-placeholder h4 { font-size: var(--font-card); color: var(--text-secondary); margin-bottom: 8px; }
.wxe-placeholder p { font-size: var(--font-caption); line-height: 1.7; max-width: 460px; margin: 0 auto; }

.wxe-json { margin: 0; padding: 16px 20px; overflow: auto; height: 100%; font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11.5px; line-height: 1.65; color: var(--text-secondary); background: var(--bg-canvas); }
.wxe-log { padding: 16px 20px; overflow-y: auto; width: 100%; }
.wxe-log-item { display: grid; grid-template-columns: 130px 120px minmax(0,1fr) 90px; gap: 10px; align-items: baseline;
  padding: 9px 0; box-shadow: inset 0 -1px 0 var(--card-stroke); font-size: var(--font-caption); }
.wxe-log-time, .wxe-log-actor { font-size: var(--font-overline); color: var(--text-tertiary); font-variant-numeric: tabular-nums; }
.wxe-log-action { color: var(--primary-deep); font-weight: 500; }
.wxe-log-detail { color: var(--text-secondary); word-break: break-word; }

.wxe-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px;
  box-shadow: inset 0 1px 0 var(--separator); background: var(--bg-card); flex-wrap: wrap; }
.wxe-foot-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

@media (max-width: 1100px) {
  .drawer-backdrop.wxe-wide .detail-drawer { width: 100vw; max-width: 100vw; border-radius: 0; }
  .wxe-3col { grid-template-columns: minmax(0, 1fr); }
  .wxe-nav { display: flex; gap: 6px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--separator); padding: 8px 10px; scrollbar-width: none; }
  .wxe-nav::-webkit-scrollbar { display: none; }
  .wxe-nav-item, .wxe-nav-child { width: auto; flex: 0 0 auto; border-radius: var(--radius-pill); padding: 6px 12px; margin: 0; }
  .wxe-fields { display: flex; gap: 6px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--separator); padding: 8px 10px; scrollbar-width: none; }
  .wxe-fields::-webkit-scrollbar { display: none; }
  .wxe-fields-title { display: none; }
  .wxe-field-row { width: auto; flex: 0 0 auto; border-radius: var(--radius-pill); background: var(--bg-sunken); padding: 5px 10px; }
  .wxe-editor { padding: 12px 14px 18px; }
  .wxe-log-item { grid-template-columns: 1fr; gap: 2px; }
}

/* ==========================================================================
   四页：采集子入口 / 平台清单 / 认领中心 / 分发中心
   ========================================================================== */
.pc-collect-subtabs { display: flex; gap: 4px; flex-wrap: wrap; padding: 6px; border-radius: var(--radius-pill); background: var(--bg-card); box-shadow: var(--shadow-card); }
.pc-subtab { border: 0; background: transparent; border-radius: var(--radius-pill); padding: 6px 14px; font-size: var(--font-caption); color: var(--text-secondary);
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease); }
.pc-subtab:hover { background: var(--bg-hover); color: var(--text-primary); }
.pc-subtab.is-active { background: var(--primary-tint); color: var(--primary-deep); font-weight: 600; }
.pc-subtab-link { margin-left: 4px; color: var(--text-tertiary); font-size: var(--font-overline); }
.pc-subtab-link:hover { color: var(--primary-deep); background: var(--primary-tint); }

.pc-platform-list { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 14px; border-radius: var(--radius-card); background: var(--bg-card); box-shadow: var(--shadow-card); }
.pc-platform-item { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: var(--radius-pill); padding: 6px 12px;
  background: var(--bg-sunken); color: var(--text-secondary); font-size: var(--font-overline);
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease); }
.pc-platform-item:hover { background: var(--primary-tint); color: var(--primary-deep); }
.pc-platform-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-tertiary); box-shadow: 0 0 0 3px rgba(60,60,67,.06); }
.pc-platform-item.is-ready { background: var(--success-tint); color: #24883F; }
.pc-platform-item.is-ready .pc-platform-dot { background: var(--success); box-shadow: 0 0 0 3px rgba(52,199,89,.16); }
.pc-platform-tag { font-size: 9px; padding: 0 4px; border-radius: 4px; background: rgba(60,60,67,.08); color: var(--text-tertiary); }

.pc-dist-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); gap: var(--space-4); align-items: start; }
.pc-dist-table { min-width: 720px; }
.pc-dist-stores { display: grid; gap: 4px; max-height: 360px; overflow-y: auto; margin-top: var(--space-2); scrollbar-width: thin; }
.pc-dist-store { display: grid; grid-template-columns: 18px minmax(0,1fr) auto; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 9px; background: var(--bg-sunken);
  font-size: var(--font-caption); color: var(--text-secondary); cursor: pointer; transition: background var(--duration) var(--ease); }
.pc-dist-store:hover { background: var(--bg-hover); }
.pc-dist-store.is-on { background: var(--primary-tint); color: var(--primary-deep); }
.pc-dist-store-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-dist-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: var(--space-3); }
.pc-dist-actions .btn-primary { margin-left: auto; }
.pc-dist-result { display: grid; gap: 6px; margin-top: var(--space-3); }

@media (max-width: 1200px) {
  .pc-dist-layout { grid-template-columns: minmax(0, 1fr); }
}

/* 我的产品：左侧有 190px 树，列宽再收一档，保证 10 列 + 操作列在 1600 宽一屏可见 */
.pc-library .pc-table { min-width: 1010px; }
.pc-library .pc-table th, .pc-library .pc-table td { padding: 7px 6px; }
.pc-library .pc-table th:first-child, .pc-library .pc-table td:first-child { padding-left: 10px; }
.pc-library .pc-table th:last-child, .pc-library .pc-table td:last-child { padding-right: 10px; }
.pc-library .pc-col-check { width: 30px; }
.pc-library .pc-col-no { width: 26px; }
.pc-library .pc-col-img { width: 88px; }
.pc-library .pc-col-price { width: 104px; }
.pc-library .pc-col-source { width: 70px; }
.pc-library .pc-col-status { width: 82px; }
.pc-library .pc-col-time { width: 112px; }
.pc-library .pc-col-code { width: 58px; }
.pc-library .pc-col-src { width: 72px; }
.pc-library .pc-col-ops { width: 150px; }
.pc-library .pc-title-cell { min-width: 130px; max-width: 360px; }
.pc-library .pc-title-text { font-size: var(--font-caption); }
.pc-library .pc-time { font-size: 9.5px; }
.pc-library .pc-ops-cell .btn { padding: 2px 4px; font-size: 10px; }
.pc-library .pc-sv-actions { gap: 0; }
.pc-library .pc-thumb { width: 72px; height: 72px; }
.pc-library .pc-thumb img { width: 72px; height: 72px; }
.pc-library .pc-profit-card { padding: 4px 6px; font-size: 10px; }

/* 表头可排序 + 列配置勾选 */
.pc-th-sort { border: 0; background: none; padding: 0; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit;
  display: inline-flex; align-items: center; gap: 3px; cursor: pointer; }
.pc-th-sort:hover { color: var(--primary-deep); }
.pc-th-sort.is-sorted { color: var(--primary-deep); font-weight: 600; }
.pc-sort-ind { font-size: 10px; line-height: 1; }
.pc-colopt { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 8px; font-size: var(--font-caption); color: var(--text-secondary); cursor: pointer; }
.pc-colopt:hover { background: var(--bg-hover); color: var(--text-primary); }

/* 买家视角：色块占位方格（图未解码前的骨架，避免布局跳动） */
.pc-swatch-ph { display: block; width: 100%; height: 86px; border-radius: 8px; background: var(--bg-sunken);
  position: relative; overflow: hidden; }
.pc-swatch-ph::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent); animation: shimmer 1.5s var(--ease) infinite; }
.pc-swatch img { display: block; width: 100%; height: 86px; object-fit: cover; }

/* SKU 表：工具条 + 纯文本单元格 + 分页 */
.wxe-sku-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.wxe-sku-toolbar .form-control { flex: 1 1 200px; max-width: 280px; min-height: 30px; font-size: var(--font-caption); }
.wxe-sku-toolbar .form-select { width: auto; min-width: 150px; min-height: 30px; font-size: var(--font-caption); }
.wxe-sku-pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.pc-sku-table td.wxe-sku-cell { cursor: text; font-variant-numeric: tabular-nums; }
.pc-sku-table td.wxe-sku-cell:hover { background: var(--bg-hover); box-shadow: inset 0 0 0 1px var(--card-stroke); border-radius: 6px; }
.pc-sku-table td.wxe-sku-cell .form-control { min-height: 24px; padding: 1px 6px; font-size: var(--font-overline); }
.pc-sku-table tbody tr { content-visibility: auto; contain-intrinsic-size: auto 30px; }

/* 认领/分发：骨架行（先出结构再填数） */
.pc-skeleton-row td { padding: 10px 8px; }

/* 滚动优化：去掉 sticky 列的阴影伪元素（每帧重算合成层），改用 inset 阴影；行与单元格收敛重绘范围 */
.pc-library .pc-table td.pc-ops-cell::before { display: none; }
.pc-library .pc-table td.pc-ops-cell { box-shadow: inset 1px 0 0 var(--separator); will-change: transform; }
.pc-library .pc-table tbody tr { contain: layout style; }
.pc-library .pc-table td { contain: paint; }
#catalogRows tr[data-catalog-ic] { transition: none; }
.pc-table tbody tr:hover td { transition: none; }

/* ==========================================================================
   母版 / 店铺副本 层级视觉（按 UI skill：微明度色阶，不用 border 线、不用纯黑）
   母版 = 中性灰蓝；副本 = 暖橙；两者都靠 1%–3% 明度差 + 低饱和底色区分
   ========================================================================== */
.pc-badge-soft { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border-radius: 6px;
  font-size: 10px; line-height: 1.6; font-weight: 500; letter-spacing: .2px;
  background: rgba(60,60,67,.06); color: var(--text-secondary); white-space: nowrap; }
.pc-badge-soft.is-store { background: rgba(255,149,0,.12); color: #A75C00; }
.pc-badge-soft.is-warn { background: rgba(255,149,0,.10); color: #A75C00; }
.pc-badge-soft.is-master { background: rgba(60,60,67,.07); color: var(--text-secondary); }

.wxe-level { padding: 10px 20px 0; }
.wxe-banner { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 11px;
  font-size: var(--font-caption); line-height: 1.5; }
.wxe-banner b { font-weight: 600; }
.wxe-banner span:last-child { color: var(--text-secondary); font-size: var(--font-overline); }
.wxe-banner.is-master { background: rgba(60,60,67,.045); color: var(--text-primary); }
.wxe-banner.is-store { background: rgba(255,149,0,.075); color: #8A4B00; }

/* 副本「已改」对比与同步母版高亮 */
.price-compare { margin-top: 3px; font-size: 10.5px; color: var(--text-tertiary); font-variant-numeric: tabular-nums; }
.price-compare s { color: var(--text-tertiary); }
.price-compare b { color: #A75C00; font-weight: 600; }
.btn-link.is-sync-hint { color: #A75C00; font-weight: 600; }

/* 店铺选择器：双环聚焦（不用 outline） */
#catalogStorePicker:focus { outline: none; box-shadow: 0 0 0 1.5px rgba(10,132,255,.35), inset 0 0 0 1px rgba(10,132,255,.2); }

/* 状态树折叠继续用 Grid 过渡（已有 .pc-tree-children 0fr→1fr） */
.pc-tree-children { transition: grid-template-rows .35s cubic-bezier(.215,.61,.355,1); }
/* 正文与描述防孤字 */
.pc-title-text, .pc-sv-title, .wxe-banner span, .pc-queue-empty p { text-wrap: pretty; }
/* 金额/库存等数字统一等宽（body 全局已开，这里补齐新组件） */
.pc-badge-soft, .price-compare, .copy-code, .pc-sv-stat-value { font-variant-numeric: tabular-nums; }

/* ==========================================================================
   商品中心独立标签页：隐藏左侧主导航与全局顶栏，用自带精简头部
   （层级靠微明度色阶，不用 border 线；品牌色只用在当前项）
   ========================================================================== */
body.catalog-standalone .sidebar,
body.catalog-standalone .nav-scrim,
body.catalog-standalone .topbar { display: none !important; }
body.catalog-standalone .app-main {
  margin-left: 0 !important;
  max-width: none !important;
  padding: 0 24px 32px !important;
}
body.catalog-standalone .page-view[data-page="publish"] { padding-top: 16px; }

.catalog-standalone-head { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 16px;
  padding: 12px 24px; background: rgba(252,252,251,.99);
  box-shadow: 0 1px 0 rgba(60,60,67,.06); }
.catalog-standalone-brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.catalog-standalone-brand strong { display: block; font-size: 14px; font-weight: 600; letter-spacing: -.2px; }
.catalog-standalone-brand small { display: block; font-size: 10.5px; color: var(--text-tertiary); }
.catalog-standalone-store { font-size: var(--font-overline); color: var(--text-secondary); padding: 3px 10px;
  border-radius: 999px; background: rgba(60,60,67,.05); font-variant-numeric: tabular-nums; }
.catalog-standalone-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* 独立页里内容区更宽，表格可铺开 */
body.catalog-standalone .pc-library .pc-table { min-width: 1180px; }
body.catalog-standalone .page-header { display: none; }

/* ==========================================================================
   间距规范（8pt 栅格）：行距 16 / 统计卡 88 高 · 内边距 16 / 左右 24 / 顶部 24
   —— 统一用 flex+gap，不再各写 margin，避免塌陷与叠压
   ========================================================================== */
.pc-shell { gap: 24px; }                    /* 页头 → 页签 → 内容区 24px */
.pc-flow { margin-bottom: 0; }
.pc-panel { display: flex; flex-direction: column; gap: 16px; }
.pc-panel[data-catalog-panel="store"],
.pc-panel[data-catalog-panel="material"],
.pc-panel[data-catalog-panel="collect"] { padding-inline: 24px; }

.pc-storebar { margin: 0; flex: 0 0 auto; }
.pc-queue-layout { gap: 16px; align-items: start; }
.pc-queue-layout > .pc-main,
.pc-panel[data-catalog-panel="store"] > .pc-main {
  display: flex; flex-direction: column; gap: 16px; overflow: visible; min-width: 0;
}
.pc-sv-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; overflow: visible; }
.pc-sv-stat { min-height: 88px; padding: 16px; display: flex; flex-direction: column; justify-content: center; gap: 4px; overflow: visible; }
.pc-sv-stat-label { font-size: var(--font-overline); }
.pc-sv-stat-value { margin-top: 0; font-size: 26px; }

.pc-library { gap: 16px; }
.pc-library > .pc-tree { margin: 0; }
.pc-library .pc-main { display: flex; flex-direction: column; gap: 16px; }
.card-header { padding-bottom: 12px; }        /* 卡片标题 → 内容 12px */
.table-card .card-header { padding-bottom: 12px; }

/* 表格行高统一：图片 72 + 上下 8×2 = 88~104，时间列小字仍压得住 */
.pc-library .pc-table td { padding: 8px 6px; }
.pc-library .pc-thumb { width: 72px; height: 72px; }
.pc-library .pc-thumb img { width: 72px; height: 72px; }
#catalogStoreRows td, #catalogRows td { vertical-align: middle; }

@media (max-width: 1200px) {
  .pc-sv-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pc-panel[data-catalog-panel="store"],
  .pc-panel[data-catalog-panel="material"],
  .pc-panel[data-catalog-panel="collect"] { padding-inline: 16px; }
}
@media (max-width: 640px) {
  .pc-sv-stats { gap: 10px; }
  .pc-sv-stat { min-height: 88px; padding: 14px 12px; }   /* 规范：最小高度 88，不因窄屏缩水 */
  .pc-sv-stat-value { font-size: 24px; }
  .pc-storebar-hint { display: none; }                     /* 窄屏收起长提示，避免占三行 */
  .pc-storebar { row-gap: 8px; }
}

/* #listing 视图：由 body.catalog-listing 强制显示，避免被应用路由随后隐藏 */
body.catalog-listing .page-view[data-page="listing"] { display: block !important; }
body.catalog-listing .page-view:not([data-page="listing"]) { display: none !important; }
body.catalog-listing .page-header { display: none; }
.ls-shell { display: flex; flex-direction: column; gap: 16px; padding: 16px 24px 96px; }
.ls-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; border-radius: 14px;
  background: rgba(255,149,0,.075); color: #8A4B00; }
.ls-head-main { display: flex; align-items: baseline; gap: 10px; min-width: 0; flex-wrap: wrap; }
.ls-head-main strong { font-size: 13px; font-weight: 600; }
.ls-head-main span { font-size: 11.5px; color: #A75C00; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 520px; }
.ls-cols { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(0,1.15fr); gap: 16px; align-items: start; }
.ls-col { background: var(--bg-card); border-radius: 16px; box-shadow: var(--shadow-card); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.ls-col-title { font-size: 12px; font-weight: 600; color: var(--text-secondary); letter-spacing: .2px; }
.ls-gallery { display: grid; grid-template-columns: 60px minmax(0,1fr); gap: 8px; }
.ls-thumbs { display: flex; flex-direction: column; gap: 6px; max-height: 300px; overflow-y: auto; scrollbar-width: none; }
.ls-thumbs::-webkit-scrollbar { display: none; }
.ls-thumb { width: 56px; height: 56px; padding: 0; border: 0; border-radius: 9px; overflow: hidden; background: var(--bg-sunken); cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--card-stroke); }
.ls-thumb.is-active { box-shadow: 0 0 0 2px var(--primary); }
.ls-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ls-stage { border-radius: 12px; overflow: hidden; background: var(--bg-sunken); aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; }
.ls-stage img { width: 100%; height: 100%; object-fit: contain; }
.ls-field { display: flex; flex-direction: column; gap: 6px; }
.ls-title { font-size: var(--font-caption); line-height: 1.5; color: var(--text-primary); text-wrap: pretty; }
.ls-inline { display: flex; gap: 8px; align-items: center; }
.ls-inline .form-control { flex: 1 1 auto; }
.ls-hint { font-size: 10.5px; color: var(--text-tertiary); line-height: 1.5; }
.ls-attrs { display: flex; gap: 6px; flex-wrap: wrap; }
.ls-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.ls-desc { max-height: 220px; overflow: auto; font-size: 11.5px; color: var(--text-secondary); line-height: 1.65; padding: 10px; border-radius: 10px; background: var(--bg-sunken); }
.ls-buyer-card { display: flex; flex-direction: column; gap: 10px; }
.ls-buyer-title { font-size: var(--font-card); font-weight: 600; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ls-buyer-price { display: flex; align-items: baseline; gap: 4px; }
.ls-buyer-price .usd { font-size: 11px; color: var(--text-tertiary); }
.ls-buyer-price strong { font-size: 26px; font-weight: 600; letter-spacing: -.6px; }
.ls-buyer-meta { font-size: 11px; color: var(--text-tertiary); }
.ls-progress { position: relative; height: 30px; border-radius: 999px; background: var(--bg-sunken); overflow: hidden; display: flex; align-items: center; }
.ls-progress-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgba(10,132,255,.18); transition: width .3s var(--ease); }
.ls-progress span { position: relative; z-index: 1; padding-left: 14px; font-size: 11.5px; color: var(--text-secondary); }
.ls-result { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--bg-sunken); font-size: 12px; }
.ls-result-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ls-foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 24px; background: rgba(252,252,251,.99);
  box-shadow: 0 -1px 0 rgba(60,60,67,.06); }
.ls-foot-note { font-size: 11px; color: var(--text-tertiary); }
.ls-foot-actions { display: flex; gap: 8px; align-items: center; }
@media (max-width: 1200px) {
  .ls-cols { grid-template-columns: minmax(0,1fr); }
  .ls-shell { padding: 12px 16px 112px; }
  .ls-grid3 { grid-template-columns: repeat(1, minmax(0,1fr)); }
  .ls-foot { padding: 10px 16px; }
}

/* 素材库（母版）：全宽表格，无状态树 / 无状态列 / 无属性胶囊行 */
.pc-main-wide { display: flex; flex-direction: column; gap: 16px; width: 100%; }
.pc-main-wide .pc-table { min-width: 1080px; }
.pc-main-wide .pc-table td, .pc-main-wide .pc-table th { padding: 8px 10px; }
.pc-main-wide .pc-title-cell { min-width: 240px; }

/* 筛选面板（只列后端已支持的维度；未支持的控件禁用并写明原因） */
.pc-filter-panel { min-width: 300px; max-width: 340px; padding: 10px; }
.pc-filter-group { padding: 8px 4px; }
.pc-filter-label { display: flex; align-items: baseline; gap: 6px; font-size: var(--font-caption); color: var(--text-primary); margin-bottom: 6px; }
.pc-filter-sub { font-size: 10px; color: var(--text-tertiary); }
.pc-filter-checks { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 2px 6px; max-height: 190px; overflow-y: auto; scrollbar-width: thin; }
.pc-filter-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding-top: 8px; box-shadow: inset 0 1px 0 var(--separator); }
#catalogFilterBtn[data-active="1"] { color: var(--primary-deep); }

/* 产品级三列（采集源价 / 实际收入 / 买家价格）：等宽数字，右对齐不受抖动影响 */
.pc-main-wide .pc-col-cash, .pc-main-wide .pc-col-buyer { width: 96px; }
.pc-main-wide .pc-table td:nth-last-child(4), .pc-main-wide .pc-table td:nth-last-child(3) { white-space: nowrap; font-variant-numeric: tabular-nums; }
.pc-main-wide .pc-table { min-width: 1240px; }

/* 导入对话框 + 渲染失败降级提示 */
.pc-import-dialog { min-width: 380px; max-width: 420px; }
.pc-import-dialog textarea { font-family: ui-monospace, Menlo, monospace; font-size: 11px; line-height: 1.6; }
.pc-import-dialog-actions { display: flex; gap: 6px; align-items: center; margin-left: auto; }
.pc-import-dialog-result { display: grid; gap: 6px; margin-top: 8px; }
.pc-render-error { padding: 16px 8px; font-size: 12px; color: var(--danger); line-height: 1.7; }
.pc-render-error span { color: var(--text-tertiary); font-size: 11px; }

/* 行内校验（Inline Alert）：红字常驻输入框下方，不用 toast */
.ls-err { font-size: 10.5px; color: var(--danger); line-height: 1.5; margin-top: 2px; }
.form-control.is-invalid { box-shadow: 0 0 0 1.5px rgba(255,59,48,.35), inset 0 0 0 1px rgba(255,59,48,.2); }
.form-control[readonly] { background: var(--bg-canvas); color: var(--text-secondary); }

/* 素材库：粘贴链接采集条 */
.mat-collect-row { gap: 8px; }
.mat-collect-row .form-control { flex: 1 1 420px; }
.mat-collect-status { font-size: var(--font-overline); color: var(--text-secondary); }
.mat-collect-status[data-tone="busy"] { color: var(--primary-deep); }
.mat-collect-status[data-tone="warn"] { color: #A75C00; }

/* 物料编辑页：主图/颜色网格 + SKU 虚拟滚动表格 */
.mat-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.mat-images { display: flex; gap: 8px; flex-wrap: wrap; }
.mat-image { position: relative; width: 88px; height: 88px; border-radius: 10px; overflow: hidden; background: var(--bg-sunken); cursor: grab; }
.mat-image img { width: 100%; height: 100%; object-fit: cover; }
.mat-image.is-dragging { opacity: .45; }
.mat-image-idx { position: absolute; left: 4px; top: 4px; padding: 0 5px; border-radius: 5px; background: rgba(28,28,30,.6); color: #fff; font-size: 10px; }
.mat-colors { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; max-height: 380px; overflow-y: auto; padding: 2px; scrollbar-width: thin; }
.mat-color { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 5px; border-radius: 10px; background: var(--bg-sunken); cursor: grab; }
.mat-color img { width: 100%; height: 72px; object-fit: cover; border-radius: 7px; }
.mat-color-name { font-size: 10px; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mat-color .pc-badge-soft { align-self: flex-start; font-size: 9px; }
.mat-color.is-dragging { opacity: .45; }

.mat-sku-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.mat-sku-batch { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mat-sku-batch .form-control { width: 104px; min-height: 28px; font-size: var(--font-overline); }
.mat-sku-head, .mat-sku-row { display: grid; grid-template-columns: 46px minmax(0,1.1fr) minmax(0,1fr) 92px 92px 88px 76px; gap: 8px; align-items: center; }
.mat-sku-head { padding: 6px 8px; font-size: var(--font-overline); color: var(--text-tertiary); background: var(--bg-sunken); border-radius: 8px 8px 0 0; }
.mat-sku-scroll { height: 460px; overflow-y: auto; background: var(--bg-card); scrollbar-width: thin; }
.mat-sku-row { padding: 5px 8px; font-size: var(--font-caption); box-shadow: inset 0 -1px 0 var(--card-stroke); }
.mat-sku-pic img { width: 36px; height: 36px; border-radius: 7px; object-fit: cover; }
.mat-sku-input { min-height: 28px; padding: 2px 6px; font-size: var(--font-overline); font-variant-numeric: tabular-nums; }

/* 预览发布效果 */
.mp-wrap { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 24px; }
.mp-gallery { display: flex; flex-direction: column; gap: 8px; }
.mp-stage { border-radius: 14px; overflow: hidden; background: var(--bg-sunken); aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; }
.mp-stage img { width: 100%; height: 100%; object-fit: contain; }
.mp-thumbs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.mp-thumb { width: 56px; height: 56px; padding: 0; border: 0; border-radius: 9px; overflow: hidden; background: var(--bg-sunken); box-shadow: inset 0 0 0 1px var(--card-stroke); }
.mp-thumb.is-active { box-shadow: 0 0 0 2px var(--primary); }
.mp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mp-info { display: flex; flex-direction: column; gap: 10px; }
.mp-title { font-size: 18px; font-weight: 600; line-height: 1.45; text-wrap: pretty; }
.mp-price { display: flex; align-items: baseline; gap: 4px; }
.mp-price strong { font-size: 26px; letter-spacing: -.5px; }
.mp-meta { font-size: var(--font-overline); color: var(--text-tertiary); }
.mp-colors { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; max-height: 240px; overflow-y: auto; scrollbar-width: thin; }
.mp-color { display: flex; flex-direction: column; gap: 3px; padding: 4px; border: 0; border-radius: 9px; background: var(--bg-sunken); }
.mp-color img { width: 100%; height: 62px; object-fit: cover; border-radius: 6px; }
.mp-color span { font-size: 9.5px; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-color.is-active { box-shadow: 0 0 0 2px var(--primary); }
.mp-selects { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
@media (max-width: 1100px) {
  .mp-wrap { grid-template-columns: minmax(0,1fr); }
  .mat-sku-head, .mat-sku-row { grid-template-columns: 40px minmax(0,1fr) 80px 76px 70px 64px; }
}

/* 物料编辑页：三栏比例 + 预览层压过抽屉 */
.wxe-3col { display: grid; grid-template-columns: 200px 210px minmax(0, 1fr); gap: 0; align-items: stretch; min-height: 520px; }
.wxe-nav { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px 8px 0; box-shadow: inset -1px 0 0 var(--card-stroke); max-height: calc(100dvh - 300px); overflow-y: auto; scrollbar-width: thin; }
.wxe-nav-item { text-align: left; padding: 7px 12px; border: 0; border-radius: 9px; background: transparent; font-size: var(--font-caption); color: var(--text-secondary); }
.wxe-nav-item.is-active { background: var(--primary); color: #fff; }
.wxe-nav-child { text-align: left; padding: 5px 12px 5px 24px; border: 0; background: transparent; font-size: var(--font-overline); color: var(--text-tertiary); }
.wxe-nav-child.is-active { color: var(--primary-deep); }
.wxe-fields { padding: 8px 12px; box-shadow: inset -1px 0 0 var(--card-stroke); max-height: calc(100dvh - 300px); overflow-y: auto; scrollbar-width: thin; }
.wxe-fields-title { font-size: var(--font-overline); color: var(--text-tertiary); margin-bottom: 6px; }
.wxe-field-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; text-align: left; padding: 7px 10px; border: 0; border-radius: 8px; background: transparent; font-size: var(--font-caption); color: var(--text-secondary); }
.wxe-field-row.is-active { background: var(--bg-sunken); color: var(--text-primary); }
.wxe-req { color: var(--danger); font-style: normal; margin-left: 2px; }
.wxe-field-count { font-size: 10px; color: var(--text-tertiary); font-variant-numeric: tabular-nums; }
.wxe-editor { padding: 12px 16px; min-width: 0; max-height: calc(100dvh - 300px); overflow-y: auto; scrollbar-width: thin; }
#catalogMaterialPreviewLayer { z-index: 80; }
[data-mat-preview] { background: var(--primary); color: #fff; }
#catalogMaterialPreviewLayer { z-index: 200; }
#catalogMaterialPreviewLayer .pc-preview-panel { max-height: calc(100dvh - 32px); }
#catalogMaterialPreviewLayer .pc-preview-body { overflow-y: auto; padding: 16px 20px 24px; }

/* 水印：店铺下拉 + 进度条 + 发布按钮 */
.mat-wm-tools { display: flex; align-items: center; gap: 8px; }
.mat-store-pick { display: flex; align-items: center; gap: 6px; }
.mat-store-label { font-size: var(--font-overline); color: var(--text-tertiary); }
.mat-store-pick .form-select { min-height: 28px; font-size: var(--font-overline); padding: 2px 24px 2px 8px; }
.mat-publish-btn { min-height: 28px; }
.mat-wm-row { padding: 6px 20px 0; }
.mat-wm-note { font-size: var(--font-overline); color: var(--text-tertiary); }
.mat-wm-note.is-ok { color: #1D7A3E; }
.mat-wm-note.is-error { color: var(--danger); }
.mat-wm-progress { position: relative; height: 26px; border-radius: 999px; background: var(--bg-sunken); overflow: hidden; display: flex; align-items: center; }
.mat-wm-bar { position: absolute; inset: 0 auto 0 0; background: rgba(10,132,255,.18); transition: width .3s var(--ease); }
.mat-wm-progress span { position: relative; z-index: 1; padding-left: 12px; font-size: var(--font-overline); color: var(--text-secondary); }
.mat-store-label { white-space: nowrap; }
.mat-wm-tools { flex: 0 0 auto; }
.wxe-top { flex-wrap: wrap; row-gap: 6px; }
.mat-wm-row { padding: 4px 20px 6px; }

/* ===== 主线 r124-r129 新增样式（从 reject 抢救）===== */
++ live-app/app.css

/* ③ 列表行跳过屏外渲染（不缩行高、不减内容） */
#catalogRows tr[data-catalog-ic] { content-visibility: auto; contain-intrinsic-size: auto 96px; }

/* ④ 色卡分批：底部「继续加载」 */
.mat-more { display: flex; justify-content: center; padding: 6px 0 2px; }

/* 性能：抽屉内滚动容器与行做绘制隔离，避免每帧重排整页 */
#drawerBody { contain: layout paint; }
.mat-sku-scroll { contain: strict; will-change: scroll-position; overscroll-behavior: contain; }
.mat-sku-row { contain: layout paint style; }
.mat-colors { contain: content; }

/* 性能：抽屉打开时不绘制背后的列表页（2708 节点每帧合成 = 30ms/帧的元凶） */
body.drawer-open .page-view { content-visibility: hidden; }
/* 遮罩改为不透明（透明会强制合成背后内容，实测 16.7ms vs 30ms） */
#drawerBackdrop { background: var(--bg-canvas) !important; }
/* ===== 2026-10-29 前端体验接手优化 ===== */
/* 窄屏（手机）：商品发布 / 产品中心不再把整页撑宽（此前 390px 视口被撑到 1385px，右侧内容全被切掉） */
@media (max-width: 900px) {
  section[data-page="publish"] { overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
  section[data-page="publish"] .pc-shell { min-width: 0; }
  section[data-page="publish"] .pc-library { grid-template-columns: minmax(0, 1fr); }
  section[data-page="publish"] .pc-tree { position: static; max-height: none; }
  section[data-page="publish"] .pc-flow { flex-wrap: wrap; row-gap: var(--space-2); }
  section[data-page="publish"] .pc-flow-note { display: none; }
}
/* 窄屏：顶部「数据新鲜度」条与筛选标签不换行时容易挤出屏幕，允许它们横向收缩 */
@media (max-width: 699px) {
  #freshnessText { max-width: 42vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #filterChipRow { flex-wrap: wrap; row-gap: 6px; }
}

