/* ========== Swiper组件专用样式 ========== */

/* 全屏轮播图容器 - 位于页面顶部 */
.center-hero-section {
    position: relative;
    width: 100vw;
    height: 440px;
    overflow: hidden;
    margin-left: calc(50% - 50vw); /* 突破container限制，实现全屏 */
    z-index: 1; /* 确保在header之下 */
}

/* 轮播图容器 */
.center-swiper-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* 轮播图包装器 */
.center-swiper-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
}

/* 单个轮播图 */
.center-swiper-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
}

.center-swiper-slide.active {
    opacity: 1;
}

/* 轮播图背景 */
.center-slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.center-slide-background::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    z-index: 1;
}

/* 轮播图内容卡片 */
.center-slide-content {
    position: relative;
    z-index: 2;
    width: 800px;
    max-width: 90%;
    margin: 0 auto;
    text-align: center;
    color: white;
    padding: 40px;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* 轮播图标题样式 */
.center-slide-content h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.3;
}

/* 轮播图段落样式 */
.center-slide-content p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.center-slide-content p:last-of-type {
    margin-bottom: 0;
}

/* ========== 平板端优化 ========== */
@media (min-width: 769px) and (max-width: 1024px) {
    .center-hero-section {
        height: 380px;
    }
    
    .center-slide-content {
        width: 85%;
        padding: 35px 30px;
    }
    
    .center-slide-content h2 {
        font-size: 2.2rem;
        margin-bottom: 1.2rem;
    }
    
    .center-slide-content p {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
}

/* ========== 手机端优化 ========== */
@media (max-width: 768px) {
    .center-hero-section {
        height: 320px;
    }
    
    .center-slide-content {
        padding: 25px 20px;
        width: 90%;
        border-radius: 12px;
        background: rgba(0, 0, 0, 0.25);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
    }
    
    .center-slide-content h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
        line-height: 1.2;
    }
    
    .center-slide-content p {
        font-size: 1rem;
        margin-bottom: 0.8rem;
        line-height: 1.5;
    }
}

/* ========== 小屏幕手机优化 ========== */
@media (max-width: 480px) {
    .center-hero-section {
        height: 280px;
    }
    
    .center-slide-content {
        padding: 20px 15px;
        width: 95%;
        border-radius: 10px;
    }
    
    .center-slide-content h2 {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }
    
    .center-slide-content p {
        font-size: 0.9rem;
        margin-bottom: 0.6rem;
        line-height: 1.4;
    }
}

/* 箭头导航样式 */
.swiper-nav-arrows {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.swiper-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    outline: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #333;
    transition: all 0.3s ease;
    opacity: 0.7;
    pointer-events: auto;
    z-index: 11;
}

.swiper-arrow:hover {
    background-color: rgba(255, 255, 255, 0.8);
    opacity: 1;
}

.swiper-arrow-prev {
    left: 20px;
}

.swiper-arrow-next {
    right: 20px;
}

/* 指示点样式 */
.swiper-pagination {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
   
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background-color: #38a660;
    width: 15px;
    height: 10px;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .swiper-arrow {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .swiper-arrow-prev {
        left: 10px;
    }
    
    .swiper-arrow-next {
        right: 10px;
    }
    
    .swiper-pagination {
        bottom: 15px;
    }
    
    .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
        margin: 0 4px;
    }
    
    .swiper-pagination-bullet-active {
        width: 12px;
        height: 12px;
    }
}

/* 小屏幕移动端优化 */
@media (max-width: 480px) {
    .swiper-arrow {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .swiper-arrow-prev {
        left: 5px;
    }
    
    .swiper-arrow-next {
        right: 5px;
    }
    
    .swiper-pagination {
        bottom: 10px;
    }
    
    .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
        margin: 0 3px;
    }
    
    .swiper-pagination-bullet-active {
        width: 10px;
        height: 10px;
    }
}




