/**
 * Banner样式一 CSS
 * 左侧轮播图 + 右侧两个小图
 *
 * @package GoodBase
 * @since 1.0.0
 */

.home-banner1 {
    margin-top: 12px;
    margin-bottom: 1.2rem;
    padding: 0;
}

.banner1-wrapper {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: flex-start;
}

.banner1-left {
    flex: 1;
    position: relative;
}

/* 当右侧小图为空时，左侧轮播图占满整个宽度 */
.banner1-wrapper.no-right-images {
    display: block;
}

.banner1-wrapper.no-right-images .banner1-left {
    width: 100%;
    max-width: 100%;
}

.banner1-wrapper.no-right-images .banner1-slider {
    height: 450px;
}

.banner1-slider {
    position: relative;
    width: 100%;
    height: 398px;
    overflow: hidden;
    border-radius: 8px;
    background: #f5f5f5;
}

.banner1-slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.banner1-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.banner1-slide.active {
    opacity: 1;
    z-index: 1;
}

.banner1-slide-link {
    display: block;
    width: 100%;
    height: 100%;
}

.banner1-slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner1-slider-prev,
.banner1-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    color: #333;
    opacity: 0;
    visibility: hidden;
}

.banner1-slider:hover .banner1-slider-prev,
.banner1-slider:hover .banner1-slider-next {
    opacity: 1;
    visibility: visible;
}

.banner1-slider-prev:hover,
.banner1-slider-next:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.banner1-slider-prev {
    left: 15px;
}

.banner1-slider-next {
    right: 15px;
}

.banner1-slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.banner1-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner1-dot.active {
    background: #fff;
    width: 24px;
    border-radius: 4px;
}

.banner1-right {
    width: 300px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.banner1-right-item {
    position: relative;
    width: 100%;
    height: 191px;
    overflow: hidden;
    border-radius: 8px;
    background: #f5f5f5;
}

/* 右侧轮播图样式 */
.banner1-right-slider {
    position: relative;
}

.banner1-right-slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.banner1-right-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.banner1-right-slide.active {
    opacity: 1;
    z-index: 1;
}

.banner1-right-slide-link {
    display: block;
    width: 100%;
    height: 100%;
}

.banner1-right-slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.banner1-right-slide-link:hover .banner1-right-slide-image,
.banner1-right-slide:hover .banner1-right-slide-image {
    transform: scale(1.05);
}

/* 右侧轮播图指示器 */
.banner1-right-slider-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 10;
}

.banner1-right-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner1-right-dot.active {
    background: #fff;
    width: 16px;
    border-radius: 3px;
}

/* 兼容旧的静态图片样式 */
.banner1-right-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.banner1-right-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.banner1-right-link:hover .banner1-right-image {
    transform: scale(1.05);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .banner1-wrapper {
        flex-direction: column;
    }
    
    .banner1-right {
        width: 100%;
        flex-direction: row;
    }
    
    .banner1-right-item {
        flex: 1;
    }
    
    .banner1-slider-prev,
    .banner1-slider-next {
        width: 32px;
        height: 32px;
    }
    
    .banner1-slider-prev {
        left: 10px;
    }
    
    .banner1-slider-next {
        right: 10px;
    }
}

