/* ============================================================
   Main stylesheet — Huang Lab website
   ============================================================ */

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
svg { display: block; }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: 1.28;
  color: var(--navy-900);
  font-weight: 700;
}

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
li { margin-bottom: 0.35em; }

a { color: var(--teal-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 a, h2 a, h3 a, h4 a, .card a, .btn, .paper a { text-decoration: none; }

:focus-visible {
  outline: 3px solid var(--teal-400);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  background: var(--navy-900);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 6px 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

.container { width: min(1160px, 100% - 48px); margin-inline: auto; }

.muted { color: var(--ink-soft); }

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease),
    backdrop-filter 0.3s var(--ease);
  background: rgba(10, 26, 47, 0.55);
}
.site-header.scrolled {
  background: rgba(10, 26, 47, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 22px rgba(8, 20, 38, 0.22);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.brand:hover { color: #fff; text-decoration: none; }

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: none;
}
.brand-mark svg { width: 100%; height: 100%; }

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav a {
  color: rgba(255, 255, 255, 0.84);
  padding: 8px 13px;
  border-radius: 6px;
  font-size: 15px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.09); }
.nav a.active { color: #fff; background: rgba(255, 255, 255, 0.14); }

.lang-toggle {
  margin-left: 10px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.7);
}

/* Hamburger */
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  place-items: center;
  gap: 5px;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons / chips ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease),
    background 0.22s var(--ease), border-color 0.22s var(--ease);
}
.btn-solid {
  background: linear-gradient(135deg, var(--teal-500), var(--teal-400));
  color: #04332c;
}
.btn-solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(20, 184, 166, 0.38);
}
.btn-ghost {
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.75);
  transform: translateY(-2px);
  color: #fff;
}
.btn-on-light {
  background: var(--navy-900);
  color: #fff;
}
.btn-on-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(12, 33, 56, 0.3);
  color: #fff;
}

.chip {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 13.5px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.92);
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 88% -12%, rgba(34, 211, 238, 0.17), transparent 62%),
    radial-gradient(900px 480px at -12% 112%, rgba(20, 184, 166, 0.15), transparent 58%),
    linear-gradient(160deg, #0a1c33 0%, #0c2138 52%, #12365f 100%);
  padding: calc(var(--nav-h) + 84px) 0 108px;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 840px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: var(--teal-400);
  margin-bottom: 18px;
}
.hero-eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--teal-400), var(--cyan-400));
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5.4vw, 3.6rem);
  letter-spacing: 0.5px;
  margin-bottom: 0.3em;
}

/* 英文标题较长，桌面/平板下压缩字号使其保持单行 */
[data-lang="en"] .hero h1 {
  font-size: clamp(1.7rem, 3.3vw, 2.45rem);
  letter-spacing: 0.1px;
}

.hero-sub {
  color: var(--on-dark);
  font-size: clamp(1.02rem, 2vw, 1.22rem);
  max-width: 660px;
  line-height: 1.75;
  margin-bottom: 0;
}

.hero-chips { display: flex; flex-wrap: wrap; gap: 9px; margin: 26px 0 32px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 42px;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.72);
}
.hero-meta a { color: rgba(255, 255, 255, 0.9); }
.hero-meta a:hover { color: var(--teal-400); }
.hero-meta .meta-item { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { flex: none; }

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 84px;
  color: var(--bg);
}

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(760px 340px at 90% -20%, rgba(34, 211, 238, 0.16), transparent 60%),
    linear-gradient(160deg, #0a1c33 0%, #12365f 100%);
  padding: calc(var(--nav-h) + 56px) 0 62px;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1.4px);
  background-size: 26px 26px;
  opacity: 0.4;
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4.2vw, 2.8rem); margin-bottom: 0.25em; }
.page-hero .crumb { color: rgba(255, 255, 255, 0.66); font-size: 14.5px; }
.page-hero .crumb a { color: rgba(255, 255, 255, 0.85); }
.page-hero .crumb a:hover { color: var(--teal-400); }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section--white { background: var(--surface); }
.section--tight { padding: 56px 0; }

.sec-head { max-width: 740px; margin-bottom: 46px; }
.sec-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: 10px;
}
.sec-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.sec-head p { color: var(--ink-soft); margin-bottom: 0; }

.sec-more { margin-top: 30px; }
.link-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--teal-600);
}
.link-more:hover { color: var(--navy-700); }

/* ---------- Research cards (preview) ---------- */
.res-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.res-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
}
.res-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--teal-500), var(--cyan-400));
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.res-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(20, 184, 166, 0.5);
}
.res-card:hover::before { opacity: 1; }

