:root {
  --background: #ffffff;
  --surface: #f6f8fa;
  --surface-blue: #f1f5f9;
  --text: #2f3437;
  --muted: #697279;
  --accent: #00356b;
  --accent-dark: #00264d;
  --blue-soft: #f5f9fd;
  --blue-border: #dce8f2;
  --border: #e1e7eb;
  --font-rounded: "Arial Rounded MT Bold", "Verdana", "Comic Sans MS", "Segoe Print", sans-serif;
  --content-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--font-rounded);
  font-size: 15.5px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--border);
  background: rgba(247, 251, 254, 0.96);
  box-shadow: 0 1px 14px rgba(0, 53, 107, 0.045);
  backdrop-filter: blur(12px);
}

.topbar-inner {
  display: flex;
  width: min(var(--content-width), calc(100% - 40px));
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
}

.site-title {
  color: var(--accent);
  font-size: 1.02rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.site-title:hover {
  color: var(--accent-dark);
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  font-size: 0.9rem;
}

.site-nav a {
  position: relative;
  color: #4f565b;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  background: var(--accent);
  content: "";
  opacity: 0;
  transform: scaleX(0.5);
  transition: opacity 150ms ease, transform 150ms ease;
}

.site-nav a:hover {
  color: var(--accent-dark);
  text-decoration: none;
}

.site-nav a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.page-shell {
  display: grid;
  width: min(var(--content-width), calc(100% - 40px));
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(52px, 7vw, 90px);
  margin: 0 auto;
  padding: 68px 0 104px;
}

.profile-sidebar {
  position: sticky;
  top: 102px;
  align-self: start;
}

.profile-photo {
  width: 190px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 3px solid #d9e8f4;
  border-radius: 50%;
  background: #eef3f7;
  box-shadow: 0 12px 30px rgba(0, 53, 107, 0.12);
}

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

.profile-sidebar h1 {
  margin: 24px 0 2px;
  color: #22272a;
  font-size: 1.72rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.profile-role,
.profile-affiliation,
.profile-location {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.profile-role {
  color: var(--accent);
  font-weight: 650;
}

.profile-affiliation {
  margin-top: 2px;
}

.profile-location {
  margin-top: 10px;
  font-size: 0.86rem;
}

.profile-links {
  margin: 24px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--border);
  list-style: none;
}

.profile-links li {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: center;
  gap: 7px;
  padding: 5px 8px;
  border-radius: 7px;
  transition: background-color 150ms ease;
}

.profile-links li:hover {
  background: var(--blue-soft);
}

.profile-links li + li {
  margin-top: 6px;
}

.profile-links span {
  color: #89949b;
  font-size: 0.82rem;
  text-align: center;
}

.profile-links a {
  font-size: 0.9rem;
}

.main-content {
  min-width: 0;
}

.main-content section {
  scroll-margin-top: 98px;
}

.main-content section + section {
  margin-top: 68px;
}

.main-content h2 {
  position: relative;
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.3;
}

.main-content h2::after {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 52px;
  height: 2px;
  background: var(--accent);
  content: "";
}

.main-content h3 {
  margin: 0;
  color: #2d3235;
  font-size: 1.01rem;
  line-height: 1.45;
}

.main-content p {
  margin: 0 0 14px;
}

.intro-section h2 {
  margin-bottom: 24px;
  padding-bottom: 0;
  border-bottom: 0;
  color: #20262a;
  font-size: clamp(1.65rem, 3vw, 2.08rem);
  letter-spacing: -0.03em;
  line-height: 1.22;
}

.intro-section h2::after {
  display: none;
}

.intro-welcome {
  color: var(--accent);
}

.intro-section p {
  max-width: 760px;
  color: #3f474c;
  font-size: 1rem;
  line-height: 1.68;
}

.section-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.section-note strong {
  color: var(--text);
}

.dated-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dated-list li {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 20px;
  padding: 11px 14px;
  border: 1px solid var(--blue-border);
  border-radius: 8px;
  background: var(--blue-soft);
}

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

.dated-list time,
.item-heading time {
  color: var(--muted);
  font-size: 0.84rem;
  white-space: nowrap;
}

.dated-list time {
  color: var(--accent);
  font-weight: 700;
}

.section-heading-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.section-heading-row h2 {
  margin: 0;
  padding: 0;
  border: 0;
}

.section-heading-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.publication-list {
  display: grid;
  gap: 14px;
}

.publication-item {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--blue-border);
  border-radius: 10px;
  background: linear-gradient(110deg, var(--blue-soft), #fff 70%);
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.publication-item:hover {
  border-color: #aac7de;
  box-shadow: 0 8px 22px rgba(0, 53, 107, 0.08);
  transform: translateY(-1px);
}

.paper-visual {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid #dce3e7;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(47, 69, 82, 0.07);
}

.paper-visual:hover {
  text-decoration: none;
}

.paper-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.paper-tag {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0, 53, 107, 0.94);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  line-height: 1.45;
  text-transform: uppercase;
}

.paper-venue {
  display: flex;
  min-height: 92px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #d6e1e7;
  border-radius: 7px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(231, 241, 247, 0.96)),
    var(--surface-blue);
  color: var(--accent-dark);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
  text-align: center;
}

.paper-venue--neurips {
  border-color: #d8c9e4;
  background: linear-gradient(145deg, #faf7fc, #eee6f4);
  color: #684e7e;
}

.paper-venue--iclr {
  border-color: #c8dae8;
  background: linear-gradient(145deg, #f6fafc, #e6f0f6);
}

.paper-venue--review {
  border-color: #d6dce0;
  background: linear-gradient(145deg, #fafafa, #eef1f2);
  color: #5c686f;
}

.paper-venue span {
  max-width: 12ch;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.25;
  text-transform: uppercase;
}

.paper-venue strong {
  margin-top: 4px;
  font-size: 1rem;
}

.publication-item h3 {
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 1.05rem;
  line-height: 1.45;
}

.publication-item .authors,
.publication-item .venue-line {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.publication-item .authors strong {
  color: var(--text);
}

.publication-item .equal-contribution {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.publication-item .project-role {
  margin: 5px 0 0;
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.45;
}

.publication-item .venue-line {
  margin-top: 5px;
  color: var(--accent-dark);
  font-weight: 600;
}

.publication-item .paper-summary {
  margin: 6px 0 0;
  color: #555f65;
  font-size: 0.87rem;
  line-height: 1.55;
}

.publication-item .paper-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 7px 0 0;
  font-size: 0.84rem;
}

.paper-links a {
  padding: 2px 8px;
  border: 1px solid var(--blue-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--accent);
  line-height: 1.45;
}

.experience-list {
  display: grid;
  gap: 10px;
}

.experience-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--blue-border);
  border-radius: 10px;
  background: linear-gradient(105deg, var(--blue-soft), #fff 68%);
}

.institution-logo {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #dde3e6;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 3px 14px rgba(46, 67, 78, 0.06);
}

.institution-logo img {
  display: block;
  width: 82%;
  height: 82%;
  object-fit: contain;
}

.institution-logo--hku img {
  width: 76%;
  height: 76%;
}

.institution-logo--sjtu {
  border-color: #e0e4e7;
  background: #fff;
}

.institution-logo--sjtu img {
  width: 82%;
  height: 82%;
}

.institution-logo--yale img {
  width: 88%;
  height: auto;
}

.institution-logo--kling {
  border-color: #0d1116;
  background: #0d1116;
}

.institution-logo--kling img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 4px;
}

.experience-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.empty-section {
  padding: 22px 24px;
  border-left: 3px solid #a8c1d3;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.92rem;
}

.empty-section p {
  margin: 0;
}

.award-list {
  margin: 0;
  padding: 0;
  border: 0;
  list-style: none;
}

.award-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 7px 0 7px 18px;
  border-left: 4px solid var(--accent);
  background: linear-gradient(
    90deg,
    rgba(0, 53, 107, 0.1) 0%,
    rgba(0, 53, 107, 0.035) 52%,
    rgba(0, 53, 107, 0) 100%
  );
}

.award-list li + li {
  margin-top: 12px;
}

.award-list small {
  margin-left: 6px;
  color: var(--muted);
  font-size: 0.82rem;
}

.award-list time {
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
}

footer {
  width: min(var(--content-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 44px 342px;
  border-top: 1px solid var(--blue-border);
  color: #8a9297;
  font-size: 0.82rem;
}

footer p {
  margin: 0;
}

@media (max-width: 760px) {
  .topbar-inner {
    min-height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 0;
  }

  .site-nav {
    width: 100%;
    gap: 19px;
    overflow-x: auto;
    padding-bottom: 2px;
    font-size: 0.84rem;
    scrollbar-width: none;
  }

  .page-shell {
    grid-template-columns: 1fr;
    gap: 46px;
    padding-top: 42px;
  }

  .profile-sidebar {
    position: static;
  }

  .profile-photo {
    width: 150px;
  }

  .publication-item {
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 20px;
    padding: 18px;
  }

  footer {
    padding-left: 0;
  }
}

@media (max-width: 500px) {
  body {
    font-size: 15px;
  }

  .topbar-inner,
  .page-shell,
  footer {
    width: min(100% - 28px, var(--content-width));
  }

  .section-heading-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .publication-item {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .dated-list li {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .paper-venue {
    min-height: 70px;
  }

  .item-heading,
  .award-list li {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .experience-item {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 15px;
    padding: 15px;
  }

  .institution-logo {
    width: 56px;
    height: 56px;
    align-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .publication-item,
  .profile-links li {
    transition: none;
  }
}
