/* 主页合作客户区域样式 */
.clients-section {
    padding: 60px 0;
    background-color: transparent;
}

/* 标题样式 */
.section-title {
    text-align: center;
    font-size: 32px;
    color: #333;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

/* 滚动容器样式 */
.client-logos-container,
.clients-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.clients-slider {
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

/* 滚动轨道样式 */
.clients-track {
    display: flex;
    animation: scroll 30s linear infinite;
    width: max-content;
    gap: 40px;  /* 添加统一的间距 */
}

.clients-track:hover {
    animation-play-state: paused;
}

/* Logo卡片样式 */
.client-card {
    flex: 0 0 250px;
    height: 100px;
    padding: 15px;
    background: transparent;
    border: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Logo样式 */
.client-logo img {
    max-width: 180px;
    max-height: 70px;  /* 从80px降低到70px */
    object-fit: contain;
}

/* 查看更多按钮 */
.view-more-clients {
    text-align: center;
    margin-top: 40px;
}

.btn-more {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn-more:hover {
    background-color: var(--primary-color-dark);
}

/* 滚动动画 */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 20px));  /* 考虑间距的偏移 */
    }
}

/* 响应式调整 - 平板 */
@media (max-width: 992px) {
    .section-title {
        font-size: 28px;
    }

    .client-card {
        flex: 0 0 180px;
        height: 85px;  /* 从100px降低到85px */
        padding: 12px;  /* 从15px减小到12px */
    }
    
    .client-logo img {
        max-width: 140px;
        max-height: 55px;  /* 从60px降低到55px */
    }

    .clients-track {
        gap: 30px;
    }
}

/* 响应式调整 - 手机 */
@media (max-width: 768px) {
    .section-title {
        font-size: 24px;
    }

    .client-card {
        flex: 0 0 160px;
        height: 90px;
        padding: 12px;
        background: transparent;
        box-shadow: none;
        border: none;
    }
    
    .client-logo img {
        max-width: 120px;
        max-height: 50px;
    }

    .clients-track {
        gap: 20px;
    }

    .btn-more {
        padding: 10px 25px;
        font-size: 14px;
    }
}