/*
 * 那艾仪器网站管理系统 irigou模版
 * 上海那艾实验仪器有限公司 版权所有
 * 开发人：俊哥 时间：20260613
*/

/* irigou 网站模版 - 响应式手机端样式 - 2026-06-12 22:30 */
/* 不修改任何桌面端 CSS，仅在手机端覆盖 */

/* 默认：wap-only 隐藏，防止 CSS 加载前闪烁 */
.wap-only { display: none !important; }

/* 手机端显示/PC端隐藏 */
@media (max-width: 768px) {
  .pc-only { display: none !important; }
  .wap-only { display: block !important; }
  body { padding-bottom: 60px; background: #fff; }
}

/* PC端显示/手机端隐藏 */
@media (min-width: 769px) {
  .wap-only { display: none !important; }
  .subNav { display: none !important; }
  #toolbar { display: none !important; }
  #search { display: none !important; }
}

/* ===== 导航栏间距适配（栏目较多时） ===== */
#nav_box .nav ul li {
  margin-left: 18px !important;
  padding: 0 !important;
}
#nav_box .nav ul li a {
  padding: 0 6px !important;
  font-size: 15px !important;
}

/* ===== WAP 头部样式 ===== */
@media (max-width: 768px) {
  #top_main {
    width: 100%; height: 50px; background: #d70000; position: fixed; top: 0; left: 0; z-index: 999;
  }
  #top_main #top { width: 96%; margin: 0 auto; padding: 0 2%; }
  #top_main .logo { float: left; height: 50px; line-height: 50px; }
  #top_main .logo img { max-height: 40px; margin-top: 5px; }
  #top_main #topsearch {
    float: right; width: 30px; height: 50px; background: url(images/ss.png) center no-repeat; background-size: 18px; cursor: pointer;
  }
  #top_main #nav { float: right; width: 40px; height: 50px; position: relative; margin-right: 5px; }
  #top_main #nav .nav {
    width: 24px; height: 24px; background: none; border: none; cursor: pointer; margin-top: 13px; position: relative;
  }
  #top_main #nav .nav:before,
  #top_main #nav .nav:after {
    content: ''; display: block; width: 24px; height: 2px; background: #fff; position: absolute; left: 0;
  }
  #top_main #nav .nav:before { top: 5px; }
  #top_main #nav .nav:after { bottom: 5px; }

  /* 搜索栏 */
  #search { display: none; width: 100%; padding: 10px 0; background: #d70000; position: fixed; top: 50px; left: 0; z-index: 998; }
  #search .txt {
    width: 75%; height: 36px; border: none; border-radius: 18px; padding: 0 15px; font-size: 14px; float: left; margin-left: 3%;
  }
  #search .btn {
    width: 16%; height: 36px; border: none; border-radius: 18px; background: #fff; color: #d70000; font-size: 14px; float: right; margin-right: 3%; cursor: pointer;
  }

  /* 侧滑导航 */
  .subNav { display: none; width: 80%; height: 100%; position: fixed; top: 0; right: 0; z-index: 9999; background: #333; overflow-y: auto; }
  .subNav.subNavCur { display: block; }
  .subNav .list { padding: 60px 0 20px; }
  .subNav .list li { border-bottom: 1px solid #444; }
  .subNav .list li a { display: block; padding: 12px 20px; color: #fff; font-size: 15px; }

  /* WAP 内页分类 */
  .cateList { width: 100%; background: #f8f8f8; padding: 10px 0; }
  .cateList h3 { font-size: 16px; text-align: center; color: #333; margin: 0; }
  .cateList .box { padding: 10px 3%; text-align: center; }
  .cateList .box a {
    display: inline-block; padding: 5px 12px; margin: 3px; background: #fff; border: 1px solid #ddd;
    border-radius: 3px; font-size: 13px; color: #333;
  }
  .cateList .box a.on { background: #d70000; color: #fff; border-color: #d70000; }

  /* 产品/新闻列表-WAP自适应 */
  .ny_pro_list ul li { width: 48% !important; margin: 1% !important; }
  .ny_pro_list ul li .pic img { width: 100%; height: auto; }

  /* 产品详情-WAP */
  .pro_detail_main .prodetail_img { float: none !important; width: 100% !important; }
  .pro_detail_main .pro_detail_text { float: none !important; width: 100% !important; margin-left: 0 !important; }

  /* WAP 底部工具栏 */
  #toolbar {
    width: 100%; height: 55px; position: fixed; bottom: 0; left: 0; z-index: 999;
    background: #fff; border-top: 1px solid #e0e0e0; box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
  }
  #toolbar .list { display: table; width: 100%; }
  #toolbar .list li { display: table-cell; text-align: center; padding: 5px 0; }
  #toolbar .list li a { display: block; color: #666; font-size: 12px; }
  #toolbar .list li a .icon { display: block; width: 24px; height: 24px; margin: 0 auto 3px; background-size: contain; background-repeat: no-repeat; background-position: center; }
  #toolbar .list li a .too-home { background-image: url(images/t_icon01.png); }
  #toolbar .list li a .too-tel { background-image: url(images/t_icon02.png); }
  #toolbar .list li a .too-qiao { background-image: url(images/t_icon03.png); }
  #toolbar .list li a .too-map { background-image: url(images/mulu1.png); }
  #toolbar .list li a.hover .too-home { background-image: url(images/t_icon01.png); }

  /* WAP 微信弹窗 */
  #wxnr { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); z-index: 99999; }
  #wxnr .nrdf {
    width: 80%; margin: 30% auto 0; background: #fff; border-radius: 10px; padding: 20px; text-align: center; position: relative;
  }
  #wxnr .nrdf i { position: absolute; top: 10px; right: 15px; font-size: 20px; cursor: pointer; color: #999; }
  #wxnr .nrdf img { width: 60%; margin: 10px auto; }
  #wxnr .nrdf p { font-size: 14px; color: #666; margin: 5px 0; }

  /* 文章详情-WAP */
  .showInfo { padding: 15px 3%; }
  .showInfo .title { font-size: 18px; color: #333; line-height: 1.4; margin-bottom: 10px; }
  .showInfo .mark { font-size: 13px; color: #999; margin-bottom: 15px; }
  .showInfo .mark span { margin-right: 15px; }
  .showInfo .contxt { font-size: 15px; line-height: 1.8; color: #444; }
  .showInfo .reLink { margin-top: 20px; padding-top: 15px; border-top: 1px solid #eee; }
  .showInfo .reLink div { font-size: 14px; color: #666; margin-bottom: 8px; }
  .showInfo .reLink div a { color: #333; }

  /* 组图轮播-WAP */
  .zutu { width: 100%; overflow: hidden; }
  .zutu .bd ul { overflow: hidden; }
  .zutu .bd ul li { float: left; width: 100%; }
  .zutu .bd ul li img { width: 100%; display: block; }

  /* 新闻/单页内容-WAP */
  .NyNews_Detail { padding: 15px; }
  .NyNews_Detail h1 { font-size: 18px; }
  .ny_about_con { padding: 15px; }

  /* 留言表单-WAP */
  .ly_msg h3 { font-size: 16px; }
  .ly_msg ul li { margin-bottom: 10px; }
  .ly_msg ul li h4 { width: 80px; font-size: 14px; }
}
