:root {
  --osmanthus: #d99a28;
  --osmanthus-soft: #f6d89a;
  --rice: #f8efe0;
  --rice-deep: #ead9bd;
  --oolong: #4b3a24;
  --oolong-soft: #7b643f;
  --tea-green: #65724a;
  --ink: #2f271b;
  --muted: #806f57;
  --line: rgba(75, 58, 36, 0.16);
  --paper: rgba(255, 250, 239, 0.86);
  --shadow: 0 24px 70px rgba(75, 58, 36, 0.18);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Serif SC", serif;
  background:
    radial-gradient(circle at 15% 12%, rgba(217, 154, 40, 0.22), transparent 28%),
    radial-gradient(circle at 82% 0%, rgba(101, 114, 74, 0.2), transparent 32%),
    linear-gradient(135deg, #fff8ea 0%, #f2e5ce 48%, #dfc99e 100%);
}

button { font: inherit; }

.page-shell {
  width: min(1200px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 20px 0 48px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.8fr 0.7fr;
  gap: 20px;
  min-height: 160px;
  padding: 32px 40px;
  border: 1px solid rgba(75, 58, 36, 0.12);
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 20%, rgba(217, 154, 40, 0.18), transparent 50%),
    linear-gradient(135deg, rgba(255,255,255,0.85) 0%, rgba(248,239,224,0.95) 50%, rgba(234,217,189,0.6) 100%);
  box-shadow: 0 16px 40px rgba(75, 58, 36, 0.12), inset 0 1px 0 rgba(255,255,255,0.8);
}

.hero::after {
  content: "";
  position: absolute;
  right: -20px;
  top: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 154, 40, 0.28), transparent 72%);
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  right: 10%;
  bottom: -60px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(101, 114, 74, 0.15), transparent 70%);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--tea-green);
  letter-spacing: 0.2em;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eyebrow::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--tea-green), transparent);
  border-radius: 2px;
}

h1, h2, h3, p { margin-top: 0; }

.hero-title {
  margin-bottom: 10px;
  background: linear-gradient(135deg, var(--oolong) 0%, var(--osmanthus) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 900;
  filter: drop-shadow(0 4px 12px rgba(75, 58, 36, 0.15));
}

h1 {
  margin-bottom: 8px;
  color: var(--oolong);
  font-size: clamp(36px, 6vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

h2 {
  color: var(--oolong);
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1;
  letter-spacing: -0.05em;
}

h3 { color: var(--oolong); }

.subtitle {
  margin-bottom: 14px;
  color: var(--oolong-soft);
  font-size: 15px;
  letter-spacing: 0.02em;
  font-weight: 500;
}

.hero-tags, .chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.tag, .status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.tag {
  color: #5c4213;
  background: rgba(246, 216, 154, 0.7);
  border: 1px solid rgba(217, 154, 40, 0.3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
}

.status-pill {
  color: #fbf3dd;
  background: linear-gradient(135deg, var(--oolong) 0%, var(--oolong-soft) 100%);
  border: 1px solid rgba(75, 58, 36, 0.25);
  box-shadow: 0 4px 10px rgba(75, 58, 36, 0.15);
}

.hero-orbit {
  position: relative;
  min-height: 120px;
}

.orb {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff8e8;
  font-size: 36px;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(75,58,36,0.18);
}

.osmanthus { width: 90px; height: 90px; right: 40px; top: 0; background: var(--osmanthus); }
.rice { width: 72px; height: 72px; left: 10px; bottom: 10px; background: var(--rice-deep); color: var(--oolong); }
.oolong { width: 108px; height: 108px; right: 0; bottom: -8px; background: var(--oolong); }

.main-nav {
  position: sticky;
  top: 14px;
  z-index: 30;
  display: flex;
  gap: 8px;
  margin: 14px 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 250, 239, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 24px rgba(75,58,36,0.06);
}

.nav-item {
  flex: 1;
  cursor: pointer;
  border: 0;
  border-radius: 12px;
  padding: 10px 10px;
  color: var(--oolong);
  background: transparent;
  font-weight: 700;
  font-size: 14px;
  transition: all .18s ease;
}

.nav-item.active, .nav-item:hover, .nav-item:focus-visible {
  outline: none;
  color: #fff8ea;
  background: linear-gradient(135deg, var(--oolong), var(--tea-green));
}

.product-switcher {
  display: flex;
  gap: 8px;
  margin: 0 0 10px;
  padding: 5px;
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 250, 239, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 6px 18px rgba(75,58,36,0.05);
}

.product-pill {
  cursor: pointer;
  border: 0;
  border-radius: 10px;
  padding: 9px 18px;
  color: var(--oolong);
  background: transparent;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
  transition: all .18s ease;
}

.product-pill.active {
  color: #fff8ea;
  background: linear-gradient(135deg, var(--osmanthus), var(--oolong));
  box-shadow: 0 6px 14px rgba(217, 154, 40, 0.32);
}

.product-pill:not(.active):hover,
.product-pill:not(.active):focus-visible {
  outline: none;
  color: var(--osmanthus);
  background: rgba(246, 216, 154, 0.4);
}

.main-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 12px 40px rgba(75,58,36,0.08);
}

.section-grid, .metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.wide { grid-column: 1 / -1; }

.section-heading {
  max-width: 860px;
}

.section-heading p, .card-button p, .detail-page p, .analysis-box p, .funnel-card p, .modal-card p, li {
  color: var(--muted);
  line-height: 1.78;
}

.card-button {
  min-height: 180px;
  width: 100%;
  cursor: pointer;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.7), rgba(248,239,224,0.82));
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.card-button:hover, .card-button:focus-visible {
  outline: none;
  transform: translateY(-4px);
  border-color: rgba(217,154,40,0.55);
  box-shadow: 0 14px 36px rgba(75,58,36,0.12);
}

.card-kicker {
  width: fit-content;
  margin-bottom: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #6f4708;
  background: rgba(217,154,40,0.14);
  font-size: 11px;
  font-weight: 800;
}

.stacked-section { display: grid; gap: 18px; }

.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.summary-strip > div, .analysis-box, .funnel-card, .detail-page, .metric-list > div {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
  background: rgba(255,255,255,0.52);
}

.summary-strip b, .summary-strip span, .metric-list b, .metric-list span {
  display: block;
}

.summary-strip span, .metric-list span { margin-top: 8px; color: var(--muted); line-height: 1.65; }
.subhead { margin: 10px 0 -4px; }

.back-button {
  cursor: pointer;
  width: fit-content;
  margin-bottom: 18px;
  border: 1px solid rgba(75,58,36,0.18);
  border-radius: 999px;
  padding: 10px 14px;
  color: #fff8ea;
  background: var(--oolong);
  font-weight: 800;
}

.detail-hero {
  padding: 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(217,154,40,0.18), rgba(101,114,74,0.12));
}

.detail-columns, .modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.detail-columns > div, .modal-grid > div, .level-block {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: rgba(255,255,255,0.56);
}

/* Audience insight - redesigned layout */
.insight-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  margin-bottom: 16px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(217,154,40,0.1), rgba(101,114,74,0.08));
}
.insight-hero-left h2 { margin: 4px 0 2px; color: var(--oolong); font-size: 26px; letter-spacing: -0.02em; }
.insight-summary { margin: 0; color: var(--oolong-soft); font-size: 14px; }
.insight-hero-metrics {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.metric-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--line);
  min-width: 100px;
}
.metric-num {
  font-size: 22px;
  font-weight: 900;
  color: var(--oolong);
  letter-spacing: -0.03em;
  line-height: 1;
}
.metric-num.accent { color: #b8860b; }
.metric-label { font-size: 11px; color: var(--muted); margin-top: 4px; white-space: nowrap; }

.insight-body {
  display: grid;
  grid-template-columns: 0.42fr 0.58fr;
  gap: 14px;
}
.insight-col-left, .insight-col-right {
  display: grid;
  gap: 14px;
  align-content: start;
}
.insight-card {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,0.58);
}
.insight-card h4 {
  margin: 0 0 10px;
  color: var(--oolong);
  font-size: 14px;
  font-weight: 800;
}
.profile-card { display: grid; gap: 10px; }
.profile-donuts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.profile-donut-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.findings-card { background: linear-gradient(135deg, rgba(255,250,240,0.9), rgba(255,255,255,0.85)); border-left: 4px solid var(--osmanthus); }
.findings-card h3 { margin: 0 0 6px; font-size: 17px; }
.findings-list {
  margin: 12px 0 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.findings-list li { font-size: 14px; line-height: 1.65; color: var(--ink); }

.insight-performance {
  margin-top: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,0.5);
}
.insight-performance h4 {
  margin: 0 0 10px;
  color: var(--oolong);
  font-size: 14px;
  font-weight: 800;
}


