.qlx-section {
    padding: 36px 0;
    background: #f8fafc;
    border-top: 1px solid rgba(0,0,0,.05);
    border-bottom: 1px solid rgba(0,0,0,.05);
}

.qlx-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.qlx-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #b11c1c;
    box-shadow: 0 0 0 4px rgba(177,28,28,.14);
}

.qlx-sub {
    font-size: 12px;
    color: #6b7280;
    margin-left: 6px;
}

.qlx-all {
    font-size: 14px;
    text-decoration: none;
    color: #111827;
    opacity: .85;
}

    .qlx-all:hover {
        opacity: 1;
        text-decoration: underline;
    }

.qlx-shell {
    position: relative;
    display: flex;
    align-items: center;
}

/* viewport with subtle fade edges */
.qlx-viewport {
    position: relative;
    overflow: hidden;
    width: 100%;
    border-radius: 16px;
}

    .qlx-viewport::before,
    .qlx-viewport::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        width: 40px;
        z-index: 4;
        pointer-events: none;
    }

    .qlx-viewport::before {
        left: 0;
        background: linear-gradient(90deg, #f8fafc 0%, rgba(248,250,252,0) 100%);
    }

    .qlx-viewport::after {
        right: 0;
        background: linear-gradient(270deg, #f8fafc 0%, rgba(248,250,252,0) 100%);
    }

.qlx-track {
    display: flex;
    gap: 14px;
    padding: 10px 46px; /* space for fades */
    will-change: transform;
    user-select: none;
    cursor: grab;
}

    .qlx-track:active {
        cursor: grabbing;
    }

.qlx-item {
    flex: 0 0 auto;
    width: 190px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 16px;
    padding: 16px 14px;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(16,24,40,.06);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

    .qlx-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 16px 34px rgba(16,24,40,.12);
        border-color: rgba(29,78,216,.18);
    }

.qlx-logo {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #f3f4f6;
    margin-bottom: 10px;
}

    .qlx-logo img {
        width: 48px;
        height: 48px;
        object-fit: contain;
        filter: grayscale(1);
        opacity: .86;
        transition: filter .2s ease, opacity .2s ease, transform .2s ease;
    }

.qlx-item:hover .qlx-logo img {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.03);
}

.qlx-title {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    text-align: center;
    line-height: 1.2;
}

/* arrows */
.qlx-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,.12);
    background: #fff;
    box-shadow: 0 10px 20px rgba(16,24,40,.10);
    z-index: 5;
    cursor: pointer;
}

    .qlx-arrow.left {
        left: 6px;
    }

    .qlx-arrow.right {
        right: 6px;
    }

    .qlx-arrow:hover {
        background: #f1f5f9;
    }

/* Responsive */
@media (max-width: 768px) {
    .qlx-item {
        width: 160px;
        min-height: 112px;
    }

    .qlx-track {
        padding: 10px 18px;
    }

    .qlx-viewport::before, .qlx-viewport::after {
        width: 18px;
    }
}
