@charset "utf-8";
/* ==========================================================================
   蒙药中药 · 药品列表页 移动端适配（320–750px）
   适配页面：消化系统.html（同模板下的各疾病分类页通用）
   只处理主体内容，头部与底部沿用已完成的移动端方案，不做任何改动
   ========================================================================== */

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

    /* ---------- 公共 ---------- */
    html,
    body {
        overflow-x: hidden;
        max-width: 100%;
    }

    body {
        background: #f4f6f9 !important;
        -webkit-text-size-adjust: 100%;
    }

    /* 外壳是 min-width:1180px，收成流式 */
    .zm-g-doc {
        min-width: 0 !important;
        width: 100% !important;
        background: #f4f6f9 !important;
        padding-bottom: 4px !important;
    }

    /* 面包屑 / 位置栏 */
    .g-twzl {
        width: 100% !important;
        height: auto !important;
        line-height: 1.75 !important;
        padding: 12px 14px !important;
        font-size: 12px;
        color: #8b929b;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
    }

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

    /* 主体容器 */
    .m-gzm-wk {
        width: 100% !important;
        min-width: 0 !important;
        background: transparent !important;
        padding: 0 12px !important;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
    }

    .m-gmz-yp {
        width: 100% !important;
    }

    /* ==================================================================
       一、按疾病查找药品（筛选卡）
       ================================================================== */
    .m-gmzyp-fl {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 0 14px !important;
        padding: 14px !important;
        background: #fff;
        border-radius: 10px;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
    }

    .u-gmzypbt {
        height: auto !important;
        line-height: 1.4 !important;
        font-size: 16px !important;
        font-weight: 700;
        color: #16324f !important;
    }

    /* 处方药提示：另起一行，保持原稿的红色提示语义 */
    .u-gmzypbt .f-cbr {
        display: block;
        margin-top: 6px;
        font-size: 12px !important;
        font-weight: 400;
        line-height: 1.55;
        color: #cd0000 !important;
    }

    .u-gmzyplm {
        height: auto !important;
        min-height: 0 !important;
        padding: 0 !important;
        margin-top: 12px !important;
    }

    .u-gmzyplm ul {
        width: 100% !important;
        display: -webkit-box;
        display: -webkit-flex;
        display: flex;
        -webkit-flex-wrap: wrap;
        flex-wrap: wrap;
    }

    /* 结构里的清浮动空 div 会在 flex 里占位，去掉 */
    .u-gmzyplm .f-cb {
        display: none !important;
    }

    .u-gmzyplm li {
        width: auto !important;
        height: auto !important;
        margin: 0 8px 8px 0 !important;
        float: none !important;
    }

    .u-gmzyplm li a {
        display: block;
        float: none !important;
        height: 30px !important;
        line-height: 28px !important;
        padding: 0 13px !important;
        margin: 0 !important;
        background: #f7f4ec !important;
        border: 1px solid #ece3d2;
        border-radius: 15px;
        font-size: 13px !important;
        color: #736129 !important;
        white-space: nowrap;
    }

    .u-gmzyplm li a.hover,
    .u-gmzyplm li a:hover {
        background: #977313 !important;
        border-color: #977313;
        color: #fff !important;
    }

    /* ==================================================================
       二、蒙药中药（列表小标题）
       ================================================================== */
    .m-gmzyp-xq {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 0 12px !important;
    }

    .u-gmzypxq-bt {
        height: auto !important;
        line-height: 1.4 !important;
        border-bottom: 0 !important;
        padding: 0 !important;
    }

    .u-gmzypxq-bt .u-bt {
        position: relative;
        float: none !important;
        width: auto !important;
        height: auto !important;
        padding-left: 11px;
        font-size: 17px !important;
        font-weight: 700;
        color: #16324f !important;
    }

    .u-gmzypxq-bt .u-bt::before {
        content: "";
        position: absolute;
        left: 0;
        top: 50%;
        width: 4px;
        height: 16px;
        margin-top: -8px;
        border-radius: 2px;
        background: #c0a066;
    }

    /* 原稿这里是空的内容条，只留出多余空白 */
    .u-gmzypxq-nr {
        display: none !important;
    }

    /* ==================================================================
       三、药品列表
       ================================================================== */
    .m-gmzyplba {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
    }

    .m-gmzyplba ul {
        width: 100% !important;
    }

    .m-gmzyplba li {
        width: 100% !important;
        min-height: 0 !important;
        margin: 0 0 12px !important;
        padding: 14px !important;
        background: #fff;
        border-radius: 10px;
        border-bottom: 0 !important;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
        overflow: hidden;
    }

    .m-gmzyplba li:last-of-type {
        margin-bottom: 0 !important;
    }

    /* 包装图：左侧缩略图 */
    .m-gmzyplba li .u-yptp {
        float: left !important;
        /* 原图是 179×239 的竖图，按 0.75 比例裁切，不用 PC 的 179×159 压扁比例 */
        width: 78px !important;
        height: 104px !important;
        margin: 0 12px 0 0 !important;
        border-radius: 6px;
        overflow: hidden;
        background: #eef1f5;
    }

    .m-gmzyplba li .u-yptp a {
        display: block;
        width: 100%;
        height: 100%;
    }

    .m-gmzyplba li .u-yptp img {
        display: block;
        width: 100% !important;
        height: 100% !important;
        -o-object-fit: cover;
        object-fit: cover;
    }

    .m-gmzyplba li .u-ypnr {
        float: none !important;
        width: auto !important;
        height: auto !important;
        margin-left: 0 !important;
    }

    /* 药名与缩略图垂直居中对齐 */
    .m-gmzypnr-mc {
        display: -webkit-box;
        display: -webkit-flex;
        display: flex;
        -webkit-box-align: center;
        -webkit-align-items: center;
        align-items: center;
        min-height: 104px;
        width: auto !important;
        margin-left: 90px;
        height: auto !important;
        line-height: 1.45 !important;
        margin-bottom: 0 !important;
        font-size: 16px !important;
        font-weight: 700;
        color: #16324f !important;
    }

    .m-gmzypnr-bg {
        clear: both;
        height: auto !important;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid #f2f5f9;
    }

    /* 四列信息表 → 标签 / 值 两列 */
    .m-gmzypnr-bg .ue_table table {
        display: block;
        width: 100% !important;
        border: 0 !important;
    }

    .m-gmzypnr-bg .ue_table tbody {
        display: block;
    }

    /* 每行两对「标签 / 值」，网格自动排成两列，长文本在自己的列内换行 */
    .m-gmzypnr-bg .ue_table tr {
        display: -ms-grid;
        display: grid;
        grid-template-columns: 70px 1fr;
        margin-bottom: 3px;
    }

    .m-gmzypnr-bg .ue_table tr:last-of-type {
        margin-bottom: 0;
    }

    .m-gmzypnr-bg .ue_table td {
        display: block;
        width: auto !important;
        height: auto !important;
        padding: 0 !important;
        border: 0 !important;
        font-size: 12.5px !important;
        line-height: 1.75 !important;
    }

    .m-gmzypnr-bg .ue_table td:nth-child(odd) {
        white-space: nowrap;
        color: #a3aab4 !important;
    }

    .m-gmzypnr-bg .ue_table td:nth-child(even) {
        min-width: 0;
        color: #4a5560 !important;
    }

    /* 价格等留空的字段补一个占位符，避免只剩标签悬在那儿 */
    .m-gmzypnr-bg .ue_table td:nth-child(even):has(> br:only-child) > br {
        display: none;
    }

    .m-gmzypnr-bg .ue_table td:nth-child(even):has(> br:only-child)::after {
        content: "—";
        color: #c3c9d1;
    }

    /* ==================================================================
       四、包装图弹层
       ================================================================== */
    #windownbg {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
    }

    #windown-box {
        position: fixed !important;
        left: 50% !important;
        top: 50% !important;
        width: 88% !important;
        max-width: 420px;
        margin: 0 !important;
        max-height: 84%;
        overflow: auto;
        background: #fff;
        border-radius: 10px;
        -webkit-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
    }

    #windown-title {
        position: relative;
        width: auto !important;
        height: auto !important;
        margin: 12px 12px 0 !important;
        padding: 0 0 10px !important;
        line-height: 1.4 !important;
        background: none !important;
        border-bottom: 1px solid #f0f3f7;
        text-indent: 0 !important;
    }

    #windown-title h2 {
        padding-right: 54px;
        font-size: 15px !important;
        font-weight: 700;
        line-height: 1.4 !important;
        color: #16324f !important;
    }

    /* 原稿是雪碧图里的图标，移动端改成可见的文字按钮 */
    #windown-close {
        position: absolute !important;
        right: 0 !important;
        top: 0 !important;
        width: auto !important;
        height: auto !important;
        padding: 3px 10px;
        background: #1a6fb4 !important;
        border-radius: 12px;
        font-size: 12px;
        line-height: 1.4 !important;
        color: #fff !important;
        text-indent: 0 !important;
        overflow: visible !important;
    }

    #windown-content-border {
        padding: 12px !important;
    }

    #windown-content .m-ttupian {
        float: none !important;
        width: 100% !important;
    }

    #windown-content img {
        display: block;
        width: 100% !important;
        height: auto !important;
    }
}