/* Donut chart */
.donut-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}
.donut-legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.donut-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--ink);
}
.donut-legend-item b { color: var(--oolong); font-weight: 800; }
.donut-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Horizontal bar */
.hbar-list { display: flex; flex-direction: column; gap: 7px; }
.hbar-row {
  display: grid;
  grid-template-columns: 80px 1fr 42px;
  gap: 8px;
  align-items: center;
}
.hbar-label {
  font-size: 12px;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}
.hbar-track {
  height: 18px;
  border-radius: 9px;
  background: rgba(75,58,36,0.06);
  overflow: hidden;
}
.hbar-fill {
  height: 100%;
  border-radius: 9px;
  transition: width 0.6s ease;
}
.hbar-value {
  font-size: 12px;
  font-weight: 800;
  color: var(--oolong);
}

/* Vertical bar */
.vbar-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
  padding: 8px 4px 0;
  height: 160px;
}
.vbar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
  height: 100%;
  justify-content: flex-end;
}
.vbar-value {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--oolong);
  white-space: nowrap;
}
.vbar-track {
  width: 100%;
  max-width: 32px;
  flex: 1;
  min-height: 2px;
  border-radius: 6px 6px 0 0;
  background: rgba(75,58,36,0.06);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.vbar-fill {
  width: 100%;
  border-radius: 6px 6px 0 0;
  transition: height 0.6s ease;
}
.vbar-label {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}

/* City annotation */
.city-annotation {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.city-tag {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}
.city-tag.sink { color: #6f4708; background: rgba(217,154,40,0.16); }
.city-tag.nonsink { color: #3d4a2a; background: rgba(101,114,74,0.14); }

/* Performance section */
.audience-performance {
  margin: 14px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,0.5);
}
.audience-performance h4 {
  margin: 0 0 10px;
  color: var(--oolong);
  font-size: 14px;
  font-weight: 800;
}
.perf-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.perf-item {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(248,239,224,0.5);
  border: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink);
}

.notice-line {
  margin-top: 16px;
  border-radius: 18px;
  padding: 14px;
  color: #fff8ea;
  background: var(--tea-green);
  font-weight: 800;
}

.dashboard-page { display: grid; gap: 18px; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  color: var(--muted);
  font-weight: 800;
}

.breadcrumb span {
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.5);
}

.metric-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(37, 29, 17, 0.44);
  backdrop-filter: blur(14px);
}

.modal-card {
  position: relative;
  width: min(880px, calc(100vw - 32px));
  max-height: min(84vh, 780px);
  overflow: auto;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 24px;
  padding: 28px;
  background: linear-gradient(180deg, #fffaf0, #f4e3c4);
  box-shadow: 0 24px 60px rgba(0,0,0,0.22);
}

.modal-close {
  position: sticky;
  float: right;
  top: 0;
  cursor: pointer;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: #fff8ea;
  background: var(--oolong);
  font-size: 24px;
}

.lead { font-size: 18px; }
.modal-section { margin-top: 24px; }
.modal-meta {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  padding: 16px;
  border-radius: 20px;
  color: #fff8ea;
  background: var(--oolong);
}

.deep-analysis { display: grid; gap: 20px; margin-top: 4px; }

.analysis-section h4 {
  margin: 0 0 10px;
  color: var(--oolong);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.price-table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); }
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  background: rgba(255,255,255,0.5);
}
.price-table th {
  padding: 10px 12px;
  text-align: left;
  font-weight: 800;
  color: #fff8ea;
  background: var(--oolong);
  white-space: nowrap;
}
.price-table th:first-child { border-radius: 14px 0 0 0; }
.price-table th:last-child { border-radius: 0 14px 0 0; }
.price-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  white-space: nowrap;
}
.price-table tr:last-child td:first-child { border-radius: 0 0 0 14px; }
.price-table tr:last-child td:last-child { border-radius: 0 0 14px 0; }
.price-table tr.tier-premium td { background: rgba(217,154,40,0.08); }
.price-table tr.tier-volume td { background: rgba(101,114,74,0.06); }

.tier-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}
.tier-tag.premium { color: #6f4708; background: rgba(217,154,40,0.22); }
.tier-tag.volume { color: #3d4a2a; background: rgba(101,114,74,0.18); }

.trend-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.trend-card {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.58);
}
.trend-card h5 {
  margin: 0 0 6px;
  color: var(--oolong);
  font-size: 15px;
  font-weight: 800;
}
.trend-card p { margin: 0 0 10px; font-size: 13px; line-height: 1.65; }

.analysis-section.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.opp-col h4 { color: #2d5a27; }
.risk-col h4 { color: #8b3a2a; }
.opp-list, .risk-list { display: grid; gap: 10px; }
.opp-item, .risk-item {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--line);
}
.opp-item { border-left: 3px solid #65724a; }
.risk-item { border-left: 3px solid #c0392b; }
.opp-item b, .risk-item b { display: block; margin-bottom: 4px; color: var(--oolong); font-size: 13px; }
.opp-item p, .risk-item p { margin: 0; font-size: 12.5px; line-height: 1.6; }

.positioning-map {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: 1fr auto;
  gap: 6px;
  align-items: center;
}
.map-y-label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.1em;
}
.map-area {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.4);
  overflow: hidden;
}
.map-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.grid-line {
  position: absolute;
  background: rgba(75,58,36,0.08);
}
.grid-line.h-25 { left: 0; right: 0; top: 25%; height: 1px; }
.grid-line.h-50 { left: 0; right: 0; top: 50%; height: 1px; }
.grid-line.h-75 { left: 0; right: 0; top: 75%; height: 1px; }
.grid-line.v-25 { top: 0; bottom: 0; left: 25%; width: 1px; }
.grid-line.v-50 { top: 0; bottom: 0; left: 50%; width: 1px; }
.grid-line.v-75 { top: 0; bottom: 0; left: 75%; width: 1px; }
.map-point {
  position: absolute;
  border-radius: 50%;
  transform: translate(-50%, 50%);
  cursor: pointer;
  transition: transform 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.map-point:hover { transform: translate(-50%, 50%) scale(1.3); }
.map-point.highlight {
  border: 3px solid #c0392b;
  box-shadow: 0 0 16px rgba(192,57,43,0.45);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 12px rgba(192,57,43,0.4); }
  50% { box-shadow: 0 0 24px rgba(192,57,43,0.7); }
}
.map-x-label {
  grid-column: 2;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.1em;
}
.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.5);
  font-size: 11px;
}
.legend-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}
.legend-dot.highlight {
  border: 2px solid #c0392b;
  background: #c0392b;
}

