﻿@charset "utf-8";

/* ==========================================================================
   鍐呴〉涓撳睘灞傦細妯箙銆侀潰鍖呭睉銆佸垪琛ㄣ€佸垎椤点€佹鏂囨帓鐗堛€佷晶鏍忋€侀檮浠躲€佷笂涓嬬瘒
   ========================================================================== */

/* ---------- 鍐呴〉妯箙 ---------- */
.inner-banner {
    position: relative;
    height: 400px;
    margin-bottom: 0;
    background: url("../images/banner/bg1-banner.jpg") center top / 100% auto no-repeat;
}

.inner-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: transparent;
    pointer-events: none;
}

/* ---------- 鏍忕洰鏍囬鏉★紙妯箙涓嬫柟锛?---------- */
.page-title-bar {
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 121, 124, .12);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .03);
}

.page-title-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    min-height: 64px;
    padding: 14px 0;
}

.page-title {
    position: relative;
    padding-left: 18px;
    color: var(--luojia-green);
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
}

.page-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 22px;
    background: var(--luojia-green);
    border-radius: 2px;
    transform: translateY(-50%);
}

.page-title-bar .breadcrumb {
    font-size: 14px;
    color: var(--text-gray);
}

.page-title-bar .breadcrumb a {
    color: var(--text-gray);
    transition: color .3s ease;
}

.page-title-bar .breadcrumb a:hover {
    color: var(--luojia-green);
}

.page-title-bar .breadcrumb span {
    color: var(--luojia-green);
    font-weight: 500;
}

/* ---------- 闈㈠寘灞?---------- */
.breadcrumb-wrap {
    padding: 18px 0;
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 121, 124, .08);
}

.breadcrumb {
    font-size: 14px;
    color: var(--text-gray);
}

.breadcrumb a {
    color: var(--text-gray);
    transition: color .3s ease;
}

.breadcrumb a:hover {
    color: var(--luojia-green);
}

.breadcrumb span {
    color: var(--luojia-green);
    font-weight: 500;
}

/* ---------- 鍐呴〉涓讳綋甯冨眬 ---------- */
.inner-main {
    padding: 50px 0 80px;
}

.inner-layout {
    display: flex;
    align-items: flex-start;
    gap: 50px;
}

/* 鏃犱晶鏍忔ā寮?*/
.inner-layout.no-sidebar {
    display: block;
}

.inner-layout.no-sidebar .list-content,
.inner-layout.no-sidebar .article-detail {
    max-width: 1100px;
    margin: 0 auto;
}

/* ---------- 渚ф爮瀵艰埅 ---------- */
.side-nav {
    width: 240px;
    flex-shrink: 0;
}

.side-nav-title {
    padding: 20px 24px;
    background: var(--luojia-green);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
}

.side-nav-list {
    border: 1px solid rgba(0, 121, 124, .12);
    border-top: 0;
}

.side-nav-list a {
    display: block;
    padding: 14px 24px;
    color: var(--text-dark);
    font-size: 15px;
    border-bottom: 1px solid rgba(0, 121, 124, .06);
    transition: background-color .3s ease, color .3s ease, padding-left .3s ease;
}

.side-nav-list a:last-child {
    border-bottom: 0;
}

.side-nav-list a:hover {
    padding-left: 30px;
    color: var(--luojia-green);
    background: rgba(0, 121, 124, .04);
}

.side-nav-list a.active {
    padding-left: 30px;
    color: var(--luojia-green);
    background: rgba(0, 121, 124, .1);
    font-weight: 600;
    border-left: 3px solid var(--luojia-green);
}

.side-nav-contact {
    margin-top: 20px;
    padding: 20px;
    background: var(--luojia-light-cream);
    border: 1px solid rgba(0, 121, 124, .08);
    font-size: 14px;
    color: var(--text-gray);
    line-height: 2;
}

.side-nav-contact strong {
    display: block;
    margin-bottom: 8px;
    color: var(--luojia-green);
    font-size: 15px;
}

/* ---------- 鍒楄〃鍐呭鍖?---------- */
.list-content {
    flex: 1;
    min-width: 0;
}

.list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--luojia-green);
}

