@font-face {
  font-family: Lato;
  src: url("../fonts/lato/Lato-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Lato;
  src: url("../fonts/lato/Lato-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --background: #f5f6f7;
  --surface: #fff;
  --text: #30363c;
  --muted: #616970;
  --line: #e6e9ec;
  --link: #245e98;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 82px; }
body { margin: 0; background: var(--background); color: var(--text); font: 15px/1.65 Lato, Arial, sans-serif; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.icon { width: 17px; height: 17px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.15em; }
.icon-filled { fill: currentColor; stroke: none; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.4; }
p { margin-bottom: 12px; }
h2 { margin-bottom: 17px; font-size: 21px; font-weight: 700; }
h3 { margin-bottom: 7px; font-size: 16px; }
.skip-link { position: fixed; z-index: 5; top: -80px; left: 12px; padding: 10px; background: white; }
.skip-link:focus { top: 8px; }
.topbar { position: sticky; top: 0; z-index: 3; background: #fff; border-bottom: 1px solid var(--line); }
.topbar-inner { width: min(1100px, calc(100% - 48px)); min-height: 59px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.site-name { font-size: 17px; font-weight: 700; color: var(--text); white-space: nowrap; }
.site-name span { margin-left: 6px; font-family: KaiTi, STKaiti, "Kaiti SC", "楷体", serif; font-size: 20px; color: var(--muted); font-weight: 400; }
nav { display: flex; flex-wrap: wrap; gap: 24px; }
nav a { font-size: 13px; color: var(--muted); }
.layout { width: min(1100px, calc(100% - 48px)); margin: 28px auto; display: grid; grid-template-columns: 235px minmax(0, 1fr); gap: 24px; align-items: start; }
.profile, .section { background: var(--surface); border: 1px solid var(--line); border-radius: 7px; }
.profile { position: sticky; top: 87px; padding: 22px 19px; text-align: center; }
.profile-photo { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: 76% center; border-radius: 4px; margin: 0 auto 16px; }
.profile h1 { margin-bottom: 8px; font-size: 24px; }
.profile h1 span { margin-left: 5px; font-family: KaiTi, STKaiti, "Kaiti SC", "楷体", serif; font-size: 27px; font-weight: 400; }
.role { font-size: 13px; line-height: 1.65; margin-bottom: 10px; }
.profile-location { color: var(--muted); font-size: 12px; margin-bottom: 12px; }
.profile-email { font-size: 12px; overflow-wrap: anywhere; }
.profile-links { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; margin-top: 12px; font-size: 13px; }
.profile-links a { display: inline-flex; align-items: center; gap: 7px; }
.publication-filters { display: flex; flex-wrap: wrap; gap: 7px; margin: -3px 0 18px; }
.publication-filters button { font: inherit; font-size: 12px; padding: 6px 11px; color: var(--muted); background: white; border: 1px solid var(--line); border-radius: 4px; cursor: pointer; }
.publication-filters button:hover { border-color: var(--link); color: var(--link); }
.publication-filters button[aria-pressed="true"] { background: var(--link); color: white; border-color: var(--link); }
.publication-group + .publication-group { margin-top: 22px; }
.awards-list { list-style: none; margin: 0; padding: 0; }
.awards-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 22px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.awards-list li:first-child { padding-top: 0; }
.awards-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.awards-list p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.award-date { white-space: nowrap; font-size: 12px; color: var(--muted); }
#awards-title .icon { margin-right: 8px; width: 20px; height: 20px; }
.content { min-width: 0; }
.section { padding: 24px 28px; margin-bottom: 20px; }
.section > :last-child { margin-bottom: 0; }
.opportunities { font-size: 14px; color: var(--muted); }
.group-title { font-size: 13px; color: var(--muted); margin: 22px 0 4px; padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.group-title:first-child { margin-top: 0; }
.publication { padding: 16px 0; border-bottom: 1px solid var(--line); }
.publication:last-child { border-bottom: 0; padding-bottom: 0; }
.publication:has(+ .group-title) { border-bottom: 0; padding-bottom: 0; }
.publication-header { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 12px; }
.venue { font-weight: 700; }
.status { color: var(--muted); }
.publication h3 { font-size: 16px; line-height: 1.5; margin-bottom: 6px; }
.publication h3 a { color: var(--text); }
.publication p { font-size: 13px; color: var(--muted); margin-bottom: 5px; }
.publication p strong { color: var(--text); }
.publication .citation { font-size: 12px; }
.paper-link { display: inline-block; font-size: 12px; margin-right: 14px; }
.experience-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.experience-top h3 { margin-bottom: 3px; }
.experience-top time { font-size: 12px; color: var(--muted); }
.job-title { font-size: 13px; color: var(--muted); margin: 5px 0 12px; }
.experience ul, .service-list { padding-left: 19px; margin: 0; }
.experience li, .service-list li { margin-bottom: 9px; font-size: 14px; }
.experience li:last-child, .service-list li:last-child { margin-bottom: 0; }
.skills-list { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 13px 16px; margin: 0; font-size: 14px; }
.skills-list dt { font-weight: 700; }
.skills-list dd { margin: 0; color: var(--muted); }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding: 0 3px 12px; font-size: 11px; color: var(--muted); }

@media (max-width: 850px) {
  .layout { grid-template-columns: 205px minmax(0, 1fr); gap: 18px; }
  .section { padding: 21px; }
  .profile { padding: 18px 14px; }
  nav { gap: 16px; }
  .skills-list { grid-template-columns: 1fr; gap: 3px; }
  .skills-list dd { margin-bottom: 10px; }
}

@media (max-width: 650px) {
  html { scroll-padding-top: 115px; }
  .topbar-inner { width: calc(100% - 32px); flex-wrap: wrap; gap: 8px; padding: 12px 0; }
  nav { width: 100%; justify-content: space-between; gap: 8px; }
  nav a { font-size: 12px; }
  .layout { width: calc(100% - 24px); display: block; margin-top: 16px; }
  .profile { position: static; margin-bottom: 16px; padding: 20px; }
  .profile-photo { width: 128px; height: 128px; border-radius: 50%; }
  .profile h1 { font-size: 23px; }
  .profile-location { display: none; }
  .section { padding: 20px; margin-bottom: 16px; }
  h2 { font-size: 20px; }
  .publication h3 { font-size: 15px; }
  .awards-list li { flex-wrap: wrap; }
  footer { padding-inline: 6px; }
}

@media print {
  body { background: white; font-size: 11pt; }
  .topbar, .skip-link, footer, .publication-filters, #publication-status { display: none; }
  .publication-group[hidden] { display: block !important; }
  .layout { display: block; width: 100%; margin: 0; }
  .profile { position: static; border: 0; padding: 0 0 15px; }
  .profile-photo { display: none; }
  .section { border: 0; padding: 12px 0; margin: 0; }
  .publication, .experience, .service-list li { break-inside: avoid; }
}
