﻿
/* ---------- 1. Banner 基础 ---------- */
.banner {
    position: relative;
    width: 100%;
    height: 660px;
    background: #0a0f1a;
    overflow: hidden;
    display: flex;
    align-items: center;
    color: #fff;
    font-family: "Microsoft YaHei", sans-serif;
}

/* 极淡遮罩（几乎不影响图片亮度，只保证文字能看清） */
.banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 1;
    pointer-events: none;
}

/* ---------- 2. 轮播背景图 ---------- */
.banner .banner-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 0;
}

.banner .banner-img.active {
    opacity: 1;
}

/* ---------- 3. 文字内容 ---------- */
.banner .banner-content {
    position: relative;
    z-index: 2;
    padding: 0 10%;
    max-width: 60%;
}

.banner .banner-title {
    font-size: 3rem;
    line-height: 1.4;
    font-weight: 600;
    margin-bottom: 1rem;
    white-space: nowrap;
    color: #ffffff;
}

.banner .banner-subtitle {
    font-size: 1.4rem;
    line-height: 1.6;
    color: #ffffff;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.banner .banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.banner .banner-btn:hover {
    color: #00d0c8;
}

.banner .banner-btn::after {
    content: ">";
    transition: transform 0.3s ease;
}

.banner .banner-btn:hover::after {
    transform: translateX(5px);
}

/* ---------- 4. 轮播控制 ---------- */
.banner .carousel-controls {
    position: absolute;
    bottom: 2rem;
    left: 10%;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.banner .carousel-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.banner .carousel-btn:hover {
    color: #00d0c8;
}

.banner .carousel-indicator {
    color: #fff;
    font-size: 1.2rem;
}

/* ---------- 5. 进度条 ---------- */
.banner .progress-bar {
    position: absolute;
    bottom: 1rem;
    left: 10%;
    width: 15%;
    height: 2px;
    background: transparent;
    z-index: 2;
    display: flex;
    gap: 2px;
}

.banner .progress-item {
    flex: 1;
    height: 2px !important;
    background: rgba(255, 255, 255, 0.2);
    transition: background 0.3s ease;
    transform: none !important;
}

.banner .progress-item.active {
    background: #fff;
}

/* ---------- 6. 响应式：大屏 PC（≥1200px） ---------- */
@media (min-width: 1200px) {
    .banner .banner-title {
        font-size: 3.5rem !important;
        line-height: 1.3;
        margin-bottom: 1.5rem;
    }
    .banner .banner-subtitle {
        font-size: 1.5rem !important;
        margin-bottom: 2.5rem;
    }
}

/* ---------- 7. 响应式：标准 PC（1024px - 1199px） ---------- */
@media (min-width: 1024px) and (max-width: 1199px) {
    .banner .banner-title {
        font-size: 3.5rem !important;
        line-height: 1.4;
    }
    .banner .banner-subtitle {
        font-size: 1.6rem !important;
    }
}

/* ---------- 8. 响应式：平板（≤1024px） ---------- */
@media (max-width: 1024px) {
    .banner .banner-title {
        font-size: 2rem;
    }
    .banner .banner-subtitle {
        font-size: 1.2rem;
    }
}

/* ---------- 9. 响应式：手机（≤768px） ---------- */
@media (max-width: 768px) {
    .banner {
        height: 300px;
    }
    .banner .banner-content {
        max-width: 95% !important;
        padding: 0 2% !important;
        width: 100% !important;
    }
    .banner .banner-title {
        font-size: 1.3rem !important;
        line-height: 1.3 !important;
        white-space: normal !important;
        word-break: break-all !important;
        margin-bottom: 0.5rem !important;
        letter-spacing: 0px !important;
    }
    .banner .banner-subtitle {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
        margin-bottom: 1rem !important;
    }
    .banner .banner-btn {
        font-size: 0.85rem !important;
    }
}