/**
 * 页面：zwzx.template.html（政务资讯频道首页）
 */

/* ========== PC：轮播底部标题栏与分页点 ========== */
td.lunbo .slidebox {
  width: 500px;
  height: 332px;
  position: relative;
}

td.lunbo .swiper-container {
  position: relative;
  width: 100%;
  height: 100%;
}

td.lunbo .swiper-slide {
  position: relative;
}

td.lunbo .swiper-slide a {
  display: block;
  height: 100%;
}

td.lunbo .swiper-slide a img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

td.lunbo .swiper-wrapper {
  height: 332px !important;
}

td.lunbo .slidebox .slide-text {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 40px;
  line-height: 40px;
  padding: 0 120px 0 16px;
  margin: 0;
  font-size: 16px;
  color: #fff;
  text-align: left;
  background: rgba(128, 128, 128, 0.65);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-sizing: border-box;
  z-index: 2;
}

td.lunbo .slidebox .swiper-pagination {
  position: absolute;
  bottom: 0;
  right: 16px;
  left: auto !important;
  width: auto !important;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  z-index: 3;
}

td.lunbo .slidebox .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  margin: 0 !important;
  border: none !important;
  border-radius: 50% !important;
  background: #fff !important;
  opacity: 1 !important;
  font-size: 0;
  line-height: 0;
  color: transparent !important;
}

td.lunbo .slidebox .swiper-pagination-bullet-active {
  background: #1a5a96 !important;
}

