:root {
  color-scheme: light;
  --page: #f7f7f4;
  --paper: #ffffff;
  --ink: #1b1f23;
  --muted: #596168;
  --soft: #eef2ee;
  --line: #d8ddd7;
  --green: #21695d;
  --green-dark: #144c44;
  --red: #a23f2a;
  --blue: #2f5f9b;
  --shadow: 0 16px 44px rgba(33, 38, 42, 0.12);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei",
    "Noto Sans CJK SC", sans-serif;
  font-size: 16px;
  line-height: 1.66;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
  color: var(--green-dark);
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(216, 221, 215, 0.9);
  background: rgba(247, 247, 244, 0.94);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(100% - 32px, var(--max));
  min-height: 58px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
  color: var(--muted);
  font-size: 0.93rem;
  white-space: nowrap;
}

.nav-links a {
  color: inherit;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--green-dark);
}

.layout {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 64px;
}

.profile {
  position: sticky;
  top: 86px;
  align-self: start;
  padding: 42px 0 34px;
}

.profile h1 {
  margin: 0;
  color: var(--ink);
  font-size: 2rem;
  line-height: 1.08;
}

.profile-photo {
  width: min(100%, 224px);
  height: 280px;
  margin-bottom: 22px;
  object-fit: cover;
  object-position: center center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.name-cn {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 1.15rem;
  font-weight: 750;
}

.profile-title {
  margin: 16px 0 0;
  color: #343a40;
  font-weight: 650;
  line-height: 1.45;
}

.profile-links {
  margin: 22px 0 0;
  padding: 18px 0 0;
  display: grid;
  gap: 8px;
  border-top: 2px solid var(--line);
  color: var(--muted);
  list-style: none;
}

.content {
  min-width: 0;
  padding: 42px 0 72px;
}

.section {
  padding: 34px 0 44px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 76px;
}

.section:last-child {
  border-bottom: 0;
}

.section-kicker {
  margin: 0 0 7px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

h2 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 1.84rem;
  line-height: 1.22;
}

.about p,
.timeline p,
.publication p {
  margin: 0;
  color: var(--muted);
}

.about p + p {
  margin-top: 13px;
}

.about strong {
  color: var(--ink);
  font-weight: 850;
}

.interest-list {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.interest-list span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.34rem 0.62rem;
  border: 1px solid rgba(33, 105, 93, 0.24);
  border-radius: 6px;
  background: #edf5f3;
  color: var(--green-dark);
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.25;
}

.interest-list strong {
  font-weight: 900;
}

.news-list,
.award-list {
  margin: 0;
  padding-left: 1.1rem;
}

.news-list li + li,
.award-list li + li {
  margin-top: 9px;
}

.news-list time {
  display: inline-block;
  min-width: 74px;
  color: var(--green-dark);
  font-weight: 850;
}

.pub-group + .pub-group {
  margin-top: 28px;
}

.pub-group > h3 {
  margin: 0 0 12px;
  color: #30363c;
  font-size: 1.08rem;
}

.publication {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.publication.no-figure {
  grid-template-columns: 112px minmax(0, 1fr);
}

.pub-figure {
  position: relative;
  display: block;
  overflow: hidden;
  align-self: start;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: #fff;
  text-decoration: none;
}

.pub-figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.pub-figure span {
  position: absolute;
  left: 10px;
  top: 10px;
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 0.54rem;
  border-radius: 6px;
  background: rgba(20, 76, 68, 0.94);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1;
}

.pub-text-badge {
  width: fit-content;
  min-width: 84px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.55rem;
  border-radius: 6px;
  background: var(--green-dark);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 850;
  line-height: 1;
  text-align: center;
}

.publication h4 {
  margin: 0;
  color: var(--ink);
  font-size: 1.04rem;
  line-height: 1.42;
}

.publication h4 a {
  color: inherit;
}

.pub-authors,
.pub-meta {
  margin-top: 4px !important;
  font-size: 0.93rem;
  font-weight: 750;
}

.pub-authors {
  color: #343a40 !important;
}

.pub-authors strong {
  color: var(--ink);
  font-weight: 900;
}

.pub-meta {
  color: var(--red) !important;
}

.publication p:not(.pub-meta):not(.pub-authors) {
  margin-top: 7px;
}

.timeline {
  display: grid;
  gap: 24px;
}

.timeline.compact {
  gap: 18px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr);
  gap: 22px;
}

.timeline-date {
  color: var(--green-dark);
  font-weight: 850;
  line-height: 1.35;
}

.timeline h3 {
  margin: 0 0 7px;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.36;
}

.timeline p + p {
  margin-top: 8px;
}

.timeline ul {
  margin: 8px 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.timeline li + li {
  margin-top: 7px;
}

.timeline strong {
  color: var(--ink);
  font-weight: 850;
}

.award-list li::marker,
.news-list li::marker {
  color: var(--red);
}

.site-footer {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 0 0 42px 344px;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .nav {
    min-height: 66px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 10px 0;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .profile {
    position: static;
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 20px 24px;
    padding: 32px 0 6px;
  }

  .profile-photo {
    grid-row: span 4;
    width: 150px;
    height: 150px;
    margin: 0;
  }

  .profile-links {
    align-self: end;
  }

  .content {
    padding-top: 12px;
  }

  .site-footer {
    padding-left: 0;
  }
}

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

  .nav,
  .layout,
  .site-footer {
    width: min(100% - 24px, var(--max));
  }

  .profile {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 14px 16px;
  }

  .profile-photo {
    width: 104px;
    height: 104px;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 8px 14px;
    overflow: visible;
    white-space: normal;
  }

  .profile h1 {
    font-size: 1.7rem;
  }

  .name-cn {
    font-size: 1rem;
  }

  .profile-title {
    margin-top: 10px;
    font-size: 0.94rem;
  }

  .profile-links {
    grid-column: 1 / -1;
    margin-top: 4px;
  }

  .section {
    padding: 28px 0 34px;
  }

  h2 {
    font-size: 1.54rem;
  }

  .publication,
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .publication.no-figure {
    grid-template-columns: 1fr;
  }

  .pub-figure {
    width: 100%;
  }

  .pub-text-badge {
    min-width: auto;
  }
}
