:root {
  --bg: #ffffff;
  --text: #1b1f24;
  --muted: #5f6975;
  --line: #e7e9ee;
  --soft: #f6f8fb;
  --accent: #2f6f9f;
  --accent-strong: #174e73;
  --max: 980px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

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

a:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
}

.brand {
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  gap: 18px;
  font-size: 14px;
}

.nav-links a {
  color: var(--muted);
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 44px 24px 72px;
}

.hero {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 42px;
  align-items: start;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.portrait {
  width: 220px;
  aspect-ratio: 0.75;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.hero h1 {
  margin: 0;
  font-size: 38px;
  line-height: 1.12;
  font-weight: 750;
  letter-spacing: 0;
}

.chinese-name {
  margin-left: 8px;
  color: var(--muted);
  font-weight: 500;
}

.hero p {
  margin: 0 0 13px;
}

.hero .role {
  margin: 12px 0 18px;
  color: var(--muted);
  font-size: 18px;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 600;
}

section {
  padding: 34px 0 0;
}

h2 {
  margin: 0 0 18px;
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.35;
}

.lead {
  max-width: 820px;
  color: var(--muted);
}

.plain-list {
  margin: 0;
  padding-left: 18px;
}

.plain-list li {
  margin-bottom: 8px;
}

#news h2 {
  font-style: italic;
}

.news-list {
  margin: 0;
  padding-left: 2em;
  list-style: disc;
}

.news-list li {
  position: relative;
  margin-bottom: 0.5em;
  padding: 0.24rem 0;
  line-height: 1.5;
  transition: color 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-list li:hover {
  color: #fe667b;
  transform: translateX(8px);
}

.news-list em {
  font-style: italic;
  font-weight: 650;
}

.news-list a {
  text-decoration: underline;
  transition: color 0.3s ease;
}

.news-list a:hover {
  color: #fe667b;
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.research-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.research-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.education-list {
  margin: 0;
  padding-left: 22px;
  color: var(--text);
}

.education-list > li {
  margin-bottom: 12px;
  padding-left: 2px;
}

.education-list ul {
  margin: 8px 0 0;
  padding-left: 22px;
  color: var(--text);
}

.education-list ul li {
  margin-bottom: 6px;
}

.education-list strong {
  color: var(--text);
  font-weight: 750;
}

.pub-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.pub-toolbar button {
  min-height: 34px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}

.pub-toolbar button.active {
  border-color: var(--accent);
  background: #eef6fb;
  color: var(--accent-strong);
}

.pub-list {
  display: grid;
  gap: 22px;
}

#pubs-viewport p {
  margin: 0 0 10px;
  color: var(--muted);
}

#pubs-viewport ul {
  margin: 0;
  padding-left: 20px;
}

#pubs-viewport li {
  margin-bottom: 12px;
}

.pub-item-with-img {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  align-items: start;
  margin-left: 0;
  list-style: none;
}

.pub-thumbnail {
  width: 180px;
  height: 120px;
  object-fit: contain;
  object-position: center top;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

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

.pub-year,
.pub-topic {
  margin: 18px 0 8px;
  color: var(--accent-strong);
  font-weight: 750;
}

.publication {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 20px;
  align-items: start;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.publication[hidden] {
  display: none;
}

.publication img {
  width: 170px;
  height: 112px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.venue {
  color: var(--accent-strong);
  font-weight: 750;
}

.authors,
.note {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 14px;
}

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

.project-list {
  color: var(--muted);
}

.project-list p {
  margin: 3px 0 8px;
}

.project-list strong {
  color: var(--text);
}

.project-items {
  margin: 0;
  padding-left: 18px;
}

.project-items > li {
  margin-bottom: 16px;
}

.project-items ul {
  margin: 4px 0 0;
  padding-left: 20px;
}

.project-items ul li {
  margin-bottom: 6px;
}

.footer {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

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

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

  .hero,
  .publication,
  .research-grid {
    grid-template-columns: 1fr;
  }

  .portrait {
    width: 180px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .news-list {
    padding-left: 1.4em;
  }

  .publication img {
    width: 100%;
    max-width: 260px;
    height: 150px;
  }

  .pub-item-with-img {
    grid-template-columns: 1fr;
  }

  .pub-thumbnail {
    width: 100%;
    max-width: 260px;
    height: 150px;
  }
}
