/* ===== 基础轮播容器 ===== */
.hero-carousel {
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* 每个 slide 内部完全填充容器 */
.hero-carousel .swiper-slide {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.hero-carousel .swiper-slide a {
    display: block;
    width: 100%;
    height: 100%;
}
/* 轮播图片：完全填充 slide，保持比例裁剪 */
.hero-carousel .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-carousel .swiper-slide img.align-left { object-position: left center !important; }
.hero-carousel .swiper-slide img.align-center { object-position: center center !important; }
.hero-carousel .swiper-slide img.align-right { object-position: right center !important; }

/* ===== 响应式高度调整（针对不同屏幕宽度） ===== */
/* 小手机（≤480px） */
@media (max-width: 480px) {
    .hero-carousel {
        height: 188px;
    }
}
/* 手机横屏 / 小平板 (481px - 768px) */
@media (min-width: 481px) and (max-width: 1024px) {
    .hero-carousel {
        height: 320px;
    }
}
/* 桌面端 (≥1025px) */
@media (min-width: 1025px) {
    .hero-carousel {
        height: 600px;
    }
}



/* ===== 文字叠加（可选，如果你在 slide 内添加了文字） ===== */
.hero-carousel .slide-content {
    position: absolute;
    bottom: 10%;
    left: 5%;
    right: 5%;
    text-align: center;
    color: #fff;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
    z-index: 2;
    font-size: 14px;
    background: rgba(0,0,0,0.3);
    padding: 8px 12px;
    border-radius: 8px;
}
/* 平板及 放大文字和间距 */
@media (min-width: 768px) {
    .hero-carousel .slide-content {
        font-size: 18px;
        bottom: 15%;
        left: 10%;
        right: 10%;
        padding: 12px 20px;
    }
}
/* 桌面端 放大文字和间距 */
@media (min-width: 1025px) {
    .hero-carousel .slide-content {
        font-size: 24px;
        bottom: 20%;
        left: 15%;
        right: 15%;
    }
}



/* ===== 分页圆点 ===== */
.swiper-pagination-bullet {
    background: rgba(255,255,255,0.6);
    opacity: 1;
    width: 10px;
    height: 10px;
    margin: 0 4px !important;
}
.swiper-pagination-bullet-active {
    background-color: #ba9800;
    width: 15px;
    border-radius: 6px;
}
/* 缩小圆点 */
@media (min-width: 768px) {
    .swiper-pagination-bullet {
        width: 13px;
        height: 13px;
    }
    .swiper-pagination-bullet-active {
        width: 20px;
    }
}



/* ===== 导航按钮 ===== */
.swiper-button-next,
.swiper-button-prev {
    color: #fff;
    width: 28px;
    height: 28px;
    background: rgba(0,0,0,0.3);
    border-radius: 50%;
    transition: all 0.3s;
}
.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(0,0,0);
}
.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 18px;
}
/* 放大导航按钮 */
@media (min-width: 768px) {
    .swiper-button-next,
    .swiper-button-prev {
        width: 36px;
        height: 36px;
    }
    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 24px;
    }
}
