/* AI巡店 基础样式（复用库存管理设计系统） */
.sidebar {
  background: #0f172a;
  color: #e2e8f0;
  transition: width .2s;
}
.logo-mark {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff; font-weight: 700; font-size: 18px;
  flex-shrink: 0;
}
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px;
  color: #94a3b8; font-size: 14px; white-space: nowrap;
  transition: all .15s;
}
.nav-item:hover { background: rgba(255,255,255,.08); color: #f1f5f9; }
.nav-item-active { background: #6366f1; color: #fff; box-shadow: 0 4px 12px rgba(99,102,241,.35); }
.topbar {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}
.card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
}
.kpi-value { font-size: 26px; font-weight: 700; color: #0f172a; }
.kpi-label { font-size: 12px; color: #64748b; margin-top: 4px; }
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; padding: 2px 8px; border-radius: 999px; font-weight: 500;
}
.chip-critical { background: #fef2f2; color: #dc2626; }
.chip-warning  { background: #fffbeb; color: #d97706; }
.chip-info     { background: #eff6ff; color: #2563eb; }
.chip-ok       { background: #ecfdf5; color: #059669; }
/* 可点击的分类筛选 chip(按钮去默认样式 + hover 反馈) */
.chip-btn { cursor: pointer; border: 0; font-family: inherit; transition: opacity .15s; }
.chip-btn:hover { opacity: .8; }
.chip-active { background: #4f46e5; color: #fff; }
/* ABC 分析等级徽章(A/B/C) */
.abc-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 6px;
  font-size: 12px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.abc-a { background: #059669; }
.abc-b { background: #f59e0b; }
.abc-c { background: #ef4444; }
/* 商品状态徽章(官方 list-by-filter 同步) */
.status-badge {
  display: inline-flex; align-items: center;
  font-size: 12px; padding: 2px 10px; border-radius: 999px; font-weight: 600;
}
.st-selling  { background: #ecfdf5; color: #059669; }   /* 在售 */
.st-ready    { background: #eff6ff; color: #2563eb; }   /* 准备销售 */
.st-error    { background: #fef2f2; color: #dc2626; }   /* 异常 */
.st-archived { background: #f1f5f9; color: #64748b; }   /* 已归档 */
.table-row-hover:hover { background: #f8fafc; }
/* 多店铺「店铺」列:单店模式整列折叠(visibility:collapse 对 table 列可靠生效,宽度归零) */
.xundian-col-collapse { visibility: collapse; }
/* 店铺徽章(all 模式行首展示:店铺名短标签) */
.store-badge {
  display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 600; line-height: 1;
  padding: 3px 8px; border-radius: 999px;
  background: #eef2ff; color: #4f46e5;
  white-space: nowrap;
}
.toast {
  background: #0f172a; color: #fff;
  padding: 10px 16px; border-radius: 10px; font-size: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  animation: toast-in .25s ease;
}
.toast-error { background: #dc2626; }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── 运营学院 · Markdown 正文排版 ── */
.md-body { color: #334155; font-size: 15px; line-height: 1.75; }
.md-body h2 {
  font-size: 1.3rem; font-weight: 700; color: #0f172a;
  margin: 1.6em 0 .6em; padding-bottom: .35em;
  border-bottom: 1px solid #e2e8f0;
}
.md-body h3 {
  font-size: 1.1rem; font-weight: 600; color: #0f172a;
  margin: 1.4em 0 .5em;
}
.md-body h2:first-child { margin-top: 0; }
.md-body p { margin: .6em 0; }
.md-body ul, .md-body ol { margin: .6em 0; padding-left: 1.4em; }
.md-body ul { list-style: disc; }
.md-body ol { list-style: decimal; }
.md-body li { margin: .3em 0; }
.md-body a { color: #4f46e5; text-decoration: underline; }
.md-body strong { color: #0f172a; font-weight: 600; }
.md-body blockquote {
  margin: 1em 0; padding: .7em 1em;
  border-left: 3px solid #6366f1; background: #f8faff;
  border-radius: 0 10px 10px 0; color: #475569;
}
.md-body blockquote p { margin: 0; }
.md-body table {
  width: 100%; margin: 1em 0; border-collapse: collapse;
  font-size: 13.5px;
}
.md-body th, .md-body td {
  border: 1px solid #e2e8f0; padding: 8px 12px; text-align: left; vertical-align: top;
}
.md-body th { background: #f8fafc; color: #0f172a; font-weight: 600; }
.md-body tr:nth-child(even) td { background: #fafbfd; }
.md-body code {
  background: #f1f5f9; color: #334155;
  padding: 2px 6px; border-radius: 6px; font-size: .9em;
}
.md-body pre {
  background: #0f172a; color: #e2e8f0;
  padding: 12px 16px; border-radius: 10px; overflow-x: auto;
  margin: 1em 0;
}
.md-body pre code { background: none; color: inherit; padding: 0; }
.md-body hr { border: 0; border-top: 1px solid #e2e8f0; margin: 1.6em 0; }
