:root {
  --paper: #fbfaf6;
  --ink: #202124;
  --ink-soft: #565a61;
  --line: #d8d2c7;
  --line-dark: #2a2a2a;
  --blue: #8fbeea;
  --blue-soft: #e7f1fb;
  --yellow: #f5d879;
  --yellow-soft: #fff6d8;
  --green: #b7d7bf;
  --clay: #d98862;
  --max: 1320px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
}

a {
  color: inherit;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 28px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 28px 12px;
  background: rgba(251, 250, 246, 0.88);
  border-bottom: 1px solid rgba(42, 42, 42, 0.12);
  backdrop-filter: blur(14px);
}

.top-nav-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  text-decoration: none;
}

.top-nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 18px;
}

.top-nav-links a {
  position: relative;
  color: var(--ink-soft);
  font-size: 15px;
  text-decoration: none;
  isolation: isolate;
}

.top-nav-links a:hover,
.top-nav-links a.active {
  color: var(--ink);
}

.top-nav-links a::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -3px;
  right: -4px;
  bottom: -1px;
  height: 0.62em;
  border-radius: 60% 45% 55% 40%;
  background: rgba(245, 216, 121, 0.72);
  opacity: 0;
  transform: rotate(-1.5deg) scaleX(0.88);
  transform-origin: left center;
  transition: opacity 140ms ease, transform 140ms ease;
}

.top-nav-links a:nth-child(even)::after {
  transform: rotate(1deg) scaleX(0.9);
}

.top-nav-links a:hover::after,
.top-nav-links a.active::after {
  opacity: 1;
  transform: rotate(-1.5deg) scaleX(1);
}

.top-nav-links a:nth-child(even):hover::after,
.top-nav-links a:nth-child(even).active::after {
  transform: rotate(1deg) scaleX(1);
}

main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 46px 36px 56px;
}

.hero {
  display: block;
  max-width: 1180px;
  min-height: 0;
  padding-top: 42px;
}

.hero-identity {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 46px;
  max-width: 1180px;
}

.hero-text {
  min-width: 0;
  padding-top: 0;
}

.hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 3.8vw, 52px);
  font-weight: 500;
  line-height: 0.96;
}

.hero h1 span {
  display: inline-block;
  margin-top: 14px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 0.38em;
  font-weight: 600;
  color: var(--ink-soft);
  vertical-align: top;
}

.hero-photo {
  position: relative;
  flex: 0 0 clamp(160px, 14vw, 210px);
  width: clamp(160px, 14vw, 210px);
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 29%, rgba(255, 255, 255, 0.74) 0 13%, transparent 14%),
    linear-gradient(transparent 52%, rgba(32, 33, 36, 0.12) 53% 55%, transparent 56%),
    linear-gradient(135deg, rgba(143, 190, 234, 0.58), rgba(245, 216, 121, 0.45)),
    #ece7dc;
  box-shadow:
    0 0 0 1px rgba(42, 42, 42, 0.12),
    0 14px 30px rgba(42, 42, 42, 0.12);
  clip-path: polygon(2% 1%, 98% 0, 100% 97%, 4% 100%, 0 6%);
  overflow: hidden;
  transform: rotate(1deg);
}

.hero-photo::after {
  content: "photo";
  position: absolute;
  right: 14px;
  bottom: 12px;
  color: rgba(32, 33, 36, 0.58);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
}

.hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.04) contrast(0.94) saturate(0.92);
}

.hero-photo:has(img)::after {
  display: none;
}

.hero-statement {
  max-width: 880px;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: clamp(17px, 1.25vw, 19px);
  line-height: 1.55;
}

.hero-statement::selection,
.intro-block strong::selection {
  background: var(--yellow);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1.5px solid var(--line-dark);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 3px 4px 0 rgba(42, 42, 42, 0.12);
}

.hero-actions a:hover {
  transform: translate(1px, 1px);
  box-shadow: 2px 3px 0 rgba(42, 42, 42, 0.14);
}

.icon-actions {
  gap: 14px;
}

.icon-actions a {
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  color: var(--ink);
  box-shadow: 2px 3px 0 rgba(42, 42, 42, 0.12);
}

.icon-actions svg {
  display: block;
  width: 17px;
  height: 17px;
  fill: currentColor;
  overflow: visible;
}

.icon-actions .github-icon {
  width: 15px;
  height: 15px;
  transform: translateX(-0.5px);
}

.about-actions {
  margin-top: 30px;
}

