/* 全局样式 */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  color: #222;
  background-color: #f5f5f5;
}

a {
  color: #0077cc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* 页面布局 */
.page-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  min-height: 100vh;
  background-color: #ffffff;
}

/* 左侧栏 */
.sidebar {
  width: 280px;
  border-right: 1px solid #e0e0e0;
  background-color: #fafafa;
}

.sidebar-inner {
  padding: 24px 20px 32px;
  position: sticky;
  top: 0;
}

.avatar-wrapper {
  text-align: center;
  margin-bottom: 16px;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e0e0e0;
}

.name {
  font-size: 1.4rem;
  margin: 0 0 4px;
  text-align: center;
}

.title {
  font-size: 0.9rem;
  color: #555;
  text-align: center;
  margin-bottom: 12px;
}

.contact {
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.links {
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.sidebar-nav {
  border-top: 1px solid #e0e0e0;
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.95rem;
}

.sidebar-nav a {
  padding: 4px 0;
}

/* 右侧正文 */
.content {
  flex: 1;
  padding: 32px 32px 40px;
}

.content h2 {
  margin-top: 0;
  border-bottom: 2px solid #eee;
  padding-bottom: 4px;
  margin-bottom: 12px;
}

/* 论文列表 */
.pub-list {
  padding-left: 20px;
  margin-bottom: 24px;
}

.pub-list li {
  margin-bottom: 12px;
}

.pub-title {
  font-weight: 600;
}

.pub-authors {
  font-size: 0.95rem;
}

.pub-venue {
  font-size: 0.9rem;
  color: #555;
}

/* 自适应：手机上 sidebar 上下堆叠 */
@media (max-width: 800px) {
  .page-container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
  }

  .sidebar-inner {
    position: static;
    text-align: center;
  }

  .content {
    padding: 20px 16px 32px;
  }

  .pub-list {
    padding-left: 16px;
  }
}
