:root {
  color-scheme: light;
  --page: #fff;
  --header-bg: rgba(255, 255, 255, .96);
  --ink: #17131a;
  --body: #514b54;
  --muted: #77717a;
  --purple: #765083;
  --pink: #765083;
  --line: #eadfea;
  --soft: #fcf9fc;
  --image-bg: #fff;
  --image-border: #dccbdf;
  --dotted: #e5dae7;
  --selection: #eadced;
  --gradient-end: #bba3ca;
  --research-border: #c495b2;
  --serif: "Cormorant Garamond", "Songti SC", Georgia, serif;
  --sans: "Lato", "Avenir Next", Arial, sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #151217;
  --header-bg: rgba(21, 18, 23, .95);
  --ink: #f7f1f8;
  --body: #d4ccd6;
  --muted: #9d939f;
  --purple: #d1a8df;
  --pink: #d1a8df;
  --line: #3c323f;
  --soft: #1e1921;
  --image-bg: #211b23;
  --image-border: #65536b;
  --dotted: #352d38;
  --selection: #5d4266;
  --gradient-end: #72577a;
  --research-border: #9d73a8;
}

@font-face {
  font-family: "Font Awesome 5 Free";
  src: url("../fonts/fa-solid-900.woff2") format("woff2");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: "Font Awesome 5 Brands";
  src: url("../fonts/fa-brands-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Academicons";
  src: url("../fonts/academicons.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--page);
  color: var(--body);
  font: 400 14px/1.74 var(--sans);
  letter-spacing: .01px;
  -webkit-font-smoothing: antialiased;
  cursor: url("../images/cursor-default.svg") 3 2, auto;
  transition: background-color .25s ease, color .25s ease;
}
::selection { background: var(--selection); }
a {
  color: var(--purple);
  text-decoration: none;
  text-underline-offset: 3px;
}
a,
button { cursor: url("../images/cursor-link.svg") 5 2, pointer; }
a:hover { color: var(--pink); text-decoration: underline; }
a:focus-visible,
button:focus-visible { outline: 2px solid var(--pink); outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
p, h1, h2 { margin-top: 0; }
strong { color: var(--ink); font-weight: 700; }

.skip-link {
  position: fixed;
  z-index: 100;
  left: 16px;
  top: 8px;
  padding: 7px 12px;
  background: var(--ink);
  color: var(--page);
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: background-color .25s ease, border-color .25s ease;
}
.header-inner {
  width: min(1050px, calc(100% - 48px));
  height: 66px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.wordmark {
  color: var(--ink);
  font: 700 26px/1 var(--serif);
  letter-spacing: -.3px;
}
.wordmark:hover { text-decoration: none; }
.wordmark span { color: var(--pink); }
nav {
  margin-left: auto;
  display: flex;
  gap: 25px;
}
nav a {
  color: var(--body);
  font-size: 12px;
  font-weight: 400;
}
.theme-toggle {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--soft);
  color: var(--purple);
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.theme-toggle:hover {
  border-color: var(--purple);
  transform: rotate(8deg);
}
.theme-icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme-icon-moon { fill: currentColor; stroke: none; }
.theme-icon-sun { display: none; }
:root[data-theme="dark"] .theme-icon-moon { display: none; }
:root[data-theme="dark"] .theme-icon-sun { display: block; }

.page-shell {
  width: min(1050px, calc(100% - 48px));
  margin: 38px auto 0;
  display: grid;
  grid-template-columns: 215px minmax(0, 1fr);
  gap: 62px;
  align-items: start;
}

.profile {
  position: sticky;
  top: 102px;
}
.profile-photo {
  width: 166px;
  height: 218px;
  object-fit: cover;
  object-position: 50% 50%;
  padding: 5px;
  border: 1px solid var(--image-border);
  border-radius: 50%;
  background: var(--image-bg);
}
.profile h1 {
  margin: 17px 0 0;
  color: var(--ink);
  font: 700 30px/1.05 var(--serif);
  letter-spacing: -.35px;
}
.name-cn {
  margin: 3px 0 15px;
  color: var(--purple);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
}
.name-cn span { letter-spacing: 0; }
.profile-role {
  margin: 0 0 8px;
  color: var(--body);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.65;
}
.profile-role strong { color: var(--purple); font-weight: 700; }
.profile-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.profile-links a {
  min-height: 27px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--body);
  font-size: 11px;
  font-weight: 400;
}
.profile-links a span {
  color: var(--pink);
  font-size: 13px;
}
.social-icon {
  width: 18px;
  text-align: center;
}
.icon-solid { font-family: "Font Awesome 5 Free"; font-weight: 900; }
.icon-brand { font-family: "Font Awesome 5 Brands"; font-weight: 400; }
.icon-scholar { font-family: "Academicons"; }
.icon-email::before { content: "\f0e0"; }
.icon-scholar::before { content: "\e828"; }
.icon-github::before { content: "\f09b"; }
.icon-linkedin::before { content: "\f08c"; }
.icon-x {
  font-family: Arial, sans-serif;
  font-size: 12px !important;
  font-weight: 700;
}
.icon-email,
.icon-scholar,
.icon-github,
.icon-x,
.icon-linkedin { color: var(--purple) !important; }

.visitor-map {
  display: grid;
  place-items: center;
  overflow: hidden;
}
.visitor-map:hover { text-decoration: none; }
.visitor-map img { max-width: 100%; }

.content { min-width: 0; }
.content-section {
  padding: 0 0 31px;
  margin: 0 0 31px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 86px;
}
.content-section:last-child { border-bottom: 0; }
.content-section h2 {
  margin-bottom: 15px;
  color: var(--ink);
  font: 700 29px/1.05 var(--serif);
  letter-spacing: -.25px;
}
.content-section h2::after {
  content: "";
  display: inline-block;
  width: 34px;
  height: 1px;
  margin: 0 0 7px 11px;
  background: linear-gradient(90deg, var(--pink), var(--gradient-end));
}
.content-section p { margin-bottom: 11px; }
.about p { max-width: 760px; }
.research-line {
  padding: 11px 14px;
  border-left: 2px solid var(--research-border);
  background: var(--soft);
}
.open-note {
  margin-bottom: 0 !important;
  color: var(--purple);
  font-size: 12px;
}

.news-list,
.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.news-list li {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 13px;
  padding: 7px 0;
  border-bottom: 1px dotted var(--dotted);
}
.news-list li:last-child { border-bottom: 0; }
.news-list time {
  color: var(--purple);
  font-size: 11px;
  font-weight: 700;
}
.news-list span { font-size: 13px; font-weight: 400; }

.section-heading-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}
.section-heading-row > a { font-size: 11px; }
.section-note {
  margin: -8px 0 12px !important;
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
}
.publication-list {
  margin: 0;
  padding-left: 24px;
}
.publication-list li {
  padding: 0 0 17px 7px;
}
.publication-list li:last-child { padding-bottom: 0; }
.publication-list li::marker {
  color: var(--purple);
  font-family: var(--serif);
}
.publication-list p { margin: 0; }
.paper-title {
  font-size: 14px;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.55;
}
.paper-authors {
  color: var(--muted);
  font-size: 11px;
  font-weight: 300;
  line-height: 1.65;
}
.paper-authors strong {
  color: var(--purple);
  font-weight: 700;
}
.paper-venue {
  font-size: 11px;
  line-height: 1.6;
}
.paper-venue strong { color: var(--purple); }
.paper-venue span { color: var(--purple); }
.paper-venue a { margin-left: 5px; }

.service-list li {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 7px 0;
  border-bottom: 1px dotted var(--dotted);
  font-size: 13px;
}
.service-list li:last-child { border-bottom: 0; }
.service-list span {
  flex: none;
  color: var(--purple);
  font-size: 11px;
}
.service-list li span:first-child {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.visitor-section {
  display: flex;
  justify-content: center;
  padding: 4px 0 34px;
}
.visitor-section .visitor-map {
  padding: 5px;
  border: 1px solid var(--line);
  background: var(--soft);
}

.more {
  display: grid;
  grid-template-columns: 1fr 150px;
  align-items: center;
  gap: 35px;
}
.more p { margin-bottom: 0; }
.more img {
  width: 150px;
  aspect-ratio: 1;
  object-fit: cover;
  padding: 4px;
  border: 1px solid var(--image-border);
}

.site-footer {
  width: min(1050px, calc(100% - 48px));
  margin: 6px auto 0;
  padding: 20px 0 26px 277px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  font-weight: 400;
}

@media (max-width: 780px) {
  html { scroll-padding-top: 110px; }
  .header-inner,
  .page-shell,
  .site-footer { width: calc(100% - 34px); }
  .header-inner {
    height: auto;
    min-height: 70px;
    padding: 12px 0 8px;
    flex-wrap: wrap;
  }
  .wordmark { font-size: 25px; }
  nav {
    order: 2;
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }
  nav a {
    min-height: 32px;
    display: flex;
    align-items: center;
    font-size: 10px;
  }
  .page-shell {
    margin-top: 26px;
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .profile {
    position: static;
    display: grid;
    grid-template-columns: 116px 1fr;
    column-gap: 20px;
    align-items: start;
  }
  .profile-photo {
    grid-row: 1 / 6;
    width: 116px;
    height: 145px;
  }
  .profile h1 { margin-top: 3px; font-size: 28px; }
  .name-cn { margin-bottom: 9px; }
  .profile-role { margin-bottom: 4px; }
  .profile-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0 15px;
    padding: 7px 0 0;
    border-bottom: 0;
  }
  .profile-links a { min-height: 30px; font-size: 10px; }
  .content-section {
    padding-bottom: 25px;
    margin-bottom: 25px;
  }
  .content-section h2 { font-size: 27px; }
  .news-list li { grid-template-columns: 68px 1fr; gap: 9px; }
  .news-list span { font-size: 12px; }
  .service-list li { font-size: 12px; }
  .more { grid-template-columns: 1fr 105px; gap: 20px; }
  .more img { width: 105px; }
  .site-footer {
    padding-left: 0;
    font-size: 8px;
  }
}

@media (max-width: 390px) {
  .profile { grid-template-columns: 94px 1fr; gap: 15px; }
  .profile-photo { width: 94px; height: 118px; }
  .profile h1 { font-size: 25px; }
  .profile-links { grid-column: 1 / -1; }
  .section-heading-row { align-items: flex-start; }
  .visitor-section .visitor-map { width: 250px; max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media (pointer: coarse) {
  body,
  a,
  button { cursor: auto; }
}
