:root {
  --background: #ffffff;
  --paper: #ffffff;
  --text: #202124;
  --muted: #5f6368;
  --border: #d9dde3;
  --soft-border: #edf0f3;
  --link: #145ea8;
  --link-hover: #0a3f75;
  --accent: #7a1f1f;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.65;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 28px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.brand {
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 700;
}

.brand:hover {
  color: var(--text);
  text-decoration: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  font-size: 14px;
}

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

.nav a:hover {
  color: var(--link);
}

.page {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 48px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 42px 28px 32px;
}

.profile-panel {
  position: sticky;
  top: 86px;
  align-self: start;
  padding-right: 8px;
}

.portrait {
  display: block;
  width: 210px;
  height: 250px;
  object-fit: cover;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: #f6f7f8;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  line-height: 1.18;
}

.position,
.affiliation {
  margin-bottom: 2px;
  color: var(--muted);
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 18px 0 20px;
  font-size: 14px;
}

.quick-info {
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.quick-info div {
  margin-bottom: 16px;
}

.quick-info dt {
  margin-bottom: 2px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.quick-info dd {
  margin: 0;
  color: var(--muted);
}

.content {
  min-width: 0;
}

.section {
  padding: 0 0 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--soft-border);
}

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

h2 {
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.25;
}

h3 {
  margin-bottom: 3px;
  font-size: 16px;
  line-height: 1.35;
}

.muted,
.paper-meta {
  color: var(--muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 9px;
  color: #30343b;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: #fafbfc;
  font-size: 13px;
}

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

.timeline-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.school-mark {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.school-mark.pku {
  background: #8c1d40;
}

.school-mark.bupt {
  background: #15589d;
}

.timeline-item p {
  margin-bottom: 2px;
}

.news-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-list li {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 14px;
  padding: 0 0 10px;
}

.news-list li:last-child {
  padding-bottom: 0;
}

.news-list time {
  color: var(--muted);
  font-weight: 700;
}

.section-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.section-title-row h2 {
  margin: 0;
  border-bottom: 0;
}

.section-title-row a {
  flex: 0 0 auto;
  font-size: 14px;
}

.publication {
  display: grid;
  grid-template-columns: 185px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.paper-image {
  width: 185px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: #f6f7f8;
}

.paper-meta {
  margin-bottom: 8px;
  font-size: 14px;
}

.paper-links,
.project-links {
  display: flex;
  gap: 12px;
  margin-bottom: 0;
  font-size: 14px;
}

.project-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
}

.project-row p {
  margin-bottom: 0;
}

.footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 22px 28px 38px;
  color: var(--muted);
  font-size: 13px;
}

.footer p {
  margin: 0;
  border-top: 1px solid var(--soft-border);
  padding-top: 18px;
}

@media (max-width: 820px) {
  .site-header {
    position: static;
    display: block;
    padding: 16px 20px;
  }

  .nav {
    justify-content: flex-start;
    gap: 12px;
    margin-top: 8px;
  }

  .page {
    display: block;
    padding: 28px 20px 24px;
  }

  .profile-panel {
    position: static;
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 18px;
    margin-bottom: 30px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
  }

  .portrait {
    grid-row: span 4;
    width: 132px;
    height: 158px;
    margin-bottom: 0;
  }

  .profile-links,
  .quick-info {
    grid-column: 1 / -1;
  }

  .publication,
  .timeline-item,
  .project-row {
    display: block;
  }

  .paper-image {
    width: 100%;
    max-width: 260px;
    margin-bottom: 12px;
  }

  .school-mark {
    margin-bottom: 8px;
  }

  .news-list li {
    grid-template-columns: 54px minmax(0, 1fr);
  }
}

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

  .profile-panel {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .portrait {
    width: 112px;
    height: 134px;
  }

  h1 {
    font-size: 26px;
  }

  h2 {
    font-size: 20px;
  }
}
