/* 班主任风采轮播样式 */
.teacher-carousel-section {
  padding: 30px 0;
  background: #f8f9fa;
}

.teacher-carousel {
  position: relative;
  overflow: hidden;
  margin-top: 20px;
}

.teacher-carousel-track {
  display: flex;
  transition: transform 0.3s ease;
}

.teacher-carousel-item {
  flex: 0 0 20%;
  padding: 0 8px;
}

.teacher-carousel-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.teacher-carousel-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.teacher-carousel-img {
  position: relative;
  width: 100%;
  padding-bottom: 133.33%;
  overflow: hidden;
}

.teacher-carousel-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.teacher-carousel-card:hover .teacher-carousel-img img {
  transform: scale(1.1);
}

.teacher-carousel-info {
  padding: 12px;
  text-align: center;
  background: #fff;
}

.teacher-carousel-name {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.teacher-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
}

.teacher-carousel-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: all 0.3s ease;
}

.teacher-carousel-dots .dot.active {
  width: 24px;
  border-radius: 5px;
  background: #dc3545;
}

/* 响应式调整 */
@media (max-width: 992px) {
  .teacher-carousel-item {
    flex: 0 0 25%;
  }
}

@media (max-width: 768px) {
  .teacher-carousel-section {
    padding: 20px 0;
  }

  .teacher-carousel-item {
    flex: 0 0 33.33%;
  }
  
  .teacher-carousel-name {
    font-size: 14px;
  }
}

@media (max-width: 576px) {
  .teacher-carousel-item {
    flex: 0 0 50%;
  }
  
  .teacher-carousel-card {
    border-radius: 8px;
  }
  
  .teacher-carousel-info {
    padding: 10px;
  }
  
  .teacher-carousel-name {
    font-size: 13px;
  }
  
  .teacher-carousel-dots {
    gap: 6px;
    margin-top: 12px;
  }
  
  .teacher-carousel-dots .dot {
    width: 8px;
    height: 8px;
  }
  
  .teacher-carousel-dots .dot.active {
    width: 20px;
  }
}