/* 研究页面样式 */
.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;
  justify-content: center;
  gap: 0;
  margin: 20px 0;
}

.research-image {
  flex: 0 0 auto;
  max-width: 80%;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.research-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 论文列表样式 */
.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; /* 确保访问过的正文链接颜色不变 */
}

.codelink {
  flex: 1;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}