@media (max-width: 900px) {
  .hero, .summary-strip, .detail-columns, .modal-grid, .trend-grid, .analysis-section.two-col,
  .insight-body, .insight-hero { grid-template-columns: 1fr; }
  .profile-donuts { grid-template-columns: 1fr; }
  .findings-list { grid-template-columns: 1fr; }
  .section-grid, .metric-grid, .metric-list { grid-template-columns: 1fr; }
  .main-nav { overflow: auto; }
  .nav-item { min-width: 100px; }
  .product-switcher { width: 100%; }
  .product-pill { flex: 1; padding: 9px 10px; }
  .hero { padding: 18px 20px; }
  h1 { font-size: 42px; }
  .price-table { font-size: 12px; }
  .price-table th, .price-table td { padding: 7px 9px; }
  .donut-wrap { flex-direction: column; align-items: flex-start; }
  .hbar-row { grid-template-columns: 70px 1fr 38px; }
  .vbar-label { font-size: 9px; }
  .vbar-value { font-size: 9.5px; }
  .insight-hero-metrics { justify-content: flex-start; }
}

/* ===== 茶拿铁数据看板：真实数据可视化样式 ===== */

/* Metric cards grid */
.latte-metric-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.latte-mcard {
  background: rgba(255, 250, 239, 0.9);
  border: 1px solid rgba(75, 58, 36, 0.1);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 4px 16px rgba(75, 58, 36, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.latte-mcard:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(75, 58, 36, 0.12);
}
.latte-mcard-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
.latte-mcard-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--oolong);
  line-height: 1.2;
}
.latte-mcard-sub {
  margin-top: 6px;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.latte-mcard-vs {
  color: var(--muted);
  font-size: 10px;
}
.latte-change.up { color: #2d8a5f; font-weight: 700; }
.latte-change.down { color: #c44848; font-weight: 700; }

/* Funnel */
.latte-funnel-section {
  background: rgba(255, 250, 239, 0.6);
  border: 1px solid rgba(75, 58, 36, 0.08);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 24px;
}
.latte-funnel-section h4 {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--oolong);
}
.latte-funnel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.latte-funnel-step {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  border-radius: 10px;
  color: #fff;
  font-size: 13px;
  min-width: 120px;
  transition: width 0.5s ease;
}
.latte-funnel-label {
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.latte-funnel-value {
  font-weight: 800;
  font-size: 15px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.latte-funnel-conv {
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
  padding: 2px 8px;
  background: rgba(75, 58, 36, 0.06);
  border-radius: 6px;
}

/* Dual PV/UV funnel */
.latte-dual-funnel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.latte-funnel-block {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(75, 58, 36, 0.08);
  border-radius: 14px;
  padding: 16px 18px;
}
.latte-funnel-block h5 {
  margin: 0 0 14px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--oolong);
  line-height: 1.4;
}
.latte-funnel-empty {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 28px 0;
  margin: 0;
}
.latte-funnel-wrap {
  display: grid;
  grid-template-columns: 1fr 52px;
  gap: 6px;
  align-items: stretch;
}
.latte-funnel-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.latte-funnel-bridge {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
}
.latte-bridge-line {
  position: absolute;
  left: 50%;
  top: 10%;
  bottom: 32%;
  border-left: 2px dashed var(--osmanthus);
  transform: translateX(-50%);
}
.latte-bridge-label {
  position: relative;
  z-index: 1;
  background: rgba(255, 250, 239, 0.96);
  border: 1px solid rgba(217, 154, 40, 0.4);
  border-radius: 8px;
  padding: 5px 7px;
  font-size: 10px;
  font-weight: 700;
  color: var(--oolong);
  text-align: center;
  white-space: nowrap;
  line-height: 1.4;
  top: 18%;
}
.latte-bridge-label b {
  font-size: 13px;
  color: var(--osmanthus);
  display: block;
  margin-top: 2px;
}

/* Chart row */
.latte-chart-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.latte-chart-card {
  background: rgba(255, 250, 239, 0.6);
  border: 1px solid rgba(75, 58, 36, 0.08);
  border-radius: 16px;
  padding: 20px 24px;
}
.latte-chart-card h4 {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--oolong);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Date compare chart */
.latte-date-compare {
  background: rgba(255, 250, 239, 0.6);
  border: 1px solid rgba(75, 58, 36, 0.08);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 24px;
}
.latte-date-compare h4 {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--oolong);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.latte-dc-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 12px;
  height: 180px;
  padding: 8px 0 0;
}
.latte-dc-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  height: 100%;
  justify-content: flex-end;
}
.latte-dc-bars {
  display: flex;
  gap: 4px;
  align-items: flex-end;
  height: 100%;
  width: 100%;
  justify-content: center;
}
.latte-dc-bar {
  width: 24px;
  max-width: 36px;
  min-height: 3px;
  border-radius: 6px 6px 0 0;
  transition: height 0.6s ease;
}
.latte-dc-label {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

/* Legend */
.latte-legend {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.latte-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 2px;
  vertical-align: middle;
}

/* Table */
.latte-table-section {
  background: rgba(255, 250, 239, 0.6);
  border: 1px solid rgba(75, 58, 36, 0.08);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 24px;
}
.latte-table-section h4 {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--oolong);
}
.latte-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.latte-table th {
  text-align: left;
  padding: 8px 10px;
  background: rgba(75, 58, 36, 0.06);
  color: var(--oolong);
  font-weight: 700;
  font-size: 12px;
  border-radius: 6px 6px 0 0;
}
.latte-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(75, 58, 36, 0.06);
  color: var(--ink);
}
.latte-table tbody tr:hover {
  background: rgba(217, 154, 40, 0.04);
}
.latte-table tbody tr:last-child td {
  border-bottom: none;
}

/* KOL stats */
.latte-kol-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.latte-kol-stats > div {
  text-align: center;
  padding: 10px;
  background: rgba(75, 58, 36, 0.04);
  border-radius: 10px;
}
.latte-kol-stats b {
  display: block;
  font-size: 16px;
  color: var(--oolong);
  font-weight: 800;
}
.latte-kol-stats span {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
  display: block;
}

/* Drill hint */
.latte-drill-hint {
  margin-top: 8px;
  padding: 12px 0;
}

/* Responsive */
@media (max-width: 900px) {
  .latte-metric-grid { grid-template-columns: repeat(3, 1fr); }
  .latte-chart-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .latte-metric-grid { grid-template-columns: repeat(2, 1fr); }
  .latte-dc-bar { width: 16px; }
  .latte-table { font-size: 11px; }
  .latte-table th, .latte-table td { padding: 6px 7px; }
}

