@charset "UTF-8";
/* 标题区：由 .34rem(≈34px)/.26rem(≈26px) 改为固定 px */
.hx-detail-title { font-size: 26px; }          /* 原 .34rem */
.hx-detail-meta  { font-size: 13px; }          /* 原 .15rem */

/* 正文内容区：承载 CMS 注入内容，字号必须用 px */
.hx-detail-body { font-size: 16px; line-height: 1.9; overflow-x: hidden; }

/* ---- CMS 内容区字号修正（关键补丁）----
   覆盖远端 style.css 中 rem 版的 .article-* 规则 ---- */
.hx-detail-body .article-header h1 { font-size: 26px; line-height: 1.4; }  /* 原 1.8rem */
.hx-detail-body .article-meta     { font-size: 13px; }                    /* 原 0.9rem */
.hx-detail-body .article-body      { font-size: 16px; line-height: 2; }   /* 原 1.05rem */
.hx-detail-body .article-body p,
.hx-detail-body #vsb_content,
.hx-detail-body .v_news_content,
.hx-detail-body .v_news_content p  { font-size: 16px; line-height: 2; }
.hx-detail-body .article-body h2   { font-size: 20px; }                    /* 原 1.4rem */
.hx-detail-body .article-body h3   { font-size: 17px; }                    /* 原 1.2rem */
.hx-detail-body .article-nav .nav-item { font-size: 14px; }                /* 原 0.95rem */
.hx-detail-body iframe { max-width: 100%; }   /* CMS 内嵌 PDF iframe 防溢出 */

/* 响应式收紧 */
@media (max-width:1024px){ .hx-detail-title{font-size:22px;} .hx-detail-body .article-header h1{font-size:22px;} }
@media (max-width:640px){ .hx-detail-title{font-size:20px;} .hx-detail-body{font-size:15px;}
  .hx-detail-body .article-header h1{font-size:19px;}
  .hx-detail-body .article-body,
  .hx-detail-body .article-body p,
  .hx-detail-body #vsb_content,
  .hx-detail-body .v_news_content,
  .hx-detail-body .v_news_content p{font-size:15px;} }


/* ===== 列表页公共头部 ===== */
.page-header {
    position: relative;
    height: 3.2rem;
    padding-top: 1.2rem;
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 100% 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* 各页顶部背景图（按 body 上的页面类区分） */
.page-shichuang .page-header {
    background-image: url(../optimg/images/s1-bg.png);
}

.page-suying .page-header,
.page-suyuan .page-header {
    background-image: url(../optimg/images/s4-bg.png);
}

.page-jiaoshi .page-header,
.page-fengguang .page-header,
.page-shengjing .page-header {
    background-image: url(../optimg/images/s5-bg.png);
}

/* 导航栏固定顶部（复用首页 showdiv 样式） */
.navbar.pc.showdiv {
    position: fixed;
    top: 0;
    z-index: 1000;
}

/* 移动端顶部导航（与首页一致） */
.m-header {
    display: none;
}

@media screen and (max-width: 1024px) {
    .navbar.pc {
        display: none;
    }

    .page-header {
        padding-top: .9rem;
    }

    .m-header {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: .9rem;
        background: #fff;
        box-shadow: 0 .03rem .05rem rgba(0, 0, 0, .05);
        z-index: 100000;
    }

    .m-header .mh-inner {
        height: 100%;
        padding: 0 .15rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        box-sizing: border-box;
    }

    .m-header .mh-logo img {
        max-height: .8rem;
        height: auto;
        display: block;
    }

    .m-header .mh-btn {
        width: .9rem;
        height: .9rem;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    .m-header .navbtn {
        position: relative;
        display: inline-block;
        width: .38rem;
        height: .04rem;
        background: #9a111a;
        border-radius: .02rem;
    }

    .m-header .navbtn::before,
    .m-header .navbtn::after {
        content: '';
        position: absolute;
        left: 0;
        width: .38rem;
        height: .04rem;
        background: #9a111a;
        border-radius: .02rem;
    }

    .m-header .navbtn::before {
        top: -.12rem;
    }

    .m-header .navbtn::after {
        bottom: -.12rem;
    }
}

.page-header .ph-tit {
    position: relative;
    z-index: 2;
    text-align: center;
}

.page-header .ph-tit h1 {
    font-family: 'sys_bd';
    font-size: .6rem;
    color: #9a111a;
    line-height: 1;
    font-weight: normal;
    margin: 0;
}

.page-header .ph-tit h1 span {
    color: #c7aa8b;
}

.page-header .ph-sub {
    margin-top: .18rem;
    font-size: .18rem;
    color: #6b6b6b;
    letter-spacing: .12rem;
}

/* ===== 分类切换 ===== */
.page-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: .3rem .2rem 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .3rem;
}

.page-nav a {
    display: inline-block;
    padding: .12rem .5rem;
    border: .01rem solid #9a111a;
    border-radius: .3rem;
    color: #9a111a;
    font-size: .16rem;
    cursor: pointer;
    transition: all .3s;
}

.page-nav a.on {
    background: #9a111a;
    color: #fff;
}

.page-nav a:hover {
    background: #9a111a;
    color: #fff;
    letter-spacing: .02rem;
}

/* =========================================================================
   页面：百廿视窗 shichuang.html
   ========================================================================= */

/* ===== 新闻列表 ===== */
.sc-wrap {
    margin: 0 auto;
    padding: .4rem .2rem .8rem;
}

.sc-item {
    display: flex;
    align-items: stretch;
    gap: .3rem;
    padding: .24rem;
    margin-bottom: .24rem;
    background: #fff;
    border-radius: .16rem;
    box-shadow: 0 .04rem .18rem rgba(0, 0, 0, .07);
    transition: transform .4s ease, box-shadow .4s ease;
    text-decoration: none;
}

.sc-item:hover {
    transform: translateY(-.06rem);
    box-shadow: 0 .12rem .3rem rgba(0, 0, 0, .14);
}

.sc-item .sc-pic {
    flex: none;
    width: 3.6rem;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: .1rem;
    background: #f2f2f2;
}

.sc-item .sc-pic img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .5s ease;
}

