/* ==================================================================
   文章跑马灯组件样式 - 通用组件
   ================================================================== */

/* 直接复制首页的.hero-notice样式 */
.hero-notice {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    margin-top: var(--spacing-lg);
    max-width: 600px;
    min-width: 300px;
}

.hero-notice:hover {
    color: var(--text-primary);
}

.hero-notice svg:first-child {
    color: var(--warning-color);
}

.hero-notice svg:last-child {
    color: var(--text-tertiary);
}

/* 跑马灯样式 */
.marquee-wrapper {
    flex: 1;
    overflow: hidden;
    height: 20px;
    position: relative;
    min-width: 200px;
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    animation: marqueeScroll 20s linear infinite;
}

.marquee-content:hover {
    animation-play-state: paused;
}

.marquee-item {
    display: inline-block;
    color: var(--text-secondary);
    text-decoration: none;
    white-space: nowrap;
    margin-right: 50px; /* 文章间距 */
    transition: color 0.3s ease;
}

.marquee-item:hover {
    color: var(--text-primary);
}

/* 跑马灯动画 - 循环滚动 */
@keyframes marqueeScroll {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* 响应式 */
@media (max-width: 768px) {
    .hero-notice {
        width: 95%;
        margin-top: var(--spacing-md);
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .marquee-item {
        margin-right: 40px;
    }
}
