/* 研究页面样式 */
.research-direction {
  margin-bottom: 40px;
  padding: 20px;
  background-color: #f8f8ff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.research-direction h3 {
  color: #483d8b;
  margin-top: 0;
  border-bottom: 2px solid #6a5acd;
  padding-bottom: 10px;
}

.research-direction ul {
  padding-left: 20px;
}

.research-direction li {
  margin-bottom: 10px;
}

/* 图片和论文样式 */

.research-images-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin: 20px 0;
  justify-content: center;
  align-items: stretch; /* 确保所有图片容器等高 */
}

.research-image {
  flex: 1 1 350px; /* 基础宽度350px，可根据容器伸缩 */
  max-width: 450px;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  position: relative;
  background: white;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.research-image img {
  width: 100%;
  height: 250px; /* 固定图片高度 */
  object-fit: contain;
  border-radius: 6px;
  margin-bottom: 15px;
}

/* 统一caption样式 */
.image-caption1,
.image-caption2 {
  width: 100%;
  text-align: center;
  font-style: italic;
  color: #666;
  font-size: 0.9rem;
  margin-top: auto; /* 关键属性：将caption推到容器底部 */
  margin-bottom: 0;
  padding-top: 10px;
  border-top: 1px solid #eee;
}

/* 移除旧的定位方式 */
.image-caption1 {
  margin-top: auto !important;
}

/* 论文列表样式 */
.research-publications ol {
  padding-left: 20px;
  counter-reset: publication-counter;
  list-style: none;
}

.research-publications ol li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 30px;
}

.research-publications ol li::before {
  content: "[" counter(publication-counter) "] ";
  counter-increment: publication-counter;
  position: absolute;
  left: 0;
  color: #483d8b;
  font-weight: bold;
}

/* 正文链接样式 */
main a {
  color: #9522c2; /* 正文链接的默认颜色 */
  text-decoration: none;
}

main ol a:hover {
  text-decoration: underline;
}

main a:visited {
  color: #9522c2; /* 确保访问过的正文链接颜色不变 */
}
