#outer-container {
    width: 100%;
    /* 设置外部容器宽度 */
    overflow: hidden;
    /* 隐藏溢出部分 */
}

#inner-container {
    white-space: nowrap;
    /* 防止文字换行 */
    /* 使用动画让整个容器向左滚动 */
    animation: scrollLeft 30s linear infinite;
}

/* 添加暂停状态 */
#outer-container:hover #inner-container {
    animation-play-state: paused;
}

.item {
    display: inline-block;
    width: 1890px;
    min-height: 100px;
    margin: 5px 0;
    div{
        img{
            width: 600px;
            height: auto;
            flex-shrink: 0;
            margin-right: 30px;
        }
    }
}

/* 定义动画 */
@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-100% + 18px));
        /* 加上一些额外的空白，以便滚动到最后一个元素时不会立即切换 */
    }
}