@charset "utf-8";
/* ============================================================
   内容区移动端适配（统一）
   适用：内蒙古自治区卫生健康医学教育考试网
         住院医师规范化培训
   说明：只处理 .g-tjydoc 主体内容，不含头部 / 底部。
   断点 768px，与站点 main.css 的移动断点保持一致。
   ============================================================ */

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

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

    /* ---------- 主体容器：1100 定宽 -> 流式 ---------- */
    .g-tjydoc {
        width: 100% !important;
        box-sizing: border-box;
    }

    /* ---------- 当前位置（面包屑） ---------- */
    .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;
    }
    .m-gjydqwz {
        width: 100% !important;
        height: auto !important;
        line-height: 1.6 !important;
        padding: 10px 12px !important;
        box-sizing: border-box;
        background-position: left 12px center !important;
        padding-left: 24px !important;
    }

    /* ---------- 频道横幅图（1064x117） ---------- */
    .m-cscfr,
    .m-gjydqym {
        width: 100% !important;
        height: auto !important;
        line-height: 0 !important;
        margin: 0 0 12px !important;
        padding: 0 !important;
        background: none !important;
    }

    .m-cscfr img,
    .m-gjydqym img {
        display: block;
        width: 100% !important;
        height: auto !important;
    }

    /* ============================================================
       医学教育考试网：焦点图 + 通知公告 tab
       ============================================================ */
    .m-cujhk {
        width: 100% !important;
        height: auto !important;
        margin: 0 0 18px !important;
        padding: 0 12px;
        box-sizing: border-box;
    }

    .u-gbtp {
        float: none !important;
        width: 100% !important;
        height: auto !important;
    }

    .m-ckjnb {
        float: none !important;
        width: 100% !important;
        height: auto !important;
        margin: 12px 0 0 !important;
        padding: 0;
        box-sizing: border-box;
    }

    /* 焦点图：575x360 -> 按宽度等比 */
    .focusBox {
        float: none !important;
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 575 / 360;
    }

    .focusBox .banner-pic,
    .focusBox .banner-pic li {
        width: 100% !important;
        height: 100% !important;
    }

    .focusBox .banner-pic img {
        display: block;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
    }

    /* 标题栏 60 -> 44，给圆点让出右侧空间 */
    .focusBox .txt-bg,
    .focusBox .txt {
        height: 44px !important;
    }

    .focusBox .txt li {
        left: 0 !important;
        width: 100% !important;
        height: 44px !important;
        line-height: 44px !important;
    }

    .focusBox .txt li a {
        display: block;
        padding: 0 78px 0 12px !important;
        box-sizing: border-box;
        font-size: 14px !important;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .focusBox .num {
        right: 12px !important;
        bottom: 18px !important;
    }

    .focusBox .num li {
        width: 8px !important;
        height: 8px !important;
        margin-right: 4px !important;
    }

    /* 通知公告 / 中心简介 tab */
    .slideTxtBox {
        float: none !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box;
    }

    .slideTxtBox .hd {
        height: 42px !important;
        line-height: 42px !important;
    }

    .slideTxtBox .hd ul li a {
        padding: 0 10px !important;
        font-size: 17px !important;
    }

    .slideTxtBox .bd {
        padding: 10px 0 !important;
    }

    /* tab 内头条 */
    .m-gbgz2 {
        height: auto !important;
        min-height: 0 !important;
        line-height: 1.5 !important;
        margin-bottom: 10px !important;
        padding-bottom: 8px;
        overflow: hidden;
    }

    .m-gbgz2 a {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        font-size: 15px !important;
        line-height: 1.5 !important;
    }

    /* tab 内列表 */
    .m-gbgz3 li {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: auto !important;
        min-height: 34px;
        line-height: 1.5 !important;
        padding: 6px 0;
        box-sizing: border-box;
    }

    .m-gbgz3 li > a {
        flex: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 14px !important;
    }

    .m-gbgz3 li > span {
        flex-shrink: 0;
        font-size: 12px !important;
    }

    /* 内容区末尾的联系方式图（内联 width:1045px） */
    .g-tjydoc > div[style*="1045px"] {
        width: 100% !important;
        height: auto !important;
        padding: 0 12px 16px !important;
        box-sizing: border-box;
    }

    .g-tjydoc > div[style*="1045px"] img {
        display: block;
        width: 100% !important;
        height: auto !important;
    }

    /* ============================================================
       列表区（两页共用）
       ============================================================ */
    .m-gjytzgz {
        width: 100% !important;
        margin: 0 auto 20px !important;
        padding: 0 12px;
        box-sizing: border-box;
    }

    /* 左右两栏 -> 上下堆叠 */
    .m-gjy-left {
        float: none !important;
        width: 100% !important;
        min-height: 0 !important;
        margin: 0 0 18px !important;
        padding-right: 0 !important;
        border-right: none !important;
        box-sizing: border-box;
    }

    .m-cknhu {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 auto !important;
    }

    /* 栏目标题（工作动态 / 党建工作 ...） */
    .u-coswm {
        width: 100% !important;
        height: 38px !important;
        line-height: 38px !important;
        margin-bottom: 8px !important;
        box-sizing: border-box;
    }

    .u-coswm .u-cjyiu {
        font-size: 17px !important;
    }

    /* 列表项：标题单行省略 + 日期靠右 */
    .u-cijhr li {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: auto !important;
        min-height: 38px;
        line-height: 1.5 !important;
        padding: 7px 0;
        box-sizing: border-box;
    }

    .u-cijhr li > a {
        flex: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 15px !important;
    }

    .u-cijhr li > span {
        flex-shrink: 0;
        float: none !important;
        font-size: 12px !important;
        margin-left: 8px;
    }

    /* 模板残留的空链接不占位（否则 flex 下会吃掉一半宽度） */
    .m-gjytzgz a:empty,
    .m-cujhk a:empty,
    .u-gdtz a:empty {
        display: none !important;
    }

    /* 同一个 li 里若有两个 a，前一个是模板输出的空链接，直接隐藏 */
    .m-gbgz3 li > a:first-of-type:not(:last-of-type),
    .u-cijhr li > a:first-of-type:not(:last-of-type),
    .m-gbgz2 a:first-of-type:not(:last-of-type) {
        display: none !important;
    }

    /* ============================================================
       住院医师规范化培训：专属模块
       ============================================================ */
    .m-gyjtz {
        height: auto !important;
        min-height: 0 !important;
        margin-bottom: 16px !important;
    }

    .u-gbt {
        height: 38px !important;
        line-height: 38px !important;
        margin-bottom: 8px !important;
    }

    .u-gbt a {
        font-size: 17px !important;
    }

    /* 头条（26px 特大字 -> 移动端 18px 两行） */
    .u-gdtz {
        line-height: 1.5 !important;
        margin-bottom: 8px !important;
        padding-bottom: 8px;
        border-bottom: 1px dashed #dcdcdc;
    }

    .u-gdtz a {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        font-size: 18px !important;
        line-height: 1.5 !important;
    }

    .u-gdtz span {
        display: block;
        margin-top: 4px;
        font-size: 12px !important;
    }

    .u-gtzlb li,
    .u-ggglb li {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: auto !important;
        min-height: 34px;
        line-height: 1.5 !important;
        padding: 7px 0 7px 15px;
        box-sizing: border-box;
    }

    .u-gtzlb li > a,
    .u-ggglb li > a {
        flex: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 15px !important;
    }

    .u-gtzlb li > span,
    .u-ggglb li > span {
        flex-shrink: 0;
        font-size: 12px !important;
        margin-left: 8px;
    }

    /* 通知公告区块内联 height:270px */
    .m-gyjgg {
        height: auto !important;
        min-height: 0 !important;
        margin-bottom: 16px !important;
    }

    /* 右栏：登录 iframe + 报名入口 */
    .m-gzyyi-r {
        float: none !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    .m-gjy-right {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        margin-bottom: 16px !important;
        padding-top: 0 !important;
        /* 目标页登录容器固定 305px，灰底铺满整宽，避免右侧露出白边 */
        background-color: #f4f4f4;
    }

    .m-gjy-right iframe {
        display: block;
        /* 与目标页 .m-gjy-right 的 305px 定宽一致，居中后不再靠左留白 */
        width: 305px !important;
        max-width: 100% !important;
        height: 445px !important;
        margin: 0 auto;
        border: 0;
    }

    .m-gzyysxt {
        width: 100% !important;
        margin: 0 auto 15px !important;
        text-align: center;
    }

    .m-gzyysxt .a3 {
        display: block;
        width: 200px !important;
        margin: 0 auto !important;
    }

    /* 咨询举报电话 */
    .m-glifss {
        padding: 12px !important;
        box-sizing: border-box;
    }

    .m-cea {
        font-size: 17px !important;
        margin-bottom: 10px !important;
    }

    .m-glxfsnr {
        width: 100% !important;
        height: auto !important;
    }

    .m-ceb,
    .m-cec,
    .m-ced {
        float: none !important;
        width: 100% !important;
        height: auto !important;
        min-height: 28px;
        line-height: 1.6 !important;
        margin: 0 0 8px !important;
        box-sizing: border-box;
        word-break: break-all;
    }
}
