/* News Archive Styles */
.news-archive-page {
    background: #f8f9fa;
}

/* Hero Section */
.news-hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
}

.news-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.news-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* News Content */
.news-content {
    padding: 60px 0;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1520px;
    margin: 0 auto;
}

/* 限制大屏幕时每行最多3个卡片 */
@media (min-width: 1440px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.news-image {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.news-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-image:hover img {
    transform: scale(1.05);
}

.news-placeholder {
    height: 220px;
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-content i {
    font-size: 3rem;
    color: #9ca3af;
}

.news-content-area {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #6b7280;
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-meta i {
    color: #3b82f6;
}

.news-title {
    margin: 0 0 15px 0;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.4;
}

.news-title a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: #3b82f6;
}

.news-excerpt {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.read-more-btn {
    background: #3b82f6;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.read-more-btn:hover {
    background: #2563eb;
    transform: translateX(5px);
}

.news-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.news-tags .tag {
    background: #f3f4f6;
    color: #6b7280;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Pagination */
.news-pagination {
    margin-top: 50px;
    text-align: center;
}

.news-pagination .page-numbers {
    display: inline-flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 10px;
}

.news-pagination .page-numbers li {
    margin: 0;
}

.news-pagination .page-numbers a,
.news-pagination .page-numbers span {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.news-pagination .page-numbers a:hover,
.news-pagination .page-numbers .current {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}



/* No News */
.no-news {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.no-news-content i {
    font-size: 4rem;
    color: #d1d5db;
    margin-bottom: 20px;
}

.no-news-content h3 {
    font-size: 1.5rem;
    color: #6b7280;
    margin-bottom: 10px;
}

.no-news-content p {
    color: #9ca3af;
    max-width: 400px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .news-hero h1 {
        font-size: 2.5rem;
    }
    
    .news-hero p {
        font-size: 1.1rem;
    }
    
    .news-content {
        padding: 40px 0;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 20px;
    }
    
    .news-card {
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .news-image img {
        height: 200px;
    }
    
    .news-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .news-tags {
        align-self: stretch;
    }
}

@media (max-width: 480px) {
    .news-hero {
        padding: 60px 0 40px;
    }
    
    .news-hero h1 {
        font-size: 2rem;
    }
    
    .news-content-area {
        padding: 20px;
    }
    
    .news-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .news-grid {
        padding: 0 15px;
    }
}
