:root {
  color-scheme: light;
  --deep: #092d34;
  --dark: #0e3b3c;
  --ink: #153633;
  --muted: #485f56;
  --teal: #126657;
  --mint: #e4eee7;
  --paper: #f8f7ef;
  --white: #fdfcf5;
  --line: #d6ded1;
  --gold: #e2bd7b;
  --serif: "Songti SC", "Noto Serif CJK SC", "SimSun", serif;
  --sans: "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", system-ui, sans-serif;
  --wrap: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.7 var(--sans); }
body:has(dialog[open]) { overflow: hidden; }
[hidden] { display: none !important; }
img { display: block; max-inline-size: 100%; }
button, a { touch-action: manipulation; }
button { font: inherit; }
a { color: inherit; text-underline-offset: 0.24em; }
button:not(:disabled) { cursor: pointer; }
button:disabled { cursor: default; opacity: 0.66; }
:where(a, button, summary, [tabindex]):focus-visible { outline: 3px solid #258d74; outline-offset: 4px; border-radius: 3px; }
h1, h2, h3, p { margin: 0; }
section[id], article[id], details[id] { scroll-margin-top: 1rem; }
.skip { position: fixed; z-index: 8; inset: 0 auto auto 1rem; padding: 0.55rem 1rem; background: white; color: var(--ink); transform: translateY(-120%); }
.skip:focus { transform: translateY(0); }
.icon-library { position: absolute; inline-size: 0; block-size: 0; overflow: hidden; }
.icon { flex: none; width: 1.12em; height: 1.12em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; }
.wrap { width: min(var(--wrap), calc(100% - 5rem)); margin-inline: auto; }

.site-header { color: #133a38; background: #f8fcf6; position: relative; z-index: 1; border-bottom: 1px solid #d0e2d7; }
.site-header .header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 1.1rem; }
.brand { display: flex; align-items: center; gap: 0.73rem; white-space: nowrap; text-decoration: none; line-height: 1.3; }
.brand-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid #91c9b3; background: #e4f3e9; color: #106854; }
.brand-icon .icon { width: 23px; height: 23px; }
.brand strong { display: block; font-size: 1rem; letter-spacing: 0.075em; }
.brand small { display: block; margin-top: 0.27rem; color: #426d60; font-size: 0.73rem; }
.site-header nav { display: flex; align-items: stretch; gap: clamp(0.8rem, 2.55vw, 2.4rem); }
.site-header nav a { position: relative; display: flex; align-items: center; min-height: 53px; text-decoration: none; color: #254d43; font-size: 0.875rem; white-space: nowrap; }
.site-header nav a:hover { color: #0b725d; text-decoration: underline; }
.header-button { display: inline-flex; align-items: center; gap: 0.47rem; min-height: 41px; padding: 0.52rem 0.82rem; border: 1px solid #93bfad; border-radius: 0.32rem; background: #e9f4ea; color: #155347; font-size: 0.83rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
.header-button:hover { background: #d9eee2; }

.hero { isolation: isolate; position: relative; overflow: hidden; color: #123e39; background: #b9e7d7 url('./assets/exhibit/river-cover.webp') center 45%/cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(92deg, #f0f9eaf5 0%, #f2f9e8ef 23%, #edf8e4c7 39%, #ecf6e459 54%, #eaf6de00 74%); }
.hero-inner { min-height: clamp(470px, 45vw, 600px); display: flex; align-items: center; position: relative; padding-block: 4.7rem 5.6rem; }
.hero-content { max-width: 45rem; }
.hero-date { display: flex; align-items: center; gap: 0.65rem; color: #185b4b; font-size: 0.86rem; font-weight: 750; letter-spacing: 0.18em; }
.hero-date span { width: 30px; height: 2px; background: #2d8f71; }
.hero h1 { margin-top: 1.05rem; font: 700 clamp(3rem, 6.15vw, 6rem)/1.13 var(--serif); letter-spacing: 0.02em; text-wrap: balance; }
.hero h1 span { display: block; color: #08745e; }
.hero-subtitle { margin-top: 1.03rem; font-size: clamp(1.05rem, 1.6vw, 1.5rem); font-weight: 650; color: #173f35; letter-spacing: 0.09em; }
.hero-summary { margin-top: 0.58rem; max-inline-size: 32rem; color: #214b41; font-size: clamp(0.96rem, 1.2vw, 1.1rem); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem; margin-top: 1.65rem; }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 0.52rem; padding: 0.53rem 1rem; border: 1px solid transparent; border-radius: 0.32rem; font-size: 0.9rem; font-weight: 650; line-height: 1.35; text-decoration: none; }
.button-primary { background: #126b57; color: #f8fcf5; }
.button-primary:hover { background: #095243; }
.button-outline { background: #f7fbf0a8; border-color: #568d7a; color: #17584a; }
.button-outline:hover { background: #f5f9ef; }
.hero-image-note { position: absolute; right: 0; bottom: 1rem; color: #184739; background: #f3f9ebdb; padding: 0.17rem 0.51rem; border-radius: 0.22rem; font-size: 0.72rem; }

.facts { background: #114e46; color: #f2f4e6; }
.fact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fact { display: flex; align-items: center; justify-content: center; gap: 0.85rem; min-height: 111px; padding: 0.55rem 0.7rem; }
.fact + .fact { border-left: 1px solid #add8c349; }
.fact-value { color: #f3d9a9; font: 600 clamp(2.05rem, 3.75vw, 3.95rem)/1.1 Georgia, var(--serif); white-space: nowrap; font-variant-numeric: lining-nums; }
.fact-value span { padding-left: 0.24em; color: #eed8ac; font: 600 0.83rem var(--sans); }
.fact strong { display: block; font-weight: 650; }
.fact a, .fact strong + span { display: block; color: #c2d8cc; font-size: 0.77rem; }

.section { padding-block: clamp(3.5rem, 6.25vw, 6.7rem); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 2rem; align-items: end; margin-bottom: clamp(1.42rem, 3vw, 2.7rem); }
.section-index { margin-bottom: 0.38rem; color: #207561; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em; }
.section-heading h2 { font: 700 clamp(2rem, 4.1vw, 3.75rem)/1.13 var(--serif); color: #123b34; letter-spacing: 0.025em; }
.section-heading > p { color: var(--muted); max-width: 35rem; }

.river-strip { display: grid; position: relative; isolation: isolate; grid-template-columns: auto repeat(5, minmax(0, 1fr)) auto; align-items: center; gap: 0.55rem; padding: 0.97rem 1.2rem; border: 1px solid #cbdccf; border-radius: 0.48rem; background: #e9f0e7; text-align: center; color: #2c6358; }
.river-strip::before { content: ""; position: absolute; z-index: -1; inset: 50% 5% auto; height: 2px; background: repeating-linear-gradient(90deg, #659d8b 0 7px, transparent 7px 12px); }
.river-strip span { justify-self: center; padding: 0.15rem 0.4rem; background: #e9f0e7; white-space: nowrap; font-size: 0.84rem; }
.river-strip .direction { font-weight: 750; }
.river-strip .strip-plant { color: #f7fbf3; background: #186653; border: 1px solid #186653; padding-inline: 0.7rem; border-radius: 1.2rem; font-weight: 630; }
.strip-landmark { border: 1px solid #90ae9d; border-radius: 0.26rem; }
.strip-caption, .inline-note { margin-top: 0.64rem; color: #456158; font-size: 0.83rem; }
.strip-caption a, .inline-note a { margin-left: 0.3rem; font-weight: 600; }
.plant-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(0.82rem, 2vw, 1.65rem); margin-top: 1.22rem; }
.plant-card { overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 0.64rem; background: var(--white); box-shadow: 0 0.2rem 0.8rem #12382e07; }
.model-plate { position: relative; background: #eaf1eb; border-bottom: 1px solid #d9e4d8; }
.model-plate img { aspect-ratio: 760 / 460; height: auto; width: 100%; object-fit: cover; }
.model-plate span { position: absolute; top: 0.65rem; left: 0.67rem; padding: 0.16rem 0.49rem; color: #245b4b; background: #f2f6ef; border: 1px solid #c3d7c8; border-radius: 0.25rem; font-size: 0.73rem; font-weight: 600; }
.plant-body { display: flex; flex-direction: column; flex: 1; padding: 1.12rem clamp(0.9rem, 1.65vw, 1.45rem) 1.1rem; }
.plant-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.25rem 0.6rem; }
.plant-heading h3, .assurance-card h3, .quality-card h3 { font: 700 clamp(1.25rem, 2.2vw, 1.7rem)/1.3 var(--serif); }
.plant-heading span { color: #386450; font-size: 0.76rem; }
.plant-heading b { font: 700 1.55rem/1 Georgia, var(--serif); }
.plant-body p { margin-top: 0.44rem; color: var(--muted); }
.plant-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.38rem 0.8rem; padding-top: 1rem; margin-top: auto; }
.text-button { display: inline-flex; align-items: center; gap: 0.43rem; min-height: 40px; padding: 0.34rem 0.66rem; border: 1px solid #b5ccbc; border-radius: 0.31rem; color: #155c4e; background: #edf4ec; font-weight: 650; font-size: 0.87rem; white-space: nowrap; }
.text-button:hover { background: #dcecdf; border-color: #63958b; }
.quiet-link { display: inline-block; color: #235c50; font-size: 0.83rem; font-weight: 600; }
.plant-grid + .inline-note { margin-top: 1rem; }

.history-band { background: #0a3939; color: #f2f4e8; }
.history-band .section-index { color: #e1c38b; }
.history-band .section-heading h2 { color: #f5f2e6; }
.history-band .section-heading > p { color: #c5dbce; }
.timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.35rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.timeline li { position: relative; padding: 0.96rem 0.05rem 1.06rem 0; border-top: 1px solid #8bbaab78; }
.timeline li::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: #e9c98b; }
.timeline time, .timeline .time { display: block; margin-bottom: 0.35rem; color: #e9cc94; font-weight: 700; font-size: 1.05rem; }
.timeline h3 { font-size: 1.11rem; line-height: 1.5; }
.timeline p { margin-top: 0.36rem; color: #d9e8dd; }
.timeline a { color: #bbddd0; display: inline-block; margin-top: 0.42rem; font-size: 0.79rem; }

.journey-card { border: 1px solid var(--line); border-radius: 0.56rem; overflow: hidden; background: var(--white); }
.journey-nav { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); background: #e5efe7; text-align: center; }
.journey-nav a { display: grid; align-content: center; justify-items: center; gap: 0.38rem; padding: 0.64rem 0.25rem; min-height: 72px; color: #236255; text-decoration: none; font-size: 0.9rem; font-weight: 660; line-height: 1.35; }
.journey-nav a + a { border-left: 1px solid #c4ddce; }
.journey-nav a span { font-family: Georgia, var(--serif); font-size: 0.88rem; opacity: 0.9; }
.journey-nav a:hover { background: #d6e8da; }
.journey-nav a[aria-selected="true"] { background: #166456; color: #f6f7ed; border-color: #166456; }
.journey-nav a:focus-visible { outline-offset: -5px; outline-color: #ce9b49; }
.journey-panels { padding: clamp(1.05rem, 2.95vw, 2.3rem); }
.journey-panels h3 { font-size: clamp(1.13rem, 2vw, 1.5rem); }
.journey-panels p { margin-top: 0.36rem; color: var(--muted); max-width: 55rem; }
.journey-panels article + article:not([hidden]) { margin-top: 0.8rem; }
.journey-panels:has([role="tabpanel"]) article + article:not([hidden]) { margin-top: 0; }

.assurance-section { padding-top: 0.6rem; }
.assurance-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.assurance-card { display: grid; grid-template-columns: 0.81fr 1.19fr; align-items: stretch; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 0.56rem; }
.assurance-card img { width: 100%; height: 100%; object-fit: cover; background: #eaf1eb; }
.assurance-card > div { padding: 1.12rem 1rem; }
.assurance-card p:not(.card-type) { color: var(--muted); margin-top: 0.43rem; font-size: 0.92rem; }
.assurance-card .card-type { color: #267561; font-size: 0.75rem; font-weight: 700; margin-bottom: 0.4rem; }
.assurance-card button { margin-top: 0.68rem; }
.assurance-card a { margin-left: 0.38rem; }
.quality-card { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 0.85rem; margin-top: 1.25rem; padding: 1.25rem; border: 1px solid #c4d6c6; border-radius: 0.56rem; background: #e8f0e5; }
.quality-icon { display: grid; place-items: center; inline-size: 43px; block-size: 43px; border-radius: 50%; background: #d4e7d9; color: #1c6759; }
.quality-icon .icon { width: 23px; height: 23px; }
.quality-card p { margin: 0.41rem 0; color: var(--muted); }
.quality-card a { color: #155b4f; font-weight: 650; font-size: 0.9rem; }

.source-band { background: #e8eee3; border-top: 1px solid #d2dfd0; }
.source-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.78rem; }
.source-item { border: 1px solid #cfdcce; border-radius: 0.4rem; padding: 1rem; background: #f7f8ee; }
.source-item:target { border-color: #17826f; outline: 2px solid #d3e7d5; }
.source-item h3 { font-size: 1rem; }
.source-item p, .research-note p { margin: 0.33rem 0 0.55rem; color: var(--muted); font-size: 0.89rem; }
.source-item a, .research-note a { display: inline-block; margin: 0 0.45rem 0.15rem 0; color: #155b4f; font-size: 0.83rem; font-weight: 650; }
.research-note { margin-top: 1.05rem; padding: 0.75rem 1rem; border: 1px solid #a9c5b0; border-radius: 0.38rem; background: #eef3e8; }
.research-note summary { color: #174f44; font-weight: 650; cursor: pointer; }

.site-footer { background: #082e34; color: #eef2e7; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.45rem; }
.footer-inner p { color: #b7d2c6; font-size: 0.83rem; padding-top: 0.18rem; }
.footer-links { display: flex; align-items: center; flex-wrap: wrap; gap: 0.65rem 1.05rem; font-size: 0.83rem; }
#offline-status { color: #c1ded0; }
.footer-action { color: white; background: transparent; border: 1px solid #66978c; border-radius: 0.22rem; padding: 0.22rem 0.53rem; }

dialog { position: fixed; width: min(56rem, calc(100% - 2rem)); max-height: calc(100% - 2rem); max-height: calc(100dvh - 2rem); margin: auto; padding: 0; border: 1px solid #a7c7b3; border-radius: 0.75rem; background: var(--white); color: var(--ink); box-shadow: 0 1.45rem 3.5rem #02131355; }
dialog::backdrop { background: #062226b3; backdrop-filter: blur(4px); }
.dialog-bar { position: sticky; z-index: 1; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.72rem 1rem; background: #103e3d; color: #f2f5e9; font-size: 0.9rem; font-weight: 600; }
.icon-button { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 1px solid #8ac2b081; border-radius: 0.3rem; background: transparent; color: #eff3eb; }
.icon-button:hover { background: #ffffff1b; }
.dialog-exhibit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 1.25rem; padding: 1.25rem; }
.exhibit-visual { position: sticky; top: calc(45px + 1.45rem); z-index: 1; padding-bottom: 0.32rem; background: var(--white); }
.viewer-frame { position: relative; overflow: hidden; width: 100%; aspect-ratio: 760/460; border: 1px solid #d1e2d2; border-radius: 0.42rem; background: #eaf1eb; }
.viewer-frame img { width: 100%; height: 100%; object-fit: cover; }
#model-canvas { position: absolute; inset: 0; }
#model-canvas canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.viewer-actions { margin-top: 0.67rem; }
.button-model, .model-tools button { background: #e5efe5; color: #135d4f; border: 1px solid #bad0c0; border-radius: 0.3rem; }
.button-model:hover, .model-tools button:hover { background: #d6eadb; }
.model-tools { display: flex; flex-wrap: wrap; gap: 0.32rem; }
.model-tools button { min-height: 42px; padding: 0.24rem 0.55rem; font-size: 0.83rem; }
.viewer-status { margin-top: 0.35rem; color: #425e54; font-size: 0.83rem; min-height: 1.5em; }
.dialog-copy h2 { font: 700 clamp(1.6rem, 3.1vw, 2.55rem)/1.2 var(--serif); }
.dialog-copy > p:not(.section-index) { margin-top: 0.53rem; color: var(--muted); }
.dialog-copy .dialog-capacity { color: #196c57; font-weight: 750; }
.dialog-copy h3 { margin-top: 0.62rem; font-size: 0.96rem; }
#exhibit-items { margin: 0.18rem 0 0.55rem; padding-left: 1.15rem; color: var(--muted); }
.exhibit-links { display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; margin-top: 0.55rem; }
.exhibit-flow { display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 0.68rem 0 0; padding: 0; list-style: none; }
.exhibit-flow li { padding: 0.15rem 0.45rem; border-radius: 0.3rem; background: #e3efe4; color: #205e50; font-size: 0.78rem; }

@media (max-width: 950px) {
  .wrap { width: min(var(--wrap), calc(100% - 3rem)); }
  .site-header nav { gap: 0.79rem; }
  .site-header nav a { font-size: 0.8rem; }
  .fact { gap: 0.6rem; }
  .assurance-card { grid-template-columns: 1fr; }
  .assurance-card img { height: auto; max-height: 220px; object-fit: contain; }
}
@media (max-width: 730px) {
  .wrap { width: calc(100% - 2rem); }
  .site-header .header-inner { display: grid; grid-template-columns: 1fr auto; gap: 0; min-height: auto; padding-top: 0.65rem; }
  .site-header nav { grid-area: 2/1/3/3; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0 0.3rem; border-top: 1px solid #a5cdbe2e; margin-top: 0.66rem; }
  .site-header nav a { min-height: 45px; font-size: 0.76rem; }
  .header-button { grid-area: 1/2/2/3; }
  .brand-icon { width: 34px; height: 34px; }
  .hero { background-position: 63% center; }
  .hero::before { background: linear-gradient(90deg, #f1f9eac9, #f2f9eaa3 56%, #eff7e862), linear-gradient(0deg, #eaf5d800, #f0fae9a8 82%); }
  .hero-inner { min-height: 440px; padding-block: 3.4rem 4.25rem; }
  .hero h1 { font-size: clamp(2.65rem, 8vw, 4.1rem); }
  .hero-subtitle { letter-spacing: 0.025em; }
  .hero-image-note { bottom: 0.55rem; }
  .fact { flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 0.25rem; padding: 0.7rem 0.46rem 0.62rem; min-height: 95px; }
  .fact:first-child { padding-left: 0; }
  .fact-value { font-size: clamp(1.6rem, 5.65vw, 2.6rem); }
  .fact-value span { font-size: 0.67rem; }
  .fact strong { font-size: 0.81rem; }
  .fact a, .fact strong + span { font-size: 0.68rem; }
  .section-heading { grid-template-columns: 1fr; gap: 0.56rem; }
  .river-strip { padding: 0.72rem 0.35rem; gap: 0.23rem; }
  .river-strip span { min-width: 0; padding: 0.18rem 0.23rem; font-size: clamp(0.63rem, 2.45vw, 0.83rem); white-space: normal; line-height: 1.3; }
  .river-strip .strip-plant { padding-inline: 0.3rem; border-radius: 0.35rem; }
  .timeline { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
  .journey-nav { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .journey-nav a:nth-child(n+4) { border-top: 1px solid #c4ddce; }
  .source-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .footer-inner { align-items: flex-start; flex-direction: column; padding-block: 1.15rem; }
  .dialog-exhibit { grid-template-columns: 1fr; gap: 0.85rem; padding: 0.85rem; }
  .exhibit-visual { position: static; }
  #exhibit-dialog[data-model-open] .exhibit-visual { position: sticky; }
}
@media (max-height: 520px) { .exhibit-visual, #exhibit-dialog[data-model-open] .exhibit-visual { position: static; } }
@media (max-width: 530px) {
  .plant-grid, .assurance-grid, .source-grid { grid-template-columns: 1fr; }
  .plant-body { padding: 0.85rem 0.9rem; }
  .model-plate img, .assurance-card img { max-height: 220px; object-fit: contain; }
  .model-plate img { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media print {
  body { color: #142821; background: white; font-size: 11pt; }
  .wrap { width: 100%; }
  .site-header, .hero-actions, .hero-image-note, .site-footer, .plant-actions button, .assurance-card button, .journey-nav { display: none; }
  .hero, .facts, .history-band { background: white; color: #142821; }
  .hero::before { display: none; }
  .hero-inner { min-height: 0; padding-block: 12px; }
  .hero h1 { font-size: 30pt; }
  .hero h1 span, .hero-subtitle, .hero-date, .hero-summary, .fact *, .history-band .section-heading :is(h2,p), .history-band :is(p,a,time,.time,.section-index) { color: #142821; }
  .section { padding-block: 14px; }
  .section-heading { margin-bottom: 0.75rem; }
  .journey-panels [hidden] { display: block !important; }
  .plant-card, .source-item, .timeline li, .quality-card, .assurance-card { break-inside: avoid; }
  dialog { display: none !important; }
}
