:root {
  color-scheme: light;
  --bg: #ffffff;
  --paper: #ffffff;
  --ink: #1a1a1a;
  --soft-ink: #4a4a4a;
  --muted: #6e6e6e;
  --line: #e5e5e5;
  --accent: #1a365d;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Charter", "Georgia", "Times New Roman", ui-serif, serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

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

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 54px;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

.brand {
  color: var(--ink);
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

.nav a {
  padding: 4px 0;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--accent);
  text-decoration: none;
}

.lang-toggle {
  min-height: 30px;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  color: var(--soft-ink);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.lang-toggle:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.layout {
  width: min(1080px, calc(100% - 48px));
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 60px;
  margin: 0 auto;
  padding: 52px 0 32px;
}

.sidebar {
  position: sticky;
  top: 82px;
  align-self: start;
}

.portrait {
  width: 120px;
  aspect-ratio: 1;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 4px;
  object-fit: cover;
  object-position: center;
  background: var(--paper);
}

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

h1 {
  margin-bottom: 2px;
  font-size: 28px;
  line-height: 1.15;
}

.name-cn {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 18px;
}

.role {
  margin-bottom: 12px;
  color: var(--soft-ink);
  font-size: 14px;
}

.bio {
  margin-bottom: 18px;
  color: var(--soft-ink);
  font-size: 14px;
}

.profile-links,
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-links a,
.links a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  color: var(--soft-ink);
  font-size: 13px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
}

.profile-links a:hover,
.links a:hover {
  border-color: var(--accent);
  color: var(--ink);
  text-decoration: none;
}

.side-block {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.side-block h2 {
  margin-bottom: 10px;
  font-size: 15px;
  color: var(--ink);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
  color: var(--soft-ink);
  font-size: 12px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
}

.content {
  min-width: 0;
}

.section {
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 44px;
}

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

.intro {
  padding: 0 0 40px;
}

.intro h2 {
  max-width: 700px;
  margin-bottom: 14px;
  font-size: 36px;
  line-height: 1.18;
  font-weight: 700;
}

.intro p {
  max-width: 700px;
  margin-bottom: 12px;
  color: var(--soft-ink);
  font-size: 16px;
}

.section h2 {
  margin-bottom: 18px;
  font-size: 24px;
  line-height: 1.25;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.section-head h2 {
  margin-bottom: 0;
}

.year,
.timeline time,
.education time {
  color: var(--soft-ink);
  font-weight: 600;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
}

.publication-list {
  display: grid;
  gap: 12px;
}

.publication {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.publication:first-child {
  border-top: 0;
}

.publication.is-hidden {
  display: none;
}

.publication h3,
.timeline h3 {
  margin-bottom: 6px;
  font-size: 18px;
  line-height: 1.32;
}

.venue {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
}

.authors,
.summary,
.timeline p {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
}

.authors strong {
  color: var(--ink);
  font-weight: 700;
}

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

.timeline article {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  column-gap: 34px;
  row-gap: 4px;
  align-items: start;
}

.timeline h3,
.timeline p {
  grid-column: 2;
}

.education {
  display: grid;
  gap: 10px;
}

.education article {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.education article:last-child {
  border-bottom: 0;
}

.footer {
  width: min(1080px, calc(100% - 48px));
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 12px auto 0;
  padding: 22px 0 30px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
}

.footer p {
  margin: 0;
}

.footer a {
  color: var(--soft-ink);
}

.footer a:hover {
  color: var(--ink);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

@media (max-width: 940px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 32px;
  }

  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 0 24px;
    align-items: start;
  }

  .portrait {
    grid-row: span 4;
  }

  .profile-links,
  .side-block {
    grid-column: 1 / -1;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    min-height: auto;
    padding: 12px 18px;
  }

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

  .layout,
  .footer {
    width: min(100% - 28px, 1080px);
  }

  .sidebar,
  .publication,
  .timeline article,
  .education article {
    grid-template-columns: 1fr;
  }

  .timeline h3,
  .timeline p {
    grid-column: auto;
  }

  .portrait {
    width: 100px;
    grid-row: auto;
  }

  .intro h2 {
    font-size: 30px;
  }

  .footer {
    flex-direction: column;
  }
}
