/**
 * Banner 轮播样式 — 全屏居中 3 卡片
 */

/* 轮播区域 — 全屏宽 */
.banner-section {
    width: 100%;
    margin: 0;
    padding: 60px 0 60px;
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
}

.banner-swiper {
    overflow: visible;
    padding-bottom: 36px;
}

/* 轮播卡片 */
.banner-slide {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: visible;
    background: transparent;
    transition: transform 0.5s ease, opacity 0.5s ease !important;
    opacity: 1 !important;
    transform: scale(0.85) !important;
}
.banner-slide.swiper-slide-active {
    opacity: 1 !important;
    transform: scale(1) !important;
    z-index: 2;
}
.banner-slide.clickable {
    cursor: pointer;
}
.banner-slide.clickable:hover .banner-img {
    transform: scale(1.03);
}

.banner-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    border-radius: 16px;
    transition: transform 0.4s ease;
}

.banner-title {
    padding: 14px 0 0;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 占位 */
.banner-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #252530 100%);
    border-radius: 16px;
}

/* Swiper 箭头 */
.banner-prev,
.banner-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px !important;
    height: 44px !important;
    background: rgba(255,255,255,0.08) !important;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50% !important;
    backdrop-filter: blur(4px);
    transition: all 0.25s !important;
    z-index: 10;
    margin-top: -18px;
}
.banner-prev:hover,
.banner-next:hover {
    background: rgba(255,255,255,0.15) !important;
    border-color: rgba(255,255,255,0.25);
}
.banner-prev::after,
.banner-next::after {
    display: none !important;
}
.banner-prev img,
.banner-next img {
    width: 18px;
    height: 18px;
}
.banner-prev img {
    transform: rotate(180deg);
}
.banner-prev {
    left: 24px !important;
}
.banner-next {
    right: 24px !important;
}

/* Swiper 分页圆点 */
.banner-dots {
    bottom: 4px !important;
    z-index: 10;
}
.banner-dots .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.25);
    opacity: 1;
    transition: all 0.3s;
    border-radius: 5px;
    cursor: pointer;
}
.banner-dots .swiper-pagination-bullet:hover {
    background: rgba(255,255,255,0.5);
}
.banner-dots .swiper-pagination-bullet-active {
    background: #C9FF85;
    width: 28px;
    border-radius: 5px;
}

/* 视频弹窗 */
.banner-video-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}
.banner-video-wrap {
    position: relative;
    width: 90%;
    max-width: 960px;
}
.banner-video-close {
    position: absolute;
    top: -48px;
    right: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
}
.banner-video-close:hover {
    background: rgba(255,255,255,0.2);
}
.banner-video-close svg {
    width: 20px;
    height: 20px;
}
.banner-video-player {
    width: 100%;
    border-radius: 12px;
    outline: none;
    background: #000;
    max-height: 80vh;
}

/* 响应式 */
@media (max-width: 1024px) {
    .banner-section {
        padding: 40px 0 40px;
    }
}

@media (max-width: 768px) {
    .banner-section {
        padding: 16px 0 16px;
    }
    .banner-swiper {
        padding-bottom: 30px;
    }
    .banner-slide {
        transform: scale(0.82) !important;
    }
    .banner-slide.swiper-slide-active {
        transform: scale(1) !important;
    }
    .banner-img {
        border-radius: 12px;
    }
    .banner-prev,
    .banner-next {
        width: 30px !important;
        height: 30px !important;
        display: none !important;
    }
    .banner-prev img,
    .banner-next img {
        width: 14px;
        height: 14px;
    }
    .banner-title {
        font-size: 12px;
        padding: 10px 0 0;
    }
    .banner-dots .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
    }
    .banner-dots .swiper-pagination-bullet-active {
        width: 20px;
    }
}

/* ============================================
   亮色模式覆盖
   ============================================ */
[data-theme="light"] .banner-slide {
    background: #f4f4f5;
}

[data-theme="light"] .banner-placeholder {
    background: linear-gradient(135deg, #f4f4f5 0%, #e5e7eb 100%);
}

[data-theme="light"] .banner-prev,
[data-theme="light"] .banner-next {
    background: rgba(255, 255, 255, 0.85) !important;
    border-color: #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .banner-prev:hover,
[data-theme="light"] .banner-next:hover {
    background: #ffffff !important;
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .banner-prev img,
[data-theme="light"] .banner-next img {
    filter: brightness(0);
}

[data-theme="light"] .banner-dots .swiper-pagination-bullet {
    background: rgba(0, 0, 0, 0.30);
}

[data-theme="light"] .banner-dots .swiper-pagination-bullet:hover {
    background: rgba(0, 0, 0, 0.50);
}

[data-theme="light"] .banner-dots .swiper-pagination-bullet-active {
    background: rgba(0, 0, 0, 0.70);
}
