/* ========== 品牌合作伙伴展示样式 ========== */
.brands-section {
    position: relative;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8f4f8 50%, #ddeef5 100%);
    overflow: hidden;
    margin-top: 4rem;
    margin-bottom: 6rem; /* 增加与页脚的间距 */
}

.brands-particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.brands-wrapper {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(30, 111, 168, 0.1);
}

.brands-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #333; /* 黑色 */
    margin-bottom: 1rem;
    position: relative;
}

.brands-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 25%;
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #1976D2, #64B5F6, transparent);
    border-radius: 3px;
}

/* 标题中的名字高亮 - 蓝色 */
.brands-name-highlight {
    color: #2196F3;
}

/* 标题中的Ai高亮 - 红色 */
.brands-ai-highlight {
    color: #F44336;
}

/* 副标题样式 - 更大更粗 */
.brands-subtitle {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-top: 1.5rem;
    margin-bottom: 3rem;
}

/* 副标题中的中国高亮 - 红色 */
.brands-china-highlight {
    color: #F44336;
}

/* 副标题中的AI高亮 - 黄色 */
.brands-ai-yellow-highlight {
    color: #FFC107;
}

/* 品牌轮播容器 */
.brands-carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 50px;
    min-height: 400px; /* 确保有足够高度显示所有行（3行 × 每行约120px） */
}

/* 品牌轮播轨道 */
.brands-carousel-track {
    display: flex;
    width: max-content;
    animation: brands-scroll 40s linear infinite;
    padding: 20px 0;
    gap: 20px;
}

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

/* 第一行 */
.brands-row-1 {
    margin-bottom: 30px;
}

/* 第二行 - 反向滚动 */
.brands-row-2 {
    margin-bottom: 30px;
    animation-direction: reverse;
}

/* 第三行 */
.brands-row-3 {
    animation: brands-scroll 35s linear infinite;
}

@keyframes brands-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 10px));
    }
}

/* 品牌项链接 */
.brand-item-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
    flex-shrink: 0;
}

.brand-item-link:hover {
    text-decoration: none;
}

/* 品牌项 */
.brand-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 80px;
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    cursor: pointer;
}

.brand-item:hover,
.brand-item-link:hover .brand-item {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: rgba(25, 118, 210, 0.3);
}

/* 品牌文字logo - 占满整个品牌项，显示完整名字 */
.brand-text-logo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
    padding: 5px;
    box-sizing: border-box;
}

.brand-item:hover .brand-text-logo {
    transform: scale(1.05);
}

/* 品牌类别颜色 */
.bank { background: linear-gradient(135deg, #4CAF50, #2E7D32); }
.post { background: linear-gradient(135deg, #D32F2F, #B71C1C); }
.food { background: linear-gradient(135deg, #FF9800, #E65100); }
.airline { background: linear-gradient(135deg, #2196F3, #0D47A1); }
.tech { background: linear-gradient(135deg, #9C27B0, #6A1B9A); }
.auto { background: linear-gradient(135deg, #607D8B, #37474F); }
.insurance { background: linear-gradient(135deg, #00BCD4, #006064); }
.cosmetics { background: linear-gradient(135deg, #E91E63, #880E4F); }
.retail { background: linear-gradient(135deg, #FF5722, #BF360C); }
.logistics { background: linear-gradient(135deg, #795548, #3E2723); }
.finance { background: linear-gradient(135deg, #FFC107, #FF6F00); }
.health { background: linear-gradient(135deg, #8BC34A, #33691E); }


/* 品牌控制按钮 */
.brands-carousel-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.brands-control-btn {
    background: white;
    border: 2px solid rgba(25, 118, 210, 0.3);
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 0.9rem;
    color: #1976D2;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.brands-control-btn:hover {
    background: #1976D2;
    color: white;
    border-color: #1976D2;
    transform: scale(1.05);
}

/* 统计信息 */
.brands-stats-container {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.brands-stat-item {
    text-align: center;
    min-width: 200px;
}

.brands-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1976D2;
    margin-bottom: 5px;
    line-height: 1;
    display: inline-block;
    min-width: 180px;
}

.brands-stat-label {
    font-size: 1rem;
    color: #666;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .brands-section {
        padding: 2rem 1rem;
    }
    
    .brands-wrapper {
        padding: 20px;
    }
    
    .brands-title {
        font-size: 2rem;
    }
    
    .brand-item {
        width: 180px;
        height: 70px;
    }
    
    .brand-text-logo {
        font-size: 1rem;
    }
    
    .brands-carousel-track {
        animation: brands-scroll 20s linear infinite;
    }
    
    .brands-stats-container {
        gap: 30px;
    }
    
    .brands-stat-item {
        min-width: 150px;
    }
    
    .brands-stat-number {
        font-size: 2rem;
        min-width: 140px;
    }
}

@media (max-width: 480px) {
    .brands-title {
        font-size: 1.6rem;
    }
    
    .brand-item {
        width: 160px;
        height: 65px;
    }
    
    .brand-text-logo {
        font-size: 0.9rem;
    }
    
    .brands-stat-item {
        min-width: 120px;
    }
    
    .brands-stat-number {
        font-size: 1.8rem;
        min-width: 110px;
    }
}