.res-icon {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--teal-600);
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.13), rgba(34, 211, 238, 0.13));
  margin-bottom: 18px;
}
.res-card h3 { font-size: 1.14rem; margin-bottom: 10px; }
.res-card p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 16px; }
.res-more { font-size: 0.9rem; font-weight: 600; color: var(--teal-600); }
.res-card:hover .res-more { color: var(--navy-700); }

/* ---------- Research detail blocks ---------- */
.res-block {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 26px 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 32px;
  margin-bottom: 22px;
  scroll-margin-top: calc(var(--nav-h) + 16px);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.res-block:hover { border-color: rgba(20, 184, 166, 0.5); box-shadow: var(--shadow-sm); }
.res-block .res-icon {
  width: 96px;
  height: 96px;
  border-radius: 10px;
  justify-self: center;
  align-self: center;
  margin-bottom: 0;
}
.res-block h3 { font-size: 1.38rem; margin-bottom: 10px; }
.res-block p { color: var(--ink-soft); }
.res-block ul { color: var(--ink-soft); margin-top: 8px; }

/* 三个方向的主题色（略微区分，保持品牌色系：青绿 / 亮青 / 靛蓝） */
.res-icon.acc-dir-1 { color: #0f766e; background: linear-gradient(135deg, rgba(20,184,166,.18), rgba(20,184,166,.06)); }
.res-icon.acc-dir-2 { color: #0e7490; background: linear-gradient(135deg, rgba(34,211,238,.22), rgba(34,211,238,.08)); }
.res-icon.acc-dir-3 { color: #4f46e5; background: linear-gradient(135deg, rgba(129,140,248,.24), rgba(129,140,248,.1)); }

.res-block.acc-dir-1 { border-left: 3px solid var(--teal-500); }
.res-block.acc-dir-2 { border-left: 3px solid var(--cyan-400); }
.res-block.acc-dir-3 { border-left: 3px solid #818cf8; }
.res-block.acc-dir-1 h3 { color: #0f766e; }
.res-block.acc-dir-2 h3 { color: #0e7490; }
.res-block.acc-dir-3 h3 { color: #4f46e5; }

.kw-chips.acc-dir-1 .kw { background: #e9f7f4; color: #0e6e63; border-color: #c9ede7; }
.kw-chips.acc-dir-2 .kw { background: #ecfbff; color: #0e7490; border-color: #bceef7; }
.kw-chips.acc-dir-3 .kw { background: #eef1ff; color: #4f46e5; border-color: #d3d9ff; }

.kw-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.kw {
  font-size: 0.82rem;
  padding: 4px 13px;
  border-radius: 6px;
  background: #e9f7f4;
  color: #0e6e63;
  border: 1px solid #c9ede7;
}

/* ---------- Publications ---------- */
.paper {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 6px 18px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 14px;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease),
    border-color 0.22s var(--ease);
}
.paper:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(20, 184, 166, 0.55);
}
.paper-num { font-weight: 800; color: var(--teal-500); font-size: 1.12rem; padding-top: 3px; }
.paper-title {
  font-weight: 650;
  color: var(--navy-900);
  font-size: 1.02rem;
  line-height: 1.5;
}
.paper-title a { color: inherit; }
.paper-title a:hover { color: var(--teal-600); }
.paper-authors { color: var(--ink-soft); font-size: 0.92rem; margin-top: 6px; }
.paper-authors b { color: var(--navy-700); font-weight: 700; }
.paper-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.paper-journal { font-size: 0.86rem; color: var(--ink-soft); }
.paper-doi {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 6px;
  background: var(--navy-900);
  color: #fff;
  transition: background 0.2s var(--ease);
}
.paper-doi:hover { background: var(--teal-600); color: #fff; text-decoration: none; }

.note-box {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #eef6f4;
  border: 1px solid #cdeae4;
  border-radius: var(--radius);
  padding: 16px 20px;
  color: #0e6e63;
  font-size: 0.95rem;
  margin-bottom: 34px;
}

/* ---------- Timeline ---------- */
.timeline {
  list-style: none;
  margin: 0 0 1.2em;
  padding: 0 0 0 30px;
  border-left: 2px solid var(--line);
}
.tl-item { position: relative; padding: 0 0 26px 0; }
.tl-item:last-child { padding-bottom: 4px; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -37px;
  top: 7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--teal-500);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.18);
}
.tl-year { font-weight: 800; color: var(--teal-600); font-size: 0.9rem; letter-spacing: 0.4px; }
.tl-title { font-weight: 650; color: var(--navy-900); }
.tl-org { color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- People ---------- */
.pi-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 36px;
  align-items: start;
}
.pi-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px;
  text-align: center;
  position: sticky;
  top: calc(var(--nav-h) + 20px);
}
.avatar {
  width: 96px;
  height: 96px;
  border-radius: 10px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--navy-800), var(--teal-600));
  color: #fff;
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: 1px;
}
.avatar-lg { width: 128px; height: 128px; font-size: 2.2rem; }
.pi-card h2 { font-size: 1.25rem; margin-bottom: 6px; }
.pi-card .role { color: var(--teal-600); font-weight: 600; font-size: 0.95rem; margin-bottom: 14px; }
.pi-mail {
  display: inline-block;
  font-size: 0.92rem;
  padding: 7px 16px;
  border-radius: 6px;
  background: #eef6f4;
  border: 1px solid #cdeae4;
  color: #0e6e63;
}
.pi-mail:hover { background: #dff0ec; }

.prose h3 { margin-top: 30px; font-size: 1.22rem; }
.prose h3:first-child { margin-top: 0; }
.prose p { color: var(--ink-soft); }

.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}
.person {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.person:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.person .avatar { width: 84px; height: 84px; font-size: 1.5rem; }
.person h3 { font-size: 1.05rem; margin-bottom: 4px; }
.person .role { color: var(--teal-600); font-weight: 600; font-size: 0.9rem; }
.person .note { color: var(--ink-soft); font-size: 0.88rem; margin-top: 10px; }

.empty-state {
  border: 1.6px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.6);
  padding: 40px 28px;
  text-align: center;
  color: var(--ink-soft);
}
.people-grid .empty-state { grid-column: 1 / -1; }
.empty-state strong { color: var(--navy-700); display: block; margin-bottom: 6px; }

/* ---------- News ---------- */
.news-item {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 8px 22px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
}
.news-item:last-child { border-bottom: none; }
.news-date {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--teal-600);
  background: #e9f7f4;
  border: 1px solid #cdeae4;
  border-radius: 6px;
  padding: 4px 14px;
  text-align: center;
  align-self: start;
  justify-self: start;
  white-space: nowrap;
}
.news-title { font-weight: 650; color: var(--navy-900); font-size: 1.04rem; }
.news-body { color: var(--ink-soft); font-size: 0.95rem; margin-top: 5px; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--teal-600);
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.13), rgba(34, 211, 238, 0.13));
  margin-bottom: 16px;
}
.contact-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.contact-card p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 0; }
.contact-card .big-link {
  font-size: 1.02rem;
  font-weight: 650;
  color: var(--navy-700);
  word-break: break-all;
}

