* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 15px;
  background: #fff;
  color: #333;
  line-height: 1.6;
}

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

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

/* ── Navigation ── */
nav {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 20px;
  height: 48px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-name {
  font-weight: 700;
  color: #111;
  font-size: 15px;
  flex: 1;
  text-decoration: none;
}

.nav-name:hover { color: #1772d0; text-decoration: none; }

nav a {
  color: #555;
  font-size: 14px;
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

nav a:hover { color: #1772d0; text-decoration: none; border-bottom-color: #1772d0; }
nav a.active { color: #1772d0; font-weight: 700; border-bottom-color: #1772d0; }

/* ── Main ── */
#main {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

/* ── Profile ── */
#profile {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 48px;
}

#profile-text {
  flex: 1;
}

.name {
  font-size: 30px;
  font-weight: 400;
  margin-bottom: 16px;
  color: #111;
}

#profile-text p {
  margin-bottom: 12px;
}

#profile-links {
  margin-top: 16px;
  font-size: 14.5px;
}

#profile-links a {
  margin-right: 4px;
}

#profile-photo {
  flex-shrink: 0;
  width: 180px;
}

#profile-photo img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* ── Sections ── */
section {
  margin-bottom: 48px;
}

section h2 {
  font-size: 20px;
  font-weight: 700;
  color: #111;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
  margin-bottom: 20px;
}

/* ── News ── */
#news-list {
  list-style: none;
  padding: 0;
}

#news-list li {
  display: flex;
  gap: 16px;
  margin-bottom: 10px;
  font-size: 14.5px;
}

.news-date {
  flex-shrink: 0;
  width: 90px;
  color: #888;
  font-weight: 600;
  font-size: 13px;
  padding-top: 1px;
}

#show-more-btn {
  background: none;
  border: none;
  color: #1772d0;
  cursor: pointer;
  font-size: 13.5px;
  padding: 6px 0;
  margin-top: 4px;
}

#show-more-btn:hover { color: #f09228; }

#news-extra { display: none; }

/* ── Publications ── */
.pub {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
  align-items: flex-start;
}

.pub-thumb {
  flex-shrink: 0;
  width: 200px;
}

.pub-thumb img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  border: 1px solid #eee;
}

.pub-thumb .no-thumb {
  width: 200px;
  height: 110px;
  background: #f5f5f5;
  border-radius: 4px;
  border: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #bbb;
}

.pub-body { flex: 1; }

.pub-title {
  font-size: 15px;
  font-weight: 700;
  color: #111;
  margin-bottom: 4px;
  line-height: 1.4;
}

