/* ===================================================
   花不同园艺 (www.huabutong.com) 全站自适应响应式核心样式
   =================================================== */

@media screen and (max-width: 768px) {
  html, body {
    width: 100% !important;
    overflow-x: hidden !important;
    -webkit-text-size-adjust: 100%;
  }

  /* 容器自适应 */
  .pg_margins, .inner, .main-home, .main, .mainbg, .header, .header-inner,
  .s_main, .s_main_left, .s_main_right, #rightObj, .right, .left, .navbox,
  .topArea, .banner, .picBox, .blank-area {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    float: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  /* 顶部与 Logo */
  .topArea { display: none !important; }
  .header { padding: 10px 0 !important; height: auto !important; }
  .logo { text-align: center !important; float: none !important; margin: 0 auto !important; }
  .logo img { max-width: 220px !important; height: auto !important; }

  /* 导航栏自适应横滑 */
  .navbox {
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
    background: #52bb9d !important;
    padding: 0 !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap !important;
  }
  .navbox::-webkit-scrollbar { display: none; }
  .nav { width: auto !important; margin: 0 !important; }
  .nav ul {
    display: flex !important;
    flex-wrap: nowrap !important;
    padding: 0 5px !important;
    margin: 0 !important;
    overflow-x: auto !important;
  }
  .nav ul li {
    flex: 0 0 auto !important;
    float: none !important;
    padding: 0 6px !important;
  }
  .nav ul li a {
    font-size: 14px !important;
    line-height: 40px !important;
    padding: 0 4px !important;
  }
  .nav ul li.line, .nav .shownav { display: none !important; }

  /* Banner 轮播高度适配 */
  .banner, .picBox, .picBox .bd, .picBox .bd ul, .picBox .bd ul li {
    height: 180px !important;
    background-size: cover !important;
  }

  /* 左侧边栏在手机端隐藏 */
  .left, .s_main_left {
    display: none !important;
  }

  /* 面包屑自适应横滑 */
  .location, .breadcrumb-nav {
    width: 100% !important;
    padding: 8px 10px !important;
    font-size: 12px !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
    background: #fcfcfc !important;
    border-bottom: 1px solid #f0f0f0 !important;
  }
  .location::-webkit-scrollbar, .breadcrumb-nav::-webkit-scrollbar { display: none; }

  /* 标题与正文 */
  h1, .title, .display_title h1 {
    font-size: 18px !important;
    line-height: 1.4 !important;
    word-break: break-word !important;
    padding: 10px 0 !important;
  }
  .display_title .info {
    font-size: 12px !important;
    line-height: 20px !important;
    color: #999 !important;
  }
  .display_title .info .font_size, .display_title .info .mobile_qr {
    display: none !important;
  }

  /* 图片与多媒体 100% 防撑破 */
  img, .display_content img, #info_content img, .intro-info-img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 10px auto !important;
  }

  /* 表格自适应横滑 */
  table, .display_content table {
    display: block !important;
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  /* 图文列表自适应 */
  .iFCB-TPLB li, .iFCB-PRO-3, .TTXW_LIST li {
    width: 100% !important;
    float: none !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }
  .iFCB-TPLB li .m-pic img {
    width: 100% !important;
    height: auto !important;
  }

  /* 手机端吸底转化工具条 */
  .mobile-contact-bar {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 48px !important;
    background: #ffffff !important;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.12) !important;
    z-index: 99999 !important;
    align-items: center !important;
    justify-content: space-around !important;
    padding: 0 8px !important;
  }
  .mobile-contact-bar a {
    flex: 1 !important;
    text-align: center !important;
    height: 36px !important;
    line-height: 36px !important;
    margin: 0 4px !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    font-weight: bold !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .mobile-contact-bar .btn-tel {
    background: #ff5722 !important;
    color: #ffffff !important;
  }
  .mobile-contact-bar .btn-chat {
    background: #52bb9d !important;
    color: #ffffff !important;
  }

  /* 为底部留出安全内边距 */
  body {
    padding-bottom: 52px !important;
  }

  /* 页脚精简 */
  .footArea .r-arte, .footArea .touch-box, .foot-left {
    float: none !important;
    width: 100% !important;
    text-align: center !important;
  }
}

@media screen and (min-width: 769px) {
  .mobile-contact-bar {
    display: none !important;
  }
}
