@charset "utf-8";

/* ==========================================================================
   机关简介系列页面 —— 移动端内容区样式
   适用：领导简介 / 职能职责 / 内设机构（办公室等） / 直属单位
   范围：320–750px；头部、底部不在本文件处理
   ========================================================================== */

@media screen and (min-width: 320px) and (max-width: 750px) {

    /* ------------------------------------------------------------------
       0. 基础复位
       flexible.js 会把 body 写成 14*dpr 的内联字号（视网膜屏可达 42px），
       正文因此被放大，这里用 !important 压回基准值。
       ------------------------------------------------------------------ */
    html,
    body {
        overflow-x: hidden;
        max-width: 100%;
    }

    body {
        font-size: 15px !important;
        color: #3d3d3d;
        -webkit-text-size-adjust: 100%;
    }

    /* 外层容器：1100 定宽改为流式；浅灰底只铺内容区，不干扰站点头部与底部 */
    .part {
        width: 100% !important;
        padding: 0 15px 24px !important;
        margin: 0 auto !important;
        background: #f5f7fa;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
    }

    .part img {
        max-width: 100% !important;
        height: auto !important;
    }

    /* ------------------------------------------------------------------
       1. 面包屑
       PC 版左侧留了 20px 给 w_1.png 小图标，窄屏会溢出且不换行
       ------------------------------------------------------------------ */
    .g_dqwz_1 {
        width: 100% !important;
        height: auto !important;
        line-height: 1.7 !important;
        padding: 12px 0 12px 20px !important;
        margin: 0 !important;
        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;
    }

    /* ------------------------------------------------------------------
       2. 栏目标题
       原为 60px 高 + w_2.png 背景（左侧一个小红十字），移动端改为左侧色条
       ------------------------------------------------------------------ */
    .g_wsjsgkbt {
        width: 100% !important;
        height: auto !important;
        line-height: 1.45 !important;
        margin: 0 0 14px !important;
        padding: 2px 0 2px 10px !important;
        background: none !important;
        border-left: 4px solid #3466ab;
        font-size: 19px !important;
        font-weight: 700 !important;
        color: #1a1a1a !important;
        letter-spacing: 0.5px;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
    }

    /* 内容外框：1100 定宽改为流式 */
    .g_wsjsgk {
        width: 100% !important;
        height: auto !important;
        margin: 0 0 18px !important;
    }

    /* ==================================================================
       3. 领导简介
       ================================================================== */
    .p_eldbk {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 0 14px !important;
        padding: 14px !important;
        background: #fff;
        border: 1px solid #eef1f5;
        border-radius: 10px;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
        overflow: hidden;
    }

    /* 证件照：100×124 缩到 88 宽，圆角裁切 */
    .p_eldpic {
        float: left !important;
        width: 88px !important;
        height: auto !important;
        margin: 0 12px 4px 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 8px;
        overflow: hidden;
        background: #eef1f5;
    }

    .p_eldpic img {
        display: block;
        width: 100% !important;
        height: auto !important;
    }

    /* 姓名行：与证件照并排，虚线分隔去掉 */
    .p_eldnr {
        width: auto !important;
        float: none !important;
    }

    .p_eldnr1 {
        width: auto !important;
        height: auto !important;
        line-height: 1.4 !important;
        padding: 2px 0 0 !important;
        border-bottom: 0 !important;
        font-size: 17px !important;
        font-weight: 700;
        color: #1a1a1a;
    }

    .p_eldnr1 span,
    .p_eldnr1 .p18 {
        display: block;
        padding: 0 !important;
        font-size: 17px !important;
        line-height: 1.4 !important;
        color: #1a1a1a;
    }

    /* 「职责 / 简介」正文：clear 后落到证件照下方，占满整行宽度 */
    .p_eldnr .box {
        width: 100%;
        clear: both;
        padding-top: 2px;
    }

    /* 字段标签做成小色块，独占一行，正文另起 */
    .p_eldnr2 {
        float: none !important;
        display: inline-block !important;
        width: auto !important;
        margin: 12px 0 6px !important;
        padding: 1px 8px !important;
        line-height: 20px !important;
        background: #eaf1fa;
        border-radius: 4px;
        font-size: 12px !important;
        font-weight: 700;
        color: #2b5b96 !important;
    }

    .p_eldnr3 {
        float: none !important;
        width: auto !important;
        margin: 0 !important;
        line-height: 1.85 !important;
        font-size: 15px !important;
        color: #4a4a4a;
        word-wrap: break-word;
        word-break: break-all;
    }

    .p_eldnr3 p {
        margin: 0 0 6px !important;
        line-height: 1.85 !important;
        font-size: 15px !important;
        color: #4a4a4a;
    }

    /* 照片与姓名同处一行、正文整行跨越，避免照片右侧出现一段空白。
       display:contents 让 .p_eldnr 不参与盒模型，其子级直接进网格；
       不支持的旧内核仍走上面的浮动方案，版式不会塌。 */
    @supports (display: contents) {
        .p_eldbk {
            display: -ms-grid;
            display: grid;
            grid-template-columns: 88px 1fr;
            grid-column-gap: 12px;
            -webkit-box-align: start;
            -webkit-align-items: start;
            align-items: start;
        }

        .p_eldpic {
            float: none !important;
            grid-column: 1;
            grid-row: 1;
            margin: 0 !important;
        }

        .p_eldnr {
            display: contents;
        }

        .p_eldnr1 {
            grid-column: 2;
            grid-row: 1;
            -webkit-align-self: center;
            align-self: center;
            padding: 0 !important;
        }

        .p_eldnr .box {
            grid-column: 1 / -1;
            grid-row: 2;
            clear: none !important;
            padding-top: 0;
        }

        .p_eldnr .c,
        .p_eldbk > .c {
            display: none;
        }

        .p_eldnr2 {
            margin-top: 10px !important;
        }
    }

    /* ==================================================================
       4. 职能职责（编辑器正文）
       ================================================================== */
    /* 纯正文页：白卡承载，与其他页面的卡片观感统一 */
    .g_wsjsgk > .trs_editor_view {
        padding: 16px 14px !important;
        background: #fff;
        border: 1px solid #eef1f5;
        border-radius: 10px;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
    }

    .g_wsjsgk .trs_editor_view,
    .g_wsjsgk .trs_editor_view p,
    .g_wsjsgk .trs_editor_view div,
    .g_wsjsgk .trs_editor_view span,
    .g_wsjsgk .trs_editor_view li {
        font-size: 15px !important;
        line-height: 1.9 !important;
        color: #3d3d3d;
        max-width: 100%;
        word-wrap: break-word;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .g_wsjsgk .trs_editor_view p {
        margin: 0 0 10px !important;
    }

    .g_wsjsgk .trs_editor_view img {
        max-width: 100% !important;
        height: auto !important;
        display: block;
        margin: 8px auto;
    }

    /* 宽表格不撑破页面 */
    .g_wsjsgk .trs_editor_view table {
        max-width: 100% !important;
        table-layout: fixed;
        border-collapse: collapse;
    }

    .g_wsjsgk .trs_editor_view td,
    .g_wsjsgk .trs_editor_view th {
        word-break: break-all;
        font-size: 14px !important;
        line-height: 1.7 !important;
    }

    /* ==================================================================
       5. 内设机构（办公室 等）
       ================================================================== */
    /* 同级机构导航：原来每项 240px 宽、浮动，移动端改为横向滑动胶囊 */
    .p_ejglb {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 0 14px !important;
        padding: 12px 0 !important;
        background: transparent !important;
        white-space: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .p_ejglb::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }

    .p_ejglb a {
        float: none !important;
        display: inline-block !important;
        width: auto !important;
        height: 34px !important;
        line-height: 32px !important;
        padding: 0 14px !important;
        margin: 0 8px 0 0 !important;
        background: #fff !important;
        border: 1px solid #e2e7ee;
        border-radius: 17px;
        font-size: 14px !important;
        color: #5b6470 !important;
        text-decoration: none;
        vertical-align: top;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
    }

    .p_ejglb a.p_ejglb_a {
        background: #3466ab !important;
        border-color: #3466ab;
        color: #fff !important;
    }

    /* 机构名称：红色标题条改为整行、圆角 */
    .p_ejgtl {
        float: none !important;
        width: 100% !important;
        height: auto !important;
        line-height: 1.4 !important;
        margin: 0 0 10px !important;
        padding: 10px 14px !important;
        background: #df191a !important;
        border-radius: 6px;
        font-size: 17px !important;
        font-weight: 700;
        color: #fff !important;
        text-align: left !important;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
    }

    .p_ejgzz {
        width: 100% !important;
        height: auto !important;
        line-height: 1.6 !important;
        margin: 0 0 6px !important;
        padding-left: 8px;
        border-left: 3px solid #df191a;
        font-size: 13px !important;
        font-weight: 700;
        color: #df191a !important;
    }

    .p_ejgzznr {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 0 20px !important;
        padding: 14px !important;
        background: #fff;
        border: 1px solid #eef1f5;
        border-radius: 10px;
        line-height: 1.9 !important;
        font-size: 15px !important;
        color: #3d3d3d;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
        word-wrap: break-word;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .p_ejgzznr p,
    .p_ejgzznr div,
    .p_ejgzznr span,
    .p_ejgzznr li {
        font-size: 15px !important;
        line-height: 1.9 !important;
        color: #3d3d3d;
        max-width: 100%;
    }

    .p_ejgzznr p {
        margin: 0 0 8px !important;
    }

    .p_ejgzznr img {
        max-width: 100% !important;
        height: auto !important;
    }

    .p_ejgzznr table {
        max-width: 100% !important;
        border-collapse: collapse;
    }

    /* ==================================================================
       6. 直属单位
       ================================================================== */
    /* 列表：每行 3 个、309px 定宽 → 每行 2 个、白底描边卡片 */
    .g_zsdwli {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
    }

    .g_zsdwli ul {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none;
        display: -webkit-box;
        display: -webkit-flex;
        display: flex;
        -webkit-flex-wrap: wrap;
        flex-wrap: wrap;
        -webkit-box-pack: justify;
        -webkit-justify-content: space-between;
        justify-content: space-between;
    }

    .g_zsdwli li,
    .g_zsdwli li.l {
        float: none !important;
        display: block;
        width: 48.5% !important;
        height: auto !important;
        min-height: 46px !important;
        margin: 0 0 10px !important;
        padding: 0 !important;
        background: #fff !important;
        border: 1px solid #e2e7ee;
        border-radius: 8px;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
        overflow: hidden;
    }

    .g_zsdwli li a,
    .g_zsdwli li.l a {
        display: -webkit-box !important;
        display: -webkit-flex !important;
        display: flex !important;
        -webkit-box-align: center;
        -webkit-align-items: center;
        align-items: center;
        -webkit-box-pack: center;
        -webkit-justify-content: center;
        justify-content: center;
        width: 100% !important;
        height: auto !important;
        min-height: 44px;
        line-height: 1.45 !important;
        margin: 0 !important;
        padding: 8px 8px !important;
        background: none !important;
        font-size: 14px !important;
        color: #3d3d3d !important;
        text-align: center;
        text-decoration: none;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
        word-wrap: break-word;
        word-break: break-all;
    }

    .g_zsdwli li:active {
        background: #f2f6fb !important;
        border-color: #c9d8ea;
    }

    .g_zsdwli ul > .c {
        display: none;
    }

    /* ---------- 单位简介弹层：770×470 固定居中 → 视口自适应 ---------- */
    .WXFExternalLinks .WXFLiContent,
    .WXFLiContent {
        width: auto !important;
        height: auto !important;
        position: fixed !important;
        left: 4vw !important;
        right: 4vw !important;
        top: 50% !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 12px !important;
        background: #fff !important;
        background-image: none !important;
        text-align: left !important;
        z-index: 9999 !important;
        max-height: 80vh;
        overflow: hidden !important;
        -webkit-transform: translateY(-50%);
        transform: translateY(-50%);
        /* 全屏遮罩：投影铺满视口，无需额外 DOM */
        -webkit-box-shadow: 0 0 0 100vmax rgba(15, 23, 42, 0.5), 0 16px 40px rgba(0, 0, 0, 0.28) !important;
        box-shadow: 0 0 0 100vmax rgba(15, 23, 42, 0.5), 0 16px 40px rgba(0, 0, 0, 0.28) !important;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
    }

    /* 弹层标题行（原为 60px 高、三个浮动块） */
    .WXFLiContent > div:first-child {
        width: auto !important;
        height: auto !important;
        line-height: 1.4 !important;
        padding: 12px 14px !important;
        margin: 0 !important;
        border-bottom: 1px solid #eceff3 !important;
        display: -webkit-box;
        display: -webkit-flex;
        display: flex;
        -webkit-box-align: center;
        -webkit-align-items: center;
        align-items: center;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
    }

    .WXFLiContent > div:first-child > div {
        float: none !important;
        width: auto !important;
        height: auto !important;
        line-height: 1.4 !important;
        padding: 0 !important;
        margin: 0 !important;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
    }

    /* 左侧小图标 */
    .WXFLiContent > div:first-child > div:first-child {
        margin-right: 8px !important;
        display: -webkit-box;
        display: -webkit-flex;
        display: flex;
        -webkit-box-align: center;
        -webkit-align-items: center;
        align-items: center;
    }

    .WXFLiContent > div:first-child img {
        width: 18px !important;
        height: 18px !important;
        display: block;
    }

    /* 单位名称 */
    .WXFLiContent > div:first-child > div:nth-child(2) {
        -webkit-box-flex: 1;
        -webkit-flex: 1 1 auto;
        flex: 1 1 auto;
        min-width: 0;
        font-size: 16px !important;
        font-weight: 700;
        color: #1a1a1a !important;
        line-height: 1.4 !important;
        text-align: left !important;
        word-wrap: break-word;
        word-break: break-word;
    }

    /* 关闭按钮 */
    .WXFLiContent > div:first-child > .WXFLICLOSE {
        margin-left: 10px !important;
        padding: 4px !important;
        cursor: pointer;
        opacity: 0.65;
    }

    .WXFLiContent > div:first-child > .WXFLICLOSE img {
        width: 16px !important;
        height: 16px !important;
    }

    /* 弹层正文 */
    .WXFLiContent > div:last-child {
        width: auto !important;
        height: auto !important;
        max-height: calc(80vh - 56px);
        padding: 14px !important;
        margin: 0 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch;
        font-size: 15px !important;
        line-height: 1.85 !important;
        color: #4a4a4a !important;
        text-align: left !important;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
        word-wrap: break-word;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .WXFLiContent > div:last-child p,
    .WXFLiContent > div:last-child div,
    .WXFLiContent > div:last-child span,
    .WXFLiContent > div:last-child li {
        font-size: 15px !important;
        line-height: 1.85 !important;
        color: #4a4a4a !important;
        max-width: 100%;
    }

    .WXFLiContent > div:last-child p {
        margin: 0 0 8px !important;
    }

    .WXFLiContent > div:last-child img {
        max-width: 100% !important;
        height: auto !important;
    }

    .WXFLiContent > div:last-child table {
        max-width: 100% !important;
        border-collapse: collapse;
    }
}
