/* 大图轮播组件 Banner Carousel */
.bc-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.bc-window {
  position: relative;
  width: 100%;
  height: calc(100vh - 70px);
  min-height: 450px;
  overflow: hidden;
  background: #000;
  /* 水平手势归组件（拖拽切图），垂直滚动归页面；避免触发浏览器返回/前进手势 */
  touch-action: pan-y;
}
.bc-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s ease;
}
.bc-track.bc-fade {
  position: relative;
  height: 100%;
  transition: none;
}
.bc-slide {
  flex: 0 0 100%;
  position: relative;
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}
.bc-slide picture,
.bc-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bc-track.bc-fade .bc-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.bc-track.bc-fade .bc-slide.is-active {
  opacity: 1;
}
.bc-text {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 2;
  width: 100%;
}
.bc-text h3 {
  margin: 0 0 12px;
  font-size: var(--banner-title-main-fs-p);
  font-weight: 600;
}
.bc-text p {
  margin: 0;
  font-size: var(--banner-title-sub-fs-p);
  opacity: 0.9;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.bc-text p::before,
.bc-text p::after {
  content: "";
  display: inline-block;
  width: 40px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

/* 标题文字切换动画：默认隐藏，激活时从下方滑入 */
.bc-text h3,
.bc-text p {
  transform: translateY(30px);
  opacity: 0;
  transition:
    transform 0.6s ease,
    opacity 0.6s ease;
}
.bc-text-anim h3 {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 0.2s;
}
.bc-text-anim p {
  transform: translateY(0);
  opacity: 0.9;
  transition-delay: 0.4s;
}

/* 左右箭头，纯CSS画箭头 */
.bc-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  z-index: 5;
  user-select: none;
  transition: background 0.3s;
  /* no mobile tap highlight block */
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  outline: none;
}

/* press feedback: slight shrink (keep the translateY centering) */
.bc-arrow:active {
  transform: translateY(-50%) scale(0.9);
  transition:
    background 0.3s,
    transform 0.15s;
}
.bc-arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 45%;
  width: 8px;
  height: 8px;
  border-top: 1.5px solid #fff;
  border-right: 1.5px solid #fff;
}
.bc-prev {
  left: 20px;
}
.bc-next {
  right: 20px;
}
.bc-prev::after {
  transform: translate(-60%, -50%) rotate(-135deg);
  left: 55%;
}
.bc-next::after {
  transform: translate(-40%, -50%) rotate(45deg);
}
.bc-arrow:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* 小圆点 */
.bc-dots {
  position: absolute;
  bottom: 24px;
  right: 20px;
  display: flex;
  gap: 8px;
  z-index: 5;
}
.bc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition:
    background 0.3s,
    transform 0.3s;
}
.bc-dot.active {
  background: #fff;
  transform: scale(1.2);
}

/* 手机端 */
@media (max-width: 860px) {
  .bc-arrow {
    display: none;
  }
  .bc-window {
    height: calc(100vh - 60px);
    min-height: 320px;
  }
  .bc-text {
    bottom: 40px;
  }
  .bc-text h3 {
    font-size: var(--banner-title-main-fs-m);
  }
  .bc-text p {
    font-size: var(--banner-title-sub-fs-m);
    gap: 10px;
  }
  .bc-text p::before,
  .bc-text p::after {
    width: 24px;
  }
  .bc-dots {
    right: 12px;
    bottom: 18px;
  }
}