.research-sketch {
  max-width: 600px;
  margin: 32px auto 0;
}

.research-sketch img,
.research-sketch svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 20px 18px rgba(42, 42, 42, 0.05));
}

.research-sketch figcaption {
  margin-top: 24px;
  color: var(--ink-soft);
  font-size: 12px;
  text-align: center;
}

.sketch-lines path,
.sketch-arrows path {
  fill: none;
  stroke: var(--line-dark);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5;
}

.sketch-node path,
.sketch-note path {
  fill: #fffdf8;
  stroke: var(--line-dark);
  stroke-linejoin: round;
  stroke-width: 5;
}

.sketch-node.blue path {
  fill: var(--blue-soft);
}

.sketch-node.yellow path {
  fill: var(--yellow-soft);
}

.sketch-node text {
  fill: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
}

.sketch-note line,
.sketch-note circle {
  fill: none;
  stroke: var(--line-dark);
  stroke-linecap: round;
  stroke-width: 7;
}

.sketch-note line:nth-of-type(1),
.sketch-note line:nth-of-type(3) {
  stroke: var(--blue);
  stroke-width: 12;
}

.intro-grid {
  max-width: 1180px;
  padding: 64px 0 24px;
}

.intro-block {
  padding-right: 24px;
}

.intro-block h2,
.split-section h2 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(23px, 2.1vw, 30px);
  font-weight: 500;
}

.intro-block p,
.question-list,
.timeline,
.paper-list {
  margin: 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.65;
}

.intro-block p + p {
  margin-top: 18px;
}

.intro-block strong {
  color: var(--ink);
  box-shadow: inset 0 -0.5em 0 var(--blue-soft);
}

.question-list {
  padding-left: 20px;
}

.question-list li + li {
  margin-top: 8px;
}

.split-section {
  display: block;
  padding: 46px 0;
  border-bottom: 1.5px solid var(--line);
}

.home-news {
  max-width: 1180px;
  padding-bottom: 76px;
  border-bottom: 0;
}

.home-news > div {
  margin-bottom: 24px;
}

.home-news .timeline {
  margin-top: 0;
  min-height: 390px;
}

.news-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin: 2px 0 0;
}

.news-pagination[hidden] {
  display: none;
}

.news-page-button {
  position: relative;
  z-index: 0;
  display: inline-block;
  min-width: 0;
  padding: 1px 2px;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
  transition: color 140ms ease, transform 140ms ease;
}

.news-page-button::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -4px;
  right: -4px;
  bottom: -2px;
  height: 0.62em;
  border-radius: 60% 45% 55% 40%;
  background: rgba(245, 216, 121, 0.72);
  opacity: 0;
  transform: rotate(-1.5deg) scaleX(0.88);
  transform-origin: left center;
  transition: opacity 140ms ease, transform 140ms ease;
}

.news-page-button:hover {
  color: var(--ink);
  transform: translateY(1px);
}

.news-page-button:hover::after,
.news-page-button[aria-current="page"]::after {
  opacity: 1;
  transform: rotate(-1.5deg) scaleX(1);
}

.news-page-button[aria-current="page"] {
  color: var(--ink);
}

.news-page-ellipsis {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
  transform: translateY(-1px);
}

.page-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 54px 36px 108px;
}

.page-header {
  padding: 0 0 30px;
  border-bottom: 1.5px solid var(--line);
}

.page-header h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 3.25vw, 44px);
  font-weight: 500;
  line-height: 1;
}

.page-list {
  max-width: none;
  margin-top: 34px;
}

.archive-section {
  margin-top: 34px;
}

.archive-section + .archive-section {
  margin-top: 46px;
}

.archive-section h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(23px, 2.1vw, 30px);
  font-weight: 500;
}

.archive-section .page-list {
  margin-top: 18px;
}

.site-footer {
  max-width: var(--max);
  margin: 24px auto 0;
  padding: 28px;
  border-top: 0;
  color: var(--ink-soft);
  font-size: 13px;
  position: relative;
  text-align: right;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 10px;
  border-top: 1.5px solid rgba(42, 42, 42, 0.13);
  border-radius: 50%;
  transform: rotate(0.2deg);
}

.timeline {
  list-style: none;
  padding: 0;
}

.news-item {
  position: relative;
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  gap: 22px;
  padding: 0 0 18px;
}

