@font-face {
  font-family: "Cell Lab Serif";
  src: local("Songti SC"), local("STSong"), local("SimSun");
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f7f6f0;
  --ink: #192b25;
  --muted: #4d6056;
  --rule: #d7ddd1;
  --forest: #101f1b;
  --light: #f2f3e5;
  --soft: #bccabd;
  --aqua: #c7dcb5;
  --gold: #e8c78c;
  --serif: "Cell Lab Serif", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  --ease: cubic-bezier(.2,.75,.3,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 15px/1.7 system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; }
h1, h2, h3, p, figure, ul, ol { margin: 0; }
h1, h2, h3 { line-height: 1.24; }
a { color: inherit; text-decoration: none; }
button, input, output { font: inherit; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(1280px, calc(100% - 80px)); margin-inline: auto; }
.skip { position: fixed; top: 12px; left: 12px; transform: translateY(-160%); z-index: 10; padding: 7px 12px; background: var(--paper); color: var(--ink); }
.skip:focus { transform: none; }
.top { background: var(--paper); border-bottom: 1px solid var(--rule); }
.top-inner { min-height: 68px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 22px; }
.wordmark { display: inline-flex; align-items: center; gap: 8px; justify-self: start; white-space: nowrap; min-height: 44px; }
.wordmark b { font-size: 18px; letter-spacing: .075em; }
.wordmark > span:last-child { color: var(--muted); font-size: 13px; padding-left: 8px; border-left: 1px solid var(--rule); }
.mark { width: 22px; height: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; transform: rotate(-8deg); }
.mark i { background: #396550; border-radius: 70% 53% 65% 49%; }
.mark i:nth-child(2) { background: #65826b; transform: scale(.84); }
.mark i:nth-child(3) { background: #69896e; transform: scale(.72); }
.mark i:nth-child(4) { background: #223f33; }
.top nav { display: flex; align-items: center; gap: clamp(14px, 2.5vw, 36px); }
.top nav a, .lab-link { min-height: 44px; display: inline-flex; align-items: center; font-weight: 650; font-size: 13px; white-space: nowrap; }
.top nav a { color: var(--muted); }
.lab-link { justify-self: end; gap: 7px; }

.hero { background: var(--forest); color: var(--light); padding: 25px 0 32px; }
.hero-inner { display: grid; grid-template-columns: minmax(290px,.78fr) minmax(0,1.65fr); align-items: center; gap: 22px; }
.hero-copy { padding: 14px 0 30px; }
.overline { color: #496958; font-size: 12px; font-weight: 690; letter-spacing: .11em; line-height: 1.5; }
.hero .overline { color: var(--aqua); font: 600 11px/1.5 var(--mono); letter-spacing: .18em; }
.hero h1 { margin-top: 15px; font: 720 clamp(57px, 6.8vw, 100px)/1.06 var(--serif); letter-spacing: -.075em; white-space: nowrap; }
.deck { color: #e0e8d5; margin-top: 15px; font-size: clamp(20px,2.35vw,32px); line-height: 1.39; letter-spacing: -.035em; font-weight: 590; }
.intro { color: var(--soft); margin-top: 16px; max-width: 26em; line-height: 1.85; font-size: 14px; }
.view-controls { display: inline-flex; align-items: stretch; padding: 3px; gap: 3px; margin-top: 21px; border: 1px solid #4b6154; border-radius: 11px; }
.view-controls button { min-height: 44px; min-width: 67px; padding-inline: 11px; border-radius: 7px; color: var(--soft); border: 0; font-weight: 640; background: transparent; }
.view-controls button[aria-pressed="true"] { color: #132820; background: #d6dfc7; }
.spread { max-width: 295px; min-height: 41px; display: grid; grid-template-columns: auto minmax(0,1fr) 4ch; gap: 9px; align-items: center; color: var(--soft); font-size: 12px; margin-top: 8px; }
.spread input { width: 100%; accent-color: var(--gold); }
.spread output { font-family: var(--mono); text-align: right; }
.atlas { position: relative; min-width: 0; }
.plate-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 17px -9px; font: 11px/1.6 var(--mono); letter-spacing: .08em; color: var(--soft); }
.plate-head span:last-child { color: var(--gold); letter-spacing: .06em; }
.cell-plate { width: 100%; height: auto; display: block; overflow: hidden; background: radial-gradient(ellipse at 51% 46%, #243f31 0%, #152820 46%, transparent 75%); }
.crosshair { stroke: #9bb59e; stroke-opacity: .22; fill: none; }
.cell-part { transform-box: view-box; transform-origin: 410px 265px; transition: opacity .27s var(--ease), filter .20s var(--ease); }
.cell-part.is-highlighted { filter: drop-shadow(0 0 6px #dab67c77); }
.plate-pins { fill: #c9d9c2; font: 12px var(--mono); }
.plate-pins g path { fill: none; stroke: #92afa1; stroke-width: .9; }
.plate-pins g circle { fill: #e8c78c; }
.plate-pins .is-highlighted { fill: #ffe0a5; font-weight: 700; }
.plate-pins .is-highlighted path { stroke: #ffdc9b; stroke-width: 1.45; }
.plate-pins g { transition: opacity .18s var(--ease); }
.integration { opacity: 0; transition: opacity .24s var(--ease); pointer-events: none; }
[data-mode="integrate"] .integration { opacity: 1; }
[data-mode="integrate"] .plate-pins { opacity: .4; }
.atlas figcaption { margin: -6px 17px 0; font-size: 11px; line-height: 1.6; color: var(--soft); }
.anatomy-dock { border-top: 1px solid #466255; padding-top: 8px; margin-top: 22px; }
.part-index { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 4px; }
.part-index button { border: 0; border-bottom: 2px solid transparent; background: transparent; min-height: 48px; padding: 6px 7px; color: var(--soft); font-size: 13px; display: flex; align-items: center; gap: 7px; justify-content: center; }
.part-index button small { color: #96afa0; font: 11px var(--mono); }
.part-index button[aria-pressed="true"] { color: var(--light); border-color: var(--gold); background: #283d32; }
.part-index button[aria-pressed="true"] small { color: var(--gold); }
.part-detail { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 24px; margin-top: 14px; min-height: 77px; }
.part-detail h2 { color: var(--light); font-size: 18px; margin-bottom: 5px; }
.part-detail p { color: var(--soft); font-size: 13px; line-height: 1.65; }
.part-detail p strong { color: var(--gold); font-weight: 650; margin-right: 7px; }

.paper-section { padding-block: 65px; }
.section-intro { max-width: 740px; }
.paper-section h2, .value-section h2 { font: 700 clamp(31px,4.4vw,55px)/1.25 var(--serif); letter-spacing: -.035em; margin-top: 8px; }
.section-intro > p:last-child, .value-inner > div:first-child > p:not(.overline) { color: var(--muted); font-size: 16px; line-height: 1.8; margin-top: 12px; }
.concept-chain { list-style: none; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); padding: 0; margin-top: 30px; border-block: 1px solid var(--rule); }
.concept-chain li { padding: 19px 24px 19px 0; }
.concept-chain li + li { border-inline-start: 1px solid var(--rule); padding-inline-start: 24px; }
.concept-chain li span { color: #3e6652; font: 650 12px/1.5 var(--mono); }
.concept-chain h3 { font-size: 19px; margin-top: 6px; }
.concept-chain p { margin-top: 7px; color: var(--muted); font-size: 14px; }
.concept-note { margin-top: 17px; color: var(--muted); font-size: 13px; }
.concept-note a { white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }
.value-section { background: #e8ebe1; border-block: 1px solid var(--rule); padding-block: 48px; }
.value-inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(22px, 5vw, 64px); align-items: start; }
.lab-callout { border-inline-start: 1px solid #becbbc; padding-inline-start: 26px; }
.lab-callout h3 { font-size: 22px; margin-top: 8px; text-wrap: balance; }
.lab-callout p:not(.overline) { margin-top: 9px; color: var(--muted); font-size: 14px; }
.paper-button { display: inline-flex; align-items: center; gap: 11px; min-height: 44px; padding: 8px 13px; border-radius: 8px; background: #225442; color: white; margin-top: 15px; font-size: 13px; font-weight: 670; }
.resources { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 25px; margin-top: 26px; }
.resources h3 { padding-bottom: 11px; border-bottom: 1px solid #aabaaa; font-size: 18px; }
.resources ul { list-style: none; padding: 0; }
.resources li { padding: 12px 0 13px; border-bottom: 1px solid var(--rule); }
.resources a { display: grid; gap: 2px; align-content: center; min-height: 44px; }
.resources strong { font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.resources a span { font-size: 11px; color: #426650; }
.resources li p { font-size: 13px; color: var(--muted); line-height: 1.6; margin-top: 5px; }
.footer { border-top: 1px solid var(--rule); color: var(--muted); font-size: 13px; }
.footer .wrap { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; min-height: 62px; }
.footer a { padding: 10px 0; }
@media (hover: hover) {
  .top a:hover, .footer a:hover, .resources a:hover strong { text-decoration: underline; text-underline-offset: 4px; }
  .view-controls button:not([aria-pressed="true"]):hover, .part-index button:not([aria-pressed="true"]):hover { background: #21382d; color: var(--light); }
  .paper-button:hover { background: #143d2e; }
}
@media (max-width: 960px) {
  .wrap { width: calc(100% - 48px); }
  .part-index { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .part-index button { justify-content: flex-start; }
  .part-detail { min-height: 0; }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 32px); }
  .top-inner { grid-template-columns: 1fr auto; gap: 0 12px; padding-top: 4px; }
  .top nav { grid-row: 2; grid-column: 1 / -1; justify-content: space-between; border-top: 1px solid var(--rule); }
  .lab-link { grid-row: 1; grid-column: 2; }
  .hero { padding: 30px 0 23px; }
  .hero-inner { grid-template-columns: minmax(0,1fr); gap: 17px; }
  .hero-copy { padding: 0; }
  .hero h1 { font-size: clamp(50px, 13vw, 70px); margin-top: 10px; }
  .deck { margin-top: 10px; }
  .large-only { display: none; }
  .intro { margin-top: 10px; }
  .view-controls { margin-top: 15px; }
  .plate-head, .atlas figcaption { margin-inline: 7px; }
  .anatomy-dock { margin-top: 16px; }
  .part-index { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .part-index button { padding-inline: 4px; gap: 4px; font-size: 12px; }
  .part-detail { grid-template-columns: minmax(0,1fr); gap: 6px; margin-top: 12px; }
  .paper-section { padding-block: 39px; }
  .value-section { padding-block: 34px; }
  .concept-chain { grid-template-columns: minmax(0,1fr); margin-top: 23px; }
  .concept-chain li { padding: 13px 0; }
  .concept-chain li + li { border-inline-start: 0; border-top: 1px solid var(--rule); padding-inline-start: 0; }
  .value-inner, .resources { grid-template-columns: minmax(0,1fr); gap: 22px; }
  .lab-callout { border-inline-start: 0; padding-inline-start: 0; padding-top: 15px; border-top: 1px solid #becbbc; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cell-part, .plate-pins g, .integration { transition: none; }
}

.cell-part, .plate-pins [data-pin], #micro-plate [data-layer] { cursor: pointer; }
.plate-pins [data-pin] text { pointer-events: painted; }
.micro-jump { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; margin-left: 9px; color: var(--aqua); font-size: 13px; font-weight: 650; white-space: nowrap; }
.micro-jump:hover { text-decoration: underline; text-underline-offset: 4px; }
.micro-atlas { border-top: 1px solid #466255; margin-top: 17px; padding-top: 19px; padding-bottom: 9px; scroll-margin-block: 14px; }
.micro-heading { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; margin-bottom: 14px; }
.micro-heading h2 { font-size: 19px; }
.micro-heading p { font-size: 13px; color: var(--soft); }
.micro-layout { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 22px; align-items: start; }
.micro-figure { background: #172b23; border: 1px solid #405c4e; padding: 8px 14px 10px; border-radius: 11px; }
.micro-figure svg { display: block; width: 100%; max-height: 200px; }
.micro-figure figcaption { font-size: 11px; color: var(--soft); }
#micro-plate [data-layer] { stroke: #b1c7b0; fill: none; stroke-width: 1.8; opacity: .46; transition: opacity .16s, stroke .16s; }
#micro-plate [data-layer] .area { fill: #6b8e72; fill-opacity: .21; }
#micro-plate [data-layer].is-selected { stroke: #f2d59a; opacity: 1; }
#micro-plate [data-layer].is-selected .area { fill: #e4bc74; fill-opacity: .28; }
#micro-plate [data-layer]:hover { opacity: 1; }
.micro-options { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.micro-options button { border-radius: 6px; padding: 5px 9px; min-height: 44px; background: #13251d; border: 1px solid #4e6758; color: var(--soft); font-size: 13px; }
.micro-options button[aria-pressed="true"] { border-color: var(--gold); background: #3a3929; color: #f5dca7; }
.micro-detail h3 { font-size: 18px; }
.micro-detail p { color: var(--soft); font-size: 13px; margin: 6px 0 0; line-height: 1.7; }
.micro-detail .micro-english { color: var(--gold); margin-top: 2px; font-size: 12px; }
.micro-detail p strong { color: var(--gold); margin-inline-end: 7px; }
.micro-source { display: inline-flex; align-items: center; min-height: 38px; text-decoration: underline; text-underline-offset: 4px; color: var(--aqua); font-size: 12px; margin-top: 3px; }
@media (max-width: 680px) {
  .micro-layout { grid-template-columns: minmax(0,1fr); gap: 13px; }
  .micro-figure svg { max-height: 160px; }
}
@media (prefers-reduced-motion: reduce) { #micro-plate [data-layer] { transition: none; } }

.exosome-section { border-top: 1px solid var(--rule); }
#exosome-jump { margin-inline-start: 12px; }
