:root {
  --text: rgba(0, 0, 0, 0.85);
  --muted: rgba(0, 0, 0, 0.66);
  --line: #ededed;
  --link: #1f78a5;
  --link-hover: #155b7b;
  --page-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.62;
}

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

a:hover,
a:focus-visible {
  color: var(--link-hover);
  text-decoration: underline;
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 80px, var(--page-width));
  min-height: 64px;
  margin: 0 auto;
}

.site-title {
  color: var(--text);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 38px;
}

.nav-links a {
  color: #111;
  font-size: 14px;
  font-weight: 600;
}

.page-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 750px);
  gap: 60px;
  width: min(100% - 80px, var(--page-width));
  margin: 40px auto 0;
}

.profile {
  padding-top: 2px;
}

.profile-photo {
  display: block;
  width: 190px;
  height: 190px;
  margin: 0 auto 26px;
  border-radius: 50%;
  object-fit: cover;
}

.profile h1 {
  margin: 0 0 2px;
  color: #111;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 700;
}

.chinese-name {
  display: inline-block;
  font-family: "STKaiti", "KaiTi", "Kaiti SC", "Songti SC", serif;
  font-size: 0.78em;
  font-weight: 400;
  color: #3f5960;
}

.chinese-name.block {
  display: block;
  margin-top: 4px;
}

.role {
  margin: 0;
  color: #111;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}

.affiliation {
  margin: 2px 0 26px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.sidebar-section {
  margin-top: 26px;
}

.sidebar-section h2 {
  margin: 0 0 8px;
  color: #111;
  font-size: 15px;
  font-weight: 700;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 12px;
}

.social-links a {
  color: #111;
  font-size: 14px;
  font-weight: 700;
}

.email-link {
  display: inline-block;
  overflow-wrap: anywhere;
  color: #222;
  font-size: 14px;
}

.content {
  padding-bottom: 24px;
}

.content-section {
  margin-bottom: 24px;
}

.content-section h2 {
  margin: 0 0 14px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--line);
  color: #222;
  font-size: 25px;
  line-height: 1.25;
  font-weight: 650;
}

.content-section p {
  margin: 0 0 18px;
}

.publication-list,
.compact-list {
  margin: 0;
  padding-left: 22px;
}

.publication-list li,
.compact-list li {
  margin-bottom: 13px;
}

.content-section h3 {
  margin: 18px 0 8px;
  color: #222;
  font-size: 17px;
  line-height: 1.35;
}

.site-footer {
  width: min(100% - 80px, var(--page-width));
  margin: 28px auto 24px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 820px) {
  .header-inner,
  .page-shell,
  .site-footer {
    width: min(100% - 32px, var(--page-width));
  }

  .header-inner {
    min-height: 58px;
  }

  .site-title {
    font-size: 16px;
  }

  .nav-links {
    gap: 18px;
  }

  .page-shell {
    grid-template-columns: 1fr;
    gap: 34px;
    margin-top: 28px;
  }

  .profile {
    text-align: center;
  }

  .profile-photo {
    width: 156px;
    height: 156px;
    margin-bottom: 20px;
  }

  .social-links {
    justify-content: center;
  }

  .content-section h2 {
    font-size: 23px;
  }
}

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

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 10px 0;
  }

  .nav-links {
    gap: 20px;
  }
}
