/* 客户 Logo 跑马灯 */
.customer-logos-section {
    background: var(--surface-page);
    padding-bottom: calc(var(--spacing-xl) + 16px);
    overflow: hidden;
}

.customer-logos-marquee {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

.customer-logos-row {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(
        90deg,
        transparent 0%,
        #000 10%,
        #000 90%,
        transparent 100%
    );
    mask-image: linear-gradient(
        90deg,
        transparent 0%,
        #000 10%,
        #000 90%,
        transparent 100%
    );
}

.customer-logos-track {
    display: flex;
    align-items: center;
    gap: 56px;
    width: max-content;
    will-change: transform;
}

.customer-logos-track--ltr {
    animation: customer-logos-marquee-ltr 50s linear infinite;
}

.customer-logos-track--rtl {
    animation: customer-logos-marquee-rtl 55s linear infinite;
}

.customer-logos-row:hover .customer-logos-track {
    animation-play-state: paused;
}

.customer-logo-item {
    flex-shrink: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 220px;
    height: 100px;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--color-white);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease, background 0.25s ease;
    cursor: default;
    overflow: hidden;
}

.customer-logo-item__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    transition: flex 0.25s ease, width 0.25s ease;
}

.customer-logo-item__logo img {
    display: block;
    max-width: 100%;
    max-height: 72px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: max-height 0.25s ease, max-width 0.25s ease;
}

.customer-logo-item__meta {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 5px;
    text-align: left;
}

.customer-logo-item__industry {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: var(--font-size-2xs);
    font-weight: 500;
    line-height: 1.4;
    color: var(--color-industrial-blue);
    background: rgba(16, 176, 252, 0.1);
    border: 1px solid rgba(16, 176, 252, 0.18);
    white-space: nowrap;
}

.customer-logo-item__system {
    font-size: var(--font-size-sm);
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-text-heading);
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.customer-logo-item__launch {
    font-size: var(--font-size-2xs);
    font-weight: 500;
    line-height: 1.3;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.customer-logo-item:hover {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 10px 14px;
    background: linear-gradient(160deg, #ffffff 0%, #f0f7ff 100%);
    border-color: rgba(16, 176, 252, 0.25);
    box-shadow: 0 8px 28px rgba(16, 176, 252, 0.12);
    transform: translateY(-2px);
}

.customer-logo-item:hover .customer-logo-item__logo {
    flex: 0 0 68px;
    width: 68px;
}

.customer-logo-item:hover .customer-logo-item__logo img {
    max-width: 68px;
    max-height: 52px;
}

.customer-logo-item:hover .customer-logo-item__meta {
    display: flex;
    flex: 1;
    min-width: 0;
    max-width: 132px;
}

@keyframes customer-logos-marquee-ltr {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@keyframes customer-logos-marquee-rtl {
    from {
        transform: translateX(-50%);
    }
    to {
        transform: translateX(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .customer-logos-track--ltr,
    .customer-logos-track--rtl {
        animation: none;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 24px;
        gap: 16px;
    }

    .customer-logos-row {
        -webkit-mask-image: none;
        mask-image: none;
        overflow: visible;
    }

    .customer-logos-marquee {
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .customer-logos-marquee {
        margin-top: 28px;
        gap: 14px;
    }

    .customer-logos-track {
        gap: 24px;
    }

    .customer-logo-item {
        width: 168px;
        height: 80px;
        padding: 10px 12px;
    }

    .customer-logo-item:hover {
        gap: 8px;
        padding: 8px 10px;
    }

    .customer-logo-item__logo img {
        max-height: 56px;
    }

    .customer-logo-item:hover .customer-logo-item__logo {
        flex: 0 0 52px;
        width: 52px;
    }

    .customer-logo-item:hover .customer-logo-item__logo img {
        max-width: 52px;
        max-height: 40px;
    }

    .customer-logo-item:hover .customer-logo-item__meta {
        max-width: 108px;
    }

    .customer-logo-item__launch {
        font-size: var(--font-size-3xs);
    }

    .customer-logo-item__system {
        font-size: var(--font-size-xs);
    }

    .customer-logo-item__industry {
        font-size: var(--font-size-3xs);
        padding: 2px 6px;
    }
}
