﻿/* ===== 顶部 banner 贴齐（原 inline 样式迁移至此） ===== */
.ny_banner {
    position: relative;
    top: -21px;
    margin-bottom: -21px;
}
@media screen and (min-width: 751px) and (max-width: 1000px) {
    .ny_banner {
        top: -66px;
        margin-bottom: -66px;
    }
}
@media screen and (max-width: 750px) {
    .ny_banner {
        top: -136px;
        margin-bottom: -136px;
    }
}

/* ===== 文章详情整体 ===== */
.news-article {
    background: #f6f7fb;
    color: #111827;
    padding: 56px 0 80px;
}

/* ===== 文章头部（居中） ===== */
.article-head {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid #e5e7eb;
}
.article-kicker {
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 16px;
}
.article-head h1 {
    font-family: 'PLUSJAKARTASANS-EXTRABOLD', 'Segoe UI', Arial, sans-serif;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.15;
    font-weight: 700;
    color: #111827;
    max-width: 1000px;
    margin: 0 auto 18px;
}
.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #6b7280;
}
.article-meta__sep {
    color: #cbd5e1;
}

/* ===== 正文（居中阅读栏，优化可读性） ===== */
.article-content {
    max-width: 1000px;
    margin: 0 auto;
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    font-size: 17px;
    line-height: 1.75;
    color: #1f2937;
}
.article-content p {
    margin: 0 0 1.5em;
}
.article-content h2,
.article-content h3,
.article-content h4 {
    font-family: 'PLUSJAKARTASANS-EXTRABOLD', 'Segoe UI', Arial, sans-serif;
    color: #111827;
    line-height: 1.3;
    margin: 1.6em 0 .6em;
}
.article-content h2 { font-size: 26px; }
.article-content h3 { font-size: 21px; }
.article-content h4 { font-size: 18px; }
.article-content img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 1.2em 0;
}
.article-content a {
    color: #0f172a;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.article-content ul,
.article-content ol {
    padding-left: 1.4em;
    margin: 0 0 1.4em;
}
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content blockquote {
    border-left: 3px solid #e5e7eb;
    padding-left: 20px;
    margin: 1.6em 0;
    color: #6b7280;
    font-style: italic;
}

/* ===== 画廊（全宽，4 列） ===== */
.article-gallery {
    margin-top: 48px;
}
.article-gallery h2 {
    font-family: 'PLUSJAKARTASANS-EXTRABOLD', 'Segoe UI', Arial, sans-serif;
    font-size: 24px;
    color: #111827;
    margin: 0 0 20px;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.gallery-item {
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    background: #e5e7eb;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}
.gallery-item:hover img {
    transform: scale(1.05);
}

/* ===== Lightbox ===== */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, .92);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}
.gallery-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}
.gallery-lightbox__img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 6px;
}
.gallery-lightbox__close,
.gallery-lightbox__nav {
    position: absolute;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    line-height: 1;
}
.gallery-lightbox__close {
    top: 20px;
    right: 24px;
    font-size: 38px;
}
.gallery-lightbox__nav {
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    font-size: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    transition: background .2s ease;
}
.gallery-lightbox__nav:hover {
    background: rgba(255, 255, 255, .2);
}
.gallery-lightbox__prev { left: 20px; }
.gallery-lightbox__next { right: 20px; }

/* ===== 响应式 ===== */
@media (max-width: 991px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 575px) {
    .news-article {
        padding: 32px 0 56px;
    }
    .article-content {
        font-size: 16px;
    }
    .gallery-grid {
        gap: 10px;
    }
    .gallery-lightbox__nav {
        width: 44px;
        height: 44px;
        font-size: 30px;
    }
    .gallery-lightbox__prev { left: 10px; }
    .gallery-lightbox__next { right: 10px; }
}
