:root {
  --ink: #1c283a;
  --muted: #526174;
  --blue: #2458ad;
  --blue-dark: #183f82;
  --line: #e4e9f0;
  --tint: #f2f6fc;
  --surface: #ffffff;
  --page: #ffffff;
  --strong: #243449;
  --header-background: rgba(255,255,255,.96);
  --link-decoration: #9bb3d6;
  --file-line: #ccd7e8;
  --badge-line: #dce5f3;
  --button-line: #cbd9ed;
  --accent-line: #9eb8df;
  --portrait-accent: #b5cbea;
  --divider: #bbc7d6;
  --timeline-line: #d4dfed;
  --timeline-dot: #7594c1;
  --recognition-ink: #355782;
  --recognition-line: #9cb6dc;
  --control-line: #d4deeb;
  --close-hover-line: #b8c9e2;
  --control-background: rgba(255,255,255,.94);
  --control-hover: #ffffff;
  --message-background: rgba(255,255,255,.96);
  --control-shadow: rgba(28,40,58,.12);
  --control-shadow-hover: rgba(28,40,58,.18);
  --dialog-shadow: rgba(17,31,52,.2);
  --photo-backdrop: rgba(12,22,38,.8);
  --citation-backdrop: rgba(12,23,40,.62);
  --skip-ink: #ffffff;
  color-scheme: light dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--page);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
