/* ============================================
   Academic Personal Homepage — Stylesheet
   Edit colors, fonts, spacing below as needed.
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #1a1a1a;
  background: #fff;
}

a {
  color: #2563eb;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

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

/* --- Navigation --- */
nav {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  z-index: 100;
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

nav .nav-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: #1a1a1a;
}

nav .nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

nav .nav-links a {
  color: #555;
  font-size: 0.92rem;
}

nav .nav-links a:hover {
  color: #2563eb;
  text-decoration: none;
}

/* --- Section common --- */
section {
  padding: 48px 0;
  border-bottom: 1px solid #f0f0f0;
}

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

.section-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: #111;
}

/* --- About / Header Section --- */
.about {
  padding-top: 56px;
}

.about-inner {
  display: flex;
  gap: 36px;
  align-items: flex-start;
}

.profile-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #e5e7eb;
}

.about-text h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.about-text .subtitle {
  color: #555;
  font-size: 1rem;
  margin-bottom: 16px;
}

.about-text .bio {
  color: #333;
  margin-bottom: 16px;
}

.about-text .links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.about-text .links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.9rem;
  color: #555;
}

.about-text .links a:hover {
  color: #2563eb;
}

.about-text .links svg {
  width: 16px;
  height: 16px;
}

/* --- News --- */
.news-list {
  list-style: none;
}

.news-list li {
  display: flex;
  gap: 16px;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.news-date {
  color: #888;
  flex-shrink: 0;
  width: 100px;
  font-size: 0.88rem;
}

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

.pub-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.pub-thumb {
  width: 160px;
  height: 100px;
  background: #f3f4f6;
  border-radius: 6px;
  flex-shrink: 0;
  object-fit: cover;
  border: 1px solid #e5e7eb;
}

.pub-info .pub-title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 3px;
  color: #111;
}

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

.pub-info .pub-authors a {
  color: #555;
}

.pub-info .pub-authors a:hover {
  color: #2563eb;
}

.pub-info .pub-venue {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 6px;
}

.pub-info .pub-venue .venue-tag {
  display: inline-block;
  background: #eff6ff;
  color: #2563eb;
  font-weight: 600;
  font-size: 0.78rem;
  padding: 1px 8px;
  border-radius: 3px;
  margin-right: 6px;
}

.pub-info .pub-venue .highlight-tag {
  display: inline-block;
  background: #fef3c7;
  color: #b45309;
  font-weight: 600;
  font-size: 0.78rem;
  padding: 1px 8px;
  border-radius: 3px;
  margin-right: 6px;
}

.pub-info .pub-links {
  display: flex;
  gap: 12px;
  font-size: 0.85rem;
}

.pub-info .pub-links a {
  padding: 2px 10px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  color: #555;
  font-size: 0.82rem;
}

.pub-info .pub-links a:hover {
  border-color: #2563eb;
  color: #2563eb;
  text-decoration: none;
}

/* --- Awards --- */
.awards-list {
  list-style: none;
}

.awards-list li {
  display: flex;
  gap: 16px;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.award-year {
  color: #888;
  flex-shrink: 0;
  width: 60px;
  font-size: 0.88rem;
}

/* --- Education --- */
.edu-list {
  list-style: none;
}

.edu-list li {
  margin-bottom: 16px;
}

.edu-degree {
  font-weight: 600;
  font-size: 1rem;
}

.edu-school {
  color: #555;
  font-size: 0.92rem;
}

.edu-year {
  color: #888;
  font-size: 0.85rem;
}

/* --- Footer --- */
footer {
  padding: 32px 0;
  text-align: center;
  font-size: 0.85rem;
  color: #999;
  border-top: 1px solid #f0f0f0;
}

/* --- Responsive --- */
@media (max-width: 640px) {
  .about-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-text .links {
    justify-content: center;
  }

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

  .pub-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 16/10;
  }

  nav .nav-links {
    gap: 12px;
  }

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

  .news-date {
    width: auto;
  }
}
