/*
* 轮播图区域
* {include file=comm/comm_slide.html}
<link rel="stylesheet" href="{pboot:sitedomain}/skin/css/comm/comm_slide.css">
*/

/* 轮播容器 */
.banner {
  position: relative;
  height: 450px;
  background-color: #f5f7fa;
  margin-bottom: 20px;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
}
@media (max-width: 992px) {
  .banner {
    border-radius: 0;
    margin-bottom: 15px;
  }
}

/* 轮播幻灯片容器 */
.banner-container {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* 轮播幻灯片 */
.banner__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 1;
}

/* 当前活动幻灯片 */
.banner__slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* 轮播图片 */
.banner__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

/* 轮播内容 */
.banner__content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* 标题 */
.banner__title {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition);
}

/* 副标题 */
.banner__subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  line-height: 1.6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition);
  transition-delay: 0.1s;
}

/* 按钮 */
.banner__btn {
  display: inline-block;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 400;
  color: var(--white);
  background-color: var(--primary-color);
  border-radius: 40px;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  transition-delay: 0.2s;
}

.banner__btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 102, 204, 0.3);
}

/* 活动幻灯片内容动画 */
.banner__slide.active .banner__title,
.banner__slide.active .banner__subtitle,
.banner__slide.active .banner__btn {
  opacity: 1;
  transform: translateY(0);
}

/* 分页指示器 */
.banner__pagination {
  position: absolute;
  bottom: 30px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 10;
}

.banner__pagination-item {
  width: 12px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  opacity: 1;
  cursor: pointer;
  transition: var(--transition);
  margin: 0 6px;
}

.banner__pagination-item.active {
  background-color: var(--white);
  width: 30px;
  border-radius: 6px;
}

/* 导航按钮 */
.banner__prev,
.banner__next {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  color: var(--white);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
}

.banner__prev {
  left: 30px;
}

.banner__next {
  right: 30px;
}

.banner__prev:hover,
.banner__next:hover {
  background-color: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .banner__title {
    font-size: 3rem;
  }

}

@media (max-width: 992px) {
  
  .banner__title {
    font-size: 2.5rem;
  }
  
  .banner__subtitle {
    font-size: 1.125rem;
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {

  .banner__title {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .banner__subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    padding: 0 20px;
  }
  
  .banner__btn {
    padding: 10px 24px;
    font-size: 0.9375rem;
  }
  
  .banner__prev,
  .banner__next {
    width: 36px;
    height: 36px;
    margin-top: -18px;
    font-size: 16px;
  }
  
  .banner__prev {
    left: 20px;
  }
  
  .banner__next {
    right: 20px;
  }
}

@media (max-width: 480px) {
  .banner {
    height: 50vh;
    min-height: 350px;
  }
  
  .banner__title {
    font-size: 1.75rem;
  }
  
  .banner__subtitle {
    font-size: 0.9375rem;
    margin-bottom: 1.25rem;
  }
  
  .banner__pagination {
    bottom: 20px;
  }
}