:root {
  --text: #24272d;
  --muted: #606977;
  --line: #dbe2ea;
  --soft: #f4f7fa;
  --paper: #ffffff;
  --accent: #0b6b7a;
  --accent-dark: #084d58;
  --warm: #b84a2f;
  --nav: #1f2933;
  --shadow: 0 18px 44px rgba(24, 39, 54, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #f7f9fb 0%, #eef3f6 100%);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--nav);
  box-shadow: 0 4px 14px rgba(16, 24, 32, 0.14);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1160px;
  min-height: 54px;
  margin: 0 auto;
  padding: 0 24px;
  overflow-x: auto;
  white-space: nowrap;
}

.nav a {
  color: #e8edf2;
  font-size: 14px;
  letter-spacing: 0;
}

.nav a:hover,
.nav a:focus-visible {
  color: #ffffff;
}

.nav .brand {
  margin-right: 10px;
  color: #ffffff;
  font-weight: 700;
}

.page {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  gap: 42px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 38px 24px 56px;
}

.profile {
  position: sticky;
  top: 82px;
  align-self: start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.portrait {
  display: block;
  width: 172px;
  height: 172px;
  margin: 0 auto 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  object-fit: cover;
  background: var(--soft);
}

.profile h1 {
  margin: 0;
  text-align: center;
  font-size: 26px;
  line-height: 1.2;
}

.role {
  margin: 4px 0 0;
  text-align: center;
  color: var(--accent-dark);
  font-weight: 700;
}

.affiliation {
  margin: 10px 0 18px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.contact-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  font-size: 14px;
}

.contact-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  min-width: 0;
}

.contact-icon {
  width: 18px;
  color: var(--accent);
  font-size: 17px;
  text-align: center;
  letter-spacing: 0;
}

.scholar-icon {
  color: #4285f4;
}

.github-icon {
  color: #24292f;
}

.cv-icon {
  color: #b84a2f;
}

.openreview-icon {
  color: #6d5dfc;
}

.orcid-icon {
  color: #a6ce39;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.metric-grid div {
  min-width: 0;
  padding: 10px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
  text-align: center;
}

.metric-grid strong {
  display: block;
  color: var(--accent-dark);
  font-size: 18px;
  line-height: 1.2;
}

.metric-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.content {
  min-width: 0;
}

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

.section:first-child {
  padding-top: 2px;
}

.section h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: #17202a;
  font-size: 28px;
  line-height: 1.2;
}

.section-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(11, 107, 122, 0.1);
  color: var(--accent);
  font-size: 17px;
}

.section p {
  margin: 0 0 12px;
}

.intro {
  padding: 14px 0 28px;
  border-bottom: 1px solid var(--line);
}

.intro p:first-child {
  margin-top: 4px;
}

.intro p:last-child {
  margin-bottom: 0;
}

.intro .section-icon {
  background: rgba(184, 74, 47, 0.12);
  color: var(--warm);
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--warm);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

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

.news-list li {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(96, 105, 119, 0.32);
}

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

.nowrap {
  white-space: nowrap;
}

.highlight {
  color: var(--warm);
  font-weight: 800;
}

.highlight-neutral {
  color: #3f5871;
  font-weight: 800;
}

.highlight-green {
  color: #176640;
  font-weight: 800;
}

.highlight-gold {
  color: #8a5a00;
  font-weight: 800;
}

.highlight-soft {
  padding: 1px 5px;
  border-radius: 4px;
  background: #eef3f7;
  color: #3f5871;
  font-weight: 800;
}

time {
  color: var(--accent-dark);
  font-weight: 700;
}

.note {
  color: var(--muted);
  font-size: 14px;
}

.publication {
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px dashed rgba(96, 105, 119, 0.35);
}

.publication:last-child {
  border-bottom: 0;
}

.pub-thumb {
  display: block;
  width: 178px;
  height: 108px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
  object-fit: cover;
}

.pub-body h3 {
  margin: -2px 0 5px;
  font-size: 18px;
  line-height: 1.35;
}

.authors,
.venue {
  color: var(--muted);
  font-size: 14px;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
}

.compact-list {
  display: grid;
  gap: 8px;
}

.compact-list li {
  position: relative;
  padding-left: 18px;
}

.compact-list li::before {
  content: "";
  position: absolute;
  top: 0.75em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.experience-item {
  display: block;
  padding: 2px 0;
}

.experience-item h3 {
  margin: 0 0 2px;
  font-size: 18px;
  line-height: 1.35;
}

.role-line {
  margin: 0 0 2px;
  color: var(--accent-dark);
  font-size: 15px;
  font-weight: 700;
}

.experience-date {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
}

.topic-line {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

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

.timeline li {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 18px;
}

.timeline span {
  display: block;
}

.timeline span {
  color: var(--muted);
  font-size: 14px;
}

.visitor-map-widget {
  display: flex;
  justify-content: center;
  min-height: 210px;
  padding: 12px 0 4px;
  overflow-x: auto;
}

.visitor-map-widget img,
.visitor-map-widget iframe,
.visitor-map-widget canvas,
.visitor-map-widget object {
  max-width: 100%;
}

.footer {
  padding: 26px 0 0;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 860px) {
  .page {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 26px 18px 44px;
  }

  .profile {
    position: static;
  }

  .nav {
    gap: 18px;
    padding: 0 18px;
  }
}

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

  .intro,
  .profile {
    padding: 18px;
  }

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

  .portrait {
    width: 142px;
    height: 142px;
  }

  .news-list li,
  .publication,
  .experience-item,
  .timeline li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

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