*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
  color: #374151;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #1d4ed8;
  text-decoration: none;
}

a:hover {
  color: #1e3a8a;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pub-award {
  color: #b91c1c;
  font-weight: 500;
}

.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 24px 72px;
}

.topnav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 12px;
  margin-bottom: 32px;
  border-bottom: 1px solid #f3f4f6;
}

.topnav--home {
  justify-content: flex-end;
}

.topnav-brand {
  font-weight: 600;
  font-size: 0.96rem;
  color: #111827;
  text-decoration: none;
}

.topnav-brand:hover {
  color: #111827;
  text-decoration: none;
}

.topnav-links {
  display: flex;
  gap: 20px;
  font-size: 0.86rem;
}

.topnav-links a {
  color: #6b7280;
  text-decoration: none;
}

.topnav-links a:hover {
  color: #111827;
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 184px;
  gap: 36px;
  align-items: center;
  margin-bottom: 44px;
}

.hero h1 {
  margin: 0 0 4px 0;
  font-size: 1.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #111827;
  line-height: 1.2;
}

.cn-name {
  font-family: 'Ma Shan Zheng', 'Kaiti SC', 'STKaiti', KaiTi, serif;
  font-weight: 400;
  font-size: 0.88em;
  color: #374151;
  margin-left: 8px;
  letter-spacing: 0.04em;
  vertical-align: -0.02em;
}

.hero-role {
  margin: 4px 0 16px 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #1f2937;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.role-sep {
  color: #9ca3af;
  font-weight: 400;
}

.google-inline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #111827;
}

.google-icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  display: inline-block;
}

.hero-bio p {
  margin: 0 0 10px 0;
  font-size: 0.93rem;
  color: #374151;
  line-height: 1.62;
}

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

.hero-links {
  margin-top: 14px;
  font-size: 0.88rem;
  color: #d1d5db;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.hero-links a {
  color: #1d4ed8;
  font-weight: 500;
}

.hero-photo {
  width: 184px;
  height: 184px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #e5e7eb;
  background: #fafafa;
  display: block;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin: 42px 0 18px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #e5e7eb;
  scroll-margin-top: 24px;
}

.section-head h2 {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
}

.section-note {
  font-size: 0.82rem;
  color: #6b7280;
}

.spine-row {
  display: grid;
  grid-template-columns: 192px 1fr;
  column-gap: 28px;
  align-items: baseline;
}

.interest-list .spine-row {
  padding: 6px 0;
}

.spine-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #111827;
}

.spine-value {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.55;
}

.pub-list .pub-row {
  display: grid;
  grid-template-columns: 192px 1fr;
  column-gap: 28px;
  align-items: start;
  margin-bottom: 22px;
}

.pub-thumb-wrap {
  width: 192px;
  aspect-ratio: 16 / 10;
  background: #fafafa;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: zoom-in;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.pub-thumb-wrap:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.09);
  transform: translateY(-1px);
}

.pub-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

.pub-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #111827;
  line-height: 1.38;
  margin: 0 0 3px 0;
}

.pub-authors {
  font-size: 0.87rem;
  color: #4b5563;
  line-height: 1.45;
  margin: 0 0 3px 0;
}

.me {
  color: #111827;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: #9ca3af;
  text-underline-offset: 2px;
}

.pub-venue {
  font-size: 0.85rem;
  color: #6b7280;
  line-height: 1.45;
  margin: 0;
}

.pub-links {
  margin-top: 4px;
  font-size: 0.82rem;
  color: #d1d5db;
}

.pub-links a {
  color: #1d4ed8;
  font-weight: 500;
}

.mentoring-block .spine-row {
  align-items: start;
  margin-bottom: 18px;
}

.spine-sub {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  color: #6b7280;
  margin-top: 2px;
}

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

.mentee-list li {
  font-size: 0.89rem;
  color: #374151;
  padding: 2.5px 0;
  line-height: 1.5;
}

.mentee-meta {
  color: #6b7280;
  font-size: 0.85rem;
}

.site-footer {
  margin-top: 56px;
  padding-top: 16px;
  border-top: 1px solid #f3f4f6;
  font-size: 0.8rem;
  color: #9ca3af;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.site-footer a {
  color: #6b7280;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-frame {
  max-width: 760px;
  width: 100%;
  background: #ffffff;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.lightbox-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

.lightbox-caption {
  margin: 8px 4px 2px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #374151;
  text-align: center;
}

@media (max-width: 640px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-photo {
    width: 140px;
    height: 140px;
    order: -1;
  }

  .spine-row,
  .pub-list .pub-row {
    grid-template-columns: 1fr;
    row-gap: 4px;
  }

  .pub-thumb-wrap {
    width: 180px;
    margin-bottom: 6px;
  }

  .topnav {
    flex-direction: column;
    gap: 8px;
  }
}
