/* 基本设置 */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  margin: 0;
}

section {
  margin: 20px;
}

/* #wanggd 和 #wanglu的样式 */
#wanggd, #wanglu {
  border-top: thin groove #ddddde;
  border-bottom: thin groove #ddddde;
  display: flex;
  align-items: center;
  justify-content: space-between; /* 在大屏幕上对齐 */
}

.prof_photo {
  margin: 0 auto;
  padding: 20px;
  text-align: left;
  width: 25%;
}

.prof_info {
  width: 75%;
  padding-left: 20px;
}

.prof_thumbnail {
  width: 100%;
  height: auto;
  cursor: pointer;
  transition: transform 0.3s ease;
  margin-right: 20px;
  border-radius: 15px;
}

.prof_thumbnail:hover {
  transform: scale(1.05);
}

#prof h2 {
  font-size: 170%;
}

#prof ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  font-size: 120%;
}

.research_interests p {
  font-size: 85%;
}

.prof_name {
  font-size: 140%;
  font-weight: bold;
}

/* 图片缩略图 */
.thumbnail_people {
  width: auto;
  height: 400px;
  cursor: pointer;
  border-radius: 15px;
  transition: transform 0.3s ease;
}

.thumbnail_people:hover {
  transform: scale(1.05);
}

.people {
  border-style: groove;
  border-width: thin;
  border-color: #ddddde;
  border-radius: 15px;
  margin: 5px 15px;
}

.people h2 {
  text-align: center;
}

.people a {
  display: inline-block;
}

.people h3 {
  font-size: 100%;
}

.people_intro {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: center;
  gap: 40px;
}

.people_content {
  text-align: center;
  width: 300px;
}

/* 轮播容器 */
.carousel-container {
  margin: auto;
  position: relative;
  overflow: hidden;
  width: 100%; /* 确保容器的宽度适应屏幕 */
}

/* 轮播图像的容器 */
.carousel-images {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%; /* 容器宽度为100%，图片将占据全部空间 */
}

.carousel-images:hover {
  transform: scale(1.05);
}

/* 每张图片的样式 */
.carousel-images img {
  max-height: 400px;
  max-width: 300px;
  border-radius: 15px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* 小圆点指示器 */
.dots {
  text-align: center;
  position: absolute;
  bottom: 10px;
  width: 100%;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 5px;
  background-color: #717171;
  border-radius: 50%;
  cursor: pointer;
}

.active {
  background-color: #bbb;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
  /* 使 #wanggd 和 #wanglu 在小屏幕上堆叠 */
  #wanggd, #wanglu {
    flex-direction: column;
    align-items: flex-start;
  }

  /* 调整个人信息和照片布局 */
  .prof_photo {
    width: 70%; /* 在小屏幕上，照片宽度为 80% */
    margin: 0 auto;
  }

  .prof_info {
    width: 100%; /* 文本部分占满全宽 */
    padding-left: 0; /* 去掉左边距 */
  }

  .prof_name {
    font-size: 120%; /* 缩小姓名的字体大小 */
  }

  .prof_thumbnail {
    width: 80%; /* 调整照片大小 */
    margin: 0 auto; /* 居中对齐，底部增加间距 */
  }

  /* 缩小图片和个人介绍部分 */
  .thumbnail_people {
    height: 250px; /* 缩小图片的高度 */
    width: 100%; /* 确保图片自适应宽度 */
  }

  .people_intro {
    flex-direction: column; /* 在小屏幕上垂直排列 */
    gap: 20px;
  }

  .people_content {
    width: 100%; /* 让每个项目占满宽度 */
    text-align: center;
  }

  
  /* 轮播容器 */
  .carousel-container {
    margin: auto;
    position: relative;
    overflow: hidden;
    max-width: 187.5px;
  }
  

  /* 轮播图调整 */
  .carousel-images img {
    max-width: 187.5px; /* 使图片自适应屏幕宽度 */
    max-height: 250px; /* 限制最大高度 */
  }

  /* 调整小圆点指示器的位置 */
  .dots {
    bottom: 5px; /* 小圆点指示器下移 */
  }

  .dot {
    width: 8px;
    height: 8px;
  }
}

