/* 潮式探牛 · 品牌经营分析首页 */

.brand-body {
  background: #f7f5f2;
}

.brand-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand-topbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 11px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.brand-logo-mark {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(140deg, #c1382a, #7d1a12);
  box-shadow: 0 6px 16px -8px rgba(176, 42, 31, 0.8);
}

.brand-logo-name {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.brand-logo-sub {
  color: var(--ink-3);
  font-size: 11.5px;
  letter-spacing: 0.08em;
}

.brand-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.brand-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  transition: 0.18s ease;
}

.brand-nav a:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.brand-nav a.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.brand-nav a.primary:hover {
  background: var(--accent-dark);
  color: #fff;
}

.brand-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 20px 60px;
}

/* ---------------- Banner 轮播海报 ---------------- */

.hero {
  position: relative;
  height: 340px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 40px -24px rgba(58, 26, 20, 0.5);
  background: #2a1714;
}

.hero-track {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.65s ease, transform 0.9s ease;
  display: flex;
  align-items: center;
  padding: 36px 52px;
  overflow: hidden;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 35%, rgba(255, 255, 255, 0.16), transparent 42%);
  pointer-events: none;
}

.slide-1 { background: linear-gradient(115deg, #5e1613 0%, #a0291f 52%, #d0603a 100%); }
.slide-2 { background: linear-gradient(115deg, #123a3c 0%, #1c6771 52%, #3e9a9f 100%); }
.slide-3 { background: linear-gradient(115deg, #3b2446 0%, #6d3a63 52%, #b16583 100%); }
.slide-4 { background: linear-gradient(115deg, #453011 0%, #96651f 52%, #d39a44 100%); }

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 580px;
  color: #fff;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  margin-bottom: 16px;
}

.hero-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffd9a0;
  box-shadow: 0 0 0 4px rgba(255, 217, 160, 0.18);
}

.hero-title {
  font-size: clamp(30px, 4.2vw, 50px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 12px;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}

.hero-desc {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.86);
  max-width: 480px;
  margin: 0 0 20px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span {
  padding: 5px 11px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 12.5px;
  font-weight: 600;
}

.hero-art {
  position: absolute;
  z-index: 2;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  width: 46%;
  max-width: 500px;
  opacity: 0.95;
  pointer-events: none;
}

.hero-art svg {
  width: 100%;
  height: auto;
  display: block;
}

.hero-nav {
  position: absolute;
  z-index: 6;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(24, 14, 12, 0.28);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease;
}

.hero-nav:hover { background: rgba(24, 14, 12, 0.55); }
.hero-prev { left: 14px; }
.hero-next { right: 14px; }

.hero-dots {
  position: absolute;
  z-index: 6;
  left: 52px;
  bottom: 22px;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 22px;
  height: 5px;
  border-radius: 99px;
  border: none;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
  padding: 0;
  transition: width 0.3s ease, background 0.3s ease;
}

.hero-dot.active {
  width: 42px;
  background: #fff;
}

/* ---------------- 分析区 ---------------- */

.analysis-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 26px 0 14px;
}

.analysis-title h2 {
  font-size: 23px;
  letter-spacing: -0.02em;
}

.analysis-title p {
  margin: 4px 0 0;
  color: var(--ink-3);
  font-size: 13px;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--ok-soft);
  color: var(--ok);
  font-size: 12.5px;
  font-weight: 600;
}

.live-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(20, 108, 67, 0.12);
}

.filter-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-label {
  color: var(--ink-3);
  font-size: 12.5px;
  font-weight: 600;
}

.seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 10px;
  background: #f2eee9;
  gap: 2px;
}

.seg button {
  border: none;
  background: transparent;
  color: var(--ink-2);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.15s ease;
}

.seg button.active {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 1px 5px rgba(40, 25, 20, 0.12);
}

.filter-dates {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-dates input {
  height: 34px;
  padding: 0 9px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  color: var(--ink);
}

.filter-note {
  margin-left: auto;
  color: var(--ink-3);
  font-size: 12.5px;
}

.section-card {
  margin-top: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.section-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.section-card-head h3 {
  font-size: 16px;
}

.section-card-head p {
  margin: 3px 0 0;
  color: var(--ink-3);
  font-size: 12.5px;
}

.section-card-body { padding: 18px; }

/* KPI */

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
  gap: 12px;
}

/* 指标分组容器：五类自上而下排列，每组内部横向铺开 */
.kpi-groups {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.kpi-group {
  min-width: 0;
}

.kg-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.kg-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.kg-title::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: var(--accent);
}

.kg-desc {
  font-size: 12px;
  color: var(--ink-3);
}

.kg-note {
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.8;
  padding: 10px 12px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: #fdfbf8;
}

.kg-note a {
  color: var(--accent);
}

.kpi-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 15px 13px;
  background: linear-gradient(150deg, #fff, #fcfaf8);
  overflow: hidden;
}

.kpi-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--kpi-color, var(--accent));
}

.kpi-label {
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 600;
  min-height: 20px;
}

.kpi-value {
  margin-top: 7px;
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  line-height: 1.25;
}

.kpi-value .unit {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  margin-left: 3px;
}

.kpi-foot {
  margin-top: 5px;
  color: var(--ink-3);
  font-size: 11.5px;
}

/* 对比表 */

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.cmp-table {
  width: 100%;
  min-width: 1180px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

.cmp-table th,
.cmp-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.cmp-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #faf7f4;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
  border-bottom: 1px solid var(--line-strong);
}

.cmp-table th:first-child,
.cmp-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 3;
  text-align: left;
  background: #fff;
  min-width: 190px;
}

.cmp-table thead th:first-child {
  z-index: 4;
  background: #faf7f4;
}

.cmp-table tbody tr:hover td { background: #fdfaf8; }
.cmp-table tbody tr:hover td:first-child { background: #fdfaf8; }

.cmp-table tbody tr:last-child td { border-bottom: none; }

.entity-name {
  font-weight: 700;
  color: var(--ink);
}

.entity-sub {
  color: var(--ink-3);
  font-size: 11.5px;
  font-weight: 500;
}

.brand-chip {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 700;
  vertical-align: 1px;
}

.metric-cell {
  display: inline-block;
  min-width: 76px;
}

.best-tag {
  display: inline-block;
  margin-left: 5px;
  padding: 0 5px;
  border-radius: 5px;
  background: var(--ok-soft);
  color: var(--ok);
  font-size: 10px;
  font-weight: 700;
}

.bar-track {
  position: relative;
  height: 4px;
  margin-top: 5px;
  border-radius: 99px;
  background: #eee9e3;
  overflow: hidden;
}

.bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 99px;
  background: linear-gradient(90deg, #c94a38, #e8a06f);
}

.bar-fill.blue { background: linear-gradient(90deg, #1f5f8b, #72a9ca); }
.bar-fill.green { background: linear-gradient(90deg, #146c43, #6fb48c); }

.muted { color: var(--ink-3); }

/* 进货与库存（2026-11-25 重做）
   事故点：.inv-kpis / .inv-kpi / .inv-ranks / .inv-rank-card / .inv-row
   这些类**此前一条样式都没有**，所以浏览器把它们全渲染成堆叠的普通文字，
   看起来就像「用文字展示」。这里补齐，并补上真正的图表区。 */

.inv-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

/* 复用全局 .kpi-card 视觉，只补一条占比条 */
.inv-kpi-bar {
  margin-top: 9px;
  height: 5px;
  border-radius: 99px;
  background: #f0ece7;
  overflow: hidden;
}

.inv-kpi-bar > span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--kpi-color, var(--accent));
  transition: width 0.4s ease;
}

.inv-kpi-sub {
  margin-top: 7px;
  font-size: 11.5px;
  color: var(--ink-3);
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}

.inv-kpi-sub b {
  color: var(--ink-2);
  font-weight: 600;
}

/* 负库存提示条：橙色，只提示不阻断 */
.inv-alert {
  margin: -6px 0 16px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid #f5d9a8;
  background: #fff8ec;
  color: #8a5a12;
  font-size: 12px;
  line-height: 1.75;
}

.inv-alert b { color: #7a4d0a; }

/* 图表区：左条形 + 右环形 */
.inv-charts {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

.inv-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 15px;
  background: #fdfcfb;
  min-width: 0;
}

.inv-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.inv-panel-head h4 {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

.inv-panel-sub {
  font-size: 11.5px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.inv-legend-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--ink-3);
  margin: -2px 0 10px;
}

.inv-dot {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  display: inline-block;
}

.inv-dot.stock { background: linear-gradient(135deg, #b02a1f, #e08b5f); }
.inv-dot.buy { background: linear-gradient(135deg, #1f5f8b, #8ab8d4); }
.inv-legend-row .inv-dot + .inv-dot,
.inv-legend-row .inv-dot:not(:first-child) { margin-left: 8px; }

/* 双色条形：一行两段（库存 / 进货），共享同一比例尺 */
.inv-bar-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 76px;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
}

.inv-bar-row .nm {
  font-size: 12.5px;
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inv-bar-stack {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.inv-bar-track {
  height: 9px;
  border-radius: 99px;
  background: #f2eee9;
  overflow: hidden;
}

.inv-bar-track > span {
  display: block;
  height: 100%;
  border-radius: 99px;
  transition: width 0.45s ease;
}

.inv-bar-track.stock > span { background: linear-gradient(90deg, #b02a1f, #e08b5f); }
.inv-bar-track.buy > span { background: linear-gradient(90deg, #1f5f8b, #8ab8d4); }

.inv-bar-row .vl {
  text-align: right;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
  line-height: 1.5;
}

.inv-bar-row .vl b {
  color: var(--ink);
  font-weight: 700;
}

/* 环形图：用 conic-gradient 画，不引图表库（页面上其他图也是纯 CSS） */
.inv-donut-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.inv-donut {
  position: relative;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  flex: none;
  background: #f2eee9;
}

.inv-donut-hole {
  position: absolute;
  inset: 26px;
  border-radius: 50%;
  background: #fdfcfb;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.inv-donut-hole b {
  font-size: 15px;
  font-weight: 750;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.inv-donut-hole span {
  font-size: 10.5px;
  color: var(--ink-3);
  margin-top: 2px;
}

.inv-legend {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 132px;
  flex: 1;
}

.inv-legend-item {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--ink-2);
}

.inv-legend-item i {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  display: block;
}

.inv-legend-item .nm {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inv-legend-item .pc {
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  font-size: 11.5px;
}

/* 三张排行卡 */
.inv-ranks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.inv-rank-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px 10px;
  background: #fff;
  min-width: 0;
}

.inv-rank-card h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 9px;
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.inv-rank-card h4 small {
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-3);
}

/* 排行行：名次 | 名称+占比条 | 金额+数量，条比纯数字更容易比大小 */
.inv-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 7px 0;
  border-bottom: 1px dashed #f0ece7;
}

.inv-row:last-child { border-bottom: none; }

.inv-row .no {
  font-size: 11px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.inv-row .mid {
  min-width: 0;
}

.inv-row .nm {
  font-size: 12.5px;
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inv-row .rt {
  text-align: right;
  line-height: 1.45;
}

.inv-row .qt {
  font-size: 11px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.inv-row .vl {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.inv-row-bar {
  height: 4px;
  border-radius: 99px;
  background: #f4f0ec;
  overflow: hidden;
  margin-top: 4px;
}

.inv-row-bar > span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #c94a38, #e8a06f);
}

.inv-row.slow .inv-row-bar > span { background: linear-gradient(90deg, #a16207, #d9a44a); }

/* 图表 */

.hbar-row {
  display: grid;
  grid-template-columns: 168px 1fr 110px;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.hbar-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hbar-track {
  height: 16px;
  border-radius: 99px;
  background: #f0ece7;
  overflow: hidden;
}

.hbar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.4s ease;
}

.hbar-value {
  text-align: right;
  font-size: 13px;
  font-weight: 700;
}

.chart-select {
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  padding: 0 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.chart-svg {
  width: 100%;
  height: auto;
  display: block;
}

.chart-legend {
  margin-top: 10px;
  color: var(--ink-3);
  font-size: 12px;
  text-align: center;
}

/* 说明 */

.notes-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 10px;
}

.note-item {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 12px 14px;
  background: #fcfaf8;
}

.note-item b {
  display: block;
  font-size: 13px;
  margin-bottom: 3px;
}

.note-item span {
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.7;
}

.brand-foot {
  margin-top: 26px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--ink-3);
  font-size: 12px;
}

.error-card {
  margin-top: 18px;
  padding: 18px;
  border-radius: 12px;
  border: 1px solid #f0c9c3;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 13.5px;
}

@media (max-width: 860px) {
  .hero { height: 300px; border-radius: 16px; }
  .hero-slide { padding: 28px 24px; }
  .hero-copy { max-width: 74%; }
  .hero-art { right: -8%; width: 54%; opacity: 0.55; }
  .hero-dots { left: 24px; bottom: 16px; }
  .hero-title { font-size: 30px; }
  .hero-desc { font-size: 13px; }
  .brand-nav {
    width: 100%;
    margin-left: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }
  .brand-nav a { flex: none; white-space: nowrap; justify-content: center; }
  .filter-note { margin-left: 0; width: 100%; }
  .kpi-value { font-size: 21px; }
  .hbar-row { grid-template-columns: 120px 1fr 92px; gap: 8px; }
  .hbar-name, .hbar-value { font-size: 12px; }
  /* 进货与库存：窄屏改成上下排，条形图名字列收窄，避免把卡片撑破 */
  .inv-charts { grid-template-columns: minmax(0, 1fr); }
  .inv-bar-row { grid-template-columns: 78px minmax(0, 1fr) 68px; gap: 8px; }
  .inv-donut { width: 116px; height: 116px; }
  .inv-donut-hole { inset: 23px; }
}

@media (max-width: 520px) {
  .hero { height: 270px; }
  .hero-copy { max-width: 100%; }
  .hero-art { display: none; }
  .hero-nav { display: none; }
  .hero-tags span { font-size: 11px; padding: 4px 8px; }
  .analysis-title h2 { font-size: 20px; }
  .section-card-body { padding: 13px; }
}
