:root {
  --bg: #faf9f6;
  --surface: #ffffff;
  --text: #1b1f23;
  --muted: #5f6b76;
  --line: #e5e7eb;
  --accent: #1f5e9c;
  --max-width: 920px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Source Sans 3", sans-serif;
  line-height: 1.7;
}

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

a:hover {
  text-decoration: underline;
}

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

.container {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

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

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-inner {
  min-height: 4rem;
}

.site-title,
h1,
h2 {
  font-family: "Source Serif 4", serif;
}

.site-title {
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 700;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.9rem 1.1rem;
}

.site-nav a {
  color: var(--muted);
  font-size: 1rem;
}

.site-nav a.is-current {
  color: var(--accent);
  font-weight: 600;
}

main {
  padding: 2.2rem 0 3rem;
}

.intro {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

h1 {
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 3.4rem);
  line-height: 1.1;
}

.name-cn {
  color: var(--muted);
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8em;
  font-weight: 600;
}

.intro-role,
.intro-location {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.intro-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  margin: 1rem 0 1.1rem;
}

.intro-summary {
  margin: 0;
  max-width: 52rem;
  font-size: 1.08rem;
}

.intro-photo img {
  width: 190px;
  height: 254px;
  object-fit: cover;
  object-position: center top;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.content-section {
  padding: 1.85rem 0;
  border-bottom: 1px solid var(--line);
}

h2 {
  margin: 0 0 0.9rem;
  font-size: 1.7rem;
  line-height: 1.2;
}

h3 {
  margin: 1.2rem 0 0.7rem;
  font-family: "Source Serif 4", serif;
  font-size: 1.25rem;
}

.content-section p {
  margin: 0 0 0.9rem;
}

.content-section p:last-child {
  margin-bottom: 0;
}

.simple-list,
.publication-list {
  margin: 0;
}

.simple-list {
  padding-left: 1.2rem;
}

.simple-list li + li {
  margin-top: 0.45rem;
}

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

.publication-list {
  padding-left: 1.3rem;
}

.publication-item + .publication-item {
  margin-top: 1.2rem;
}

.publication-title,
.publication-authors,
.publication-venue {
  margin: 0;
}

.publication-title {
  font-weight: 700;
  color: var(--text);
}

.publication-authors,
.publication-venue {
  color: var(--muted);
}

.muted-link {
  color: var(--muted);
}

.contact-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.2rem 0 2rem;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 760px) {
  .header-inner,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .intro {
    grid-template-columns: 1fr;
  }

  .intro-photo {
    order: 0;
  }

  .intro-photo img {
    width: 150px;
    height: 200px;
  }
}
