/* 新闻动态页面样式 */

/* 页面横幅 */
.page-banner {
    height: 300px;
    background: linear-gradient(rgba(26, 58, 92, 0.4), rgba(26, 58, 92, 0.4)),
                url('../IMG/186221861b6459ef51bb89126bcb4f45.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    color: #fff;
    margin-top: 70px;
    padding-left: 10%;
}

.page-banner-content h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-banner-content p {
    font-size: 18px;
    opacity: 0.8;
}

/* 新闻筛选 */
.news-filter {
    padding: 40px 0;
    background-color: #fff;
    border-bottom: 1px solid #eee;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.filter-btn {
    padding: 10px 30px;
    border: 1px solid #ddd;
    background-color: #fff;
    color: #666;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover {
    border-color: #4a9eff;
    color: #4a9eff;
}

.filter-btn.active {
    background: linear-gradient(135deg, #4a9eff 0%, #2d7dd2 100%);
    border-color: transparent;
    color: #fff;
}

/* 新闻列表 */
.news-list {
    padding: 60px 0 80px;
    background-color: #f8f9fa;
}

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

.news-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    transition: all 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.news-card.hidden {
    display: none;
}

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

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.category-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #4a9eff 0%, #2d7dd2 100%);
    color: #fff;
    font-size: 12px;
    border-radius: 4px;
}

.news-content {
    padding: 25px;
}

.news-meta {
    margin-bottom: 12px;
}

.news-meta .date {
    font-size: 13px;
    color: #999;
}

.news-content h3 {
    font-size: 17px;
    font-weight: 600;
    color: #1a3a5c;
    line-height: 1.5;
    margin-bottom: 15px;
    min-height: 50px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: #4a9eff;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

.read-more:hover {
    color: #2d7dd2;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .page-banner-content h1 {
        font-size: 32px;
    }
    
    .news-content h3 {
        font-size: 15px;
    }
}

/* 新闻详情页 */
.news-detail {
    padding: 60px 0 80px;
    background-color: #f8f9fa;
    min-height: 80vh;
}

.news-detail-header {
    background-color: #fff;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
}

.news-detail-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1a3a5c;
    margin-bottom: 20px;
    line-height: 1.4;
}

.news-detail-header .news-meta {
    display: flex;
    gap: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.news-detail-header .news-meta .date,
.news-detail-header .news-meta .category {
    font-size: 14px;
    color: #666;
}

.news-detail-content {
    background-color: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    line-height: 1.8;
    color: #333;
}

.news-detail-content h1,
.news-detail-content h2,
.news-detail-content h3,
.news-detail-content h4,
.news-detail-content h5,
.news-detail-content h6 {
    color: #1a3a5c;
    margin-top: 30px;
    margin-bottom: 20px;
    font-weight: 600;
}

.news-detail-content h2 {
    font-size: 24px;
    border-left: 4px solid #4a9eff;
    padding-left: 15px;
}

.news-detail-content h3 {
    font-size: 20px;
}

.news-detail-content p {
    margin-bottom: 20px;
    text-align: justify;
}

.news-detail-content ul,
.news-detail-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.news-detail-content li {
    margin-bottom: 10px;
}

.news-detail-content strong {
    font-weight: 600;
    color: #1a3a5c;
}

.news-detail-content a {
    color: #4a9eff;
    text-decoration: none;
}

.news-detail-content a:hover {
    text-decoration: underline;
}

.news-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.news-detail-content blockquote {
    border-left: 4px solid #4a9eff;
    padding-left: 20px;
    margin: 20px 0;
    color: #666;
    font-style: italic;
}

.news-detail-content code {
    background-color: #f5f6fa;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.news-detail-content pre {
    background-color: #f5f6fa;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

.news-detail-content pre code {
    padding: 0;
    background: none;
}

.news-detail-footer {
    margin-top: 30px;
    text-align: center;
}

.btn-back {
    display: inline-block;
    padding: 12px 30px;
    background-color: #fff;
    color: #4a9eff;
    border: 2px solid #4a9eff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-back:hover {
    background-color: #4a9eff;
    color: #fff;
}

@media (max-width: 768px) {
    .news-detail-header,
    .news-detail-content {
        padding: 25px;
    }
    
    .news-detail-header h1 {
        font-size: 24px;
    }
    
    .news-detail-header .news-meta {
        flex-direction: column;
        gap: 10px;
    }
}
