:root {
  --ink: #18202c;
  --muted: #657083;
  --blue: #173f73;
  --blue-bright: #245d9c;
  --blue-pale: #eaf1f8;
  --paper: #ffffff;
  --line: #dfe5ec;
  --soft-line: #edf1f5;
  --green: #16845b;
  --max-width: 1120px;
  --header-height: 58px;
  --shadow: 0 10px 30px rgba(21, 47, 76, 0.055);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", sans-serif;
  font-size: 14px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue-bright); text-decoration: none; }
a:hover { color: var(--blue); }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 8px 12px;
  color: white;
  background: var(--ink);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

[data-language="zh"] .lang-zh,
[data-language="zh"] .profile-heading h1 span {
  font-family: "Songti SC", "STSong", "SimSun", serif !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--soft-line);
  backdrop-filter: blur(14px);
}

.nav-shell {
  width: min(calc(100% - 36px), var(--max-width));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.wordmark:hover { color: var(--blue); }
.wordmark-mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: white;
  background: var(--blue);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.wordmark-name { font-family: Georgia, "Times New Roman", serif; font-size: 17px; font-weight: 700; }

.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a {
  position: relative;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.02em;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 2px;
  background: var(--blue-bright);
  transition: right 180ms ease;
}
.site-nav a:hover,
.site-nav a.active { color: var(--blue); }
.site-nav a:hover::after,
.site-nav a.active::after { right: 0; }

.language-button {
  min-width: 50px;
  padding: 5px 10px;
  color: var(--blue);
  background: var(--blue-pale);
  border: 1px solid #d6e2ef;
  border-radius: 999px;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.language-button:hover { background: #dce9f6; }
.menu-button { display: none; }

.page-shell {
  width: min(calc(100% - 36px), var(--max-width));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 185px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.profile-card {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  padding: 30px 0 24px;
}

.portrait-wrap {
  width: 158px;
  aspect-ratio: 1;
  padding: 5px;
  margin-bottom: 19px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: var(--shadow);
}
.portrait-wrap img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: center 34%; }

.profile-heading .eyebrow,
.kicker,
.section-label {
  margin: 0;
  color: var(--blue-bright);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.profile-heading h1 {
  margin: 4px 0 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  line-height: 1.2;
}
.profile-heading h1 span { display: block; margin-top: 3px; color: var(--muted); font-family: inherit; font-size: 14px; font-weight: 500; }
.role { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.institution-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(36, 93, 156, 0.32);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.institution-link:hover { color: var(--blue-bright); text-decoration-color: currentColor; }

.profile-meta { margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line); }
.meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 26px;
  color: var(--muted);
  font-size: 11px;
}
.meta-row svg { width: 13px; height: 13px; fill: var(--blue-bright); }
a.meta-row:hover { color: var(--blue); }

.profile-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.profile-links a {
  padding: 4px 8px;
  color: var(--blue);
  background: var(--blue-pale);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.availability { margin-top: 15px; color: var(--green); font-size: 10px; font-weight: 700; }
.availability span { display: inline-block; width: 7px; height: 7px; margin-right: 7px; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 4px rgba(22, 132, 91, 0.1); }

.content { min-width: 0; padding: 48px 0 0; }
.hero { padding: 16px 0 28px; border-bottom: 1px solid var(--line); }
.kicker { margin-bottom: 9px; }
.hero h2 {
  margin: 0 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 5vw, 52px);
  line-height: 1;
  letter-spacing: -0.035em;
}
.hero-lead { max-width: 760px; margin: 0 0 11px; font-size: 16px; line-height: 1.65; }
.hero > p:not(.kicker):not(.hero-lead) { max-width: 780px; color: var(--muted); }
.hero strong { color: var(--blue); font-weight: 750; }
[data-language="zh"] .hero strong {
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 0.98em;
  font-weight: 600;
  line-height: inherit;
  vertical-align: baseline;
}

.section { padding: 52px 0; border-bottom: 1px solid var(--line); }
#research { padding-top: 30px; }
.section-heading { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 25px; padding-bottom: 12px; border-bottom: 1px solid var(--soft-line); }
.section-index { padding-top: 4px; color: #a2adba; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; }
.section-heading h2 { margin: 1px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 28px; letter-spacing: -0.02em; }

.manuscript-note {
  margin: -8px 0 17px;
  padding: 8px 11px;
  color: var(--muted);
  background: var(--blue-pale);
  border-left: 3px solid var(--blue-bright);
  font-size: 11px;
}
.submission-list { border-top: 1px solid var(--line); }
.submission-entry {
  position: relative;
  padding: 22px 24px 23px;
  background: white;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.submission-entry::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 4px; background: #9aa7b4; }
.submission-entry.is-current::before { background: var(--green); }
.submission-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.submission-badge { padding: 3px 8px; color: #6c7580; background: #eef1f4; border-radius: 999px; font-size: 9px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.is-current .submission-badge { color: var(--green); background: rgba(22, 132, 91, 0.09); }
.submission-venue { color: var(--muted); font: 9px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.04em; text-transform: uppercase; }
.submission-entry h3 { margin: 13px 0 0; color: var(--blue); font-family: Georgia, "Times New Roman", serif; font-size: 22px; letter-spacing: -0.02em; }
.submission-subtitle { margin: 1px 0 10px; color: var(--muted); font-size: 12px; }
.submission-entry > p:not(.submission-subtitle) { margin-bottom: 0; color: #475365; }
.revision-points { margin: 12px 0 0; padding-left: 18px; color: #475365; }
.revision-points li { margin-bottom: 4px; }
.timeline { border-left: 1px solid #cfd8e2; }
.timeline article { position: relative; display: grid; grid-template-columns: 135px 1fr; gap: 25px; padding: 0 0 30px 23px; }
.timeline article:last-child { padding-bottom: 0; }
.timeline article::before { content: ""; position: absolute; left: -5px; top: 7px; width: 9px; height: 9px; background: white; border: 2px solid var(--blue-bright); border-radius: 50%; }
.timeline time { padding-top: 3px; color: var(--muted); font: 9px ui-monospace, SFMono-Regular, Menlo, monospace; }
.timeline h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 18px; }
.timeline .place { margin: 2px 0 7px; color: var(--blue-bright); font-size: 11px; font-weight: 700; }
.timeline p:last-child { margin: 0; color: var(--muted); }

.honor-list { border-top: 1px solid var(--line); }
.honor-list article { display: grid; grid-template-columns: 72px 1fr; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--soft-line); }
.honor-year { color: var(--blue-bright); font: 9px ui-monospace, SFMono-Regular, Menlo, monospace; }
.honor-list h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 16px; }
.honor-list p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }

.focus-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.focus-grid article { position: relative; min-height: 145px; padding: 20px; background: white; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.focus-grid article::after { content: ""; position: absolute; top: 0; left: 0; width: 46px; height: 3px; background: var(--blue); }
.focus-number { color: #9ca8b5; font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; }
.focus-grid h3 { margin: 13px 0 7px; color: var(--blue); font-family: Georgia, "Times New Roman", serif; font-size: 16px; }
.focus-grid p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }

footer { display: flex; align-items: center; justify-content: space-between; padding: 21px 0 28px; color: var(--muted); font-size: 10px; }
footer p { margin: 0; }
footer a { font-weight: 700; }

@media (max-width: 960px) {
  .site-nav { gap: 15px; }
  .page-shell { grid-template-columns: 170px minmax(0, 1fr); gap: 34px; }
  .portrait-wrap { width: 148px; }
  .hero h2 { font-size: 45px; }
}

@media (max-width: 760px) {
  :root { --header-height: 56px; }
  .nav-shell, .page-shell { width: min(calc(100% - 30px), var(--max-width)); }
  .menu-button { display: grid; gap: 4px; width: 34px; height: 34px; place-content: center; color: var(--blue); background: transparent; border: 1px solid var(--line); border-radius: 4px; }
  .menu-button span:not(.sr-only) { display: block; width: 18px; height: 2px; background: currentColor; }
  .site-nav { position: absolute; top: var(--header-height); left: 0; right: 0; display: none; padding: 14px 18px 17px; background: white; border-top: 1px solid var(--soft-line); box-shadow: 0 14px 25px rgba(8,31,57,.1); }
  .site-nav.open { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 20px; }
  .site-nav a { padding: 8px 0; }
  .site-nav a::after { display: none; }
  .language-button { margin-top: 8px; }
  .page-shell { display: block; }
  .profile-card { position: relative; top: auto; display: grid; grid-template-columns: 96px 1fr; gap: 17px; padding: 25px 0 23px; border-bottom: 1px solid var(--line); }
  .portrait-wrap { width: 96px; margin: 0; grid-row: span 2; }
  .profile-heading { align-self: center; }
  .profile-meta { margin: 0; padding: 0; border: 0; grid-column: 2; }
  .profile-links, .availability { grid-column: 1 / -1; }
  .profile-links { margin-top: 0; }
  .availability { margin: 0; }
  .content { padding-top: 0; }
  .hero { padding: 37px 0 20px; }
  .hero h2 { font-size: clamp(36px, 11vw, 47px); }
  .hero-lead { font-size: 15px; }
  .section { padding: 44px 0; }
  #research { padding-top: 24px; }
  .submission-entry { padding: 20px 18px 21px; }
  .timeline article { grid-template-columns: 1fr; gap: 7px; }
  .focus-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  body { font-size: 13px; }
  .wordmark-name { font-size: 16px; }
  .profile-card { grid-template-columns: 82px 1fr; gap: 15px; }
  .portrait-wrap { width: 82px; }
  .profile-heading h1 { font-size: 20px; }
  .role { font-size: 10px; }
  .section-heading h2 { font-size: 25px; }
  .submission-entry h3 { font-size: 20px; }
  .honor-list article { grid-template-columns: 58px 1fr; gap: 12px; }
}

@media print {
  .site-header, .menu-button, .availability, footer a { display: none !important; }
  .page-shell { width: 100%; grid-template-columns: 190px 1fr; gap: 28px; }
  .profile-card { position: static; }
  .content { padding-top: 30px; }
  .section { break-inside: avoid; }
  .submission-entry, .focus-grid article { box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
