/* Academic Homepage — dependency-free, GitHub Pages friendly */

:root {
  --bg: #ffffff;
  --surface: #f7f8fa;
  --text: #1e2430;
  --muted: #6b7280;
  --line: #e7e9ee;
  --accent: #2457a7;
  --accent-soft: #edf3ff;
  --max-width: 1040px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans",
    "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
}

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

a:hover {
  text-decoration: underline;
}

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(231, 233, 238, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.nav-wrap {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand:hover {
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

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

.hero {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 56px;
  padding-top: 76px;
  padding-bottom: 72px;
}

.profile-card {
  text-align: center;
}

.avatar {
  display: block;
  width: 300px;
  aspect-ratio: 3 / 2;
  margin: 0 auto 22px;
  border-radius: 14px;
  object-fit: cover;
  object-position: 50% 58%;
  border: 1px solid var(--line);
  background: var(--surface);
}

.profile-card h1 {
  margin: 0;
  font-size: 1.65rem;
  line-height: 1.25;
}

.cn-name {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.role {
  margin: 10px 0 16px;
  color: var(--muted);
}

.location {
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px 14px;
  margin-bottom: 12px;
}

.contact-list a,
.paper-links a {
  font-weight: 650;
}

.hero-content {
  padding-top: 7px;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.hero-content h2 {
  margin: 0 0 18px;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.lead {
  font-size: 1.15rem;
}

.callout {
  margin: 24px 0;
  padding: 15px 18px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 8px 8px 0;
}

.quick-links {
  display: flex;
  gap: 10px;
  margin-top: 25px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-weight: 700;
  color: var(--text);
  background: #fff;
}

.button:hover {
  text-decoration: none;
  border-color: #cbd0d9;
}

.button.primary {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.section {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 50px;
  padding-top: 48px;
  padding-bottom: 48px;
  border-top: 1px solid var(--line);
}

.section-title {
  display: flex;
  gap: 13px;
  align-items: baseline;
}

.section-title span {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
}

.section-title h2 {
  margin: 0;
  font-size: 1.2rem;
}

.section-body > :first-child {
  margin-top: 0;
}

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

.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.tag-grid span {
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.92rem;
  font-weight: 600;
}

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

.timeline-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 22px;
}

.timeline-row time {
  color: var(--muted);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.timeline-row h3,
.publication h3 {
  margin: 0 0 2px;
  font-size: 1.05rem;
  line-height: 1.45;
}

.timeline-row p {
  margin: 2px 0;
}

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

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

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

.venue {
  width: max-content;
  max-width: 105px;
  height: max-content;
  padding: 5px 8px;
  border-radius: 5px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
}

.authors {
  margin: 7px 0 2px;
}

.paper-links {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 7px;
  font-size: 0.92rem;
}

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

.simple-list > div {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 20px;
}

.simple-list span {
  color: var(--muted);
}

.simple-list p {
  margin: 0;
}

footer {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

footer .container {
  padding-top: 30px;
  padding-bottom: 42px;
}

@media (max-width: 760px) {
  .site-header {
    position: static;
  }

  .nav-wrap {
    padding: 14px 0;
    align-items: flex-start;
  }

  .nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 44px;
    padding-bottom: 48px;
  }

  .profile-card {
    text-align: left;
  }

  .avatar {
    width: min(100%, 320px);
    height: auto;
    aspect-ratio: 3 / 2;
    margin: 0 0 18px;
  }

  .contact-list {
    justify-content: flex-start;
  }

  .section {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .timeline-row,
  .publication {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
