/* ===== 品牌对比页 ===== */
.cmp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.cmp-note { font-size: 12px; color: var(--text-mute); line-height: 1.6; margin-top: 6px; }
.cmp-legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 12px 0 4px; font-size: 12.5px; color: var(--text); }
.cmp-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.cmp-chart { position: relative; width: 100%; }
.cmp-svg { width: 100%; height: auto; display: block; font-family: inherit; }
.cmp-grid { stroke: rgba(32, 35, 42, 0.08); stroke-width: 1; }
.cmp-axis { stroke: rgba(32, 35, 42, 0.35); stroke-width: 1; }
.cmp-tick { fill: var(--text-dim); font-size: 12px; }
.cmp-axis-title { fill: var(--text-mute); font-size: 12.5px; }
.cmp-dot { opacity: 0.38; stroke: #fff; stroke-width: 1; }
.cmp-brand { stroke: #fff; stroke-width: 2.5; opacity: 0.95; }
.cmp-hit { cursor: default; }
.cmp-hit:hover .cmp-dot { opacity: 1; }
.cmp-hit:hover .cmp-brand { stroke: var(--text); }
.cmp-label { fill: var(--text); font-size: 14px; font-weight: 700; }
.cmp-label-bg { fill: rgba(255,255,255,0.78); }
.cmp-label-sub { fill: var(--text-mute); font-size: 11.5px; }
.cmp-zone { fill: rgba(22, 101, 52, 0.07); stroke: #166534; stroke-width: 1.5; stroke-dasharray: 6 5; }
.cmp-zone-label { fill: #166534; font-size: 13px; font-weight: 700; }
.cmp-zone-sub { fill: #166534; font-size: 11.5px; }
.cmp-tooltip { position: absolute; pointer-events: none; background: rgba(255, 255, 255, 0.96); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font-size: 12px; color: var(--text); box-shadow: 0 6px 18px rgba(0,0,0,0.12); max-width: 240px; line-height: 1.5; z-index: 5; }
.cmp-tooltip strong { display: block; margin-bottom: 2px; }
.cmp-data { margin-top: 10px; font-size: 12.5px; }
.cmp-data summary { cursor: pointer; color: var(--text-mute); }
.cmp-mini { border-collapse: collapse; margin-top: 8px; font-size: 12.5px; }
.cmp-mini th, .cmp-mini td { padding: 5px 12px; border-bottom: 1px solid var(--border-soft); text-align: left; }
.cmp-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cmp-table { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 900px; font-size: 12.5px; line-height: 1.55; }
.cmp-table thead th { text-align: left; font-size: 14px; padding: 10px 12px; border-bottom: 2px solid var(--border); background: var(--panel-strong); }
.cmp-table tbody th { text-align: left; vertical-align: top; width: 96px; padding: 10px 12px; color: var(--text-mute); font-weight: 600; white-space: nowrap; }
.cmp-table td { vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border-soft); color: var(--text); width: 18%; }
.cmp-table tbody tr:nth-child(even) td, .cmp-table tbody tr:nth-child(even) th { background: rgba(255, 255, 255, 0.28); }
.cmp-table ul { margin: 0; padding-left: 16px; }
.cmp-table li + li { margin-top: 4px; }
.cmp-table td.cmp-productForms { font-weight: 600; }
.cmp-chip { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 7px; vertical-align: 1px; }
.cmp-tier-bg { fill: rgba(32, 35, 42, 0.035); }
.cmp-tier-line { stroke: rgba(32, 35, 42, 0.22); stroke-width: 1; stroke-dasharray: 3 4; }
.cmp-tier-label { fill: var(--text-dim); font-size: 12px; font-weight: 600; }
.cmp-subtitle { margin: 18px 0 6px; font-size: 13.5px; color: var(--text); }
.cmp-mini { width: 100%; max-width: 760px; }
.cmp-mini td, .cmp-mini th { padding: 8px 12px; vertical-align: top; }
.cmp-mini-sub { display: block; font-size: 11px; color: var(--text-mute); font-weight: 400; }
.cmp-mini td.cmp-empty { color: var(--text-dim); }
.cmp-label-halo { stroke: #fff; stroke-width: 4px; stroke-linejoin: round; paint-order: stroke; }
.cmp-table thead th { text-transform: none; letter-spacing: 0; color: var(--text); }

/* ---- 手机 / 电脑自适应 ---- */
.cmp-mobile { display: none; }
.cmp-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.cmp-pill { display: inline-flex; align-items: center; border: 1px solid var(--border); background: var(--panel-strong); color: var(--text); border-radius: 999px; padding: 7px 14px; font-size: 13.5px; font-family: inherit; cursor: pointer; }
.cmp-pill.active { background: var(--text); color: #fff; border-color: var(--text); }
.cmp-m-card { border-top: 3px solid; border-radius: 10px; background: var(--panel-strong); padding: 4px 14px; }
.cmp-m-sec { padding: 12px 0; border-bottom: 1px solid var(--border-soft); font-size: 14px; line-height: 1.65; color: var(--text); }
.cmp-m-sec:last-child { border-bottom: 0; }
.cmp-m-label { font-size: 12px; font-weight: 700; color: var(--text-mute); margin-bottom: 4px; letter-spacing: 0.02em; }
.cmp-m-sec p { margin: 0; }
.cmp-m-sec ul { margin: 0; padding-left: 18px; }
.cmp-m-sec li + li { margin-top: 5px; }
.cmp-svg.cmp-narrow .cmp-tick { font-size: 10.5px; }
.cmp-svg.cmp-narrow .cmp-axis-title { font-size: 11px; }
.cmp-svg.cmp-narrow .cmp-tier-label { font-size: 11px; }
.cmp-svg.cmp-narrow .cmp-label { font-size: 12px; }
@media (max-width: 760px) {
  .cmp-desktop { display: none; }
  .cmp-mobile { display: block; }
  .cmp-legend { gap: 10px 14px; font-size: 12.5px; }
  .cmp-mini { font-size: 12px; }
  .cmp-mini td, .cmp-mini th { padding: 7px 6px; }
  .cmp-mini td:first-child { white-space: nowrap; }
  .cmp-mini-sub { font-size: 10.5px; }
  .cmp-tooltip { max-width: 200px; }
}

/* 手机：定位地图左右滑动 */
.cmp-scroll.on { overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 0 0 6px; scroll-snap-type: x proximity; }
.cmp-scroll.on .cmp-chart { flex: none; }
.cmp-scroll.on::-webkit-scrollbar { height: 4px; }
.cmp-scroll.on::-webkit-scrollbar-thumb { background: rgba(32,35,42,0.25); border-radius: 4px; }
.cmp-swipe-hint { font-size: 12px; color: var(--text-dim); text-align: center; margin: 6px 0 4px; }
@media (max-width: 760px) {
  .cmp-note { font-size: 12.5px; line-height: 1.7; }
  .cmp-legend { margin: 14px 0 6px; }
  .cmp-subtitle { margin-top: 22px; }
}
.cmp-scroll-wrap { position: relative; }
.cmp-yaxis { position: absolute; left: 0; top: 0; pointer-events: none; background: rgba(250,250,251,0.93); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-radius: 0 8px 8px 0; box-shadow: 4px 0 8px -6px rgba(32,35,42,0.25); }
.cmp-yaxis svg { display: block; }
