.platform-detail-page {
  --brand: var(--accent);
  --line: rgba(43, 51, 38, 0.16);
  --muted: rgba(43, 51, 38, 0.62);
  font-family: var(--font-jp);
  font-feature-settings: "palt" 1;
}

.platform-detail-page .page-main {
  display: block;
  padding: clamp(26px, 4.5vw, 58px) clamp(20px, 5vw, 72px) 54px;
}

.detail-wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.detail-back {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 11px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.detail-back:hover {
  color: var(--accent);
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: clamp(34px, 6vw, 84px);
  align-items: end;
  padding-bottom: clamp(30px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}

.detail-logo-row {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
}

.detail-logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: contain;
}

.detail-kicker {
  margin: 0 0 9px;
  color: var(--accent);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.16em;
}

.detail-logo-row .detail-kicker {
  margin: 0;
}

.detail-title {
  margin: 0;
  color: var(--ink);
  font-size: clamp(40px, 4.6vw, 64px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.detail-title small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.detail-lead {
  max-width: 660px;
  margin: 20px 0 0;
  color: rgba(43, 51, 38, 0.68);
  font-size: 14px;
  line-height: 2.05;
}

.detail-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 26px;
}

.detail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: 0 20px;
  background: #20261f;
  color: #f7f3e8;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.detail-btn:hover {
  background: #3a4537;
}

.detail-link {
  color: var(--muted);
  font-size: 11px;
  text-decoration: none;
}

.detail-link:hover {
  color: var(--accent);
}

.detail-stats {
  border-top: 1px solid var(--line);
}

.detail-stats > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.detail-stats span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.detail-stats strong {
  color: var(--accent);
  font-size: 23px;
  font-weight: 600;
  line-height: 1.25;
  text-align: right;
  letter-spacing: -0.02em;
}

.detail-section {
  padding-top: clamp(42px, 6vw, 70px);
}

.detail-section__head {
  max-width: 760px;
}

.detail-section__head h2,
.detail-insight h2,
.detail-cta h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(26px, 2.8vw, 38px);
  font-weight: 600;
  line-height: 1.38;
  letter-spacing: -0.03em;
}

.detail-section__head > p:last-child,
.detail-section__head > div > p:last-child {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 2;
}

.detail-section__head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
}

.detail-chart-legend {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}

.detail-chart-legend span {
  width: 18px;
  height: 6px;
  background: var(--brand);
}

.detail-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 26px;
  border: 1px solid var(--line);
  background: var(--line);
}

.detail-feature {
  min-height: 130px;
  padding: 19px 20px 20px;
  background: #fbf8f1;
}

.detail-feature span {
  color: var(--accent);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.detail-feature h3 {
  margin: 9px 0 7px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.detail-feature p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

.detail-chart-wrap {
  margin-top: 26px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.detail-chart {
  display: grid;
  grid-template-columns: repeat(10, minmax(48px, 1fr));
  align-items: end;
  gap: clamp(8px, 1.4vw, 16px);
  min-width: 720px;
  height: 340px;
  padding-top: 28px;
  border-bottom: 1px solid var(--line);
}

.detail-bar {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}

.detail-bar__value {
  position: absolute;
  top: -20px;
  left: 0;
  color: var(--muted);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 8px;
  line-height: 1;
  white-space: nowrap;
}

.detail-bar__fill {
  display: block;
  width: 100%;
  height: var(--bar-height, 1%);
  min-height: 2px;
  background: var(--brand);
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform-origin: bottom;
}

.detail-bar:hover .detail-bar__fill,
.detail-bar:focus-visible .detail-bar__fill {
  opacity: 1;
  transform: scaleY(1.015);
}

.detail-bar__year {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 9px;
  line-height: 1;
  text-align: center;
}

.detail-bar__year::before {
  content: "";
  display: block;
  width: 1px;
  height: 5px;
  margin: 0 auto 3px;
  background: var(--line);
}

.detail-chart-note {
  margin: 12px 0 0;
  color: rgba(43, 51, 38, 0.46);
  font-size: 9px;
  line-height: 1.7;
}

.detail-insight {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(26px, 5vw, 64px);
  margin-top: clamp(42px, 6vw, 70px);
  padding: clamp(22px, 3.5vw, 34px);
  border-left: 3px solid var(--brand);
  background: rgba(251, 247, 237, 0.7);
}

.detail-insight p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 2.05;
}

.detail-cta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-top: clamp(44px, 6vw, 70px);
  padding: clamp(26px, 4vw, 42px);
  background: #22352f;
  color: #f7f3e8;
}

.detail-cta .detail-kicker {
  color: #b8d6c9;
}

.detail-cta h2 {
  color: #f7f3e8;
}

.detail-cta p:not(.detail-kicker) {
  max-width: 660px;
  margin: 14px 0 0;
  color: rgba(247, 243, 232, 0.66);
  font-size: 12px;
  line-height: 1.95;
}

.detail-cta__button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  background: #f5f0e5;
  color: #20261f;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
}

