/* 新闻页面特有样式 */
body {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 25%, #e3f2fd 50%, #f8f9fa 75%, #ffffff 100%);
    min-height: 100vh;
}
/* 主要内容区域 */
.main-content {
    margin-top: 80px;
    padding: 2rem 0;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}
/* 页面标题 */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}
.page-title {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(45deg, #1e3a8a, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}
.page-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}
.typewriter-text {
    position: relative;
    display: inline-block;
}
.typewriter-text.typing::after {
    content: '|';
    display: inline-block;
    margin-left: 2px;
    animation: blink 1s step-end infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
/* 新闻筛选 */
.news-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}
.filter-btn:hover,
.filter-btn.active {
    border-color: #3b82f6;
    background: #3b82f6;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}
/* 新闻容器 */
.news-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}
/* 新闻列表 */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.news-item {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}
.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}
.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.news-category {
    background: linear-gradient(45deg, #3b82f6, #1e40af);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}
.news-date {
    color: #64748b;
    font-size: 0.9rem;
}
.news-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}
.news-excerpt {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1rem;
}
.news-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.news-tag {
    background: #f1f5f9;
    color: #475569;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-size: 0.8rem;
}
.news-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}
.news-link:hover {
    color: #1e40af;
}
/* 侧边栏 */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.sidebar-section {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}
.sidebar-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}
.hot-news-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}
.hot-news-item:last-child {
    border-bottom: none;
}
.hot-news-number {
    background: linear-gradient(45deg, #3b82f6, #1e40af);
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    flex-shrink: 0;
}
.hot-news-content h4 {
    font-size: 0.9rem;
    color: #1e293b;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}
.hot-news-content p {
    font-size: 0.8rem;
    color: #64748b;
}
.category-stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.category-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}
.category-name {
    color: #475569;
    font-weight: 500;
}
.category-count {
    background: #f1f5f9;
    color: #3b82f6;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
}
/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}
.pagination-btn {
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}
.pagination-btn:hover,
.pagination-btn.active {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
}
.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
/* 响应式设计 */
@media (max-width: 768px) {
    .news-container {
        grid-template-columns: 1fr;
    }
    .news-filters {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    .filter-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }
    .page-title {
        font-size: 2rem;
    }
    .news-item {
        padding: 1rem;
    }
    .news-title {
        font-size: 1.1rem;
    }
}




