/* ============================================================
   新闻中心（news.php / news-detail.php）
   与全站风格一致：深蓝主色 + 金色点缀
============================================================ */

/* ---------- 页面头部 ---------- */
.news-hero {
    background: linear-gradient(135deg, #071c47 0%, #0b2a6b 55%, #13448f 100%);
    padding: 90px 6% 80px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.news-hero::before,
.news-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.news-hero::before {
    width: 420px;
    height: 420px;
    top: -180px;
    right: -120px;
}

.news-hero::after {
    width: 300px;
    height: 300px;
    bottom: -140px;
    left: -80px;
}

.news-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1160px;
    margin: 0 auto;
}

.news-hero-sub {
    display: inline-block;
    font-size: 13px;
    letter-spacing: 6px;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
    margin-bottom: 14px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 24px;
    padding: 4px 18px;
}

.news-hero h1 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: 2px;
}

.news-hero-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ---------- 内容容器 ---------- */
.news-wrap {
    max-width: 1160px;
    margin: 0 auto;
    padding: 46px 6% 70px;
}

/* ---------- 类别筛选标签 ---------- */
.news-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 36px;
    justify-content: center;
}

.news-cat {
    display: inline-block;
    padding: 9px 26px;
    border-radius: 24px;
    font-size: 14px;
    color: var(--primary-color);
    background: #fff;
    border: 1px solid rgba(11, 42, 107, 0.16);
    transition: all 0.3s ease;
}

.news-cat:hover {
    border-color: var(--primary-color);
    color: #fff;
    background: var(--primary-color);
}

.news-cat.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 6px 18px rgba(11, 42, 107, 0.28);
}

/* ---------- 新闻列表（左图右文） ---------- */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.news-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(11, 42, 107, 0.08);
    border: 1px solid rgba(11, 42, 107, 0.06);
    display: flex;
    align-items: stretch;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(11, 42, 107, 0.14);
}

.news-card-img {
    display: block;
    flex: 0 0 300px;
    width: 300px;
    min-height: 210px;
    overflow: hidden;
    background: #eef2f7;
    text-decoration: none;
}

.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.news-card:hover .news-card-img img {
    transform: scale(1.06);
}

.news-card-noimg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 46px;
    font-weight: 700;
    color: rgba(11, 42, 107, 0.28);
    background: linear-gradient(135deg, #eef2f7 0%, #dfe7f2 100%);
}

.news-card-body {
    padding: 26px 30px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: center;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.news-card-cat {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 3px;
    background: rgba(11, 42, 107, 0.08);
    color: var(--primary-color);
    font-size: 12px;
}

.news-card-date,
.news-card-views {
    font-size: 12px;
    color: #8a94a8;
}

.news-card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.45;
}

.news-card-title a {
    color: var(--primary-color);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.news-card-title a:hover {
    color: var(--accent-color);
}

.news-card-desc {
    font-size: 14px;
    color: #6b7486;
    line-height: 1.75;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-more {
    align-self: flex-start;
    display: inline-block;
    padding: 8px 24px;
    font-size: 13px;
    color: var(--primary-color);
    border: 1px solid rgba(11, 42, 107, 0.4);
    border-radius: 24px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-card-more:hover {
    background: var(--primary-color);
    color: #fff;
}

/* ---------- 空状态 ---------- */
.news-empty {
    text-align: center;
    background: #fff;
    color: #8a94a8;
    font-size: 15px;
    padding: 60px 20px;
    border-radius: 14px;
    border: 1px dashed rgba(11, 42, 107, 0.18);
}

/* ---------- 分页 ---------- */
.news-pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
}

.news-pager-btn {
    min-width: 38px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--primary-color);
    background: #fff;
    border: 1px solid rgba(11, 42, 107, 0.16);
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-pager-btn:hover {
    border-color: var(--primary-color);
    color: #fff;
    background: var(--primary-color);
}

.news-pager-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* ============================================================
   新闻详情页（news-detail.php）
============================================================ */
.news-detail-bread {
    padding: 26px 6% 0;
    max-width: 1160px;
    margin: 0 auto;
    font-size: 13px;
    color: #8a94a8;
}

.news-detail-bread a {
    color: var(--primary-color);
    text-decoration: none;
}

.news-detail-bread a:hover {
    color: var(--accent-color);
}

.news-detail-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 30px 6% 70px;
}

.news-detail-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(11, 42, 107, 0.08);
    border: 1px solid rgba(11, 42, 107, 0.06);
    padding: 44px 46px;
}

.news-detail-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.4;
    margin-bottom: 16px;
}

