:root {
  color-scheme: light;
  --page: #f6f6ef;
  --paper: #fcfcf7;
  --ink: #243b2e;
  --green: #2a4a37;
  --muted: #637064;
  --line: #d4d9c9;
  --gold: #c1d592;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", SimSun, Georgia, serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
}
* {box-sizing:border-box}
body {margin:0;background:var(--page);color:var(--ink);font-family:var(--sans);font-size:16px;-webkit-font-smoothing:antialiased}
button, input {font:inherit}
button {color:inherit;cursor:pointer}
button:focus-visible,input:focus-visible,canvas:focus-visible {outline:3px solid #8caa60;outline-offset:3px}
button:disabled {cursor:default}
h1,h2,h3,p,figure,dl,dd {margin:0}
i[data-i],.icon {display:inline-flex;align-items:center;justify-content:center;flex:none;font-style:normal}
i[data-i] svg {width:1.15em;height:1.15em;display:block}
button {transition:background-color .16s ease,color .16s ease,border-color .16s ease}
.mast {border-bottom:1px solid var(--line);background:#fafbf5}
.mast-inner,main {width:min(1440px,100%);margin:0 auto;padding-inline:clamp(22px,4.7vw,78px)}
.mast-inner {height:74px;display:flex;align-items:center;gap:clamp(40px,7vw,128px)}
.brand {display:flex;align-items:center;gap:11px;flex:none}
.brand-icon {width:38px;height:38px;background:#2b493a;color:#d3e0a3;border-radius:50% 50% 46% 46%;display:grid;place-items:center}
.brand-icon svg {width:33px;height:33px}
.brand-word {font:600 23px/1.1 var(--serif);letter-spacing:.1em}
.brand-word small {display:block;font:600 9px/1.4 "Avenir Next",Arial,sans-serif;margin-top:4px;letter-spacing:.19em}
nav {display:flex;align-self:stretch;align-items:stretch;gap:26px}
.nav-item,.guide,.site-foot button {background:none;border:0;display:inline-flex;align-items:center;gap:8px}
.nav-item {position:relative;font-size:15px;padding:3px 1px 0;color:var(--muted)}
.nav-item.current {color:var(--ink);font-weight:600}
.nav-item.current::after {content:"";position:absolute;bottom:0;left:0;right:0;height:3px;background:var(--green);border-radius:2px 2px 0 0}
.nav-item b {font:500 12px/1.6 ui-monospace,monospace;min-width:20px;text-align:center;border:1px solid var(--line);border-radius:12px;background:#eef1e6}
.guide {margin-left:auto;font-size:14px;color:#53614f;padding:10px 0}
.guide:hover,.nav-item:hover,.site-foot button:hover {color:#172b1d}
.intro {display:flex;align-items:center;justify-content:space-between;gap:18px;padding:clamp(24px,3vw,42px) 0 clamp(18px,2vw,28px)}
h1 {font:600 clamp(35px,3.65vw,60px)/1.17 var(--serif);letter-spacing:.04em}
.taxon {display:flex;align-items:baseline;gap:10px;margin-top:9px;font-size:14px;color:var(--muted)}
.taxon em {font:italic 17px/1.2 Georgia,"Times New Roman",serif;color:#546854}
.taxon-dot {color:#8e9a83}
.place {display:flex;align-items:center;gap:7px;color:#56664f;font-size:14px;white-space:nowrap}
.desk {display:grid;grid-template-columns:minmax(0,2.48fr) minmax(290px,1fr);gap:clamp(15px,1.55vw,25px);align-items:stretch}
.viewer-card,.note {border:1px solid var(--line);border-radius:13px;background:var(--paper);overflow:hidden}
.viewer-card {display:flex;flex-direction:column;min-width:0}
.scene {isolation:isolate;position:relative;overflow:hidden;height:clamp(360px,32.3vw,495px);background:#576244;flex:1;min-height:360px;color:white}
.scene-photo,.scene-shade,#tree {position:absolute;inset:0;width:100%;height:100%}
.scene-photo {z-index:-2;background:50% 74%/cover no-repeat url('assets/wuyi.webp');filter:saturate(.89)}
.scene-shade {z-index:-1;background:linear-gradient(180deg,#1c271210 0%,transparent 26%,transparent 76%,#141b1070)}
#tree {display:block;cursor:grab;touch-action:pan-y}
#tree:active {cursor:grabbing} .is-picking #tree {cursor:crosshair}
#tree:focus-visible {outline-offset:-4px}
.scene-top,.scene-bottom {position:absolute;display:flex;align-items:center;justify-content:space-between;left:18px;right:18px;pointer-events:none}
.scene-top {top:17px}.scene-bottom {bottom:17px}
.scene-top button,.scene-bottom button,.view-tools {pointer-events:auto}
.scene-chip,.glass,.view-tools {background:#223021b3;backdrop-filter:blur(8px);border:1px solid #f1f5dc45;color:#ffffed}
.scene-chip {border-radius:30px;display:inline-flex;align-items:center;gap:8px;padding:6px 11px;font-size:13px;letter-spacing:.08em;line-height:1.3}
.chip-dot {width:7px;height:7px;background:#c5e58c;border-radius:50%}
.icon-only {display:grid;place-items:center;border-radius:8px;width:35px;height:35px}
.glass:hover,.view-tools button:hover {background:#20311be6}
.scene-hint {display:flex;align-items:center;gap:7px;color:#fff;font-size:13px;text-shadow:0 1px 4px #18210e,0 1px 2px #18210e}
.view-tools {display:flex;border-radius:8px;overflow:hidden}
.view-tools button {display:grid;place-items:center;min-width:31px;min-height:31px;background:none;border:none;color:inherit;padding:2px 4px}
.view-tools button:disabled {color:#ddd9bba1}
.view-tools #normalView {font:500 12px/1.3 ui-monospace,monospace;min-width:39px}
.pick-flash {position:absolute;opacity:0;pointer-events:none;color:white;text-shadow:0 1px 4px #253318;font-weight:700}
.pick-flash.pop {animation:pick-note .85s ease-out}
@keyframes pick-note {0%{opacity:0;transform:translateY(0)}15%{opacity:1}80%{opacity:1}100%{opacity:0;transform:translateY(-42px)}}
.timeline {padding:19px clamp(17px,1.8vw,30px) 17px;background:var(--paper)}
.timeline-head,.note header,.transport {display:flex;align-items:center;justify-content:space-between;gap:8px}
.timeline-head h2,.note header h2 {display:flex;align-items:center;gap:9px;font:600 17px/1.4 var(--sans)}
.timeline-head h2 i,.note header h2 i {color:#647b51;font-size:17px}
.timeline-head>span {font:500 13px/1.4 var(--sans);color:#66735c}
.track-area {position:relative;height:22px;margin:14px 15px 0}
.track-base,.track-fill {position:absolute;top:10px;height:3px;border-radius:5px;left:0}
.track-base {right:0;background:#d5daca}.track-fill {width:100%;background:#69835b}
.ticks {position:absolute;inset:0;display:flex;justify-content:space-between;align-items:center}
.ticks i {display:block;border-radius:50%;width:8px;height:8px;background:#d3daca;box-shadow:0 0 0 2px var(--paper)}
.ticks i.done {background:#6c835a}
#time {position:absolute;inset:0;appearance:none;-webkit-appearance:none;background:transparent;width:calc(100% + 16px);margin:0 -8px;cursor:pointer;height:22px}
#time::-webkit-slider-runnable-track {height:3px;background:transparent}
#time::-webkit-slider-thumb {-webkit-appearance:none;width:15px;height:15px;margin-top:-6px;background:var(--green);border:3px solid #e6edd6;box-shadow:0 0 0 1px #48613b;border-radius:50%}
#time::-moz-range-thumb {width:10px;height:10px;border:3px solid #e6edd6;border-radius:50%;background:var(--green);box-shadow:0 0 0 1px #48613b}
.stops {position:relative;height:27px;margin:0 15px}
.stops button {position:absolute;top:0;transform:translateX(-50%);border:0;background:none;white-space:nowrap;color:#6c7566;font-size:13px;padding:3px 2px}
.stops button[aria-pressed=true] {font-weight:650;color:var(--green)}
.transport {border-top:1px solid #e3e6d9;padding-top:13px;margin-top:6px;justify-content:flex-start;gap:8px}
.play-btn,.speed,.harvest {border:0;border-radius:7px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:14px;font-weight:550}
.play-btn {background:var(--green);color:#fff;min-height:37px;padding:0 17px}
.play-btn:hover,.harvest:hover {background:#193a26}
.speed {background:transparent;border:1px solid var(--line);min-height:37px;padding:0 12px;color:#526348;font-weight:500}
.speed:hover {background:#ecf0e4}
.time-caption {margin-left:auto;color:#75806e;font-size:12px}
.note {display:flex;flex-direction:column}
.note header {padding:16px 20px;background:#eef1e5;border-bottom:1px solid var(--line)}
.note header>span {font:500 12px/1.4 ui-monospace,monospace;letter-spacing:.08em;color:#74806c}
.note-content {padding:21px 21px 0;flex:1;display:flex;flex-direction:column}
.eyebrow,.dlg-kicker {font-size:13px;font-weight:550;color:#5c6d4d;letter-spacing:.08em}
.note h3 {font:600 clamp(28px,2.3vw,36px)/1.24 var(--serif);letter-spacing:.07em;margin:5px 0 10px}
.note-content>p {font-size:15px;line-height:1.75;color:#54624f;min-height:3.5em}
.specimen {margin:17px 0 14px;position:relative;isolation:isolate;flex:1;min-height:122px;border:1px solid #dce1cd;background-color:#f1f3e7;background-image:linear-gradient(to right,#94a68413 1px,transparent 1px),linear-gradient(to bottom,#94a68413 1px,transparent 1px);background-size:16px 16px;border-radius:7px;overflow:hidden}
#specimen {position:absolute;left:7%;top:1%;width:86%;height:83%}
.spec-cross {position:absolute;top:8px;left:8px;color:#95a08b}
.specimen figcaption {position:absolute;right:9px;bottom:6px;color:#5b6b50;letter-spacing:.05em;font-size:12px}
.facts>div {display:flex;justify-content:space-between;gap:10px;font-size:14px;line-height:1.65;padding:6px 0;border-bottom:1px solid #e1e5d7}
.facts dt {color:#727d69;flex:none}.facts dd {color:#384a32;text-align:right;font-weight:500}
.note-action {padding:16px 21px 15px}
.harvest {display:flex;width:100%;background:var(--green);color:#f6f7e7;height:42px;font-size:15px;letter-spacing:.04em}
.harvest:disabled {background:#e8ebdf;color:#69755e}
.note-action p {text-align:center;font-size:12px;line-height:1.6;color:#707a65;margin-top:7px}
.site-foot {display:flex;align-items:center;justify-content:space-between;margin:18px 1px 23px;color:#77816f;font-size:12px}
.site-foot>span,.site-foot button {display:inline-flex;align-items:center;gap:7px}
.site-foot button {font-size:13px;color:#68765f;padding:5px 0}
.slash {opacity:.65}
.sr-only {position:absolute;white-space:nowrap;height:1px;width:1px;overflow:hidden;clip-path:inset(50%)}
dialog {width:min(510px,calc(100% - 32px));border:1px solid var(--line);border-radius:15px;background:var(--paper);color:var(--ink);padding:0;box-shadow:0 24px 100px #17200c40;max-height:85dvh}
dialog::backdrop {background:#14211777;backdrop-filter:blur(3px)}
.dialog-inner {padding:26px}
.dialog-inner>header {display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding-bottom:17px;border-bottom:1px solid var(--line)}
.dialog-inner h2 {font:600 30px/1.35 var(--serif);margin-top:3px}
.close {border:1px solid var(--line);background:transparent}
.dlg-section {margin:17px 0 0}.dlg-section h3 {font-size:16px;font-weight:650;margin-bottom:5px}
.dlg-section p,.empty-copy {font-size:15px;line-height:1.85;color:#52604d}
.dlg-section a {color:#345c39;text-underline-offset:3px}
.empty-copy {padding:20px 0}
.record-head {display:flex;align-items:baseline;gap:9px;margin:20px 0;color:#58694f;font-size:14px}
.record-head strong {font:600 46px/1 var(--serif);color:#2a4930}
.record-row {display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding:11px 0;font-size:14px}
.record-row small {display:block;color:#707b66;font-size:12px;margin-top:3px}
.dialog-action {border:1px solid var(--line);border-radius:7px;background:#edf0e3;color:#344f33;padding:10px 14px;margin-top:15px;font-weight:550}
.scene-dialog {
  position:fixed;inset:0;width:100%;height:100%;height:100dvh;max-width:none;max-height:none;
  margin:0;padding:0;border:0;border-radius:0;overflow:hidden;background:#576244;
}
.scene-dialog .scene {width:100%;height:100%;min-height:0}
.scene-dialog .scene-top {top:max(17px,env(safe-area-inset-top))}
.scene-dialog .scene-bottom {bottom:max(17px,env(safe-area-inset-bottom))}
body.full-open {overflow:hidden}
@media(min-width:1500px){.scene {min-height:470px}}
@media(max-width:920px){
  .mast-inner,main {padding-inline:24px}.mast-inner {gap:40px}
  .desk {gap:12px;grid-template-columns:minmax(0,1.9fr) minmax(258px,1fr)}
  .note-content {padding:16px 15px 0}.note-action {padding:13px 15px}.note header {padding:15px}
  .scene-top,.scene-bottom {left:12px;right:12px}.scene-hint {font-size:12px}
}
@media(max-width:720px){
  .mast-inner,main {padding-inline:16px}.mast-inner {height:60px;gap:12px}
  .brand {gap:6px}.brand-icon {width:31px;height:31px}.brand-icon svg {width:28px;height:28px}
  .brand-word {font-size:19px}.brand-word small{font-size:7px;margin-top:2px}
  nav {margin-left:auto;gap:15px}.nav-item {font-size:14px;gap:4px}.nav-item>i {display:none}
  .guide {margin:0;padding:8px}.guide span {display:none}.guide i {font-size:18px}
  .intro {padding:24px 0 18px}.intro h1 {font-size:34px}
  .taxon {font-size:12px;gap:6px;margin-top:6px}.taxon em {font-size:15px}
  .place {font-size:12px;gap:4px}.place i {display:none}
  .desk {display:flex;flex-direction:column;gap:14px}
  .scene {height:clamp(310px,70vw,425px);min-height:0;flex:auto}
  .timeline {padding:15px 14px}.timeline-head h2,.note header h2 {font-size:16px}
  .timeline-head>span {font-size:12px}
  .stops {display:grid;grid-template-columns:repeat(6,minmax(0,1fr));height:auto;margin:0 -3px}
  .stops button {position:static;transform:none;min-height:44px;line-height:1.15;white-space:normal;padding:2px 0;border-radius:5px}
  .stops button[aria-pressed=true] {background:#e9eddd}
  .track-area {margin-inline:calc(100% / 12 - 2px)}
  .scene .icon-only,.view-tools button,.view-tools #normalView {min-width:44px;min-height:44px}
  .note-content {display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);column-gap:13px}
  .note-stage {grid-column:1}.note-content>p {grid-column:1;font-size:14px}
  .specimen {grid-column:2;grid-row:1/3;margin:0;min-height:120px}.facts {grid-column:1/-1;margin-top:10px}
  .facts>div {padding:6px 0}
  .note h3 {font-size:27px;margin:2px 0 5px}.site-foot {margin-top:10px}
}
@media(max-width:390px){
  .mast-inner,main {padding-inline:11px}nav {gap:10px}.mast-inner {gap:7px}.guide {padding:4px}
  .intro h1 {font-size:29px}.place {font-size:11px}.stops button {font-size:12px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after {animation-duration:.01ms!important;transition-duration:.01ms!important}}

.scene[data-season="冬"] .scene-photo {filter:saturate(.67) brightness(.93)}
.scene[data-season="秋"] .scene-photo {filter:saturate(.85) sepia(.12)}
