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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #2d2d2d;
  background: #fff;
  line-height: 1.7;
  font-size: 16px;
}

a { color: #1a6b8a; text-decoration: none; }
a:hover { color: #0d4f6b; text-decoration: underline; }

/* Layout */
.container { max-width: 900px; margin: 0 auto; padding: 0 24px; }

/* Navigation */
nav {
  border-bottom: 1px solid #eee;
  padding: 18px 0;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 100;
}
nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
nav .name { font-size: 1.2rem; font-weight: 700; color: #2d2d2d; }
nav .name a { color: inherit; }
nav .nav-links a {
  margin-left: 28px;
  font-size: 0.95rem;
  color: #555;
  font-weight: 500;
}
nav .nav-links a:hover { color: #1a6b8a; text-decoration: none; }
nav .nav-links a.active { color: #1a6b8a; border-bottom: 2px solid #1a6b8a; padding-bottom: 2px; }

/* Bio Section */
.bio { display: flex; gap: 40px; padding: 50px 0 40px; align-items: flex-start; }
.bio-photo { flex-shrink: 0; }
.bio-photo img { width: 180px; height: 180px; border-radius: 12px; object-fit: cover; }
.bio-text h1 { font-size: 1.6rem; margin-bottom: 8px; }
.bio-text .role { color: #555; font-size: 1rem; margin-bottom: 16px; }
.bio-text p { margin-bottom: 12px; font-size: 0.95rem; }
.bio-links { margin-top: 16px; }
.bio-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  width: 38px;
  height: 38px;
  border: 1px solid #ddd;
  border-radius: 50%;
  color: #555;
  font-size: 1.1rem;
  transition: all 0.2s;
}
.bio-links a:hover { border-color: #1a6b8a; color: #1a6b8a; text-decoration: none; background: #f0f9fc; }

/* Section Titles */
.section-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 40px 0 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f0f0f0;
}

/* News */
.news-list { list-style: none; }
.news-list li { padding: 8px 0; font-size: 0.93rem; display: flex; gap: 16px; }
.news-list .date { color: #888; min-width: 90px; flex-shrink: 0; font-size: 0.88rem; }
.news-list .content { flex: 1; }

/* Publications */
.pub-category { margin-top: 40px; padding-top: 32px; border-top: 2px solid #e8e8e8; }
.pub-category:first-child { border-top: none; padding-top: 0; }
.pub-category h3 { font-size: 1.1rem; color: #1a6b8a; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 0.5px; }
.pub-item { margin-bottom: 24px; padding-left: 0; display: flex; gap: 16px; align-items: flex-start; }
.pub-item .pub-thumb-wrap { flex-shrink: 0; width: 50%; position: relative; }
.pub-item .pub-thumb { width: 100%; border-radius: 6px; object-fit: cover; border: 1px solid #eee; display: block; }
.pub-item .pub-venue-badge {
  position: absolute;
  top: 10px;
  left: -16px;
  background: #1a6b8a;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}
.pub-item .pub-content { flex: 1; }
.pub-item .title { font-weight: 600; font-size: 0.95rem; }
.pub-item .title a { color: #2d2d2d; }
.pub-item .title a:hover { color: #1a6b8a; text-decoration: underline; }
.pub-item .code-link {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 1px 6px;
  background: #f0f7fa;
  color: #1a6b8a;
  border-radius: 3px;
  border: 1px solid #d8edf4;
  vertical-align: middle;
  text-decoration: none;
}
.pub-item .code-link:hover { background: #e0f0f5; text-decoration: none; }
.pub-item .authors { font-size: 0.88rem; color: #555; margin-top: 2px; }
.pub-item .venue { font-size: 0.88rem; color: #777; font-style: italic; margin-top: 2px; }
.pub-item .links { margin-top: 4px; }
.pub-item .links a {
  font-size: 0.8rem;
  margin-right: 10px;
  padding: 2px 8px;
  background: #f5f5f5;
  border-radius: 3px;
  color: #1a6b8a;
}
.pub-item .links a:hover { background: #e8f4f8; text-decoration: none; }
.pub-item .tags { margin-top: 5px; }
.pub-item .tags .tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 2px 8px;
  margin-right: 6px;
  margin-top: 3px;
  background: #f0f7fa;
  color: #1a6b8a;
  border-radius: 10px;
  border: 1px solid #d8edf4;
}

/* Teaching */
.teaching-section { margin-bottom: 32px; }
.teaching-section h3 { font-size: 1.05rem; margin-bottom: 12px; color: #333; }
.teaching-section ul { padding-left: 20px; }
.teaching-section li { margin-bottom: 8px; font-size: 0.93rem; }

/* Footer */
footer { margin-top: 60px; padding: 24px 0; border-top: 1px solid #eee; text-align: center; font-size: 0.82rem; color: #999; }

/* Responsive */
@media (max-width: 640px) {
  .bio { flex-direction: column; align-items: center; text-align: center; gap: 20px; }
  .bio-photo img { width: 140px; height: 140px; }
  nav .nav-links a { margin-left: 16px; font-size: 0.85rem; }
  .news-list li { flex-direction: column; gap: 2px; }
  .news-list .date { min-width: auto; }
}
