/* ==========================================================================
   Jiang lab · Shenzhen University
   College of Life Sciences and Oceanography
   ========================================================================== */

:root {
  --bg:        #FAF6F1;
  --white:     #FFFFFF;
  --ink:       #17110F;
  --body:      #6E625D;
  --muted:     #8A7C74;
  --faint:     #A89A92;
  --red:       #A81C1C;
  --oxblood:   #6B1013;
  --tint:      #F8EBE6;
  --line:      #D9CBC2;
  --line-soft: #EFE6DD;

  --serif: "Newsreader", "Songti SC", "Times New Roman", Georgia, serif;
  --sans:  "Inter", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --cn:    "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;

  --pad: 120px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -.014em;
  line-height: 1.12;
}

::selection { background: var(--red); color: #fff; }

/* ---------- layout ---------- */

.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--pad);
}

.section--tight { padding: 76px 0; }
.section--themes { padding: 0; }
.section--pub { padding: 0 0 96px; }
.section--res { padding: 0 0 88px; }
.section--bare { padding: 0; }
.rule-top { border-top: 1px solid var(--line); }

/* ---------- type utilities ---------- */

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
}

.cn {
  font-family: var(--cn);
  font-size: 12.5px;
  line-height: 1.95;
  color: var(--ink);
  font-weight: 300;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: 16px 28px;
  border: 1px solid var(--red);
  color: var(--red);
  background: transparent;
  cursor: pointer;
  transition: background .28s var(--ease), color .28s var(--ease), border-color .28s var(--ease);
}
.btn:hover { background: var(--red); color: #fff; }

.btn--solid { background: var(--red); color: #fff; border-color: var(--red); }
.btn--solid:hover { background: var(--oxblood); border-color: var(--oxblood); }

.btn--ink { border-color: var(--ink); color: var(--ink); }
.btn--ink:hover { background: var(--ink); color: var(--bg); }

.btn--light { border-color: rgba(255,255,255,.42); color: #fff; }
.btn--light:hover { background: #fff; color: var(--oxblood); border-color: #fff; }

/* ---------- utility bar ---------- */

.utility {
  background: var(--oxblood);
  color: #EFCFC9;
  font-size: 10.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.utility .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 38px;
  padding-block: 7px;
}
.utility__links { display: flex; gap: 24px; flex-shrink: 0; }
.utility a { color: #EFCFC9; transition: color .2s var(--ease); }
.utility a:hover { color: #fff; }
/* address stays lowercase: the utility bar is uppercased, e-mail should not be */
.utility a[href^="mailto:"],
.utility__mail { text-transform: none; letter-spacing: .04em; font-size: 14px; }
/* college name reads in normal case: wide tracking is tuned for caps, so relax it here */
.utility__org { text-transform: none; letter-spacing: .04em; font-size: 13px; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--bg);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 44px;
  height: 98px;
}

.wordmark { display: block; flex-shrink: 0; }
.wordmark__name {
  display: block;
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--ink);
  line-height: 1;
}
.wordmark__sub {
  display: block;
  margin-top: 9px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .19em;
  color: var(--ink);
  line-height: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}
.nav a {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: .005em;
  transition: color .2s var(--ease);
  white-space: nowrap;
}
.nav a:hover { color: var(--red); }
.nav a.is-active { color: var(--red); font-weight: 600; }

.header__cta { flex-shrink: 0; }
.header__cta .btn { padding: 13px 22px; font-size: 13px; letter-spacing: .04em; text-transform: none; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  background: none;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute;
  left: 50%; top: 50%;
  width: 18px; height: 1px;
  background: var(--ink);
  content: "";
  transform: translate(-50%, -50%);
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle span::before { transform: translate(-50%, -7px); }
.nav-toggle span::after  { transform: translate(-50%, 6px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translate(-50%, 0) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translate(-50%, 0) rotate(-45deg); }

/* ---------- welcome band (home) ---------- */

.welcome { padding: 60px 0 96px; }
.welcome__title {
  font-size: clamp(33px, 3.55vw, 50px);
  line-height: 1.05;
  letter-spacing: -.024em;
}
.welcome__grid {
  display: grid;
  grid-template-columns: minmax(0, 640px) minmax(0, 1fr);
  gap: 72px;
  align-items: stretch;
  margin-top: 36px;
}
/* the plate fills the figure so the photo's top and bottom edges line up with the text block */
.welcome .figure { position: relative; }
.welcome .plate { position: absolute; inset: 0; }
.welcome__text {
  font-size: 15.5px;
  line-height: 1.82;
}
.welcome__text .nowrap { white-space: nowrap; }
.welcome__title .nowrap { white-space: nowrap; }
.welcome .reveal { animation: rise .8s var(--ease) both; }
.welcome .reveal:nth-child(2) { animation-delay: .1s; }

/* ---------- hero (home) ---------- */

.hero { padding: 82px 0 96px; }
.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 584px;
  gap: 92px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(40px, 4.35vw, 62px);
  line-height: 1.04;
  letter-spacing: -.024em;
  margin: 26px 0 0;
}
.hero__sub {
  margin-top: 28px;
  font-size: 16.5px;
  line-height: 1.72;
  max-width: 46ch;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero__note {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero__note::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}

/* ---------- figures & plates ---------- */

.figure { position: relative; }

.plate {
  position: relative;
  overflow: hidden;
  background: var(--tint);
  border: 1px solid var(--line-soft);
}
.plate--dark {
  background:
    radial-gradient(120% 120% at 15% 0%, #2A1517 0%, #17110F 62%),
    #17110F;
  border-color: #2A1F1C;
}
.plate--dark::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(250,246,241,.055) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(0deg, rgba(250,246,241,.055) 0 1px, transparent 1px 56px);
  pointer-events: none;
}
/* hand-drawn illustration plate (hero) — light paper ground */
.plate--paper {
  background: #F4EBDE;
  border-color: #E3D4C2;
}

.plate__label {
  position: absolute;
  left: 22px; bottom: 20px;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(250,246,241,.62);
  z-index: 2;
}
.plate--light .plate__label { color: var(--ink); }
.plate svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.plate img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

.hero .figure .plate { aspect-ratio: 584 / 442; }


.figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  margin-top: 14px;
  font-size: 11px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink);
}
/* hero legend reads in sentence case, not small caps */
.hero .figcaption { text-transform: none; letter-spacing: .02em; }

/* ---------- research cards ---------- */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 46px; }

.card { border-top: 2px solid var(--ink); padding-top: 26px; }
.card__index {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--red);
}
.card__tag {
  margin-top: 14px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
}
.card h3 { font-size: 26px; margin-top: 8px; }
.card p { margin-top: 16px; font-size: 14.5px; line-height: 1.76; }
.card .cn { margin-top: 14px; }
.card__threads {
  margin-top: 22px;
  padding-top: 15px;
  border-top: 1px solid var(--line-soft);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.9;
}

/* ---------- oxblood band ---------- */

.band {
  background: var(--oxblood);
  color: #EAD3CE;
  padding: 82px 0;
}
.band .container { display: grid; grid-template-columns: minmax(0,1fr) 260px; gap: 80px; align-items: center; }
.band .eyebrow { color: #E9A79D; }
.band h2 {
  color: #fff;
  font-size: clamp(26px, 2.6vw, 38px);
  margin-top: 22px;
  line-height: 1.18;
  letter-spacing: -.018em;
  max-width: 26ch;
}
.band h2 a { transition: opacity .2s var(--ease); }
.band h2 a:hover { opacity: .78; }
.band__authors { margin-top: 20px; font-size: 13.5px; color: #DCAFA8; }
.band__meta {
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #C99A93;
}
.band__actions { margin-top: 34px; }
.band__count { text-align: right; border-left: 1px solid rgba(255,255,255,.16); padding-left: 40px; }
.band__count .num { font-family: var(--serif); font-size: 68px; line-height: .9; color: #fff; }
.band__count .lbl {
  margin-top: 14px;
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #C99A93;
}
.band__count .cn { margin-top: 10px; color: #B98C86; font-size: 12px; }

/* hire card */
.hire {
  background: var(--tint);
  border: 1px solid #EFD9D1;
  padding: 38px 34px;
  align-self: start;
  position: sticky;
  top: 130px;
}
.hire h3 { font-size: 26px; margin-top: 18px; }
.hire p { margin-top: 14px; font-size: 14.5px; }
.hire .btn { margin-top: 26px; }

/* ---------- fun strip ---------- */

.fun-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.fun-grid .plate { aspect-ratio: 3 / 4; }
.fun-item figcaption { margin-top: 12px; font-size: 11px; letter-spacing: .05em; color: var(--ink); }

/* one wide photo, caption underneath */
.fun-body { padding: 22px 0 0; }
.fun-shot { margin: 0 auto; max-width: 360px; }
.fun-shot .plate { aspect-ratio: 1320 / 868; }
.fun-shot .figcaption { text-transform: none; letter-spacing: .015em; font-size: 12px; }
.fun-shot + .fun-shot { margin-top: 68px; }
.fun-shot--tall .plate { aspect-ratio: 900 / 1200; }
.fun-shot--park .plate { aspect-ratio: 1080 / 810; }

/* a page whose body is empty still needs air above the footer */
.main--quiet { padding-bottom: 96px; }

/* ---------- page hero (inner pages) ---------- */

.page-hero { padding: 30px 0 28px; }
.crumb {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
}
.crumb a:hover { color: var(--red); }
/* inner pages keep only a slim breadcrumb strip — no title, lede or motif */
.page-hero--slim { padding: 30px 0 28px; }

/* ---------- research themes ---------- */

.theme {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 516px;
  column-gap: 96px;
  row-gap: 0;
  /* text column is stretched to the height of the image and its blocks spread
     between the two edges, so the heading and last line sit flush with the photo */
  align-items: stretch;
  padding: 92px 0;
}
.theme__text { display: flex; flex-direction: column; }
/* the heading runs across the top of both columns; the text starts on the figure's top edge */
.theme__title {
  grid-column: 1 / -1;
  margin-bottom: 34px;
  /* keep CJK glyphs in a serif face so a mixed title stays one voice */
  font-family: "Newsreader", "Songti SC", "Noto Serif SC", "Source Han Serif SC", SimSun, "宋体", serif;
}
.theme__text p:first-of-type { margin-top: 0; }
/* with the figure capped, the text block starts on the image's top edge and ends
   just above its bottom, so the two columns read as one aligned pair */
#apoe4 .theme__text { justify-content: flex-start; }
.theme--flip .theme__text { order: 2; }
.theme--flip .theme__figure { order: 1; }
/* caption hangs outside the figure box so the photo edge, not the caption, sets the alignment */
.theme__figure { position: relative; }
.theme__figure .figcaption { position: absolute; top: 100%; left: 0; right: 0; }

.theme h2 { font-size: 38px; }
.theme__cn-title {
  margin-top: 12px;
  font-family: var(--cn);
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--ink);
}
.theme p { margin-top: 24px; font-size: 15.5px; }
.theme .cn { margin-top: 20px; padding-left: 18px; border-left: 2px solid var(--line); }

.theme__figure .plate { aspect-ratio: 516 / 372; }
/* theme 01 carries the lab's own micrograph: keep its full frame, no crop, and read the caption in sentence case */
.theme__figure--photo .plate { aspect-ratio: 1200 / 966; background: var(--tint); }
.theme__figure--photo .figcaption { position: static; margin-top: 14px; text-transform: none; letter-spacing: .03em; font-size: 12px; }
/* theme 02 carries a two-panel PVD micrograph: its own frame ratio, uncropped */
.theme__figure--pvd .plate { aspect-ratio: 1400 / 1472; }
/* the two-panel frame is portrait and reads heavy at full column width, so cap it
   and keep the pair flush with the heading edges: image left, text right */
#apoe4 .theme__figure--pvd { max-width: 460px; }

/* ---------- people ---------- */

.pi { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; align-items: start; padding: 92px 0 100px; }
.pi__photo { position: relative; }
.pi__photo img, .pi__photo .plate { width: 240px; height: 282px; object-fit: cover; border-radius: 2px; }
.pi__photo figcaption { margin-top: 12px; font-size: 11.5px; letter-spacing: .02em; color: var(--ink); }
.pi h2 { font-size: 28px; }
.pi__label {
  display: inline-block;
  margin-left: 16px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: .04em;
  color: var(--red);
  vertical-align: baseline;
}
.pi p { margin-top: 22px; font-size: 15.5px; max-width: 60ch; }
.pi p strong { font-weight: 600; color: var(--ink); }
.pi .cn { margin-top: 26px; max-width: 60ch; }
.pi__orcid {
  margin-top: 26px;
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--ink);
}
.nowrap { white-space: nowrap; }
.pi__orcid span {
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--red);
  margin-right: 10px;
}
.pi__orcid a { color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: color .2s var(--ease), border-color .2s var(--ease); }
.pi__orcid a:hover { color: var(--red); border-color: var(--red); }

.members { padding: 0 0 126px; }
/* group label over a row of members, in the same serif voice as the page headings */
.members__title {
  margin: 0 0 28px;
  padding-top: 0;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -.006em;
  line-height: 1.2;
  color: var(--ink);
}
.members__grid + .members__title { margin-top: 76px; }
.members__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 60px; margin-top: 0; }
.member { padding-top: 0; }
/* member names share one size with the PI name in the card above */
.member__en {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -.014em;
  line-height: 1.12;
  color: var(--ink);
}
.member__role {
  margin-top: 12px;
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: .01em;
  color: var(--ink);
}
/* ---------- publications ---------- */

.pub-title {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 400;
  letter-spacing: -.012em;
  line-height: 1.1;
  color: var(--ink);
  padding: 6px 0 0;
}

.pub-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 26px 0;
}
.pub-tab {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .06em;
  padding: 9px 16px;
  border: 1px solid transparent;
  background: none;
  color: var(--ink);
  cursor: pointer;
  transition: all .22s var(--ease);
}
.pub-tab:hover { color: var(--ink); border-color: var(--line); }
.pub-tab.is-active { color: #fff; background: var(--red); border-color: var(--red); }
.pub-sort {
  margin-left: auto;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
}

.pub-group { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 40px; padding: 44px 0; }
.pub-group[hidden] { display: none; }
.pub-year h2 { font-size: 30px; letter-spacing: .01em; }
.pub-year span {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  letter-spacing: .01em;
  color: var(--ink);
}

.pub {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 56px;
  gap: 22px;
  padding: 22px 0;
  align-items: start;
}
.pub:first-child { padding-top: 0; }
.pub:last-child { padding-bottom: 0; }
.pub__index { font-family: var(--serif); font-size: 12px; color: var(--ink); padding-top: 6px; }
.pub h3 { font-size: 21px; line-height: 1.34; }
.pub h3 a { transition: color .2s var(--ease); }
.pub h3 a:hover { color: var(--red); }
.pub__authors { margin-top: 12px; font-size: 13.5px; color: var(--ink); }
.pub__authors strong {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-decoration-color: var(--ink);
}
.pub__meta { margin-top: 6px; font-size: 12px; letter-spacing: .03em; color: var(--ink); }
.pub__meta .journal { color: var(--red); letter-spacing: .04em; }
.pub__doi {
  justify-self: end;
  margin-top: 4px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--red);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease);
}
.pub__doi:hover { border-color: var(--red); }

