/* ========== 新闻页面样式 ========== */

/* 英雄区域 */
.news-hero {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 40px;
}
.news-hero h1 {
    font-size: 36px;
    margin-bottom: 10px;
}
.news-hero p {
    font-size: 16px;
    opacity: 0.9;
}

/* 新闻网格 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

/* 新闻卡片 */
.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}
.news-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.news-card-body {
    padding: 24px;
}
.news-card-category {
    display: inline-block;
    background: #e8f4fd;
    color: #1976d2;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}
.news-card-title {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
    margin: 0 0 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #eee;
}
.news-card-date {
    font-size: 13px;
    color: #999;
}
.news-card-link {
    color: #1976d2;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}
.news-card-link:hover {
    text-decoration: underline;
}

/* 无结果 */
.no-results {
    text-align: center;
    padding: 60px 20px;
}

/* ========== 新闻详情页样式 ========== */
.news-detail-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}
.news-detail-header {
    margin-bottom: 30px;
}
.news-detail-category {
    display: inline-block;
    background: #e8f4fd;
    color: #1976d2;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}
.news-detail-title {
    font-size: 32px;
    font-weight: bold;
    color: #2c3e50;
    line-height: 1.4;
    margin: 0 0 20px;
}
.news-detail-meta {
    display: flex;
    gap: 20px;
    color: #999;
    font-size: 14px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}
.news-detail-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 30px;
}
.news-detail-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}
.news-detail-content p {
    margin-bottom: 20px;
    text-indent: 2em;
}
.news-back-link {
    display: inline-flex;
    align-items: center;
    margin-top: 40px;
    padding: 12px 24px;
    background: #1976d2;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s ease;
}
.news-back-link:hover {
    background: #1565c0;
}

/* 响应式 */
@media (max-width: 768px) {
    .news-hero h1 {
        font-size: 28px;
    }
    .news-grid {
        grid-template-columns: 1fr;
    }
    .news-detail-title {
        font-size: 24px;
    }
    .news-detail-image {
        height: 250px;
    }
}



.news-detail-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}
.news-detail-header {
    margin-bottom: 30px;
}
.news-detail-category {
    display: inline-block;
    background: #e8f4fd;
    color: #1976d2;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}
.news-detail-title {
    font-size: 32px;
    font-weight: bold;
    color: #2c3e50;
    line-height: 1.4;
    margin: 0 0 20px;
}
.news-detail-meta {
    display: flex;
    gap: 20px;
    color: #999;
    font-size: 14px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}
.news-detail-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 30px;
}
.news-detail-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}
.news-detail-content p {
    margin-bottom: 20px;
    text-indent: 2em;
}
.news-back-link {
    display: inline-flex;
    align-items: center;
    margin-top: 40px;
    padding: 12px 24px;
    background: #1976d2;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s ease;
}
.news-back-link:hover {
    background: #1565c0;
}