.list-head h2 {
    color: var(--luojia-green);
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
}

.list-head .total {
    color: var(--text-gray);
    font-size: 14px;
}

/* ---------- 鏂伴椈绫诲垪琛?---------- */
.article-list li {
    border-bottom: 1px solid #eee;
    transition: background-color .3s ease;
}

.article-list li:hover {
    background: rgba(0, 121, 124, .02);
}

.article-list .item-link {
    display: flex;
    align-items: flex-start;
    padding: 24px 16px;
}

.article-list .date-block {
    display: flex;
    width: 72px;
    height: 72px;
    margin-right: 24px;
    flex: 0 0 72px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><rect x="5" y="5" width="90" height="90" fill="none" stroke="%23c3d4cf" stroke-width="1"/></svg>') center / contain no-repeat;
}

.article-list .date-day {
    margin-left: -16px;
    color: var(--luojia-green);
    font-family: var(--font-en);
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}

.article-list .date-line {
    width: 38px;
    height: 1px;
    margin: 4px 0;
    background: var(--luojia-light);
    transform: rotate(-45deg);
}

.article-list .date-month {
    margin-right: -20px;
    color: var(--luojia-green);
    font-family: var(--font-en);
    font-size: 14px;
    line-height: 1;
}

.article-list .item-info {
    flex: 1;
    min-width: 0;
    padding-top: 4px;
}

.article-list .item-title {
    display: block;
    color: var(--text-dark);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
    transition: color .3s ease;
}

.article-list li:hover .item-title {
    color: var(--luojia-green);
}

.article-list .item-summary {
    display: -webkit-box;
    margin-top: 8px;
    overflow: hidden;
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.article-list .item-meta {
    margin-top: 8px;
    color: #999;
    font-size: 13px;
}

.article-list .item-meta span + span::before {
    content: "|";
    margin: 0 10px;
    color: #ddd;
}

.article-list .tag-top {
    display: inline-block;
    margin-right: 8px;
    padding: 1px 8px;
    color: #ffffff;
    font-size: 12px;
    background: var(--luojia-green);
    border-radius: 3px;
    vertical-align: middle;
}

/* ---------- 鍏憡绫诲垪琛?---------- */
.notice-list li {
    border-bottom: 1px solid #eee;
    transition: background-color .3s ease;
}

.notice-list li:hover {
    background: rgba(0, 121, 124, .02);
}

.notice-list .item-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 16px;
}

.notice-list .item-left {
    flex: 1;
    min-width: 0;
}

.notice-list .item-title {
    display: block;
    overflow: hidden;
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color .3s ease;
}

.notice-list li:hover .item-title {
    color: var(--luojia-green);
}

.notice-list .item-tags {
    margin-top: 6px;
    font-size: 13px;
    color: #999;
}

.notice-list .item-tags .tag {
    display: inline-block;
    margin-right: 8px;
    padding: 1px 8px;
    font-size: 12px;
    background: rgba(0, 121, 124, .08);
    color: var(--luojia-green);
    border-radius: 3px;
}

.notice-list .item-tags .tag-new {
    background: rgba(239, 212, 141, .3);
    color: #b8860b;
}

.notice-list .item-date {
    flex-shrink: 0;
    margin-left: 20px;
    color: #999;
    font-family: var(--font-en);
    font-size: 14px;
    white-space: nowrap;
}

