/* 新闻页面专用样式 */

/* 页面头部样式 */
.page-header {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* 新闻分类导航 */
.news-nav {
    padding: 40px 0;
    background: #F8FAFC;
    border-bottom: 1px solid #E2E8F0;
}

.news-categories {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 12px 24px;
    background: white;
    border: 2px solid #E2E8F0;
    border-radius: 25px;
    color: #64748B;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-btn:hover,
.category-btn.active {
    background: #1E3A8A;
    border-color: #1E3A8A;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

/* 热门新闻区域 */
.featured-news {
    padding: 80px 0;
    background: white;
}

.featured-news h2 {
    font-size: 2.5rem;
    color: #1E3A8A;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.featured-news h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #F59E0B, #EF4444);
    border-radius: 2px;
}

.featured-article {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.featured-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.article-image {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.featured-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-image:hover .featured-img {
    transform: scale(1.05);
}

.article-content {
    padding: 20px 0;
}

.article-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.category {
    background: linear-gradient(135deg, #F59E0B, #EF4444);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.date {
    color: #64748B;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.date::before {
    content: '📅';
    margin-right: 5px;
}

.article-content h3 {
    font-size: 1.8rem;
    color: #1E3A8A;
    margin-bottom: 15px;
    line-height: 1.3;
}

.article-content p {
    color: #64748B;
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1E3A8A;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 10px 20px;
    border: 2px solid #1E3A8A;
    border-radius: 25px;
}

.read-more:hover {
    background: #1E3A8A;
    color: white;
    transform: translateX(5px);
}

.read-more::after {
    content: '→';
    transition: transform 0.3s ease;
}

.read-more:hover::after {
    transform: translateX(3px);
}

/* 新闻列表区域 */
.news-list {
    padding: 80px 0;
    background: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 30px;
}

.news-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #F59E0B, #EF4444, #8B5CF6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.news-card:hover::before {
    opacity: 1;
}

.news-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.news-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-thumbnail {
    transform: scale(1.1);
}

.news-content {
    padding: 25px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.news-meta .category {
    font-size: 0.8rem;
    padding: 4px 12px;
}

.news-meta .date {
    font-size: 0.85rem;
}

.news-content h3 {
    font-size: 1.3rem;
    color: #1E3A8A;
    margin-bottom: 12px;
    line-height: 1.4;
    font-weight: 600;
}

.news-content p {
    color: #64748B;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-content .read-more {
    font-size: 0.9rem;
    padding: 8px 16px;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 60px;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    color: #64748B;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination .current {
    background: #1E3A8A;
    border-color: #1E3A8A;
    color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .news-categories {
        gap: 15px;
    }
    
    .category-btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
    
    .featured-article {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 20px;
    }
    
    .featured-news h2 {
        font-size: 2rem;
    }
    
    .article-content h3 {
        font-size: 1.5rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news-card {
        margin: 0 10px;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 100px 0 40px;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .featured-news,
    .news-list {
        padding: 50px 0;
    }
    
    .featured-article {
        padding: 20px 15px;
    }
    
    .news-content {
        padding: 20px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-card {
    animation: fadeInUp 0.6s ease-out;
}

.news-card:nth-child(2) {
    animation-delay: 0.1s;
}

.news-card:nth-child(3) {
    animation-delay: 0.2s;
}

.news-card:nth-child(4) {
    animation-delay: 0.3s;
}

.news-card:nth-child(5) {
    animation-delay: 0.4s;
}

.news-card:nth-child(6) {
    animation-delay: 0.5s;
}

/* 加载状态 */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #E2E8F0;
    border-top: 4px solid #1E3A8A;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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