/* Minimalist Academic Homepage (Jon Barron / CVPR clean style) */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  color: #222222;
  font-family: -apple-system, BlinkMacSystemFont, "Lato", "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #1772d0;
  text-decoration: none;
}

a:hover,
a:focus {
  color: #f09228;
  text-decoration: underline;
}

.page {
  max-width: 860px;
  margin: 0 auto;
  padding: 36px 24px 68px;
}

/* Top utility row */
.top-util {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 14px;
  font-size: 13.5px;
  color: #666666;
}

.lang-btn {
  background: none;
  border: none;
  padding: 0;
  color: #1772d0;
  font: inherit;
  cursor: pointer;
}

.lang-btn:hover {
  color: #f09228;
  text-decoration: underline;
}

/* Bio header */
.bio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 34px;
}

.bio-text {
  flex: 1;
}

.name-title {
  margin: 0 0 14px;
  font-size: 31px;
  font-weight: 700;
  color: #111111;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.name-cn {
  font-weight: 500;
  font-size: 23px;
  color: #444444;
  margin-left: 6px;
}

.bio-text p {
  margin: 0 0 12px;
  color: #2b2b2b;
}

.bio-links {
  margin-top: 16px;
  font-size: 15px;
  color: #888888;
}

.bio-links a {
  font-weight: 500;
}

.bio-photo {
  flex-shrink: 0;
}

.bio-photo img {
  width: 146px;
  height: auto;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  display: block;
}

/* Section headings */
section {
  margin-bottom: 34px;
}

h2 {
  margin: 0 0 14px;
  padding-bottom: 6px;
  font-size: 20px;
  font-weight: 700;
  color: #111111;
  border-bottom: 1px solid #e5e7eb;
}

/* News */
.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-list li {
  display: flex;
  gap: 14px;
  margin-bottom: 7px;
  font-size: 14.5px;
}

.news-date {
  flex-shrink: 0;
  width: 68px;
  color: #666666;
  font-variant-numeric: tabular-nums;
}

/* Paper list */
.paper-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.paper-row {
  display: grid;
  grid-template-columns: 215px 1fr;
  gap: 22px;
  align-items: start;
}

.paper-thumb {
  width: 215px;
  border: 1px solid #eaeaea;
  border-radius: 4px;
  background: #ffffff;
  padding: 4px;
  overflow: hidden;
}

.paper-thumb img {
  display: block;
  width: 100%;
  height: auto;
  cursor: zoom-in;
}

.paper-title {
  margin: 0 0 4px;
  font-size: 15.5px;
  font-weight: 700;
  color: #111111;
  line-height: 1.38;
}

.paper-authors {
  margin: 0 0 3px;
  font-size: 14px;
  color: #444444;
}

.paper-authors strong {
  color: #111111;
  font-weight: 700;
}

.paper-venue {
  margin: 0 0 5px;
  font-size: 14px;
  color: #333333;
}

.venue-highlight {
  color: #b91c1c;
  font-weight: 600;
  font-style: normal;
}

.paper-links {
  margin: 0 0 6px;
  font-size: 13.8px;
  color: #888888;
}

.link-btn {
  background: none;
  border: none;
  padding: 0;
  color: #1772d0;
  font: inherit;
  cursor: pointer;
}

.link-btn:hover {
  color: #f09228;
  text-decoration: underline;
}

.paper-desc {
  margin: 0;
  font-size: 13.8px;
  color: #555555;
  line-height: 1.54;
}

.bibtex-box {
  display: none;
  margin-top: 8px;
  padding: 10px 12px;
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.45;
  color: #333333;
  white-space: pre-wrap;
  overflow-x: auto;
}

.bibtex-box.open {
  display: block;
}

/* Simple lists (Open Source & Honors) */
.clean-list {
  margin: 0;
  padding-left: 18px;
}

.clean-list li {
  margin-bottom: 7px;
  font-size: 14.5px;
  color: #2b2b2b;
}

/* Footer */
footer {
  margin-top: 44px;
  padding-top: 14px;
  border-top: 1px solid #eeeeee;
  font-size: 13px;
  color: #888888;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* Minimal Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  display: none;
  place-items: center;
  padding: 24px;
  z-index: 100;
  cursor: zoom-out;
}

.lightbox.open {
  display: grid;
}

.lightbox img {
  max-width: min(1100px, 94vw);
  max-height: 88vh;
  background: #ffffff;
  padding: 8px;
  border-radius: 4px;
}

@media (max-width: 680px) {
  .bio-header {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 20px;
  }
  .bio-photo img {
    width: 124px;
    height: auto;
  }
  .paper-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .paper-thumb {
    width: 100%;
    max-width: 320px;
  }
}
