﻿/* 
 * 移动端响应式样式 - mobile-fix.css
 * 版本：最终稳定版（包含内页图片自适应根本修复）
 */

/* ----- 全局字体定义（图标字体）----- */
@font-face {
  font-family: 'commonfont';
  src: url('/skin/fonts/common.woff') format('woff'),
       url('/skin/fonts/common.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

.commonfont {
  font-family: 'commonfont' !important;
  speak: none;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ----- 媒体查询：仅对移动端生效 (max-width: 992px) ----- */
@media (max-width: 992px) {

  /* ===== 基础修复：防止水平溢出 ===== */
  body {
    overflow-x: hidden !important;
  }

  /* ===== 1. 移动端LOGO显示 ===== */
  #el_6789506665001319.row {
    display: block !important;
    height: 80px !important;
    background-image: url('/skin/image/logo_mobile.png') !important;
    background-position: left center !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
    background-color: transparent !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* ===== 2. Banner轮播图响应式 ===== */
  .owl-carousel {
    width: 100% !important;
  }
  .owl-carousel .owl-item img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* ===== 3. 服务流程 ===== */
  .fwfl {
    width: 100% !important;
    padding: 20px 15px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }
  .fwflx {
    width: 100% !important;
    height: auto !important;
    margin: 20px auto !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
  }
  .fwfla, .fwflb, .fwflc, .fwfld {
    width: 100% !important;
    float: none !important;
    margin: 0 0 20px 0 !important;
    padding: 20px 15px !important;
    border: 1px solid #e6e6e6 !important;
    border-radius: 8px !important;
    background: #fff !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }
  .fwfla div[style*="width:260px"],
  .fwflb div[style*="width:260px"],
  .fwflc div[style*="width:260px"],
  .fwfld div[style*="width:260px"] {
    width: 100% !important;
    margin-left: 0 !important;
    text-align: center !important;
  }
  .fwfla img, .fwflb img, .fwflc img, .fwfld img {
    max-width: 60px !important;
    height: auto !important;
    margin-bottom: 10px !important;
    display: inline-block !important;
  }

  /* ===== 4. yz背景图 ===== */
  .yz {
    height: 340px !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
  }

  /* ===== 5. 公司简介 ===== */
  .about_n {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    margin: 0 auto !important;
  }
  .about_n_r {
    width: 100% !important;
    float: none !important;
    order: 1 !important;
    margin: 0 0 25px 0 !important;
  }
  .about_n_r p {
    margin: 0 !important;
    color: #fff !important;
    font-size: 15px !important;
    line-height: 1.8 !important;
  }
  .about_n_l {
    width: 100% !important;
    float: none !important;
    order: 2 !important;
    text-align: center !important;
  }
  .about_n_l a {
    display: inline-block !important;
    background: #e67816 !important;
    color: #fff !important;
    padding: 12px 30px !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    border: none !important;
  }
  .about_n_l a p {
    margin: 0 !important;
    color: #fff !important;
    font-size: 16px !important;
    line-height: 1 !important;
  }
  .about_bj {
    height: auto !important;
    padding: 30px 15px !important;
    overflow: hidden !important;
    clear: both !important;
  }

  /* ===== 6. 新闻中心 ===== */
  #el_8756646410616967 {
    padding: 30px 0 5px 0 !important;
  }
  .mod-list {
    margin: 0 !important;
    padding: 0 15px !important;
  }
  .mod-list .col-lg-6 {
    width: 100% !important;
    float: none !important;
    margin: 0 0 30px 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid #eee !important;
  }
  .mod-list .col-lg-6:last-child {
    border-bottom: none !important;
  }
  .mod-item {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .mod-pic {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    margin-bottom: 15px !important;
    overflow: hidden !important;
  }
  .mod-pic img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .mod-title,
  .mod-digest {
    width: 100% !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }
  .mod-title {
    font-size: 18px !important;
    font-weight: bold !important;
    margin-bottom: 10px !important;
    color: #333 !important;
  }
  .mod-digest {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #666 !important;
    margin-bottom: 15px !important;
  }
  .mod-read {
    display: inline-block !important;
    padding: 8px 20px !important;
    background: #e67816 !important;
    color: #fff !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    margin-bottom: 20px !important;
  }

  /* ===== 7. 内联固定宽度修复 ===== */
  [style*="width:1200px"],
  [style*="width: 1200px"] {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
  }
  [style*="width:300px"],
  [style*="width: 300px"] {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* ===== 8. 底部固定四个按钮栏 ===== */
  .mobile-footer-bar {
    display: block !important;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10000;
    background-color: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    border-top: 1px solid #eee;
  }

  .mobile-footer-bar .foot-relative {
    display: flex;
    width: 100%;
    justify-content: space-around;
    align-items: center;
    padding: 5px 0 5px !important;
  }

  .mobile-footer-bar a {
    flex: 1;
    text-align: center;
    color: #333;
    text-decoration: none;
    font-size: 12px;
    transition: background-color 0.2s;
  }

  .mobile-footer-bar a:active {
    background-color: #f5f5f5;
  }

  .mobile-footer-bar .commonfont {
    display: block;
    font-size: 24px;
    margin-bottom: 2px;
    color: #e67816;
  }

  .mobile-footer-bar h3 {
    margin: 0;
    font-size: 12px;
    font-weight: normal;
    color: #333;
  }

  body {
    padding-bottom: 60px;
  }

  /* ===== 根本性修复：内页所有图片自适应（覆盖内联宽高）===== */
  /* 限定在内容区域，避免影响LOGO、轮播图等 */
  .pluginContent img,
  .mod-pic img,
  #el_2764782457471358 img,          /* 针对您举例的页面容器（可根据实际调整） */
  .entry-content img,
  .article-content img {
    max-width: 100% !important;
    height: auto !important;
    width: auto !important;           /* 重置内联width，让max-width生效 */
  }
  /* 特别覆盖带有内联宽高的图片（更精确） */
  img[style*="width"][style*="height"] {
    max-width: 100% !important;
    height: auto !important;
    width: auto !important;
  }
}

/* ----- PC端隐藏底部按钮栏 ----- */
.mobile-footer-bar {
  display: none;
}