/* css/partners.css */
.partners {
    padding: 40px 0;
    background: #fff;
    overflow: hidden;
}

.partners-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

/* 标题样式 */
.section-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.section-title {
    font-size: 28px;
    color: #333;
}

.section-title .highlight {
    color: #1890ff;
}

/* 行容器 - 减小间距 */
.partners-rows {
    display: flex;
    flex-direction: column;
    gap: 15px; /* 减小行间距 */
}

/* 每行跑马灯容器 - 恢复原始高度比例 */
.partners-marquee {
    position: relative;
    width: 100%;
    height: 80px; /* 调整为原始比例 */
    overflow: hidden;
}

/* 跑马灯内容 */
.marquee-content {
    display: flex;
    position: absolute;
    gap: 40px; /* 减小logo间距 */
    animation: marquee 40s linear infinite;
    white-space: nowrap;
}

/* 反向滚动 */
.partners-marquee.reverse .marquee-content {
    animation-direction: reverse;
}

/* Logo 项样式 - 调整高度 */
.marquee-item {
    flex: 0 0 auto;
    height: 80px; /* 与容器高度一致 */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.marquee-item:hover {
    /* 只保留放大效果 */
    transform: scale(1.05);
}

.marquee-item img {
    height: 100%;
    width: auto;
    object-fit: contain;
    max-width: none;
}

/* 跑马灯动画 */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* 响应式调整 */
@media screen and (max-width: 1200px) {
    .partners-marquee {
        height: 70px;
    }
    
    .marquee-item {
        height: 70px;
    }
}

@media screen and (max-width: 768px) {
    .partners-marquee {
        height: 60px;
    }
    
    .marquee-item {
        height: 60px;
    }
    
    .marquee-content {
        gap: 30px;
    }
}

/* 添加悬停提示 */
.logo-item {
    position: relative;
}

.logo-item::after {
    content: attr(data-name);
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.logo-item:hover::after {
    opacity: 1;
    visibility: visible;
}