/**
 * 页面：wtqqq.template.html（五通桥概况）
 */

/* ========== 1200px 以下：容器收窄 ========== */
@media screen and (max-width: 1200px) {
  body > table[width="1200"] {
    width: 100% !important;
    max-width: 1200px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
  }

  body > table.kustis {
    background-size: cover;
  }

  body > table[width="1200"] img[width="422"],
  body > table[width="1200"] img[width="1070"],
  body > table[width="1200"] img[height="180"] {
    max-width: 100%;
    height: auto;
  }
}

/* ========== 1024px 以下：平板 / 移动主布局入口 ========== */
@media screen and (max-width: 1024px) {
  body > table[width="1200"] {
    border-spacing: 12px !important;
  }

  body > table.kustis > tbody > tr > td:first-child {
    display: none;
  }

  body > table.kustis > tbody > tr > td:last-child {
    display: block;
    width: 100% !important;
  }

  body > table[width="1200"]:not(.kustis) > tbody > tr > td {
    display: block;
    width: 100% !important;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
  }

  body > table[width="1200"] td[height] {
    height: auto !important;
  }

  .wtqgk_box {
    width: 100% !important;
    padding-left: 12px;
    height: auto !important;
  }

  .wtqgk_div {
    padding-left: 0;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
  }

  .wtqgk_title {
    margin-bottom: 14px;
  }

  .wtqgk_card {
    width: 170px;
    height: auto;
    margin: 0 6px 12px;
    padding: 10px 6px;
    vertical-align: top;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
  }

  .newslist {
    min-height: 44px;
    height: auto;
    padding: 8px 12px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
  }

  .newslist a {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #main {
    width: 100%;
  }

  #main ul {
    margin: 0;
    padding: 8px;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
  }

  #main ul li {
    float: none;
    width: 180px;
    height: auto;
    margin: 0 6px 10px;
  }

  .list_heng0:link,
  .list_heng0:visited,
  .list_heng0:hover,
  .list_heng0:active {
    width: 100%;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
  }

  #dm {
    width: 100% !important;
    height: auto !important;
  }

  body > table[width="1200"] table[width="100%"] img[width="62"] {
    max-width: 62px;
    height: auto;
  }
}

/* ========== 768px 以下：手机布局 ========== */
@media screen and (max-width: 768px) {
  html {
    font-size: 16px;
  }

  body > table[width="1200"] {
    border-spacing: 8px !important;
  }

  body > table.kustis {
    background: none !important;
    background-image: none !important;
    background-color: #ffffff !important;
  }

  body > table.kustis > tbody,
  body > table.kustis > tbody > tr {
    display: block;
    width: 100%;
  }

  body > table.kustis > tbody > tr > td {
    display: block;
    width: 100% !important;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
  }

  body > table.kustis > tbody > tr > td:first-child {
    display: block !important;
    width: 100% !important;
    height: 168px;
    min-height: 168px;
    padding: 0;
    background: var(--wtqqq-hero-image) no-repeat center center;
    background-size: cover;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
  }

  .wtqgk_box {
    width: 100% !important;
    padding: 14px 10px 12px;
    background-color: #eaf5ff;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    overflow: hidden;
  }

  .wtqgk_div {
    padding-left: 0 !important;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    justify-content: space-between;
  }

  .wtqgk_title {
    height: 34px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 150px auto;
    margin-bottom: 12px;
  }

  .wtqgk_card {
    display: block;
    width: calc(50% - 10px);
    max-width: none;
    margin: 0 5px 10px;
    padding: 10px 4px 8px;
    vertical-align: top;
    background-color: rgba(255, 255, 255, 0.78);
    border-radius: 12px;
  }

  .wtqgk_card svg {
    width: 46px !important;
    height: 46px !important;
  }

  .wtqgk_p {
    margin-top: 6px;
    margin-bottom: 0;
    font-size: 0.875rem;
    line-height: 1.5;
  }

  .STYLE8 {
    font-size: 0.9375rem;
  }

  .STYLE3x,
  .STYLE3x a {
    font-size: 0.8125rem;
    line-height: 1.5;
  }

  body > table[width="1200"] td[bgcolor="#F5F5F5"] table[width="100%"] {
    table-layout: fixed;
  }

  body > table[width="1200"] td[bgcolor="#F5F5F5"] table[width="100%"] td {
    width: 20% !important;
    padding-top: 8px;
    padding-bottom: 8px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
  }

  .newslist a {
    font-size: 0.875rem;
    line-height: 1.5;
  }

  body > table[width="1200"] img[width="422"] {
    width: 100%;
    max-width: 422px;
    height: auto;
  }

  #main ul {
    padding: 6px;
  }

  #main ul li {
    width: calc(50% - 8px);
    margin: 0 4px 8px;
  }

  .list_heng0:link,
  .list_heng0:visited,
  .list_heng0:hover,
  .list_heng0:active {
    height: 44px;
    line-height: 44px;
    font-size: 0.875rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #dm {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    white-space: normal;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
  }

  #dm > table,
  #dm #dm102,
  #dm #dm212 {
    width: 100% !important;
  }

  #dm #dm212 {
    display: none !important;
  }

  #dm #dm102 table {
    width: 100% !important;
  }

  #dm #dm102 table tr,
  #dm #dm102 table tbody {
    display: block;
    width: 100%;
  }

  #dm #dm102 table td {
    display: none;
    width: 100% !important;
    vertical-align: top;
    padding-left: 0;
    padding-right: 0;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
  }

  #dm #dm102 table td.mobile-slide-active {
    display: block;
  }

  #dm #dm102 table td a {
    display: block;
    width: 100%;
  }

  #dm img[height="180"] {
    display: block;
    width: 100%;
    height: auto;
    max-width: none;
  }

  #dm table td {
    padding-left: 4px;
    padding-right: 4px;
  }

  .m-textBox {
    max-width: none;
    margin-top: 6px;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #333333;
    text-align: center;
    word-break: break-all;
    word-wrap: break-word;
  }
}

/* ========== 480px 以下：小屏手机 ========== */
@media screen and (max-width: 480px) {
  body > table[width="1200"] {
    border-spacing: 4px !important;
  }

  body > table.kustis > tbody > tr > td:first-child {
    height: 144px;
    min-height: 144px;
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
  }

  .wtqgk_box {
    padding: 12px 8px 10px;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
  }

  .wtqgk_card {
    width: calc(50% - 8px);
    margin-left: 4px;
    margin-right: 4px;
    padding-left: 2px;
    padding-right: 2px;
  }

  body > table[width="1200"] td[bgcolor="#F5F5F5"] table[width="100%"] td {
    display: inline-block;
    width: 33.33% !important;
    vertical-align: top;
  }

  #main ul li {
    width: calc(50% - 8px);
    margin-left: 4px;
    margin-right: 4px;
  }

  #dm img[height="180"] {
    height: 110px;
  }
}