/* ---------- 鍒嗛〉 (閫傞厤绔欑兢 pagebar 缁勪欢) ---------- */
.pagebar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.pagebar .p_pages {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 閲嶇疆鍘熺敓span锛屼娇鍐呴儴a鍏呮弧鍖?*/
.pagebar .p_pages > span {
    display: inline-flex;
}

/* 鎸夐挳鍩虹鏍峰紡锛氬寘鍚彲鐐瑰嚮鐨刟锛屽強澶勪簬褰撳墠椤?绂佺敤鐘舵€佺殑鏂囨湰span */
.pagebar .p_pages > span > a,
.pagebar .p_pages > span.p_no_d,
.pagebar .p_pages > span.p_fun_d {
    display: inline-flex;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: 14px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    transition: background-color .3s ease, color .3s ease, border-color .3s ease;
    text-decoration: none;
}

/* 鎮仠鐘舵€?(鍙偣鍑荤殑椤电爜) */
.pagebar .p_pages > span > a:hover {
    color: var(--luojia-green);
    border-color: var(--luojia-green);
    background: rgba(0, 121, 124, .04);
}

/* 褰撳墠楂樹寒椤电爜 */
.pagebar .p_pages > span.p_no_d {
    color: #ffffff;
    background: var(--luojia-green);
    border-color: var(--luojia-green);
}

/* 绂佺敤鐘舵€?(濡傚湪绗竴椤垫椂鐨?棣栭〉"銆?涓婁竴椤?) */
.pagebar .p_pages > span.p_fun_d {
    color: #ccc;
    border-color: #eee;
    cursor: not-allowed;
    pointer-events: none;
}

/* 鐪佺暐鍙?*/
.pagebar .p_pages > span.p_dot {
    min-width: auto;
    border: 0;
    padding: 0 4px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
}

/* 绔欑兢鍒嗛〉鐨勫叾浠栫粍浠讹細鎬婚〉鏁般€佽烦杞瓑鏍峰紡寰皟 */
.pagebar .p_t {
    font-size: 14px;
    color: var(--text-gray);
    margin: 0 2px;
}
.pagebar .p_goto_input {
    width: 40px;
    height: 30px;
    text-align: center;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin: 0 4px;
    font-size: 14px;
}
.pagebar .p_goto a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    padding: 0 12px;
    font-size: 14px;
    color: #fff;
    background: var(--luojia-green);
    border-radius: 4px;
    margin-left: 4px;
    text-decoration: none;
}
.pagebar .p_goto a:hover {
    opacity: 0.9;
}

/* ---------- 绌虹姸鎬?---------- */
.empty-state {
    padding: 80px 20px;
    text-align: center;
    color: var(--text-gray);
}

.empty-state p {
    margin-bottom: 20px;
    font-size: 16px;
}

.empty-state a {
    color: var(--luojia-green);
    font-weight: 500;
}

.empty-state a:hover {
    text-decoration: underline;
}

/* ---------- 鏂囩珷璇︽儏椤?---------- */
.article-detail {
    flex: 1;
    min-width: 0;
    background: #ffffff;
    padding: 40px 48px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .06);
}

.article-header {
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid #eee;
}

.article-header h1 {
    color: var(--text-dark);
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 1px;
    text-align: center;
}

.article-meta {
    margin-top: 16px;
    color: #999;
    font-size: 14px;
}

.article-meta span + span::before {
    content: "|";
    margin: 0 12px;
    color: #ddd;
}

/* ---------- 姝ｆ枃鎺掔増 ---------- */
.article-body {
    max-width: 920px;
    font-size: 16px;
    line-height: 1.9;
    color: var(--text-dark);
}

.article-body p {
    margin-bottom: .9em;
    text-indent: 2em;
}

.article-body h2 {
    position: relative;
    margin: 1.8em 0 .8em;
    padding-left: 16px;
    color: var(--luojia-green);
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
}

.article-body h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 4px;
    height: calc(100% - 8px);
    background: var(--luojia-green);
    border-radius: 2px;
}

.article-body h3 {
    margin: 1.4em 0 .6em;
    color: var(--text-dark);
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
}

.article-body a {
    color: var(--luojia-green);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-body a:hover {
    color: #005a5c;
}

.article-body img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.2em auto;
    border-radius: 4px;
}

.article-body figure {
    margin: 1.5em 0;
    text-align: center;
}

.article-body figcaption {
    margin-top: 8px;
    color: var(--text-gray);
    font-size: 14px;
}

.article-body .image-caption {
    text-align: center;
    text-indent: 0;
}

.article-body blockquote {
    margin: 1.2em 0;
    padding: 16px 20px;
    background: rgba(0, 121, 124, .04);
    border-left: 4px solid var(--luojia-green);
    color: var(--text-gray);
    font-size: 15px;
}

.article-body ul,
.article-body ol {
    margin: .8em 0;
    padding-left: 2em;
}