.pub-title a { color: #111; }
.pub-title a:hover { color: #1772d0; text-decoration: none; }

.pub-authors {
  font-size: 14px;
  margin-bottom: 3px;
  color: #555;
}

.pub-authors strong { color: #111; }

.pub-venue {
  font-size: 13.5px;
  color: #666;
  margin-bottom: 7px;
}

.pub-venue .venue-name {
  font-weight: 700;
  color: #555;
}

.pub-links { font-size: 13px; }

.pub-links a {
  display: inline-block;
  margin-right: 6px;
  margin-bottom: 2px;
  padding: 1px 6px;
  border: 1px solid #ccc;
  border-radius: 3px;
  color: #444;
  font-size: 12.5px;
}

.pub-links a:hover {
  background: #f09228;
  border-color: #f09228;
  color: #fff;
  text-decoration: none;
}

.pub-year-heading {
  font-size: 17px;
  font-weight: 700;
  color: #888;
  margin-bottom: 20px;
  margin-top: 8px;
}

/* ── Tags ── */
.pub-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
  margin-top: 6px;
}

.tag {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.6;
}

/* Venue (all conferences — single color) */
.tag-venue   { background: #e0f2fe; color: #0369a1; }

/* Author role (1st & Co-1st — single color) */
.tag-author  { background: #dcfce7; color: #15803d; }

/* Journal */
.tag-journal { background: #f1f5f9; color: #475569; }

/* Research area (distinct colors) */
.tag-genmodel { background: #fce7f3; color: #be185d; }   /* Generative Model  — rose   */
.tag-ci       { background: #fff7ed; color: #c2410c; }   /* Computational Img — orange */
.tag-dr       { background: #ccfbf1; color: #0f766e; }   /* Diff. Rendering   — teal   */
.tag-opt      { background: #ede9fe; color: #7c3aed; }   /* Optimization      — violet */
.tag-radar    { background: #fef3c7; color: #92400e; }   /* Radar             — amber  */

/* ── All Publications simple list ── */
.pub-all-list {
  list-style: none;
  padding: 0;
}

.pub-all-list li {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.pub-all-list li:last-child { border-bottom: none; }

.pub-all-list .pub-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #111;
  margin-bottom: 3px;
}

.pub-all-list .pub-authors {
  font-size: 13.5px;
  color: #666;
  margin-bottom: 2px;
}

.pub-all-list .pub-venue {
  font-size: 13px;
  color: #888;
  margin-bottom: 6px;
}

/* ── Exhibitions ── */
.exhibit {
  display: flex;
  gap: 24px;
  margin-bottom: 28px;
  align-items: flex-start;
}

.exhibit-thumb {
  flex-shrink: 0;
  width: 180px;
}

.exhibit-thumb img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  border: 1px solid #eee;
}

.exhibit-thumb .no-thumb {
  width: 180px;
  height: 120px;
  background: #f5f5f5;
  border-radius: 4px;
  border: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #bbb;
}

.exhibit-body { flex: 1; }

.exhibit-title {
  font-size: 15px;
  font-weight: 700;
  color: #111;
  margin-bottom: 3px;
  line-height: 1.4;
}

.exhibit-title a { color: #111; }
.exhibit-title a:hover { color: #1772d0; text-decoration: none; }

.exhibit-date {
  font-size: 13px;
  color: #888;
  margin-bottom: 6px;
}

.exhibit-desc {
  font-size: 14px;
  color: #444;
  line-height: 1.55;
}

/* ── Talks / More page content ── */
.item-list {
  list-style: none;
  padding: 0;
}

.item-list li {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.item-list li:last-child { border-bottom: none; }

.item-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #111;
  margin-bottom: 2px;
  line-height: 1.4;
}

.item-meta {
  font-size: 13.5px;
  color: #555;
  margin-bottom: 2px;
}

.item-venue {
  font-size: 13px;
  color: #777;
}

/* simple inline list for awards/teaching */
.cv-list {
  list-style: none;
  padding: 0;
}

.cv-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  font-size: 14.5px;
}

.cv-list .cv-year {
  flex-shrink: 0;
  color: #888;
  font-size: 13px;
  white-space: nowrap;
}

/* mentee list */
.mentee-list {
  list-style: disc;
  padding-left: 1.4em;
  margin-top: 6px;
}

.mentee-list li {
  font-size: 14px;
  margin-bottom: 5px;
  color: #444;
}

/* ── Exhibit Slideshow ── */
.slideshow {
  position: relative;
  width: 180px;
  border-radius: 4px;
  overflow: hidden;
}

.slideshow .slide {
  display: none;
  width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid #eee;
  vertical-align: bottom;
}

.slideshow .slide.active { display: block; }

.slide-dots {
  position: absolute;
  bottom: 7px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  pointer-events: none;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  pointer-events: all;
  transition: background 0.2s;
}

.dot.active { background: rgba(255, 255, 255, 0.95); }

/* ── Footer ── */
footer {
  text-align: center;
  font-size: 12px;
  color: #aaa;
  margin-top: 60px;
  border-top: 1px solid #eee;
  padding-top: 20px;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .nav-inner { gap: 16px; }
  .nav-name { font-size: 13px; }
  nav a { font-size: 13px; }

  #profile {
    flex-direction: column-reverse;
    align-items: center;
  }
  #profile-photo img {
    width: 140px;
    height: 140px;
  }
  .pub {
    flex-direction: column;
  }
  .pub-thumb { width: 100%; }
  .pub-thumb img { width: 100%; height: auto; }
  .pub-thumb .no-thumb { width: 100%; height: 120px; }
  .exhibit { flex-direction: column; }
  .exhibit-thumb { width: 100%; }
  .exhibit-thumb img { width: 100%; }
  .exhibit-thumb .no-thumb { width: 100%; height: 120px; }
}
