/* ============================================================
   魔法化学 移动端响应式样式（PC 与手机共用页面）
   所有规则仅在 max-width:768px 下生效，PC 视觉零影响
   主题色: #ee5253  辅助色: #3b3f77
   ============================================================ */

/* ---------- 移动端头部 ---------- */
.mh-m-header{display:none}

/* ---------- 移动端搜索热词 ---------- */
.mh-m-hotwords{display:none}

@media (max-width:768px){

/* ========== 隐藏 PC 头部与底部 ========== */
.head-top{display:none !important}
.head-bottom{display:none !important}
footer .wscn-footer__wrap{display:none !important}
footer .footer-copyright{padding:12px 10px;font-size:11px;text-align:center;line-height:1.6}
footer_friendlinks,
.footer_friendlinks,
#footer_friendlinks,
.friendlinks{display:none !important}

/* ========== 全局基础 ========== */
html{-webkit-text-size-adjust:100%}
body{min-width:0 !important;overflow-x:hidden;padding-bottom:calc(95px + env(safe-area-inset-bottom));font-size:15px}
body.m-home{padding-bottom:0}
img{max-width:100%;height:auto}
a{-webkit-tap-highlight-color:transparent}

/* ========== 移动端头部：logo + 搜索 ========== */
.mh-m-header{
    display:flex !important;
    align-items:center;
    gap:10px;
    padding:10px 12px;
    background:#fff;
    border-bottom:1px solid #f0f0f0;
    position:sticky;top:0;z-index:999;
}
.mh-m-header .mh-m-logo{flex:0 0 auto;display:flex;align-items:center}
.mh-m-header .mh-m-logo img{height:34px;width:auto;display:block}
.mh-m-header form.mh-m-search{
    flex:1 1 auto;display:flex;align-items:center;
    background:#f5f6f8;border:1px solid #eceef1;border-radius:20px;
    overflow:hidden;height:38px;
}
.mh-m-header form.mh-m-search input{
    flex:1 1 auto;border:0;outline:0;background:transparent;
    padding:0 6px 0 14px;font-size:14px;color:#333;min-width:0;height:100%;
}
.mh-m-header form.mh-m-search button{
    flex:0 0 auto;border:0;outline:0;cursor:pointer;
    background:#ee5253;color:#fff;font-size:14px;
    padding:0 16px;height:100%;line-height:38px;
}

/* 移动端搜索热词 */
.mh-m-hotwords{
    display:flex !important;flex-wrap:wrap;gap:8px 14px;
    padding:10px 14px 4px;background:#fff;
}
.mh-m-hotwords a{
    font-size:13px;color:#666;text-decoration:none;
    padding:4px 10px;background:#f5f6f8;border-radius:14px;
}
.mh-m-hotwords a:active{background:#ee5253;color:#fff}

/* ========== 底部导航（与 wap 站同款 UI：悬浮圆角毛玻璃栏 + 中央圆形凸起） ========== */
#footer-bar{position:fixed;bottom:15px;left:7px;right:7px;z-index:98;height:65px;display:flex;text-align:center;border-radius:25px;background:rgba(255,255,255,.95);backdrop-filter:saturate(180%) blur(10px);-webkit-backdrop-filter:saturate(180%) blur(10px);box-shadow:0 0 15px 0 rgba(0,0,0,.1)}
#footer-bar a:not(.btn){padding-top:12px;position:relative;flex:1 1 auto;color:#1f1f1f;text-decoration:none}
#footer-bar a:not(.btn) span{position:relative;z-index:2;display:block;font-size:10px;font-weight:500;margin-top:-3px;opacity:.7;font-family:roboto,sans-serif}
.footer-bar-1 span{transform:translateY(2px)}
#footer-bar svg{width:24px;height:24px}
.footer-baricon{transform:translateY(-18px)}
/* 中央圆形凸起按钮（首页） */
#footer-bar .circle-nav-2::after{position:absolute;content:"";width:50px;height:50px;top:50%;left:50%;transform:translate(-50%,-50%);margin-top:-25px;border-radius:20px;z-index:-1;background-image:linear-gradient(to bottom,#5D9CEC,#4A89DC)}
#footer-bar .circle-nav-2::before{content:"";position:absolute;top:50%;left:50%;width:50px;height:50px;margin-top:-25px;margin-left:-5px;border-radius:20px;z-index:-1;background-image:linear-gradient(to bottom,#5D9CEC,#4A89DC);transform:scale(.75) translate(-55%,-45%);filter:blur(8px)}
/* 当前模块高亮（主题红 #ee5253） */
#footer-bar a.active-nav:not(.circle-nav-2) svg path{fill:#ee5253}
#footer-bar a.active-nav span{color:#ee5253;opacity:1}

/* ========== 首页：手机端仅 logo+搜索框+热词 ========== */
body.m-home .fun-nav-row,
body.m-home #loginBanner,
body.m-home .information,
body.m-home .yl-banner,
body.m-home .scan-download{display:none !important}
body.m-home footer{display:none !important}

/* ========== 工具模块（hao/ 实验室工具） ========== */
body.m-gongju #navs,
body.m-gongju .container{width:100% !important;max-width:100% !important;padding-left:10px;padding-right:10px;box-sizing:border-box}
body.m-gongju #navs nav{padding:0}
body.m-gongju #tabs_nav{display:flex;overflow-x:auto;-webkit-overflow-scrolling:touch;white-space:nowrap;width:100%;float:none;margin:0}
body.m-gongju #tabs_nav li{flex:0 0 auto;float:none}
body.m-gongju .items{width:100% !important;max-width:100% !important}
body.m-gongju .member_content{width:100% !important;max-width:100% !important;box-sizing:border-box}
body.m-gongju .detail_link a{display:inline-block;margin:4px 8px 4px 0;font-size:13px;padding:4px 8px;background:#f5f6f8;border-radius:4px;text-decoration:none}
body.m-gongju .j_m p.title{font-size:18px}
/* 计算器表单：表格转单列 */
body.m-gongju .u_c_content table,
body.m-gongju .u_c_content tbody,
body.m-gongju .u_c_content tr{display:block;width:100%}
body.m-gongju .u_c_content td{display:block;width:100% !important;padding:5px 0;text-align:left;box-sizing:border-box}
body.m-gongju .u_c_content input[type=text],
body.m-gongju .u_c_content input[type=number],
body.m-gongju .u_c_content select{width:100% !important;max-width:100%;box-sizing:border-box;height:42px;font-size:16px;padding:0 10px;border:1px solid #ddd;border-radius:6px}
body.m-gongju .u_c_content input.btn_m,
body.m-gongju .u_c_content input[type=button],
body.m-gongju .u_c_content input[type=submit]{width:100% !important;height:44px;margin-top:8px;font-size:16px;border:0;border-radius:6px;background:#ee5253;color:#fff;cursor:pointer}
body.m-gongju .item ul{list-style:none;padding:0}
body.m-gongju .item ul li{display:block;width:100% !important;float:none;margin:0 0 8px;padding:10px;background:#f8f9fa;border-radius:8px;box-sizing:border-box}

/* ========== 行情模块（jiage/） ========== */
body.m-jiage .zsl-wiki,
body.m-jiage .wiki_cate{width:100% !important;max-width:100% !important;padding-left:10px;padding-right:10px;box-sizing:border-box}
body.m-jiage .wiki_cate .title .fl{font-size:16px}
body.m-jiage .wiki_cate .english{display:none}
body.m-jiage .container{width:100% !important;max-width:100% !important;padding-left:10px;padding-right:10px;box-sizing:border-box}
/* 国际原油三卡片：纵向排列 */
body.m-jiage .category-block .row{margin:0}
body.m-jiage .category-block .col-xs-4{width:100% !important;float:none;padding:8px 0;box-sizing:border-box}
body.m-jiage .ynnr{padding:10px !important}
body.m-jiage .ynnr_name{font-size:15px !important}
body.m-jiage [id$="_current_price"]{font-size:32px !important}
/* 分类切换 tab：横向滑动 */
body.m-jiage .first_cate{display:flex;overflow-x:auto;-webkit-overflow-scrolling:touch;white-space:nowrap;padding:0}
body.m-jiage .first_cate li{flex:0 0 auto;float:none}
/* 产品名列表 */
body.m-jiage .cate_cont,
body.m-jiage .cate_cont_ul{width:100% !important}
body.m-jiage .cont_box{width:100% !important;padding:0 !important}
body.m-jiage .list{width:100% !important;float:none !important;padding:8px 0;border-bottom:1px solid #f0f0f0}
body.m-jiage .second_cate_cont{float:none !important;width:100% !important}
body.m-jiage .second_cate_cont a{display:inline-block;margin:3px 6px 3px 0;padding:6px 10px;background:#f5f6f8;border-radius:4px;text-decoration:none}
body.m-jiage .second_cate_cont .jiage_list_title{font-size:13px;font-weight:400}
body.m-jiage .list > .jiage_list_title{font-size:15px;font-weight:600;margin:6px 0}
/* 行情详情页（jiage.php） */
body.m-jiage .jiagebox{width:100% !important;box-sizing:border-box;padding:0 10px}
body.m-jiage #rightbanner1{float:none !important;width:100% !important;height:auto !important}
body.m-jiage #rightbanner2{display:none !important}
body.m-jiage #rightbanner1 table{width:100%}
body.m-jiage .data_wrap{width:100% !important;float:none !important;border-right:0 !important;padding:0 !important;overflow:visible !important}
body.m-jiage .animsition > div[style*="870"]{width:100% !important}
body.m-jiage #main{width:100% !important;height:300px !important;float:none !important}
body.m-jiage .jiagebox_right{float:none !important;width:100% !important;display:none !important}
body.m-jiage .jiagebox_left{float:none !important;width:100% !important}
body.m-jiage .ProLbox{width:100% !important;box-sizing:border-box}
body.m-jiage .ProHead{height:auto !important}
body.m-jiage .ProHead_left{float:none !important;width:100% !important}
body.m-jiage .ProHead_right{float:none !important;margin:8px 0}
body.m-jiage .btn_chakanhhw{display:inline-block;padding:10px 14px;font-size:15px}
body.m-jiage .tuijiang_table,
body.m-jiage .tuijiang_table tbody,
body.m-jiage .tuijiang_table tr{display:block;width:100%}
body.m-jiage .tuijiang_table td{display:block;width:100% !important;box-sizing:border-box;text-align:left !important;padding:3px 0}
body.m-jiage .tuijiang_table_td{font-weight:600;color:#666}
/* 行情页通用表格与标题 */
body.m-jiage h1,body.m-jiage h2{font-size:18px;padding:8px 10px}
body.m-jiage table{max-width:100%}

/* ========== 百科模块（baike/） ========== */
body.m-baike{font-size:14px}
body.m-baike .wrap{width:100% !important;padding:0 10px;box-sizing:border-box}
body.m-baike .bread_crumbs{padding:8px 0;font-size:12px;line-height:1.5}
/* 头部：结构式+基本信息 */
body.m-baike .propl{width:100%}
body.m-baike .propl .h1detail{width:100% !important;font-size:20px;padding:8px 0;line-height:1.4}
body.m-baike .propl .si-b{float:none !important;width:100% !important;text-align:center}
body.m-baike .propl .si-b .simg{width:auto !important;height:auto !important;max-width:260px;margin:0 auto;border:1px solid #eee}
body.m-baike .simg img{width:auto !important;height:auto !important;max-width:100%}
body.m-baike .propl .info{float:none !important;width:100% !important}
body.m-baike .propl .info div{line-height:26px;word-break:break-all}
body.m-baike .infosubbox_table,
body.m-baike .infosubbox_table tbody,
body.m-baike .infosubbox_table tr{display:block;width:100%}
body.m-baike .infosubbox_table td{display:block;width:100% !important;padding:1px 0;text-align:left !important}
body.m-baike .infosubbox_table_td{color:#999;font-size:13px}
body.m-baike .infosubbox_pv{word-break:break-all}
/* 锚点导航：吸顶横向滑动 */
body.m-baike .pronav{height:auto !important;margin-top:10px;display:flex;overflow-x:auto;-webkit-overflow-scrolling:touch;white-space:nowrap;background:#fff}
body.m-baike .pronav a[relname]{display:inline-block;line-height:normal;padding:11px 13px;font-size:14px;white-space:nowrap}
body.m-baike .pronav .logofixed,
body.m-baike .pronav .gototopfixed{display:none !important}
body.m-baike .pronav_fixed{position:sticky !important;top:58px;left:0;width:100%;height:auto;padding-left:0 !important;box-shadow:0 3px 4px rgba(0,0,0,.08)}
/* 分节标题 */
body.m-baike .h2cip{width:100% !important;font-size:17px;box-sizing:border-box;padding:12px 2px 8px}
body.m-baike .h2cip .total{font-size:12px}
/* 属性表格：纵向堆叠 */
body.m-baike .ppi .table,
body.m-baike .ppi .table tbody{display:block;width:100%}
body.m-baike .ppi .table tr.ppitem{display:block;width:100%;padding:8px 0;border-bottom:1px solid #f5f5f5}
body.m-baike .ppi .table tr.ppitem td.td{display:block;width:100% !important;border:0;padding:1px 0}
body.m-baike .ppi .pn{font-size:13px;color:#999}
body.m-baike .ppi .pv{float:none !important;width:100% !important;margin:0;font-size:14px;word-break:break-all;white-space:normal;line-height:22px}
/* 供应商 */
body.m-baike .ci_supplerbox{width:100% !important}
body.m-baike .propr{position:static !important;width:100% !important;right:auto !important;top:auto !important;padding:10px 0 !important;box-sizing:border-box}
body.m-baike .supitem{width:100% !important;box-sizing:border-box}
/* 上游/下游网格与合成路线：移动端网格化 */
body.m-baike .mh-precursor-grid{display:grid !important;grid-template-columns:repeat(3,1fr);gap:10px;width:100%}
body.m-baike .mh-precursor-item{text-align:center}
body.m-baike .mh-precursor-img{display:block;width:100%;height:70px;background-size:contain;background-repeat:no-repeat;background-position:center}
body.m-baike .mh-precursor-cas{font-size:11px;color:#ee5253;word-break:break-all}
body.m-baike .mh-precursor-name{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.m-baike .mh-synthesis-row{display:flex;align-items:center;overflow-x:auto;-webkit-overflow-scrolling:touch;padding:8px 0}
body.m-baike .mh-synthesis-item{flex:0 0 auto;text-align:center;text-decoration:none}
body.m-baike .mh-synthesis-img{display:block;width:64px;height:48px;margin:0 auto;background-size:contain;background-repeat:no-repeat;background-position:center}
body.m-baike .mh-synthesis-cas{display:block;font-size:11px;color:#ee5253}
body.m-baike .mh-synthesis-name{display:block;font-size:12px;max-width:80px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.m-baike .mh-synthesis-plus,
body.m-baike .mh-synthesis-arrow{flex:0 0 auto;padding:0 4px;color:#999}
/* 搜索结果列表（search.php） */
body.m-baike .prolistresultbox{width:100% !important;padding:0 10px;box-sizing:border-box}
body.m-baike .cheminfolist{width:100% !important;box-sizing:border-box;padding:12px 0;border-bottom:1px solid #f2f2f2}
body.m-baike .cheminfolist .structimg{float:none !important;width:100% !important;text-align:center;margin:0 0 8px}
body.m-baike .cheminfolist .structimg img{width:auto !important;max-width:200px;height:auto !important}
body.m-baike .cheminfolist .chinfo{float:none !important;width:100% !important;border-right:0 !important}
body.m-baike .cheminfolist .chinfoh2{font-size:14px;line-height:1.6;white-space:normal;word-break:break-all}
body.m-baike .cheminfolist .chinfo div{white-space:normal}

/* 合成路线详情页（baike_synthesis.php 内联样式适配，上下原料区竖排） */
body.m-baike .mh-synthesis-page{max-width:100%;margin:10px auto;padding:0 10px;box-sizing:border-box}
body.m-baike .mh-synthesis-page-title{font-size:17px;margin-bottom:12px;padding-bottom:8px}
body.m-baike .mh-synthesis-block{padding:12px;margin-bottom:15px}
body.m-baike .mh-synthesis-row{flex-direction:column;align-items:center;overflow:visible;padding:10px 0}
body.m-baike .mh-synthesis-side{min-width:0;width:100%;justify-content:center;align-content:center}
body.m-baike .mh-synthesis-upper{max-width:100%}
body.m-baike .mh-synthesis-item{width:86px;margin:4px}
body.m-baike .mh-synthesis-img{width:72px;height:56px;margin-bottom:6px}
body.m-baike .mh-synthesis-plus{margin-top:18px}
body.m-baike .mh-synthesis-reaction{flex:none;display:flex;flex-direction:column;align-items:center;margin:2px 0}
body.m-baike .mh-synthesis-arrow{transform:rotate(90deg);font-size:28px;line-height:34px;height:34px}
body.m-baike .mh-synthesis-conditions-button{width:auto;min-width:140px;margin-top:6px;padding:7px 12px;font-size:13px}
body.m-baike .mh-synthesis-conditions{margin-top:10px;padding:10px 12px}
body.m-baike .mh-synthesis-doc{margin-top:12px;padding-top:12px}
body.m-baike .mh-synthesis-pagination{padding:15px 0;display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:2px}
body.m-baike .mh-synthesis-pagination a,body.m-baike .mh-synthesis-pagination span{margin:2px;padding:6px 10px}

/* 上下游详情页（baike_precursor.php 卡片网格与分页） */
body.m-baike .precursor-card-grid{gap:10px;padding:10px 0}
body.m-baike .precursor-card{width:calc(50% - 5px);padding:8px}
body.m-baike .precursor-img-wrap{height:90px;line-height:90px;margin-bottom:6px}
body.m-baike .precursor-img-wrap img{max-height:90px}
body.m-baike .precursor-name{font-size:12px;height:34px}
body.m-baike .precursor-cas{font-size:11px}
body.m-baike .precursor-pagination{padding:15px 0;display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:2px}
body.m-baike .precursor-pagination a,body.m-baike .precursor-pagination span{margin:2px;padding:6px 10px}
/* 分页跳转（两页共用 .page-jump） */
body.m-baike .page-jump{display:block;width:100%;margin:10px 0 0;text-align:center}
body.m-baike .page-jump input{width:56px;height:32px;font-size:14px}
body.m-baike .page-jump button{padding:7px 14px;font-size:14px}

}
