/* Classic Academic Style */
:root {
  --primary: #1a365d;
  --primary-light: #2c5282;
  --accent: #c53030;
  --text: #2d3748;
  --text-light: #4a5568;
  --bg: #ffffff;
  --bg-light: #f7fafc;
  --border: #e2e8f0;
  --link: #2b6cb0;
  --link-hover: #2c5282;
  --sidebar-width: 260px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

/* Layout */
.container {
  display: flex;
  min-height: 100vh;
  max-width: 1200px;
  margin: 0 auto;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-light);
  border-right: 1px solid var(--border);
  padding: 40px 24px;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
}

.profile-section {
  text-align: center;
  margin-bottom: 32px;
}

.profile-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  margin-bottom: 16px;
  background: #e2e8f0;
}

.profile-name {
  font-size: 22px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
}

.profile-title {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 12px;
}

.profile-affiliation {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
}

.profile-lab {
  display: inline-block;
  margin-top: 6px;
  color: var(--primary);
  font-weight: 600;
}

.contact-list {
  list-style: none;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.contact-list li {
  font-size: 13px;
  margin-bottom: 10px;
  color: var(--text-light);
  word-break: break-all;
}

.contact-list i,
.contact-list svg {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  vertical-align: middle;
  color: var(--primary-light);
  fill: currentColor;
}

.nav-menu {
  list-style: none;
  margin-top: 24px;
}

.nav-menu li {
  margin-bottom: 4px;
}

.nav-menu a {
  display: block;
  padding: 8px 12px;
  border-radius: 4px;
  color: var(--text);
  font-size: 14px;
  text-decoration: none;
}

.nav-menu a:hover,
.nav-menu a.active {
  background: rgba(26, 54, 93, 0.08);
  color: var(--primary);
}

/* Main Content */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  padding: 48px 56px;
  max-width: 900px;
}

.section {
  margin-bottom: 48px;
}

.section-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 8px;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-light);
  margin: 28px 0 14px 0;
}

/* Intro */
.intro-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
}

.intro-text p {
  margin-bottom: 14px;
}

/* Lab */
.lab-intro {
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 0 6px 6px 0;
  background: var(--bg-light);
}

.lab-name-zh {
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.lab-focus-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  list-style: none;
}

.lab-focus-list li {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--primary-light);
  font-size: 12px;
  font-weight: 600;
}

/* People */
.people-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.people-group {
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-light);
}

.people-group h3 {
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 15px;
}

.people-list {
  padding-left: 18px;
}

.people-list li {
  margin-bottom: 4px;
  color: var(--text);
}

/* Recruitment */
.section-title-zh {
  margin-left: 8px;
  color: var(--text-light);
  font-size: 15px;
  font-weight: 500;
}

.recruitment-intro {
  margin-bottom: 20px;
}

.recruitment-intro p + p {
  margin-top: 8px;
  color: var(--text-light);
  font-size: 14px;
}

.recruitment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.recruitment-card {
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-light);
}

.recruitment-card h3,
.recruitment-details h3 {
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 15px;
}

.recruitment-card h3 span,
.recruitment-details h3 span {
  display: block;
  margin-top: 2px;
  color: var(--text-light);
  font-size: 13px;
  font-weight: 500;
}

.recruitment-card p,
.recruitment-details p,
.recruitment-list {
  font-size: 14px;
}

.recruitment-copy-zh {
  margin-top: 10px;
  color: var(--text-light);
}

.recruitment-details {
  margin-top: 20px;
  padding: 20px 22px;
  border-left: 4px solid var(--primary-light);
  background: var(--bg-light);
}

.recruitment-list {
  padding-left: 20px;
}

.recruitment-list li {
  margin-bottom: 8px;
}

.recruitment-list li span {
  display: block;
  color: var(--text-light);
  font-size: 13px;
}

.application-title {
  margin-top: 20px;
}

.application-contact {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  overflow-wrap: anywhere;
}

/* Teaching */
.course-list {
  list-style: none;
}

.course-item {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.course-item:first-child {
  padding-top: 0;
}

.course-item:last-child {
  border-bottom: none;
}

.course-term {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.course-title {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}

.course-title-zh {
  margin-top: 2px;
  color: var(--text-light);
  font-size: 13px;
}

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

.news-item {
  display: flex;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.news-item:last-child {
  border-bottom: none;
}

.news-date {
  flex-shrink: 0;
  width: 100px;
  font-weight: 600;
  color: var(--accent);
  font-size: 13px;
}

.news-content {
  flex: 1;
  font-size: 14px;
  color: var(--text);
}

.news-content a {
  color: var(--link);
}

/* Timeline (Education / Experience) */
.timeline {
  list-style: none;
}

.timeline-item {
  position: relative;
  padding-left: 24px;
  margin-bottom: 20px;
  border-left: 2px solid var(--border);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary-light);
}

.timeline-period {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 2px;
}

.timeline-title {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.timeline-detail {
  font-size: 14px;
  color: var(--text-light);
}

/* Research Areas */
.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.research-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 22px;
  background: var(--bg-light);
  transition: box-shadow 0.2s, transform 0.2s;
}

.research-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.research-card h3 {
  font-size: 16px;
  color: var(--primary);
  margin-bottom: 10px;
}

.research-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 14px;
}

.research-card a {
  font-size: 13px;
  font-weight: 600;
}

/* Research Detail Page */
.research-section {
  margin-bottom: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}

.research-section:last-child {
  border-bottom: none;
}

.research-section h2 {
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 14px;
}

.research-section p {
  margin-bottom: 14px;
  color: var(--text);
}

.subsection-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-light);
  margin: 20px 0 10px 0;
}

/* Publications */
.publication-list {
  list-style: none;
}

.publication-item {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.publication-item:last-child {
  border-bottom: none;
}

.publication-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.publication-authors {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 4px;
}

.publication-venue {
  font-size: 14px;
  color: var(--primary-light);
  font-style: italic;
  margin-bottom: 8px;
}

.publication-links a {
  font-size: 13px;
  margin-right: 12px;
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--bg-light);
  text-decoration: none;
}

.publication-links a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.publication-tag {
  display: inline-block;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 3px;
  background: #edf2f7;
  color: var(--text-light);
  margin-left: 8px;
}

/* Project list */
.project-list {
  list-style: none;
}

.project-item {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 18px;
  margin-bottom: 14px;
}

.project-item h4 {
  font-size: 15px;
  color: var(--primary);
  margin-bottom: 6px;
}

.project-item p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.project-links a {
  font-size: 13px;
  margin-right: 10px;
}

/* Footer */
.site-footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-light);
  text-align: center;
}

/* Mobile */
@media (max-width: 900px) {
  .container {
    flex-direction: column;
  }

  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 24px;
  }

  .main-content {
    margin-left: 0;
    padding: 32px 24px;
  }

  .nav-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .nav-menu li {
    margin-bottom: 0;
  }
}

@media (max-width: 560px) {
  .people-grid,
  .recruitment-grid {
    grid-template-columns: 1fr;
  }

  .course-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* Print */
@media print {
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
  }

  .main-content {
    margin-left: 0;
  }
}