.news-item::before {
  content: "";
  position: absolute;
  left: 131px;
  top: 7px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--line-dark);
  border-radius: 50% 45% 52% 44%;
  background: var(--yellow);
  box-shadow: 2px 2px 0 rgba(42, 42, 42, 0.08);
  transform: rotate(-8deg);
}

.news-date {
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0;
  white-space: nowrap;
}

.news-text {
  padding-left: 18px;
  border-left: 1px solid rgba(42, 42, 42, 0.14);
}

.news-tag {
  position: relative;
  display: inline-block;
  margin-left: 5px;
  padding: 1px 7px 2px;
  border: 0;
  border-radius: 7px 6px 8px 5px;
  background: linear-gradient(135deg, rgba(255, 240, 153, 0.72), rgba(245, 216, 121, 0.34));
  color: rgba(32, 33, 36, 0.82);
  font-size: 9.5px;
  font-weight: 780;
  line-height: 1.25;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.46) inset,
    0 1px 5px rgba(245, 216, 121, 0.28);
  transform: rotate(-0.8deg);
}

.news-tag::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  bottom: 1px;
  height: 1px;
  border-radius: 999px;
  background: rgba(42, 42, 42, 0.12);
}

.news-tag-paper {
  background: linear-gradient(135deg, rgba(255, 240, 153, 0.78), rgba(245, 216, 121, 0.38));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.48) inset,
    0 1px 6px rgba(245, 216, 121, 0.34);
}

.news-tag-grant {
  background: linear-gradient(135deg, rgba(255, 194, 144, 0.62), rgba(217, 136, 98, 0.26));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.44) inset,
    0 1px 6px rgba(217, 136, 98, 0.24);
}

.news-tag-award {
  background: linear-gradient(135deg, rgba(191, 222, 250, 0.68), rgba(143, 190, 234, 0.3));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.46) inset,
    0 1px 6px rgba(143, 190, 234, 0.26);
}

.paper-list,
.pub-list {
  list-style: none;
  padding: 0;
}

.paper-card,
.pub-item {
  padding: 30px 0 34px;
  border-top: 1px solid rgba(42, 42, 42, 0.12);
}

.paper-card:first-child,
.pub-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.pub-title {
  max-width: 1180px;
  margin-bottom: 12px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  line-height: 1.28;
}

.pub-title a {
  color: inherit;
  text-decoration-color: var(--blue);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.pub-title a:hover {
  text-decoration-color: var(--yellow);
}

.pub-authors,
.pub-venue {
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.55;
}

.pub-venue {
  margin-top: 5px;
  color: var(--ink-soft);
  font-weight: 650;
}

.author-highlight {
  color: #8a552b;
  font-weight: 750;
}

.pub-abstract {
  position: relative;
  max-width: 1120px;
  margin-top: 17px;
  padding-right: 76px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.68;
}

.pub-abstract p {
  max-height: 3.25em;
  margin: 0;
  overflow: hidden;
  transition: max-height 180ms ease;
}

.pub-abstract[data-collapsed="true"] p {
  -webkit-mask-image: linear-gradient(#000 58%, transparent);
  mask-image: linear-gradient(#000 58%, transparent);
}

.pub-abstract[data-collapsed="false"] p {
  max-height: 42em;
}

.abstract-toggle {
  position: absolute;
  right: 0;
  bottom: 2px;
  z-index: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: auto;
  min-height: 20px;
  margin-top: 3px;
  padding: 1px 2px;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
  box-shadow: none;
  transition: color 140ms ease, transform 140ms ease;
}

.abstract-toggle::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -4px;
  right: -4px;
  bottom: -2px;
  height: 0.62em;
  border-radius: 60% 45% 55% 40%;
  background: rgba(245, 216, 121, 0.72);
  opacity: 0;
  transform: rotate(-1.5deg) scaleX(0.88);
  transform-origin: left center;
  transition: opacity 140ms ease, transform 140ms ease;
}

.abstract-toggle::after {
  content: "";
  position: absolute;
  inset: -6px;
  z-index: -1;
}

.abstract-toggle:hover {
  color: var(--ink);
  transform: translateY(1px);
}

.abstract-toggle:hover::before {
  opacity: 1;
  transform: rotate(-1.5deg) scaleX(1);
}

.toggle-label {
  letter-spacing: 0;
}

.toggle-arrow {
  display: block;
  color: inherit;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 900;
  transition: transform 160ms ease;
}

.pub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
}

.pub-links a[data-hidden="true"] {
  display: none;
}

.pub-footnote {
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  font-style: italic;
}

.pub-links a {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 2px 10px;
  border: 1px solid rgba(42, 42, 42, 0.12);
  border-radius: 999px;
  background: rgba(231, 241, 251, 0.72);
  color: var(--ink);
  text-decoration: none;
}

.pub-links a:hover {
  background: var(--yellow-soft);
}

.main-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 42px;
  align-items: start;
  max-width: var(--max);
  margin: 0 auto;
  padding: 42px 28px 88px;
}

