/* Logo墙滑动效果样式 */

/* Logo墙容器 */
.logo-wall {
    display: flex;
    flex-direction: column;
    gap: 35px; /* 从50px减少到35px，缩小行间距 */
    margin-top: 45px; /* 从60px减少到45px，缩小顶部间距 */
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    overflow: visible;
}

/* Logo行容器 */
.logo-row {
    position: relative;
    height: 150px;
    overflow: hidden;
    display: flex;
    align-items: center;
    margin-bottom: 18px; /* 从25px减少到18px，缩小行内间距 */
}

/* Logo行轨道 */
.logo-row-track {
    display: flex;
    gap: 0;
    align-items: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    min-width: max-content;
}

/* 第一行：左向右滑动 */
.logo-row:nth-child(1) .logo-row-track {
    animation: slideLeftToRight 40s linear infinite;
}

/* 第二行：右向左滑动 */
.logo-row:nth-child(2) .logo-row-track {
    animation: slideRightToLeft 35s linear infinite;
}

/* 第三行：左向右滑动 */
.logo-row:nth-child(3) .logo-row-track {
    animation: slideLeftToRight 45s linear infinite;
}

/* 左向右滑动动画 - 真正的无缝循环 */
@keyframes slideLeftToRight {
    0% {
        transform: translateY(-50%) translateX(0);
    }
    100% {
        transform: translateY(-50%) translateX(-33.33%);
    }
}

/* 右向左滑动动画 - 真正的无缝循环 */
@keyframes slideRightToLeft {
    0% {
        transform: translateY(-50%) translateX(-33.33%);
    }
    100% {
        transform: translateY(-50%) translateX(0);
    }
}

/* Logo项目 - 大幅增加尺寸 */
.logo-item {
    width: 200px;
    height: 130px;
    background: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #e8eaed;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    margin-right: 25px;
}

/* Logo图片 - 大幅增加尺寸 */
.client-logo {
    max-width: 140px;
    max-height: 90px;
    object-fit: contain;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    width: auto;
    height: auto;
}

/* 中间位置放大效果 */
.logo-item.center {
    transform: scale(1.2);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.18);
    border-color: #667eea;
    border-width: 3px;
}

.logo-item.center .client-logo {
    transform: scale(1.15);
}

/* 悬停效果 */
.logo-item:hover {
    transform: scale(1.15);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
    border-color: #667eea;
    border-width: 3px;
}

.logo-item:hover .client-logo {
    transform: scale(1.1);
}

/* 悬停时暂停动画 */
.logo-row:hover .logo-row-track {
    animation-play-state: paused;
}

/* 响应式设计 */
@media (max-width: 1400px) {
    .logo-wall {
        max-width: 1200px;
        padding: 0 30px;
        gap: 32px; /* 缩小行间距 */
    }
    
    .logo-row {
        height: 140px;
        margin-bottom: 16px; /* 缩小行内间距 */
    }
    
    .logo-item {
        width: 180px;
        height: 120px;
        margin-right: 22px;
    }
    
    .client-logo {
        max-width: 125px;
        max-height: 80px;
    }
}

@media (max-width: 1200px) {
    .logo-wall {
        max-width: 100%;
        padding: 0 25px;
        gap: 30px; /* 缩小行间距 */
    }
    
    .logo-row {
        height: 130px;
        margin-bottom: 15px; /* 缩小行内间距 */
    }
    
    .logo-item {
        width: 160px;
        height: 110px;
        margin-right: 20px;
    }
    
    .client-logo {
        max-width: 110px;
        max-height: 75px;
    }
}

@media (max-width: 768px) {
    .logo-wall {
        gap: 28px; /* 缩小行间距 */
        padding: 0 20px;
    }
    
    .logo-row {
        height: 120px;
        margin-bottom: 14px; /* 缩小行内间距 */
    }
    
    .logo-item {
        width: 140px;
        height: 95px;
        margin-right: 18px;
    }
    
    .client-logo {
        max-width: 95px;
        max-height: 65px;
    }
    
    /* 移动端简化放大效果 */
    .logo-item.center {
        transform: scale(1.15);
    }
    
    .logo-item:hover {
        transform: scale(1.12);
    }
}

@media (max-width: 480px) {
    .logo-wall {
        gap: 25px; /* 缩小行间距 */
        padding: 0 15px;
    }
    
    .logo-row {
        height: 110px;
        margin-bottom: 12px; /* 缩小行内间距 */
    }
    
    .logo-item {
        width: 120px;
        height: 85px;
        margin-right: 15px;
    }
    
    .client-logo {
        max-width: 85px;
        max-height: 60px;
    }
    
    /* 移动端进一步简化 */
    .logo-item.center {
        transform: scale(1.1);
    }
    
    .logo-item:hover {
        transform: scale(1.08);
    }
}