@media screen and (prefers-color-scheme: dark) {
  :root {
    --ink: #e8e8e8;
    --muted: #b3b3b3;
    --blue: #8db8ff;
    --blue-dark: #b7d2ff;
    --line: #363636;
    --tint: #1f1f1f;
    --surface: #1f1f1f;
    --page: #141414;
    --strong: #e8e8e8;
    --header-background: rgba(31,31,31,.96);
    --link-decoration: #526f9b;
    --file-line: #404040;
    --badge-line: #404040;
    --button-line: #454545;
    --accent-line: #5c7ca7;
    --portrait-accent: #55729b;
    --divider: #858585;
    --timeline-line: #404040;
    --timeline-dot: #7c9fce;
    --recognition-ink: #bad2f6;
    --recognition-line: #5c7ca7;
    --control-line: #454545;
    --close-hover-line: #5c7ca7;
    --control-background: rgba(31,31,31,.94);
    --control-hover: #292929;
    --message-background: rgba(31,31,31,.96);
    --control-shadow: rgba(0,0,0,.35);
    --control-shadow-hover: rgba(0,0,0,.48);
    --dialog-shadow: rgba(0,0,0,.45);
    --photo-backdrop: rgba(0,0,0,.86);
    --citation-backdrop: rgba(0,0,0,.78);
    --skip-ink: #141414;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6.5rem; }
body { margin: 0; line-height: 1.75; }
a { color: var(--blue); text-decoration: none; text-underline-offset: .2em; }
a:hover { color: var(--blue-dark); text-decoration: underline; }
main p a { text-decoration: underline; text-decoration-color: var(--link-decoration); }
button, summary { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
button, a, summary { touch-action: manipulation; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; border-radius: 4px; }
section:target h2 { scroll-margin-top: 6.5rem; }
svg { width: 1.2rem; height: 1.2rem; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
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; letter-spacing: -.025em; }
strong { font-weight: 600; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: .6rem; left: 1rem; padding: .6rem 1rem; background: var(--blue); color: var(--skip-ink); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid var(--line); background: var(--header-background); backdrop-filter: blur(14px); }
.header-inner { max-width: 1264px; margin: auto; min-height: 82px; padding: 0 36px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .8rem; color: var(--ink); font-size: .95rem; font-weight: 650; white-space: nowrap; }
.brand:hover { text-decoration: none; color: var(--blue); }
.monogram { width: 35px; height: 35px; display: block; flex-shrink: 0; border-radius: 7px; overflow: hidden; }
.monogram img { width: 35px; height: 35px; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 1.65rem; max-width: 100%; }
.site-nav a { padding: 26px 0; color: var(--muted); font-size: .875rem; font-weight: 500; white-space: nowrap; position: relative; }
.site-nav a:hover { text-decoration: none; color: var(--blue); }
.site-nav a[aria-current] { color: var(--blue); }
.site-nav a[aria-current]::after { content: ""; height: 2px; position: absolute; left: 0; right: 0; bottom: 0; background: var(--blue); }
.menu-toggle { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0; background: none; border: 1px solid var(--line); border-radius: 6px; }
.menu-icon { width: 18px; height: 14px; border-top: 1.5px solid; border-bottom: 1.5px solid; position: relative; }
.menu-icon::after { content: ""; position: absolute; top: 5px; left: 0; right: 0; border-top: 1.5px solid; }
.page-layout { --header-height: 83px; --profile-gap: 60px; --profile-width: 244px; --profile-top: calc(var(--header-height) + var(--profile-gap)); max-width: 1264px; margin: auto; display: grid; grid-template-columns: var(--profile-width) minmax(0, 1fr); gap: 86px; padding: var(--profile-gap) 36px 0; }
.profile { align-self: start; }
.profile-scroll { display: contents; }
@media screen and (min-width: 1000px) {
  .profile { position: fixed; top: var(--profile-top); width: var(--profile-width); }
  .page-layout > main { grid-column: 2; }
  .profile-scroll { display: block; max-height: calc(100vh - var(--profile-top) - 24px + 20px); max-height: calc(100dvh - var(--profile-top) - 24px + 20px); margin: -10px; padding: 10px; overflow-x: hidden; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--control-line) transparent; }
  .profile-scroll[tabindex="0"] { overscroll-behavior-y: contain; }
  .profile-scroll:focus-visible { outline: 2px solid var(--blue); outline-offset: 0; border-radius: 6px; }
}
.portrait-wrap { width: 174px; margin-bottom: 1.65rem; position: relative; }
.portrait-wrap::after { content: ""; position: absolute; left: -9px; bottom: -9px; width: 58px; height: 58px; border-left: 2px solid var(--portrait-accent); border-bottom: 2px solid var(--portrait-accent); border-bottom-left-radius: 11px; z-index: -1; }
.portrait-wrap::before { content: ""; position: absolute; top: -9px; right: -9px; width: 29px; height: 29px; border-top: 2px solid var(--portrait-accent); border-right: 2px solid var(--portrait-accent); border-top-right-radius: 11px; z-index: -1; }
.portrait { width: 174px; aspect-ratio: 413 / 603; object-fit: cover; object-position: 50% 50%; border-radius: 10px; }
.profile h1 { font-size: 1.8rem; letter-spacing: -.04em; }
.chinese-name { display: block; margin-top: .55rem; font-size: 1.08rem; letter-spacing: .035em; font-weight: 500; }
.profile-role { color: var(--blue); margin-top: 1rem; font-size: .93rem; font-weight: 650; }
.profile-affiliation { margin-top: .3rem; font-size: .875rem; line-height: 1.65; color: var(--muted); }
.profile-affiliation a { color: var(--ink); }
.profile-location { margin-top: 1rem; display: flex; align-items: center; gap: .55rem; color: var(--muted); font-size: .875rem; }
.profile-location svg { width: 16px; height: 16px; }
.email-link { display: flex; align-items: center; gap: .55rem; margin-top: .5rem; font-size: .875rem; overflow-wrap: anywhere; }
.email-link svg { width: 16px; height: 16px; }
.profile-links { display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; margin: 1.3rem 0; }
.profile-links a { display: inline-flex; align-items: center; gap: .5rem; min-height: 36px; color: var(--muted); font-size: .875rem; }
.profile-links a:hover { color: var(--blue); }
.profile-links svg { width: 16px; height: 16px; }
.profile-links .filled-icon { fill: currentColor; stroke: none; }
.cv-link { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .55rem; max-width: 100%; min-height: 36px; font-size: .875rem; }
.file-type { padding-left: .5rem; margin-left: .2rem; border-left: 1px solid var(--file-line); font-size: .75rem; color: var(--muted); }
main { min-width: 0; }
.section { padding: 0 0 3rem; margin-bottom: 3rem; border-bottom: 1px solid var(--line); scroll-margin-top: 6.5rem; }
.section h2 { font-size: 1.6rem; letter-spacing: -.035em; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.5rem; }
.section-note, .section-link { font-size: .875rem; color: var(--muted); }
.section-link { color: var(--blue); }
.eyebrow { font-size: .75rem; color: var(--blue); letter-spacing: .11em; font-weight: 650; line-height: 1.65; }
.about-section h2 { font-size: 2.25rem; margin: 1rem 0 1.4rem; }
.about-section p:not(.eyebrow) { margin-top: 1rem; font-size: 1rem; }
.about-section strong { color: var(--strong); }
.news-list, .award-list, .course-list { padding: 0; margin: 0; list-style: none; }
.news-list li { display: grid; grid-template-columns: 85px minmax(0,1fr); gap: 1.2rem; margin-top: 1rem; }
.news-list li:first-child { margin-top: 0; }
.news-list time { font-size: .8125rem; color: var(--muted); padding-top: .1rem; font-variant-numeric: tabular-nums; }
.news-list p { font-size: .9375rem; line-height: 1.65; }
.news-list a { white-space: nowrap; font-size: .875rem; }
.research-list { display: grid; gap: .9rem; }
.research-theme { color: var(--blue); font-weight: 600; white-space: nowrap; }
.research-intro { font-size: .9375rem; line-height: 1.65; color: var(--ink); margin: -.35rem 0 1.3rem; }
.research-item { display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 1.15rem; background: var(--tint); border-radius: 8px; padding: 1.4rem 1.5rem; }
.research-number { font-size: .8rem; color: var(--blue); font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; border-top: 2px solid var(--accent-line); padding-top: .45rem; margin-top: .1rem; }
.research-item h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: -.02em; }
.research-item p { font-size: .9375rem; line-height: 1.65; color: var(--muted); margin: .6rem 0; }
.research-item a { font-size: .8125rem; font-weight: 550; }
.research-evidence { display: flex; flex-wrap: wrap; gap: .25rem .85rem; margin-top: .65rem; }
.research-evidence a { max-width: 100%; }
/* Inline text keeps hover underlines continuous; the shared nowrap still binds separators. */
.research-evidence .inline-flow-lead { display: inline; }
.section-intro { font-size: .875rem; color: var(--muted); margin: -.45rem 0 1.3rem; }
.publication { padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.publication:first-child { padding-top: 0; }
.publication:last-child { border-bottom: 0; }
.publication-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: .55rem; }
.venue-badge { display: inline-block; color: var(--blue); font-size: .75rem; font-weight: 650; letter-spacing: .025em; border: 1px solid var(--badge-line); border-radius: 4px; padding: .05rem .4rem; line-height: 1.65; }
.publication-label { color: var(--muted); font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .75rem; }
.publication-status { color: var(--muted); font-size: .75rem; }
.publication h3 { font-size: 1.04rem; line-height: 1.5; font-weight: 650; letter-spacing: -.015em; }
.publication-authors { margin-top: .45rem; font-size: .875rem; color: var(--muted); line-height: 1.7; }
.publication-authors strong { color: var(--ink); font-weight: 650; }
.publication-venue { margin-top: .35rem; font-size: .8125rem; color: var(--muted); line-height: 1.65; }
.paper-links { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin-top: .65rem; }
.paper-links a, .bibtex-button { font-size: .8125rem; line-height: 1.75; padding: .04rem .45rem; border: 1px solid var(--button-line); border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; color: var(--blue); background: var(--surface); white-space: nowrap; }
.paper-links a:hover, .bibtex-button:hover { text-decoration: none; color: var(--blue-dark); background: var(--tint); }
.bibtex-button { gap: .2rem; }
.bibtex-button svg { width: 14px; height: 14px; }
/* Reserve the widest label without adding space around the whole button. */
.bibtex-button > span { display: block; }
.bibtex-button > span::before, .bibtex-button > span::after { display: block; height: 0; visibility: hidden; }
.bibtex-button > span::before { content: attr(data-default-label); }
.bibtex-button > span::after { content: "Copied"; }
.bibtex-button.is-copied { color: var(--blue-dark); background: var(--tint); }
.citation-fallback { min-width: 0; max-width: 100%; }
.citation-fallback summary { cursor: pointer; list-style: none; }
.citation-fallback summary::-webkit-details-marker { display: none; }
.citation-fallback[open] { flex-basis: 100%; }
.citation-fallback pre { max-width: 100%; padding: 1rem; overflow: auto; background: var(--tint); border-radius: 6px; font: .75rem/1.65 ui-monospace, "SFMono-Regular", Consolas, monospace; }
.citation-dialog { width: min(680px,94vw); max-width: 94vw; max-height: 94dvh; padding: 1.4rem; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--surface); box-shadow: 0 20px 80px var(--dialog-shadow); }
.citation-dialog::backdrop { background: var(--citation-backdrop); backdrop-filter: blur(3px); }
.citation-dialog h2 { font-size: 1.15rem; }
.citation-paper-title { margin-top: .75rem; font-size: .875rem; line-height: 1.5; font-weight: 550; }
#citation-help { margin: .6rem 0 .85rem; font-size: .8125rem; color: var(--muted); }
#citation-code { display: block; width: 100%; height: min(320px,42dvh); padding: .9rem; border: 1px solid var(--line); border-radius: 6px; background: var(--tint); color: var(--ink); font: .75rem/1.65 ui-monospace, "SFMono-Regular", Consolas, monospace; resize: vertical; }
#citation-code:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.citation-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: 1rem; }
.citation-copy { min-height: 44px; }
.citation-dialog-status { font-size: .8125rem; color: var(--muted); }
body.citation-open { overflow: hidden; }
.more-details { margin-top: 1rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.more-details summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .7rem; padding: .9rem 0; min-height: 48px; color: var(--blue); font-size: .875rem; font-weight: 550; }
.more-details summary::-webkit-details-marker { display: none; }
.more-details > summary .details-label-less { display: none; }
.more-details[open] > summary .details-label-more { display: none; }
.more-details[open] > summary .details-label-less { display: inline; }
.detail-count { color: var(--muted); font-weight: 400; font-size: .8125rem; }
.details-plus { margin-left: auto; width: 14px; height: 14px; position: relative; }
.details-plus::before, .details-plus::after { content: ""; position: absolute; background: currentColor; }
.details-plus::before { width: 12px; height: 1.5px; left: 1px; top: 6px; }
.details-plus::after { width: 1.5px; height: 12px; left: 6px; top: 1px; }
.more-details[open] .details-plus::after { display: none; }
.details-content { padding: .6rem 0 1rem; }
.publication-year { padding: 1.2rem 0; font-size: 1rem; color: var(--blue); }
.award-list li { display: grid; grid-template-columns: 6rem minmax(0,1fr); column-gap: 1.1rem; padding: .7rem 0; }
.award-date { font-size: .8125rem; color: var(--muted); padding-top: .1rem; }
.award-title { font-size: .9375rem; line-height: 1.6; font-weight: 550; }
.award-detail { color: var(--muted); font-size: .8125rem; line-height: 1.6; margin-top: .2rem; }
.award-title { color: var(--ink); }
.award-links { margin-top: .25rem; font-size: .8125rem; line-height: 1.95; }
.award-links a { display: inline-block; margin-right: .22rem; white-space: nowrap; }
.resource-label { color: var(--muted); white-space: nowrap; }
.resource-pending { color: var(--muted); white-space: nowrap; }
.inline-flow-lead { display: inline-block; white-space: nowrap; }
.inline-flow-separator { display: none; color: var(--divider); margin-right: .35rem; }
[data-inline-flow][data-flow-ready] > .inline-flow-group > .inline-flow-lead > .inline-flow-separator { display: inline; }
.resource-label-short { display: none; }
.news-resources a { display: inline-block; margin-right: .25rem; text-decoration: none; }
.news-resources a:hover { text-decoration: underline; }
.date-segment { white-space: nowrap; }
.photo-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.2rem; margin-top: 2rem; }
.photo-link { display: block; overflow: hidden; border-radius: 8px; background: var(--tint); }
.photo-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .2s ease; }
.photo-link:hover img { transform: scale(1.025); }
figcaption { font-size: .8125rem; color: var(--muted); margin-top: .65rem; line-height: 1.6; }
.photo-grid figcaption > span { display: block; }
.photo-grid figcaption > span:first-child { color: var(--ink); font-weight: 550; }
.subsection-title { font-size: .875rem; color: var(--muted); margin: 1.7rem 0 1.4rem; font-weight: 550; }
.timeline { border-left: 1px solid var(--timeline-line); margin-left: 5px; padding-left: 1.45rem; }
.timeline-item { position: relative; margin-bottom: 1.6rem; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item::before { content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--timeline-dot); left: -1.71rem; top: .35rem; outline: 4px solid var(--page); }
.timeline-top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.timeline-top h4 { font-size: .975rem; margin: 0; font-weight: 600; line-height: 1.5; }
.timeline-date { color: var(--muted); font-size: .8125rem; white-space: nowrap; flex-shrink: 0; text-align: right; }
.timeline-institution { margin-top: .25rem; font-size: .9375rem; }
.timeline-detail { margin-top: .3rem; font-size: .8125rem; color: var(--muted); }
.course-list li { display: grid; grid-template-columns: minmax(0,1fr) 160px; gap: 1.4rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.course-list li:last-child { border-bottom: none; }
.course-name { font-size: .9375rem; font-weight: 550; }
.course-instructors { color: var(--muted); font-size: .8125rem; margin-top: .15rem; }
.course-evaluations, .course-website { display: inline-block; white-space: nowrap; text-decoration: none; }
.course-evaluations:hover, .course-website:hover { text-decoration: underline; }
.course-website { font-size: .8125rem; font-weight: 400; }
.course-terms { font-size: .8125rem; color: var(--muted); text-align: right; }
.teaching-recognition { margin-top: 1.2rem; font-size: .8125rem; color: var(--recognition-ink); background: var(--tint); border-left: 2px solid var(--recognition-line); padding: .7rem 1rem; }
.muted { color: var(--muted); }
.hobbies-layout { display: grid; grid-template-columns: minmax(0,1fr) 255px; gap: 2.5rem; align-items: start; }
.beyond-copy p { margin-top: 1rem; font-size: .9375rem; }
.beyond-copy p:first-child { margin-top: 0; }
.beyond-copy p > a[data-media] { display: inline-block; white-space: nowrap; font-size: .8125rem; text-decoration: none; }
.beyond-copy p > a[data-media]:hover { text-decoration: underline; }
.hobby-list { display: flex; flex-wrap: wrap; gap: .65rem 1.1rem; margin-top: 1.2rem; }
.hobby-list span { display: inline-flex; align-items: center; gap: .4rem; font-size: .8125rem; color: var(--muted); }
.badminton-photo img { aspect-ratio: 4/3; object-fit: cover; object-position: 50% 53%; width: 100%; }
.badminton-photo figcaption { font-size: .75rem; }
.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1.5rem; padding-bottom: 2.5rem; color: var(--muted); font-size: .8125rem; }
.photo-dialog { border: 0; border-radius: 10px; padding: 1rem; width: min(94vw,1100px); max-width: 94vw; max-height: 94vh; max-height: 94dvh; background: var(--surface); color: var(--ink); }
.photo-dialog[open] { display: flex; flex-direction: column; }
.photo-dialog::backdrop { background: var(--photo-backdrop); }
.dialog-toolbar { display: flex; justify-content: space-between; align-items: start; gap: 1.5rem; margin-bottom: .8rem; flex-shrink: 0; }
.dialog-toolbar p { font-size: .875rem; line-height: 1.5; overflow-wrap: anywhere; }
.dialog-close { border: 1px solid var(--line); background: var(--surface); border-radius: 50%; width: 44px; height: 44px; padding: 0; display: grid; place-items: center; flex-shrink: 0; color: var(--muted); transition: color .15s ease, border-color .15s ease, background .15s ease; }
.dialog-close:hover { color: var(--blue); border-color: var(--close-hover-line); background: var(--tint); }
.dialog-close svg { width: 20px; height: 20px; stroke-width: 1.8; }
.dialog-viewer { position: relative; flex-shrink: 0; }
.dialog-stage { position: relative; overflow: hidden; height: 260px; transition: height .2s ease; touch-action: pan-y pinch-zoom; }
.dialog-image { position: absolute; max-width: none; opacity: 0; }
.dialog-message { position: absolute; left: 50%; bottom: .8rem; transform: translateX(-50%); display: flex; align-items: center; gap: .5rem; width: max-content; max-width: calc(100% - 1.6rem); padding: .55rem .8rem; border: 1px solid var(--line); border-radius: 8px; background: var(--message-background); color: var(--muted); font-size: .8125rem; line-height: 1.5; text-align: center; pointer-events: none; }
.dialog-message.is-loading::before { content: ''; flex-shrink: 0; width: 14px; height: 14px; border: 2px solid var(--line); border-top-color: var(--blue); border-radius: 50%; animation: preview-spin .8s linear infinite; }
@keyframes preview-spin { to { transform: rotate(360deg); } }
.dialog-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; margin-top: .8rem; flex-shrink: 0; }
.dialog-original { font-size: .8125rem; min-height: 42px; display: inline-flex; align-items: center; }
.dialog-navigation { position: absolute; inset: 0; pointer-events: none; }
.dialog-navigation button { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; display: grid; place-items: center; padding: 0; border: 1px solid var(--control-line); border-radius: 50%; background: var(--control-background); color: var(--blue); box-shadow: 0 2px 12px var(--control-shadow); pointer-events: auto; transition: border-color .15s ease, background .15s ease, box-shadow .15s ease; }
.dialog-navigation button:hover { border-color: var(--accent-line); background: var(--control-hover); box-shadow: 0 3px 14px var(--control-shadow-hover); }
.dialog-navigation button svg { width: 23px; height: 23px; stroke-width: 1.8; }
.dialog-previous { left: .65rem; }
.dialog-next { right: .65rem; }
.dialog-close:focus-visible, .dialog-navigation button:focus-visible { border-radius: 50%; outline-offset: 3px; }
.dialog-counter { position: absolute; right: 0; bottom: -2.4rem; color: var(--muted); font-size: .8125rem; white-space: nowrap; }
body.viewer-open { overflow: hidden; }
.gallery-header { gap: 1rem; }
.gallery-back { font-size: .8125rem; text-align: right; }
.gallery-main { max-width: 1120px; margin: 0 auto; padding: 3.5rem 28px 0; }
.gallery-intro { padding-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
.gallery-intro h1 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin-top: .8rem; overflow-wrap: anywhere; }
.gallery-description { color: var(--muted); margin: .8rem 0 1rem; }
.gallery-section { padding: 2.5rem 0; scroll-margin-top: 6rem; }
.gallery-section h2 { font-size: 1.35rem; margin-bottom: 1.5rem; display: flex; align-items: center; gap: .7rem; }
.gallery-count { color: var(--muted); font-size: .875rem; font-weight: 400; }
.award-gallery-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 2rem 1.5rem; }
.gallery-image-link { --gallery-height: 360px; container-type: inline-size; position: relative; display: flex; align-items: center; justify-content: center; background: var(--tint); border: 1px solid var(--line); border-radius: 7px; overflow: hidden; height: var(--gallery-height); }
.gallery-image-link img { width: 100%; height: 100%; object-fit: contain; }
.gallery-image-link img.adjusted-image { position: absolute; max-width: none; object-fit: fill; }
.gallery-card figcaption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem 1rem; }
.gallery-card figcaption a { white-space: nowrap; }
.gallery-main > .site-footer { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: 1.5rem; }
@media (max-width: 600px) {
  .gallery-main { padding: 2rem 22px 0; }
  .award-gallery-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .gallery-image-link { --gallery-height: 320px; }
  .gallery-intro { padding-bottom: 1.8rem; }
  .gallery-section { padding: 2rem 0; }
}

