.ab5-swiper-wrap {
  position: relative;
  width: 100%;
  margin-top:-170px;
}

/* Swiper 容器 */
#ab5Swiper {
  width: 100%;
  overflow: visible;
  position: relative;
  z-index: 1;
}

/* 每个 slide：上下结构，年份在上，圆点在下 */
#ab5Swiper .swiper-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 120px;
  cursor: pointer;
  padding-bottom: 26px;
  position: relative;
}

/* 年份文字 */
.ab5-slide-year {
  font-size: 42px;
  color: rgba(255, 255, 255, 1);
  font-weight: 400;
  white-space: nowrap;
  transition: all 0.5s ease;
  margin-bottom: 16px;
}

/* 圆点 */
.ab5-slide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 1);
  flex-shrink: 0;
  transition: all 0.5s ease;
  position: relative;
  z-index: 1;
  margin: 4px 0;
}

/* 线条 — 只在激活 slide 的圆点上画，穿过圆点中心 */
#ab5Swiper .swiper-slide-active .ab5-slide-dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -2000px;
  right: -2000px;
  height: 2px;
  background: rgba(255, 255, 255, 0.6);
  z-index: -1;
  transform: translateY(-50%);
}

/* ===== 激活态 ===== */
#ab5Swiper .swiper-slide-active .ab5-slide-year {
  font-size: 120px;
  font-weight: 600;
  transform: translateY(-30px);
}

#ab5Swiper .swiper-slide-active .ab5-slide-dot {
  width: 16px;
  height: 16px;
  background: #fff;
  border: 2px solid #e74c3c;
  box-sizing: border-box;
  margin: 0;
}

/* 描述文字 — 绝对定位，不影响布局 */
.ab5-slide-desc {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  margin: 0;
  padding-top: 20px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.5s ease;
  width: 1100px;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
}

#ab5Swiper .swiper-slide-active .ab5-slide-desc {
  opacity: 1;
  
}

/* 箭头 — 在线条上方 */
.ab5-swiper-wrap .ab5-arrow {
  position: absolute;
  top: 50px;
  width: 64px;
  height: 64px;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  background: none;
  transition: opacity 0.3s;
}

.ab5-swiper-wrap .ab5-prev { left: 28%; }
.ab5-swiper-wrap .ab5-next { right: 28%; }
.ab5-swiper-wrap .ab5-arrow:hover { opacity: 0.7; }
.ab5-swiper-wrap .ab5-arrow img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ===== 响应式 ===== */
@media only screen and (max-width: 1400px) {
  .ab5-slide-year { font-size: 24px; }
  #ab5Swiper .swiper-slide-active .ab5-slide-year { font-size: 100px; transform: translateY(-24px); }
  .ab5-swiper-wrap .ab5-prev { left: 24%; }
  .ab5-swiper-wrap .ab5-next { right: 24%; }
}

@media only screen and (max-width: 1200px) {
  .ab5-slide-year { font-size: 20px; }
  #ab5Swiper .swiper-slide-active .ab5-slide-year { font-size: 80px; transform: translateY(-20px); }
  #ab5Swiper .swiper-slide { height: 100px; padding-bottom: 20px; }
  .ab5-slide-year { margin-bottom: 12px; }
  .ab5-slide-desc { font-size: 14px; margin-top: 20px; }
  .ab5-swiper-wrap .ab5-arrow { width: 54px; height: 54px; top: -20px; }
  .ab5-swiper-wrap .ab5-prev { left: 20%; }
  .ab5-swiper-wrap .ab5-next { right: 20%; }
}

@media only screen and (max-width: 750px) {
  #ab5Swiper .swiper-slide { height: auto; padding-bottom: 10px; }
  .ab5-slide-year { font-size: 24px; margin-bottom: 6px; transition: none; }
  #ab5Swiper .swiper-slide-active .ab5-slide-year { font-size: 60px; transform: translateY(-10px); transition: none; }
  .ab5-slide-dot { width: 8px; height: 8px; margin: 4px 0; transition: none; }
  #ab5Swiper .swiper-slide-active .ab5-slide-dot { width: 12px; height: 12px; margin: 2px 0; transition: none; }
  .ab5-slide-desc {
    font-size: 12px;
    line-height: 1.6;
    padding-top: 16px;
    width: 90vw;
    transition: none;
  }
  .ab5-swiper-wrap .ab5-arrow { width: 35px; height: 35px; top: 60px; }
  .ab5-swiper-wrap .ab5-prev { left: 15%; }
  .ab5-swiper-wrap .ab5-next { right: 15%; }
  #ab5Swiper .swiper-slide-active .ab5-slide-desc {
    opacity: 1;
  }
}