/* ===== Visualization readability pass ===== */
.line-chart-panel {
  display: grid;
  gap: 8px;
}

.line-chart-svg,
.radar-svg {
  max-width: 100%;
  height: auto;
}

.line-chart-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(75, 58, 36, 0.04);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
}

.line-chart-note b {
  font-weight: 900;
}

.line-chart-note b.up { color: #2d8a5f; }
.line-chart-note b.down { color: #c44848; }

.radar-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(180px, 1fr);
  gap: 12px;
  align-items: center;
}

.radar-data-table {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.radar-data-head,
.radar-data-row {
  display: grid;
  grid-template-columns: minmax(74px, 1fr) 84px 48px;
  gap: 8px;
  align-items: center;
}

.radar-data-head {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 800;
}

.radar-data-row {
  padding: 8px 10px;
  border: 1px solid rgba(75, 58, 36, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.55);
  font-size: 12px;
}

.radar-data-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--ink);
  font-weight: 800;
}

.radar-data-row i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.radar-data-row b {
  color: var(--oolong);
  text-align: right;
}

.radar-data-row em {
  color: var(--muted);
  font-style: normal;
  text-align: right;
}

.product-rank-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-rank-row {
  grid-template-columns: 28px 1fr 104px !important;
  gap: 8px;
  align-items: center;
}

.product-rank-row small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.latte-funnel-wrap {
  grid-template-columns: minmax(0, 1fr) 72px;
  gap: 10px;
}

.latte-funnel-col {
  gap: 6px !important;
}

.latte-funnel-step {
  display: grid;
  grid-template-columns: minmax(110px, 1.1fr) minmax(120px, 1.5fr) 72px;
  gap: 10px;
  align-items: center;
  width: 100% !important;
  min-width: 0;
  padding: 0;
  color: var(--ink);
  background: transparent !important;
}

.latte-funnel-label {
  display: grid;
  gap: 2px;
  min-width: 0;
  color: var(--ink);
  text-shadow: none;
}

