/* ========================================
   全新轮播图系统 - 简单可靠
   ======================================== */

/* 重置body避免横向滚动 */
body {
    overflow-x: hidden;
}

/* 主轮播容器 */
.banner-section {
    position: relative;
    width: 100%;
    height: 600px;
    margin-top: 70px;
    overflow: hidden;
    background: #000;
}

/* 轮播图包装器 */
.banner-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

/* 轮播图列表 */
.banner-list {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* 单个轮播项 */
.banner-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

/* 激活的轮播项 */
.banner-item.active {
    opacity: 1;
    z-index: 2;
}

/* 背景图片容器 */
.banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 图片本身 */
.banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* 遮罩层 */
.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.1) 100%
    );
    z-index: 3;
}

/* 内容容器 */
.banner-content {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    z-index: 4;
    max-width: 600px;
    color: #fff;
}

/* 标题 */
.banner-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

/* 描述文字 */
.banner-description {
    font-size: 20px;
    line-height: 1.8;
    margin-bottom: 30px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8);
    opacity: 0.95;
}

/* 按钮 */
.banner-button {
    display: inline-block;
    padding: 15px 35px;
    background: #ff9800;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(255, 152, 0, 0.4);
}

.banner-button:hover {
    background: #f57c00;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 152, 0, 0.6);
}

/* 左右切换按钮 */
.banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.banner-nav:hover {
    background: rgba(255, 152, 0, 0.9);
    border-color: #ff9800;
    transform: translateY(-50%) scale(1.15);
}

.banner-nav.prev {
    left: 30px;
}

.banner-nav.next {
    right: 30px;
}

.banner-nav i {
    font-size: 20px;
    color: #fff;
}

/* 指示器 */
.banner-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}

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

.banner-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.banner-dot.active {
    width: 40px;
    border-radius: 6px;
    background: #ff9800;
}

/* 加载提示 */
.banner-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 5;
}

.banner-loading-icon {
    font-size: 48px;
    margin-bottom: 15px;
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ========================================
   响应式设计 - 平板
   ======================================== */
@media (max-width: 968px) {
    .banner-section {
        height: 500px;
    }
    
    .banner-content {
        left: 5%;
        max-width: 500px;
    }
    
    .banner-title {
        font-size: 36px;
    }
    
    .banner-description {
        font-size: 18px;
    }
    
    .banner-button {
        padding: 12px 30px;
        font-size: 16px;
    }
    
    .banner-nav {
        width: 45px;
        height: 45px;
    }
    
    .banner-nav.prev {
        left: 20px;
    }
    
    .banner-nav.next {
        right: 20px;
    }
}

/* ========================================
   响应式设计 - 手机
   ======================================== */
@media (max-width: 576px) {
    .banner-section {
        height: 450px;
        margin-top: 60px;
    }
    
    /* 遮罩层加深，确保文字可读 */
    .banner-overlay {
        background: linear-gradient(
            to top,
            rgba(0, 0, 0, 0.85) 0%,
            rgba(0, 0, 0, 0.5) 50%,
            rgba(0, 0, 0, 0.3) 100%
        );
    }
    
    /* 内容移到底部 */
    .banner-content {
        top: auto;
        bottom: 80px;
        left: 0;
        right: 0;
        transform: none;
        max-width: 100%;
        padding: 0 20px;
        text-align: center;
    }
    
    .banner-title {
        font-size: 24px;
        margin-bottom: 12px;
    }
    
    .banner-description {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 20px;
    }
    
    .banner-button {
        padding: 10px 25px;
        font-size: 14px;
    }
    
    .banner-nav {
        width: 40px;
        height: 40px;
    }
    
    .banner-nav i {
        font-size: 16px;
    }
    
    .banner-nav.prev {
        left: 12px;
    }
    
    .banner-nav.next {
        right: 12px;
    }
    
    .banner-dots {
        bottom: 15px;
        gap: 8px;
    }
    
    .banner-dot {
        width: 8px;
        height: 8px;
    }
    
    .banner-dot.active {
        width: 24px;
    }
}

/* 超小屏幕 */
@media (max-width: 375px) {
    .banner-section {
        height: 400px;
    }
    
    .banner-title {
        font-size: 20px;
    }
    
    .banner-description {
        font-size: 13px;
    }
}


