@charset "utf-8";
/* ==========================================================================
   门户子页面手机端 / 小屏适配
   仅在宽度 <= 1240px 时生效，桌面端（1200px 布局）完全不受影响
   适用于：公告信息、近期开标、集团制度、下载中心、公告详情、常见问题、OA 列表与详情
   ========================================================================== */

@media screen and (max-width: 1240px) {

    html, body { max-width: 100%; overflow-x: hidden; }
    img { max-width: 100%; }

    /* ---------- 外层容器：固定宽度改流式 ---------- */
    .wrap,
    .main,
    .main2,
    .page-wrapper,
    .page-container,
    .page-content-wrapper,
    .page-content {
        width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box;
    }
    .main, .main2 { padding: 0 8px !important; overflow: hidden !important; }

    /* ---------- 顶部：头图、导航 ---------- */
    .header { height: auto !important; }
    .header-container { width: 100% !important; }
    .banner { width: 100% !important; height: auto !important; }
    .banner img { display: block; width: 100%; height: auto; }
    .nav { width: 100% !important; height: auto !important; }
    .menu {
        width: 100% !important;
        height: auto !important;
        margin-left: 0 !important;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    .menu li {
        width: auto !important;
        height: auto !important;
        margin-top: 0 !important;
        padding: 6px 12px;
        float: none !important;
    }
    .portlet-input.ss { display: none !important; }
    .login { width: auto !important; float: none !important; margin: 0 !important; padding: 4px 10px !important; }

    /* ---------- 公告模块标题栏 / 内容区 ---------- */
    .ggxxhead,
    .ggxxhead2 {
        width: 100% !important;
        height: auto !important;
        overflow: hidden;
        box-sizing: border-box;
    }
    .ggxxcontent,
    .ggxxcontent1,
    .ggxxcontent2 {
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box;
    }
    .gc_left { width: 40px; height: auto; }
    .gc_left img { width: 100%; height: auto; }
    .gc_right,
    .gc_mid {
        float: none !important;
        position: static !important;
        width: auto !important;
        height: auto !important;
        margin-left: 40px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box;
    }
    .gc_right table,
    .gc_mid table {
        width: 100% !important;
        min-width: 620px;
    }
    /* 分页条原为绝对定位，小屏改为跟随表格 */
    [id^="page_list_"] {
        position: static !important;
        bottom: auto !important;
        left: 0 !important;
    }
    /* “更多”按钮跟随容器宽度 */
    .ggxxcontent .btn-block,
    .ggxxcontent1 .btn-block,
    .ggxxcontent2 .btn-block {
        position: static !important;
        left: auto !important;
        right: auto !important;
        width: auto !important;
        margin: 6px 0;
    }

    /* ---------- 公告详情页 ---------- */
    #bulletinContent { padding: 10px !important; }
    .ztb-title p { font-size: 18px !important; }
    .ztb-title img { max-width: 60px; height: auto; }
    .panel-padding { padding: 10px !important; }

    /* ---------- 集团制度（Word 粘贴正文） ---------- */
    body > div[class^="Section"],
    .Section0, .Section1, .Section2, .Section3 {
        max-width: 100%;
        overflow-x: auto;
    }
    body table { max-width: 100%; }

    /* ---------- 表格 / layui 卡片：小屏区域横向滚动 ---------- */
    .table-responsive,
    .layui-card,
    .layui-card-body,
    .oa-list-wrap,
    .oa-detail-wrap { max-width: 100% !important; box-sizing: border-box; }
    .layui-card-body { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .table { margin-bottom: 0; }

    /* ---------- 联系我们悬浮图标 ---------- */
    .lxwm-fixed { z-index: 9998; }

    /* ---------- 页脚 ---------- */
    .footer1, .foot, .yqlj {
        width: 100% !important;
        padding: 0 10px !important;
        box-sizing: border-box;
    }
}

@media screen and (max-width: 768px) {

    /* 标题与标签压缩 */
    .tt {
        width: auto !important;
        height: 40px;
        line-height: 40px;
        font-size: 18px;
        padding-right: 8px;
    }
    .tt1, .tt2, .tt11, .tt12, .tt21, .tt22 {
        height: 40px;
        line-height: 40px;
        font-size: 14px;
        padding: 0 6px;
    }

    /* 表格字号与行高 */
    .gc_right, .gc_mid { margin-left: 36px; }
    .gc_right table, .gc_mid table { min-width: 520px; font-size: 14px; }
    .table > thead > tr > th,
    .table > tbody > tr > td {
        padding: 6px 4px !important;
        font-size: 14px;
    }

    #bulletinContent { padding: 6px !important; font-size: 14px; line-height: 1.8; }

    /* OA 列表/详情 */
    .oa-list-wrap, .oa-detail-wrap { width: 100% !important; margin: 15px auto !important; padding: 0 8px !important; }
    .layui-card-header { font-size: 16px !important; }
    .layui-btn { font-size: 13px; padding: 0 12px; }

    /* 页脚文字居中换行 */
    .span5 { padding-left: 0 !important; }
    .footer1 span { display: block; text-align: center; }

    /* 弹层不超出屏幕 */
    .layui-layer { max-width: 96% !important; }
}