.profile-column {
  position: sticky;
  top: 86px;
}

.profile-card {
  border-top: 3px solid var(--line-dark);
  padding-top: 18px;
}

.profile-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: 18px;
  border: 2px solid var(--line-dark);
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgba(143, 190, 234, 0.45), rgba(245, 216, 121, 0.5)),
    #efece5;
  box-shadow: 6px 7px 0 rgba(42, 42, 42, 0.1);
  overflow: hidden;
}

.profile-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-name {
  margin-bottom: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 1.1;
}

.profile-name-zh,
.profile-role,
.profile-location,
.profile-links {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
}

.icon-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--line-dark);
  border-radius: 50%;
  background: #fffdf8;
  color: var(--ink);
  text-decoration: none;
}

.icon-link svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.profile-links {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.section {
  padding-top: 0;
}

.section h2 {
  margin: 0 0 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 48px;
  font-weight: 500;
}

@media (max-width: 900px) {
  .top-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav-links {
    justify-content: flex-start;
  }

  .intro-grid,
  .split-section,
  .main-layout,
  .page-header {
    grid-template-columns: 1fr;
  }

  .page-list {
    margin-left: 0;
  }

  .research-sketch {
    max-width: 640px;
  }

  .profile-column {
    position: static;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 104px;
  }

  body {
    overflow-x: hidden;
  }

  .top-nav,
  main,
  .page-main,
  .main-layout,
  .site-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .top-nav {
    gap: 12px;
    padding-top: 14px;
    padding-bottom: 12px;
  }

  .top-nav-links {
    gap: 8px 15px;
  }

  .top-nav-links a {
    font-size: 16px;
  }

  main {
    padding-top: 24px;
  }

  .hero {
    padding-top: 22px;
  }

  .hero h1 {
    font-size: 34px;
    line-height: 1;
  }

  .hero h1 span {
    margin-top: 10px;
    font-size: 0.43em;
  }

  .hero-identity {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }

  .hero-photo {
    flex-basis: auto;
    width: min(58vw, 220px);
    max-width: 100%;
  }

  .hero-statement {
    max-width: none;
    margin-top: 18px;
    font-size: 17px;
    line-height: 1.55;
  }

  .research-sketch {
    max-width: 100%;
    margin-top: 28px;
  }

  .research-sketch figcaption {
    margin-top: 18px;
  }

  .intro-grid {
    padding-top: 50px;
  }

  .intro-block {
    padding-right: 0;
  }

  .intro-block h2,
  .split-section h2,
  .page-header h1,
  .section h2 {
    font-size: 30px;
  }

  .intro-block p,
  .timeline,
  .paper-list {
    font-size: 16px;
    line-height: 1.62;
  }

  .about-actions {
    gap: 12px;
  }

  .home-news {
    padding-bottom: 58px;
  }

  .home-news .timeline {
    min-height: 0;
  }

  .news-item {
    grid-template-columns: 1fr;
    gap: 5px;
    padding-bottom: 22px;
  }

  .news-item::before {
    display: none;
  }

  .news-text {
    padding-left: 0;
    border-left: 0;
  }

  .news-date {
    font-size: 13px;
  }

  .news-tag {
    margin-left: 4px;
    transform: none;
  }

  .news-pagination {
    justify-content: flex-end;
    margin-left: 0;
  }

  .page-main {
    padding-top: 38px;
    padding-bottom: 84px;
  }

  .page-header {
    padding-bottom: 24px;
  }

  .page-list {
    margin-top: 28px;
  }

  .pub-item {
    padding: 26px 0 30px;
  }

  .pub-title {
    font-size: 19px;
    line-height: 1.32;
  }

  .pub-abstract {
    padding-right: 0;
    font-size: 14.5px;
  }

  .abstract-toggle {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 8px;
  }

  .pub-links {
    gap: 7px;
  }

  .site-footer {
    margin-top: 4px;
    padding-top: 24px;
    padding-bottom: 26px;
    font-size: 12px;
  }

  .site-footer::before {
    left: 18px;
    right: 18px;
  }
}
