:root {
  color-scheme: light;
  --ink: #494e52;
  --muted: #626970;
  --link: #224b8d;
  --line: #e9eaec;
  --paper: #ffffff;
  --header-height: 60px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Trebuchet MS", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; border-radius: 2px; }
img { display: block; max-width: 100%; }
p { margin: 0 0 14px; }
strong { font-weight: 700; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -70px; left: 18px; z-index: 20; padding: 8px 16px; background: var(--paper); border: 1px solid var(--link); }
.skip-link:focus { top: 10px; }
.site-header { position: sticky; top: 0; z-index: 10; background: var(--paper); border-bottom: 1px solid var(--line); }
.nav-inner { max-width: 1280px; min-height: var(--header-height); margin: auto; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.wordmark { flex-shrink: 0; color: var(--ink); font-size: 18px; font-weight: 700; }
.wordmark:hover { text-decoration: none; }
.wordmark-dot { color: var(--link); }
.nav-links { display: flex; gap: 27px; align-self: stretch; align-items: center; }
.nav-links a { color: var(--muted); font-size: 15px; position: relative; white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--link); text-decoration: none; }
.nav-links a[aria-current]::after { content: ""; position: absolute; bottom: -18px; left: 0; right: 0; height: 2px; background: var(--link); }
.page-layout { max-width: 1280px; padding: 36px 28px 24px; margin: auto; display: grid; grid-template-columns: 220px minmax(0, 1fr); column-gap: 36px; align-items: start; }
.profile { position: sticky; top: 96px; }
/* 720 × 900 crop at (480, 698): eyes near 38% height, with autumn scenery on the left. */
.portrait { position: relative; width: 220px; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 8px; margin-bottom: 23px; background: #e6eeec; }
.portrait img { position: absolute; width: 177.778%; max-width: none; height: auto; left: -66.667%; top: -77.556%; }
h1 { font-size: 26px; line-height: 1.2; margin: 0 0 5px; font-weight: 700; }
.chinese-name { font-size: 16px; color: var(--muted); letter-spacing: 3px; margin-bottom: 15px; }
.position { font-size: 15px; margin-bottom: 3px; font-weight: 700; }
.affiliation { font-size: 15px; line-height: 1.6; margin-bottom: 20px; }
.location { color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
svg { width: 17px; height: 17px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.profile-links { display: grid; gap: 12px; }
.profile-links a { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.5; color: var(--ink); }
.profile-links a:hover { color: var(--link); }
.profile-links svg { margin-top: 3px; color: var(--muted); }
.profile-email { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.5; }
.profile-links .email-address { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.profile-note { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
main { min-width: 0; scroll-margin-top: 90px; }
section { scroll-margin-top: 90px; margin-bottom: 34px; }
h2 { font-size: 25px; line-height: 1.35; font-weight: 700; margin: 0 0 17px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.intro { font-size: 16px; line-height: 1.65; }
.contact-line { font-size: 15px; margin-top: 18px; }
.contact-line a { white-space: nowrap; margin-left: 4px; }
.news-list { margin: 0; padding-left: 26px; }
.news-list li { padding-left: 2px; margin: 0 0 10px; font-size: 16px; line-height: 1.6; }
.news-list li::marker { color: var(--muted); }
.news-list time { display: inline; margin-right: 10px; font-weight: 700; font-style: italic; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.section-heading h2 { margin: 0; padding: 0; border: 0; }
.small-link { font-size: 14px; white-space: nowrap; }
.section-note { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.publication { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; padding: 25px 0; border-bottom: 1px solid #f0f0f0; align-items: center; }
.publication:last-child { border-bottom: 0; }
.paper-figure { position: relative; display: flex; align-items: center; justify-content: center; padding: 20px 8px 8px; min-height: 155px; background: var(--paper); border: 1px solid #dfe2e5; border-radius: 3px; box-shadow: 0 1px 3px rgb(0 0 0 / 8%); }
.paper-figure:hover { border-color: #aebed4; }
.paper-figure img { width: 100%; height: auto; max-height: 200px; object-fit: contain; }
.figure-label { position: absolute; left: -5px; top: 5px; padding: 1px 10px; color: #ffffff; background: var(--link); font-size: 12px; font-weight: 700; line-height: 1.6; }
h3 { margin: 0 0 7px; font-size: 17px; font-weight: 700; line-height: 1.45; }
.publication h3 a { color: var(--link); }
.authors { font-size: 14px; line-height: 1.6; color: var(--muted); margin-bottom: 6px; }
.authors strong { color: var(--ink); }
.venue { font-size: 13px; font-style: italic; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.venue span { font-weight: 400; }
.venue .presentation { display: inline-block; margin-left: 5px; padding: 0 6px; border-radius: 3px; background: #edf2f8; color: var(--link); font-size: 12px; font-style: normal; font-weight: 700; }
.venue .presentation.oral { background: #f6eded; color: #8c3337; }
.paper-summary { font-size: 14px; line-height: 1.6; margin-bottom: 8px; }
.paper-links { display: flex; flex-wrap: wrap; gap: 5px 12px; font-size: 14px; }
.paper-links a { display: inline-flex; align-items: center; min-height: 30px; padding: 2px 0; line-height: 1.5; }
.education-group-title { color: var(--muted); font-size: 15px; margin: 24px 0 16px; }
.education-row { display: grid; grid-template-columns: 155px minmax(0, 1fr); gap: 18px; margin-bottom: 20px; }
.education-date { color: var(--muted); font-size: 14px; padding-top: 2px; }
.education-row h3, .education-row h4 { font-size: 16px; line-height: 1.45; margin: 0 0 3px; }
.education-row p { color: var(--muted); font-size: 14px; margin-bottom: 0; }
.site-footer { border-top: 1px solid var(--line); padding-top: 20px; display: flex; justify-content: space-between; gap: 20px; font-size: 12px; color: var(--muted); }
@media (max-width: 960px) {
  .page-layout { grid-template-columns: 200px minmax(0, 1fr); column-gap: 30px; }
  .portrait { width: 190px; }
  .nav-links { gap: 20px; }
  .publication { grid-template-columns: 200px minmax(0, 1fr); gap: 22px; }
  .paper-figure { min-height: 125px; }
}
@media (min-width: 701px) and (max-width: 850px) {
  .publication { grid-template-columns: 1fr; gap: 17px; }
  .paper-figure { width: 100%; max-width: 350px; }
}
@media (max-width: 700px) {
  :root { --header-height: 54px; }
  .nav-inner { display: block; padding: 0 20px; }
  .wordmark { display: none; }
  .nav-links { min-height: var(--header-height); gap: 8px; justify-content: space-between; overflow-x: auto; padding: 0 2px; scrollbar-width: none; }
  .nav-links a { font-size: 13px; padding: 15px 0; }
  .nav-links a[aria-current]::after { bottom: 0; }
  .page-layout { display: block; padding: 27px 22px 24px; }
  .profile { position: static; margin-bottom: 29px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
  .profile-heading { display: flex; align-items: center; gap: 20px; }
  .portrait { flex: 0 0 100px; width: 100px; margin: 0; }
  h1 { font-size: 25px; }
  .chinese-name { font-size: 14px; margin-bottom: 8px; }
  .position { display: inline; font-size: 13px; }
  .affiliation { font-size: 13px; margin-bottom: 0; line-height: 1.5; }
  .affiliation br { display: none; }
  .location { margin: 18px 0 15px; font-size: 13px; }
  .profile-links { display: flex; flex-wrap: wrap; gap: 12px 22px; }
  .profile-links a { font-size: 13px; gap: 6px; }
  .profile-links svg { width: 15px; height: 15px; }
  .profile-email { font-size: 13px; gap: 6px; }
  .profile-note { display: none; }
  body { font-size: 15px; }
  h2 { font-size: 23px; }
  .intro, .contact-line { font-size: 15px; }
  section { margin-bottom: 30px; scroll-margin-top: 78px; }
  .news-list { padding-left: 21px; }
  .news-list li { margin-bottom: 10px; font-size: 15px; }
  .news-list time { margin-right: 6px; }
  .section-heading { gap: 12px; }
  .small-link { font-size: 12px; }
  .publication { grid-template-columns: 1fr; gap: 17px; padding: 23px 0; }
  .paper-figure { width: 100%; max-width: 350px; min-height: 140px; padding: 22px 10px 10px; }
  .paper-figure img { max-height: 210px; }
  h3 { font-size: 17px; }
  .paper-links a { min-height: 34px; }
  .education-row { grid-template-columns: 90px minmax(0, 1fr); gap: 12px; }
  .education-date { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
