/* 通用样式 */
body {
  font-family: "Georgia", serif; /* 使用学术风格的字体 */
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-color: #EAF6FF; /* 白色背景 */
  color: #333; /* 深灰色文字 */
}


@media (max-width: 768px) {
  .nav-links {
    display: none; /* 默认隐藏导航菜单 */
    flex-direction: column; /* 垂直布局 */
    background-color: #333;
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    text-align: center;
  }

  .nav-links li {
    margin: 10px 0;
  }

  .menu-toggle {
    display: block; /* 显示菜单按钮 */
  }

  .nav-links.active {
    display: flex; /* 显示导航菜单 */
  }
}


header {
  background-color: #1e1e1e; /* 深色背景 */
  color: #ffffff; /* 白色文字 */
  padding: 15px 20px;
  text-align: center;
  border-bottom: 3px solid #888; /* 学术感的下边框 */
}

       figcaption {
            text-align: center; /* 文字居中对齐 */
            margin-top: 10px; /* 调整图片与文字的间距 */
            font-size: 16px; /* 设置文字大小 */
            color: #333; /* 设置文字颜色 */
           text-align: center; /* 让 figcaption 居中对齐 */

        }


              .image-row {
            display: flex; /* 启用 Flexbox 布局 */
            justify-content: space-around; /* 图片均匀分布 */
            align-items: center; /* 图片垂直方向对齐 */
            gap: 10px; /* 图片之间的间距 */
            flex-wrap: wrap; /* 自动换行（可选） */
        }


/* 图片样式 */
img {
  display: block;
  max-width: 100%;
  height: auto; /* 保持图片比例 */
  margin: 10px 0;
  border: 1px solid #ccc; /* 图片边框 */
  border-radius: 5px; /* 圆角 */
  object-fit: contain; /* 确保图片完整显示 */
}


header h1 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: 1px; /* 字母间距 */
}

nav {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 15px; /* 按钮之间的间距 */
}

nav a {
  color: #ffffff; /* 白色文字 */
  text-decoration: none;
  padding: 8px 15px;
  border: 1px solid #444; /* 学术感的边框 */
  border-radius: 5px;
  font-size: 1rem;
}

nav a:hover {
  background-color: #444; /* 鼠标悬停时的背景 */
}

/* 主体内容 */
main {
  max-width: 1000px; /* 内容居中显示 */
  margin: 20px auto;
  padding: 20px;
}

section {
  margin-bottom: 20px;
}

section h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  border-bottom: 2px solid #ccc; /* 标题下边框 */
  padding-bottom: 5px;
  color: #333;
}

section p {
  margin: 10px 0;
}







/* 返回顶部按钮 */
#back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none; /* 默认隐藏 */
  background-color: #333; /* 深灰色背景 */
  color: #fff;
  border: none;
  border-radius: 50%;
  padding: 10px 15px;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); /* 阴影 */
}

#back-to-top:hover {
  background-color: #555; /* 鼠标悬停时的背景 */
}

/* 页脚 */
footer {
  background-color: #1e1e1e;
  color: #ffffff;
  text-align: center;
  padding: 10px 0;
  margin-top: 30px;
  font-size: 0.9rem;
  border-top: 3px solid #888;
}

