:root {
  --bg: #ffffff;
  --paper: #ffffff;
  --text: #222222;
  --muted: #666666;
  --pku-red: #8c1515;
  --pku-red-dark: #6f0f0f;
  --line: #e5e5e5;
  --soft-red: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", "Noto Serif", serif;
  font-size: 16px;
  line-height: 1.6;
}

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 3px solid var(--pku-red);
  background: rgba(255, 255, 255, 0.96);
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
}

.nav a:first-child {
  font-weight: 800;
}

.page-shell {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 44px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 24px;
}

.profile-card {
  position: sticky;
  top: 68px;
  align-self: start;
  padding: 18px 16px 22px;
  border-top: 5px solid var(--pku-red);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--paper);
}

.portrait-frame {
  padding: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.portrait {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, #ffffff, #ffffff),
    repeating-linear-gradient(45deg, transparent 0 10px, rgba(140, 21, 21, 0.08) 10px 20px);
}

.portrait.is-missing {
  opacity: 0.25;
}

.profile-card h1 {
  margin: 18px 0 6px;
  color: var(--pku-red-dark);
  font-size: 24px;
  line-height: 1.25;
}

.profile-card h1 span {
  display: block;
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
}

.role {
  margin: 0 0 12px;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
}

.profile-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
}

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

.section {
  scroll-margin-top: 76px;
  padding-bottom: 20px;
}

.section + .section {
  padding-top: 2px;
}

.intro-section {
  padding: 20px 22px 18px;
  border-left: 4px solid var(--pku-red);
  background: #ffffff;
}

.pku-label {
  margin: 0 0 7px;
  color: var(--pku-red);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h2 {
  margin: 0 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  color: var(--pku-red-dark);
  font-size: 25px;
  line-height: 1.25;
}

h2::after {
  display: block;
  width: 64px;
  height: 3px;
  margin-top: 6px;
  background: var(--pku-red);
  content: "";
}

h3 {
  margin: 18px 0 8px;
  color: var(--pku-red-dark);
  font-size: 19px;
}

p {
  margin: 0 0 12px;
}

ul {
  margin: 0 0 14px;
  padding-left: 22px;
}

li {
  margin-bottom: 7px;
}

.news-list strong {
  color: var(--pku-red);
}

.publication {
  margin: 0 0 18px;
  padding: 12px 0 2px;
  border-bottom: 1px solid var(--line);
}

.pub-venue {
  margin-bottom: 8px;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
}

.pub-body {
  display: grid;
  grid-template-columns: 480px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.pub-thumb {
  display: block;
  margin: 0;
  min-height: 300px;
  border: 1px solid var(--line);
  background: var(--soft-red);
  overflow: hidden;
}

.pub-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: contain;
}

.pub-body p {
  margin-bottom: 5px;
}

.pub-links {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
}

.footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 34px;
  border-top: 3px solid var(--pku-red);
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
}

@media (max-width: 820px) {
  .page-shell {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .profile-card {
    position: static;
  }

  .portrait-frame {
    width: min(230px, 76vw);
  }

  .pub-body {
    grid-template-columns: 1fr;
  }
}
