/* 学术主页自定义样式 */

/* 首页布局 */
.home-hero {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2rem;
}

.profile-photo {
  flex-shrink: 0;
  width: 180px;
  height: 180px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.profile-info h1 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 2rem;
}

.profile-info .subtitle {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.profile-info .contact-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.profile-info .contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* 论文列表样式 */
.publications-list {
  list-style: none;
  padding-left: 0;
}

.publications-list li {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
}

.publications-list li:last-child {
  border-bottom: none;
}

.pub-title {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.pub-authors {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

.pub-venue {
  color: #888;
  font-style: italic;
  font-size: 0.9rem;
}

.pub-links {
  margin-top: 0.5rem;
}

.pub-links a {
  margin-right: 0.8rem;
  font-size: 0.9rem;
}

.pub-tags {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

/* 研究方向卡片 */
.research-card {
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid #3f51b5;
}

.research-card h3 {
  margin-top: 0;
  color: #3f51b5;
}

/* 暗色模式适配 */
[data-md-color-scheme="slate"] .research-card {
  background: linear-gradient(135deg, #1e2430 0%, #252d3a 100%);
  border-left-color: #7986cb;
}

[data-md-color-scheme="slate"] .research-card h3 {
  color: #9fa8da;
}

[data-md-color-scheme="slate"] .timeline::before {
  background: #444;
}

[data-md-color-scheme="slate"] .timeline-item::before {
  border-color: #1e2430;
}

[data-md-color-scheme="slate"] .tag {
  background: #2a3150;
  color: #9fa8da;
}

[data-md-color-scheme="slate"] .publications-list li {
  border-bottom-color: #333;
}

/* 时间线样式（用于 CV） */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #ddd;
}

.timeline-item {
  position: relative;
  margin-bottom: 1.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #3f51b5;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #3f51b5;
}

.timeline-date {
  font-weight: 600;
  color: #3f51b5;
  margin-bottom: 0.3rem;
}

.timeline-content h4 {
  margin: 0 0 0.3rem 0;
}

.timeline-content p {
  margin: 0;
  color: #666;
}

/* 标签样式 */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: #e8eaf6;
  color: #3f51b5;
  border-radius: 4px;
  font-size: 0.85rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .home-hero {
    flex-direction: column;
    text-align: center;
  }
  
  .profile-photo {
    margin: 0 auto;
  }
  
  .profile-info .contact-links {
    justify-content: center;
  }
}

/* 强调文本 */
.highlight {
  background: linear-gradient(120deg, #e8eaf6 0%, #c5cae9 100%);
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
}