/* 轮播展示区 */
/* 团队展示图样式 - 无边框无背景 */
.team-image {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 120px; /* 添加顶部边距，避免被菜单遮挡 */
  margin-bottom: 40px;
}
.team-image img {
  max-width: 75%; /* 缩小图片尺寸 */
  height: auto;
  border: none;
  box-shadow: none;
  background: none;
}

/* 内容区 */
.content {
  background-color: rgba(255, 255, 255, 0.92);
  padding: 60px 5% 40px;
  min-height: calc(100vh - 100px);
  overflow: hidden;
}
.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin: 80px 0 50px;
  color: #2e7d32;
  position: relative;
}
.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: #ffca28;
  margin: 12px auto 0;
  border-radius: 2px;
}

/* 通用卡片容器 */
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 80px;
  justify-content: center;
  margin-bottom: 60px;
  padding: 20px;
  width: 100%;
  overflow: visible;
}

/* Leader部分专用容器 - 4个卡片一排 */
.leader-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-bottom: 60px;
  padding: 20px;
  width: 100%;
  overflow: visible; /* 确保翻转不被遮挡 */
}

/* 学生成员部分专用容器 - 4个卡片一排 */
.student-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-bottom: 60px;
  padding: 20px;
  width: 100%;
  overflow: visible; /* 确保翻转不被遮挡 */
}

/* 竖版翻转卡片样式 */
.flip-card {
  width: 280px;
  height: 380px;
  perspective: 1000px;
  cursor: pointer;
  position: relative;
  transform-style: preserve-3d;
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .flip-card {
    width: 260px;
    height: 360px;
  }
}

@media (max-width: 992px) {
  .leader-grid, .student-grid {
    gap: 20px;
  }
  .flip-card {
    width: 240px;
    height: 340px;
  }
}

@media (max-width: 768px) {
  .flip-card {
    width: 220px;
    height: 320px;
  }
}

@media (max-width: 576px) {
  .leader-grid, .student-grid {
    gap: 15px;
  }
  .flip-card {
    width: 200px;
    height: 300px;
  }
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s ease-in-out;
  transform-style: preserve-3d;
  transform-origin: center;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  margin: 0;
}

.flip-card-front {
  background: #ffffff;
  justify-content: flex-start;
  padding-top: 20px;
}

/* 竖版图片调整为4:3比例并增大占比 */
.flip-card-front img {
  width: 220px;
  height: 280px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  max-width: 90%;
  max-height: 75%;
}

/* 名字放在照片下方居中 */
.flip-card-front h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #2e7d32;
  margin: 0;
  padding: 0 10px;
  text-align: center;
  width: 100%;
}

.flip-card-back {
  background: #f5f9f7;
  color: #333;
  transform: rotateY(180deg);
  padding: 20px;
}

.flip-card-back h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #2e7d32;
  margin: 0 0 15px 0;
}

.flip-card-back p {
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
  color: #555;
}

/* PI团队卡片样式 - 一行两个 */
.flip-card-horizontal {
  width: 450px;
  height: 400px;
  perspective: 1000px;
  cursor: pointer;
  position: relative;
  transform-style: preserve-3d;
  margin: 0 10px;
  z-index: 1;
}

.flip-card-inner-horizontal {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s ease-in-out;
  transform-style: preserve-3d;
  transform-origin: center;
}

.flip-card-horizontal:hover .flip-card-inner-horizontal {
  transform: rotateY(180deg);
}

.flip-card-front-horizontal, .flip-card-back-horizontal {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  padding: 25px;
  margin: 0;
}

/* 卡片正面样式 */
.flip-card-front-horizontal {
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* 图片样式 - 放大效果，不限制比例 */
.flip-card-front-horizontal img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  margin: 0 0 15px 0;
}

/* 标题样式 */
.flip-card-front-horizontal h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2e7d32;
  margin: 0;
  text-align: center;
  width: 100%;
}

.flip-card-back-horizontal {
  background: #f5f9f7;
  color: #333;
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
}

.flip-card-back-horizontal p {
  font-size: 1.1rem;
  line-height: 1.5;
  margin: 0;
  color: #555;
  text-align: left;
  width: 100%;
}