/* ==================== 基础样式重置 ==================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


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


/* 页面横幅 */

.page-banner {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.page-banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.1);
}

.page-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 87, 153, 0.85) 0%, rgba(13, 42, 74, 0.9) 100%);
}

.page-banner-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding-top: 80px;
}

.page-banner-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 4px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.page-banner-subtitle {
    font-size: 18px;
    font-weight: 400;
    opacity: 0.9;
    letter-spacing: 2px;
}


/* 新闻列表区域 */

.news-list-section {
    background: #f8f9fa;
    padding: 80px 50px;
    min-height: 60vh;
}

.news-container {
    max-width: 1400px;
    margin: 0 auto;
}


/* 筛选标签 */

.news-filter {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.filter-btn {
    padding: 12px 30px;
    font-size: 15px;
    font-weight: 500;
    color: #666;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    color: #1e5799;
    border-color: #1e5799;
}

.filter-btn.active {
    background: #1e5799;
    color: #fff;
    border-color: #1e5799;
}


/* 新闻网格 */

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


/* 新闻卡片 */

.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.news-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

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

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

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

.news-card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 14px;
    background: rgba(30, 87, 153, 0.9);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    border-radius: 20px;
}

.news-card-content {
    padding: 25px;
}

.news-card-date {
    font-size: 13px;
    color: #999;
    margin-bottom: 12px;
}

.news-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.news-card:hover .news-card-title {
    color: #1e5799;
}

.news-card-summary {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 15px;
}

.news-card-more {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1e5799;
    font-size: 14px;
    font-weight: 500;
}

.news-card-more svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.news-card:hover .news-card-more svg {
    transform: translateX(5px);
}


/* 分页 */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 60px;
}

.page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn:hover:not(.disabled):not(.active) {
    color: #1e5799;
    border-color: #1e5799;
}

.page-btn.active {
    background: #1e5799;
    color: #fff;
    border-color: #1e5799;
}

.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-btn svg {
    width: 18px;
    height: 18px;
}


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

.article-section {
    background: #f8f9fa;
    padding: 80px 50px;
    min-height: 60vh;
}

.article-container {
    max-width: 900px;
    margin: 0 auto;
}


/* 面包屑导航 */

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
    font-size: 14px;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #1e5799;
}

.breadcrumb span {
    color: #999;
}

.breadcrumb .current {
    color: #1e5799;
    font-weight: 500;
}


/* 文章内容 */

.article-content {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.article-header {
    padding: 40px 50px 30px;
    border-bottom: 1px solid #eee;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.article-category {
    padding: 6px 14px;
    background: #1e5799;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    border-radius: 20px;
}

.article-date {
    font-size: 14px;
    color: #999;
}

.article-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
}

.article-image {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-body {
    padding: 40px 50px;
    font-size: 16px;
    color: #333;
    line-height: 1.9;
}

.article-body p {
    margin-bottom: 20px;
    text-align: justify;
}

.article-body h4 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 35px 0 15px;
}

.article-body ul {
    margin: 20px 0;
    padding-left: 20px;
}

.article-body li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 15px;
}

.article-body li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: #1e5799;
    border-radius: 50%;
}

.article-body strong {
    color: #1e5799;
}

.article-footer {
    padding: 30px 50px;
    border-top: 1px solid #eee;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1e5799;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.back-link:hover {
    gap: 12px;
}

.back-link svg {
    width: 18px;
    height: 18px;
}


/* 文章不存在 */

.article-not-found {
    padding: 80px 50px;
    text-align: center;
}

.article-not-found h2 {
    font-size: 28px;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.article-not-found p {
    color: #666;
    margin-bottom: 30px;
}

.back-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #1e5799;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #2980b9;
}


/* 相关新闻 */

.related-news {
    margin-top: 50px;
}

.related-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 30px;
    padding-left: 15px;
    border-left: 4px solid #1e5799;
}

.related-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-item {
    display: block;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.related-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.related-item-image {
    height: 140px;
    overflow: hidden;
}

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

.related-item:hover .related-item-image img {
    transform: scale(1.1);
}

.related-item-content {
    padding: 20px;
}

.related-item-category {
    font-size: 12px;
    color: #1e5799;
    font-weight: 500;
}

.related-item-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.5;
    margin: 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-item:hover .related-item-title {
    color: #1e5799;
}

.related-item-date {
    font-size: 12px;
    color: #999;
}


/* ==================== 响应式设计 ==================== */

@media (max-width: 1200px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .news-list-section {
        padding: 60px 30px;
    }
    .article-section {
        padding: 60px 30px;
    }
    .related-list {
        grid-template-columns: repeat(2, 1fr);
    }
    .article-header,
    .article-body,
    .article-footer {
        padding-left: 30px;
        padding-right: 30px;
    }
}

@media (max-width: 768px) {
    .page-banner {
        height: 300px;
    }
    .page-banner-title {
        font-size: 36px;
    }
    .page-banner-subtitle {
        font-size: 14px;
    }
    .news-filter {
        flex-wrap: wrap;
        gap: 10px;
    }
    .filter-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    .news-grid {
        grid-template-columns: 1fr;
    }
    .article-title {
        font-size: 24px;
    }
    .article-body {
        font-size: 15px;
    }
    .related-list {
        grid-template-columns: 1fr;
    }
    .article-header,
    .article-body,
    .article-footer {
        padding-left: 25px;
        padding-right: 25px;
    }
}