﻿/**
 * AUD Gaming - 顶部导航下方轮播图样式
 * 为网站顶部导航栏下方的banner轮播提供样式
 */

/* 头部banner容器 */
.header-banner-container {
    width: 100%;
    padding: 0 20px;
    margin: 0 auto;
    margin-bottom: 30px;
    max-width: 1600px;
}

/* 头部banner轮播图 */
.header-banner {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 16/5; /* 设置扁平宽高比 */
    max-height: 400px; /* 增加最大高度，确保图片能完全展示 */
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin-top: 30px; /* 增加顶部间距，避免被导航栏遮挡 */
}

/* 轮播图内容 */
.header-banner .carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.header-banner .carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 1;
}

.header-banner .carousel-item.active {
    opacity: 1;
    z-index: 2;
}

/* 轮播图图片 */
.header-banner .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 改为contain，确保图片完整显示不被裁剪 */
    object-position: center;
}

/* 轮播图指示器 */
.header-banner .carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.header-banner .carousel-indicator {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.header-banner .carousel-indicator.active {
    background-color: var(--bg-secondary);
    transform: scale(1.2);
}

.header-banner .carousel-indicator:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* 轮播图控制按钮 */
.header-banner .carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    opacity: 0;
}

.header-banner:hover .carousel-control {
    opacity: 0.8;
}

.header-banner .carousel-control:hover {
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 1;
}

.header-banner .carousel-control-prev {
    left: 15px;
}

.header-banner .carousel-control-next {
    right: 15px;
}

/* 电竞风格增强 */
.header-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6157ff, #74febd);
    z-index: 5;
}

.header-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #74febd, #6157ff);
    z-index: 5;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .header-banner {
        max-height: 350px; /* 增加响应式下的最大高度 */
        margin-top: 25px; /* 响应式调整顶部间距 */
    }
}

@media (max-width: 992px) {
    .header-banner-container {
        padding: 0 15px;
        margin-bottom: 25px;
    }
    
    .header-banner {
        max-height: 300px; /* 增加响应式下的最大高度 */
        border-radius: 8px;
        margin-top: 20px; /* 响应式调整顶部间距 */
    }
    
    .header-banner .carousel-control {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .header-banner-container {
        padding: 0 10px;
        margin-bottom: 20px;
    }
    
    .header-banner {
        max-height: 200px; /* 增加响应式下的最大高度 */
        border-radius: 6px;
    }
    
    .header-banner .carousel-indicator {
        width: 10px;
        height: 10px;
    }
    
    .header-banner .carousel-control {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .header-banner {
        max-height: 150px; /* 增加响应式下的最大高度 */
    }
    
    .header-banner .carousel-indicators {
        bottom: 10px;
        gap: 8px;
    }
    
    .header-banner .carousel-indicator {
        width: 8px;
        height: 8px;
    }
    
    .header-banner .carousel-control {
        width: 25px;
        height: 25px;
        font-size: 12px;
    }
} 
