:root {
  --text: #24292f;
  --muted: #57606a;
  --soft: #6e7781;
  --border: #d0d7de;
  --bg: #ffffff;
  --panel: #f6f8fa;
  --link: #0969da;
  --accent: #1f883d;
  --blue: #1d4ed8;
  --blue-soft: #eff6ff;
  --red: #b42318;
  --shadow: 0 12px 34px rgba(31, 35, 40, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #f8fbff 0, #ffffff 210px);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

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

a:hover {
  text-decoration: underline;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.masthead {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.topnav {
  width: min(1180px, calc(100% - 32px));
  min-height: 58px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-title {
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0;
}

.site-title:hover {
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
}

.nav-links a {
  color: var(--muted);
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--blue);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  padding: 9px;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
}

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

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

.avatar {
  width: 220px;
  max-width: 100%;
  aspect-ratio: 171 / 239;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(9, 105, 218, 0.18);
  box-shadow: var(--shadow);
}

.sidebar h1 {
  margin: 22px 0 0;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: 0;
}

.english-name {
  margin-bottom: 14px;
  color: var(--soft);
  font-size: 20px;
}

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

.profile-links {
  display: grid;
  gap: 8px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 14px;
}

.profile-links span {
  color: var(--muted);
}

.profile-links a {
  font-weight: 600;
}

.content {
  min-width: 0;
}

.section {
  padding: 28px 0;
  border-bottom: 1px solid #e6edf5;
}

.section:first-child {
  padding-top: 0;
}

.section h2 {
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e6edf5;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: 0;
}

.section h3 {
  margin-bottom: 6px;
  font-size: 18px;
}

.kicker {
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-copy > p {
  max-width: 820px;
  text-align: justify;
}

.lab-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.78fr);
  gap: 22px;
  align-items: center;
  max-width: 980px;
  margin: 0 0 22px;
  padding: 18px 18px 18px 22px;
  border: 1px solid #bfdbfe;
  border-left: 4px solid var(--blue);
  border-radius: 6px;
  background: linear-gradient(135deg, #ffffff, #f8fbff);
  box-shadow: 0 8px 22px rgba(31, 35, 40, 0.05);
}

.lab-card strong,
.lab-card span {
  display: block;
}

.lab-card strong {
  color: var(--text);
  font-size: 22px;
  line-height: 1.35;
}

.lab-card span {
  margin-top: 6px;
  color: var(--blue);
  font-size: 17px;
  font-weight: 700;
}

.lab-visual {
  width: 100%;
  height: 150px;
  object-fit: cover;
  object-position: center 28%;
  justify-self: end;
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.quick-facts div {
  padding: 14px;
  border: 1px solid #dbeafe;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(31, 35, 40, 0.05);
}

.quick-facts strong,
.quick-facts span {
  display: block;
}

.quick-facts strong {
  color: var(--text);
  font-size: 22px;
  line-height: 1.2;
}

.quick-facts span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.news-list,
.compact-list {
  margin: 0;
  padding-left: 20px;
}

.news-window {
  position: relative;
  max-height: 302px;
  overflow-y: auto;
  padding-right: 8px;
  border-radius: 8px;
  scroll-behavior: smooth;
  scrollbar-color: #93c5fd #eff6ff;
  scrollbar-width: thin;
}

.news-window::-webkit-scrollbar {
  width: 8px;
}

.news-window::-webkit-scrollbar-track {
  background: #eff6ff;
  border-radius: 999px;
}

.news-window::-webkit-scrollbar-thumb {
  background: #93c5fd;
  border-radius: 999px;
}

.news-window::-webkit-scrollbar-thumb:hover {
  background: var(--blue);
}

.news-window::before,
.news-window::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  height: 28px;
  pointer-events: none;
}

.news-window::before {
  top: 0;
  background: linear-gradient(180deg, #ffffff, rgba(255, 255, 255, 0));
}

.news-window::after {
  bottom: 0;
  background: linear-gradient(0deg, #ffffff, rgba(255, 255, 255, 0));
}

.news-list {
  display: grid;
  gap: 10px;
  padding-left: 0;
  list-style: none;
}

.news-list li,
.compact-list li {
  margin-bottom: 10px;
}

.news-list li {
  position: relative;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 0;
  padding: 10px 14px 10px 18px;
  border: 1px solid #dbeafe;
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  background: var(--blue-soft);
}

.news-list li::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  width: 8px;
  height: 8px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.12);
}

.news-list time {
  grid-column: 1;
  grid-row: 1;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
}

.news-list span {
  grid-column: 2;
  grid-row: 1;
  color: var(--blue);
  font-weight: 700;
}

.research-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 28px;
}

.research-list article {
  min-height: 118px;
  padding: 18px;
  border: 1px solid #dbeafe;
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(31, 35, 40, 0.05);
}

.research-list h3 {
  color: #1f2937;
}

.research-list p {
  margin-bottom: 0;
  color: var(--muted);
}

.section-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #e6edf5;
  margin-bottom: 10px;
}

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

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  padding-top: 3px;
}

.filter {
  min-height: 32px;
  padding: 5px 12px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.filter:hover {
  color: var(--blue);
  border-color: var(--blue);
}

.filter.active {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.note {
  margin: 0 0 18px;
  color: var(--soft);
  font-size: 14px;
}

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

.paper {
  display: grid;
  grid-template-columns: 184px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid #e6edf5;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(31, 35, 40, 0.04);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

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

.paper:hover {
  transform: translateY(-1px);
  border-color: #bfdbfe;
  box-shadow: var(--shadow);
}

.paper.hidden {
  display: none;
}

.paper-thumb {
  position: relative;
  width: 184px;
  height: 116px;
  margin: 0;
  overflow: hidden;
  border: 1px solid #dbeafe;
  border-radius: 6px;
  background: var(--panel);
}

.paper-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #fff;
}

.venue-badge {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  max-width: calc(100% - 16px);
  padding: 4px 10px;
  border-radius: 4px;
  color: #fff;
  background: #0b3a78;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.22);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.paper-placeholder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.92);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
}

.paper-placeholder::before,
.paper-placeholder::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  opacity: 0.35;
}

.paper-placeholder::before {
  width: 96px;
  height: 96px;
  right: -26px;
  top: -24px;
  background: #fff;
}

.paper-placeholder::after {
  width: 58px;
  height: 58px;
  left: 16px;
  bottom: -20px;
  background: #fff;
}

.paper-placeholder span {
  position: relative;
  z-index: 1;
}

.paper-placeholder .venue-badge {
  position: absolute;
  z-index: 3;
}

.paper-placeholder.nav {
  background: linear-gradient(135deg, #0969da, #1f883d);
}

.paper-placeholder.geo,
.paper-placeholder.remote {
  background: linear-gradient(135deg, #8250df, #0969da);
}

.paper-placeholder.event {
  background: linear-gradient(135deg, #cf222e, #bf8700);
}

.paper-placeholder.vision {
  background: linear-gradient(135deg, #1f883d, #0969da);
}

.paper p {
  margin-bottom: 4px;
}

.paper strong {
  color: #111827;
}

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

.tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  color: var(--red);
  background: #fee2e2;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
  color: var(--soft);
  font-size: 14px;
}

.footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .page {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-top: 28px;
  }

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

  .avatar {
    grid-row: span 5;
    width: 140px;
  }

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

  .quick-facts,
  .research-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lab-card {
    grid-template-columns: 1fr;
  }

  .lab-visual {
    justify-self: start;
    max-width: 100%;
  }

}

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

  .topnav {
    min-height: 56px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 56px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg);
    box-shadow: 0 10px 26px rgba(31, 35, 40, 0.12);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 10px;
  }

  .sidebar {
    grid-template-columns: 108px minmax(0, 1fr);
    column-gap: 16px;
  }

  .avatar {
    width: 108px;
  }

  .sidebar h1 {
    margin-top: 0;
    font-size: 26px;
  }

  .english-name {
    font-size: 18px;
  }

  .section {
    padding: 24px 0;
  }

  .section h2 {
    font-size: 24px;
  }

  .quick-facts,
  .research-list {
    grid-template-columns: 1fr;
  }

  .section-title-row {
    display: block;
  }

  .paper {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .paper-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .filters {
    justify-content: flex-start;
    margin: 10px 0 8px;
  }
}
