/* 滚动新闻条样式 */
.news-ticker-section {
    background-color: #121826;
    border: 1px solid #2a2f3d;
    border-radius: 8px;
    padding: 15px 20px;
    margin: 30px 0;
    overflow: hidden;
    position: relative;
}

.news-ticker {
    display: flex;
    align-items: center;
    width: 100%;
}

.ticker-title {
    font-weight: bold;
    color: #ffffff;
    font-size: 1.1rem;
    white-space: nowrap;
    margin-right: 25px;
    padding-right: 25px;
    border-right: 1px solid #2a2f3d;
    flex-shrink: 0;
}

.ticker-content {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    height: 24px;
}

.ticker-items {
    display: flex;
    position: absolute;
    white-space: nowrap;
    animation: ticker-scroll 60s linear infinite;
}

.ticker-item {
    margin-right: 40px;
    color: #b0b7c3;
    cursor: pointer;
    transition: color 0.3s;
    padding: 2px 0;
    display: flex;
    align-items: center;
}

.ticker-item:hover {
    color: #4dabf7;
}

.ticker-item i {
    margin-right: 8px;
    font-size: 0.9rem;
    color: #4dabf7;
}

.ticker-item.pinned {
    color: #ffd43b;
}

.ticker-item.pinned i {
    color: #ffd43b;
}

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

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

/* 新闻列表区样式 */
.news-list-section {
    margin: 40px 0;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.news-title {
    font-size: 2.2rem;
    color: #ffffff;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.news-title i {
    margin-right: 15px;
    color: #4dabf7;
    font-size: 2rem;
}

.news-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.category-btn {
    background-color: #1a1f2e;
    color: #b0b7c3;
    border: 1px solid #2a2f3d;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.category-btn:hover {
    background-color: #2a2f3d;
    color: #ffffff;
}

.category-btn.active {
    background-color: #4dabf7;
    color: #ffffff;
    border-color: #4dabf7;
}

/* 新闻列表样式 */
.news-list {
    background-color: #1a1f2e;
    border-radius: 12px;
    border: 1px solid #2a2f3d;
    overflow: hidden;
}

.news-item {
    display: grid;
    grid-template-columns: 120px 1fr 150px;
    padding: 20px 25px;
    border-bottom: 1px solid #2a2f3d;
    transition: background-color 0.3s;
    align-items: center;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item:hover {
    background-color: #212637;
}

.news-date {
    color: #8a94a6;
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
}

.news-date .day {
    font-size: 1.5rem;
    font-weight: bold;
    color: #b0b7c3;
}

.news-date .month-year {
    font-size: 0.9rem;
    color: #8a94a6;
}

.news-title-link {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-title-link:hover {
    color: #4dabf7;
}

.news-source {
    color: #8a94a6;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.news-source i {
    margin-right: 8px;
    color: #4dabf7;
}

.news-tags {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.news-tag {
    background-color: #2a2f3d;
    color: #b0b7c3;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.news-tag.moon {
    background-color: rgba(77, 171, 247, 0.2);
    color: #4dabf7;
}

.news-tag.spacex {
    background-color: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
}

.news-tag.iss {
    background-color: rgba(51, 187, 102, 0.2);
    color: #33bb66;
}

.news-tag.general {
    background-color: rgba(255, 212, 59, 0.2);
    color: #ffd43b;
}

/* 加载更多按钮 */
.load-more-container {
    text-align: center;
    margin-top: 30px;
}

.load-more-btn {
    background-color: #2a2f3d;
    color: #b0b7c3;
    border: 1px solid #3a3f4d;
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
}

.load-more-btn:hover {
    background-color: #3a3f4d;
    color: #ffffff;
}

.load-more-btn i {
    margin-left: 10px;
}

.loading-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid #2a2f3d;
    border-top: 3px solid #4dabf7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #8a94a6;
}

.empty-state i {
    font-size: 3rem;
    color: #2a2f3d;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: #b0b7c3;
    margin-bottom: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .news-ticker {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .ticker-title {
        border-right: none;
        border-bottom: 1px solid #2a2f3d;
        padding-right: 0;
        padding-bottom: 10px;
        margin-right: 0;
        margin-bottom: 15px;
        width: 100%;
    }
    
    .ticker-content {
        width: 100%;
    }
    
    .news-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .news-title {
        margin-bottom: 20px;
    }
    
    .news-item {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .news-date {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }
    
    .news-date .day {
        font-size: 1.2rem;
    }
    
    .news-source {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .news-ticker-section {
        padding: 12px 15px;
    }
    
    .news-title {
        font-size: 1.8rem;
    }
    
    .news-categories {
        justify-content: center;
    }
    
    .category-btn {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .news-item {
        padding: 15px;
    }
}