/* ========== 轮播布局样式 ========== */
.slider-section { position: relative; }
.slider-section:after {
    content: "";
    position: absolute;
    height: 0px;
    width: 100%;
    background-color: var(--wp--preset--color--background);
    bottom: 0;
    left: 0;
}
.slider-section .owl-carousel { overflow: hidden; }
.slider-section .slide-count {
    position: absolute;
    bottom: 30px;
    left: 130px;
    z-index: 2;
}
.slider-section .slide-count .current-slide {
    font-weight: 700;
    font-size: 48px;
}
.slider-section .custom-controls {
    position: absolute;
    bottom: 20px;
    right: 38%;
    z-index: 1;
    justify-content: space-between;
    display: inline-flex;
}
.slider-section .custom-controls .custom-prev img:first-child,
.slider-section .custom-controls .custom-next img:first-child,
.slider-section .custom-controls .custom-prev:hover img:last-child,
.slider-section .custom-controls .custom-next:hover img:last-child {
    display: none;
}
.slider-section .custom-controls .custom-prev:hover img:first-child,
.slider-section .custom-controls .custom-next:hover img:first-child {
    display: inline-flex;
}
.slider-section .custom-dots {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 0px;
    flex-wrap: wrap;
}
.slider-section .custom-dots .dot {
    border: none;
    background: none;
    border-radius: 50px;
    padding: 5px;
    cursor: pointer;
    transition: all 1s ease;
}
.slider-section .custom-dots .dot.active {
    background: linear-gradient(-75deg, var(--wp--preset--color--primary) 50%, rgba(255,255,255,0.1) 50%);
}
.slider-section .custom-dots .dot img {
    border-radius: 50% !important;   /* 强制圆形 */
    object-fit: cover !important;     /* 保证图片不变形 */
    width: 60px;
    height: 60px;
}
.slider-section .slider-content .slider-btn a:hover {
    background: var(--wp--preset--gradient--banner-background-color);
    color: var(--wp--preset--color--background) !important;
}

/* ========== WOW 动画 ========== */
.animated {
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}

@-webkit-keyframes zoomIn {
  from { opacity: 0; -webkit-transform: scale3d(.3, .3, .3); transform: scale3d(.3, .3, .3); }
  50% { opacity: 1; }
}
@keyframes zoomIn {
  from { opacity: 0; -webkit-transform: scale3d(.3, .3, .3); transform: scale3d(.3, .3, .3); }
  50% { opacity: 1; }
}
.zoomIn {
  -webkit-animation-name: zoomIn;
  animation-name: zoomIn;
}

@-webkit-keyframes fadeInUp {
  from { opacity: 0; -webkit-transform: translate3d(0, 100%, 0); transform: translate3d(0, 100%, 0); }
  to { opacity: 1; -webkit-transform: none; transform: none; }
}
@keyframes fadeInUp {
  from { opacity: 0; -webkit-transform: translate3d(0, 100%, 0); transform: translate3d(0, 100%, 0); }
  to { opacity: 1; -webkit-transform: none; transform: none; }
}
.fadeInUp {
  -webkit-animation-name: fadeInUp;
  animation-name: fadeInUp;
}

/* ========== 响应式 ========== */
@media screen and (max-width:767px) {
    .slider-section:after { content: none; }
    .slider-section .slide-count { position: static; text-align: center; }
    .slider-section .custom-controls {
        position: relative;
        padding: 20px 15px !important;
        bottom: 0;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        gap: 10px;
    }
    .slider-section .custom-dots .dot img { height: 50px; width: 50px; }
}
/* 闪光效果 */
.slider-section .owl-carousel .slider-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: skewX(-25deg);
    z-index: 2;
    pointer-events: none;
}

.slider-section .owl-carousel .owl-item.active .slider-bg::after {
    animation: sliderShine 1.2s ease 0.5s;
}

@keyframes sliderShine {
    0% { left: -75%; }
    100% { left: 125%; }
}

.slider-section .custom-dots .dot img {
    border-radius: 50% !important;
    object-fit: cover !important;
}