@media (min-width: 1000px) and (max-height: 830px) {
  .portrait-wrap, .portrait { width: 142px; }
  .portrait-wrap { margin-bottom: 1.3rem; }
  .profile-role { margin-top: .65rem; }
  .profile-links { margin: .8rem 0; }
}
@media (max-width: 1120px) {
  .header-inner { padding: 0 28px; gap: 1.25rem; }
  .site-nav { gap: 1.05rem; }
  .page-layout { --profile-gap: 48px; --profile-width: 225px; padding: var(--profile-gap) 28px 0; gap: 48px; }
  .hobbies-layout { gap: 1.75rem; grid-template-columns: minmax(0,1fr) 210px; }
}
@media (max-width: 999px) {
  .site-header { transition: transform 260ms cubic-bezier(.22,1,.36,1); }
  .site-header.is-hidden { transform: translateY(calc(-100% - 1px)); pointer-events: none; }
  .header-inner { min-height: 70px; flex-wrap: wrap; gap: 0; padding: 16px 28px; }
  .menu-toggle:not([hidden]) { margin-left: auto; }
  .site-nav { width: 100%; display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 0 1.6rem; padding-top: 12px; }
  .site-nav a { padding: .55rem 0; }
  .js .site-nav:not(.is-open) { display: none; }
  .page-layout { --profile-gap: 38px; display: block; max-width: 840px; padding-top: var(--profile-gap); }
  .profile { position: static; display: grid; grid-template-columns: 144px minmax(0,1fr); column-gap: 28px; margin-bottom: 3rem; border-bottom: 1px solid var(--line); padding-bottom: 2.5rem; }
  .portrait-wrap { grid-column: 1; grid-row: 1/8; width: 144px; margin: 0; align-self: start; }
  .portrait { width: 144px; }
  .profile-scroll > :not(.portrait-wrap) { grid-column: 2; }
  .profile h1 { font-size: 1.85rem; }
  .chinese-name { display: inline; font-size: 1.03rem; margin-left: .3rem; white-space: nowrap; }
  .profile-role { margin-top: .55rem; }
  .profile-location { margin-top: .6rem; }
  .profile-links { display: flex; flex-wrap: wrap; gap: 0 1.2rem; margin: .6rem 0; }
  .cv-link { justify-self: start; }
  .section { scroll-margin-top: 6rem; }
}
@media (max-width: 600px) {
  html { scroll-padding-top: 5.5rem; }
  .header-inner { padding: 13px 20px; min-height: 66px; }
  .brand { font-size: .875rem; gap: .65rem; }
  .site-nav { gap: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); padding: 12px 0 2px; }
  .site-nav a { padding: .65rem 0; min-height: 44px; }
  .site-nav a[aria-current]::after { right: auto; width: 24px; }
  .page-layout { --profile-gap: 30px; padding: var(--profile-gap) 22px 0; }
  .profile { grid-template-columns: 100px minmax(0,1fr); gap: 0 20px; padding-bottom: 2rem; margin-bottom: 2.2rem; }
  .portrait-wrap { width: 100px; grid-row: 1/4; }
  .portrait { width: 100px; border-radius: 7px; }
  .profile h1 { font-size: 1.55rem; line-height: 1.35; }
  .chinese-name { display: block; font-size: 1rem; margin: .4rem 0 0; }
  .profile-role { font-size: .875rem; margin-top: .65rem; }
  .profile-affiliation { font-size: .8125rem; }
  .profile-scroll > .profile-location { grid-column: 1/-1; grid-row: 5; margin-top: .5rem; font-size: .8125rem; }
  .profile-scroll > .email-link { grid-column: 1/-1; grid-row: 4; margin-top: 1.2rem; }
  .profile-scroll > .profile-links { grid-column: 1/-1; gap: .25rem 1.25rem; margin: .65rem 0 1rem; }
  .profile-scroll > .cv-link { grid-column: 1/-1; }
  .section { padding-bottom: 2.3rem; margin-bottom: 2.3rem; }
  .eyebrow { font-size: .75rem; letter-spacing: .075em; }
  .about-section h2 { font-size: 1.9rem; margin: .8rem 0 1.2rem; }
  .section h2 { font-size: 1.45rem; }
  .section-heading { align-items: start; flex-wrap: wrap; gap: .3rem .7rem; margin-bottom: 1.3rem; }
  .section-note { font-size: .8125rem; }
  .news-list li { grid-template-columns: 72px minmax(0,1fr); gap: .7rem; }
  .news-list time { font-size: .75rem; }
  .news-list p { font-size: .9375rem; }
  .research-item { padding: 1.1rem; grid-template-columns: 24px minmax(0,1fr); gap: .75rem; }
  .research-item h3 { font-size: 1rem; }
  .research-item p { font-size: .875rem; }
  .publication h3 { font-size: 1rem; }
  .publication-authors { font-size: .8125rem; }
  .paper-links a, .paper-links .bibtex-button { min-height: 44px; }
  .citation-dialog { padding: 1rem; }
  .award-list li { grid-template-columns: 4.9rem minmax(0,1fr); column-gap: .65rem; }
  .award-date { font-size: .75rem; }
  .award-title { font-size: .875rem; }
  .photo-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .timeline-top { flex-direction: column; gap: .15rem; }
  .timeline-date { order: -1; align-self: flex-start; text-align: left; }
  .course-list li { grid-template-columns: minmax(0,1fr); gap: .35rem; }
  .course-terms { text-align: left; }
  .hobbies-layout { grid-template-columns: minmax(0,1fr); gap: 1.5rem; }
  .badminton-photo { width: min(100%,340px); }
  .photo-dialog { padding: .7rem; max-width: 96vw; }
  .dialog-toolbar { gap: .5rem; }
  .dialog-navigation button { width: 44px; height: 44px; }
  .dialog-previous { left: .4rem; }
  .dialog-next { right: .4rem; }
}
@media (max-width: 600px), (max-width: 999px) and (max-height: 500px) {
  .dialog-navigation { position: static; display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin-top: .8rem; pointer-events: auto; }
  .dialog-navigation button { position: static; transform: none; width: 44px; height: 44px; background: var(--tint); box-shadow: none; }
  .dialog-counter { position: static; min-width: 3rem; text-align: center; }
}
@media (max-width: 359px) {
  .resource-label-full { display: none; }
  .resource-label-short { display: inline; }
  .page-layout { padding-left: 17px; padding-right: 17px; }
  .profile { grid-template-columns: 85px minmax(0,1fr); column-gap: 16px; }
  .portrait-wrap, .portrait { width: 85px; }
  .profile h1 { font-size: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .dialog-message.is-loading::before { animation: none; }
}
@media screen and (prefers-reduced-motion: no-preference) {
  :root, a, .site-header, .research-item, .venue-badge, .bibtex-button,
  .teaching-recognition, .photo-link, .gallery-image-link, .photo-dialog,
  .citation-dialog, .dialog-message, #citation-code, .citation-fallback pre {
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
  }
  .site-header {
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease,
      transform 260ms cubic-bezier(.22,1,.36,1);
  }
}
@media print {
  :root { color-scheme: light; }
  *, *::before, *::after { transition: none !important; }
  .site-header, .menu-toggle, .photo-dialog, .skip-link, .photo-grid, .badminton-photo, .site-footer > a { display: none !important; }
  .page-layout { display: block; padding: 0; }
  .profile { position: static; display: block; margin-bottom: 1rem; }
  .portrait-wrap { display: none; }
  .profile-links, .cv-link { display: none; }
  .section { padding-bottom: 1rem; margin-bottom: 1rem; break-inside: auto; }
  .publication, .timeline-item, .award-list li { break-inside: avoid; }
  .hobbies-layout { display: block; }
}
