@charset "utf-8";

/* ========== 党建工作 移动端适配 ========== */

/* ===== 焦点图轮播：兼容线上 koala 旧结构（.fPic / .fcon / .D1fBt a） ===== */
.focus:not(.swiper) .fPic { position: absolute !important; left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; }
.focus:not(.swiper) .fcon { position: absolute !important; left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; float: none !important; overflow: hidden; }
.focus:not(.swiper) .fcon img { display: block !important; width: 100% !important; height: 100% !important; object-fit: cover; }
.focus:not(.swiper) .fcon .shadow { position: absolute !important; left: 0 !important; bottom: 0 !important; width: 100% !important; height: 45px !important; line-height: 45px !important; background: rgba(0, 0, 0, .6); }
.focus:not(.swiper) .fcon .shadow a { display: block !important; margin: 0 !important; padding: 0 168px 0 10px !important; box-sizing: border-box; font-size: 17px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.focus:not(.swiper) .fbg { display: flex !important; align-items: center; width: auto !important; height: 45px !important; right: 20px !important; bottom: 0 !important; text-align: left !important; }
.focus:not(.swiper) .fbg .D1fBt { display: flex !important; align-items: center; height: auto !important; margin: 0 !important; overflow: visible !important; }
.focus:not(.swiper) .fbg .D1fBt a { display: block !important; float: none !important; width: 12px !important; height: 12px !important; margin: 0 5px 0 0 !important; border-radius: 50% !important; background: #D9D9D9 !important; font-size: 0 !important; line-height: 0 !important; }
.focus:not(.swiper) .fbg .D1fBt a.current, .focus:not(.swiper) .fbg .D1fBt a:hover { background: #fc114a !important; }
.focus:not(.swiper) .fbg .D1fBt a i { display: none !important; }
.focus:not(.swiper) .fbg > a { float: none !important; position: static !important; top: 0 !important; margin-left: 10px !important; color: #fff !important; font-size: 12px !important; line-height: 1 !important; white-space: nowrap; }


@media screen and (max-width: 768px) {
    /* 防止横向滚动 */
    html, body {
        overflow-x: hidden;
        max-width: 100%;
    }

    /* 主体容器 */
    .g-mn {
        width: 100% !important;
        background: none;
    }
    .g-mnli {
        width: 100% !important;
        padding: 10px 12px !important;
        box-sizing: border-box;
    }

    /* 图片新闻：左右两栏改上下堆叠 */
    .m-tpxw {
        width: 100% !important;
        height: auto !important;
        margin-bottom: 16px !important;
    }
    .m-tp {
        float: none !important;
        width: 100% !important;
        height: auto !important;   /* 焦点图高度随宽度变化（648:364），写死 200px 会溢出去压住「党建动态」 */
        min-height: 0 !important;
        margin-bottom: 16px;
        overflow: hidden;          /* 兜底：任何内部溢出都不外泄遮挡下方栏目 */
    }
    .m-djdt {
        float: none !important;
        width: 100% !important;
        height: auto !important;
    }
    .m-djdt > div {
        width: 100% !important;
        /*background-size: auto 30px !important;*/
        background-position: right center !important;
    }
    .m-djdt li {
        line-height: 1.5 !important;
        padding: 6px 0 6px 15px !important;
        background-position: left center !important;
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 32px !important;
        min-height: 32px;
    }
    .m-djdt li > a {
        font-size: 16px !important;
        flex: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        margin-right: 8px;
    }
    .m-djdt li > span {
        font-size: 13px !important;
        flex-shrink: 0;
        white-space: nowrap;
    }

    /* 焦点图轮播：尺寸收窄（结构规则见文件顶部全局部分） */
    .focus:not(.swiper) {
        width: 100% !important;
        height: 0 !important;
        padding-top: 56.17% !important;  /* 648:364，用 padding 撑高，兼容不支持 aspect-ratio 的浏览器 */
        overflow: hidden;
    }
    .focus:not(.swiper) .fcon .shadow {
        height: 40px !important;
        line-height: 40px !important;
    }
    .focus:not(.swiper) .fcon .shadow a {
        padding: 0 120px 0 10px !important;
        font-size: 14px !important;
    }
    .focus:not(.swiper) .fbg {
        right: 10px !important;
        height: 40px !important;
    }
    .focus:not(.swiper) .fbg .D1fBt a {
        width: 8px !important;
        height: 8px !important;
        margin: 0 6px 0 0 !important;
    }
    .focus:not(.swiper) .prev,
    .focus:not(.swiper) .next {
        display: none !important;
    }

    /* 宣传图 swiper */
    .swiper_djhf {
        width: 100% !important;
        height: 80px !important;
        margin: 0 auto 16px !important;
    }
    .swiper_djhf img {
        width: 100% !important;
        height: 80px !important;
        object-fit: cover;
    }

    /* 廉政 公开 交流 三栏改纵向堆叠 */
    .m-dzkl {
        width: 100% !important;
        height: auto !important;
        margin-bottom: 16px !important;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    .m-dzkl-a {
        float: none !important;
        width: 100% !important;
        height: auto !important;
        margin-right: 0 !important;
        margin-bottom: 0 !important;
        padding-bottom: 10px;
        border-bottom: 1px dashed #ccc;
    }
    .m-dzkl-a:last-child {
        border-bottom: none;
    }
    .m-dzkl-a > div {
        width: 100% !important;
        height: 38px !important;
        line-height: 38px !important;
    }
    .m-dbt1 {
        width: auto !important;
        padding: 0 15px !important;
        background-size: 100% 100% !important;
    }
    .m-dzkl-a ul {
        padding-top: 8px !important;
    }
    .m-dzkl-a li {
        line-height: 1.5 !important;
        padding: 6px 0 6px 15px !important;
        background-position: left center !important;
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 32px !important;
        min-height: 32px;
    }
    .m-dzkl-a li > a {
        font-size: 16px !important;
        flex: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        margin-right: 8px;
    }
    .m-dzkl-a li > span {
        font-size: 13px !important;
        flex-shrink: 0;
        white-space: nowrap;
    }

    /* 标题块 */
    .m-djdt > div a,
    .m-dbt1 {
        font-size: 18px !important;
    }
}

/* ===== 焦点图轮播（Swiper）：静态页与模板共用 ===== */
.focus.swiper { overflow: hidden; }
.focus.swiper .swiper-slide { position: relative; width: 100%; height: 364px; overflow: hidden; background: #000; }
.focus.swiper .swiper-slide > a { display: block; width: 100%; height: 100%; }
.focus.swiper .swiper-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.focus.swiper .shadow { display: block; height: 45px; line-height: 45px; }
.focus.swiper .shadow a { display: block; width: 100%; margin: 0; padding: 0 calc(var(--fbg-w, 140px) + 6px) 0 10px; box-sizing: border-box; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.focus.swiper .fbg { display: flex; align-items: center; gap: 10px; width: auto; height: auto; bottom: 16px; }
.focus.swiper .fbg .D1fBt { display: flex; align-items: center; height: auto; margin: 0; overflow: visible; }
.focus.swiper .fbg .D1fBt .swiper-pagination-bullet { width: 12px; height: 12px; margin: 0 5px 0 0; border-radius: 50%; background: #D9D9D9; opacity: 1; }
.focus.swiper .fbg .D1fBt .swiper-pagination-bullet-active { background: #fc114a; }
.focus.swiper .xw-dj-more { color: #fff; font-size: 12px; line-height: 1; text-decoration: none; white-space: nowrap; }

/* 移动端：与 mobile.css / mobile-dj.css 的 768px 断点一致 */
@media screen and (max-width: 768px) {
    .focus.swiper { width: 100% !important; height: auto !important; aspect-ratio: 648 / 364; margin: 0 auto; }
    .focus.swiper .swiper-slide { height: 100% !important; }
    .focus.swiper .shadow { height: 40px !important; line-height: 40px !important; }
    .focus.swiper .shadow a { font-size: 14px !important; }
    .focus.swiper .fbg { right: 10px !important; bottom: 12px !important; }
    .focus.swiper .fbg .D1fBt .swiper-pagination-bullet { width: 8px; height: 8px; margin: 0 6px 0 0; border: 4px solid transparent; background-clip: padding-box; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); }
    .focus.swiper .fbg .D1fBt .swiper-pagination-bullet-active { width: 8px; border-radius: 50%; }
    /* 宣传图（垂直 swiper）：按原图 1003:100 等比缩放，不再被裁切放大 */
    .swiper_djhf { width: 100% !important; height: auto !important; aspect-ratio: 1003 / 100; margin: 0 0 16px !important; }
    .swiper_djhf .swiper-slide { height: 100% !important; }
    .swiper_djhf img { display: block; width: 100% !important; height: 100% !important; object-fit: contain; }
    .swiper_djhf .swiper-button-prev, .swiper_djhf .swiper-button-next { display: none !important; }
}
