:root {
  --bg: #f6f4ec;
  --paper: #fffdf7;
  --surface: #ffffff;
  --surface-strong: #eef3e7;
  --ink: #17211b;
  --muted: #647067;
  --line: #ddd8c8;
  --green: #2f6f45;
  --leaf: #78a245;
  --gold: #d8a63d;
  --teal: #227b78;
  --red: #b76048;
  --shadow: 0 18px 45px rgba(42, 51, 35, 0.11);
  --side-nav-width: 154px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(47, 111, 69, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(47, 111, 69, 0.05) 1px, transparent 1px),
    var(--bg);
  background-size: 42px 42px;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
select,
input {
  font: inherit;
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
}

.hero__image,
.hero__overlay {
  position: absolute;
  inset: 0;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  background:
    linear-gradient(90deg, rgba(12, 26, 18, 0.9) 0%, rgba(22, 47, 30, 0.75) 45%, rgba(26, 52, 39, 0.32) 100%),
    linear-gradient(0deg, rgba(11, 20, 16, 0.7) 0%, rgba(11, 20, 16, 0) 30%);
}

.topbar {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(18px, 4vw, 56px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  min-width: 0;
}

.brand__mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.topbar__links {
  display: flex;
  gap: clamp(12px, 2vw, 28px);
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.topbar__links a:hover {
  color: #fff;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(820px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 92px);
  padding-top: 90px;
  padding-bottom: 112px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.title-year {
  white-space: nowrap;
}

.hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(40px, 5.7vw, 74px);
  line-height: 1.07;
  letter-spacing: 0;
}

.hero__copy {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.field {
  display: grid;
  gap: 8px;
  min-width: 170px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.field select {
  height: 44px;
  padding: 0 40px 0 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
}

.field option {
  color: var(--ink);
}

.chapter-nav {
  position: sticky;
  z-index: 5;
  top: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  overflow-x: auto;
  background: rgba(255, 253, 247, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.chapter-nav a {
  flex: 0 0 auto;
  padding: 9px 14px;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.chapter-nav a.is-active,
.chapter-nav a:hover {
  color: var(--green);
  background: #fff;
  border-color: var(--line);
}

@media (min-width: 1100px) {
  .chapter-nav {
    position: fixed;
    top: 96px;
    bottom: 24px;
    left: 20px;
    width: var(--side-nav-width);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 6px;
    padding: 10px;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 16px 38px rgba(42, 51, 35, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-18px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .chapter-nav.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
  }

  .chapter-nav a {
    width: 100%;
    padding: 10px 12px;
    white-space: normal;
    font-size: 15px;
  }

  main {
    padding-left: calc(var(--side-nav-width) + 36px);
  }

  .section {
    width: min(1180px, calc(100% - 48px));
  }
}

main {
  position: relative;
  margin-top: -42px;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 28px;
  padding: clamp(24px, 4vw, 42px);
  background: rgba(255, 253, 247, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

@media (min-width: 1100px) {
  .section {
    width: min(1180px, calc(100% - 48px));
  }
}

.section--summary {
  position: relative;
  z-index: 4;
}

.section--split {
  display: grid;
  grid-template-columns: 1.16fr 0.84fr;
  gap: 22px;
  align-items: stretch;
}

.section--split .section__heading {
  grid-column: 1 / -1;
}

.section--cost {
  display: grid;
  gap: 20px;
}

.section--trend {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.section__heading {
  margin-bottom: 20px;
}

.section__heading h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.2;
}

.section__lead,
.section__note {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.section__note {
  font-size: 13px;
}

.section__heading--row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.section__heading--sub {
  margin-top: 26px;
}

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

.kpi {
  min-height: 146px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.kpi span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.kpi strong {
  display: block;
  margin-top: 14px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
}

.kpi small {
  display: inline-flex;
  margin-top: 16px;
  color: var(--green);
  font-weight: 800;
}

.story-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.story-strip article {
  min-height: 116px;
  padding: 18px;
  border-right: 1px solid var(--line);
}

.story-strip article:last-child {
  border-right: 0;
}

.story-strip span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.story-strip strong {
  display: block;
  margin-top: 8px;
  font-size: 18px;
}

.story-strip p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.panel,
.chapter-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.panel--chart {
  background: linear-gradient(180deg, #fff 0%, #fbfaf4 100%);
}

.panel__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.panel__toolbar p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.chart-kicker {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
}

#longProductionHeadline {
  display: block;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.15;
}

.segmented {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 8px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.segmented button {
  min-height: 36px;
  padding: 0 14px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.segmented button.is-active {
  color: #fff;
  background: var(--green);
}

.segmented button:focus-visible {
  outline: 3px solid rgba(216, 166, 61, 0.7);
  outline-offset: 2px;
}

.chart-frame {
  width: 100%;
  min-height: 350px;
}

.chart-frame svg {
  display: block;
  width: 100%;
  height: 350px;
}

.chart-frame--bars svg {
  height: 430px;
}

.long-chart-grid {
  display: grid;
  gap: 18px;
}

.long-chart-shell {
  position: relative;
  width: 100%;
  min-height: 430px;
}

.long-chart-shell svg {
  display: block;
  width: 100%;
  height: 430px;
}

.chart-tooltip {
  position: absolute;
  z-index: 2;
  min-width: 128px;
  padding: 10px 12px;
  color: #fff;
  background: #203126;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(23, 33, 27, 0.22);
  font-size: 13px;
  pointer-events: none;
  transform: translate(-50%, -115%);
}

.chart-tooltip strong {
  display: block;
  margin-top: 2px;
  color: var(--gold);
  font-size: 18px;
}

.long-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.long-stats article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.long-stats span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.long-stats strong {
  display: block;
  margin-top: 8px;
  font-size: 20px;
}

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

.metric-card {
  min-height: 390px;
}

.season-long-card {
  margin-top: 0;
}

.season-long-card .panel__toolbar {
  align-items: flex-start;
}

.season-long-card .chart-kicker,
.season-long-card .panel__toolbar > p {
  line-height: 1.35;
}

.season-long-card .chart-kicker {
  color: var(--muted);
  font-size: 13px;
}

.season-long-card .panel__toolbar > p {
  color: var(--muted);
  font-size: 13px;
}

.season-long-card .panel__toolbar strong {
  display: block;
  margin-top: 6px;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.15;
}

.metric-card .panel__toolbar {
  align-items: flex-start;
}

.metric-card .panel__toolbar strong {
  display: block;
  margin-top: 6px;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.25;
}

.mini-chart-frame {
  width: 100%;
  min-height: 270px;
}

.mini-chart-frame svg {
  display: block;
  width: 100%;
  height: 270px;
}

.season-long-frame {
  width: 100%;
  min-height: 520px;
}

.season-long-frame svg {
  display: block;
  width: 100%;
  height: 520px;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

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

.chart-legend i {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.chapter-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #203126;
  color: #fff;
}

.chapter-card__number {
  color: var(--gold);
  font-weight: 900;
}

.chapter-card h3 {
  margin: 16px 0 8px;
  font-size: 22px;
}

.chapter-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.75;
}

.chapter-card__metric {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.chapter-card__metric span {
  display: block;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.chapter-card__metric strong {
  display: block;
  margin-top: 8px;
  color: var(--gold);
  font-size: 44px;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  white-space: nowrap;
}

.switch input {
  width: 42px;
  height: 22px;
  accent-color: var(--green);
}

.region-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 18px;
}

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

.province {
  min-height: 92px;
  padding: 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
}

.province strong,
.province span {
  display: block;
}

.province strong {
  font-size: 18px;
}

.province span {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  line-height: 1.5;
}

.panel--cost-trend {
  min-height: 100%;
}

.panel--cost-long {
  padding: clamp(18px, 3vw, 28px);
}

.panel--cost-long .panel__toolbar {
  align-items: flex-start;
}

.panel--cost-long .panel__toolbar strong {
  display: block;
  max-width: 760px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.18;
}

.cost-trend-shell {
  position: relative;
  min-height: 520px;
}

.cost-trend-shell svg {
  width: 100%;
  height: 520px;
  display: block;
}

.chart-legend--static {
  margin-top: 12px;
}

.panel--cost-structure {
  display: grid;
  grid-template-columns: minmax(340px, 0.88fr) minmax(360px, 1.12fr);
  gap: 22px;
  align-items: stretch;
}

.cost-donut-card,
.material-breakdown {
  min-width: 0;
}

.cost-donut-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(220px, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 360px;
}

.cost-donut-layout canvas {
  width: 100%;
  height: auto;
}

.material-bars {
  display: grid;
  gap: 12px;
}

.material-bar {
  display: grid;
  grid-template-columns: minmax(120px, 0.9fr) minmax(140px, 1.4fr) 52px;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.material-bar__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.material-bar__label span {
  color: #26352b;
  font-weight: 700;
}

.material-bar__label strong {
  color: #5e6b62;
  font-size: 14px;
}

.material-bar__track {
  height: 10px;
  border-radius: 999px;
  background: #eef0e9;
  overflow: hidden;
}

.material-bar__track i {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.material-bar em {
  color: #5e6b62;
  font-style: normal;
  font-weight: 800;
  text-align: right;
}

.legend {
  display: grid;
  gap: 10px;
}

.legend__item {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}

.legend__swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.metric-stack {
  display: grid;
  gap: 12px;
  margin: 12px 0 20px;
}

.metric-stack div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.metric-stack span {
  color: rgba(255, 255, 255, 0.66);
}

.metric-stack strong {
  color: #fff;
  font-size: 24px;
}

.section--matrix {
  margin-bottom: 42px;
}

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

.matrix__cell {
  min-height: 128px;
  padding: 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}

.matrix__cell span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.matrix__cell strong {
  display: block;
  margin-top: 12px;
  font-size: 26px;
}

.matrix__bar {
  height: 8px;
  margin-top: 18px;
  border-radius: 8px;
  background: var(--surface-strong);
  overflow: hidden;
}

.matrix__bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--leaf), var(--gold));
}

.section--global {
  margin-bottom: 42px;
}

.global-country-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.global-country-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.global-country-legend i {
  width: 11px;
  height: 11px;
  border-radius: 3px;
}

.global-stats {
  margin-top: 18px;
}

.section--trade-share {
  margin-bottom: 42px;
}

.trade-volume-card {
  margin-bottom: 18px;
}

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

.china-partner-grid {
  margin-top: 18px;
}

.trade-share-card {
  min-height: 520px;
}

.pie-chart-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(210px, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 8px;
}

.pie-chart-layout svg {
  display: block;
  width: 100%;
  min-height: 320px;
  height: 320px;
}

.pie-legend {
  display: grid;
  gap: 8px;
}

.pie-legend span {
  display: grid;
  grid-template-columns: 12px minmax(68px, 1fr) auto;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.pie-legend i {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.pie-legend b {
  color: var(--ink);
  font-size: 13px;
}

.pie-legend em {
  color: var(--muted);
  font-style: normal;
  text-align: right;
  white-space: nowrap;
}

.trade-share-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 38px;
  color: var(--muted);
  font-size: 14px;
}

.footer p {
  margin: 0;
}

.footer a {
  color: var(--green);
  font-weight: 900;
  white-space: nowrap;
}

@media (max-width: 920px) {
  .topbar {
    align-items: flex-start;
  }

  .topbar__links {
    display: none;
  }

  .hero {
    min-height: 820px;
  }

  .section--split,
  .section--trend,
  .region-layout,
  .panel--cost-structure,
  .cost-donut-layout,
  .trade-share-grid,
  .pie-chart-layout {
    grid-template-columns: 1fr;
  }

  .kpi-grid,
  .story-strip,
  .metric-gallery,
  .matrix,
  .long-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .story-strip article:nth-child(2) {
    border-right: 0;
  }

  .story-strip article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 620px) {
  .chapter-nav {
    justify-content: flex-start;
  }

  .hero__content {
    width: calc(100% - 28px);
    margin-left: 14px;
    padding-bottom: 96px;
  }

  .brand span:last-child {
    max-width: 210px;
    overflow-wrap: anywhere;
  }

  .hero h1 {
    font-size: 37px;
  }

  .section {
    width: calc(100% - 18px);
    padding: 20px 14px;
  }

  .section__heading--row,
  .panel__toolbar,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .segmented {
    width: 100%;
  }

  .segmented button {
    flex: 1;
    padding: 0 8px;
    font-size: 13px;
  }

  .kpi-grid,
  .story-strip,
  .metric-gallery,
  .matrix,
  .province-grid {
    grid-template-columns: 1fr;
  }

  .story-strip article,
  .story-strip article:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .story-strip article:last-child {
    border-bottom: 0;
  }

  .chart-frame,
  .chart-frame svg {
    min-height: 300px;
    height: 300px;
  }

  .chart-frame--bars svg {
    height: 380px;
  }

  .mini-chart-frame,
  .mini-chart-frame svg {
    min-height: 240px;
    height: 240px;
  }

  .season-long-frame,
  .season-long-frame svg {
    min-height: 420px;
    height: 420px;
  }

  .long-chart-shell,
  .long-chart-shell svg {
    min-height: 330px;
    height: 330px;
  }

  .cost-trend-shell,
  .cost-trend-shell svg {
    min-height: 420px;
    height: 420px;
  }

  .material-bar {
    grid-template-columns: 1fr 56px;
  }

  .material-bar__label {
    grid-column: 1 / -1;
  }

  .pie-chart-layout svg {
    min-height: 280px;
    height: 280px;
  }

  .pie-legend span {
    grid-template-columns: 12px minmax(0, 1fr);
  }

  .pie-legend em {
    grid-column: 2;
    text-align: left;
  }

  .long-stats {
    grid-template-columns: 1fr;
  }
}
