/* 
 * 响应式适配 CSS
 * 为 www.001soft.com 添加移动端适配
 * 保留原有样式，仅覆盖需要响应式调整的部分
 */

/* ============================================
   全局响应式基础设置
   ============================================ */

/* 确保 box-sizing 一致 */
*, *:before, *:after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

/* 图片自适应 */
img {
  max-width: 100%;
  height: auto;
}

/* ============================================
   平板设备 (768px - 1024px)
   ============================================ */
@media screen and (max-width: 1024px) {
  /* 主容器宽度 */
  .m-wrap {
    width: 95%;
    max-width: 1000px;
  }
  
  /* 头部 */
  .m-head {
    height: auto;
    padding: 10px 0;
  }
  
  .m-logo {
    width: 160px;
    height: 60px;
    background-size: contain;
    margin: 10px 0 0 0;
  }
  
  .m-menu {
    width: auto;
    margin-top: 30px;
  }
  
  .m-menu li {
    padding: 0 20px;
  }
  
  /* Banner */
  .m-banner {
    height: auto;
    min-height: 300px;
  }
  
  .m-banner .bg {
    height: auto;
    min-height: 350px;
    background-size: cover;
  }
  
  .m-slider {
    height: auto;
    min-height: 300px;
    margin-top: 0;
    padding: 20px;
  }
  
  .m-slider .info {
    width: 45%;
    margin-left: 10px;
  }
  
  .m-slider .info .title {
    font-size: 26px;
  }
  
  .m-slider .img {
    width: 45%;
    height: auto;
    margin-left: 20px;
  }
  
  /* 服务区域 */
  .m-service {
    padding: 40px 0;
  }
  
  .m-service li {
    width: 25%;
    height: auto;
    min-height: 110px;
  }
  
  /* 产品区域 */
  .m-products-ul {
    width: 100%;
  }
  
  .m-products-ul li {
    width: 31%;
    margin-right: 2%;
  }
  
  /* 客户logo */
  .m-customer-logo {
    width: 100%;
    background-size: contain;
    height: auto;
    padding-bottom: 20%;
  }
  
  /* 页脚 */
  .m-foot-link {
    width: 70%;
  }
  
  .m-foot-logo {
    width: 25%;
  }
  
  /* 子页面 Banner */
  .m-sbanner {
    height: auto;
    min-height: 140px;
  }
  
  .m-sbanner .m-wrap {
    height: auto;
    min-height: 140px;
  }
  
  .m-sbanner .title {
    width: 180px;
    height: 140px;
    background-size: contain;
  }
  
  .m-sbanner .breadcrumb {
    width: auto;
    max-width: 600px;
  }
  
  /* 内容区域 */
  .m-content {
    padding: 20px 0 40px;
  }
  
  /* 产品列表 */
  .m-products-list .info,
  .m-products-list .intro {
    width: 100%;
    float: none;
    border-right: none;
    border-bottom: 1px solid #ddd;
    padding: 20px 0;
  }
  
  .m-products-list .intro {
    padding: 20px 0;
  }
  
  /* 卡片 */
  .m-card {
    width: 100%;
  }
  
  .m-card dd {
    width: 31%;
    margin-right: 2%;
  }
  
  /* 报告页面 */
  .m-reports {
    width: 100%;
    height: auto;
    padding-bottom: 65%;
    background-size: contain;
  }
  
  /* 客户列表 */
  .m-customer-list li {
    width: 50%;
  }
  
  /* 联系页面 */
  .m-contact .info {
    height: auto;
    min-height: 240px;
    padding: 10px 0 0 50%;
    background-size: auto 240px;
    background-position: left center;
  }
}

/* ============================================
   手机设备 (小于 768px)
   ============================================ */
