@font-face {
  font-family: 'Crimson Pro';
  src: url('assets/crimson-pro.ttf') format('truetype');
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('assets/dm-sans.ttf') format('truetype');
  font-display: swap;
}
:root {
  --serif: 'Crimson Pro', Georgia, 'Songti SC', SimSun, serif;
  --sans: 'DM Sans', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --heading: var(--serif);
  --paper: #fff;
  --ink: #313742;
  --muted: #5d6572;
  --accent: #12156d;
  --bar: #0a0d69;
  --links: #16457b;
  --bar-text: #fff;
  --rule: #dce1e9;
  --bar-height: 52px;
  --section-space: 38px;
  --figure-width: 204px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--bar-height) + 20px); }
body { margin: 0; isolation: isolate; background: var(--paper); color: var(--ink); font: 16px/1.75 var(--sans); -webkit-font-smoothing: antialiased; }
.particle-background { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; background: url('assets/network.png') center top / cover; }
.particle-background.animating { background: none; }
p, h1, h2, h3, h4, figure, dl, dd { margin: 0; }
a { color: var(--links); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .22em; }
button, summary { cursor: pointer; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.skip { position: fixed; top: -100px; left: 1rem; padding: .4rem 1rem; z-index: 20; background: var(--paper); }
.skip:focus { top: 4px; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: clamp(40px, 6vw, 100px);
  padding-inline: max(5%, calc((100% - 1160px) / 2)) clamp(12px, 2vw, 32px);
  background: var(--bar);
  color: var(--bar-text);
}
.page { width: min(1160px, 90%); margin: auto; }
.nav-wrap { --nav-gap: clamp(12px,1.5vw,24px); gap: var(--nav-gap); display: flex; align-items: center; justify-content: space-between; max-width: 1080px; min-height: var(--bar-height); }
.site-name { margin-right: auto; color: inherit; font: 600 22px var(--heading); }
#sections-menu { display: flex; align-items: stretch; gap: var(--nav-gap); }
.topbar .nav-link { display: grid; align-items: center; position: relative; min-height: var(--bar-height); color: var(--bar-text); font: 500 17px/1.25 var(--heading); white-space: nowrap; }
.topbar .nav-link:visited { color: var(--bar-text); }
.nav-link::after { content: ''; position: absolute; bottom: 8px; left: 0; right: 0; height: 2px; background: currentColor; transform: scaleX(0); }
.nav-link:hover, .site-name:hover { text-decoration: none; }
.nav-link:hover::after, .nav-link[aria-current]::after { transform: scaleX(1); }
.topbar .language-switch { min-height: 34px; min-width: 66px; padding: 4px 12px; place-items: center; border: 1px solid #ffffff94; border-radius: 5px; }
.language-switch::after { content: none; }
.topbar .language-switch:hover { border-color: currentColor; background: #ffffff18; }
.mobile-menu { display: none; }
.page { display: grid; grid-template-columns: 232px minmax(0,850px); justify-content: space-between; column-gap: clamp(32px,5.4vw,78px); align-items: start; padding-top: 45px; }
.sidebar { position: sticky; top: calc(var(--bar-height) + 43px); }
.profile { text-align: center; padding-top: 4px; }
.project-guide { margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--rule); }
.project-guide h2 { display: block; margin: 0 0 4px; padding: 0; border: 0; font: 600 16px/1.5 var(--sans); }
.project-guide ul { list-style: none; margin: 0; padding: 0; }
.project-guide a { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; padding: 6px 0; font-size: 13px; }
.project-guide strong { color: var(--ink); }
.project-guide a span { text-decoration: underline; text-decoration-color: #98acbf; text-underline-offset: 3px; white-space: nowrap; }
.avatar { width: 132px; height: 132px; display: block; border-radius: 50%; object-fit: cover; object-position: center; margin: 0 auto 14px; }
h1 { font: 600 33px/1.14 var(--heading); letter-spacing: -.02em; color: var(--accent); }
.role { margin-top: 9px; font-size: 16px; }
.focus { color: var(--muted); font-size: 14px; }
.profile-links { display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: center; align-items: center; margin-top: 18px; }
.profile-links a { display: inline-flex; gap: 6px; align-items: center; color: var(--links); font-size: 13px; }
main { min-width: 0; }
section + section { margin-top: var(--section-space); }
h2 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; padding-left: 12px; border-left: 4px solid var(--accent); margin-bottom: 18px; color: var(--accent); }
h2 > span { font: 600 29px/1.07 var(--heading); letter-spacing: -.014em; }
h2 small { font: 400 12px/1.5 var(--sans); color: var(--muted); }
main p { font-size: 15px; }
#about-me p { line-height: 1.88; }
#about-me p + p { margin-top: 11px; }
#about-me a { text-decoration: underline; text-decoration-color: #8094b173; text-underline-offset: 3px; }
strong { font-weight: 650; }
.paper-entry { display: grid; grid-template-columns: var(--figure-width) minmax(0,1fr); align-items: center; gap: 25px; margin: 23px 0 0; }
.paper-entry + .paper-entry { margin-top: 25px; }
.paper-figure { position: relative; }
.paper-figure img { width: 100%; height: auto; display: block; border-radius: 5px; border: 1px solid var(--rule); box-shadow: 1px 2px 5px #18294b20; }
.paper-figure figcaption { position: absolute; top: -5px; left: -2px; padding: 1px 9px; color: white; background: var(--links); border-radius: 2px; font-size: 10px; font-weight: 600; letter-spacing: .04em; }
h3, h4 { font: 600 17px/1.55 var(--sans); }
.paper-entry h3 { color: var(--links); font-family: var(--heading); font-size: 19px; }
.byline { margin-top: 3px; font: 17px/1.5 var(--serif); }
.byline strong { text-decoration: underline; text-underline-offset: 2px; }
.venue { font-size: 13px; color: var(--muted); }
.paper-entry details { margin-top: 6px; }
.paper-entry summary { display: inline-block; padding: 0 7px; border: 1px solid var(--rule); border-radius: 3px; color: var(--links); font-size: 11px; line-height: 1.9; list-style: none; }
.paper-entry summary::after { content: ' +'; }
.paper-entry details[open] summary::after { content: ' −'; }
.paper-entry summary::-webkit-details-marker { display: none; }
.paper-entry details p { margin-top: 8px; font-size: 14px; }
.record { display: grid; grid-template-columns: 145px minmax(0,1fr); gap: 12px; padding: 7px 0; }
.date, .record time { color: var(--muted); font-size: 13px; padding-top: 3px; }
.record p { font-size: 14px; color: var(--muted); }
.skill-list div { margin: 6px 0; font-size: 15px; }
.skill-list dt, .skill-list dd { display: inline; }
.skill-list dt { font-weight: 600; margin-inline-end: .5em; }
#open-source h3 { color: var(--accent); }
.project-list { margin: 6px 0 20px; padding-inline-start: 1.25em; font-size: 15px; }
.project-list li + li { margin-top: 8px; }
.project-list li::marker { color: var(--muted); }
.project-list li > strong { margin-inline-end: .25em; }
.project-links { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 13px; }
.all-repos { font-size: 14px; }
footer { grid-column: 2; display: flex; align-items: center; justify-content: space-between; margin-top: 40px; border-top: 1px solid var(--rule); padding: 14px 0 30px; font-size: 12px; color: var(--muted); }
footer span { font: 18px var(--heading); }

.other-name { margin-top: 4px; font-size: 15px; color: var(--muted); }
:lang(zh-CN).other-name { letter-spacing: .08em; }
html[lang='zh-CN'] h1 { font-size: 30px; }
html[lang='zh-CN'] h2 > span { font-size: 25px; }
html[lang='zh-CN'] .topbar .nav-link { font: 500 14px var(--sans); }
html[lang='zh-CN'] .paper-entry h3 { font: 600 17px/1.55 var(--sans); }
.original-title { color: var(--muted); font: italic 15px/1.3 var(--serif); }
.paper-entry h3 { line-height: 1.25; }
.paper-figure img { background: white; }
.paper-figure figcaption { font-variant-numeric: tabular-nums; }
.venue cite { font-style: italic; }
.review { display: inline-block; margin-left: 5px; padding: 0 6px; border: 1px solid #c8dcd2; border-radius: 3px; background: #edf5ee; color: #345747; font: 600 11px/1.7 var(--sans); vertical-align: middle; }
.paper-actions { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 5px; font-size: 12px; }
.paper-actions > a, .project-links a, .all-repos a { text-decoration: underline; text-decoration-color: #98acbf; text-underline-offset: 3px; }
.paper-actions details { margin: 0; }
.paper-actions details[open] { flex-basis: 100%; }
.equal-note { margin: 15px 0 5px; color: var(--muted); font-size: 12px; }
.additional { color: var(--links); font-size: 14px; }
.additional summary { width: fit-content; }
.additional ul { padding-left: 21px; margin: 8px 0; }
.additional li + li { margin-top: 5px; }
.additional .byline { color: var(--ink); }
.additional .venue { display: block; }
.additional summary span { color: var(--muted); }
@media (min-width: 961px) and (max-width: 1080px) {
  .nav-wrap { --nav-gap: 12px; }
  .topbar .nav-link { font-size: 16px; }
}
@media (min-width: 961px) and (max-height: 650px) {
  .sidebar { position: static; }
}
@media (max-width: 960px) {
  :root { --bar-height: 48px; }
  .page { width: min(90%,760px); }
  .topbar { column-gap: clamp(20px, 4vw, 32px); }
  .mobile-menu { display: inline-flex; background: transparent; border: 0; align-items: center; gap: 8px; color: inherit; font: 13px var(--sans); padding: 10px 0 10px 14px; }
  #sections-menu { display: none; position: absolute; top: 100%; inset-inline: 0; background: var(--bar); border-bottom: 1px solid var(--rule); padding: 8px 5% 12px; box-shadow: 0 8px 15px #0001; }
  .mobile-menu[aria-expanded='true'] ~ #sections-menu { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
  #sections-menu a { min-height: 40px; justify-self: start; }
  #sections-menu a::after { bottom: 3px; }
  .page { display: block; padding-top: 26px; }
  .sidebar { position: static; margin-bottom: 28px; padding-bottom: 18px; border-bottom: 1px solid var(--rule); }
  .profile { display: grid; grid-template-columns: auto auto; align-items: center; justify-content: center; column-gap: 18px; padding: 0; }
  .project-guide { max-width: 24rem; margin: 18px auto 0; }
  .project-guide a { min-height: 44px; align-items: center; }
  .avatar { width: 94px; height: 94px; margin: 0; }
  .bio { text-align: left; }
  h1 { font-size: 29px; }
  .role { margin-top: 3px; font-size: 15px; }
  .focus { font-size: 13px; }
  .other-name { margin-top: 0; font-size: 13px; }
  .profile-links { justify-content: start; column-gap: 10px; margin-top: 5px; }
}
@media (max-width: 580px) {
  :root { --figure-width: clamp(90px,27vw,140px); }
  .page { width: 90%; }
  h2 > span { font-size: 26px; }
  h2 { margin-bottom: 14px; }
  .paper-entry { gap: 14px; align-items: start; }
  .paper-figure { margin-top: 7px; }
  .paper-entry h3 { font-size: 17px; line-height: 1.45; }
  .record { grid-template-columns: 86px minmax(0,1fr); gap: 7px; }
  .date { font-variant-numeric: tabular-nums; }
  .paper-actions details[open] p { text-align: left; }
}
@media print {
  .topbar, .skip, footer, .particle-background { display: none; }
  .page { width: 100%; display: block; }
  .sidebar { position: static; }
  .paper-entry, .record { break-inside: avoid; }
}
