@charset "UTF-8";

:root {
  --ink: #253342;
  --muted: #68747f;
  --accent: #224b8d;
  --accent-strong: #00369f;
  --accent-soft: #eef2f8;
  --line: #e8ecef;
  --wash: #f4f7f9;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; font-family: var(--font); font-size: 18px; line-height: 1.7; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
body.modal-open { overflow: hidden; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
button { font: inherit; color: inherit; border: 0; cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 650; line-height: 1.3; }
strong { font-weight: 600; }
::selection { color: #153565; background: #dce5f3; }
:focus-visible { outline: 3px solid var(--accent-strong); outline-offset: 4px; }
.shell { width: min(1280px, calc(100% - 96px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -80px; padding: 12px 18px; color: white; background: var(--ink); z-index: 100; }
.skip-link:focus { top: 12px; }

/* Keep the profile and reading column on the same grid throughout the page. */
.site-header { position: sticky; top: 0; z-index: 30; height: 64px; border-bottom: 1px solid #f0f2f4; background: rgba(255, 255, 255, .97); backdrop-filter: blur(12px); }
.nav-wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: baseline; gap: 12px; color: var(--ink); font-size: 17px; font-weight: 650; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand span { font-size: 16px; font-weight: 400; color: var(--muted); }
nav { display: flex; gap: 5px; align-items: center; }
nav a { font-size: 15px; padding: 10px 13px; color: #606d78; }
nav a:hover { color: var(--accent); text-decoration: none; background: #f7f9fa; }
nav a.active { color: var(--accent); box-shadow: inset 0 -2px var(--accent); }
.menu-toggle { display: none; background: transparent; }
.page-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; padding-top: 32px; }
.profile { position: sticky; top: 96px; padding-top: 2px; }
.profile-photo { width: 176px; height: 176px; margin-bottom: 22px; object-fit: cover; object-position: 50% 20%; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.profile-identity { min-width: 0; }
.profile h1 { font-size: 28px; line-height: 1.25; letter-spacing: -.025em; }
.profile h1 span { display: block; font-size: 24px; font-weight: 400; letter-spacing: .04em; color: #5c6976; margin-top: 7px; }
.profile-role { color: var(--accent); font-size: 17px; font-weight: 550; margin-top: 24px; }
.profile-affiliation { font-size: 16px; line-height: 1.75; margin-top: 9px; color: #56636f; }
.profile-affiliation > span { display: block; }
.profile-links { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; font-size: 15px; color: var(--muted); }
.profile-links li { display: flex; align-items: center; gap: 11px; }
.profile-links svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.profile-links a { color: var(--accent); overflow-wrap: anywhere; }
.profile-links a span { font-size: 12px; margin-left: 3px; }
.page-content { min-width: 0; }
.about-section h2 { font-size: 28px; letter-spacing: -.02em; margin-bottom: 20px; }
.about-section p { max-width: 760px; font-size: 18px; line-height: 1.8; }
.about-section .intro-lead { font-size: 20px; line-height: 1.75; margin-bottom: 14px; }
.about-section strong { color: var(--accent); }
.content-section { margin-top: 42px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 24px; }
.section-heading h2 { font-size: 28px; letter-spacing: -.02em; }

/* Center compact image and text groups within equally sized paper rows. */
.research-section .section-heading { margin-bottom: 0; }
.publication-list { display: grid; grid-auto-rows: 1fr; }
.publication { display: grid; grid-template-columns: clamp(160px, 24%, 240px) minmax(0, 1fr); column-gap: 24px; align-items: center; min-height: 196px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.publication:last-child { border-bottom-color: transparent; }
.publication-media { position: relative; align-self: center; min-width: 0; padding-top: 27px; }
.figure-button { display: block; position: relative; width: 100%; aspect-ratio: 16 / 9; padding: 0; background: #fff; box-shadow: 0 2px 5px #1f2a371a; overflow: hidden; }
.figure-button img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: transform .2s; }
.figure-button:hover img { transform: scale(1.035); }
.figure-zoom { display: grid; place-items: center; width: 23px; height: 23px; position: absolute; bottom: 5px; right: 5px; border-radius: 50%; background: #ffffffeb; color: #7f8f9b; font-size: 16px; }
.publication-copy { display: flex; flex-direction: column; justify-content: center; gap: 10px; min-width: 0; }
.venue { position: absolute; left: -6px; top: 0; display: inline-block; max-width: calc(100% + 6px); padding: 2px 13px; color: #fff; background: var(--accent-strong); font-size: 12px; line-height: 1.5; font-weight: 650; }
.publication h3, .project-copy h3 { font-size: 21px; line-height: 1.4; font-weight: 600; letter-spacing: 0; }
.authors, .project-description { font-size: 17px; line-height: 1.5; }
.authors { color: #59636d; }
.authors strong { color: var(--ink); font-weight: 650; }
.paper-links { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 18px; }
.paper-links > a, .text-link { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; line-height: 1.6; font-weight: 550; color: var(--accent); padding: 4px 0; }
.paper-links > a, .project-copy .text-link { font-size: 16px; font-weight: 500; padding-block: 0; }
.text-link span { font-size: 12px; }

.project-entry { display: grid; grid-template-columns: 32% minmax(0, 1fr); column-gap: 11%; align-items: center; }
.project-entry + .project-entry { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.project-media { min-width: 0; padding-top: 2px; }
.project-media video { width: 100%; aspect-ratio: 1.685; display: block; border: 1px solid #e2e7ed; border-radius: 6px; background: #f3f2f8; }
.project-media .wukong-video { aspect-ratio: 16 / 9; }
.video-caption { font-size: 12px; color: var(--muted); margin-top: 8px; }
.project-description { margin-top: 10px; }
.project-recognition { margin-top: 10px; font-size: 14px; line-height: 1.6; color: var(--accent); }
.project-recognition > span { display: block; }
.project-copy .text-link { margin-top: 9px; }

.education-entry { display: flex; align-items: flex-start; gap: 20px; }
.university-mark { flex: none; width: 62px; height: auto; object-fit: contain; }
.education-copy { flex: 1; min-width: 0; }
.entry-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 10px 22px; flex-wrap: wrap; }
.entry-heading h3 { font-size: 21px; }
.entry-date { font-size: 13px; color: var(--muted); }
.education-copy > p { font-size: 16px; margin-top: 8px; }
.education-copy .entry-location { font-size: 14px; color: var(--muted); margin-top: 5px; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); margin-top: 50px; padding-block: 22px 28px; color: var(--muted); font-size: 12px; }
.site-footer a { color: var(--muted); }
.site-footer a span { margin-left: 6px; }

/* Figures can be enlarged without interrupting the reading flow. */
dialog { border: 1px solid var(--line); border-radius: 10px; color: var(--ink); padding: 30px; box-shadow: 0 25px 90px #131c4530; max-height: 90dvh; }
dialog::backdrop { background: #182633b3; backdrop-filter: blur(5px); }
.dialog-close { position: absolute; right: 12px; top: 10px; font-size: 28px; line-height: 1; background: #f2f5f7; border-radius: 50%; height: 38px; width: 38px; color: #586b7b; z-index: 2; }
.dialog-close:hover { background: #e2ecf3; }
.lightbox { width: min(1300px, 94vw); padding: 50px 28px 22px; }
.lightbox img { width: 100%; height: auto; max-height: 72dvh; object-fit: contain; }
.lightbox p { font-size: 14px; margin-top: 20px; color: var(--muted); text-align: center; }

@media (max-width: 1100px) {
  .shell { width: calc(100% - 64px); }
  .page-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 36px; }
  .profile h1 { font-size: 27px; }
  .profile h1 span { font-size: 22px; }
  .profile-links { font-size: 14px; gap: 13px; }
  .profile-links li { gap: 9px; }
  .publication { column-gap: 20px; }
  .publication h3, .project-copy h3 { font-size: 20px; }
  .project-entry { grid-template-columns: 1fr; gap: 20px; }
  .project-media { max-width: 510px; }
}
@media (max-width: 900px) {
  .shell { width: calc(100% - 48px); }
  .brand { font-size: 16px; gap: 8px; }
  .brand span { font-size: 14px; }
  nav a { font-size: 14px; padding-inline: 9px; }
  .page-layout { grid-template-columns: 1fr; gap: 32px; padding-top: 34px; }
  .profile { position: static; display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; column-gap: 24px; align-items: start; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
  .profile-photo { width: 112px; height: 112px; margin: 0; }
  .profile h1 { font-size: 31px; }
  .profile h1 span { display: inline-block; font-size: 23px; margin: 0 0 0 13px; }
  .profile-role { margin-top: 12px; }
  .profile-affiliation { margin-top: 5px; }
  .profile-links { grid-column: 3; grid-row: 1; align-self: center; margin: 0; font-size: 15px; }
  .about-section p { max-width: 100%; }
  .project-entry { grid-template-columns: 34% minmax(0, 1fr); column-gap: 6%; }
}
@media (max-width: 680px) {
  html { scroll-padding-top: 88px; }
  .shell { width: calc(100% - 40px); }
  .site-header { height: 64px; }
  .brand { gap: 10px; font-size: 15px; }
  .brand span { font-size: 13px; }
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 42px; height: 42px; }
  .menu-toggle span { width: 21px; height: 2px; background: #52616d; transition: transform .2s; }
  .menu-toggle[aria-expanded=true] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded=true] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  nav { display: none; position: absolute; top: 63px; left: 0; right: 0; padding: 12px 20px 18px; background: white; border-bottom: 1px solid var(--line); grid-template-columns: 1fr 1fr; gap: 4px; box-shadow: 0 12px 20px #24364908; }
  nav.open { display: grid; }
  nav a { font-size: 16px; padding: 10px 12px; }
  .page-layout { padding-top: 30px; gap: 28px; }
  .profile { grid-template-columns: 88px minmax(0, 1fr); column-gap: 16px; padding-bottom: 26px; }
  .profile-photo { width: 88px; height: 88px; border-width: 3px; }
  .profile h1 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 13px; font-size: 26px; }
  .profile h1 span { display: inline; font-size: 22px; margin: 0; }
  .profile-role { margin-top: 12px; font-size: 16px; }
  .profile-affiliation { font-size: 15px; line-height: 1.7; }
  .profile-links { grid-column: 1 / -1; grid-row: 2; display: flex; flex-wrap: wrap; gap: 12px 23px; margin-top: 18px; font-size: 14px; }
  .profile-links li:first-child { width: 100%; }
  .profile-links svg { width: 16px; height: 16px; }
  .about-section h2, .section-heading h2 { font-size: 26px; }
  .about-section h2 { margin-bottom: 16px; }
  .about-section .intro-lead { font-size: 18px; margin-bottom: 12px; }
  .about-section p { font-size: 17px; line-height: 1.8; }
  .content-section { margin-top: 34px; }
  .section-heading { flex-wrap: wrap; gap: 6px; padding-bottom: 12px; margin-bottom: 24px; }
  .publication-list { grid-auto-rows: auto; }
  .publication { display: flex; flex-direction: column; align-items: stretch; min-height: 0; gap: 16px; padding-block: 20px; }
  .publication-media { align-self: stretch; }
  .publication-copy { display: block; }
  .venue { left: 0; max-width: 100%; }
  .publication h3, .project-copy h3 { font-size: 21px; line-height: 1.4; }
  .venue { font-size: 12px; }
  .authors, .project-description { margin-top: 10px; font-size: 15px; line-height: 1.65; }
  .paper-links { margin-top: 10px; }
  .paper-links > a, .project-copy .text-link { font-size: 15px; }
  .project-entry { grid-template-columns: 1fr; gap: 18px; }
  .project-media { max-width: none; }
  .education-entry { gap: 16px; }
  .university-mark { width: 49px; }
  .entry-heading { gap: 7px; }
  .entry-heading h3 { font-size: 20px; }
  .entry-date { font-size: 12px; }
  .education-copy > p { font-size: 15px; }
  .site-footer { margin-top: 36px; font-size: 11px; }
  .lightbox { padding: 48px 14px 18px; }
  .lightbox p { font-size: 12px; }
}
@media (max-width: 380px) {
  .shell { width: calc(100% - 32px); }
  .brand { gap: 7px; font-size: 14px; }
  .brand span { font-size: 12px; }
  .profile { grid-template-columns: 72px minmax(0, 1fr); column-gap: 14px; }
  .profile-photo { width: 72px; height: 72px; }
  .profile h1 { font-size: 24px; }
  .profile-links { gap: 12px 16px; font-size: 13px; }
  .publication h3, .project-copy h3 { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