.sc-item:hover .sc-pic img {
    transform: scale(1.06);
}

.sc-item .sc-txt {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: .04rem 0;
}

.sc-item .sc-txt h3 {
    font-size: .22rem;
    line-height: 1.5;
    color: #2b2b2b;
    font-weight: normal;
    font-family: 'sys_bd';
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .3s;
}

.sc-item:hover .sc-txt h3 {
    color: #9a111a;
}

.sc-item .sc-desc {
    margin-top: .12rem;
    font-size: .15rem;
    line-height: 1.8;
    color: #8b8b8b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sc-item .sc-meta {
    margin-top: .18rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .14rem;
    color: #a5a5a5;
}

.sc-item .sc-meta .tag {
    display: inline-block;
    padding: .04rem .16rem;
    margin-right: .16rem;
    border-radius: .04rem;
    background: #f7ecec;
    color: #9a111a;
    font-size: .13rem;
    font-style: normal;
    line-height: 1;
}

.sc-item .sc-meta .date i {
    margin-right: .06rem;
    color: #c7aa8b;
}

/* ===== 分页 ===== */
.sc-page {
    margin-top: .5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .12rem;
    flex-wrap: wrap;
}

.sc-page a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: .4rem;
    height: .4rem;
    padding: 0 .12rem;
    border: .01rem solid #ddd;
    border-radius: .06rem;
    color: #555;
    font-size: .15rem;
    transition: all .3s;
}

.sc-page a.on,
.sc-page a:hover {
    background: #9a111a;
    border-color: #9a111a;
    color: #fff;
}

.sc-page a.disabled {
    color: #bbb;
    border-color: #eee;
    pointer-events: none;
}

/* 空状态 */
.sc-empty {
    padding: 1rem 0;
    text-align: center;
    color: #999;
    font-size: .16rem;
}

@media screen and (max-width: 768px) {
    .sc-item {
        flex-direction: column;
        gap: .18rem;
    }

    .sc-item .sc-pic {
        width: 100%;
    }

    .sc-item .sc-txt h3 {
        font-size: .18rem;
    }

    .sc-item .sc-desc {
        -webkit-line-clamp: 3;
    }
}

/* ===== 八方贺函 · 块状卡片 ===== */
.hx-wrap {
    margin: 0 auto;
    padding: .4rem .2rem .8rem;
}

.hx-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .28rem;
}

.hx-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: .18rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 .08rem .24rem rgba(154, 17, 26, .12);
    transition: transform .4s ease, box-shadow .4s ease;
}

.hx-card:hover {
    transform: translateY(-.08rem);
    box-shadow: 0 .18rem .42rem rgba(154, 17, 26, .24);
}

