:root {
  --ink: #18211f;
  --muted: #5f6c68;
  --paper: #f7f7f4;
  --surface: #fff;
  --line: #d9dfdc;
  --accent: #205c50;
  --accent-soft: #eaf1ee;
  --warm: #a95640;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
button, select { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 66px;
  padding: 12px max(22px, calc((100vw - var(--max)) / 2));
  background: rgba(247, 247, 244, 0.92);
  border-bottom: 1px solid rgba(217, 223, 220, 0.9);
  backdrop-filter: blur(14px);
}
.brand, .site-nav { display: flex; align-items: center; }
.brand { gap: 10px; font-weight: 800; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #fff;
  background: var(--accent);
  border-radius: 6px;
  font-size: 0.78rem;
}
.site-nav { justify-content: center; gap: 4px; }
.site-nav a {
  padding: 7px 11px;
  color: var(--muted);
  border-radius: 6px;
  font-size: 0.94rem;
  font-weight: 680;
}
.site-nav a:hover { color: var(--accent); background: var(--accent-soft); }
.language-toggle, .nav-toggle {
  height: 38px;
  min-width: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--accent);
  background: var(--surface);
  cursor: pointer;
  font-weight: 760;
}
.nav-toggle { display: none; padding: 0; }
.nav-toggle span {
  display: block;
  width: 17px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(38px, 6vw, 76px);
  align-items: start;
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 0 66px;
}
.profile-column { padding-top: 8px; }
.portrait {
  display: block;
  width: 240px;
  max-height: 330px;
  object-fit: cover;
  object-position: center top;
  border: 7px solid var(--surface);
  border-radius: 6px;
  box-shadow: 0 15px 38px rgba(24, 33, 31, 0.13);
}
.profile-links {
  display: flex;
  gap: 16px;
  margin-top: 17px;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 720;
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--warm);
  font-size: 0.76rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 5px;
  font-size: clamp(1.9rem, 3.2vw, 2.65rem);
  line-height: 1.08;
  letter-spacing: 0;
}
h1 small {
  margin-left: 12px;
  color: var(--muted);
  font-size: 0.43em;
  font-weight: 650;
}
h2 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  line-height: 1.2;
  letter-spacing: 0;
}
h3 { margin-bottom: 7px; font-size: 1.04rem; line-height: 1.4; }
.affiliation-line { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 5px; }
.affiliation { margin-bottom: 0; color: var(--accent); font-size: 1.08rem; font-weight: 750; }
.hero-role { margin: 0; color: var(--warm); font-size: 0.94rem; font-weight: 760; }
.lab-role { margin: 0 0 24px; color: var(--muted); font-size: 0.94rem; font-weight: 650; }
.bio { color: #34423e; font-size: 1rem; }
.bio p { margin-bottom: 12px; }
.facts {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding-top: 19px;
  border-top: 1px solid var(--line);
}
.facts div { display: grid; grid-template-columns: 86px 1fr; gap: 14px; }
dt { color: var(--muted); font-size: 0.82rem; font-weight: 780; }
dd { margin: 0; font-weight: 650; }

.news-section, .tab-section {
  padding: 64px max(22px, calc((100vw - var(--max)) / 2));
  border-top: 1px solid var(--line);
}
.news-section { background: var(--surface); }
.section-heading { max-width: 780px; margin-bottom: 28px; }
.research-main-title { color: #111; font-size: 2rem; letter-spacing: 0; }
.section-heading > p:not(.eyebrow) { color: var(--muted); }
.news-main-title {
  margin-bottom: 24px;
  font-size: clamp(2.15rem, 4.5vw, 3.35rem);
}
.current-news { margin: 0; padding: 0; list-style: none; }
.current-news li {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 20px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.current-news time { color: var(--accent); font-weight: 800; }
.current-news p { margin: 0; }
.news-archive { margin-top: 18px; }
details {
  border-bottom: 1px solid var(--line);
}
summary {
  padding: 14px 0;
  color: var(--accent);
  cursor: pointer;
  font-weight: 780;
}
details ul { margin: 0 0 17px; padding-left: 22px; color: var(--muted); }
.news-archive li { display: flex; gap: 16px; margin-bottom: 8px; }
.news-archive li time { flex: 0 0 58px; color: var(--accent); font-weight: 760; }

.tab-list {
  display: flex;
  gap: 28px;
  margin-bottom: 38px;
  border-bottom: 1px solid var(--line);
}
.tab-list button {
  position: relative;
  min-height: 48px;
  padding: 0 2px;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-weight: 760;
}
.tab-list button::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  content: "";
  background: transparent;
}
.tab-list button.is-active { color: var(--accent); }
.tab-list button.is-active::after { background: var(--accent); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

.research-list { display: grid; gap: 0; }
.research-list article {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.research-list article > span { color: var(--warm); font-weight: 850; }
.research-list p { margin-bottom: 0; color: var(--muted); }
.plain-block { margin-top: 30px; }
.plain-block ul, .honor-columns ul { margin: 0; padding-left: 20px; color: var(--muted); }
.honor-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
}
.honor-columns section { min-width: 0; }
.honor-columns h3 {
  padding-bottom: 9px;
  color: var(--accent);
  border-bottom: 1px solid var(--line);
}
.honor-columns li { margin-bottom: 7px; }
.exchange-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.exchange-gallery figure { margin: 0; }
.exchange-placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border: 1px dashed #afbbb6;
  border-radius: 6px;
  color: var(--accent);
  background:
    linear-gradient(135deg, rgba(32, 92, 80, 0.1), rgba(169, 86, 64, 0.08)),
    var(--surface);
  font-size: 1.4rem;
  font-weight: 850;
}
.exchange-gallery figcaption {
  padding-top: 9px;
  color: var(--muted);
  font-size: 0.9rem;
}
.publications-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  max-width: none;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 760;
}
.publication-years { display: grid; gap: 12px; }
.publication-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.publication-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.publication-switch button { padding: 9px 12px; border: 0; background: var(--surface); color: var(--muted); cursor: pointer; font-size: 0.9rem; white-space: nowrap; }
.publication-switch button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.publication-switch button:focus-visible { outline: 2px solid var(--ink); outline-offset: -3px; }
.year-group {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}
.year-group summary {
  display: flex;
  justify-content: space-between;
  padding: 15px 18px;
  list-style: none;
}
.year-group summary::-webkit-details-marker { display: none; }
.year-group summary::after { content: "+"; font-size: 1.18rem; font-weight: 500; }
.year-group[open] summary::after { content: "−"; }
.year-group[open] summary { border-bottom: 1px solid var(--line); }
.year-papers { padding: 2px 18px; }
.publication {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.publication:last-child { border-bottom: 0; }
.publication h3 { margin-bottom: 4px; font-size: 1rem; }
.publication-date { margin-bottom: 4px; color: var(--muted); font-size: 0.82rem; font-weight: 750; }
.publication .rank { color: var(--warm); white-space: nowrap; }
.publication .authors { margin-bottom: 3px; color: var(--muted); font-size: 0.92rem; }
.publication .authors strong { color: var(--ink); font-weight: 850; }
.publication .authors sup { position: relative; top: -0.28em; color: var(--warm); font-size: 0.72em; }
.publication .venue { margin-bottom: 8px; color: var(--accent); font-size: 0.92rem; font-weight: 700; }
.paper-links { display: flex; gap: 9px; }
.paper-links a {
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 760;
}
.exchange-activity {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 28px;
  align-items: center;
  padding: 20px 18px;
  border-bottom: 1px solid var(--line);
}
.exchange-activity:last-child { border-bottom: 0; }
.exchange-activity p { margin-bottom: 0; color: var(--muted); }
.exchange-date { color: var(--warm) !important; font-size: 0.84rem; font-weight: 800; }
.exchange-activity h3 { margin-bottom: 6px; }
.exchange-activity .exchange-placeholder { aspect-ratio: 4 / 3; }
.exchange-photo-grid {
  display: block;
  position: relative;
  width: 240px;
  height: 180px;
  max-width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #eef1ef;
  cursor: zoom-in;
}
.exchange-photo-grid img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  border-radius: 3px;
  opacity: 0;
  transform: translateX(100%);
  transition: transform 650ms ease, opacity 650ms ease;
  cursor: zoom-in;
}
.exchange-photo-grid img.is-active { opacity: 1; transform: translateX(0); z-index: 2; }
.exchange-photo-grid img.is-exiting { opacity: 1; transform: translateX(-100%); z-index: 1; }
@media (prefers-reduced-motion: reduce) {
  .exchange-photo-grid img { transition: none; }
}
.exchange-photo-grid:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(15, 20, 18, 0.86);
}
.photo-lightbox[hidden] { display: none; }
.photo-lightbox img {
  max-width: min(calc(100vw - 120px), 1400px);
  max-height: calc(100dvh - 120px);
  object-fit: contain;
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.4);
}
.photo-lightbox-close {
  position: fixed;
  top: 18px;
  right: 24px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.25);
  cursor: pointer;
  font-size: 1.55rem;
  line-height: 1;
}
.photo-lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 4px;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  font-size: 1.5rem;
  cursor: pointer;
}
.photo-lightbox-arrow[hidden] { display: none; }
.photo-lightbox-prev { left: 8px; }
.photo-lightbox-next { right: 8px; }
.photo-lightbox-arrow:hover, .photo-lightbox-close:hover { background: rgba(0, 0, 0, 0.75); }
.photo-lightbox button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.photo-lightbox-counter { position: absolute; bottom: 12px; margin: 0; color: #fff; font-size: 0.9rem; }

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 23px max(22px, calc((100vw - var(--max)) / 2));
  color: var(--muted);
  background: #eef1ef;
  font-size: 0.9rem;
}
.site-footer p { margin: 0; }
.site-footer .last-updated { font-size: 0.82rem; }
.site-footer a { font-weight: 720; }