/* marker dividing work done at SZU from work published before it */
.pub-note { padding: 0; }
.pub-note + .pub-group { padding-top: 26px; }
.pub-note__label {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: .01em;
  color: var(--red);
}
.pub-note__sub {
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .02em;
  color: var(--ink);
}
/* a marker that sits between two papers inside one group */
.pub-inline-note {
  padding: 6px 0 12px;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .02em;
  color: var(--ink);
}


/* ---------- news page ---------- */

.news-body { padding: 72px 0 110px; max-width: 860px; }
.news-year {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--ink);
  padding: 0 0 16px;
  letter-spacing: .02em;
}
.news-item {
  display: grid;
  grid-template-columns: 88px minmax(0,1fr);
  gap: 34px;
  padding: 34px 0;
}
.news-item + .news-item { border-top: 1px solid var(--line-soft); }
.news-item__date { font-size: 11px; letter-spacing: .1em; color: var(--ink); padding-top: 5px; }
.news-item__cat { font-size: 9.5px; font-weight: 600; letter-spacing: .16em; color: var(--red); }
.news-item h3 { font-size: 23px; margin-top: 10px; line-height: 1.3; }
.news-item p { margin-top: 10px; font-size: 14.5px; }

/* ---------- resource: university, college & worm resources ---------- */

