:root {
  --ink: #1f2328;
  --ink-soft: #4a5260;
  --muted: #6b7380;
  --rule: #e4e7eb;
  --accent: #1c4e80;       /* Columbia-inspired deep blue */
  --accent-light: #e8f1f9;
  --bg: #ffffff;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(28, 78, 128, 0.25); transition: border-color .15s, color .15s; }
a:hover { border-bottom-color: var(--accent); }

/* ---------- Top navigation ---------- */
.topnav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--rule);
  font-family: var(--sans);
}
.topnav-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 19px;
  color: var(--ink);
  border: 0;
}
.nav-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  border: 0;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); border-bottom-color: var(--accent); }

.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; }

/* ---------- Page ---------- */
.page { max-width: 880px; margin: 0 auto; padding: 56px 24px 32px; }

.hero {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--rule);
}
.avatar {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 6px var(--accent-light);
}
.hero-text h1 {
  margin: 0 0 6px;
  font-size: 44px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.hero-text h1 .cn {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.62em;
  color: var(--ink-soft);
  margin-left: 8px;
  letter-spacing: 0.04em;
}
.affiliation { margin: 0 0 18px; color: var(--ink-soft); font-size: 18px; line-height: 1.5; }

.contact { list-style: none; padding: 0; margin: 0; font-family: var(--sans); font-size: 15px; }
.contact li { margin: 4px 0; }
.contact .label {
  display: inline-block;
  min-width: 78px;
  font-weight: 600;
  color: var(--ink);
}

/* ---------- Sections ---------- */
section { padding: 36px 0 8px; }
section + section { border-top: 1px solid var(--rule); margin-top: 28px; }
.welcome { border-top: 0; }

h2 {
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 16px;
  color: var(--ink);
}
h2.h2-follow { margin-top: 36px; }
.subhead {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 26px 0 10px;
}
h2 + .subhead { margin-top: 0; }

p { margin: 0 0 14px; }

/* Publications */
.pubs { padding-left: 1.4em; margin: 0; }
.pubs > li { margin-bottom: 22px; padding-left: 4px; }
.pubs > li::marker { color: var(--accent); font-weight: 600; }
.pub-cite { margin: 0 0 4px; }
.status { color: var(--ink-soft); }
.abstract {
  margin: 0;
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  border-left: 2px solid var(--accent-light);
  padding-left: 12px;
}

/* Entries (experience, talks, education) */
/* Paper cards */
.paper {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding: 18px 0 20px;
  border-bottom: 1px dashed var(--rule);
}
.paper:last-of-type { border-bottom: 0; }
.paper-body { flex: 1; min-width: 0; }
.paper.featured {
  background: #f7fafd;
  border: 1px solid #dbe6f1;
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  padding: 22px 24px;
  margin: 4px 0 14px;
}
.tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.paper-title { margin: 0 0 6px; font-size: 20px; font-weight: 600; line-height: 1.35; }
.paper-title a { color: var(--ink); border-bottom: 0; }
.paper-title a:hover { color: var(--accent); }
.paper-authors, .paper-status { margin: 0 0 2px; font-family: var(--sans); font-size: 14.5px; color: var(--ink-soft); }
.paper-status { color: var(--muted); }
.paper-status strong { color: var(--ink-soft); font-weight: 500; font-style: italic; }
.paper-teaser { margin: 10px 0 0; font-size: 16.5px; color: var(--ink-soft); }
.paper-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.btn {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  padding: 5px 12px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  background: #fff;
}
.btn:hover { background: var(--accent); color: #fff; }
.abstract-toggle { margin-top: 10px; font-family: var(--sans); font-size: 14.5px; color: var(--ink-soft); }
.abstract-toggle summary { cursor: pointer; color: var(--accent); font-weight: 500; font-size: 13.5px; list-style: none; display: inline-block; }
.abstract-toggle summary::-webkit-details-marker { display: none; }
.abstract-toggle summary::before { content: "+ "; }
.abstract-toggle[open] summary::before { content: "\2212  "; }
.abstract-toggle p { margin: 8px 0 0; line-height: 1.65; border-left: 2px solid var(--accent-light); padding-left: 12px; }
.abstract-toggle .keywords { font-size: 13px; color: var(--muted); }
.paper-thumb { flex: 0 0 230px; border: 0; display: block; text-align: center; }
.paper-thumb img { width: 100%; height: auto; display: block; border: 1px solid var(--rule); border-radius: 4px; box-shadow: 0 2px 10px rgba(28, 78, 128, .12); transition: transform .2s; }
.paper-thumb:hover img { transform: translateY(-2px); }
.paper-thumb span { display: inline-block; margin-top: 6px; font-family: var(--sans); font-size: 12.5px; color: var(--accent); }
.entry-meta { margin: 2px 0 0; font-family: var(--sans); font-size: 14px; color: var(--muted); }

.entries { list-style: none; padding: 0; margin: 0; }
.entries > li { margin-bottom: 18px; }
.entry-head { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.when {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
}
.entry-detail { margin: 2px 0 0; color: var(--ink-soft); font-style: italic; }
.entry-detail .muted { font-style: normal; font-family: var(--sans); font-size: 14px; color: var(--muted); }

.plain { padding-left: 1.2em; margin: 0; }
.plain li { margin-bottom: 8px; }
.when-inline { font-family: var(--sans); font-size: 14px; color: var(--muted); }

/* Footer */
.footer {
  max-width: 880px;
  margin: 40px auto 0;
  padding: 24px;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
.footer a { color: var(--muted); }

/* ---------- Responsive ---------- */
.edu > li { display: flex; gap: 18px; align-items: flex-start; }
.edu-logo { flex: 0 0 52px; border: 0; }
.edu-logo img { width: 52px; height: 52px; object-fit: contain; display: block; }
.edu-text { flex: 1; min-width: 0; }
.mini-logo { width: 18px; height: 18px; object-fit: contain; vertical-align: -4px; margin-right: 4px; }
.joint a { white-space: nowrap; }
.entry-head strong a { color: inherit; text-decoration: none; }
.entry-head strong a:hover { color: var(--accent); text-decoration: underline; }

@media (max-width: 760px) {
  .edu > li { gap: 12px; }
  .edu-logo { flex-basis: 40px; }
  .edu-logo img { width: 40px; height: 40px; }
  body { font-size: 17px; }
  .menu-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 56px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--rule);
    padding: 8px 24px 14px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 10px 0; border-bottom: 1px solid var(--rule); }
  .nav-links li:last-child a { border-bottom: 0; }

  .page { padding-top: 36px; }
  .hero { flex-direction: column; text-align: center; gap: 22px; }
  .avatar { width: 160px; height: 160px; }
  .hero-text h1 { font-size: 34px; }
  .hero-text h1 .cn { display: block; margin: 6px 0 0; font-size: 0.6em; }
  .contact { display: inline-block; text-align: left; }
  .contact .label { min-width: 70px; }
  h2 { font-size: 24px; }
  .entry-head { flex-direction: column; gap: 0; }
  .paper { flex-direction: column; gap: 14px; }
  .paper.featured { padding: 18px 16px; }
  .paper-thumb { flex: none; width: 100%; max-width: 320px; }
}

.welcome .callout {
  margin-top: 4px;
  padding: 10px 14px;
  border-left: 3px solid var(--accent);
  background: var(--accent-light);
  font-weight: 600;
}
