/* =====================
   涉企行政检查公示自适应卡片布局
   ===================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;
  outline: none;
  border: none;
}

.breadcrumb {
  padding-left: 0 !important;
  margin-bottom: 5px;
  padding-bottom: 0;
}

.content {
  width: 100%;
  padding: 17px min(9.375vw, 140px) 65px;
}


.ListRightContent {
  border: 1px solid #e5e5e5;
  padding: 20px;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

/* 标题美化 */
.con-head {
  background: #f5f6f8;
  height: 56px;
  display: flex;
  align-items: center;
  padding-left: 12px;
  font-size: 22px;
  font-weight: bold;
  color: #337ab7;
  margin-bottom: 0;
  border-radius: 0;
  box-shadow: none;
}

.con-head a {
  color: #337ab7;
  font-size: 22px;
  font-weight: bold;
  text-decoration: none;
}

.xxgk-list-block-datalist {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 24px;
  /* 行间距20px，列间距24px */
  padding: 0;
  margin: 0 0 24px 0;
  list-style: none;
  justify-content: flex-start;
}

.xxgk-list-block-datalist li {
  flex: 1 1 calc(20% - 24px);
  /* 5个一行，减去间距 */
  max-width: calc(20% - 24px);
  min-width: 180px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.xxgk-list-block-datalist .txt {
  width: 100%;
  height: 50px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #222;
  transition: border-color 0.2s, color 0.2s;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  font-weight: 400;
}

.xxgk-list-block-datalist .txt:hover,
.xxgk-list-block-datalist .txt:focus {
  border-color: #ff9900;
  color: #ff9900;
}

/* 高亮"工业和信息化局" */
.xxgk-list-block-datalist .txt.highlight {
  color: #ff9900;
  border-color: #ff9900;
  font-weight: bold;
}

/* 其他部门单位单独一行 */
.docuContent:last-child .xxgk-list-block-datalist {
  flex-wrap: nowrap;
}

.docuContent:last-child .xxgk-list-block-datalist li {
  flex: 1 1 100%;
  max-width: 100%;
}

/* 1440px及以上：5列 */
@media (min-width: 1440px) {
  .xxgk-list-block-datalist li {
    flex-basis: calc(20% - 24px);
    max-width: calc(20% - 24px);
  }
}


/* 1280px以下：3列 */
@media (max-width: 1279.98px) {
  .xxgk-list-block-datalist li {
    flex-basis: calc(50% - 24px);
    max-width: calc(50% - 24px);
  }
}


/* 600px以下：2列 */
@media (max-width: 600px) {
  .content {
    padding: 17px 15px 65px;
  }

  .xxgk-list-block-datalist {
    gap: 20px 12px;
  }

  .xxgk-list-block-datalist li {
    flex-basis: calc(50% - 6px);
    max-width: calc(50% - 6px);
    min-width: 0;
    /* 关键：允许收缩 */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* 让a标签填满卡片并居中 */
  .xxgk-list-block-datalist .txt a {
    display: block;
    width: 100%;
    height: 100%;
    text-align: center;
    line-height: 26px;
    color: inherit;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* 兼容IE/老浏览器的间距 */
  .xxgk-list-block-datalist li:not(:last-child) {
    /* margin-right: 24px; 由gap代替 */
  }
}