:root {
  color-scheme: light;
  --bg: #f8f9f6;
  --ink: #253c35;
  --muted: #606d66;
  --accent: #1b6c55;
  --line: #dce3dc;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.75 var(--sans); -webkit-font-smoothing: antialiased; }
body::before { content: ''; display: block; height: 5px; background: linear-gradient(90deg, #244e40 0%, #58917a 52%, #d7debd 100%); }
::selection { background: #d5e8dc; color: #143e31; }
a { color: var(--accent); text-decoration: none; text-underline-offset: 4px; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 2px; }
p { margin: 0 0 14px; }
strong { font-weight: 600; }
[hidden] { display: none !important; }
.page { max-width: 1120px; margin: auto; padding: 0 48px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); padding: 23px 0; }
.wordmark { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-size: 16px; font-weight: 650; letter-spacing: -.3px; white-space: nowrap; }
.wordmark-dot { width: 6px; height: 6px; border-radius: 50%; background: #629580; }
nav { display: flex; gap: 27px; align-items: center; font-size: 12px; }
nav a { color: var(--muted); padding: 7px 0; }
nav a:last-child { color: var(--accent); padding: 5px 12px; border: 1px solid #c5d4c9; border-radius: 6px; }
.intro { display: grid; grid-template-columns: .95fr 1.05fr; gap: 49px; align-items: center; padding: 65px 0 59px; }
.intro-title { position: relative; padding: 4px 0 6px; }
.eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: 10px; font-weight: 600; color: var(--accent); margin-bottom: 15px; }
h1 { font-family: var(--serif); font-weight: 400; font-size: 57px; line-height: 1.08; letter-spacing: -2px; margin: 0 0 22px; }
h1 span { display: block; font-family: 'Microsoft YaHei','PingFang SC',sans-serif; font-size: 20px; letter-spacing: 5px; margin-top: 15px; color: var(--muted); font-weight: 400; }
.intro-lead { font-family: var(--serif); font-size: 26px; line-height: 1.45; letter-spacing: -.5px; margin: 0; max-width: 410px; }
.intro-lead em { color: var(--accent); }
.desktop-break { display: none; }
.intro-body { padding-left: 29px; border-left: 1px solid #cfdbd0; }
.bio { color: #4e5c54; font-size: 13px; }
.bio p { margin-bottom: 13px; }
.bio strong { color: var(--ink); }
.socials { display: flex; flex-wrap: wrap; gap: 7px 18px; align-items: center; margin-top: 20px; font-size: 11px; font-weight: 600; }
.socials a { padding: 4px 0; }
.socials a span[aria-hidden] { font-weight: 400; font-size: 11px; }
.file-type { font-size: 9px; font-weight: 500; border: 1px solid #c4cec7; border-radius: 3px; padding: 2px 4px; margin-left: 3px; }
.section { padding: 40px 0; border-top: 1px solid var(--line); }
h2 { font-family: var(--serif); font-size: 34px; font-weight: 400; line-height: 1.25; letter-spacing: -.7px; margin: 0 0 28px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 27px; }
.section-heading .eyebrow { margin-bottom: 7px; }
.section-heading h2 { margin: 0; }
.section-note { font-size: 11px; color: var(--muted); }
.news { display: grid; grid-template-columns: 215px minmax(0,1fr); gap: 30px; background: #edf2eb; border: 1px solid #dce5d9; border-radius: 13px; padding: 31px 34px; margin-bottom: 40px; }
.news-heading .eyebrow { font-size: 9px; margin-bottom: 7px; letter-spacing: 1.8px; }
.news h2 { font-size: 37px; margin: 0 0 11px; }
.heading-dot { color: #86a18a; }
.news-heading > p:last-child { color: #657365; font-size: 12px; line-height: 1.7; }
.news-list { list-style: none; padding: 0; margin: 0; }
.news-list li { position: relative; display: grid; grid-template-columns: 57px minmax(0,1fr); gap: 23px; padding: 0 0 18px; }
.news-list li:last-child { padding-bottom: 0; }
.news-list li::before { content: ''; position: absolute; left: 66px; top: 7px; bottom: -7px; width: 1px; background: #c9d5c6; }
.news-list li:last-child::before { bottom: auto; height: 0; }
.news-list li::after { content: ''; position: absolute; left: 63px; top: 7px; width: 7px; height: 7px; background: #7e9a83; border: 2px solid #edf2eb; border-radius: 50%; box-shadow: 0 0 0 1px #a5b6a2; }
.news-list time { color: #4d6454; font-size: 10px; font-weight: 600; line-height: 1.5; letter-spacing: .8px; padding-top: 3px; }
.news-list time span { display: block; font-size: 10px; color: #758172; letter-spacing: .3px; font-weight: 400; }
.news-list li > div { padding-left: 7px; }
.news-list p { color: #42564a; font-size: 12px; margin: 3px 0 0; }
.news-tag { display: inline-block; color: #65715c; text-transform: uppercase; letter-spacing: 1px; font-size: 8px; line-height: 1.4; font-weight: 650; }
.publication-tag { color: #206445; }
.talk-tag { color: #8c693e; }
.paper-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.venue { background: #e0eddf; color: #285d39; font-weight: 700; padding: 4px 8px; border-radius: 4px; }
h3,h4 { font-size: 16px; line-height: 1.5; font-weight: 600; margin: 0 0 9px; letter-spacing: -.15px; }
.authors strong { color: #255e47; font-weight: 650; background: #edf4e9; border-radius: 3px; padding: 1px 3px; }
.paper-links a { padding: 3px 0; }
.paper-links .github-stars { display: inline-flex; align-items: center; padding: 0; margin-left: 3px; min-height: 24px; }
.github-stars img { display: block; height: 20px; width: auto; max-width: 140px; }
.star-fallback { color: var(--muted); font-size: 11px; border: 1px solid var(--line); padding: 1px 7px; border-radius: 4px; }
.timeline-row { display: grid; grid-template-columns: 150px 124px minmax(0,1fr); gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); align-items: start; }
.timeline-row:last-child { border-bottom: 0; padding-bottom: 0; }
.timeline-row:first-of-type { padding-top: 0; }
.timeline-row h3 { margin-bottom: 3px; }
.timeline-row p { font-size: 13px; color: var(--muted); margin-bottom: 0; }
.timeline-row .date { font-size: 11px; padding-top: 5px; font-variant-numeric: tabular-nums; }
.timeline-row .role { font-size: 12px; margin-bottom: 7px; color: #49584f; }
.institution-logo { width: 124px; height: 86px; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid #e1e5de; border-radius: 9px; padding: 10px; }
.institution-logo img { width: 100%; height: 100%; object-fit: contain; }
.unity-logo { background: #252e2b; border-color: #252e2b; }
.unity-logo img { width: 43px; height: 49px; }
.pku-logo img { width: 65px; height: 65px; }
.ntu-logo { padding: 8px; background: #181c62; border-color: #181c62; }
.location { font-size: 11px; font-weight: 400; color: var(--muted); margin-left: 9px; }
.expected { font-size: 9px; }
footer { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding: 25px 0 34px; color: var(--muted); font-size: 10px; margin-top: 8px; }
footer p { margin: 0; }
footer p:first-child span { padding: 0 5px; }
footer p:last-child a { padding: 8px; margin-left: 8px; }
.skip-link { position: absolute; left: 20px; top: -100px; background: var(--bg); padding: 8px 15px; border: 1px solid var(--accent); z-index: 10; }
.skip-link:focus { top: 12px; }
@media (max-width: 850px) {
  .page { padding: 0 30px; }
  .intro { gap: 27px; padding: 45px 0; }
  h1 { font-size: 46px; }
  .intro-lead { font-size: 24px; }
  .intro-body { padding-left: 23px; }
  .news { grid-template-columns: 165px 1fr; padding: 27px; gap: 22px; }
  .timeline-row { grid-template-columns: 115px 110px minmax(0,1fr); gap: 19px; }
  .institution-logo { width: 110px; }
}
@media (max-width: 640px) {
  .page { padding: 0 23px; }
  .topbar { flex-wrap: wrap; gap: 9px; padding: 17px 0; }
  .wordmark { font-size: 15px; }
  nav { gap: 17px; font-size: 11px; }
  .intro { grid-template-columns: 1fr; gap: 25px; padding: 37px 0; }
  h1 { font-size: 49px; margin-bottom: 16px; }
  h1 span { display: inline-block; font-size: 19px; letter-spacing: 2px; margin: 0 0 0 12px; vertical-align: middle; }
  .intro-lead { max-width: 420px; font-size: 25px; }
  .intro-body { border-left: 0; padding: 0; }
  .bio { font-size: 14px; }
  .socials { font-size: 12px; margin-top: 17px; }
  .news { grid-template-columns: 1fr; padding: 24px; gap: 17px; margin-bottom: 29px; }
  .news-heading { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
  .news-heading .eyebrow { grid-column: 1 / -1; }
  .news-heading h2 { margin: 0; }
  .news-heading > p:last-child { margin: 0; font-size: 11px; }
  .news-list p { font-size: 13px; }
  .news-list li { padding-bottom: 19px; }
  .section { padding: 31px 0; }
  .news.section { padding: 24px; }
  h2 { font-size: 31px; }
  .timeline-row { grid-template-columns: 110px minmax(0,1fr); gap: 8px 18px; }
  .timeline-row .date { grid-column: 2; grid-row: 1; padding: 0; }
  .institution-logo { grid-column: 1; grid-row: 1 / 3; }
  .institution-content { grid-column: 2; }
  .timeline-row p { font-size: 12px; }
  .timeline-row h3 { font-size: 15px; }
  .location { display: block; margin: 2px 0; }
  footer { flex-direction: column; gap: 8px; }
}
@media (max-width: 390px) {
  .page { padding: 0 17px; }
  nav { gap: 15px; }
  h1 { font-size: 44px; }
  h1 span { font-size: 17px; margin-left: 8px; }
  .news.section { padding: 22px 18px; }
  .news-list li { grid-template-columns: 43px minmax(0,1fr); gap: 20px; }
  .news-list li::before { left: 51px; }
  .news-list li::after { left: 48px; }
  .section-note { font-size: 9px; }
  .section-heading .eyebrow { font-size: 9px; letter-spacing: 1.4px; }
  .timeline-row { grid-template-columns: 92px minmax(0,1fr); gap: 7px 14px; }
  .institution-logo { width: 92px; height: 77px; padding: 7px; }
  .ntu-logo { padding: 4px; }
  .pku-logo img { width: 60px; height: 60px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* One presentation for every publication, in research-priority order. */
.phd-note { padding: 11px 15px; border-left: 3px solid #739581; background: #edf3e9; border-radius: 0 6px 6px 0; }
.bio { font-size: 16px; }
.socials { font-size: 14px; }
nav { font-size: 14px; }
.eyebrow { font-size: 11px; }
.news-list p { font-size: 15px; }
.news-list time,.news-list time span { font-size: 12px; }
.news-tag { font-size: 10px; }
.news-heading > p:last-child { font-size: 14px; }
.section-note { font-size: 12px; }
.timeline-row p { font-size: 16px; }
.timeline-row .role { font-size: 14px; }
.timeline-row .date { font-size: 13px; }
.timeline-row h3 { font-size: 19px; }
.location,.expected { font-size: 12px; }
footer { font-size: 12px; }
@media (max-width: 850px) {
  .intro { grid-template-columns: .8fr 1.2fr; }
}
@media (max-width: 640px) {
  .intro { grid-template-columns: 1fr; }
  nav { font-size: 13px; gap: 15px; flex-wrap: wrap; }
  .socials { font-size: 14px; }
  .news-heading { grid-template-columns: 1fr; gap: 4px; }
  .news-heading > p:last-child br { display: none; }
  .news-heading > p:last-child { font-size: 13px; }
  .timeline-row { grid-template-columns: 110px minmax(0,1fr); gap: 9px 18px; }
  .timeline-row h3 { font-size: 17px; }
  .timeline-row p { font-size: 15px; }
  .timeline-row .date { font-size: 12px; }
  .section-note { font-size: 11px; }
}
@media (max-width: 390px) {
  nav { gap: 13px; font-size: 12px; }
  .timeline-row { grid-template-columns: 92px minmax(0,1fr); gap: 9px 14px; }
  .section-heading { align-items: flex-start; }
  .section-note { max-width: 95px; text-align: right; }
}


/* A bounded, keyboard-accessible timeline keeps News compact as it grows. */
.news { align-items: start; }
.news-heading > p { margin-bottom: 14px; }
.scroll-hint { display: block; color: #687a67; font-size: 12px; margin-top: 24px; }
.news-scroll { height: 302px; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: #99ad99 transparent; padding: 5px 18px 6px 3px; border-radius: 3px; }
.news-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: 7px; }
.news-scroll::-webkit-scrollbar { width: 7px; }
.news-scroll::-webkit-scrollbar-thumb { background: #99ad99; border: 2px solid #edf2eb; border-radius: 10px; }
.news-scroll::-webkit-scrollbar-track { background: transparent; }
.news-list li { padding-bottom: 24px; }

/* The same image/text layout is used for papers and open-source work. */
.paper { display: grid; grid-template-columns: 205px minmax(0,1fr); gap: 34px; align-items: center; padding: 29px 0; margin: 0; border-bottom: 1px solid var(--line); }
.paper:last-child { border-bottom: 0; padding-bottom: 0; }
.paper:first-of-type { padding-top: 5px; }
.paper-content { min-width: 0; }
.paper-image { display: flex; align-items: center; justify-content: center; width: 205px; height: 202px; padding: 10px; background: #fff; border: 1px solid #dfe5db; border-radius: 7px; box-shadow: 0 3px 10px #243e3205; transition: border-color .15s ease; }
.paper-image:hover { border-color: #8caa92; }
.paper-image.page-preview { height: 250px; padding: 6px; }
.paper-image.project-preview { padding: 19px; }
.paper-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 13px; color: var(--muted); font-size: 12px; margin-bottom: 9px; line-height: 1.5; }
.paper h3 { font-size: 19px; line-height: 1.5; margin-bottom: 11px; letter-spacing: -.15px; }
.paper h3 a { color: var(--ink); }
.paper h3 a:hover { color: var(--accent); }
.authors,.project-credit { font-size: 14px; line-height: 1.8; color: var(--muted); margin: 0 0 11px; }
.paper-summary { font-size: 15px; line-height: 1.7; color: #4e5953; margin: 0 0 12px; }
.paper-links { display: flex; flex-wrap: wrap; gap: 9px 18px; align-items: center; font-size: 14px; font-weight: 600; }
@media (max-width: 850px) {
  .paper { grid-template-columns: 165px minmax(0,1fr); gap: 25px; }
  .paper-image { width: 165px; height: 165px; }
  .paper-image.page-preview { height: 215px; }
}
@media (max-width: 640px) {
  .news-scroll { height: 292px; padding-right: 12px; }
  .news-heading { display: block; }
  .news-heading .eyebrow { margin-bottom: 6px; }
  .news-heading h2 { margin-bottom: 5px; }
  .news-heading > p { display: none; }
  .scroll-hint { margin-top: 8px; font-size: 11px; }
  .paper { grid-template-columns: 1fr; gap: 20px; padding: 27px 0; }
  .paper-image,.paper-image.page-preview { width: 100%; height: 220px; }
  .paper-image.project-preview { padding: 21px; }
  .paper h3 { font-size: 18px; }
}

@media print {
  body { background: #fff; font-size: 11px; }
  body::before,.topbar,.skip-link { display: none; }
  .page { max-width: none; padding: 0; }
  .intro { padding: 15px 0; }
  .section { padding: 20px 0; }
  .paper,.timeline-row { break-inside: avoid; }
  a { color: inherit; }
  .news { background: #f6f8f5; }
  .news-scroll { height: auto; overflow: visible; }
  .scroll-hint { display: none; }
  .github-stars img { display: none; }
  footer { padding: 15px 0; }
}