.detail-cta__button:hover {
  background: #d9c79c;
}

@media (max-width: 900px) {
  .detail-hero {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .detail-stats {
    max-width: 560px;
  }

  .detail-features {
    grid-template-columns: 1fr;
  }

  .detail-insight {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .detail-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .platform-detail-page .page-main {
    padding: 28px 20px 46px;
  }

  .detail-logo {
    width: 46px;
    height: 46px;
  }

  .detail-title {
    font-size: clamp(34px, 10vw, 46px);
  }

  .detail-section__head--split {
    display: block;
  }

  .detail-chart-legend {
    margin-top: 14px;
  }

  .detail-chart {
    height: 280px;
    min-width: 680px;
  }

  .detail-feature {
    min-height: 0;
    padding: 16px;
  }

  .detail-cta {
    padding: 24px 20px;
  }
}

/* Refined GMV chart */
.detail-chart-wrap {
  margin-top: 24px;
  padding: 18px 20px 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fbf8f1 0%, #fdfbf6 100%);
  overflow-x: auto;
  scrollbar-width: thin;
}

.detail-chart-frame {
  display: grid;
  grid-template-columns: 52px minmax(720px, 1fr);
  gap: 0;
  min-width: 772px;
}

.detail-chart-yaxis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 340px;
  padding: 24px 10px 27px 0;
  color: rgba(43, 51, 38, 0.42);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 8px;
  line-height: 1;
  text-align: right;
}

.detail-chart {
  height: 340px;
  min-width: 0;
  padding-top: 26px;
  border-bottom: 1px solid var(--line);
  background-image:
    linear-gradient(to top, transparent 24.7%, rgba(43, 51, 38, 0.1) 25%, transparent 25.3%),
    linear-gradient(to top, transparent 49.7%, rgba(43, 51, 38, 0.1) 50%, transparent 50.3%),
    linear-gradient(to top, transparent 74.7%, rgba(43, 51, 38, 0.1) 75%, transparent 75.3%),
    linear-gradient(to top, rgba(43, 51, 38, 0.1) 0, rgba(43, 51, 38, 0.1) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%;
}

.detail-bar {
  min-width: 0;
}

.detail-bar__value {
  top: -18px;
  color: rgba(43, 51, 38, 0.5);
  font-size: 7.5px;
}

.detail-bar__fill {
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 58%, #fff), var(--brand));
  opacity: 1;
  box-shadow: 0 2px 0 rgba(43, 51, 38, 0.03);
}

.detail-bar--latest .detail-bar__fill {
  background: var(--brand);
  box-shadow: 0 3px 10px color-mix(in srgb, var(--brand) 22%, transparent);
}

.detail-bar--latest .detail-bar__value {
  color: var(--brand);
  font-size: 8.5px;
  font-weight: 600;
}

.detail-bar__year {
  margin-top: 9px;
  font-size: 8.5px;
}

.detail-bar__year::before {
  height: 4px;
  background: rgba(43, 51, 38, 0.2);
}

.detail-bar:hover .detail-bar__value,
.detail-bar:focus-visible .detail-bar__value {
  color: var(--brand);
  font-weight: 600;
}

.detail-chart-note {
  margin-top: 12px;
  padding-top: 9px;
  border-top: 1px solid rgba(43, 51, 38, 0.08);
}

/* Unified chart color and refined bar shapes */
.detail-chart {
  --chart-color: #b8862f;
  --chart-light: #d9b775;
}

.detail-bar {
  align-items: center;
}

.detail-bar__value {
  left: 50%;
  transform: translateX(-50%);
}

.detail-bar__fill {
  width: 100%;
  max-width: 54px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--chart-light) 0%, var(--chart-color) 100%);
  opacity: 0.92;
}

