/* 首页Banner轮播样式 */
.banner-container {
    position: relative;
    width: 100%;
    height: 100vh; /* 整屏高度 */
    min-height: 100vh; /* 确保最小高度为整屏 */
    overflow: hidden;
    margin-bottom: 0; /* 移除底部间距 */
}

.banner-swiper {
    width: 100%;
    height: 100%;
}

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

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

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



.banner-text {
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
}

.banner-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out;
}

.banner-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out 0.3s both;
}

.banner-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.banner-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
    color: white;
    text-decoration: none;
}

.banner-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* 分页器样式 */
.banner-pagination {
    bottom: 20px !important;
    text-align: center;
}

.banner-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.banner-pagination .swiper-pagination-bullet-active {
    background: #007bff;
    transform: scale(1.2);
}

/* 导航按钮样式 */
.banner-next,
.banner-prev {
    width: 50px;
    height: 50px;
    margin-top: -25px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.banner-next:hover,
.banner-prev:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.banner-next::after,
.banner-prev::after {
    font-size: 18px;
    font-weight: bold;
    color: white;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .banner-container {
        height: 100vh; /* 平板也保持整屏 */
    }

    .banner-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .banner-subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .banner-btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }

    .banner-next,
    .banner-prev {
        width: 40px;
        height: 40px;
        margin-top: -20px;
    }

    .banner-next::after,
    .banner-prev::after {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .banner-container {
        height: 100vh; /* 手机也保持整屏 */
    }

    .banner-title {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .banner-subtitle {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .banner-btn {
        padding: 8px 20px;
        font-size: 0.8rem;
    }

    .banner-text {
        padding: 0 15px;
    }
}

/* 加载动画 */
.banner-slide.swiper-slide-active .banner-title {
    animation: fadeInUp 1s ease-out;
}

.banner-slide.swiper-slide-active .banner-subtitle {
    animation: fadeInUp 1s ease-out 0.3s both;
}

.banner-slide.swiper-slide-active .banner-btn {
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* 整屏优化样式 */
/* 确保在iOS Safari中正确显示 */
@supports (-webkit-appearance: none) {
    .banner-container {
        height: 100vh;
        height: -webkit-fill-available;
    }
}

/* 处理移动端地址栏的影响 */
@media screen and (max-width: 768px) {
    .banner-container {
        height: 100vh;
        height: calc(var(--vh, 1vh) * 100);
    }
}

/* 确保图片在整屏模式下正确显示 */
.banner-image img {
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    object-fit: cover;
    object-position: center;
}

/* 防止内容溢出 */
.banner-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}
