.market-trend-module {
  border-top: 2px solid var(--report-black);
}

.trend-figure {
  margin: 0;
  padding: 28px 0 34px;
  border-bottom: 1px solid var(--report-line);
}

.trend-figure:last-of-type {
  border-bottom: 0;
}

.trend-figure figcaption {
  max-width: 880px;
  margin-bottom: 16px;
}

.trend-label {
  display: block;
  margin-bottom: 6px;
  color: var(--report-green);
  font-size: 13px;
  font-weight: 800;
}

.trend-figure h3 {
  margin: 0;
  color: var(--report-black);
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.32;
}

.trend-figure figcaption p,
.trend-conclusion {
  max-width: 900px;
  margin: 9px 0 0;
  color: var(--report-muted);
  font-size: 14px;
}

.trend-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 0 0 12px;
  color: var(--report-muted);
  font-size: 12px;
}

.trend-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.trend-legend i {
  width: 20px;
  height: 4px;
  background: var(--legend-color, var(--report-green));
}

.trend-legend .dashed i {
  background: repeating-linear-gradient(90deg, var(--legend-color, var(--report-blue)) 0 6px, transparent 6px 9px);
}

.trend-legend .stage i {
  height: 11px;
  border: 1px dashed var(--legend-color, var(--report-gold));
  background: color-mix(in srgb, var(--legend-color, var(--report-gold)) 16%, transparent);
}

.trend-chart-shell {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--report-line);
  background: #fff;
}

.trend-chart-shell svg {
  display: block;
  min-width: 820px;
  font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
}

.trend-stage,
.trend-marker,
.trend-name-block {
  transition: opacity .15s ease, filter .15s ease;
}

.trend-stage:hover,
.trend-stage[data-selected="true"],
.trend-marker:hover,
.trend-marker[data-selected="true"],
.trend-name-block:hover,
.trend-name-block[data-selected="true"] {
  filter: saturate(1.35);
  opacity: 1;
}

.trend-name-block {
  cursor: pointer;
}

.trend-name-block text {
  font-size: 11px;
  font-weight: 800;
}

.trend-competitor-intro {
  margin: 18px 0 2px;
}

.trend-competitor-intro h3 {
  margin: 0 0 12px;
  color: var(--report-black);
  font-size: 18px;
}

.trend-competitor-intro table {
  min-width: 840px;
}

.trend-popup {
  --callout-border: #d7ded5;
  --callout-y: 42px;
  position: fixed;
  z-index: 220;
  width: min(410px, calc(100vw - 24px));
  padding: 14px 16px;
  border: 1px solid var(--callout-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(28, 34, 26, .18);
  color: #5d625b;
  font-size: 13px;
  line-height: 1.62;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity .16s ease, transform .16s ease;
}

.trend-popup::before,
.trend-popup::after {
  position: absolute;
  top: calc(var(--callout-y) - 10px);
  width: 0;
  height: 0;
  border-style: solid;
  content: "";
}

.trend-popup.callout-right::before {
  left: -12px;
  border-width: 10px 12px 10px 0;
  border-color: transparent var(--callout-border) transparent transparent;
}

.trend-popup.callout-right::after {
  left: -10px;
  border-width: 10px 12px 10px 0;
  border-color: transparent #fff transparent transparent;
}

.trend-popup.callout-left::before {
  right: -12px;
  border-width: 10px 0 10px 12px;
  border-color: transparent transparent transparent var(--callout-border);
}

.trend-popup.callout-left::after {
  right: -10px;
  border-width: 10px 0 10px 12px;
  border-color: transparent transparent transparent #fff;
}

.trend-popup.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.trend-popup.pinned {
  --callout-border: var(--report-green);
  box-shadow: 0 14px 36px rgba(31, 122, 88, .2);
}

.trend-popup-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--report-black);
  font-weight: 800;
}

.trend-popup-hint {
  color: var(--report-green);
  font-size: 11px;
  white-space: nowrap;
}

.trend-popup-body {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 7px 10px;
}

.trend-popup-body .dimension {
  color: var(--report-green);
  font-weight: 800;
}

.trend-popup-body .point {
  color: var(--report-muted);
}

.trend-popup-body .summary {
  grid-column: 1 / -1;
  color: var(--report-muted);
}

.trend-popup-focus {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 5px;
  padding: 10px 12px;
  border-left: 4px solid var(--report-green);
  background: #eef6f1;
}

.trend-popup-focus span {
  color: var(--report-green);
  font-size: 12px;
  font-weight: 800;
}

.trend-popup-focus mark {
  padding: 0;
  background: linear-gradient(transparent 58%, #f4d88d 58%);
  color: var(--report-black);
  font-weight: 800;
}

.report-image-band {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  gap: 20px;
  align-items: stretch;
  margin: 18px 0 24px;
}

.report-image-band img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.report-image-band > div {
  padding: 22px;
  border-top: 2px solid var(--report-black);
  border-bottom: 1px solid var(--report-line);
}

.report-image-band h3 {
  margin: 0 0 10px;
  color: var(--report-black);
  font-size: 20px;
}

.report-image-band p {
  margin: 0;
  color: var(--report-muted);
  font-size: 14px;
}

@media (max-width: 760px) {
  .trend-popup-body {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .report-image-band {
    grid-template-columns: 1fr;
  }

  .report-image-band img {
    min-height: 220px;
  }
}
