/* === 合作伙伴模块容器 === */
.partners-section {
    padding: 180px 0 60px 0;  /* 底部改为 60px，与行间距一致 */
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
    position: relative;
}

.partners-container {
    width: 90%;
    margin: 0 auto;
    position: relative;
    display: flex;          /* 新增 */
    flex-direction: column; /* 新增 */
    gap: 60px;              /* 新增：统一控制所有间距（行间距 + 底部间距） */
}

/* === 新增主标题样式 === */
.main-title {
    position: absolute;
    top: -107px;
    left: 0;
    right: 0;
    text-align: center;
}

/* === 原有子标题样式 === */
.partners-title {
    font-size: 2.2rem;
    color: #ffcc70;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* === 轮播行基础样式 === */
.partners-row {
    display: flex;
    flex-direction: column;
    height: 160px;
    position: relative;        /* 删除 margin-bottom，由 gap 统一控制 */
    overflow: hidden;
}

/* === 轮播内容容器 === */
.partners-track {
    display: flex;
    gap: 50px;
    position: absolute;
    left: 0;
    animation: scrollLeft 30s linear infinite;
}

/* 反向轮播 */
.partners-row.reverse .partners-track {
    animation: scrollRight 30s linear infinite;
}

/* === 单个合作伙伴卡片 === */
.partner-card {
    width: 251px;
    height: 150px;
    background: white;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
    transition: all 0.3s ease;
}
.partner-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}
.partner-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* === 轮播动画定义 === */
@keyframes scrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-200px - 50px)); }
}
@keyframes scrollRight {
    0% { transform: translateX(calc(-200px - 50px)); }
    100% { transform: translateX(0); }
}

/* === 响应式调整 === */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.2rem;
    }
    
    .partners-title {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }
    
    .partner-card {
        width: 140px;
        height: 80px;
    }
    
    .partners-track {
        gap: 30px;
    }
    
    @keyframes scrollLeft {
        100% { transform: translateX(calc(-140px - 30px)); }
    }
    @keyframes scrollRight {
        0% { transform: translateX(calc(-140px - 30px)); }
    }
    
    .partners-row {
        height: 88px;
    }
    
    .partners-container {
        gap: 50px;  /* 响应式间距也统一 */
    }
    
    .partners-section {
        padding: 134px 0 50px 0;  /* 响应式底部间距 */
    }
}
