body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  /* 不再需要为固定页脚留出额外的空间 */
}


.active {
  background-color: #498ee2; /* 选择一个显眼的颜色 */
  color: white;
}

.navbar {
  background-color: #333;
  overflow: hidden;
  font-size: 16px;
}

.navbar a {
  float: left;
  display: block;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

.navbar a:hover {
  background-color: #ddd;
  color: black;
}

.search-container {
  padding: 20px;
  text-align: center;
}

.search-container input {
  padding: 10px;
  margin-right: 10px;
  width: 500px;
  font-size: 16px;
}

.search-container button {
  padding: 10px 20px;
  font-size: 16px;
}

/* 为搜索结果添加样式，以与内容部分保持一致 */
.search-results {
  max-width: 800px; /* 限制最大宽度，与内容部分相同 */
  margin: 20px auto; /* 上下外边距20px，左右自动，居中对齐 */
  padding: 20px; /* 内边距 */
  background-color: white; /* 背景颜色 */
  border: 1px solid #ddd; /* 边框 */
}

.search-results div:not(:last-child) {
  border-bottom: 1px solid #ddd; /* 为除最后一个搜索结果之外的每个结果添加底边框 */
  padding-bottom: 10px; /* 添加一些底部内边距，使边框与内容有些距离 */
  margin-bottom: 10px; /* 在结果之间添加一些额外的间距 */
}

/* 调整滚动框的样式，使其更加明显 */
.scroll-box {
  overflow: auto; /* 启用滚动条 */
  max-width: 60%; /* 最大宽度，根据需要调整 */
  max-height: 600px; /* 最大高度 */
  margin: 20px auto; /* 上下边距20px，左右自动（居中） */
  /* border: 3px solid #ced1d5; 蓝色边框，更宽更明显 */
  box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* 添加轻微的阴影效果 */
  background-color: #f9f9f9; /* 轻微的灰色背景，增强对比 */
  border-radius: 5px; /* 边框圆角 */
}

.flex-container {
  display: flex;
  align-items: stretch; /* 使所有子项的高度匹配 */
  justify-content: space-between;
  margin: 20px auto;
  max-width: 1300px;
}

.image-container {
  flex: 1; /* 占用剩余空间的一部分，确保宽度自适应 */
  display: flex; /* 使用 flex 布局以便可以使用 align-items */
}

.image-responsive {
  width: 100%; /* 宽度自适应容器 */
  height: 100%; /* 高度自适应容器 */
  object-fit: cover; /* 覆盖容器，保持原有宽高比，多余的部分会被裁剪 */
  display: block;
}

.content {
  flex: 2; /* 占用更多的剩余空间 */
  padding: 20px;
  background-color: white;
  border: 1px solid #ddd;
  text-align: justify;
}

/* 添加到您的CSS文件中 */
.select-style {
  font-family: Garamond, "Times New Roman", Times, serif;
  font-size: 16px;
  padding: 5px 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: white;
  margin-right: 10px;
  box-shadow: 0 2px 3px rgba(0,0,0,0.1);
  cursor: pointer;
}

.select-style:hover {
  border-color: #888;
}

/* 适当调整搜索框的垂直对齐问题 */
.search-container input[type="text"], .search-container button {
  padding: 5px 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-shadow: 0 2px 3px rgba(0,0,0,0.1);
}

.search-container button {
  background-color: #4CAF50;
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
  border-radius: 5px; /* 设置圆角大小为5px */
}

.search-container button:hover {
  background-color: #4a54e1;
}



footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 10px;
  bottom: 0;
}