.res-group { padding-top: 84px; }
.res-group + .res-group { padding-top: 76px; }
.res-group__title {
  margin: 0 0 36px;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--red);
}

.site-links { display: grid; gap: 48px; max-width: 760px; }
.site-link { display: block; }
.site-link__name {
  display: block;
  font-family: var(--serif);
  font-size: clamp(26px, 2.7vw, 36px);
  line-height: 1.18;
  letter-spacing: -.014em;
  color: var(--ink);
  transition: color .25s var(--ease);
}
.site-link__meta {
  display: block;
  margin-top: 10px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--ink);
  transition: color .25s var(--ease);
}
.site-link:hover .site-link__name { color: var(--red); }
.site-link:hover .site-link__meta { color: var(--ink); }

.site-links--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 56px; max-width: 880px; }
.site-links--compact .site-link__name { font-size: 23px; line-height: 1.24; }
.site-links--compact .site-link__meta { margin-top: 7px; font-size: 10.5px; }


/* ---------- contact ---------- */

.contact-body { display: grid; grid-template-columns: minmax(0, 1fr) clamp(288px, 24vw, 344px); gap: 80px; padding: 80px 0 96px; align-items: start; }
.contact-address p.line { font-size: 14.5px; line-height: 1.85; color: var(--ink); }
.contact-address .cn { margin-top: 16px; }
.contact-divider { margin: 30px 0; }
.contact-row { display: grid; grid-template-columns: 74px 1fr; gap: 20px; padding: 12px 0; align-items: baseline; }
.contact-row dt { font-size: 11px; font-weight: 600; letter-spacing: .1em; color: var(--ink); }
.contact-row dd { margin: 0; font-size: 14px; color: var(--ink); }