/* ========== 1200px 以下：主容器收窄 ========== */
@media screen and (max-width: 1200px) {
  body > table[width="1200"] {
    width: 100% !important;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ========== 1024px 以下：平板 / 移动主布局入口 ========== */
@media screen and (max-width: 1024px) {
  html[data-template-type="2"] {
    overflow-x: hidden;
  }

  body > table[width="1200"] {
    width: 100% !important;
    border-spacing: 0;
    padding-left: 12px;
    padding-right: 12px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
  }

  body > table[width="1200"] > tbody > tr > td,
  body > table[width="1200"] > tr > td {
    display: block;
    width: 100% !important;
    height: auto !important;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
  }

  td.lunbo,
  td.kuang4 {
    display: block;
    width: 100% !important;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
  }

  td.lunbo {
    height: auto !important;
    padding-bottom: 12px;
  }

  td.lunbo .slidebox,
  td.lunbo .swiper-container,
  td.lunbo .swiper-wrapper,
  td.lunbo .swiper-slide {
    width: 100% !important;
    max-width: 100%;
  }

  td.lunbo .slidebox {
    height: auto !important;
    overflow: hidden;
  }

  td.lunbo .swiper-wrapper {
    height: auto !important;
  }

  td.lunbo .swiper-slide a img {
    width: 100% !important;
    max-width: 100%;
    height: auto !important;
    display: block;
  }

  td.lunbo .slidebox .slide-text {
    padding-right: 90px;
    font-size: 14px;
  }

  td.lunbo .slidebox .swiper-pagination {
    right: 10px;
  }

  td.lunbo .slidebox .swiper-pagination-bullet {
    width: 7px;
    height: 7px;
  }

  td.kuang4 {
    margin-bottom: 12px;
  }

  table.siwaht {
    width: 100% !important;
    border-spacing: 0;
  }

  table.siwaht > tbody > tr > td,
  table.siwaht > tr > td {
    display: block;
    width: 100% !important;
    padding-left: 0;
    padding-right: 0;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
  }

  table.siwaht img[width="150"] {
    width: 100% !important;
    max-width: 220px;
    height: auto !important;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  table.siwaht h4 {
    margin-top: 10px;
    margin-bottom: 8px;
    line-height: 1.5 !important;
  }

  table.siwaht a {
    display: block;
    line-height: 1.7;
    word-break: break-all;
    word-wrap: break-word;
  }

  td.kuang4 table[width="100%"] {
    width: 100% !important;
  }

  td.kuang4 td[height="42"] {
    height: auto !important;
    min-height: 44px;
    line-height: 44px;
    padding-left: 12px;
    padding-right: 12px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
  }

  td.kuang4 .STYLE3h,
  td.kuang4 .STYLE3ht {
    font-size: 0.9375rem;
  }

  td.kuang4 table[style*="border-bottom:#CCCCCC 1px dashed"] {
    width: 100% !important;
  }

  td.kuang4 table[style*="border-bottom:#CCCCCC 1px dashed"] td[height="35"] {
    height: auto !important;
    min-height: 40px;
    padding-top: 6px;
    padding-bottom: 6px;
    padding-right: 10px;
    line-height: 1.5;
    word-break: break-all;
    word-wrap: break-word;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
  }

  td.kuang4 table[style*="border-bottom:#CCCCCC 1px dashed"] td[width="90"] {
    width: 96px !important;
    text-align: center;
    padding-left: 6px;
    padding-right: 6px;
    white-space: nowrap;
  }

  .m-timeBox {
    display: inline-block;
    min-height: 32px;
    line-height: 32px;
    white-space: nowrap;
  }
}

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

  html[data-template-type="2"] {
    overflow-x: hidden;
  }

  body > table[width="1200"] {
    width: 100% !important;
    border-spacing: 0;
    padding-left: 8px;
    padding-right: 8px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
  }

  body > table[width="1200"] > tbody > tr > td,
  body > table[width="1200"] > tr > td {
    display: block;
    width: 100% !important;
    height: auto !important;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
  }

  td.lunbo,
  td.kuang4 {
    width: 100% !important;
    display: block;
    margin-bottom: 10px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
  }

  td.lunbo {
    height: auto !important;
    padding-bottom: 8px;
  }

  td.lunbo .slidebox,
  td.lunbo .swiper-container,
  td.lunbo .swiper-wrapper,
  td.lunbo .swiper-slide {
    width: 100% !important;
    max-width: 100%;
  }

  td.lunbo .slidebox {
    height: auto !important;
    overflow: hidden;
  }

  td.lunbo .swiper-wrapper {
    height: auto !important;
  }

  td.lunbo .swiper-slide a img {
    width: 100% !important;
    max-width: 100%;
    height: auto !important;
    display: block;
  }

  td.lunbo .slidebox .slide-text {
    padding-right: 80px;
    font-size: 13px;
  }

  td.lunbo .slidebox .swiper-pagination {
    right: 8px;
  }

  td.lunbo .slidebox .swiper-pagination-bullet {
    width: 7px;
    height: 7px;
  }

  table.siwaht {
    width: 100% !important;
    border-spacing: 0;
  }

  table.siwaht > tbody > tr > td,
  table.siwaht > tr > td {
    display: block;
    width: 100% !important;
    padding-left: 0;
    padding-right: 0;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
  }

  table.siwaht td[width="23%"] {
    padding-bottom: 8px;
  }

  table.siwaht td[width="77%"] {
    padding-bottom: 8px;
  }

  table.siwaht img[width="150"] {
    width: 100% !important;
    max-width: 180px;
    height: auto !important;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  table.siwaht h4 {
    margin-top: 8px;
    margin-bottom: 6px;
    font-size: 0.9375rem;
    line-height: 1.5 !important;
  }

  table.siwaht a {
    display: block;
    font-size: 0.875rem;
    line-height: 1.7;
    word-break: break-all;
    word-wrap: break-word;
  }

  td.kuang4 td[height="42"] {
    height: auto !important;
    min-height: 44px;
    line-height: 44px;
    padding-left: 10px;
    padding-right: 10px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
  }

  td.kuang4 .STYLE3h,
  td.kuang4 .STYLE3ht {
    font-size: 0.9375rem;
  }

  td.kuang4 table[style*="border-bottom:#CCCCCC 1px dashed"] {
    width: 100% !important;
  }

  td.kuang4 table[style*="border-bottom:#CCCCCC 1px dashed"] td[height="35"] {
    height: auto !important;
    min-height: 38px;
    padding-top: 6px;
    padding-bottom: 6px;
    padding-right: 8px;
    line-height: 1.5;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
  }

  td.kuang4 table[style*="border-bottom:#CCCCCC 1px dashed"] td:first-child {
    padding-left: 8px !important;
  }

  td.kuang4 table[style*="border-bottom:#CCCCCC 1px dashed"] td:first-child a {
    display: block;
    font-size: 0.875rem;
    line-height: 1.5;
    word-break: break-all;
    word-wrap: break-word;
  }

  td.kuang4 table[style*="border-bottom:#CCCCCC 1px dashed"] td[width="90"] {
    width: 82px !important;
    text-align: center;
    padding-left: 4px;
    padding-right: 4px;
    white-space: nowrap;
  }

  .m-timeBox {
    display: inline-block;
    font-size: 0.8125rem;
    min-height: 30px;
    line-height: 30px;
    white-space: nowrap;
  }
}

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

  td.lunbo .slidebox .slide-text {
    padding-right: 80px;
    font-size: 13px;
  }

  table.siwaht img[width="150"] {
    max-width: 160px;
  }

  td.kuang4 td[height="42"] {
    padding-left: 8px;
    padding-right: 8px;
  }

  td.kuang4 table[style*="border-bottom:#CCCCCC 1px dashed"] td:first-child {
    padding-left: 6px !important;
  }

  td.kuang4 table[style*="border-bottom:#CCCCCC 1px dashed"] td[width="90"] {
    width: 74px !important;
  }
}
