/* 新闻滚动区样式 */

.news-ticker {
    background-color: #e6f2ff;
    padding: 10px 0;
    border-bottom: 1px solid #ccc;
    overflow: hidden;
}

.news-ticker-container {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.news-ticker-title {
    background-color: #003366;
    color: white;
    padding: 5px 10px;
    font-weight: bold;
    margin-right: 15px;
    white-space: nowrap;
}

.news-ticker-content {
    display: flex;
    animation: scroll-left 30s linear infinite;
}

.news-ticker-content:hover {
    animation-play-state: paused;
}

.news-item {
    padding: 0 15px;
    border-right: 1px solid #ccc;
    white-space: nowrap;
}

.news-item:last-child {
    border-right: none;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .news-ticker-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .news-ticker-title {
        margin-bottom: 5px;
    }
    
    .news-ticker-content {
        animation: scroll-up 20s linear infinite;
    }
    
    @keyframes scroll-up {
        0% {
            transform: translateY(0);
        }
        100% {
            transform: translateY(-100%);
        }
    }
}