/* styles.css */
.scroller-container{
    width: 100%;
    height: 65px;
    overflow: hidden;
    position: relative;
    /* background-color: #f4f4f4; */
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-top: 10px;
    margin-bottom: -10px;
}


.news-scroller {
    width: calc(100% - 125px); /* 减去遮盖块的宽度 */
    height: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: absolute;
    top: 0;
    right: 0;
}

.news-list {
    display: flex;
    list-style: none;
    padding: 11px;
    margin: 0;
    white-space: nowrap;
    position: absolute;
    top: 0;
    right: 0;
    animation: scroll-left 50s linear infinite;
}

.news-list li {
    padding: 10px ;
    /* margin-right: 10px; */
    /* border-right: 1px solid #eee; */
    /* background-color: aqua; */
}

.news-list li a {
    text-decoration: none;
    color: #776a6a;
    display: block;
    transition: background-color 0.3s ease;
    /* background-color: aqua; */
}

.news-list li a:hover {
    text-decoration: underline;
}

/* 自定义滚动动画 */
@keyframes scroll-left {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-85%); }
}


/* 鼠标悬停时停止滚动 */
.news-scroller:hover .news-list {
    animation-play-state: paused;
}