/* ========== 品牌合作伙伴展示样式 - 暗色沉浸式 ========== */
.brands-section {
    position: relative;
    overflow: hidden;
    margin-top: 0;
    margin-bottom: 0; /* 与页脚无缝衔接，消除灰色空隙 */
}

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

/* 标题由内联样式控制，此处仅保留类名兼容 */
.brands-title::after { display: none; }

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

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

/* 副标题由内联样式控制 */
/* 高亮色由内联样式控制 */

/* 品牌轮播 - 全宽容器（铺满整个视口宽度） */
.brands-carousel-fullwidth {
    position: relative;
    width: 100%;
    overflow: hidden;
    z-index: 1;
}

/* 品牌轮播容器 */
.brands-carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 36px;
    min-height: 300px;
}

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

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

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

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

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

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

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

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

.brand-item-link:focus {
    outline: none;
}

/* 品牌项 - 无边框、无外框，纯色块 */
.brand-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 72px;
    background: transparent;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: none;
    outline: none;
    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 8px 24px rgba(0, 0, 0, 0.1);
}

/* 品牌文字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: 12px;
    transition: all 0.3s ease;
    text-align: center;
    padding: 5px;
    box-sizing: border-box;
    border: none;
    outline: none;
}

.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-stats-container {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 36px;
    flex-wrap: wrap;
}

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

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

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

/* 响应式设计 */
@media (max-width: 768px) {
    .brands-section {
        padding: 2rem 1rem;
    }
    
    .brands-wrapper {
        padding: 20px;
    }
    
    .brands-title {
        font-size: 2rem;
    }
    
    .brand-item {
        width: 140px;
        height: 56px;
    }
    
    .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: 130px;
        height: 52px;
    }
    
    .brand-text-logo {
        font-size: 0.9rem;
    }
    
    .brands-stat-item {
        min-width: 120px;
    }
    
    .brands-stat-number {
        font-size: 1.8rem;
        min-width: 110px;
    }
}
