/* Swiper全局修复 - 解决占满屏幕的问题 */

/* 新闻资讯 swiper 修复 */
.news-swiper1 .swiper-slide {
    width: 33.333% !important;
    flex-shrink: 0 !important;
}

/* 合作伙伴 imgs-swiper 修复 */
.imgs-swiper1 .swiper-slide {
    width: auto !important;
    flex-shrink: 0 !important;
}

/* 重新设计的时间线导航样式 */
.timeline-nav {
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

.timeline-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    position: relative;
}

.timeline-item {
    position: relative;
    cursor: pointer;
    margin: 0 clamp(12px, 3vw, 30px);
    text-align: center;
    transition: all 0.3s ease;
    min-width: 80px;
}

.timeline-dot {
    width: 32px;
    height: 32px;
    position: relative;
    margin: 0 auto 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.timeline-dot .dot-inner {
    width: 12px;
    height: 12px;
    background-color: #c8c8c8;
    border-radius: 50%;
    transition: all 0.5s ease;
    position: relative;
}

.timeline-dot::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: rgba(21,44,133,0.3);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.5s ease;
}

.timeline-year {
    font-family: HarmonyOS_Sans_SC_Light;
    font-size: 16px;
    color: #1d1d1d;
    line-height: 1.5;
    text-align: center;
}

.timeline-line {
    position: absolute;
    top: 16px;
    left: 50%;
    width: 100%;
    height: 1px;
    background-color: #c8c8c8;
    transform: translateX(-50%);
}

.timeline-line::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 1px;
    background-color: #152c85;
    transition: width 0.5s ease;
}

.timeline-item:last-child .timeline-line {
    display: none;
}

/* 激活状态 */
.timeline-item.active .timeline-dot .dot-inner {
    background-color: #152c85;
}

.timeline-item.active .timeline-dot::after {
    width: 32px;
    height: 32px;
    opacity: 1;
}

.timeline-item.active .timeline-line::after {
    width: 100%;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .timeline-wrapper {
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0 20px;
        justify-content: flex-start;
    }
    
    .timeline-item {
        margin: 0 clamp(8px, 2.5vw, 20px);
        flex-shrink: 0;
        min-width: 60px;
    }
}

@media (max-width: 767px) {
    /* 移动端隐藏时间控件 */
    .timeline-nav {
        display: none !important;
    }
    
    .prog-swiper1 .swp-for .swiper-slide {
        width: 50% !important;
    }
    
    .news-swiper1 .swiper-slide,
    .pro-swiper1 .swiper-slide {
        width: 50% !important;
    }
}


/* 发展历程卡片swiper修复 */
.prog-swiper1 .swp-for .swiper-slide {
    width: 25% !important;
    flex-shrink: 0 !important;
}


/* 响应式修复 */
@media (max-width: 1024px) {
    .news-swiper1 .swiper-slide {
        width: 50% !important;
    }
    
    .prog-swiper1 .swp-for .swiper-slide {
        width: 33.333% !important;
    }
}

/* 479px以下超小屏幕 - 显示1.5个卡片引导滑动 */
@media (max-width: 479px) {
    .prog-swiper1 .swp-for .swiper-slide,
    .news-swiper1 .swiper-slide,
    .pro-swiper1 .swiper-slide {
        width: 66.67% !important; /* 1.5个卡片的宽度 */
    }
}

/* 确保swiper容器正确显示 - 针对所有swiper组件 */
.banner .swiper-wrapper,
.news-swiper1 .swiper-wrapper,
.imgs-swiper1 .swiper-wrapper,
.pro-swiper1 .swiper-wrapper,
.prog-swiper1 .swp-for .swiper-wrapper {
    display: flex !important;
    transition-property: transform !important;
}

.banner,
.news-swiper1,
.imgs-swiper1,
.pro-swiper1,
.prog-swiper1 .swp-for {
    overflow: hidden !important;
}

/* 发展历程swiper特定优化 */
.prog-swiper1 .swp-for {
    touch-action: pan-y pinch-zoom; /* 改善移动端触摸体验 */
}

/* 移动端swiper容器优化 */
@media (max-width: 479px) {
    .news-swiper1,
    .pro-swiper1,
    .prog-swiper1 .swp-for {
        padding-right: 20px; /* 为半个卡片留出视觉空间 */
    }
    
    /* 移动端swiper滑块优化 */
    .news-swiper1 .swiper-slide,
    .pro-swiper1 .swiper-slide,
    .prog-swiper1 .swp-for .swiper-slide {
        border-radius: 8px;
        transition: transform 0.2s ease;
    }
    
    /* 改善半个卡片的视觉效果 */
    .news-swiper1 .swiper-slide:not(.swiper-slide-active),
    .pro-swiper1 .swiper-slide:not(.swiper-slide-active),
    .prog-swiper1 .swp-for .swiper-slide:not(.swiper-slide-active) {
        opacity: 0.7;
        transform: scale(0.95);
    }
}

/* Banner特定修复 - 确保图片正确显示 */
.banner .swiper-slide {
    width: 100% !important;
    flex-shrink: 0 !important;
}

.banner .swiper-slide .bg img,
.banner .swiper-slide .pic img {
    width: 100%;
    height: auto;
    object-fit: cover;
}