.latte-funnel-label b {
  overflow: hidden;
  color: var(--oolong);
  font-size: 11.5px;
  font-weight: 900;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.latte-funnel-label span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.latte-funnel-track {
  height: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(75, 58, 36, 0.07);
}

.latte-funnel-track span {
  display: block;
  height: 100%;
  min-width: 3px;
  border-radius: inherit;
}

.latte-funnel-value {
  color: var(--oolong);
  font-size: 12px;
  font-weight: 900;
  text-align: right;
  text-shadow: none;
  white-space: nowrap;
}

.latte-funnel-conv {
  width: fit-content;
  margin: 2px 0 2px calc(110px + 10px);
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(217, 154, 40, 0.12);
  color: #7b643f;
  font-size: 10.5px;
  font-weight: 900;
}

@media (max-width: 900px) {
  .radar-panel {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .radar-data-table {
    width: 100%;
  }

  .latte-dual-funnel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .latte-chart-card,
  .latte-funnel-section,
  .latte-table-section {
    padding: 16px;
  }

  .line-chart-note {
    align-items: flex-start;
    flex-direction: column;
  }

  .radar-data-head,
  .radar-data-row {
    grid-template-columns: minmax(72px, 1fr) 74px 42px;
    font-size: 11px;
  }

  .product-rank-row {
    grid-template-columns: 24px 1fr 82px !important;
  }

  .latte-funnel-wrap {
    grid-template-columns: 1fr;
  }

  .latte-funnel-bridge {
    display: none;
  }

  .latte-funnel-step {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .latte-funnel-value {
    text-align: left;
  }

  .latte-funnel-conv {
    margin-left: 0;
  }
}

/* ===== 可视化稳态优化：避免重叠、空图和无数据文本 ===== */
.dashboard-page {
  min-width: 0;
}

.latte-chart-row {
  align-items: stretch;
}

.latte-chart-card {
  min-width: 0;
  overflow: hidden;
}

.latte-chart-card svg:not(.donut-svg):not(.progress-ring-svg) {
  width: 100%;
  max-width: 100%;
  height: auto;
}

.donut-svg,
.progress-ring-svg {
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
  height: auto;
}

.latte-chart-card .donut-wrap {
  justify-content: center;
}

.radar-panel {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(220px, 1fr);
  gap: 14px;
  align-items: center;
}

.radar-svg {
  width: 100%;
  min-width: 240px;
  overflow: visible;
}

.radar-data-table {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.radar-data-head,
.radar-data-row {
  display: grid;
  grid-template-columns: minmax(84px, 1fr) auto 46px;
  gap: 8px;
  align-items: center;
  font-size: 12px;
}

.radar-data-head {
  color: var(--muted);
  font-weight: 800;
}

.radar-data-row {
  padding: 7px 9px;
  border: 1px solid rgba(75, 58, 36, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.46);
}

.radar-data-row span {
  display: inline-flex;
  min-width: 0;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
}

.radar-data-row i {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.radar-data-row b,
.radar-data-row em {
  color: var(--oolong);
  font-style: normal;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.product-rank-list {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.product-rank-row {
  display: grid;
  grid-template-columns: 34px minmax(120px, 1fr) minmax(110px, 2fr) auto;
  gap: 10px;
  align-items: center;
}

.product-rank-row .bar,
.product-rank-bar,
.heatmap-bar {
  min-width: 80px;
}

.latte-table-section {
  overflow-x: auto;
}

.latte-table {
  min-width: 780px;
}

.latte-funnel-step {
  width: 100% !important;
  min-width: 0;
  color: var(--ink);
  background: transparent !important;
}

.latte-funnel-track {
  min-width: 120px;
}

.latte-funnel-value {
  color: var(--oolong);
  text-shadow: none;
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .latte-chart-row {
    grid-template-columns: 1fr !important;
  }

  .latte-chart-row[style*="repeat(3"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 20px, 1200px);
  }

  .main-panel {
    padding: 16px;
  }

  .section-heading h2 {
    font-size: 34px;
    line-height: 1.08;
    letter-spacing: -0.02em;
  }

  .latte-metric-grid {
    grid-template-columns: 1fr 1fr;
  }

  .latte-chart-row,
  .latte-chart-row[style*="repeat(3"] {
    grid-template-columns: 1fr !important;
  }

  .radar-panel {
    grid-template-columns: 1fr;
  }

  .radar-svg {
    min-width: 0;
  }

  .latte-dual-funnel {
    grid-template-columns: 1fr;
  }

  .latte-funnel-wrap {
    grid-template-columns: 1fr;
  }

  .latte-funnel-bridge {
    min-height: auto;
  }

  .latte-bridge-line {
    display: none;
  }

  .latte-bridge-label {
    position: static;
    width: fit-content;
    margin: 8px auto 0;
  }
}

@media (max-width: 520px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-orbit {
    display: none;
  }

  .latte-metric-grid {
    grid-template-columns: 1fr;
  }

  .product-rank-row {
    grid-template-columns: 30px minmax(0, 1fr) auto;
  }

  .product-rank-row .bar,
  .product-rank-bar,
  .heatmap-bar {
    grid-column: 2 / -1;
    width: 100%;
  }
}

.dashboard-page .latte-drill-hint {
  order: -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
  margin: 0 0 16px;
  padding: 0 0 18px;
  border-bottom: 1px solid rgba(75, 58, 36, 0.12);
}

.dashboard-page .latte-funnel-section {
  order: 0;
  margin-top: 0 !important;
}

.dashboard-page .latte-metric-grid {
  order: 1;
}

.dashboard-page .latte-chart-row {
  order: 2;
}

.dashboard-page .latte-table-section {
  order: 3;
}

.dashboard-page .latte-drill-hint .back-button {
  margin: 0;
}

/* Put the core PV/UV funnel first within every dashboard level. */
.dashboard-page > * {
  order: 10;
}

.dashboard-page > .breadcrumb {
  order: 0;
  display: none;
}

.dashboard-page > .section-heading {
  order: 1;
  display: none;
}

.dashboard-page > .back-button {
  order: -1;
}

.dashboard-page > .latte-funnel-section {
  order: 0;
  margin-top: 0 !important;
}

.dashboard-page > .latte-metric-grid {
  order: 1;
}

.dashboard-page > .latte-chart-row {
  order: 2;
}

.dashboard-page > .latte-table-section {
  order: 3;
}

.dashboard-page > .latte-drill-hint {
  order: -1;
}

.channel-date-compare {
  display: grid;
  gap: 12px;
  padding-top: 4px;
}

.channel-date-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 64px;
  gap: 12px;
  align-items: center;
}

.channel-date-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--oolong);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.channel-date-name i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.channel-date-bars {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.channel-date-bar {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 72px;
  gap: 8px;
  align-items: center;
  min-height: 22px;
}

.channel-date-bar span {
  grid-column: 2;
  grid-row: 1;
  display: block;
  height: 10px;
  min-width: 3px;
  border-radius: 999px;
}

.channel-date-bar b {
  grid-column: 1;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-align: right;
}

.channel-date-bar em {
  grid-column: 3;
  color: var(--oolong);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}

.channel-date-bar.muted em {
  color: var(--muted);
}

.channel-date-change {
  padding: 5px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
}

.channel-date-change.up {
  color: #2d8a5f;
  background: rgba(45, 138, 95, 0.09);
}

.channel-date-change.down {
  color: #c44848;
  background: rgba(196, 72, 72, 0.09);
}

.structure-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.structure-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(75, 58, 36, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.42);
}

.structure-card h5 {
  margin: 0 0 10px;
  color: var(--oolong);
  font-size: 13px;
  font-weight: 900;
}

.structure-card .donut-wrap {
  gap: 10px;
}

.structure-card .donut-legend-item {
  font-size: 11px;
}

.structure-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.structure-facts span {
  padding: 7px 8px;
  border-radius: 9px;
  background: rgba(75, 58, 36, 0.05);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.efficiency-matrix {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(150px, 0.8fr);
  gap: 14px;
  align-items: stretch;
}

.efficiency-plot {
  position: relative;
  min-height: 230px;
  border: 1px solid rgba(75, 58, 36, 0.1);
  border-radius: 14px;
  background:
    linear-gradient(rgba(75, 58, 36, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(75, 58, 36, 0.06) 1px, transparent 1px),
    rgba(255, 255, 255, 0.38);
  background-size: 50% 50%, 50% 50%, auto;
  overflow: clip;
}

.axis-label {
  position: absolute;
  z-index: 1;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.axis-label.y {
  left: 10px;
  top: 10px;
}

.axis-label.x {
  right: 10px;
  bottom: 10px;
}

.efficiency-dot {
  position: absolute;
  display: grid;
  place-items: center;
  transform: translate(-50%, 50%);
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(75, 58, 36, 0.16);
}

.efficiency-dot span {
  position: absolute;
  left: 50%;
  top: calc(100% + 4px);
  transform: translateX(-50%);
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 250, 239, 0.92);
  color: var(--oolong);
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.efficiency-list {
  display: grid;
  gap: 8px;
  align-content: center;
}

.efficiency-list div {
  display: grid;
  grid-template-columns: minmax(70px, 1fr) 56px 56px;
  gap: 8px;
  align-items: center;
  padding: 8px 9px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.52);
  font-size: 11px;
}

.efficiency-list span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-weight: 900;
}

.efficiency-list i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.efficiency-list b,
.efficiency-list em {
  color: var(--muted);
  font-style: normal;
  font-weight: 900;
  text-align: right;
}

@media (max-width: 900px) {
  .efficiency-matrix,
  .structure-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .structure-card .donut-wrap {
    align-items: center;
  }

  .structure-facts {
    grid-template-columns: 1fr;
  }

  .efficiency-list div {
    grid-template-columns: minmax(64px, 1fr) 52px 52px;
  }

  .efficiency-dot span {
    max-width: 52px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .channel-date-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .channel-date-change {
    width: fit-content;
  }

  .channel-date-bar {
    grid-template-columns: 28px minmax(0, 1fr) 76px;
  }
}

/* ===== 热门内容 board (HOT_CONTENT) ===== */
.hot-wrap { display: flex; flex-direction: column; gap: 20px; }
.hot-stats { display: flex; flex-wrap: wrap; gap: 14px; }
.stat-card {
  flex: 1 1 140px; min-width: 130px; padding: 16px 18px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(248,239,224,0.85));
  border: 1px solid var(--line); box-shadow: 0 10px 26px rgba(75,58,36,0.10);
}
.stat-value { font-size: 28px; font-weight: 800; color: var(--osmanthus); line-height: 1.1; }
.stat-label { font-size: 13px; color: var(--muted); margin-top: 4px; }

.hot-filter { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line); background: rgba(255,255,255,0.7); color: var(--ink);
  padding: 7px 16px; border-radius: 999px; cursor: pointer; font-size: 14px; transition: .15s;
}
.chip:hover { border-color: var(--osmanthus); }
.chip.active { background: var(--osmanthus); color: #fff; border-color: var(--osmanthus); }
.hot-count { margin-left: auto; font-size: 13px; color: var(--muted); }

.hot-layout { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: start; }
.hot-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 16px; }
.panel {
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px;
  padding: 18px; box-shadow: 0 12px 30px rgba(75,58,36,0.10);
}
.panel h3 { margin: 0 0 12px; font-size: 16px; color: var(--oolong); }

.rank-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.rank-badge {
  width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: #fff; flex: none;
}
.rank-badge.xhs { background: #ff2e4d; }
.rank-badge.dy { background: #2b2b3a; }
.rank-bar-wrap { position: relative; flex: 1; height: 24px; background: rgba(75,58,36,0.08); border-radius: 8px; overflow: hidden; }
.rank-bar { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, var(--osmanthus-soft), var(--osmanthus)); border-radius: 8px; }
.rank-title { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(100% - 20px); }
.rank-likes { font-size: 12px; font-weight: 700; color: var(--osmanthus); flex: none; min-width: 38px; text-align: right; }

.wordcloud { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: baseline; line-height: 1.5; }
.wc { color: var(--oolong-soft); font-weight: 700; cursor: default; transition: .15s; }
.wc:hover { color: var(--osmanthus); }

.hot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; align-items: start; }
.post-card { display: flex; flex-direction: column; }
.post-card .post-cover {
  width: 100%; aspect-ratio: 4 / 5; background-size: cover; background-position: center;
  border-radius: 14px 14px 0 0; border: 1px solid var(--line); border-bottom: none;
}
.post-card .post-cover.no-img { display: grid; place-items: center; background: linear-gradient(135deg, var(--rice), var(--rice-deep)); color: var(--muted); font-size: 14px; }
.post-meta { display: flex; align-items: center; gap: 8px; padding: 10px 12px 0; }
.pf-badge { font-size: 11px; font-weight: 700; color: #fff; padding: 2px 8px; border-radius: 6px; }
.pf-badge.xhs { background: #ff2e4d; }
.pf-badge.dy { background: #2b2b3a; }
.ptype { font-size: 11px; color: var(--muted); border: 1px solid var(--line); padding: 2px 8px; border-radius: 6px; }
.post-title { margin: 8px 12px 0; font-size: 15px; line-height: 1.4; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 42px; }
.post-foot { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px 12px; font-size: 12px; color: var(--muted); gap: 8px; }
.post-author { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-likes { color: var(--osmanthus); font-weight: 700; flex: none; }
.post-enriched { display: inline-block; margin: 0 12px 12px; font-size: 11px; color: var(--tea-green); background: rgba(101,114,74,0.12); padding: 2px 8px; border-radius: 6px; }

.featured-comments { margin-top: 4px; }
.comment-rail { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.comment-chip { margin: 0; padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,0.75); border: 1px solid var(--line); border-left: 4px solid var(--osmanthus); }
.comment-chip p { margin: 0 0 8px; font-size: 14px; line-height: 1.5; color: var(--ink); }
.comment-chip footer { font-size: 12px; color: var(--muted); }

.hot-note { font-size: 12px; color: var(--muted); line-height: 1.6; background: rgba(255,255,255,0.5); border: 1px dashed var(--line); border-radius: 12px; padding: 12px 14px; }

/* content modal extras */
.modal-cover { width: 100%; max-height: 320px; object-fit: cover; border-radius: 14px; margin: 4px 0 12px; border: 1px solid var(--line); }
.modal-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: var(--muted); margin: 10px 0; }
.comment-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; max-height: 280px; overflow: auto; }
.comment-list li { font-size: 14px; line-height: 1.5; padding: 8px 12px; background: rgba(255,255,255,0.7); border-radius: 10px; border: 1px solid var(--line); }
.comment-list li b { color: var(--osmanthus); }
.source-link { display: inline-block; margin-top: 6px; padding: 9px 18px; border-radius: 999px; background: var(--osmanthus); color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; }
.source-link:hover { filter: brightness(1.05); }
.muted { color: var(--muted); font-size: 14px; }

@media (max-width: 860px) {
  .hot-layout { grid-template-columns: 1fr; }
  .hot-side { position: static; }
}

/* ========== HOT CONTENT ANALYTICS REDESIGN ========== */
.hot-wrap.analytics { gap: 22px; }
.hot-wrap.analytics .section-heading .lead { font-size: 15px; line-height: 1.7; color: var(--ink); max-width: 880px; }
.hot-wrap.analytics .section-heading .lead b { color: var(--osmanthus); font-weight: 700; }

.analytics-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.analytics-metrics .stat-card { text-align: center; padding: 18px 14px; background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.65)); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 2px 10px rgba(90,66,40,0.04); }
.analytics-metrics .stat-value { font-size: 30px; font-weight: 800; color: var(--osmanthus); }
.analytics-metrics .stat-label { font-size: 13px; color: var(--muted); margin-top: 4px; }

.analytics-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.analytics-card { background: rgba(255,255,255,0.8); border: 1px solid var(--line); border-radius: 18px; padding: 20px; box-shadow: 0 2px 12px rgba(90,66,40,0.04); }
.analytics-card h3 { font-size: 17px; font-weight: 700; color: var(--ink); margin: 0 0 6px; display: flex; align-items: center; gap: 8px; }
.analytics-card h3::before { content: ""; display: inline-block; width: 6px; height: 18px; background: var(--osmanthus); border-radius: 4px; }
.analytics-card .card-sub { font-size: 13px; color: var(--muted); margin: -4px 0 16px; }

.chart-card { display: flex; flex-direction: column; }
.chart-body { flex: 1; display: flex; align-items: center; justify-content: center; gap: 24px; padding: 10px 0; }
.donut-body { flex-wrap: wrap; }
.donut-wrap { position: relative; width: 170px; height: 170px; flex: none; }
.donut-wrap svg { transform: rotate(-90deg); }
.donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.donut-value { font-size: 26px; font-weight: 800; color: var(--ink); }
.donut-label { font-size: 12px; color: var(--muted); }
.chart-legend { display: flex; flex-direction: column; gap: 10px; min-width: 130px; }
.chart-legend-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink); }
.chart-legend-item b { margin-left: auto; color: var(--osmanthus); }
.legend-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }

.hbar-chart { display: flex; flex-direction: column; gap: 12px; }
.hbar-row { display: grid; grid-template-columns: 90px 1fr 56px; align-items: center; gap: 12px; }
.hbar-label { font-size: 13px; color: var(--ink); font-weight: 600; text-align: right; }
.hbar-track { height: 22px; background: rgba(90,66,40,0.06); border-radius: 12px; overflow: hidden; }
.hbar-fill { height: 100%; border-radius: 12px; transition: width 0.6s ease; }
.hbar-value { font-size: 13px; color: var(--muted); text-align: right; }

.topic-explore { padding: 0; overflow: hidden; }
.topic-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 16px 0; border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.45); }
.topic-tab { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 13px; color: var(--ink); cursor: pointer; transition: all 0.15s ease; }
.topic-tab:hover { border-color: var(--topic-color, var(--osmanthus)); }
.topic-tab.active { background: var(--topic-color, var(--osmanthus)); color: #fff; border-color: var(--topic-color, var(--osmanthus)); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.topic-tab .tab-dot { width: 8px; height: 8px; border-radius: 50%; }
.topic-tab.active .tab-dot { background: #fff !important; }
.topic-tab small { opacity: 0.75; margin-left: 2px; }

.topic-detail { padding: 18px 20px 22px; border-top: 3px solid var(--topic-color, var(--line)); }
.topic-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 8px; flex-wrap: wrap; }
.topic-head h3 { margin: 0; font-size: 20px; font-weight: 800; }
.topic-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.topic-badge { font-size: 12px; padding: 5px 10px; border-radius: 999px; background: rgba(90,66,40,0.06); color: var(--ink); }
.topic-desc { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 0 0 18px; max-width: 820px; }

.topic-mini-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 18px; }
.topic-posts h4, .topic-cloud-panel h4, .topic-comments-panel h4 { font-size: 13px; color: var(--muted); margin: 0 0 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.topic-posts { display: flex; flex-direction: column; gap: 10px; }
.topic-post-card { display: flex; gap: 12px; padding: 10px; background: rgba(255,255,255,0.7); border: 1px solid var(--line); border-radius: 14px; text-align: left; align-items: center; transition: transform 0.12s ease, box-shadow 0.12s ease; }
.topic-post-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(90,66,40,0.08); }
.topic-post-cover { width: 64px; height: 64px; border-radius: 10px; background-size: cover; background-position: center; flex: none; border: 1px solid var(--line); }
.topic-post-body { flex: 1; min-width: 0; }
.topic-post-body h5 { margin: 0 0 6px; font-size: 14px; color: var(--ink); line-height: 1.4; font-weight: 600; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.topic-post-meta { font-size: 12px; color: var(--muted); }
.topic-side { display: flex; flex-direction: column; gap: 16px; }
.topic-cloud-panel, .topic-comments-panel { background: rgba(255,255,255,0.55); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.mini-cloud { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: baseline; line-height: 1.4; }
.mc-word { font-weight: 600; }
.topic-comment { padding: 9px 0; border-bottom: 1px dashed var(--line); }
.topic-comment:last-child { border-bottom: none; }
.topic-comment p { margin: 0 0 4px; font-size: 13px; color: var(--ink); line-height: 1.45; }
.topic-comment span { font-size: 11px; color: var(--muted); }

.quotes-card { background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(255,255,255,0.6)); }
.quotes-masonry { column-count: 3; column-gap: 14px; }
.quote-tile { break-inside: avoid; margin: 0 0 14px; padding: 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--osmanthus); box-shadow: 0 2px 8px rgba(90,66,40,0.04); }
.quote-tile p { margin: 0 0 10px; font-size: 14px; line-height: 1.55; color: var(--ink); }
.quote-tile footer { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.quote-platform { font-size: 10px; padding: 2px 6px; border-radius: 4px; font-weight: 700; }
.quote-platform.xhs { background: rgba(255,36,66,0.1); color: #ff2442; }
.quote-platform.dy { background: rgba(28,28,28,0.08); color: #1c1c1c; }
.quote-tile.positive { border-left-color: #27ae60; }
.quote-tile.negative { border-left-color: #e74c3c; }
.quote-tile.mixed { border-left-color: #f39c12; }

@media (max-width: 980px) {
  .analytics-metrics { grid-template-columns: repeat(2, 1fr); }
  .analytics-row { grid-template-columns: 1fr; }
  .topic-mini-grid { grid-template-columns: 1fr; }
  .quotes-masonry { column-count: 2; }
}
@media (max-width: 640px) {
  .analytics-metrics { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .analytics-metrics .stat-value { font-size: 22px; }
  .analytics-card { padding: 14px; }
  .hbar-row { grid-template-columns: 70px 1fr 44px; gap: 8px; }
  .hbar-label { font-size: 12px; }
  .quotes-masonry { column-count: 1; }
  .topic-head { flex-direction: column; }
  .topic-tabs { gap: 6px; }
  .topic-tab { padding: 6px 10px; font-size: 12px; }
  .donut-body { flex-direction: column; gap: 14px; }
}


/* ===== 热门内容分析 · 扩展可视化 ===== */
.analytics-row.trio { grid-template-columns: repeat(3, 1fr); }
.card-sub { font-size: 13px; color: var(--muted); margin: -4px 0 16px; }

/* 雷达图 */
.radar-wrap { display: flex; justify-content: center; align-items: center; padding: 8px 0 4px; }
.radar-svg { max-width: 100%; height: auto; }
.radar-legend { display: flex; flex-wrap: wrap; gap: 10px 16px; justify-content: center; margin-top: 6px; }
.rl-item { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink); }
.rl-item i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* 热力矩阵 */
.hm-card .hm-grid { display: grid; gap: 4px; margin-top: 4px; }
.hm-cell { display: flex; align-items: center; justify-content: center; padding: 8px 6px; font-size: 13px; border-radius: 8px; }
.hm-head { background: transparent; }
.hm-col { font-weight: 700; color: var(--muted); font-size: 12px; }
.hm-row { justify-content: flex-start; font-weight: 600; color: var(--ink); background: rgba(255,255,255,0.5); }
.hm-val { font-weight: 700; color: var(--ink); border: 1px solid rgba(255,255,255,0.4); min-height: 38px; }

/* 产品对比卡 */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.product-card { position: relative; background: rgba(255,255,255,0.75); border: 1px solid var(--line); border-radius: 16px; padding: 16px 16px 14px; overflow: hidden; }
.product-card .pc-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 5px; }
.product-card h4 { margin: 0 0 12px; font-size: 15px; color: var(--ink); }
.pc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pc-stats > div { display: flex; flex-direction: column; }
.pc-stats b { font-size: 20px; font-weight: 800; color: var(--pc, var(--osmanthus)); }
.pc-stats span { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* 创作者榜 */
.lb { display: flex; flex-direction: column; gap: 9px; margin-top: 4px; }
.lb-row { display: grid; grid-template-columns: 26px minmax(80px, 1fr) 1fr auto auto; align-items: center; gap: 10px; font-size: 13px; }
.lb-rank { width: 24px; height: 24px; border-radius: 50%; background: var(--oolong); color: #fff; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.lb-name { font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-track { height: 12px; background: rgba(90,66,40,0.08); border-radius: 999px; overflow: hidden; }
.lb-fill { height: 100%; border-radius: 999px; }
.lb-likes { font-weight: 700; color: var(--osmanthus); white-space: nowrap; }
.lb-meta { font-size: 11px; color: var(--muted); white-space: nowrap; }

/* 关键词气泡 */
.bubble-cloud { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; padding: 14px 4px; }
.bubble { display: inline-flex; align-items: baseline; gap: 4px; padding: 6px 14px; border-radius: 999px; border: 1px solid; font-weight: 700; line-height: 1; }
.bubble small { font-size: 0.62em; opacity: 0.7; font-weight: 600; }

/* 爆款拆解 */
.case-study { display: grid; grid-template-columns: 220px 1fr; gap: 20px; margin-top: 4px; }
.case-cover { position: relative; border-radius: 16px; background-size: cover; background-position: center; min-height: 220px; border: 1px solid var(--line); }
.case-platform { position: absolute; left: 10px; top: 10px; font-size: 11px; padding: 3px 8px; border-radius: 6px; font-weight: 700; color: #fff; }
.case-platform.dy { background: rgba(28,28,28,0.85); }
.case-platform.xhs { background: rgba(255,36,66,0.85); }
.case-body { min-width: 0; }
.case-head { margin-bottom: 10px; }
.case-tag { display: inline-block; font-size: 11px; padding: 3px 10px; border-radius: 999px; background: var(--osmanthus); color: #fff; font-weight: 700; margin-bottom: 8px; }
.case-head h3 { margin: 0; font-size: 18px; color: var(--ink); line-height: 1.4; }
.case-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; font-size: 13px; color: var(--muted); }
.case-chip { font-size: 12px; padding: 4px 10px; border-radius: 999px; font-weight: 600; }
.case-comments h5 { font-size: 13px; color: var(--muted); margin: 0 0 10px; text-transform: uppercase; letter-spacing: 0.5px; }
.case-comment { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.case-comment:last-child { border-bottom: none; }
.case-comment p { margin: 0 0 4px; font-size: 13px; color: var(--ink); line-height: 1.5; }
.case-comment span { font-size: 11px; color: var(--muted); }

/* 响应式 */
@media (max-width: 980px) {
  .analytics-row.trio { grid-template-columns: 1fr; }
  .case-study { grid-template-columns: 1fr; }
  .case-cover { min-height: 160px; }
}
@media (max-width: 760px) {
  .analytics-metrics { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .quotes-masonry { column-count: 1; }
}

/* ============ 子视图切换（乌龙 / 拿铁 / 对比） ============ */
.hot-subtoggle {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding: 6px; margin-bottom: 18px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 999px; box-shadow: 0 8px 24px rgba(75,58,36,0.08);
  width: fit-content;
}
.sub-btn {
  border: none; cursor: pointer;
  padding: 9px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 700; letter-spacing: 0.3px;
  color: var(--muted); background: transparent;
  transition: all 0.22s ease;
}
.sub-btn:hover { color: var(--oolong); background: rgba(217,154,40,0.12); }
.sub-btn.active {
  color: #fff;
  background: linear-gradient(135deg, var(--osmanthus), #c07d1a);
  box-shadow: 0 6px 18px rgba(217,154,40,0.36);
}

/* ============ 双品对比视图 ============ */
.cmp-winners {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
  gap: 14px; margin-bottom: 22px;
}
.cmp-win {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 16px; padding: 16px 16px 14px;
  position: relative; overflow: hidden;
  box-shadow: 0 10px 28px rgba(75,58,36,0.08);
}
.cmp-win::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
}
.cmp-win.oolong::before { background: #8e6f3e; }
.cmp-win.latte::before { background: #c08a3e; }
.cmp-win.tie::before { background: var(--muted); }
.cw-name { font-size: 12px; color: var(--muted); font-weight: 700; letter-spacing: 0.4px; margin-bottom: 10px; }
.cw-vals { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.cw-vals span { font-size: 17px; font-weight: 800; line-height: 1.25; }
.cw-vals .o { color: #8e6f3e; }
.cw-vals .l { color: #c08a3e; }
.cw-tag {
  display: inline-block; font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px;
  background: rgba(217,154,40,0.14); color: var(--oolong);
}
.cmp-win.tie .cw-tag { background: rgba(128,111,87,0.14); color: var(--muted); }

.cmp-bars { margin-top: 6px; }
.cmp-legend { display: flex; gap: 18px; margin-bottom: 14px; font-size: 12px; color: var(--muted); font-weight: 700; }
.cmp-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cmp-legend i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.cmp-row {
  display: grid; grid-template-columns: 92px 1fr 1fr;
  gap: 10px; align-items: center; margin-bottom: 11px;
}
.cmp-label {
  font-size: 12.5px; color: var(--ink); font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cmp-track {
  position: relative; height: 22px; border-radius: 6px;
  background: rgba(75,58,36,0.07); display: flex; align-items: center;
}
.cmp-fill { height: 100%; border-radius: 6px; min-width: 2px; transition: width 0.5s ease; opacity: 0.88; }
.cmp-val {
  position: absolute; right: 8px; font-size: 11.5px;
  font-weight: 800; color: var(--ink);
}

.kw-diff { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 8px; }
.kw-col h5 { margin: 0 0 10px; font-size: 12px; color: var(--muted); letter-spacing: 0.5px; font-weight: 700; }
.kw-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.kw-tag {
  font-size: 12.5px; padding: 5px 11px; border-radius: 999px; font-weight: 600;
  background: rgba(75,58,36,0.07); color: var(--muted);
}
.kw-tag.shared { background: rgba(101,114,74,0.16); color: #4e5a37; }
.kw-tag.o { background: rgba(142,111,62,0.16); color: #7a5d31; }
.kw-tag.l { background: rgba(192,138,62,0.18); color: #9d6e26; }

.cmp-case { margin-top: 4px; }
.cmp-case-cover {
  position: relative; height: 168px; border-radius: 14px;
  background-size: cover; background-position: center;
  border: 1px solid var(--line); margin-bottom: 12px;
}
.cmp-case-likes {
  position: absolute; right: 10px; bottom: 10px;
  font-size: 12px; font-weight: 800; color: #fff;
  background: rgba(0,0,0,0.55); padding: 4px 10px; border-radius: 999px;
}
.cmp-case-head h4 { margin: 8px 0 0; font-size: 15.5px; line-height: 1.45; color: var(--ink); }
.cmp-case-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0 14px; font-size: 12.5px; color: var(--muted); }
.cmp-case-cmts h5 { font-size: 12px; color: var(--muted); margin: 0 0 8px; letter-spacing: 0.5px; }
.cmp-case-nocmt { font-size: 12.5px; color: var(--muted); font-style: italic; margin: 0; }

@media (max-width: 900px) {
  .kw-diff { grid-template-columns: 1fr; }
  .cmp-row { grid-template-columns: 76px 1fr 1fr; gap: 7px; }
}
@media (max-width: 620px) {
  .hot-subtoggle { width: 100%; justify-content: center; }
  .sub-btn { padding: 8px 14px; font-size: 13px; }
  .cmp-winners { grid-template-columns: 1fr 1fr; }
}

.topic-insight-panel { background: rgba(255,255,255,0.55); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.topic-insight-panel h4 { font-size: 13px; color: var(--muted); margin: 0 0 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.topic-insight-text { font-size: 13.5px; line-height: 1.65; color: var(--ink); margin: 0; }

.topic-voices { margin-top: 22px; }
.voices-title { font-size: 16px; margin: 0 0 6px; color: var(--ink); }
.voices-sub { margin: 0 0 16px; }
.voices-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.voice-card { background: rgba(255,255,255,0.7); border: 1px solid var(--line); border-radius: 16px; padding: 16px; border-top: 3px solid var(--topic-color, var(--osmanthus)); }
.voice-card.negative { border-top-color: #e74c3c; }
.voice-card.positive { border-top-color: #27ae60; }
.voice-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.voice-theme { font-size: 14px; font-weight: 800; color: var(--ink); }
.voice-count { font-size: 11px; padding: 3px 9px; border-radius: 999px; background: rgba(90,66,40,0.07); color: var(--muted); font-weight: 700; }
.voice-insight { font-size: 13px; line-height: 1.6; color: var(--muted); margin: 0 0 12px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.voice-quotes { display: flex; flex-direction: column; gap: 10px; }
.voice-quote { background: rgba(255,255,255,0.85); border-radius: 10px; padding: 10px 12px; }
.voice-quote p { margin: 0 0 4px; font-size: 13px; line-height: 1.5; color: var(--ink); }
.voice-quote span { font-size: 11px; color: var(--muted); }

.controversies-card { background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.7)); }
.controversies-list { display: flex; flex-direction: column; gap: 20px; }
.controversy-item { background: rgba(255,255,255,0.7); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.controversy-q { font-size: 16px; margin: 0 0 14px; color: var(--ink); font-weight: 800; }
.controversy-body { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.controversy-side h5 { font-size: 12px; margin: 0 0 10px; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700; }
.controversy-side.pos h5 { color: #27ae60; }
.controversy-side.neg h5 { color: #e74c3c; }
.controversy-side blockquote { margin: 0 0 10px; padding: 12px; border-radius: 10px; background: rgba(255,255,255,0.9); border-left: 3px solid var(--line); }
.controversy-side.pos blockquote { border-left-color: #27ae60; }
.controversy-side.neg blockquote { border-left-color: #e74c3c; }
.controversy-side blockquote p { margin: 0 0 6px; font-size: 13px; line-height: 1.5; color: var(--ink); }
.controversy-side blockquote footer { font-size: 11px; color: var(--muted); }
.controversy-takeaway { margin: 14px 0 0; padding: 10px 14px; border-radius: 10px; background: rgba(217,154,40,0.1); font-size: 13px; font-weight: 600; color: var(--oolong); line-height: 1.55; }
.no-voice { font-size: 12.5px; color: var(--muted); font-style: italic; margin: 0; }

@media (max-width: 900px) {
  .voices-grid { grid-template-columns: 1fr; }
  .controversy-body { grid-template-columns: 1fr; gap: 12px; }
}
