/* 滚动文章标题样式 */
.article-ticker {
    background-color: #2c3e50;
    padding: 15px 0;
    overflow: hidden;
    position: relative;
    border-bottom: 3px solid #3498db;
}

.article-ticker-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
}

.article-ticker-content {
    display: block;
    white-space: nowrap;
    animation: scroll-left 18s linear infinite;
    width: 100%;
}

.article-ticker-item {
    display: inline-block;
    margin-right: 50px;
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 8px 0;
}

.article-ticker-item:hover {
    color: #3498db;
    text-decoration: none;
}

.article-ticker-item:hover .article-date {
    color: #85c1e9;
}

.article-ticker-item::before {
    content: "•";
    color: #3498db;
    margin-right: 8px;
    font-weight: bold;
}

.article-title {
    display: inline;
    font-weight: 500;
}

.article-date {
    display: inline;
    font-size: 12px;
    font-weight: 300;
    color: #bdc3c7;
    margin-left: 8px;
    opacity: 0.9;
}

@keyframes scroll-left {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* PC端样式 (1200px以上) */
@media (min-width: 1200px) {
    .article-ticker {
        padding: 18px 0;
    }
    
    .article-ticker-item {
        font-size: 16px;
        margin-right: 60px;
    }
    
    .article-title {
        font-size: 16px;
    }
    
    .article-date {
        font-size: 13px;
        margin-left: 10px;
    }
    
    .article-ticker-content {
        animation-duration: 24s;
    }
}

/* 移动端样式 (1200px以下) */
@media (max-width: 1199px) {
    .article-ticker {
        padding: 12px 0;
    }
    
    .article-ticker-container {
        padding: 0 10px;
    }
    
    .article-ticker-item {
        font-size: 14px;
        margin-right: 40px;
    }
    
    .article-title {
        font-size: 14px;
    }
    
    .article-date {
        font-size: 11px;
        margin-left: 6px;
    }
    
    .article-ticker-content {
        animation-duration: 14s;
    }
}

@media (max-width: 768px) {
    .article-ticker-item {
        font-size: 13px;
        margin-right: 35px;
    }
    
    .article-title {
        font-size: 13px;
    }
    
    .article-date {
        font-size: 10px;
        margin-left: 5px;
    }
}

/* 暂停动画功能 */
.article-ticker:hover .article-ticker-content {
    animation-play-state: paused;
}

/* 当没有文章时的提示 */
.article-ticker-empty {
    color: #bdc3c7;
    font-style: italic;
}
