:root {
  --ink: #2f3540;
  --muted: #67717e;
  --blue: #24649c;
  --blue-dark: #174a77;
  --line: #e8ebef;
  --soft: #f6f8fa;
  --paper: #ffffff;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 74px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover, a:focus-visible { color: var(--blue-dark); text-decoration: underline; text-underline-offset: 3px; }
strong { font-weight: 650; color: #252a31; }
img { display: block; max-width: 100%; }

.skip-link {
  position: fixed;
  top: -52px;
  left: 16px;
  z-index: 100;
  padding: 8px 12px;
  color: white;
  background: var(--blue-dark);
  border-radius: 4px;
}
.skip-link:focus { top: 10px; }

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 55px;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid #edf0f2;
  backdrop-filter: blur(10px);
}
.site-nav nav {
  width: min(1120px, calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 30px;
  scrollbar-width: none;
}
.site-nav nav::-webkit-scrollbar { display: none; }
.site-nav a {
  color: #59616d;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--blue); text-decoration: none; }

.layout {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  gap: 42px;
  padding: 40px 0 50px;
}

.profile {
  position: sticky;
  top: 88px;
  align-self: start;
}
.portrait {
  width: 174px;
  height: 174px;
  margin: 0 0 17px;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 50%;
  border: 3px solid #f0f2f4;
}
.profile h1 {
  margin: 0 0 7px;
  color: #343a43;
  font-size: 21px;
  line-height: 1.28;
  font-weight: 700;
}
.profile h1 span { white-space: nowrap; }
.role, .affiliation { margin: 0; }
.role { font-weight: 500; line-height: 1.48; }
.affiliation { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.profile-links {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.profile-links li, .profile-links a { color: #4e5661; font-size: 14px; }
.profile-links span {
  display: inline-block;
  width: 20px;
  color: #252b33;
  font-size: 12px;
  text-align: center;
}
.profile-links a:hover { color: var(--blue); }
.profile-links .profile-brand-icon { font-family: Arial, sans-serif; font-weight: 700; }

main { min-width: 0; }
.about { padding: 1px 0 15px; }
.about p { margin: 0 0 13px; }
.research-focus { color: #c8453c; }

.section { margin-top: 34px; }
.section h2 {
  margin: 0;
  padding: 0 0 8px;
  border-bottom: 1px solid var(--line);
  color: #39414b;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
}
.section h2 span { margin-right: 7px; font-size: 20px; }
.section-title-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; border-bottom: 1px solid var(--line); }
.section-title-row h2 { border: 0; }
.section-title-row > p { margin: 0; color: #8a929b; font-size: 12px; }
.author-legend strong { color: var(--blue); }
.author-legend sup { font-size: .78em; line-height: 0; }
.author-legend span { margin: 0 4px; color: #b3b8be; }
.section-note { margin: 12px 0 3px; color: var(--muted); font-size: 12.5px; line-height: 1.55; }

.news-list { margin: 10px 0 0; padding: 0 0 0 20px; }
.news-list li { padding: 3px 0 3px 2px; }
.news-list time {
  display: inline-block;
  width: 77px;
  color: #5d6570;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  font-style: italic;
}

.publication-list { display: grid; }
.publication {
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  gap: 22px;
  padding: 20px 0;
  border-bottom: 1px solid #f0f2f4;
}
.teaser-wrap {
  position: relative;
  align-self: start;
  height: 134px;
  overflow: hidden;
  background: white;
  border: 1px solid #e4e7ea;
  border-radius: 3px;
  width: 100%;
  padding: 0;
  cursor: zoom-in;
  transition: border-color .15s ease;
}
.teaser-wrap:hover { border-color: #87a9c4; }
.teaser-wrap:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.teaser-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: white;
}
.venue {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  max-width: 100%;
  padding: 3px 7px;
  background: rgba(43, 89, 126, .92);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .01em;
}
.pub-copy { align-self: center; min-width: 0; }
.pub-copy h3 {
  margin: 0 0 5px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.36;
  font-weight: 700;
}
.pub-copy p { margin: 0 0 5px; }
.pub-copy .research-topic { display: inline-block; margin: 1px 0 7px; padding: 2px 7px; border-radius: 3px; background: #f2f5f8; color: #5e7082; font-size: 10.5px; font-weight: 500; line-height: 1.5; }
.authors { color: #4c545e; font-size: 13px; line-height: 1.45; }
.authors sup, .links sup { color: var(--blue); font-size: .72em; font-weight: 750; line-height: 0; }
.links { color: #777f89; font-size: 12.5px; }
.links a { font-weight: 650; }
.links span { margin: 0 3px; color: #b3b8be; }
.links .submission-status { margin: 0; color: #687587; }
.summary { color: #5f6873; font-size: 13px; line-height: 1.47; }

.project-list { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; margin-top: 15px; }
.project-list article { padding: 15px 17px 16px; background: #fafbfc; border: 1px solid var(--line); border-radius: 4px; }
.project-list h3 { margin: 0 0 5px; font-size: 15px; }
.project-list p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.48; }
.project-list .project-card { display: flex; flex-direction: column; padding: 20px; }
.project-list .project-category { margin-bottom: 8px; font-size: 10px; letter-spacing: .06em; font-weight: 650; color: #77818c; }
.project-card h3 { font-size: 17px; margin-bottom: 9px; overflow-wrap: anywhere; }
.project-metrics { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 15px 0 0; padding-bottom: 13px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.project-metrics a { color: #526273; }
.project-metrics strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.project-highlights { margin: 14px 0 18px; padding-left: 17px; font-size: 12.8px; color: var(--muted); line-height: 1.55; }
.project-highlights li + li { margin-top: 7px; }
.project-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 15px; margin-top: auto; font-size: 12px; }
.project-primary-link { font-weight: 650; }
.project-list .project-stat-note { margin-top: 14px; font-size: 10.5px; color: #7c8793; }

.timeline article {
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid #f0f2f4;
}
.experience-group-title {
  margin: 17px 0 2px;
  color: #77818c;
  font-size: 11.5px;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.experience-content {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.institution-logo-wide {
  width: 180px;
  height: auto;
  max-height: 62px;
  display: block;
  object-fit: contain;
  object-position: left center;
  margin-top: 10px;
}
.company-logo {
  width: 66px;
  height: 66px;
  display: block;
  flex: none;
  object-fit: contain;
  background-color: #fff;
  border-radius: 5px;
}
.logo-kingsoft { height: auto; padding: 0; margin-top: 3px; object-position: center top; border-radius: 0; }
.logo-zai { padding: 5px; }
.logo-teleai { padding: 1px; border-radius: 50%; }
.institution-logo-mark { width: 50px; height: 50px; margin: 3px auto 0; object-fit: cover; object-position: left center; border-radius: 0; }
.timeline time, .simple-item time, .education-item time, .honors time { color: var(--blue); font-size: 12.5px; font-weight: 650; }
.timeline h3, .simple-item h3, .education-item h3 { margin: 0 0 4px; font-size: 14.5px; line-height: 1.4; }
.timeline p, .simple-item p, .education-item p { margin: 0; color: var(--muted); font-size: 13px; }
.timeline .experience-affiliation { margin-bottom: 6px; }

.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 35px; }
.simple-item { padding-top: 13px; }
.simple-item h3 { margin-top: 4px; }
.education-list { display: grid; }
.education-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 13px 0;
  border-bottom: 1px solid #f0f2f4;
}
.education-item h3 { margin-top: 3px; }
.education-logo-frame {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fff;
  margin-top: 4px;
}
.education-item > .education-logo-frame { justify-self: center; }
.education-logo { display: block; width: 46px; height: 46px; object-fit: contain; flex: none; }
.education-logo-ecnu { object-fit: cover; object-position: left center; }
.education-logo-hubu { width: 68px; height: auto; max-width: none; transform: translateY(2px); }
.education-partner-logos { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 4px; }
.education-partner-logos .education-logo-frame { width: 48px; height: 48px; margin-top: 0; flex: none; }
.education-logo-mmu { width: 46px; height: 48px; }
.honors { list-style: none; margin: 8px 0 0; padding: 0; }
.honors li { display: grid; grid-template-columns: 43px 1fr; gap: 7px; padding: 5px 0; color: var(--muted); font-size: 12.8px; line-height: 1.4; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 40px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  color: #969da5;
  font-size: 11.5px;
}
footer p { margin: 0; }
.figure-dialog { width: min(1100px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 20px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); }
.figure-dialog::backdrop { background: rgba(22, 30, 40, .65); }
.figure-close { display: block; margin: 0 0 14px auto; padding: 7px 12px; background: #f6f8fa; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); cursor: pointer; font: inherit; }
.figure-expanded { width: 100%; max-height: 75vh; object-fit: contain; }
.figure-caption { margin: 12px 0 0; font-size: 13px; color: var(--muted); }

@media (max-width: 840px) {
  .site-nav nav { justify-content: flex-start; overflow-x: auto; gap: 23px; }
  .layout { grid-template-columns: 1fr; gap: 28px; padding-top: 28px; }
  .profile { position: static; display: grid; grid-template-columns: 145px 1fr; column-gap: 25px; align-items: start; }
  .portrait { width: 145px; height: 145px; grid-row: 1 / span 5; margin: 0; }
  .profile-links { grid-template-columns: repeat(2, max-content); column-gap: 18px; margin-top: 14px; }
}

@media (max-width: 620px) {
  body { font-size: 15px; }
  .site-nav { height: 50px; }
  .site-nav nav { width: calc(100% - 28px); gap: 20px; }
  .site-nav a { font-size: 13px; }
  .layout { width: min(100% - 30px, 560px); }
  .profile { display: grid; grid-template-columns: 104px 1fr; column-gap: 18px; }
  .portrait { width: 104px; height: 104px; }
  .profile h1 { font-size: 19px; }
  .role { font-size: 13.5px; }
  .affiliation { font-size: 12.5px; }
  .profile-links { grid-column: 1 / -1; grid-template-columns: repeat(2, 1fr); margin-top: 17px; }
  .news-list time { width: 70px; }
  .publication { grid-template-columns: 1fr; gap: 12px; padding: 18px 0 20px; }
  .teaser-wrap { width: min(100%, 360px); height: 205px; }
  .pub-copy h3 { font-size: 15.5px; }
  .project-list, .two-column { grid-template-columns: 1fr; }
  .timeline article { grid-template-columns: 1fr; gap: 3px; }
  .section-title-row { display: block; padding-bottom: 9px; }
  .section-title-row > p { margin-top: 2px; }
  .academic-experience { grid-template-columns: 1fr; }
  .academic-logo-slot { display: none; }
  .institution-logo-wide { width: 165px; }
  footer { flex-direction: column; gap: 5px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