/* ---------- CTA band ---------- */
.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background:
    radial-gradient(560px 260px at 92% -30%, rgba(34, 211, 238, 0.22), transparent 60%),
    linear-gradient(120deg, var(--navy-800), #14406b);
  border-radius: 12px;
  padding: 52px;
  color: #fff;
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: var(--on-dark); margin-bottom: 0; max-width: 560px; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 48px;
  background: linear-gradient(180deg, #0c2138, #081728);
  color: rgba(255, 255, 255, 0.74);
  padding: 54px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
}
.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p { color: rgba(255, 255, 255, 0.6); font-size: 0.92rem; margin: 0; }
.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: 0.4px;
  margin-bottom: 14px;
}
.footer-col a,
.footer-col span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  margin-bottom: 9px;
}
.footer-col a:hover { color: var(--teal-400); }
.footer-bottom {
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .pi-grid { grid-template-columns: 1fr; }
  .pi-card { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: grid; }
  .nav {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: rgba(10, 26, 47, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 14px 22px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 11px 14px; font-size: 16px; }
  .lang-toggle { margin: 8px 14px 0; align-self: flex-start; }
}

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .res-block { grid-template-columns: 1fr; gap: 18px; }
  .news-item { grid-template-columns: 1fr; gap: 8px; }
  .news-date { justify-self: start; }
  .cta-band { padding: 36px 28px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding: calc(var(--nav-h) + 64px) 0 84px; }
  .paper { grid-template-columns: 1fr; }
  .paper-num { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .hero-canvas { display: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header,
  .site-footer,
  .hero-canvas,
  .hero-wave,
  .btn,
  .nav-toggle,
  .cta-band { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .hero, .page-hero { background: #fff !important; color: #000; padding: 24px 0; }
  .hero h1, .page-hero h1 { color: #000; }
  .hero-sub, .hero-meta, .chip { color: #333; border-color: #bbb; }
  .section { padding: 24px 0; }
  .paper, .res-card, .res-block { box-shadow: none; border-color: #bbb; break-inside: avoid; }
  .reveal { opacity: 1 !important; transform: none !important; }
  a { color: #000; text-decoration: underline; }
  .paper-doi { background: #eee; color: #000; border: 1px solid #999; }
}