.news-detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    padding-bottom: 22px;
    margin-bottom: 26px;
    border-bottom: 1px solid rgba(11, 42, 107, 0.1);
    font-size: 13px;
    color: #8a94a8;
}

.news-detail-cat {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 3px;
    background: rgba(11, 42, 107, 0.08);
    color: var(--primary-color);
    font-size: 12px;
}

.news-detail-content {
    font-size: 15px;
    line-height: 2;
    color: #3d4454;
    word-break: break-word;
}

.news-detail-content p {
    margin-bottom: 18px;
}

.news-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 20px auto;
}

.news-detail-content h2,
.news-detail-content h3,
.news-detail-content h4 {
    color: var(--primary-color);
    margin: 26px 0 14px;
    line-height: 1.5;
}

.news-detail-content a {
    color: var(--accent-color);
    text-decoration: underline;
}

.news-detail-content blockquote {
    border-left: 4px solid var(--accent-color);
    background: rgba(11, 42, 107, 0.05);
    margin: 18px 0;
    padding: 12px 20px;
    color: #6b7486;
    border-radius: 0 8px 8px 0;
}

.news-detail-content ul,
.news-detail-content ol {
    margin: 0 0 18px 22px;
}

.news-detail-content li {
    margin-bottom: 6px;
}

/* 上一篇 / 下一篇 */
.news-detail-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid rgba(11, 42, 107, 0.1);
    font-size: 14px;
}

.news-detail-nav a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-detail-nav a:hover {
    color: var(--accent-color);
}

.news-detail-nav .disabled {
    color: #c3c9d4;
}

/* ============================================================
   新闻详情页 - 最新新闻推荐
============================================================ */
.news-latest {
    max-width: 1160px;
    margin: 0 auto;
    padding: 10px 6% 70px;
}

.news-latest-head {
    text-align: center;
    margin-bottom: 32px;
}

.news-latest-head h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
    margin-bottom: 10px;
}

.news-latest-head h2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 46px;
    height: 3px;
    border-radius: 2px;
    background: var(--accent-color);
}

.news-latest-head p {
    font-size: 14px;
    color: #8a94a8;
}

.news-latest-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.news-latest-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 22px rgba(11, 42, 107, 0.08);
    border: 1px solid rgba(11, 42, 107, 0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.news-latest-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 34px rgba(11, 42, 107, 0.14);
}

.news-latest-img {
    display: block;
    height: 158px;
    overflow: hidden;
    background: #eef2f7;
    text-decoration: none;
}

.news-latest-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.news-latest-card:hover .news-latest-img img {
    transform: scale(1.06);
}

.news-latest-noimg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 38px;
    font-weight: 700;
    color: rgba(11, 42, 107, 0.28);
    background: linear-gradient(135deg, #eef2f7 0%, #dfe7f2 100%);
}

.news-latest-body {
    padding: 16px 18px 18px;
}

.news-latest-cat {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 3px;
    background: rgba(11, 42, 107, 0.08);
    color: var(--primary-color);
    font-size: 11px;
    margin-bottom: 8px;
}

.news-latest-body h3 {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-latest-body h3 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-latest-body h3 a:hover {
    color: var(--accent-color);
}

.news-latest-body p {
    font-size: 13px;
    color: #8a94a8;
    line-height: 1.7;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-latest-date {
    font-size: 12px;
    color: #b0b8c7;
}

.news-latest-more {
    text-align: center;
    margin-top: 34px;
}

.news-latest-more a {
    display: inline-block;
    padding: 10px 34px;
    font-size: 14px;
    color: var(--primary-color);
    border: 1px solid rgba(11, 42, 107, 0.4);
    border-radius: 24px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-latest-more a:hover {
    background: var(--primary-color);
    color: #fff;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
    .news-latest-list {
        grid-template-columns: repeat(2, 1fr);
    }
    .news-hero {
        padding: 60px 20px 50px;
    }

    .news-hero h1 {
        font-size: 30px;
    }

    .news-card-img {
        flex-basis: 220px;
        width: 220px;
        min-height: 180px;
    }

    .news-card-title {
        font-size: 18px;
    }

    .news-detail-card {
        padding: 30px 24px;
    }

    .news-detail-title {
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    .news-card-img {
        flex-basis: 120px;
        width: 120px;
        min-height: 150px;
    }

    .news-card-body {
        padding: 18px 16px;
    }

    .news-card-title {
        font-size: 16px;
    }

    .news-card-desc {
        font-size: 13px;
    }

    .news-detail-card {
        padding: 22px 18px;
    }
}