/* contact page reads in normal case — caps tracking stays on the utility bar and footer */
.contact-body .eyebrow,
.coords .eyebrow {
  text-transform: none;
  letter-spacing: .1em;
  font-size: 11.5px;
}
.map .figcaption {
  text-transform: none;
  letter-spacing: .06em;
  font-size: 12px;
}

.map { position: relative; width: 100%; }
.map .plate { width: 100%; aspect-ratio: 1168 / 778; }
/* older engines without aspect-ratio: hold the same 1168:778 box with padding */
@supports not (aspect-ratio: 1 / 1) {
  .map .plate { height: 0; padding-bottom: 66.61%; }
}
.map__link {
  position: absolute;
  right: 20px; bottom: 20px;
  background: rgba(23,17,15,.86);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  padding: 11px 16px;
  z-index: 3;
  transition: background .22s var(--ease);
}
.map__link:hover { background: var(--red); }

.coords { background: var(--oxblood); color: #EAD3CE; padding: 56px 0; }
.coords .container { display: grid; grid-template-columns: 348px minmax(0,1fr) minmax(0,1fr); gap: 56px; align-items: center; }
.coords .eyebrow { color: #E9A79D; }
.coords__value { margin-top: 16px; font-family: var(--serif); font-size: 25px; color: #fff; letter-spacing: .03em; white-space: nowrap; }
.coords p { font-size: 12.5px; line-height: 1.85; color: #D9A9A2; }
.coords p strong { color: #fff; font-weight: 500; }

/* ---------- fun page ---------- */


/* ---------- contact inline bits ---------- */

.contact-body .line { font-size: 14.5px; line-height: 1.9; color: var(--ink); margin-top: 22px; }
.contact-body .cn { margin-top: 18px; }
.contact-body dl { margin: 0; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink);
  color: #B3A49E;
  padding: 90px 0 0;
  overflow: hidden;
  margin-top: 0;
}
.site-footer a { color: #B3A49E; transition: color .2s var(--ease); }
.site-footer a:hover { color: #fff; }

.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 64px; }
.footer-brand__name {
  font-family: var(--serif);
  font-size: 27px;
  color: #fff;
  letter-spacing: .07em;
  line-height: 1;
}
.footer-brand__cn {
  margin-top: 10px;
  font-family: var(--cn);
  font-size: 12px;
  letter-spacing: .16em;
  color: #8C7D77;
}
.footer-brand__addr { margin-top: 26px; font-size: 12.5px; line-height: 1.95; white-space: pre-line; }
.footer-brand__mail { display: inline-block; margin-top: 16px; font-size: 13.5px; color: #DDC9C3; }
.footer-brand__mail:hover { text-decoration: underline; }

.footer-col h4 {
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #7C6E68;
  margin-bottom: 22px;
}
.footer-col li { margin-bottom: 12px; font-size: 14px; }

.footer-watermark {
  margin-top: 74px;
  font-family: var(--serif);
  font-size: clamp(40px, 7.2vw, 104px);
  line-height: .82;
  letter-spacing: -.03em;
  color: #2C211E;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}
.footer-tagline {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 20px;
  padding-bottom: 42px;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #6B5C56;
}
/* 版权行：版本号、访问次数在上，版权在下，统一左对齐 */
.footer-bar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 24px 0 26px;
  font-size: 11.5px;
  letter-spacing: .1em;
  color: #6B5C56;
}
.footer-copy { letter-spacing: .08em; }

/* 版本号 + 访问计数：两行堆叠，位于版权上方 */
.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}
.footer-version {
  font-size: 12px;
  letter-spacing: .1em;
  color: #9A8B84;
  white-space: nowrap;
}
.footer-version[hidden] { display: none; }

/* 访问计数：数字等宽避免逐位跳动 */
.footer-visits {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  font-size: 12px;
  letter-spacing: .1em;
  color: #9A8B84;
  white-space: nowrap;
}
.footer-visits b {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: .08em;
  color: #E4D5CF;
}
.footer-visits[hidden] { display: none; }

/* 备案信息：法律要求展示，按官方规范排版（编号为文字、可点击、图标 16px） */
/* 备案信息：公安备案在前、ICP 在后，同一行展示（按官方规范的 20px 行高 + 图标左置） */
.footer-record {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 22px;
  padding: 0 0 26px;
  margin-top: -4px;
  font-size: 12px;
  letter-spacing: .04em;
  color: #9A8B84;
}
.footer-record a {
  display: inline-flex;
  align-items: center;
  height: 20px;
  line-height: 20px;
  color: #9A8B84;
  white-space: nowrap;
  text-decoration: none;
  transition: color .2s var(--ease);
}
.footer-record a:hover { color: #E4D5CF; }
.footer-record img {
  width: auto;
  height: 16px;
  margin-right: 5px;
  vertical-align: middle;
}
/* 窄屏仍保持同行：缩小字号与间距 */
@media (max-width: 560px) {
  .footer-record { gap: 0 14px; font-size: 11px; letter-spacing: 0; }
  .footer-record img { height: 14px; margin-right: 4px; }
}
@media (max-width: 400px) {
  .footer-record { gap: 0 10px; font-size: 10.5px; }
  .footer-record img { height: 12px; margin-right: 3px; }
}

/* ---------- entrance ---------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.hero .reveal { animation: rise .8s var(--ease) both; }
.hero .reveal:nth-child(2) { animation-delay: .12s; }

@media (prefers-reduced-motion: reduce) {
  .hero .reveal, .welcome .reveal { animation: none; }
  html { scroll-behavior: auto; }
}


/* ---------- responsive ---------- */

@media (max-width: 1280px) {
  :root { --pad: 64px; }
  .hero .container { grid-template-columns: minmax(0,1fr) 480px; gap: 64px; }
  .welcome__grid { grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 56px; }
  .theme { grid-template-columns: minmax(0,1fr) 440px; gap: 64px; }
  .pi { grid-template-columns: 220px minmax(0,1fr); gap: 48px; }
  .pi__photo img, .pi__photo .plate { width: 220px; height: 258px; }
  .contact-body { grid-template-columns: minmax(0,1fr) clamp(264px, 24vw, 320px); gap: 64px; }
}

/* narrower desktops: keep the nav on one line with the CTA still visible */
@media (max-width: 1160px) {
  .site-header .container { gap: 26px; }
  .nav { gap: 18px; }
  .nav a { font-size: 15px; }
  .header__cta .btn { padding: 12px 16px; font-size: 12px; letter-spacing: .03em; text-transform: none; }
}

@media (max-width: 1024px) {
  .site-header .container { height: 78px; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; width: 100%; font-size: 16px; border-bottom: 1px solid var(--line-soft); }
  .nav-toggle { display: block; }
  .site-header .container { position: relative; }
  .header__cta { margin-right: 12px; }

  .hero { padding: 56px 0 64px; }
  .welcome { padding: 48px 0 72px; }
  .welcome__grid { grid-template-columns: 1fr; gap: 32px; }
  .welcome .figure { aspect-ratio: 16 / 9; }
  .hero .container { grid-template-columns: 1fr; gap: 48px; }
  .hero .figure { max-width: 560px; }

  .section { padding: 72px 0; }
  .cards { grid-template-columns: 1fr; gap: 40px; }
  .band .container { grid-template-columns: 1fr; gap: 44px; }
  .band__count { text-align: left; border-left: 0; padding-left: 0; border-top: 1px solid rgba(255,255,255,.16); padding-top: 30px; display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap; }
  .hire { position: static; }
  .fun-grid { grid-template-columns: repeat(2, 1fr); }
  .theme { grid-template-columns: 1fr; gap: 44px; padding: 64px 0; }
  /* stacked layout: nothing to sit beside, so let the figure use the full width */
  #apoe4 .theme__figure--pvd { max-width: none; }
  /* stacked layout: the row gap already separates the title from the block below */
  .theme__title { margin-bottom: 0; }
  /* stacked layout: no image edge to hold, so give the heading a normal gap below it */
  .theme__text p:first-of-type { margin-top: 24px; }
  .news-body { padding: 52px 0 80px; }
  .news-item { grid-template-columns: 1fr; gap: 10px; }
  .theme--flip .theme__text { order: 1; }
  .theme--flip .theme__figure { order: 2; }
  .tool:nth-child(3n) { border-right: 1px solid var(--line-soft); }
  .tool:nth-child(2n) { border-right: 0; padding-right: 0; }
  .pi { grid-template-columns: 1fr; gap: 40px; padding: 64px 0 72px; }
  .pi__photo img, .pi__photo .plate { width: 100%; max-width: 240px; height: auto; aspect-ratio: 240/282; }
  .members__grid { grid-template-columns: 1fr; gap: 36px; }
  .members { padding-bottom: 80px; }
  .pub-group { grid-template-columns: 1fr; gap: 18px; }
  .pub { grid-template-columns: 28px minmax(0,1fr); }
  .pub__doi { grid-column: 2; justify-self: start; margin-top: 8px; }
  .contact-body { grid-template-columns: 1fr; gap: 48px; padding: 56px 0 64px; }
  .coords .container { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 48px 40px; }
  .footer-bar { flex-direction: column; align-items: flex-start; gap: 14px; }
}

@media (max-width: 720px) {
  :root { --pad: 24px; }
  body { font-size: 15px; }
  .utility .container { height: auto; padding: 10px 24px; flex-direction: column; align-items: flex-start; gap: 4px; font-size: 9.5px; }
  .utility__org { font-size: 11px; letter-spacing: .02em; display: block; width: 100%; white-space: normal; }
  .utility__mail { font-size: 12.5px; }
  .utility__links { gap: 16px; }
  .site-header .container { height: 68px; }
  .wordmark__name { font-size: 17px; }
  .wordmark__sub { font-size: 8px; letter-spacing: .15em; }
  .header__cta { display: none; }
  .hero h1 { font-size: 38px; }
  .welcome { padding: 38px 0 64px; }
  .welcome__title { font-size: 30px; }
  .welcome__grid { gap: 24px; margin-top: 26px; }
  .welcome .figure { aspect-ratio: 4 / 3; }
  .hero__actions .btn { flex: 1 1 auto; }
  .fun-grid { grid-template-columns: 44% 44%; justify-content: space-between; }
  .fun-shot .figcaption { font-size: 11.5px; letter-spacing: .01em; }
  .page-hero { padding: 24px 0 22px; }
  .theme h2 { font-size: 30px; }
  .tool { padding: 26px 0 !important; border-right: 0; }
  .pi h2,
  .member__en { font-size: 26px; }
  .pub h3 { font-size: 18px; }
  .contact-row { grid-template-columns: 1fr; gap: 4px; }
  .site-links--compact { grid-template-columns: 1fr; gap: 30px; max-width: none; }
  .site-links--compact .site-link__name { font-size: 21px; }
  .res-group + .res-group { padding-top: 60px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .band { padding: 56px 0; }
}
