:root {
  --ink: #132238;
  --muted: #5e6f83;
  --line: #dce5ed;
  --paper: #ffffff;
  --canvas: #f4f7f8;
  --navy: #0b2343;
  --blue: #185ed0;
  --blue-soft: #e9f1ff;
  --teal: #0b8c87;
  --teal-soft: #e4f6f4;
  --warm: #ffcc7a;
  --shadow: 0 16px 42px rgba(13, 37, 68, .09);
  --radius-lg: 22px;
  --radius-md: 14px;
  --content: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body, button { font-family: inherit; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: #0b428f; }
img { max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--warm); outline-offset: 3px; }

.lang-en { display: none !important; }
html[data-lang="en"] .lang-zh { display: none !important; }
html[data-lang="en"] .lang-en { display: revert !important; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  transform: translateY(-150%);
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--paper);
  color: var(--navy);
  font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }

.site-header-modern {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(220, 229, 237, .88);
  background: rgba(244, 247, 248, .90);
  backdrop-filter: blur(16px);
}
.site-header__inner {
  width: min(calc(100% - 40px), var(--content));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
  color: var(--navy);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -.01em;
}
.brand__mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: #fff;
  font-size: 13px;
  letter-spacing: .06em;
  box-shadow: 0 8px 20px rgba(24, 94, 208, .20);
}
.site-nav-modern {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav-modern a {
  padding: 8px 10px;
  border-radius: 9px;
  color: #32445a;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav-modern a:hover { background: #fff; color: var(--blue); }
.lang-switch {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.lang-switch__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }

.modern-main { width: 100%; }
.hero-section {
  width: min(calc(100% - 40px), var(--content));
  margin: 20px auto 0;
  overflow: hidden;
  position: relative;
  border-radius: 32px;
  color: #fff;
  background:
    radial-gradient(circle at 84% 12%, rgba(70, 207, 196, .28), transparent 28%),
    radial-gradient(circle at 0 100%, rgba(43, 111, 215, .34), transparent 34%),
    var(--navy);
  box-shadow: var(--shadow);
}
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  background-image: linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to left, #000, transparent 72%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(220px, 292px) minmax(0, 1fr);
  gap: clamp(30px, 4vw, 50px);
  align-items: center;
  padding: clamp(32px, 4.6vw, 54px);
}
.hero__title {
  margin: 0;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.06;
  letter-spacing: 0;
}
.hero__title small {
  display: block;
  margin-top: 8px;
  color: #c9dcf5;
  font-family: inherit;
  font-size: .72em;
  font-weight: 500;
  letter-spacing: .01em;
}
.hero__role { margin: 16px 0 0; color: #fff; font-size: clamp(18px, 2vw, 22px); font-weight: 700; }
.hero__affiliation { max-width: 690px; margin: 5px 0 0; color: #c3d2e5; }
.hero__lead { max-width: 760px; margin: 16px 0 0; color: #e6eef8; font-size: 16px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: #fff; color: var(--navy); }
.btn--primary:hover { background: #eff7ff; color: var(--navy); }
.btn--ghost { border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.07); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.15); color: #fff; }
.hero__portrait-wrap { position: relative; justify-self: start; width: min(100%, 282px); }
.hero__portrait {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  border: 8px solid rgba(255,255,255,.12);
  border-radius: 26px;
  object-fit: cover;
  object-position: center 20%;
  background: #dfe7ef;
  box-shadow: 0 24px 55px rgba(0,0,0,.28);
}
.section-modern { padding: clamp(42px, 5.5vw, 68px) 20px; }
.section-modern--tint { background: #edf3f5; }
.section-wrap { width: min(100%, var(--content)); margin: 0 auto; }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(320px, 1.22fr);
  gap: 30px;
  align-items: end;
  margin-bottom: 22px;
}
.section-kicker { margin: 0 0 8px; color: var(--teal); font-size: 13px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.section-heading { margin: 0; color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: clamp(28px, 3vw, 38px); line-height: 1.12; letter-spacing: 0; }
.section-intro { margin: 0; color: var(--muted); font-size: 16px; }

.recruitment-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
  padding: 20px 22px;
  border: 1px solid #c9ddff;
  border-radius: var(--radius-md);
  background: linear-gradient(120deg, #eaf2ff, #e8faf6);
}
.recruitment-banner h3 { margin: 0; color: var(--navy); font-size: 20px; }
.recruitment-banner p { margin: 5px 0 0; color: var(--muted); }
.recruitment-banner a { white-space: nowrap; color: var(--navy); font-weight: 800; }
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.recruitment-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: 18px; align-items: stretch; }
.recruit-card, .research-card, .person-card, .update-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: 0 8px 30px rgba(23, 51, 80, .045);
}
.recruit-card { min-height: 0; padding: 20px; display: flex; flex-direction: column; }
.recruit-card--primary { min-height: 100%; padding: 24px; }
.card-index { color: #8b9caf; font-family: Georgia, serif; font-size: 14px; }
.recruit-card h3 { margin: 14px 0 6px; color: var(--navy); font-size: 20px; }
.recruit-card p { margin: 0; color: var(--muted); font-size: 15px; }
.status-pill { display: inline-flex; width: fit-content; margin-top: auto; padding: 5px 10px; border-radius: 999px; background: var(--teal-soft); color: #08736e; font-size: 12px; font-weight: 850; }
.recruit-type-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.recruit-type-card {
  min-height: 118px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #fff, #f8fbfd);
}
.recruit-type-card h3 { margin: 0 0 10px; color: var(--navy); font-size: 18px; line-height: 1.3; }
.recruit-type-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }

.research-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.research-card { min-height: 190px; padding: 20px; position: relative; overflow: hidden; }
.research-card::after { content: ""; position: absolute; width: 88px; height: 88px; right: -38px; bottom: -38px; border: 16px solid var(--blue-soft); border-radius: 50%; }
.research-card__icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--blue-soft); color: var(--blue); font-weight: 900; }
.research-card h3 { margin: 15px 0 7px; color: var(--navy); font-size: 20px; line-height: 1.3; }
.research-card p { margin: 0; color: var(--muted); font-size: 14px; }
.people-grid { display: grid; grid-template-columns: 1.35fr repeat(3, 1fr); gap: 18px; }
.person-card { min-height: 240px; padding: 24px; }
.person-card--pi { color: #fff; background: var(--navy); border-color: var(--navy); }
.person-card__role { color: var(--teal); font-size: 12px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.person-card--pi .person-card__role { color: #77d8cf; }
.person-card h3 { margin: 30px 0 8px; color: var(--navy); font-size: 21px; }
.person-card--pi h3 { color: #fff; }
.person-card p { margin: 0; color: var(--muted); font-size: 14px; }
.person-card--pi p { color: #c2d1e3; }
.person-card--placeholder { border-style: dashed; background: transparent; }

.update-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 16px; }
.update-grid--service { grid-template-columns: 1fr; }
.update-card { min-height: 0; padding: 20px; }
.update-card--service { min-height: 0; padding: 22px; }
.update-card time { color: var(--teal); font-size: 12px; font-weight: 850; letter-spacing: .08em; }
.update-card h3 { margin: 10px 0 0; color: var(--navy); font-size: 18px; line-height: 1.35; }
.update-card p { margin: 0; color: var(--muted); font-size: 14px; }

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) auto;
  gap: 24px;
  align-items: center;
  padding: clamp(26px, 4vw, 40px);
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(120deg, var(--navy), #123d72);
  box-shadow: var(--shadow);
}
.contact-panel h2 { margin: 0; color: #fff; font-family: Georgia, serif; font-size: clamp(26px, 3vw, 36px); line-height: 1.14; }
.contact-panel p { max-width: 740px; margin: 10px 0 0; color: #cbd9e9; }
.contact-panel__actions { display: flex; flex-direction: column; gap: 10px; }

.site-footer-modern { padding: 30px 20px 42px; color: #758495; }
.site-footer-modern__inner { width: min(100%, var(--content)); margin: 0 auto; display: flex; justify-content: space-between; gap: 24px; font-size: 13px; }
.site-footer-modern a { color: inherit; }
/* Preserve the publication archive while replacing the legacy chrome. */
.page-shell {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.page-shell > tbody > tr > td { padding: 0 !important; }
.page-shell header, .page-shell .site-nav, #legacy-research, .page-shell footer { display: none !important; }
#publications {
  padding: clamp(42px, 5.5vw, 68px) 20px;
  background: #fff;
}
.publications-modern-heading { width: min(100%, var(--content)); margin: 0 auto 22px; }
.publications-modern-heading + table { display: none !important; }
.publications-modern-heading .section-head { margin-bottom: 0; }
#publications > table[height="98"] {
  width: min(100%, var(--content)) !important;
  height: auto !important;
  margin: 0 auto 10px !important;
  display: table !important;
  overflow: hidden;
  border: 1px solid var(--line) !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: 15px;
  background: var(--paper) !important;
  box-shadow: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
#publications > table[height="98"]:hover { border-color: #b9cbe0 !important; box-shadow: 0 10px 28px rgba(23,51,80,.07); transform: translateY(-1px); }
#publications > table[height="98"] > tbody > tr { display: grid !important; grid-template-columns: 360px minmax(0, 1fr); align-items: stretch; }
#publications > table[height="98"] > tbody > tr > td { width: auto !important; height: auto !important; display: block !important; }
#publications > table[height="98"] > tbody > tr > td:first-child { min-height: 210px; padding: 10px !important; display: grid !important; place-items: center; background: #f0f4f7; }
#publications > table[height="98"] > tbody > tr > td:last-child { padding: 20px 24px !important; }
#publications > table[height="98"] > tbody > tr > td:first-child div { width: 100%; height: 100%; display: grid; place-items: center; }
#publications > table[height="98"] img { width: auto !important; min-width: 300px !important; max-width: 340px !important; max-height: 210px !important; height: auto !important; object-fit: contain; }
#publications > table[height="98"] table { width: 100% !important; margin: 0 !important; }
#publications > table[height="98"] td { border: 0; }
#publications .papertitle, #publications .papertitle .STYLE126 { color: var(--navy) !important; font-family: inherit !important; font-size: 17px !important; font-weight: 800 !important; line-height: 1.45; }
#publications .abstract { color: var(--muted); font-family: inherit !important; font-size: 14px !important; }
#publications .STYLE178 { color: #496076; font-family: inherit !important; font-size: 13px !important; }
#publications .STYLE178 a { display: inline-flex; margin: 5px 7px 0 0; padding: 3px 8px; border-radius: 6px; background: var(--blue-soft); color: var(--blue); font-weight: 800; text-decoration: none; }
#publications .section-divider { display: none; }
.publication-card-hidden { display: none !important; }
.publication-controls { width: min(100%, var(--content)); margin: 18px auto 0; text-align: center; }
.publication-toggle { min-width: 180px; padding: 11px 18px; border: 1px solid #bfcddd; border-radius: 12px; background: #fff; color: var(--navy); font-weight: 800; cursor: pointer; }
.publication-toggle:hover { border-color: var(--blue); color: var(--blue); }
.publication-count { margin: 10px 0 0; color: var(--muted); font-size: 12px; }

@media (max-width: 1040px) {
  .site-header__inner { width: min(calc(100% - 28px), var(--content)); gap: 14px; }
  .site-nav-modern { overflow-x: auto; scrollbar-width: none; }
  .site-nav-modern::-webkit-scrollbar { display: none; }
  .hero-section { width: min(calc(100% - 28px), var(--content)); }
  .hero__inner { grid-template-columns: 240px minmax(0, 1fr); gap: 34px; }
  .card-grid, .recruitment-layout { grid-template-columns: 1fr; }
  .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .research-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
  html { scroll-padding-top: 126px; }
  .site-header__inner { min-height: 64px; flex-wrap: wrap; padding: 9px 0 7px; }
  .site-nav-modern { order: 3; width: 100%; margin-left: 0; }
  .lang-switch { margin-left: auto; }
  .hero-section { margin-top: 12px; border-radius: 22px; }
  .hero__inner { grid-template-columns: 1fr; gap: 20px; padding: 24px 22px 28px; }
  .hero__portrait-wrap { justify-self: start; width: min(60vw, 235px); }
  .hero__title { font-size: clamp(32px, 10vw, 42px); }
  .hero__role { margin-top: 12px; }
  .hero__lead { margin-top: 14px; font-size: 16px; }
  .section-head { grid-template-columns: 1fr; gap: 12px; margin-bottom: 18px; }
  .section-modern, #publications { padding-left: 16px; padding-right: 16px; }
  .recruitment-banner, .contact-panel { grid-template-columns: 1fr; }
  .section-modern, #publications { padding-top: 40px; padding-bottom: 40px; }
  .recruitment-banner { padding: 18px; }
  .research-card { grid-column: span 1; min-height: 168px; }
  .update-grid { grid-template-columns: 1fr; }
  #publications > table[height="98"] > tbody > tr { grid-template-columns: 240px minmax(0, 1fr); }
  #publications > table[height="98"] > tbody > tr > td:first-child { min-height: 170px; padding: 8px !important; }
  #publications > table[height="98"] > tbody > tr > td:last-child { padding: 17px 18px !important; }
  #publications > table[height="98"] img { min-width: 210px !important; max-width: 224px !important; max-height: 150px !important; }
  .site-footer-modern__inner { flex-direction: column; gap: 5px; }
}

@media (max-width: 560px) {
  .brand__name .lang-zh, .brand__name .lang-en { max-width: 128px; overflow: hidden; display: block; white-space: nowrap; }
  .site-nav-modern a { font-size: 13px; }
  .hero__inner { padding: 22px 20px 26px; }
  .hero__portrait-wrap { width: min(54vw, 200px); }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; min-height: 42px; }
  .card-grid, .people-grid, .research-grid, .recruit-type-grid { grid-template-columns: 1fr; }
  #publications > table[height="98"] { display: block !important; }
  #publications > table[height="98"] > tbody, #publications > table[height="98"] > tbody > tr { display: block !important; }
  #publications > table[height="98"] > tbody > tr > td:first-child { min-height: 188px; }
  #publications > table[height="98"] img { min-width: 260px !important; max-width: 320px !important; max-height: 190px !important; }
  .contact-panel__actions { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
/* Interaction-state overrides. */
.hero__portrait { height: auto; }
#publications > table.publication-card-hidden { display: none !important; }