@media screen and (max-width: 767px) {
  /* 全局字体调整 */
  body {
    font-size: 14px;
  }
  
  .f-14 { font-size: 14px; }
  .f-16 { font-size: 15px; }
  
  /* 主容器 */
  .m-wrap {
    width: 100%;
    padding: 0 15px;
  }
  
  /* 头部 - 汉堡菜单 */
  .m-head {
    height: auto;
    min-height: 60px;
    padding: 10px 15px;
    position: relative;
  }
  
  .m-logo {
    width: 140px;
    height: 50px;
    background-size: contain;
    margin: 5px 0;
    float: none;
  }
  
  /* 隐藏原菜单，显示汉堡按钮 */
  .m-menu {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: white;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 0;
    width: 100%;
    float: none;
    text-align: left;
  }
  
  .m-menu.show {
    display: block;
  }
  
  .m-menu li {
    float: none;
    width: 100%;
    padding: 15px 20px;
    border-right: none;
    border-bottom: 1px solid #eee;
  }
  
  .m-menu a {
    display: block;
    font-size: 16px;
    padding-bottom: 0;
    border-bottom: none;
  }
  
  /* 汉堡菜单按钮 */
  .m-head .menu-toggle {
    display: block;
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 1001;
  }
  
  .m-head .menu-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: #333;
    margin: 5px 3px;
    transition: all 0.3s;
  }
  
  /* Banner */
  .m-banner {
    height: auto;
    min-height: 200px;
  }
  
  .m-banner .bg {
    height: auto;
    min-height: 250px;
    margin-top: 0;
    background-size: cover;
    background-position: center;
  }
  
  .m-slider {
    height: auto;
    min-height: auto;
    margin-top: 0;
    padding: 20px 15px;
    position: relative;
    z-index: 1;
  }
  
  .m-slider .info {
    width: 100%;
    float: none;
    margin-left: 0;
    padding-top: 0;
  }
  
  .m-slider .info .title {
    font-size: 22px;
    margin-bottom: 10px;
  }
  
  .m-slider .info p {
    font-size: 14px;
  }
  
  .m-slider .info .but {
    margin-top: 15px;
  }
  
  .m-slider .img {
    display: none;
  }
  
  /* 按钮调整 */
  .button-a {
    font-size: 14px;
    padding: 8px 20px;
    margin-right: 10px;
    margin-bottom: 10px;
  }
  
  /* 服务区域 - 单列 */
  .m-service {
    padding: 30px 0;
    float: none;
  }
  
  .m-service li {
    width: 100%;
    height: auto;
    min-height: 80px;
    border-right: none;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
  }
  
  .m-service span {
    padding-left: 70px;
    background-size: 50px auto;
  }
  
  .m-service b {
    font-size: 18px;
  }
  
  .m-service p {
    margin-bottom: 0;
  }
  
  .m-service a {
    margin-left: 70px;
  }
  
  /* 产品区域 */
  .m-products {
    padding: 40px 0;
  }
  
  .m-products-ul {
    width: 100%;
    padding-top: 15px;
  }
  
  .m-products-ul li {
    width: 100%;
    height: auto;
    min-height: 180px;
    margin-right: 0;
    margin-bottom: 15px;
  }
  
  .m-products-ul a {
    font-size: 14px;
    padding: 15px 20px;
  }
  
  /* 客户区域 */
  .m-customer {
    padding: 20px 0;
  }
  
  .m-customer-logo {
    width: 100%;
    height: auto;
    background-size: 100% auto;
    padding-bottom: 40%;
  }
  
  .m-customer-logo a {
    width: 20%;
    height: 50%;
  }
  
  .m-customer-more {
    padding: 20px 0 30px;
  }
  
  /* 页脚 */
  .m-foot {
    padding: 30px 15px;
  }
  
  .m-foot-link {
    width: 100%;
    float: none;
  }
  
  .m-foot-link p {
    line-height: 24px;
  }
  
  .m-foot-link a {
    font-size: 13px;
  }
  
  .m-foot-logo {
    display: none;
  }
  
  /* 标题 */
  .title-b span {
    font-size: 18px;
  }
  
  .title-b p {
    font-size: 14px;
  }
  
  /* 子页面 Banner */
  .m-sbanner {
    height: auto;
    min-height: 100px;
    background-size: cover;
  }
  
  .m-sbanner .m-wrap {
    height: auto;
    min-height: 80px;
    padding: 15px;
  }
  
  .m-sbanner .title {
    position: relative;
    width: 100%;
    height: auto;
    bottom: auto;
    background: none;
    padding: 0;
  }
  
  .m-sbanner .title span {
    font-size: 20px;
    padding: 0;
    color: white;
  }
  
  .m-sbanner .title p {
    font-size: 12px;
    padding: 5px 0 0 0;
    color: rgba(255,255,255,0.8);
  }
  
  .m-sbanner .breadcrumb {
    position: relative;
    width: 100%;
    height: auto;
    line-height: 24px;
    right: auto;
    bottom: auto;
    text-align: left;
    border-top: 1px solid rgba(255,255,255,0.3);
    margin-top: 10px;
    padding-top: 10px;
  }
  
  .m-sbanner .breadcrumb a {
    font-size: 12px;
  }
  
  /* 子页面 Banner 2 */
  .m-sbanner-2 .m-wrap {
    height: auto;
    min-height: 80px;
    background-size: cover;
    padding: 15px;
  }
  
  .m-sbanner-2 .slogan {
    width: 100%;
    height: auto;
    float: none;
    margin: 0;
    padding: 0;
    background: none;
    text-align: left;
  }
  
  .m-sbanner-2 .slogan span {
    font-size: 20px;
  }
  
  .m-sbanner-2 .slogan p {
    font-size: 12px;
  }
  
  /* 内容区域 */
  .m-content {
    padding: 15px 0 30px;
  }
  
  /* 文档列表 */
  .m-doc ol,
  .m-doc ul {
    padding: 15px;
  }
  
  .m-doc li {
    font-size: 13px;
    line-height: 18px;
  }
  
  /* 联系页面 */
  .m-contact .info {
    height: auto;
    padding: 180px 15px 20px;
    background-size: 100% 180px;
    background-position: top left;
  }
  
  .m-contact .info dd {
    font-size: 14px;
    margin: 15px 0;
  }
  
  /* 客户列表 */
  .m-customer-list {
    padding-top: 20px;
  }
  
  .m-customer-list li {
    width: 100%;
    padding: 10px 15px;
  }
  
  /* 报告页面 */
  .m-reports {
    width: 100%;
    height: auto;
    padding-bottom: 130%;
    background-size: contain;
    background-position: top center;
  }
  
  .m-reports .a,
  .m-reports .b {
    display: none;
  }
  
  /* 卡片列表 */
  .m-card {
    width: 100%;
    padding-top: 10px;
  }
  
  .m-card dd {
    width: 100%;
    margin-right: 0;
    margin-bottom: 20px;
  }
  
  .m-card span {
    font-size: 18px;
  }
  
  /* 产品列表 */
  .m-products-list dd {
    padding: 15px;
    margin: 15px 0 0;
  }
  
  .m-products-list .info {
    width: 100%;
    float: none;
    border-right: none;
    border-bottom: 1px solid #ddd;
    padding: 15px 0;
    text-align: left;
  }
  
  .m-products-list .info .tit {
    font-size: 18px;
  }
  
  .m-products-list .intro {
    width: 100%;
    float: none;
    padding: 15px 0;
  }
  
  .m-products-list .intro p {
    font-size: 13px;
  }
  
  /* Tabs 导航 */
  .m-tabs-nav {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  
  .m-tabs-nav a {
    font-size: 14px;
    padding: 0 15px;
    height: 40px;
    line-height: 40px;
  }
  
  .m-tabs-con p {
    font-size: 13px;
  }
  
  /* 列表 */
  .m-list-1 li {
    width: 100%;
    height: auto;
    min-height: 120px;
    margin-right: 0;
    padding: 15px 0;
  }
  
  .m-list-1 li span {
    font-size: 15px;
  }
  
  .m-list-1 li p {
    font-size: 13px;
  }
  
  .m-list-2 {
    padding-left: 15px;
  }
  
  .m-list-2 li {
    font-size: 14px;
    padding-bottom: 15px;
  }
  
  .m-list-2 blockquote {
    padding: 10px;
    margin-top: 5px;
  }
  
  .m-list-2 blockquote p {
    font-size: 13px;
    line-height: 20px;
  }
  
  .m-list-2 img {
    max-width: 100%;
    margin: 10px 0;
  }
  
  .m-list-3 dt {
    font-size: 15px;
  }
  
  .m-list-3 dt em {
    width: 28px;
    height: 26px;
    line-height: 26px;
  }
  
  .m-list-3 dd {
    padding: 0 0 15px 15px;
  }
  
  .m-list-3 dd p {
    font-size: 13px;
    line-height: 20px;
  }
}