.article-body li {
    margin-bottom: .4em;
    list-style: disc;
}

.article-body ol li {
    list-style: decimal;
}

.article-body table {
    width: 100%;
    margin: 1.2em 0;
    border-collapse: collapse;
    font-size: 15px;
}

.article-body th,
.article-body td {
    padding: 10px 14px;
    border: 1px solid #e0e0e0;
    text-align: left;
}

.article-body th {
    background: rgba(0, 121, 124, .06);
    color: var(--luojia-green);
    font-weight: 600;
}

.article-body .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ---------- 闄勪欢涓嬭浇 ---------- */
.article-attachments {
    margin-top: 40px;
    padding: 24px;
    background: var(--luojia-light-cream);
    border: 1px solid rgba(0, 121, 124, .1);
    border-radius: 6px;
}

.article-attachments h3 {
    margin-bottom: 16px;
    color: var(--luojia-green);
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
}

.attachment-list li {
    margin-bottom: 10px;
}

.attachment-list a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: var(--text-dark);
    font-size: 15px;
    border-radius: 4px;
    transition: background-color .3s ease, color .3s ease;
}

.attachment-list a:hover {
    color: var(--luojia-green);
    background: rgba(0, 121, 124, .06);
}

.attachment-list .file-icon {
    display: inline-flex;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--luojia-green);
}

.attachment-list .file-icon svg {
    width: 100%;
    height: 100%;
}

.attachment-list .file-size {
    margin-left: 8px;
    color: #999;
    font-size: 13px;
}

/* ---------- 涓婁笅绡囧鑸?---------- */
.article-neighbor {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}

.article-neighbor a,
.article-neighbor span {
    display: block;
    padding: 12px 16px;
    color: var(--text-dark);
    font-size: 15px;
    background: var(--luojia-light-cream);
    border-radius: 4px;
    transition: background-color .3s ease, color .3s ease;
}

.article-neighbor a:hover {
    color: var(--luojia-green);
    background: rgba(0, 121, 124, .06);
}

.article-neighbor .label {
    color: var(--text-gray);
    font-size: 13px;
}

.article-neighbor .no-more {
    color: #ccc;
}

/* ---------- 鏂囩珷渚ф爮 ---------- */
.article-aside {
    width: 280px;
    flex-shrink: 0;
}

.aside-block {
    margin-bottom: 30px;
    border: 1px solid rgba(0, 121, 124, .1);
    border-radius: 6px;
    overflow: hidden;
}

.aside-block-title {
    padding: 14px 18px;
    background: var(--luojia-green);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
}