.detail-bar--latest .detail-bar__fill {
  background: linear-gradient(180deg, var(--chart-light) 0%, var(--chart-color) 100%);
  box-shadow: 0 4px 12px rgba(184, 134, 47, 0.18);
}

.detail-bar--latest .detail-bar__value {
  color: #8a5a12;
}

.detail-bar:hover .detail-bar__fill,
.detail-bar:focus-visible .detail-bar__fill {
  opacity: 1;
  transform: scaleY(1.012);
}

.detail-bar--zero .detail-bar__value {
  display: none;
}

.detail-bar__year {
  color: rgba(43, 51, 38, 0.5);
}

.detail-chart-legend span {
  background: #b8862f;
}

.detail-bar__fill {
  box-shadow: 0 1px 0 rgba(43, 51, 38, 0.04);
}

/* Dual chart layout: GMV bars + age radar */
.detail-charts {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
  gap: 20px;
  align-items: stretch;
  margin-top: 26px;
}

.detail-chart-panel,
.detail-radar-panel {
  min-width: 0;
  padding: 16px 18px 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fbf8f1 0%, #fdfbf6 100%);
}

.detail-chart-panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(43, 51, 38, 0.1);
}

.detail-chart-panel__head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.detail-chart-panel__head span {
  color: var(--muted);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 8px;
  letter-spacing: 0.08em;
}

.detail-chart-panel .detail-chart-wrap {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow-x: auto;
}

.detail-charts .detail-chart-frame {
  grid-template-columns: 48px minmax(600px, 1fr);
  min-width: 648px;
}

.detail-radar {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
}

.detail-radar svg {
  display: block;
  width: 100%;
  max-width: 370px;
  height: auto;
  overflow: visible;
}

.detail-radar .radar-grid {
  fill: none;
  stroke: rgba(43, 51, 38, 0.12);
  stroke-width: 1;
}

.detail-radar .radar-axis {
  stroke: rgba(43, 51, 38, 0.12);
  stroke-width: 1;
}

.detail-radar .radar-label {
  fill: rgba(43, 51, 38, 0.62);
  font-family: "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 9px;
}

.detail-radar .radar-value {
  fill: #8a5a12;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 8px;
  font-weight: 600;
}

.detail-radar .radar-shape {
  fill: rgba(184, 134, 47, 0.18);
  stroke: #b8862f;
  stroke-width: 1.5;
}

.detail-radar .radar-dot {
  fill: #b8862f;
  stroke: #fdfbf6;
  stroke-width: 1.5;
}

.detail-radar-note {
  margin: 2px 0 0;
  color: rgba(43, 51, 38, 0.42);
  font-size: 8px;
  line-height: 1.6;
  text-align: center;
}

@media (max-width: 900px) {
  .detail-charts {
    grid-template-columns: 1fr;
  }

  .detail-radar {
    min-height: 300px;
  }
}

/* Slightly larger data numerals */
.detail-chart-yaxis {
  font-size: 9px;
}

.detail-bar__value {
  font-size: 9.5px;
  font-weight: 500;
  color: rgba(43, 51, 38, 0.62);
}

.detail-bar--latest .detail-bar__value {
  font-size: 10px;
}

.detail-bar__year {
  font-size: 9.5px;
}

.detail-radar .radar-label {
  font-size: 10px;
}

.detail-radar .radar-value {
  font-size: 9px;
}

/* No internal scrollbars in the data chart */
.detail-chart-panel .detail-chart-wrap {
  overflow: hidden;
}

.detail-chart-panel .detail-chart-frame {
  min-width: 0;
}

.detail-chart-panel .detail-chart {
  height: 360px;
}

.detail-chart-panel .detail-chart-yaxis {
  height: 360px;
}

@media (max-width: 640px) {
  .detail-chart-panel .detail-chart {
    height: 300px;
  }

  .detail-chart-panel .detail-chart-yaxis {
    height: 300px;
  }
}

/* Slightly larger age radar numerals */
.detail-radar .radar-label {
  font-size: 11px;
}

.detail-radar .radar-value {
  font-size: 10px;
}

/* Official Tmall wordmark on detail page */
.detail-logo--wide {
  width: 88px;
  height: 38px;
  border-radius: 7px;
}
