/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: #333;
  background: #fff;
}

a {
  color: #1a6cc4;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.ai2 {
  color: #f555a1;
}

/* ===== Two-column layout ===== */
.layout {
  display: flex;
  min-height: 100vh;
  max-width: 1100px;
  margin: 0 auto;
}

/* ===== Sidebar ===== */
.sidebar {
  width: 320px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid #eee;
  padding: 48px 28px;
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sidebar-inner > * {
  margin-bottom: 10px;
}

.sidebar-inner > .avatar {
  margin-bottom: 18px;
}

.sidebar-inner > h1 {
  margin-bottom: 6px;
}

.sidebar-inner > .affiliation {
  margin-bottom: 10px;
}

.sidebar-inner > .social-links {
  margin-bottom: 14px;
}

.sidebar-inner > .contact {
  margin-bottom: 4px;
}

.sidebar-inner > .location {
  margin-bottom: 24px;
}

.avatar {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  margin-bottom: 4px;
}

h1 {
  font-size: 22px;
  font-weight: 700;
  color: #111;
  line-height: 1.3;
}

.affiliation {
  font-size: 14.5px;
  color: #555;
  line-height: 1.5;
}

.contact {
  font-size: 13.5px;
  color: #888;
}

.location {
  font-size: 13.5px;
  color: #888;
}

.location i {
  margin-right: 4px;
}

/* Social icons */
.social-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.social-links a {
  color: #666;
  font-size: 20px;
  transition: color 0.2s;
  text-decoration: none;
}

.social-links a:hover {
  color: #111;
}

.social-icon-img {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  opacity: 0.65;
  transition: opacity 0.2s;
}

.social-links a:hover .social-icon-img {
  opacity: 1;
}

/* Sidebar nav */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 10px;
}

.nav-link {
  font-size: 14px;
  font-weight: 700;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 0;
  text-decoration: none;
  transition: color 0.2s;
  border-left: 3px solid transparent;
  padding-left: 10px;
}

.nav-link:hover {
  color: #333;
  text-decoration: none;
}

.nav-link.active {
  color: #111;
  border-left-color: #f555a1;
}

/* ===== Main content ===== */
.content {
  flex: 1;
  padding: 56px 52px 80px;
  min-width: 0;
}

section {
  margin-bottom: 8px;
}

h2 {
  font-size: 21px;
  font-weight: 700;
  color: #111;
  margin-bottom: 22px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f0f0f0;
}

#about h2 {
  font-size: 30px;
  border-bottom: none;
  margin-bottom: 16px;
}

hr {
  border: none;
  border-top: 1px solid #eee;
  margin: 48px 0;
}

/* About section */
#about p {
  margin-bottom: 12px;
  color: #444;
}

.personal-note {
  color: #888;
  font-size: 15.5px;
}

.personal-note i {
  margin-right: 5px;
  color: #7cb87c;
}

/* ===== Publications ===== */
.pub-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.pub-entry {
  display: flex;
  gap: 22px;
  align-items: flex-start;
}

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

.pub-thumb img,
.pub-thumb video {
  width: 200px;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  border: 1px solid #e8e8e8;
  background: #f9f9f9;
  display: block;
}

.pub-info {
  flex: 1;
}

.pub-title {
  font-size: 15.5px;
  margin-bottom: 5px;
  line-height: 1.5;
}

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

.pub-venue {
  font-size: 14.5px;
  color: #444;
  margin-bottom: 6px;
}

.pub-links {
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.pub-links a {
  display: inline-block;
  padding: 3px 11px;
  background: #f3f4f6;
  border-radius: 16px;
  color: #1f2937;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.18s, color 0.18s, transform 0.15s, box-shadow 0.15s;
}

.pub-links a:hover {
  background: #2563eb;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(37, 99, 235, 0.22);
  text-decoration: none;
}

/* arXiv / paper links */
.pub-links a[href*="arxiv"],
.pub-links a[href*="aclweb"],
.pub-links a[href*="proceedings.mlr"],
.pub-links a[href*="springer"],
.pub-links a[href*="arxiv.org"] {
  border: 1px solid #b31b1b22;
}
.pub-links a[href*="arxiv"]:hover,
.pub-links a[href*="aclweb"]:hover,
.pub-links a[href*="proceedings.mlr"]:hover,
.pub-links a[href*="springer"]:hover {
  background: #b31b1b;
  box-shadow: 0 3px 8px rgba(179, 27, 27, 0.22);
}

/* GitHub / code links */
.pub-links a[href*="github"] {
  border: 1px solid #24292e22;
}
.pub-links a[href*="github"]:hover {
  background: #24292e;
  box-shadow: 0 3px 8px rgba(36, 41, 46, 0.22);
}

.oral {
  color: #c0392b;
  font-style: normal;
  font-weight: 600;
}

/* ===== Experience ===== */
.exp-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.exp-entry {
  display: block;
}

.exp-org {
  font-size: 16px;
  margin-bottom: 3px;
}

.exp-date {
  font-size: 14.5px;
  color: #888;
}

/* ===== Awards ===== */
.awards-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.awards-list li {
  font-size: 15px;
  color: #444;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.awards-list li b {
  color: #222;
}

.award-type {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.award-type.award {
  background: #fde8f0;
  color: #c0336a;
}

.award-type.grant {
  background: #e8f0fd;
  color: #1a5bbf;
}

.award-collab {
  font-size: 13.5px;
  color: #888;
  display: block;
  width: 100%;
}

/* ===== Footer ===== */
footer {
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  font-size: 13px;
  color: #bbb;
}

/* ===== Responsive ===== */
@media (max-width: 760px) {
  .layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    height: auto;
    position: static;
    border-right: none;
    border-bottom: 1px solid #eee;
    padding: 32px 24px;
  }

  .sidebar-inner {
    align-items: center;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  .sidebar-nav {
    flex-direction: row;
    gap: 0;
    justify-content: center;
    flex-wrap: wrap;
  }

  .nav-link {
    border-left: none;
    border-bottom: 3px solid transparent;
    padding: 6px 12px;
  }

  .nav-link.active {
    border-left-color: transparent;
    border-bottom-color: #f555a1;
  }

  .content {
    padding: 36px 20px 60px;
  }

  .pub-entry {
    flex-direction: column;
  }

  .pub-thumb {
    width: 100%;
  }

  .pub-thumb img {
    width: 100%;
  }
}