@media (max-width: 1124px) {
  .hero { margin-inline: 22px; }
}
@media (max-width: 820px) {
  .site-header { grid-template-columns: auto auto auto; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 14px;
    left: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 9px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: 0 18px 44px rgba(24, 33, 31, 0.14);
  }
  .site-nav.is-open { display: flex; }
  .hero { grid-template-columns: 190px minmax(0, 1fr); gap: 30px; padding-top: 52px; }
  .portrait { width: 185px; max-height: 270px; }
  .honor-columns { grid-template-columns: 1fr; gap: 28px; }
  .exchange-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .site-header, .news-section, .tab-section, .site-footer { padding-inline: 17px; }
  .hero { grid-template-columns: 1fr; margin-inline: 17px; padding-block: 38px 48px; }
  .profile-column { display: flex; flex-direction: column; align-items: center; }
  .portrait { width: 180px; }
  h1 { font-size: 1.9rem; }
  .affiliation-line { display: block; }
  .hero-role { margin-top: 2px; }
  h1 small { display: block; margin: 7px 0 0; }
  .facts div, .current-news li { grid-template-columns: 1fr; gap: 4px; }
  .tab-list { gap: 14px; overflow-x: auto; }
  .tab-list button { white-space: nowrap; }
  .publications-heading, .site-footer { align-items: stretch; flex-direction: column; }
  .exchange-gallery { grid-template-columns: 1fr; }
  .exchange-activity { grid-template-columns: 1fr; gap: 15px; }
}
