/* 滚动通告区样式 */
.announcement-section {
  max-width: 900px;
  margin: 800px auto 40px;
  padding: 0 10px;
  position: relative;
}

.carousel-container {

position: relative;

overflow: hidden;

border-radius: 10px;

box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);

/* 移除height，添加padding-bottom */

padding-bottom: 56.25%; /* 16:9 宽高比 */

height: 0; /* 确保高度由padding控制 */

}

.carousel {

position: absolute; /* 使轮播图绝对定位在容器内 */

top: 0;

left: 0;

width: 100%;

height: 100%;

/* 其他样式不变 */

display: flex;

transition: transform 0.5s ease;

}



.carousel-item {
  min-width: 100%;
  height: 100%;
  position: relative;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-item-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 25px;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent);
}

.carousel-item h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.carousel-item p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 70%;
}

.carousel-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  z-index: 10;
}

.carousel-btn {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(79, 172, 254, 0.3);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  margin: 0 20px;
}

.carousel-btn:hover {
  background: rgba(79, 172, 254, 0.3);
  transform: scale(1.1);
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  gap: 10px;
}

.carousel-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-indicator.active {
  background: #4facfe;
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .announcement-section {
    max-width: 95%; /* 小屏幕增加宽度利用率 */
    margin: 40px auto; /* 减少上下间距 */
  }
  .carousel-container {
    padding-bottom: 75%; /* 移动端改用4:3比例 */
  }
}