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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: #333;
  background: #f8f8f8;
  min-height: 100vh;
}

.page-wrapper {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  min-height: 100vh;
  background: #fff;
  box-shadow: 0 0 20px rgba(0,0,0,0.06);
}

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

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

/* ===== Sidebar ===== */
.sidebar {
  width: 260px;
  min-width: 260px;
  background: #fff;
  border-right: 1px solid #e8e8e8;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  box-shadow: 2px 0 8px rgba(0,0,0,0.05);
}

.sidebar-inner {
  padding: 30px 20px;
}

/* Profile */
.profile-section {
  text-align: center;
  margin-bottom: 24px;
}

.profile-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 3px solid #e8e8e8;
  margin-bottom: 14px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.name {
  font-size: 20px;
  font-weight: 700;
  color: #222;
  margin-bottom: 2px;
}

.name-cn {
  font-size: 16px;
  color: #555;
  margin-bottom: 6px;
}

.title {
  font-size: 13px;
  color: #666;
  margin-bottom: 6px;
  line-height: 1.5;
}

.affiliation {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}

.affiliation a {
  color: #555;
}

/* Contact */
.contact-section {
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  padding: 16px 0;
  margin-bottom: 20px;
}

.contact-section p {
  font-size: 13px;
  color: #555;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-section p:last-child {
  margin-bottom: 0;
}

.contact-section i {
  width: 16px;
  color: #888;
  flex-shrink: 0;
}

.contact-section a {
  color: #1772d0;
  word-break: break-all;
}

/* Navigation */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-link {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  color: #444;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  background: #1772d0;
  color: #fff;
  text-decoration: none;
}

/* ===== Main Content ===== */
.main-content {
  flex: 1;
  padding: 40px 60px;
}

/* ===== Sections ===== */
.section {
  margin-bottom: 50px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.section:last-of-type {
  border-bottom: none;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  color: #222;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #1772d0;
}

/* About */
.bio-en {
  margin-bottom: 16px;
}

.bio-en p, .bio-cn p {
  margin-bottom: 12px;
  text-align: justify;
}

.bio-cn {
  background: #f9f9f9;
  border-left: 3px solid #1772d0;
  padding: 14px 18px;
  border-radius: 0 6px 6px 0;
  margin-bottom: 20px;
}

.bio-cn p {
  color: #444;
  font-size: 14px;
  margin-bottom: 0;
}

.research-interests {
  margin-top: 16px;
}

.research-interests p {
  margin-bottom: 10px;
}

.research-interests ol {
  padding-left: 22px;
}

.research-interests ol li {
  margin-bottom: 4px;
  color: #444;
}

/* News */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 8px;
}

.news-list::-webkit-scrollbar {
  width: 6px;
}

.news-list::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 3px;
}

.news-list::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.news-list::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}

.news-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 6px;
  background: #fafafa;
  border-left: 3px solid #ddd;
  font-size: 14px;
}

.news-item.highlight {
  border-left-color: #e8a000;
  background: #fffbf0;
}

.news-year {
  font-weight: 700;
  color: #1772d0;
  min-width: 38px;
  font-size: 13px;
}

.news-text {
  color: #444;
  flex: 1;
}

/* Publications */
.pub-note {
  color: #777;
  font-size: 13px;
  margin-bottom: 24px;
}

.year-header {
  font-size: 18px;
  font-weight: 700;
  color: #1772d0;
  margin: 28px 0 16px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e8e8e8;
}

.pub-item {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  padding: 16px;
  border-radius: 8px;
  background: #fafafa;
  border: 1px solid #eee;
  transition: box-shadow 0.2s;
}

.pub-item:hover {
  box-shadow: 0 2px 12px rgba(23, 114, 208, 0.1);
  border-color: #c8d8f0;
}

.pub-img-wrap {
  flex-shrink: 0;
  width: 140px;
  height: 90px;
  overflow: hidden;
  border-radius: 6px;
  background: #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pub-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

video.pub-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pub-info {
  flex: 1;
  min-width: 0;
}

.pub-title {
  font-weight: 700;
  font-size: 14.5px;
  color: #222;
  margin-bottom: 5px;
  line-height: 1.4;
}

.pub-title a {
  color: #1772d0;
}

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

.pub-authors {
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
}

.pub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pub-links a {
  display: inline-block;
  padding: 2px 10px;
  background: #1772d0;
  color: #fff;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  transition: background 0.2s;
  text-decoration: none;
}

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

/* Badges */
.pub-badge {
  display: inline-block;
  font-size: 11px;
  font-style: normal;
  padding: 1px 7px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
  font-weight: 600;
}

.highlight-badge {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffc107;
}

.esi-badge {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

/* Footer */
.footer {
  text-align: center;
  padding: 30px 0 20px;
  color: #999;
  font-size: 13px;
  line-height: 1.8;
}

.footer a {
  color: #999;
}

.footer a:hover {
  color: #1772d0;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .page-wrapper {
    flex-direction: column;
    max-width: 100%;
  }

  .sidebar {
    width: 100%;
    min-width: unset;
    height: auto;
    position: relative;
    border-right: none;
    border-bottom: 1px solid #e8e8e8;
    box-shadow: none;
  }

  .sidebar-inner {
    padding: 20px 16px;
  }

  .profile-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    text-align: left;
  }

  .profile-photo {
    width: 80px;
    height: 80px;
    min-width: 80px;
    margin: 0;
  }

  .profile-text {
    flex: 1;
  }

  .name {
    font-size: 18px;
  }

  .name-cn {
    font-size: 14px;
  }

  .title {
    font-size: 12px;
  }

  .affiliation {
    font-size: 12px;
  }

  .contact-section {
    padding: 12px 0;
    margin-bottom: 12px;
  }

  .contact-section p {
    font-size: 12px;
    margin-bottom: 6px;
  }

  .sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }

  .nav-link {
    padding: 6px 12px;
    font-size: 13px;
  }

  .main-content {
    padding: 20px 16px;
  }

  .section-title {
    font-size: 18px;
    margin-bottom: 14px;
  }

  .bio-en p, .bio-cn p {
    font-size: 13px;
  }

  .bio-cn {
    padding: 10px 14px;
    font-size: 13px;
  }

  .news-item {
    padding: 6px 10px;
    font-size: 13px;
    flex-wrap: wrap;
  }

  .news-year {
    font-size: 12px;
    min-width: 34px;
  }

  .year-header {
    font-size: 16px;
    margin: 20px 0 12px;
  }

  .pub-item {
    flex-direction: column;
    padding: 12px;
    gap: 12px;
  }

  .pub-img-wrap {
    width: 100%;
    height: auto;
    max-height: 200px;
  }

  .pub-img, video.pub-img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .pub-title {
    font-size: 13.5px;
  }

  .pub-venue {
    font-size: 12.5px;
  }

  .pub-authors {
    font-size: 12px;
  }

  .pub-links a {
    font-size: 11px;
    padding: 2px 8px;
  }

  .section {
    margin-bottom: 30px;
    padding-bottom: 14px;
  }

  .footer {
    font-size: 12px;
    padding: 20px 0 14px;
  }
}