.aside-block-list ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.aside-block-list a {
    display: block;
    padding: 12px 18px;
    color: var(--text-dark);
    font-size: 14px;
    border-bottom: 1px dashed rgba(0, 0, 0, .08);
    transition: color .3s ease, padding-left .3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.aside-block-list > a:last-child,
.aside-block-list li:last-child a {
    border-bottom: 0;
}

.aside-block-list a:hover {
    padding-left: 22px;
    color: var(--luojia-green);
}

/* ---------- 杩斿洖鍒楄〃鎸夐挳 ---------- */
.back-to-list {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    margin-left: auto;
    padding: 10px 20px;
    color: var(--luojia-green);
    font-size: 15px;
    border: 1px solid var(--luojia-light);
    border-radius: 4px;
    transition: background-color .3s ease, border-color .3s ease;
    float: right;
}

.back-to-list:hover {
    background: rgba(0, 121, 124, .04);
    border-color: var(--luojia-green);
}

/* ==========================================================================
   鍝嶅簲寮?- 鍐呴〉
   ========================================================================== */

@media (max-width: 1199px) {
    .side-nav {
        width: 220px;
    }

    .inner-layout {
        gap: 36px;
    }

    .article-aside {
        width: 240px;
    }
}

@media (max-width: 991px) {
    .inner-layout {
        flex-direction: column;
        align-items: stretch;
        gap: 30px;
    }

    .main-content-region,
    .main-content-region > form,
    .main-content-region article.article-detail,
    #vsb_content.article-body,
    #vsb_content .v_news_content,
    #vsb_content .v_news_content > .article-body,
    .article-body .article-img-carousel,
    .article-body .article-img-thumbs {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .side-nav {
        width: 100%;
    }

    .side-nav-list {
        display: flex;
        flex-wrap: wrap;
        border: 0;
        gap: 8px;
    }

    .side-nav-list a {
        padding: 10px 18px;
        border: 1px solid rgba(0, 121, 124, .15);
        border-radius: 4px;
        font-size: 14px;
    }

    .side-nav-list a:last-child {
        border-bottom: 1px solid rgba(0, 121, 124, .15);
    }

    .side-nav-title {
        padding: 14px 18px;
        font-size: 18px;
    }

    .article-aside {
        width: 100%;
    }

    .aside-block-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .article-layout {
        flex-direction: column;
    }
}

@media (max-width: 767px) {
    .inner-banner {
        min-height: 220px;
    }

    .page-title-inner {
        min-height: 56px;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 12px 0;
    }

    .page-title {
        font-size: 19px;
        letter-spacing: 1px;
    }

    .page-title-bar .breadcrumb {
        font-size: 13px;
    }

    .inner-main {
        padding: 30px 0 60px;
    }

    .list-head h2 {
        font-size: 18px;
    }

    /* 鏂伴椈鍒楄〃 - 鏃ユ湡绉诲埌鏍囬涓嬫柟 */
    .article-list .item-link {
        padding: 18px 10px;
    }

    .article-list .date-block {
        width: 60px;
        height: 60px;
        flex-basis: 60px;
        margin-right: 16px;
    }

    .article-list .date-day {
        font-size: 18px;
        margin-left: -12px;
    }

    .article-list .date-month {
        font-size: 12px;
        margin-right: -16px;
    }

    .article-list .item-title {
        font-size: 15px;
    }

    .article-list .item-summary {
        -webkit-line-clamp: 1;
    }

    /* 鍏憡鍒楄〃 - 鏃ユ湡绉诲埌鏍囬涓嬫柟 */
    .notice-list .item-link {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 10px;
    }

    .notice-list .item-date {
        margin-left: 0;
        margin-top: 6px;
    }

    /* 鏂囩珷璇︽儏 */
    .article-detail {
        padding: 24px 20px;
    }

    .article-header h1 {
        font-size: 24px;
    }

    .article-meta {
        font-size: 13px;
    }

    .article-meta span + span::before {
        content: "";
        margin: 0;
        display: block;
    }

    .article-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 4px 12px;
    }

    .article-body {
        font-size: 15px;
    }

    .article-body h2 {
        font-size: 19px;
    }

    .article-neighbor {
        gap: 8px;
    }

    .article-neighbor a,
    .article-neighbor span {
        font-size: 14px;
        padding: 10px 12px;
    }

    .pagebar {
        gap: 4px;
    }

    .pagebar .p_pages {
        gap: 4px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .pagebar .p_pages > span > a,
    .pagebar .p_pages > span.p_no_d,
    .pagebar .p_pages > span.p_fun_d {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
        padding: 0 8px;
    }

    /* 搴曢儴鎮诞宸ュ叿鍗犱綅 */
    .inner-page {
        padding-bottom: 70px;
    }

    .aside-block-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 479px) {
    .article-list .date-block {
        display: none;
    }

    .page-title {
        font-size: 17px;
    }

    .article-header h1 {
        font-size: 21px;
    }
}



/* 清除文章主体内部浮动，防止返回列表按钮等元素溢出容器 */
.article-detail::after {
    content: """";
    display: table;
    clear: both;
}

/* 清除文章主体内部浮动，防止返回列表按钮等元素溢出容器 */
.article-detail::after {
    content: """";
    display: table;
    clear: both;
}

/* 娓呴櫎鏂囩珷涓讳綋鍐呴儴娴姩锛岄槻姝㈣繑鍥炲垪琛ㄦ寜閽瓑鍏冪礌婧㈠嚭瀹瑰櫒 */
.article-detail::after {
    content: "";
    display: table;
    clear: both;
}

/* ==========================================================================
   文章图片排版优化 (多图宫格、轮播、Lightbox弹窗)
   ========================================================================== */

/* 1. Lightbox 原生看大图弹窗 */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: zoom-out;
}
.lightbox-modal.active {
    opacity: 1;
    visibility: visible;
}
.lightbox-modal img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}
.lightbox-modal.active img {
    transform: scale(1);
}
.article-body img {
    cursor: zoom-in;
}

