@charset "utf-8";
/* ========== 基础重置（原样保留） ========== */
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
font,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td {
  border: 0 none;
  font-family: inherit;
  font-size: 100%;
  font-style: inherit;
  margin: 0;
  outline: 0 none;
  padding: 0;
}
input:focus {
  outline: 0 none;
}
a:focus,
*:focus {
  nofocusline: expression(this.onFocus=this.blur());
  outline: none;
}
a {
  text-decoration: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
caption,
th,
td {
  font-weight: normal;
  text-align: left;
}
img,
iframe {
  border: medium none;
}
ol,
ul {
  list-style: none outside none;
}
li {
  vertical-align: top;
  list-style-type: none;
}
input,
textarea,
select,
button {
  font-family: inherit;
  font-size: 100%;
}
.clearfix {
  overflow: auto;
  _height: 1%;
}

/* ========== 全局样式 ========== */
body,
td,
th {
  font-family: "微软雅黑", "Microsoft YaHei", Arial, sans-serif;
}
body {
  background-color: #ffffff;
  background: url(../img/zdgkml_01.jpg) repeat-x;
  margin: 0;
}
* {
  font-size: 14px;
}
a {
  color: #8f5400;
}
a:hover {
  color: #ff0000;
  text-decoration: underline;
}
a img {
  border: 0px;
}

/* ========== 页面专属样式（PC端原样式不变） ========== */
.label {
  width: 225px;
  height: 60px;
  color: #2880ca;
  text-align: center;
  line-height: 60px;
  margin: 0 auto;
  border-bottom: #2880ca solid 3px;
  font-size: 28px;
  font-weight: bolder;
}
.head_bg {
  width: 1000px;
  height: 300px;
  margin: 0 auto;
  background: url(../img/zdgkml_02.jpg) no-repeat center top;
  background-size: cover;
}
.description {
  font-size: 16px;
  width: 840px;
  min-height: 100px;
  border-radius: 10px;
  padding: 20px 30px;
  margin: 0 auto;
  background: #e9eef4;
  line-height: 28px;
  box-sizing: border-box;
}
.cont {
  width: 1200px;
  margin: 50px auto 15px;
  background: #fff;
  padding-top: 30px;
  box-sizing: border-box;
}
.later,
.szfw {
  width: 900px;
  margin: 0 auto;
  border-top: #eee 2px solid;
}
.qx_c,
.qx_cb,
.qx_ca {
  width: 100%;
  margin: 0 auto;
  padding: 30px 0;
}
/* PC端按钮样式：浮动左，固定宽度160px */
.qx_c a,
.qx_ca a {
  color: #666;
  display: block;
  float: left;
  font-family: "微软雅黑";
  text-indent: 15px;
  text-align: center;
  width: 160px;
  height: 40px;
  line-height: 40px;
  border: 1px solid rgb(47, 119, 211);
  margin: 9px;
  background-color: #fff;
  transition: all 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qx_c a:hover,
.qx_ca a:hover {
  color: #000;
  background-color: #f0f7ff;
  border-color: #1a5a9e;
  text-indent: 25px;
}

/* ========== 响应式适配：PC端中等屏幕微调 ========== */
@media screen and (max-width: 1240px) {
  .cont {
    width: 96%;
  }
  .head_bg {
    width: 96%;
    height: auto;
    padding-bottom: 28%;
  }
  .description {
    width: 90%;
  }
  .szfw,
  .later {
    width: 90%;
  }
}
@media screen and (max-width: 992px) {
  .label {
    width: 200px;
    height: 55px;
    line-height: 55px;
    font-size: 24px;
  }
  .description {
    font-size: 15px;
  }
  .cont {
    margin-top: 30px;
  }
}

/* ========== 移动端：两列一行显示（核心修改） ========== */
@media screen and (max-width: 768px) {
  body {
    background-size: 165%;
    background-position-x: -130px;
  }
  .label {
    width: 170px;
    height: 48px;
    line-height: 48px;
    font-size: 22px;
    border-bottom-width: 2px;
  }
  .description {
    width: 92%;
    padding: 16px;
    font-size: 14px;
    line-height: 24px;
  }
  .szfw,
  .later {
    width: 95%;
  }
  .cont {
    margin-top: 20px;
    padding-top: 15px;
  }
  .head_bg {
    padding-bottom: 35%;
  }

  /* 关键：按钮容器改为 grid 两列布局 */
  .qx_c,
  .qx_ca {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px 10px !important;
    padding: 20px 10px !important;
    width: 100% !important;
    box-sizing: border-box;
  }
  .qx_c a,
  .qx_ca a {
    width: auto !important;
    float: none !important;
    margin: 0 !important;
    text-indent: 0 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    text-align: center;
    padding: 0 5px;
    height: 40px;
    line-height: 40px;
    font-size: 14px;
  }
}

/* 屏幕 ≤ 550px：仍保持两列，但可适当缩小内边距 */
@media screen and (max-width: 550px) {
  .label {
    width: 140px;
    height: 42px;
    line-height: 42px;
    font-size: 18px;
  }
  .description {
    font-size: 13px;
    padding: 12px;
    border-radius: 8px;
  }
  .head_bg {
    padding-bottom: 45%;
  }
  .cont {
    width: 98%;
  }
  .qx_c,
  .qx_ca {
    gap: 10px 8px !important;
    padding: 15px 8px !important;
  }
  .qx_c a,
  .qx_ca a {
    height: 38px;
    line-height: 38px;
    font-size: 13px;
  }
}

/* 极窄屏（≤ 480px）依然两列，若想改为单列可自行修改下面 width: 100% */
@media screen and (max-width: 480px) {
  .qx_c a,
  .qx_ca a {
    font-size: 12px;
    white-space: nowrap;
  }
}

/* ========== 全局移动端修复（解决980px问题） ========== */
html,
body {
  min-width: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}
.cont,
.szfw,
.later,
.description,
.qx_ca,
.qx_c {
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}
.description {
  padding-left: 15px !important;
  padding-right: 15px !important;
}

/* ========== 基层政务公开专栏样式（原样保留） ========== */
.dw_box {
  padding-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
}
.dw_box li {
  width: 174px;
  height: 53px;
  border: 1px solid #2f77d3;
  text-align: center;
  font: 18px/53px "";
  border-radius: 10px;
  margin: 20px 0 0 20px;
  list-style: none;
  background-color: #fff;
}
.dw_box li a {
  color: #333;
  display: block;
  width: 100%;
  height: 100%;
}
.gkml_box {
  border: 1px solid #679ed3;
  border-radius: 10px;
  margin-bottom: 60px;
}
.gkml_bar {
  background: url("../image/gkml_bar_bj.png") no-repeat center top;
  font: bold 24px/40px "";
  color: #fff;
  width: 191px;
  height: 40px;
  text-align: center;
  margin: -17px 0 0 -1px;
  background-size: cover;
}
@media screen and (max-width: 768px) {
  .dw_box li {
    width: calc(50% - 20px);
    margin: 10px;
    font-size: 14px;
  }
  .gkml_bar {
    width: 150px;
    font-size: 18px;
  }
}
@media screen and (max-width: 480px) {
  .dw_box li {
    width: calc(100% - 20px);
    max-width: 260px;
    margin: 10px auto;
  }
}
