* {
  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;
}

#news-extra { display: none; }

#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; }

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

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

.pub-thumb img,
.pub-thumb video {
  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-desc {
  font-size: 13.5px;
  color: #555;
  line-height: 1.55;
  margin-bottom: 6px;
}

.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 */
.tag-venue     { background: #e0f2fe; color: #0369a1; }

/* Highlight / award */
.tag-highlight { background: #fef9c3; color: #a16207; }

/* Author role */
.tag-author    { background: #dcfce7; color: #15803d; }

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

/* Research area */
.tag-genmodel  { background: #fce7f3; color: #be185d; }   /* Generative / VLM  - rose   */
.tag-ci        { background: #fff7ed; color: #c2410c; }   /* Retrieval / CI    - orange */
.tag-dr        { background: #ccfbf1; color: #0f766e; }   /* Diff. Rendering   - teal   */
.tag-opt       { background: #ede9fe; color: #7c3aed; }   /* Optimization      - violet */

/* ---- Item lists (experience / patents / education) ---- */
.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;
}

.item-stack {
  font-size: 12.5px;
  color: #9aa3af;
  margin-top: 4px;
  margin-bottom: 6px;
}

/* ---- 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 {
    width: auto;
  }
  #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; }
}