/* ============================================
   小屏手机 (小于 480px)
   ============================================ */
@media screen and (max-width: 479px) {
  .m-wrap {
    padding: 0 10px;
  }
  
  .m-logo {
    width: 120px;
    height: 45px;
  }
  
  .m-slider .info .title {
    font-size: 18px;
  }
  
  .m-slider .info p {
    font-size: 13px;
  }
  
  .button-a {
    font-size: 12px;
    padding: 6px 15px;
    margin-right: 5px;
  }
  
  .m-service span {
    padding-left: 60px;
    background-size: 40px auto;
  }
  
  .m-service b {
    font-size: 16px;
  }
  
  .m-service a {
    margin-left: 60px;
  }
  
  .m-sbanner .title span {
    font-size: 18px;
  }
  
  .m-contact .info {
    padding-top: 150px;
    background-size: 100% 150px;
  }
  
  .m-contact .info dd {
    font-size: 13px;
    margin: 10px 0;
    padding-left: 40px;
  }
}

/* ============================================
   页面标识码徽章 - 移动端调整
   ============================================ */
@media screen and (max-width: 767px) {
  .page-code-badge {
    top: auto;
    bottom: 15px;
    right: 15px;
    padding: 4px 10px;
    font-size: 10px;
  }
  
  .page-code-panel {
    bottom: 50px;
    right: 15px;
    padding: 10px;
    font-size: 11px;
  }
  
  .page-code-panel strong {
    font-size: 12px;
  }
}

/* ============================================
   汉堡菜单按钮样式 (需要 JS 配合)
   ============================================ */
.menu-toggle {
  display: none;
}

@media screen and (max-width: 767px) {
  .menu-toggle {
    display: block;
  }
}
