/* 定制/响应式等服务页 — 文末签约+FAQ 区块（http://yk.qw1688.net/dingzhi/） */

body.page-dingzhi table[width="1200"][height="300"] {
  width: 1200px !important;
  max-width: calc(100% - 40px);
  margin: 0 auto !important;
}

/* 「我们还能做什么」三列浮块：须 1200px 内宽，勿加 yksite-wrap 左右 padding */
body.page-dingzhi .yksite-dingzhi-zzfw {
  width: 1200px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
  overflow: hidden;
  box-sizing: border-box;
}

body.page-dingzhi .yksite-dingzhi-zzfw::after {
  content: "";
  display: table;
  clear: both;
}

body.page-dingzhi table[width="1200"][border="1"] {
  width: 1200px !important;
  max-width: calc(100% - 40px);
  margin-left: auto !important;
  margin-right: auto !important;
  display: table !important;
  table-layout: auto;
  border-collapse: collapse;
}

body.page-dingzhi table[width="1200"][height="37"] {
  width: 1200px !important;
  max-width: calc(100% - 40px);
  margin-left: auto !important;
  margin-right: auto !important;
}

body.page-dingzhi table[width="1200"][border="0"]:not([height="300"]) {
  width: 1200px !important;
  max-width: calc(100% - 40px);
  margin-left: auto !important;
  margin-right: auto !important;
}

body.page-dingzhi table[width="1200"][height="300"] td[width="680"] .indexNewA-c {
  margin: 0 !important;
}

body.page-dingzhi table[width="1200"][height="300"] td[height="55"] {
  overflow: hidden;
  height: 55px !important;
  vertical-align: middle;
}

body.page-dingzhi #ofaqDiv1,
body.page-dingzhi #ofaqDiv2 {
  clear: both;
}

/* PPTBox 误用 document.write 时落在页脚的黑框+圆点，隐藏残留 */
body.page-dingzhi > .mainbox {
  display: none !important;
}

#service-pptbox-host .mainbox,
body.page-dingzhi #service-pptbox-host .mainbox {
  display: block !important;
}

/* 套餐左侧轮播：强制裁剪，防止相邻幻灯片竖向换行溢出 */
body.page-dingzhi #service-pptbox-host,
#service-pptbox-host {
  overflow: hidden !important;
  position: relative;
  width: 454px;
  max-width: 100%;
  height: 309px;
  max-height: 100%;
}

body.page-dingzhi #service-pptbox-host .mainbox,
#service-pptbox-host .mainbox {
  overflow: hidden !important;
  position: relative !important;
  max-width: 100%;
}

body.page-dingzhi #service-pptbox-host .flashbox,
#service-pptbox-host .flashbox {
  overflow: hidden !important;
  white-space: nowrap !important;
  font-size: 0 !important;
}

body.page-dingzhi #service-pptbox-host .flashbox img,
#service-pptbox-host .flashbox img {
  float: left !important;
  display: block !important;
  margin: 0 !important;
}

/* 套餐区左栏外框：裁掉轮播溢出碎片 */
body.page-dingzhi table[width="1200"] td[width="470"] > div {
  overflow: hidden !important;
  box-sizing: border-box;
  position: relative;
}

body.page-dingzhi .xcsDiv,
body.page-dingzhi .m-hp-video {
  overflow: hidden;
}

/* ---------- P3 响应式：定制/营销型业务页 ---------- */
@media screen and (max-width: 991px) {
  body.page-dingzhi div[style*="font-size:36px"] {
    font-size: 26px !important;
    line-height: 1.35;
    padding: 0 16px;
    box-sizing: border-box;
  }

  /* 套餐区：左 PPT + 右表 → 上下堆叠 */
  body.page-dingzhi table[width="1200"][border="0"],
  body.page-dingzhi table[width="1200"][height="37"],
  body.page-dingzhi table[width="1200"][height="300"] {
    display: block !important;
    width: 100% !important;
    max-width: calc(100% - 32px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
  }

  body.page-dingzhi table[width="1200"][border="0"] tbody,
  body.page-dingzhi table[width="1200"][border="0"] tr,
  body.page-dingzhi table[width="1200"][border="0"] td,
  body.page-dingzhi table[width="1200"][height="37"] tbody,
  body.page-dingzhi table[width="1200"][height="37"] tr,
  body.page-dingzhi table[width="1200"][height="37"] td,
  body.page-dingzhi table[width="1200"][height="300"] tbody,
  body.page-dingzhi table[width="1200"][height="300"] tr,
  body.page-dingzhi table[width="1200"][height="300"] td {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box;
  }

  body.page-dingzhi table[width="1200"][height="300"] td[width="680"],
  body.page-dingzhi table[width="1200"][height="300"] td[width="520"] {
    width: 100% !important;
    padding: 12px 16px !important;
  }

  body.page-dingzhi #service-pptbox-host,
  body.page-dingzhi #service-pptbox-host .mainbox {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-height: 200px;
  }

  body.page-dingzhi table[width="1200"][border="0"] td[width="470"] > div {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 220px;
    padding: 8px !important;
    box-sizing: border-box;
  }

  /* 对比表：横向滑动 */
  body.page-dingzhi table[width="1200"][border="1"] {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  body.page-dingzhi table[width="1200"][border="1"] tbody {
    display: table;
    min-width: 640px;
    width: 100%;
  }

  body.page-dingzhi .taocan_titleD,
  body.page-dingzhi .taocan_titleD-1 {
    float: none !important;
    display: inline-block !important;
    margin: 4px 6px 4px 0 !important;
  }

  body.page-dingzhi .taocan_titleE,
  body.page-dingzhi .taocan_titleF,
  body.page-dingzhi .taocan_H5,
  body.page-dingzhi .open_video {
    float: none !important;
    display: inline-block !important;
    margin: 6px 8px 6px 0 !important;
    max-width: 100%;
    box-sizing: border-box;
  }

  body.page-dingzhi .taocan_titleA,
  body.page-dingzhi .taocan_titleB {
    float: none !important;
    width: 100% !important;
    margin: 0 0 6px !important;
  }

  body.page-dingzhi .cuxiaoClass,
  body.page-dingzhi .cuxiaoClass2 {
    display: inline-block !important;
    margin: 4px 6px 4px 0 !important;
    max-width: 100%;
  }

  body.page-dingzhi .taocan_titleo {
    font-size: 16px !important;
    line-height: 1.5 !important;
    padding: 0 16px !important;
    text-align: center;
  }

  body.page-dingzhi table[width="1000"] {
    width: 100% !important;
    max-width: calc(100% - 32px) !important;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.page-dingzhi .yksite-dingzhi-zzfw {
    width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
  }

  body.page-dingzhi .yksite-dingzhi-zzfw .zzfwdiv-red,
  body.page-dingzhi .yksite-dingzhi-zzfw .zzfwdiv-hui {
    width: 50%;
    box-sizing: border-box;
  }
}

@media screen and (max-width: 767px) {
  body.page-dingzhi div[style*="font-size:36px"] {
    font-size: 22px !important;
  }

  body.page-dingzhi .yksite-dingzhi-zzfw .zzfwdiv-red,
  body.page-dingzhi .yksite-dingzhi-zzfw .zzfwdiv-hui {
    width: 100%;
    float: none;
  }

  body.page-dingzhi table[width="1200"][border="1"] tbody {
    min-width: 520px;
  }

  body.page-dingzhi table[width="1200"][border="1"] td {
    font-size: 14px !important;
    padding: 8px 10px !important;
  }
}
