/*大图轮播专用样式文件，包含轮播图容器、幻灯片、导航指示器、控制按钮等样式，以及完整的响应式设计。*/
.banner-ad-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.banner-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.banner-slider {
    display: flex;
    width: 500%;
    height: 100%;
    transition: transform 0.8s ease-in-out;
}

.banner-slide {
    width: 20%;
    height: 100%;
    position: relative;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: scale-down;  /* 等比缩放，完整显示 */
    background-color: #f5f5f5; /* 空白区域背景色 */
}

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 30px;
}

.banner-title {
    font-size: 22px;
    font-weight: bold;
    color: white;
    text-decoration: none;
    display: inline-block;
    transition: color 0.3s ease;
}

.banner-desc {
    text-indent: 2em;
    font-size: 16px;
    margin-bottom: -25px;
    max-width: 85%;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
    max-height: calc(1.5em * 3);
    color: rgba(255, 255, 255, 0.9);
    text-align: justify;
    text-align-last: justify;
    word-break: break-all;
}

.banner-indicators {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.banner-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.banner-indicator.active {
    background-color: #0379dd;
    transform: scale(1.03);
}

.banner-indicator:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.banner-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
    pointer-events: none;
}

.banner-btn {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.banner-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: scale(1.03);
}

@media (max-width: 1200px) {
    .banner-container {
        height: 380px;
    }
    
    .banner-overlay {
        padding: 25px;
    }
}

@media (max-width: 992px) {
    .banner-container {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .banner-container {
        height: 300px;
    }
    
    .banner-overlay {
        padding: 20px;
    }
    
    .banner-title {
        font-size: 20px;
    }
    
    .banner-desc {
        font-size: 14px;
        max-width: 100%;
        text-indent: 2em;
        -webkit-line-clamp: 2;
        max-height: calc(1.5em * 2);
    }
    
    .banner-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .banner-container {
        height: 250px;
    }
    
    .banner-overlay {
        padding: 15px;
    }
    
    .banner-title {
        font-size: 18px;
    }
    
    .banner-desc {
        font-size: 13px;
        text-indent: 2em;
        -webkit-line-clamp: 2;
        max-height: calc(1.5em * 2);
        margin-bottom: -15px;
    }
    
    .banner-indicators {
        bottom: 15px;
        right: 15px;
        gap: 8px;
    }
    
    .banner-indicator {
        width: 10px;
        height: 10px;
    }
    
    .banner-controls {
        padding: 0 15px;
    }
    
    .banner-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .banner-container {
        height: 220px;
    }
    
    .banner-overlay {
        padding: 12px;
    }
    
    .banner-title {
        font-size: 16px;
    }
    
    .banner-desc {
        font-size: 12px;
        -webkit-line-clamp: 1;
        max-height: 1.5em;
    }
}

@media (max-width: 360px) {
    .banner-container {
        height: 200px;
    }
}

@media print {
    .banner-controls,
    .banner-indicators {
        display: none !important;
    }
    
    .banner-container {
        height: auto;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .banner-slider {
        display: block;
        width: 100%;
    }
    
    .banner-slide {
        width: 100%;
        height: auto;
        margin-bottom: 20px;
        break-inside: avoid;
    }
    
    .banner-image {
        height: auto;
        max-height: 300px;
    }
}