@charset "utf-8";

/* ========== 图片列表页（委领导图片要闻 等）移动端适配 ==========
   只负责正文区：列表容器 / 图片卡片 / 分页。
   头部、导航、面包屑、栏目标题、底部已由 comment-Mobile.css、footer-Mobile.css 适配，此处不动。
   断点取 749px：comment-Mobile.css 的移动端块是 320–750，而它的 @media (min-width:750px)
   又会把 .pc 打开，750 正好落在两条规则重叠的边界上，这里避开避免出现「桌面头部 + 移动列表」。 ========== */

@media screen and (max-width: 749px) {
    html,
    body {
        overflow-x: hidden;
        max-width: 100%;
    }

    /* 面包屑与栏目标题：部分模板上带内联 width:1100px，这里统一放行 */
    .g_dqwz_1 {
        width: 100% !important;
        height: auto !important;
        line-height: 1.7 !important;
        padding: 12px 0 12px 20px !important;
        margin: 0 !important;
        background-image: url(../images/w_1.png);
        background-position: 0 15px !important;
        background-size: 14px 14px !important;
        font-size: 12px !important;
        color: #8a919c !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;

    }

    .g_dqwz_1 a,
    .g_dqwz_1 .CurrChnlCls {
        font-size: 12px !important;
        color: #8a919c !important;
        text-decoration: none;
    }

    .g_dqwz_1 a:last-child,
    .g_dqwz_1 .CurrChnlCls:last-child {
        color: #3466ab !important;
    }
    /* 主标题 */
    .g_wsjsgkbt {
        width: 100% !important;
        box-sizing: border-box;
    }

    /* 正文容器：页面内联 width:1100px，需要 !important 覆盖 */
    .part {
        width: 100% !important;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    /* 列表容器：内联 width:1100px 同样要覆盖 */
    .g_wsjsgk {
        width: 100% !important;
        height: auto !important;
        margin-bottom: 8px;
        padding: 0 12px;
        box-sizing: border-box;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .p_tplby {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        padding-top: 2px;
    }

    /* ul 内联 width:1250px，改为网格：窄屏单列，宽一点的移动端自动两列 */
    .p_tplby ul {
        width: 100% !important;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 16px;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none;
        align-items: start;
    }

    .p_tplby li,
    .p_tplby li.l {
        float: none !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* 图片外框：桌面是 7px 相框，移动端收窄并裁圆角 */
    .ptptp,
    .ptptp:hover {
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box;
        border: 4px solid #f2f2f2 !important;
        border-radius: 4px;
        overflow: hidden;
    }
    .ptptp:hover {
        border-color: #ddebff !important;
    }
    .ptptp a {
        display: block;
        width: 100%;
    }
    /* 图片按 296×190 的固定比例裁切，避免不同原图比例把卡片撑高 */
    .ptptp img {
        display: block;
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 296 / 190;
        object-fit: cover;
    }

    /* 标题：最多两行 */
    .ptpwz {
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        padding-top: 8px !important;
        font-size: 16px !important;
        line-height: 1.5 !important;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }

    .ptprq {
        width: 100% !important;
        height: auto !important;
        margin: 3px 0 0 !important;
        font-size: 13px !important;
        line-height: 1.4 !important;
    }

    /* 分页：一行放得下就居中一行，放不下自动换行 */
    .paginator {
        height: auto !important;
        padding: 14px 0 2px !important;
        margin: 0 !important;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        /* 抹掉锚点之间 &nbsp; 的宽度，窄屏也不会被挤到换行 */
        font-size: 0;
    }
    .paginator a {
        display: inline-block;
        margin: 4px 3px !important;
        padding: 0 10px !important;
        min-width: 30px;
        font-size: 14px !important;
        line-height: 30px !important;
        text-align: center;
        box-sizing: border-box;
        border-radius: 3px;
    }
    .paginator a.on {
        color: #fff !important;
        background: #006cc4 !important;
        border-color: #006cc4 !important;
    }

    /* 网格布局下不需要清除浮动 */
    .p_tplby .c {
        display: none;
    }
}
