/* Yifan Liu Style - Complete CSS - Clean Version */

/* Inter 4.1: self-hosted variable fonts, licensed in assets/fonts/Inter-LICENSE.txt. */
@font-face {
  font-family: 'InterVariable';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/InterVariable.woff2') format('woff2');
}

@font-face {
  font-family: 'InterVariable';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/InterVariable-Italic.woff2') format('woff2');
}

:root {
  --link-blue: #124e86;
  --link-blue-hover: #0d3c69;
}

/* Reset everything first */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #fff;
  padding: 0px;
  font: 16px/1.6 'InterVariable', Arial, sans-serif;
  font-optical-sizing: auto;
  color: #363636;
  font-weight: 400;
  margin: 0;
}

strong, b {
  font-weight: 800;
}

/* Wrapper */
.wrapper {
  width: 1060px;
  margin: 0 auto;
}


/* Left sidebar header */
header {
  font-size: 14px;
  width: 232px;
  float: left;
  position: fixed;
  left: calc((100% - 1060px) / 2); /* Left edge of centered wrapper */
  padding-top: 6.0em;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Avatar styling */
.image {
  border-radius: 0.35em;
  border: 0;
  display: inline-block;
  position: relative;
}

.image.avatar {
  border-radius: 100%;
  margin: 0 0 1em 0;
  width: 6.5em;
}

.image.avatar img {
  border-radius: 100%;
  width: 100%;
  padding: 0;
  border: none;
}

h1 {
  font-family: inherit;
  font-weight: 550;
  color: #2c3e50;
  margin: 0 0 15px;
  font-size: 22px;
}

.position {
  font-size: 0.85rem;
  color: #2c3e50;
  font-weight: 450;
  margin-bottom: 4px;
}

.affiliation {
  color: var(--link-blue);
  text-decoration: none;
  margin-bottom: 3px;
  display: inline-block;
  font-size: 14px;
}

.affiliation:hover {
  color: var(--link-blue-hover);
}

email {
  font-size: 13px;
  font-family: inherit;
  color: #2c3e50;
  display: block;
  margin-bottom: 1em;
  text-align: center;
}

/* Social icons */
.social-icons {
  margin: 8px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.social-icons a {
  display: inline-block;
  height: 2.2rem;
  width: 2.2rem;
  background-color: transparent;
  color: var(--link-blue);
  border-radius: 100%;
  text-align: center;
  font-size: 1.1rem;
  line-height: 2.2rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icons a:hover {
  background-color: var(--link-blue);
  color: white;
  transform: scale(1.1);
}

/* Research interests styling */
.research-interests {
  margin-top: 0px;
  text-align: left;
  font-size: 13px;
  line-height: 1.4;
  padding: 0 10px;
  width: 100%;
}

.research-interests p {
  margin-bottom: 8px;
  font-weight: 650;
  color: #2c3e50;
}

.research-interests ul {
  margin: 8px 0;
  padding-left: 18px;
  list-style: none;
}

.research-interests li {
  margin-bottom: 6px;
  position: relative;
  padding-left: 15px;
}

.research-interests li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #2c3e50;
}

/* Main content section */
section {
  width: 750px;
  float: right;
  padding-top: 1.2em;
  padding-bottom: 50px;
  padding-left: 0;
  margin-left: 0;
}

/* Section headers */
h2 {
  font-family: inherit;
  color: #2c3e50;
  font-weight: 550;
  margin: 20px 0px 20px;
  font-size: 20px;
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 8px;
  border-top: none;
  border-left: none;
  border-right: none;
}

/* About section */
.about-section {
  margin-bottom: 30px;
  padding-top: 0;
}

.about-section p {
  text-align: justify;
  margin-bottom: 18px;
  font-size: 16px;
  line-height: 1.7;
}

.about-section .opportunity-line strong {
  color: #FF0000;
}

.about-section a {
  color: var(--link-blue);
  text-decoration: none;
}

.about-section a:hover {
  color: var(--link-blue-hover);
  text-decoration: underline;
}

/* News section */
.news-section {
  margin-bottom: 30px;
}

.news-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.news-list li {
  margin-bottom: 12px;
  padding: 8px 0;
  font-size: 15px;
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.news-list li > strong {
  color: #2c3e50;
  font-weight: 650;
  min-width: 110px;
  flex-shrink: 0;
}

.news-content {
  flex: 1;
  min-width: 0;
  color: #2c3e50;
}

.news-content a {
  color: var(--link-blue);
  text-decoration: none;
}

.news-content a:hover {
  color: var(--link-blue-hover);
  text-decoration: underline;
}

/* Publications section */
.publications-section {
  margin-bottom: 30px;
}

/* Talks section */
.talks-section {
  margin-bottom: 30px;
}

.publications-section p {
  margin-bottom: 25px;
  font-size: 14px;
  color: #363636;
}

.publications-section a {
  color: var(--link-blue);
  text-decoration: none;
}

.publications-section a:hover {
  color: var(--link-blue-hover);
  text-decoration: underline;
}

/* Project containers - NO BORDERS */
.project-container {
  width: 100%;
  margin-bottom: 8px;
  overflow: visible;
  border: none !important;
  padding: 0 !important;
}

.pub-table {
  font-family: inherit;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 15px;
  overflow: visible;
  border: none !important;
}

.pub-table td {
  padding: 0;
  vertical-align: top;
  border: none !important;
}

.pub-table .media-col {
  width: 30%;
  padding-right: 30px;
  padding-top: 0;
  padding-bottom: 0;
  vertical-align: top;
  text-align: left;
  position: relative;
  overflow: visible;
  max-width: none;
}

.pub-table .content-col {
  width: 70%;
  vertical-align: top;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 0;
  min-width: 0;
}

.project-media {
  position: relative;
  margin: 0;
  display: block;
  width: 100%;
  border-radius: 8px;
  overflow: visible;
  border: none !important;
  padding-top: 0;
  padding-left: 0;
  margin-top: 0;
  margin-bottom: 0;
  line-height: 0;
  box-sizing: border-box;
  transition: transform 0.3s ease;
  transform-origin: top left;
}

.project-media video,
.project-media img {
  border-radius: 6px !important;
  display: block;
  width: 100%;
  height: auto;
  transition: none;
  border: none !important;
  vertical-align: top;
}

.project-media:hover {
  transform: scale(1.5);
  z-index: 1000;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  transform-origin: top left;
}

/* Conference badge: block above the figure, same width as the image, text centered */
.media-col .conference-badge {
  --venue-accent: #6B7280;
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  background-color: #FFFFFF !important;
  color: var(--venue-text, var(--venue-accent)) !important;
  padding: 6px 12px 6px 9px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 750 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
  line-height: 1.2 !important;
  font-family: inherit !important;
  margin: 0 0 12px 0;
  border: 1px solid #D9DEE5 !important;
  border-left: 4px solid var(--venue-accent) !important;
}

/* Distinct venue accents identify published work; preprints intentionally stay quiet and gray. */
.media-col .conference-badge.venue-emnlp {
  --venue-accent: #D97706;
}

.media-col .conference-badge.venue-mlsys {
  --venue-accent: #2F855A;
}

.media-col .conference-badge.venue-biorxiv {
  --venue-accent: #D5D9DE;
  --venue-text: #6B7280;
}

.media-col .conference-badge.venue-arxiv {
  --venue-accent: #D5D9DE;
  --venue-text: #6B7280;
}

.media-col .conference-badge.venue-research-square {
  --venue-accent: #D5D9DE;
  --venue-text: #6B7280;
}

.media-col .conference-badge.venue-wind-energy {
  --venue-accent: #638A35;
}

.media-col .conference-badge.venue-ieee {
  --venue-accent: #3F5F9C;
}

/* Publication text elements */
.pub-title,
.pub-authors,
.pub-venue,
.pub-description {
  margin: 0 !important;
  padding: 0 !important;
}

.pub-title {
  margin-top: 0 !important;
  margin-bottom: 8px !important;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  transition: color 0.3s ease;
}

.pub-title a {
  color: var(--link-blue);
  text-decoration: none;
}

.pub-title a:hover {
  color: var(--link-blue-hover) !important;
  text-decoration: underline;
}

.pub-authors {
  font-weight: 400;
  margin-bottom: 8px !important;
  color: #363636;
  font-size: 14px;
  line-height: 1.5;
}

.pub-authors strong {
  color: #2c3e50;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

.pub-venue {
  font-weight: 450;
  margin-bottom: 8px !important;
  font-style: italic;
  color: #2c3e50;
  font-size: 14px;
  line-height: 1.5;
}

.pub-description {
  margin-top: 8px !important;
  color: #2c3e50;
  font-size: 14px;
  line-height: 1.5;
}

/* Button styles */
.text-links {
  display: flex;
  gap: 12px;
  margin: 0 0 8px 0 !important;
  padding: 0 !important;
  flex-wrap: wrap;
}

.text-btn {
  background-color: transparent;
  color: var(--link-blue);
  padding: 4px 10px;
  border: 1px solid var(--link-blue);
  border-radius: 3px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 550;
  transition: all 0.3s ease;
}

.text-links .text-btn:hover {
  background-color: var(--link-blue);
  color: white;
}

/* Navigation bar */
.mobile-nav {
  display: block;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  margin-bottom: 10px;
  margin-left: 0px;
  padding-left: 170px;
}

.mobile-nav-list {
  display: flex;
  justify-content: flex-start;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 35px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.mobile-nav-item {
  font-size: 16px;
  flex-shrink: 0;
}

.mobile-nav-item a {
  color: #2c3e50;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 20px;
  transition: all 0.3s ease;
  font-weight: 450;
  font-size: 16px;
  letter-spacing: 0;
  position: relative;
  display: inline-block;
}

.mobile-nav-item a:hover {
  background-color: rgba(23, 90, 150, 0.1);
  color: #2c3e50;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(23, 90, 150, 0.2);
}

.mobile-nav-item a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--link-blue);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.mobile-nav-item a:hover::after {
  width: 80%;
}

/* Mobile responsive */
@media print,
screen and (max-width: 1060px) {
  .wrapper {
    width: auto;
    margin: 0;
    padding: 0 20px;
  }

  header,
  section {
    float: none;
    position: static;
    width: auto;
  }

  header {
    padding: 0;
    padding-top: 20px;
    margin-bottom: 0;
    text-align: center;
  }

  section {
    padding: 0 20px;
  }

  .pub-table {
    display: block;
  }

  .pub-table tbody,
  .pub-table tr {
    display: block;
  }

  .pub-table .media-col {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 15px;
    padding: 0;
  }

  .pub-table .content-col {
    width: 100%;
    display: block;
  }

  .project-media {
    display: block;
    position: static;
    width: 70%;
    margin: 0 auto;
  }

  .media-col .conference-badge {
    width: 70%;
    margin-left: auto;
    margin-right: auto;
  }

  .research-interests {
    display: none;
  }

  .mobile-nav {
    padding-left: 0;
  }

  .mobile-nav-list {
    justify-content: center;
    gap: 16px;
  }
}

@media screen and (max-width: 480px) {
  .wrapper {
    padding: 0 16px;
  }

  section {
    padding-left: 0;
    padding-right: 0;
  }

  .mobile-nav-list {
    gap: 8px;
  }

  .mobile-nav-item a {
    padding: 5px 8px;
    font-size: 14px;
  }

  .about-section p {
    text-align: left;
  }

  .news-list li {
    flex-direction: column;
    gap: 4px;
  }
}