/* 八方贺函卡片配色：10 色调色板循环（每页 10 个，按顺序自动对应），--c2 为同色加深 */
.hx-card:nth-child(10n+1) { --c1: #06b8fc; --c2: #0593ca; }
.hx-card:nth-child(10n+2) { --c1: #3cd8b2; --c2: #30ad8e; }
.hx-card:nth-child(10n+3) { --c1: #0192ff; --c2: #0175cc; }
.hx-card:nth-child(10n+4) { --c1: #b268ff; --c2: #8e53cc; }
.hx-card:nth-child(10n+5) { --c1: #ff8d4f; --c2: #cc713f; }
.hx-card:nth-child(10n+6) { --c1: #6ed26e; --c2: #58a858; }
.hx-card:nth-child(10n+7) { --c1: #747ae8; --c2: #5d62ba; }
.hx-card:nth-child(10n+8) { --c1: #f9b552; --c2: #c79142; }
.hx-card:nth-child(10n+9) { --c1: #fd3f6b; --c2: #ca3256; }
.hx-card:nth-child(10n+10) { --c1: #9656f3; --c2: #7845c2; }

.hx-top {
    position: relative;
    padding: .32rem .32rem .3rem;
    color: #fff;
    overflow: hidden;
    background: linear-gradient(135deg, var(--c1, #9a111a), var(--c2, #c0322b));
}

.hx-top::before {
    content: '贺';
    position: absolute;
    right: .12rem;
    top: -.3rem;
    font-family: serif;
    font-size: 2rem;
    font-weight: bold;
    color: rgba(255, 255, 255, .13);
    line-height: 1;
}

.hx-top::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: .06rem;
    background: rgba(255, 255, 255, .28);
}

.hx-org {
    position: relative;
    z-index: 2;
    font-family: 'sys_bd';
    font-size: .26rem;
    letter-spacing: .02rem;
    line-height: 1.4;
}

.hx-badge {
    position: relative;
    z-index: 2;
    display: inline-block;
    margin-top: .14rem;
    padding: .04rem .18rem;
    font-size: .13rem;
    letter-spacing: .04rem;
    background: rgba(255, 255, 255, .22);
    border: .01rem solid rgba(255, 255, 255, .35);
    border-radius: .2rem;
}

.hx-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: .3rem .32rem .26rem;
}

.hx-title {
    font-size: .2rem;
    line-height: 1.5;
    color: #8d1520;
    font-weight: bold;
    margin-bottom: .16rem;
}

.hx-desc {
    flex: 1;
    font-size: .15rem;
    line-height: 1.95;
    color: #6b6b6b;
    text-align: justify;
}

.hx-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: .22rem;
    padding-top: .18rem;
    border-top: .01rem dashed #e6d8c4;
}

.hx-date {
    font-size: .14rem;
    color: #b09a7c;
    letter-spacing: .02rem;
}

.hx-btn {
    font-size: .15rem;
    color: #9a111a;
    text-decoration: none;
    transition: letter-spacing .3s, color .3s;
}

.hx-btn i {
    margin-left: .04rem;
}

.hx-card:hover .hx-btn {
    letter-spacing: .04rem;
    color: #c0322b;
}

/* ===== 贺函全文 · 站内弹层阅读（pdfreader 插件） ===== */
.pdf-modal {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
}

.pdf-modal.on {
    display: block;
}

.pdf-modal-bg {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .68);
}

.pdf-modal-box {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    width: 92vw;
    max-width: 1280px;
    height: 90vh;
    background: #fff;
    border-radius: .06rem;
    overflow: hidden;
    box-shadow: 0 .2rem .6rem rgba(0, 0, 0, .4);
}

.pdf-modal-head {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: .56rem;
    padding: 0 .18rem;
    color: #fff;
    background: linear-gradient(135deg, #9a111a, #c0322b);
}

.pdf-modal-title {
    font-size: .18rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pdf-modal-close {
    flex: 0 0 auto;
    width: .36rem;
    height: .36rem;
    margin-left: .12rem;
    line-height: .36rem;
    text-align: center;
    font-size: .22rem;
    color: #fff;
    cursor: pointer;
    border-radius: 50%;
    transition: background .3s;
}

.pdf-modal-close:hover {
    background: rgba(255, 255, 255, .22);
}

.pdf-modal-body {
    flex: 1;
    overflow: hidden;
}

.pdf-modal-body iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 768px) {
    .pdf-modal-box {
        left: 0;
        top: 0;
        transform: none;
        width: 100vw;
        height: 100vh;
        border-radius: 0;
    }
}

/* ===== 校友祝福 · 多彩块状卡片 ===== */
.zf-wrap {
    margin: 0 auto;
    padding: .4rem .2rem .8rem;
}

.zf-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .28rem;
}

.zf-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: .34rem .3rem .28rem;
    border-radius: .2rem;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(150deg, var(--c1, #9a111a), var(--c2, #c8322b));
    box-shadow: 0 .1rem .26rem rgba(0, 0, 0, .16);
    transition: transform .4s ease, box-shadow .4s ease;
}

/* 校友祝福卡片配色：10 色调色板循环（每页 10 个，按顺序自动对应），--c2 为同色加深 */
.zf-card:nth-child(10n+1) { --c1: #ff8d4f; --c2: #cc713f; }
.zf-card:nth-child(10n+2) { --c1: #6ed26e; --c2: #58a858; }
.zf-card:nth-child(10n+3) { --c1: #747ae8; --c2: #5d62ba; }
.zf-card:nth-child(10n+4) { --c1: #f9b552; --c2: #c79142; }
.zf-card:nth-child(10n+5) { --c1: #fd3f6b; --c2: #ca3256; }
.zf-card:nth-child(10n+6) { --c1: #9656f3; --c2: #7845c2; }
.zf-card:nth-child(10n+7) { --c1: #06b8fc; --c2: #0593ca; }
.zf-card:nth-child(10n+8) { --c1: #3cd8b2; --c2: #30ad8e; }
.zf-card:nth-child(10n+9) { --c1: #0192ff; --c2: #0175cc; }
.zf-card:nth-child(10n+10) { --c1: #b268ff; --c2: #8e53cc; }

.zf-card::before {
    content: '\201C';
    position: absolute;
    right: .2rem;
    top: -.15rem;
    font-family: Georgia, serif;
    font-size: 2.4rem;
    line-height: 1;
    color: rgba(255, 255, 255, .22);
}

.zf-card::after {
    content: '';
    position: absolute;
    left: -.4rem;
    bottom: -.5rem;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
}

.zf-card:hover {
    transform: translateY(-.1rem) rotate(-.6deg);
    box-shadow: 0 .2rem .46rem rgba(0, 0, 0, .26);
}

.zf-head {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    margin-bottom: .22rem;
}

/* 仅保留届别/院系标识，去除姓名与头像圆圈 */
.zf-meta {
    display: inline-block;
    padding: .04rem .16rem;
    font-size: .14rem;
    color: rgba(255, 255, 255, .92);
    letter-spacing: .04rem;
    border-radius: .2rem;
    background: rgba(255, 255, 255, .18);
}

.zf-text {
    position: relative;
    z-index: 2;
    flex: 1;
    font-size: .16rem;
    line-height: 1.9;
    text-align: justify;
    text-shadow: 0 .01rem .02rem rgba(0, 0, 0, .12);
}

.zf-tag {
    position: relative;
    z-index: 2;
    align-self: flex-start;
    margin-top: .24rem;
    padding: .05rem .18rem;
    font-size: .13rem;
    letter-spacing: .04rem;
    border-radius: .2rem;
    background: rgba(255, 255, 255, .2);
    border: .01rem solid rgba(255, 255, 255, .38);
}

.zf-tag i {
    margin-right: .05rem;
}

@media screen and (max-width: 1024px) {
    .hx-grid {
        grid-template-columns: 1fr;
    }

    .zf-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 640px) {
    /* 四栏目子导航：缩小内边距与间距，保证手机端整齐排布不溢出 */
    .page-nav {
        padding: .22rem .12rem 0;
        gap: .12rem;
    }

    .page-nav a {
        padding: .1rem .22rem;
        font-size: .15rem;
        border-radius: .26rem;
    }

    /* 各内容区留白收紧 */
    .sc-wrap,
    .hx-wrap,
    .zf-wrap {
        padding: .3rem .15rem .6rem;
    }

    /* 卡片统一单列，间距收紧 */
    .hx-grid,
    .zf-grid {
        grid-template-columns: 1fr;
        gap: .2rem;
    }

    .sc-item {
        padding: .2rem;
        gap: .18rem;
    }

    .hx-top {
        padding: .26rem .24rem .24rem;
    }

    .hx-body {
        padding: .24rem .24rem .2rem;
    }

    .hx-org {
        font-size: .24rem;
    }

    .hx-title {
        font-size: .19rem;
    }

    .hx-desc {
        font-size: .15rem;
    }

    .hx-foot {
        flex-wrap: wrap;
        gap: .12rem;
    }

    .zf-card {
        padding: .3rem .26rem .26rem;
    }
}

@media screen and (max-width: 400px) {
    .page-nav a {
        padding: .1rem .2rem;
        font-size: .14rem;
    }
}

/* =========================================================================
   页面：教师风采 jiaoshi.html
   ========================================================================= */

/* ===== 教师风采瀑布流 ===== */
.js-wrap {
    margin: 0 auto;
    padding: .5rem .2rem .8rem;
}

.js-grid {
    column-count: 2;
    column-gap: .24rem;
}

.js-item {
    break-inside: avoid;
    margin-bottom: .24rem;
    border-radius: .16rem;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 .06rem .2rem rgba(0, 0, 0, .1);
    transition: transform .4s ease, box-shadow .4s ease;
}

.js-item:hover {
    transform: translateY(-.06rem);
    box-shadow: 0 .12rem .3rem rgba(0, 0, 0, .18);
}

/* 视频元素隐藏（仅用作数据源） */
.js-item video {
    display: none;
}

/* 视频封面 — 统一尺寸，保持比例居中 */
.js-item .js-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
    transition: transform .5s ease;
}

.js-item:hover .js-thumb {
    transform: scale(1.06);
}

.js-item .js-mask {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    transition: background .4s ease;
    pointer-events: none;
}

.js-item:hover .js-mask {
    background: rgba(0, 0, 0, .3);
}

.js-item .js-cap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: .3rem .18rem .16rem;
    background: linear-gradient(to top, rgba(0, 0, 0, .65), rgba(0, 0, 0, 0));
    color: #fff;
    font-size: .16rem;
    text-align: center;
    pointer-events: none;
    line-height: 1.5;
}

.js-item .js-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: .7rem;
    height: .7rem;
    background: rgba(0, 0, 0, .6);
    border: .03rem solid rgba(255, 255, 255, .6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background .3s, transform .3s;
    pointer-events: none;
}

.js-item .js-play i {
    color: #fff;
    font-size: .28rem;
    margin-left: .06rem;
}

.js-item:hover .js-play {
    background: rgba(154, 17, 26, .9);
    transform: translate(-50%, -50%) scale(1.12);
}

/* 大屏显示器：一行4个 */
@media screen and (min-width: 1600px) {
    .js-grid {
        column-count: 4;
    }
}

@media screen and (max-width: 640px) {
    .js-grid {
        column-count: 1;
    }
}

/* =========================================================================
   页面：校园风光 fengguang.html
   ========================================================================= */

/* ===== 校园风光瀑布流 ===== */
.fg-wrap {
    margin: 0 auto;
    padding: .5rem .2rem .8rem;
}

.fg-grid {
    column-count: 3;
    column-gap: .24rem;
}

.fg-item {
    break-inside: avoid;
    margin-bottom: .24rem;
    border-radius: .16rem;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background: #ececec;
    box-shadow: 0 .06rem .2rem rgba(0, 0, 0, .1);
    transition: transform .4s ease, box-shadow .4s ease;
}

.fg-item:hover {
    transform: translateY(-.06rem);
    box-shadow: 0 .12rem .3rem rgba(0, 0, 0, .18);
}

.fg-item img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: transform .5s ease, opacity .5s ease;
}

/* 图片加载完成后淡入显示 */
.fg-item img.loaded {
    opacity: 1;
}

.fg-item:hover img {
    transform: scale(1.06);
}

/* 电脑端大屏：一行4个 */
@media screen and (min-width: 1025px) {
    .fg-grid {
        column-count: 4;
    }
}

@media screen and (max-width: 1024px) {
    .fg-grid {
        column-count: 2;
    }
}

@media screen and (max-width: 640px) {
    .fg-grid {
        column-count: 1;
    }
}

/* ===== 图片点击放大查看 ===== */
.fg-modal {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .85);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
    cursor: zoom-out;
}

.fg-modal.show {
    opacity: 1;
    visibility: visible;
}

.fg-modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: .1rem;
    box-shadow: 0 .2rem .6rem rgba(0, 0, 0, .5);
    transform: scale(.85);
    transition: transform .3s;
    cursor: default;
}

.fg-modal.show img {
    transform: scale(1);
}

.fg-modal-close {
    position: absolute;
    top: .3rem;
    right: .4rem;
    z-index: 2001;
    width: .6rem;
    height: .6rem;
    line-height: .6rem;
    text-align: center;
    font-size: .3rem;
    color: #fff;
    background: rgba(255, 255, 255, .15);
    border-radius: 50%;
    cursor: pointer;
    transition: background .3s;
}

.fg-modal-close:hover {
    background: rgba(154, 17, 26, .9);
}

/* =========================================================================
   页面：长师溯影 suying.html
   ========================================================================= */

/* ===== 长师溯影视频瀑布流 ===== */
.vy-wrap {
    margin: 0 auto;
    padding: .5rem .2rem .8rem;
}

.vy-grid {
    column-count: 2;
    column-gap: .24rem;
}

.vy-item {
    break-inside: avoid;
    margin-bottom: .24rem;
    border-radius: .16rem;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background: #ececec;
    box-shadow: 0 .06rem .2rem rgba(0, 0, 0, .1);
    transition: transform .4s ease, box-shadow .4s ease;
}

.vy-item:hover {
    transform: translateY(-.06rem);
    box-shadow: 0 .12rem .3rem rgba(0, 0, 0, .18);
}

/* 视频元素隐藏（仅用作数据源） */
.vy-item video {
    display: none;
}

/* 视频封面 — 统一尺寸，保持比例居中 */
.vy-item .vy-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
    transition: transform .5s ease;
}

.vy-item:hover .vy-thumb {
    transform: scale(1.06);
}

.vy-item .vy-mask {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    transition: background .4s;
    z-index: 2;
}

.vy-item:hover .vy-mask {
    background: rgba(0, 0, 0, .3);
}

.vy-item .vy-cap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    padding: .5rem .16rem .14rem;
    font-size: .16rem;
    line-height: 1.5;
    color: #fff;
    background: linear-gradient(to top, rgba(0, 0, 0, .65), rgba(0, 0, 0, 0));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vy-item .vy-play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 5;
    width: .76rem;
    height: .76rem;
    margin: -.38rem 0 0 -.38rem;
    border-radius: 50%;
    background: rgba(0, 0, 0, .35);
    border: .02rem solid rgba(255, 255, 255, .7);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .4s, transform .4s;
}

.vy-item .vy-play i {
    color: #fff;
    font-size: .24rem;
    margin-left: .04rem;
}

.vy-item:hover .vy-play {
    background: rgba(154, 17, 26, .9);
    transform: scale(1.08);
}

/* 大屏显示器：一行3个 */
@media screen and (min-width: 1600px) {
    .vy-grid {
        column-count: 3;
    }
}

@media screen and (max-width: 640px) {
    .vy-grid {
        column-count: 1;
    }
}

/* ===== 视频播放弹窗样式统一由 willesPlay.css 提供，此处不再重复定义 ===== */

/* =========================================================================
   页面：校史沿革 suyuan.html
   ========================================================================= */

/* ===== 校史沿革瀑布流 ===== */
.sy-wrap {
    margin: 0 auto;
    padding: .5rem .2rem .8rem;
}

.sy-grid {
    column-count: 3;
    column-gap: .24rem;
}

.sy-item {
    break-inside: avoid;
    margin-bottom: .24rem;
    border-radius: .16rem;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background: #ececec;
    box-shadow: 0 .06rem .2rem rgba(0, 0, 0, .1);
    transition: transform .4s ease, box-shadow .4s ease;
}

.sy-item:hover {
    transform: translateY(-.06rem);
    box-shadow: 0 .12rem .3rem rgba(0, 0, 0, .18);
}

.sy-item img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: transform .5s ease, opacity .5s ease;
}

/* 图片加载完成后淡入显示 */
.sy-item img.loaded {
    opacity: 1;
}

.sy-item:hover img {
    transform: scale(1.06);
}

/* 年份角标（校史沿革特有） */
.sy-item .sy-year {
    position: absolute;
    left: .12rem;
    bottom: .12rem;
    z-index: 3;
    padding: .04rem .14rem;
    font-size: .14rem;
    line-height: 1.6;
    color: #fff;
    background: rgba(154, 17, 26, .85);
    border-radius: .2rem;
    letter-spacing: .02rem;
    pointer-events: none;
}

.sy-item::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(0, 0, 0, .35), rgba(0, 0, 0, 0));
    z-index: 1;
    opacity: 0;
    transition: opacity .4s ease;
    pointer-events: none;
}

.sy-item:hover::after {
    opacity: 1;
}

/* 电脑端大屏：一行4个 */
@media screen and (min-width: 1025px) {
    .sy-grid {
        column-count: 4;
    }
}

@media screen and (max-width: 1024px) {
    .sy-grid {
        column-count: 2;
    }
}

@media screen and (max-width: 640px) {
    .sy-grid {
        column-count: 1;
    }
}

/* ===== 图片点击放大查看 ===== */
.sy-modal {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .85);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
    cursor: zoom-out;
}

.sy-modal.show {
    opacity: 1;
    visibility: visible;
}

.sy-modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: .1rem;
    box-shadow: 0 .2rem .6rem rgba(0, 0, 0, .5);
    transform: scale(.85);
    transition: transform .3s;
    cursor: default;
}

.sy-modal.show img {
    transform: scale(1);
}

.sy-modal-close {
    position: absolute;
    top: .3rem;
    right: .4rem;
    z-index: 2001;
    width: .6rem;
    height: .6rem;
    line-height: .6rem;
    text-align: center;
    font-size: .3rem;
    color: #fff;
    background: rgba(255, 255, 255, .15);
    border-radius: 50%;
    cursor: pointer;
    transition: background .3s;
}

.sy-modal-close:hover {
    background: rgba(154, 17, 26, .9);
}

/* ===== 覆盖系统强制分页样式 ===== */
.pageBar {
    margin-top: 0.5rem !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    padding: 0 !important;
    border: none !important;
    height: auto !important;
    width: auto !important;
    text-align: center !important;}
.pageBar .pb_sys_common {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    height: auto !important;
    width: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 5px !important;
    text-align: center !important;}
.pageBar .p_t {
    margin: 0 4px !important;
    padding: 0 !important;
    border: none !important;
    height: auto !important;
    width: auto !important;
    font-size: 14px !important;
    color: #666 !important;}
.pageBar .p_pages {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    height: auto !important;
    width: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;}
.pageBar .p_pages span {
    margin: 0 !important;
    padding: 0 8px !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 3px !important;
    height: 28px !important;
    min-width: 28px !important;
    width: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12px !important;
    color: #666 !important;
    background: #fff !important;
    transition: all 0.2s !important;
    box-sizing: border-box !important;}
.pageBar .p_pages .p_no_d {
    margin: 0 !important;
    padding: 0 8px !important;
    border: 1px solid var(--primary-color, #94070a) !important;
    border-radius: 3px !important;
    height: 28px !important;
    min-width: 28px !important;
    width: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--primary-color, #94070a) !important;
    color: #fff !important;
    box-sizing: border-box !important;}
.pageBar .p_pages .p_fun_d {
    margin: 0 !important;
    padding: 0 8px !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 3px !important;
    height: 28px !important;
    min-width: 28px !important;
    width: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ccc !important;
    cursor: not-allowed !important;
    background: #fff !important;
    box-sizing: border-box !important;}
.pageBar .p_pages .p_no a,
.pageBar .p_pages .p_fun a {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    height: 100% !important;
    width: 100% !important;
    color: #666 !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;}
.pageBar .p_pages .p_no a:hover,
.pageBar .p_pages .p_fun a:hover {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    height: 100% !important;
    width: 100% !important;
    color: var(--primary-color, #94070a) !important;}
.pageBar .p_pages .p_no:hover,
.pageBar .p_pages .p_fun:hover {
    margin: 0 !important;
    padding: 0 8px !important;
    border: 1px solid var(--primary-color, #94070a) !important;
    border-radius: 3px !important;
    height: 28px !important;
    min-width: 28px !important;
    width: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #fef6f5 !important;
    box-sizing: border-box !important;}
.pageBar .p_goto {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    height: auto !important;
    width: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;}
.pageBar .p_goto_input {
    margin: 0 !important;
    padding: 0 4px !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 3px !important;
    height: 28px !important;
    width: 40px !important;
    text-align: center !important;
    font-size: 12px !important;
    color: #666 !important;
    outline: none !important;
    box-sizing: border-box !important;}
.pageBar .p_goto_input:focus {
    margin: 0 !important;
    padding: 0 4px !important;
    border: 1px solid var(--primary-color, #94070a) !important;
    border-radius: 3px !important;
    height: 28px !important;
    width: 40px !important;
    outline: none !important;
    box-sizing: border-box !important;}
.pageBar .p_goto a {
    margin: 0 !important;
    padding: 0 10px !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 3px !important;
    height: 28px !important;
    width: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12px !important;
    color: #666 !important;
    text-decoration: none !important;
    background: #fff !important;
    transition: all 0.2s !important;}
.pageBar .p_goto a:hover {
    margin: 0 !important;
    padding: 0 10px !important;
    border: 1px solid var(--primary-color, #94070a) !important;
    border-radius: 3px !important;
    height: 28px !important;
    width: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--primary-color, #94070a) !important;
    background: #fef6f5 !important;}


/* ============================================================
   ★ 内容页 (content.html) 专用样式
   ============================================================ */

html.content body { padding-top: 85px; }
@media (max-width: 576px) { html.content body { padding-top: 65px; } }

.content-wrapper {
    padding: 30px 0 50px;
    background: #f2f5f9;
}
.content-main {
    background: #fff;
    border-radius: 8px !important;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-light);
    padding: 35px 40px;
}
.article-header {
    text-align: center;
    padding-bottom: 25px;
    border-bottom: 1px solid #eef2f7;
    margin-bottom: 30px;
}
.article-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: var(--font-sys);
    color: #1a2e44;
    margin: 0 0 18px;
    line-height: 1.35;
}
.article-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.9rem;
    color: #8a9bb0;
}
.article-meta span {
    display: inline-flex;
    align-items: center;
}
.article-meta i {
    margin-right: 6px;
    color: var(--primary);
}
.article-body {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #2c3e50;
}
.article-body p {
    margin-bottom: 18px;
    text-indent: 2em;
}
.article-body p.text-center {
    text-align: center;
    text-indent: 0;
}
.article-body p.text-right {
    text-align: right;
    text-indent: 0;
}
.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 6px !important;
    margin: 15px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}
.article-body h2 {
    font-size: 1.4rem;
    font-weight: 700;
    font-family: var(--font-sys);
    color: var(--primary);
    margin: 30px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(154,17,26,0.15);
}
.article-body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a2e44;
    margin: 24px 0 12px;
}
.article-body ul, .article-body ol {
    margin-bottom: 18px;
    padding-left: 2em;
}
.article-body ul li, .article-body ol li {
    margin-bottom: 8px;
}
.article-body strong {
    color: #1a2e44;
}
.article-body a {
    color: var(--primary);
    text-decoration: underline;
}
.article-attachments {
    margin-top: 35px;
    padding: 20px 25px;
    background: #f8fafc;
    border: 1px solid #e9edf4;
    border-radius: 6px !important;
}
.article-attachments h5 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a2e44;
    margin: 0 0 12px;
}
.article-attachments h5 i {
    margin-right: 8px;
    color: var(--primary);
}
.article-attachments ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.article-attachments ul li {
    padding: 6px 0;
}
.article-attachments ul li a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}
.article-attachments ul li a:hover {
    color: var(--primary);
}
.article-attachments ul li a i {
    margin-right: 6px;
    color: var(--primary);
}
.article-nav {
    margin-top: 35px;
    padding-top: 20px;
    border-top: 1px solid #eef2f7;
}
.article-nav .nav-item {
    display: flex;
    align-items: baseline;
    font-size: 0.95rem;
    min-width: 0;
}
.article-nav .nav-item .label {
    color: #999;
    white-space: nowrap;
    margin-right: 10px;
    font-weight: 600;
    min-width: 5em;
}
.article-nav .nav-item a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.2s;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.article-nav .nav-item a:hover {
    color: var(--primary);
}
@media (max-width: 768px) {
    .content-wrapper { padding: 20px 0 30px; }
    .content-main { padding: 20px 16px; }
    .article-header h1 { font-size: 1.4rem; }
    .article-body { font-size: 0.98rem; }
    .article-meta { gap: 10px; font-size: 0.85rem; }
}
@media (max-width: 576px) {
    .content-wrapper { padding: 12px 0 20px; }
    .article-header h1 { font-size: 1.2rem; }
    .article-body p { text-indent: 1.5em; }
}

/* 兼容博达（VSB）栏目页：部分栏目页（如 bfhh.htm / mtjj.htm / xyzf.htm）
   会向列表内层容器 .sc-list 注入内联 display:none，导致通过顶部导航悬停
   切到「活动资讯 / 传媒聚焦」时列表为空。此处强制显示内层列表，
   区块的显示与隐藏仍由外层 #scWrap / #mdWrap 及 JS 控制。 */
.sc-wrap>.sc-list {
    display: block !important;
}
/* =========================================================================
   补丁：图片/视频列表排列顺序修正为「从左到右、从上到下」
   适用页面：校史沿革（sy-grid → xsyg.htm）/ 长师溯影（vy-grid → zssy.htm）
   ========================================================================= */

/* 容器改为网格布局：关闭多列，按行排列 */
.sy-grid,
.vy-grid {
    display: grid !important;
    gap: .24rem !important;
    column-count: auto !important;
}

/* 网格中由 gap 统一控制间距，取消多列时的下外边距 */
.sy-item,
.vy-item {
    margin-bottom: 0 !important;
}

/* —— 校史沿革 sy-grid：默认3列 / 大屏4列 / 平板2列 / 手机1列 —— */
.sy-grid { grid-template-columns: repeat(3, 1fr) !important; }

@media screen and (min-width: 1025px) {
    .sy-grid { grid-template-columns: repeat(4, 1fr) !important; }
}
@media screen and (max-width: 1024px) {
    .sy-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media screen and (max-width: 640px) {
    .sy-grid { grid-template-columns: 1fr !important; }
}

/* —— 长师溯影 vy-grid：默认2列 / 超大屏3列 / 手机1列 —— */
.vy-grid { grid-template-columns: repeat(2, 1fr) !important; }

@media screen and (min-width: 1600px) {
    .vy-grid { grid-template-columns: repeat(3, 1fr) !important; }
}
@media screen and (max-width: 640px) {
    .vy-grid { grid-template-columns: 1fr !important; }
}

/* =========================================================================
   页面：百廿盛景 shengjing.html（图集：一个标题 + 多张图片）
   ========================================================================= */

/* ===== 图集列表 ===== */
.sj-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: .5rem .2rem .8rem;
    box-sizing: border-box;
}

.sj-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .3rem;
}

.sj-card {
    display: block;
    background: #fff;
    border-radius: .16rem;
    overflow: hidden;
    box-shadow: 0 .06rem .2rem rgba(0, 0, 0, .1);
    text-decoration: none;
    transition: transform .4s ease, box-shadow .4s ease;
}

.sj-card:hover {
    transform: translateY(-.08rem);
    box-shadow: 0 .16rem .36rem rgba(0, 0, 0, .18);
}

.sj-card .sj-card-pic {
    position: relative;
    overflow: hidden;
    background: #ececec;
    aspect-ratio: 16 / 10;
}

.sj-card .sj-card-pic img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 1;
    transition: transform .6s ease, opacity .6s ease;
}

.sj-card .sj-card-pic img.loaded {
    opacity: 1;
}

.sj-card:hover .sj-card-pic img {
    transform: scale(1.06);
}

.sj-card .sj-card-count {
    position: absolute;
    right: .14rem;
    top: .14rem;
    padding: .04rem .14rem;
    font-size: .13rem;
    line-height: 1.7;
    color: #fff;
    background: rgba(154, 17, 26, .88);
    border-radius: .2rem;
    letter-spacing: .02rem;
}

.sj-card .sj-card-txt {
    padding: .22rem .24rem .24rem;
}

.sj-card .sj-card-txt h3 {
    margin: 0 0 .1rem;
    font-size: .22rem;
    line-height: 1.45;
    color: #1a2e44;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sj-card .sj-card-txt p {
    margin: 0 0 .16rem;
    font-size: .15rem;
    line-height: 1.75;
    color: #7b8794;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sj-card .sj-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .1rem;
    font-size: .14rem;
    color: #9aa5b1;
}

.sj-card .sj-card-more {
    color: #9a111a;
    white-space: nowrap;
}

.sj-empty {
    padding: .8rem 0;
    text-align: center;
    font-size: .16rem;
    color: #999;
}

/* ===== 图集详情 ===== */
.sj-detail-head {
    margin-bottom: .4rem;
    padding-bottom: .3rem;
    border-bottom: .01rem solid #eceae6;
}

.sj-back {
    display: inline-block;
    margin-bottom: .2rem;
    font-size: .15rem;
    color: #9a111a;
    text-decoration: none;
    transition: opacity .3s;
}

.sj-back:hover {
    opacity: .75;
}

.sj-detail-title {
    margin: 0 0 .14rem;
    font-size: .34rem;
    line-height: 1.4;
    color: #9a111a;
    font-weight: 700;
}

.sj-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .26rem;
    margin-bottom: .14rem;
    font-size: .15rem;
    color: #9aa5b1;
}

.sj-detail-meta b {
    color: #9a111a;
    font-weight: 700;
}

.sj-detail-desc {
    margin: 0;
    font-size: .16rem;
    line-height: 1.9;
    color: #5d6875;
}

.sj-detail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .2rem;
}

.sj-detail-item {
    margin: 0;
    position: relative;
    border-radius: .12rem;
    overflow: hidden;
    background: #ececec;
    cursor: zoom-in;
    box-shadow: 0 .04rem .14rem rgba(0, 0, 0, .08);
    transition: transform .35s ease, box-shadow .35s ease;
    aspect-ratio: 4 / 3;
}

.sj-detail-item:hover {
    transform: translateY(-.05rem);
    box-shadow: 0 .12rem .3rem rgba(0, 0, 0, .18);
}

.sj-detail-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 1;
    transition: transform .5s ease, opacity .5s ease;
}

.sj-detail-item.loaded img {
    opacity: 1;
}

.sj-detail-item:hover img {
    transform: scale(1.06);
}

.sj-detail-item figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: .4rem .14rem .12rem;
    font-size: .14rem;
    line-height: 1.5;
    color: #fff;
    background: linear-gradient(to top, rgba(0, 0, 0, .68), rgba(0, 0, 0, 0));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sj-detail-foot {
    margin-top: .4rem;
    text-align: center;
}

.sj-detail-foot .sj-back {
    margin-bottom: 0;
}

/* ===== 图集灯箱 ===== */
.sj-lightbox {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, .92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
}

.sj-lightbox.show {
    opacity: 1;
    visibility: visible;
}

.sj-lb-figure {
    margin: 0;
    max-width: 88%;
    max-height: 88%;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: default;
}

.sj-lb-figure img {
    max-width: 100%;
    max-height: 76vh;
    border-radius: .08rem;
    box-shadow: 0 .2rem .6rem rgba(0, 0, 0, .6);
    transform: scale(.92);
    transition: transform .3s;
}

.sj-lightbox.show .sj-lb-figure img {
    transform: scale(1);
}

.sj-lb-figure figcaption {
    margin-top: .2rem;
    display: flex;
    align-items: center;
    gap: .2rem;
    font-size: .15rem;
    color: #e8e8e8;
    text-align: center;
}

.sj-lb-caption {
    display: block;
    max-width: 12rem;
    line-height: 1.6;
}

.sj-lb-counter {
    color: #c7aa8b;
    white-space: nowrap;
}

.sj-lb-close {
    position: absolute;
    top: .3rem;
    right: .4rem;
    z-index: 2002;
    width: .6rem;
    height: .6rem;
    line-height: .6rem;
    text-align: center;
    font-size: .3rem;
    color: #fff;
    background: rgba(255, 255, 255, .15);
    border-radius: 50%;
    cursor: pointer;
    transition: background .3s;
}

.sj-lb-close:hover {
    background: rgba(154, 17, 26, .9);
}

.sj-lb-nav {
    position: absolute;
    top: 50%;
    z-index: 2002;
    width: .7rem;
    height: .7rem;
    margin-top: -.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .28rem;
    color: #fff;
    background: rgba(255, 255, 255, .12);
    border-radius: 50%;
    cursor: pointer;
    transition: background .3s;
    user-select: none;
}

.sj-lb-nav:hover {
    background: rgba(154, 17, 26, .9);
}

.sj-lb-nav.prev {
    left: .4rem;
}

.sj-lb-nav.next {
    right: .4rem;
}

/* ===== 响应式 ===== */
@media screen and (max-width: 1024px) {
    .sj-list {
        grid-template-columns: repeat(2, 1fr);
        gap: .24rem;
    }

    .sj-detail-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .sj-detail-title {
        font-size: .28rem;
    }
}

@media screen and (max-width: 640px) {
    .sj-wrap {
        padding: .3rem .12rem .6rem;
    }

    .sj-list {
        grid-template-columns: 1fr;
    }

    .sj-detail-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: .12rem;
    }

    .sj-card .sj-card-txt {
        padding: .16rem .18rem .18rem;
    }

    .sj-card .sj-card-txt h3 {
        font-size: .19rem;
    }

    .sj-card .sj-card-txt p {
        font-size: .14rem;
    }

    .sj-detail-title {
        font-size: .24rem;
    }

    .sj-detail-meta {
        gap: .16rem;
        font-size: .14rem;
    }

    .sj-detail-desc {
        font-size: .15rem;
    }

    .sj-detail-item figcaption {
        font-size: .12rem;
        padding: .3rem .1rem .08rem;
    }

    .sj-lb-figure {
        max-width: 94%;
    }

    .sj-lb-nav {
        width: .56rem;
        height: .56rem;
        margin-top: -.28rem;
        font-size: .22rem;
    }

    .sj-lb-nav.prev {
        left: .12rem;
    }

    .sj-lb-nav.next {
        right: .12rem;
    }

    .sj-lb-close {
        top: .16rem;
        right: .16rem;
        width: .5rem;
        height: .5rem;
        line-height: .5rem;
        font-size: .24rem;
    }

    .sj-lb-figure figcaption {
        font-size: .13rem;
    }
}