/* 2. 连续图片宫格布局 (2~4张) */
.article-body .article-gallery.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin: 1.5em 0;
}
.article-body .article-gallery.grid-layout figure {
    margin: 0; 
    height: 100%;
    display: flex;
    flex-direction: column;
}
.article-body .article-gallery.grid-layout img {
    margin: 0 auto;
    width: 100%;
    height: 200px;
    object-fit: cover; /* 保证高度一致，居中裁剪 */
}

.article-body .article-gallery.grid-1plus2 {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 1.5em 0;
}
.article-body .article-gallery.grid-1plus2 figure {
    margin: 0;
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.article-body .article-gallery.grid-1plus2 figure:first-child {
    grid-row: 1 / span 2;
}
.article-body .article-gallery.grid-1plus2 img {
    margin: 0 auto;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.article-body .article-gallery.grid-1plus2 figure:first-child img {
    min-height: 416px;
}
.article-body .article-gallery.grid-1plus2 figure:not(:first-child) img {
    height: 200px;
}

/* 3. 连续图片轮播布局 (>=5张) */
.article-body .article-img-carousel {
    margin: 2em 0;
    padding-bottom: 40px; /* 给分页器留位置 */
    --swiper-theme-color: var(--luojia-green, #00797C);
}
.article-body .article-img-carousel .swiper-slide {
    height: auto; /* 让 aspect-ratio 接管高度 */
}
.article-body .article-img-carousel figure {
    margin: 0;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 4px;
    background-color: #f7f7f7;
}
.article-body .article-img-carousel img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
}

/* 4. 缩略图导航条 */
.article-body .article-img-thumbs {
    margin-top: 12px;
    margin-bottom: 2em;
}
.article-body .article-img-thumbs .swiper-slide {
    height: 80px;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
    opacity: 0.5;
    transition: opacity 0.3s, box-shadow 0.3s;
}
.article-body .article-img-thumbs .swiper-slide:hover {
    opacity: 0.8;
}
.article-body .article-img-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    box-shadow: 0 0 0 2px var(--luojia-green, #00797C);
}
.article-body .article-img-thumbs img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
}

@media (max-width: 768px) {
    .article-body .article-gallery.grid-layout {
        grid-template-columns: 1fr 1fr; /* 手机端强制两列，避免图片太大拉长版面 */
        gap: 8px;
    }
    .article-body .article-gallery.grid-layout img {
         height: 120px;
    }
    .article-body .article-gallery.grid-1plus2 {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 8px;
    }
    .article-body .article-gallery.grid-1plus2 figure:first-child {
        grid-column: 1 / -1;
        grid-row: auto;
    }
    .article-body .article-gallery.grid-1plus2 figure:first-child img {
        min-height: 220px;
    }
    .article-body .article-gallery.grid-1plus2 figure:not(:first-child) img {
        height: 120px;
    }
    .article-body .article-img-carousel figure {
        aspect-ratio: 3 / 2; /* 移动端略扁，避免竖向太高 */
    }
    .article-body .article-img-carousel .swiper-button-prev,
    .article-body .article-img-carousel .swiper-button-next {
        display: none;
    }
    .article-body .article-img-thumbs .swiper-slide {
        height: 60px;
    }
}

@media (max-width: 479px) {
    .article-body .article-gallery.grid-1plus2 {
        grid-template-columns: 1fr;
    }
    .article-body .article-gallery.grid-1plus2 figure:first-child img,
    .article-body .article-gallery.grid-1plus2 figure:not(:first-child) img {
        height: auto;
        max-height: 280px;
        object-fit: contain;
    }
    .article-body .article-img-carousel figure {
        aspect-ratio: 4 / 3; /* 小屏恢复 4:3，保证可辨认 */
    }
    .article-body .article-img-thumbs .swiper-slide {
        height: 50px;
    }
}
