.home-contain {
  width: 100%;
  position: relative;
}

.home-contain-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  min-height: 200px;
  margin-top: 30px;
  /* padding-bottom: 15px; */
  overflow: hidden;
  max-width: 1250px;
}

/* 新闻资讯 */
.xwzx {
  flex: 1;
  /* height: 446px; */
  width: 100%;
}

.xwzx-title {
  background: url(../images/xwzx.png) no-repeat;
  height: 30px;
  text-align: right;
}

.xwzx-title img {
  width: 83px;
  height: 30px;
}

.home-float-left {
  position: fixed;
  /* 初始位置，可以根据需要调整 */
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  z-index: 9999;
  /* 确保在其他内容上方显示 */
  transition: transform 0.3s ease;
  /* 平滑移动效果 */
  max-width: 120px;
  /* 根据需要调整 */
  width: 100%;
}

.home-float-right {
  position: fixed;
  /* 初始位置，可以根据需要调整 */
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  z-index: 9999;
  /* 确保在其他内容上方显示 */
  transition: transform 0.3s ease;
  /* 平滑移动效果 */
  max-width: 120px;
  /* 根据需要调整 */
  width: 100%;
}

/* 关闭图标样式 */
.close-icon {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 24px;
  height: 24px;
  background: #fff;
  color: #333;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.close-icon:hover {
  transform: scale(1.1);
}
.top-1 {
  padding: 16px 16px 20px 16px;
}

.top-1 a {
  color: red !important;
  font-size: 22px !important;
  font-weight: bold;
}
.right-float-yj {
  width: 100%;
  height: 40px;
  margin-bottom: 20px;
}

.wx-icon {
  width: 100%;
  height: auto;
  /* 保持宽高比 */
  display: block;
  /* 移除图片下方间隙 */
}

.xwzx-content {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  /* height: 396px; */
}

.xw-left {
  width: 50%;
  flex-shrink: 0;
}

.xw-right {
  width: 50%;
  background: #f2f5fa;
  border-radius: 8px;
  /* padding: 16px 0; */
  box-sizing: border-box;
  overflow: hidden;
}

.xw-right > div {
  width: 100%;
}

/* Tab 样式 */
.x-tab {
  margin-bottom: 2px;
  width: 100%;
  padding: 0 16px;
}

.x-tab-item {
  padding: 8px 16px;
  border-radius: 4px;
  background: #fff;
  transition: all 0.3s ease;
  width: 33%;
  text-align: center;
}

.x-tab-item a {
  color: #666;
  font-size: 1em;
  font-weight: 500;
}

.x-tab-item.on {
  background: #4679cb;
}

.x-tab-item.on a {
  color: #fff;
}

/* 新闻列表样式 */
.xinxi_center_l {
  margin-top: 8px;
  background: #fff;
  gap: 1em;
  display: flex;
  flex-direction: column;
}

.xinxi_center_l p {
  padding: 8px 16px;
  /* border-bottom: 1px solid #e8e8e8; */
  background: #f2f5fa;
  display: flex;
  align-items: center;
}

/* .xinxi_center_l p:last-child {
  border-bottom: none;
} */

.x-link {
  color: #333;
  font-size: 14px;
  line-height: 1.4;
}

.x-link:hover {
  color: #4679cb;
}

.x-date {
  color: #999;
  font-size: 12px;
  white-space: nowrap;
}

/* 教育概览 */
.jygl {
  display: none;
  width: 30%;
}

.jygl-title {
  background: url(../images/jygl.png) no-repeat;
  height: 30px;
  text-align: right;
}

.jygl-title img {
  width: 83px;
  height: 30px;
}

/*轮播*/
.silder {
  width: 100%;
  height: 100% !important;
  /* height: 396px !important; */
  overflow: hidden;
  text-align: center;
  margin: 0 auto;
  position: relative;
  float: left;
}

.silder .silder_list {
  height: 100% !important;
  overflow: hidden;
  position: relative;
  background: #f2f5fa;
  font-size: 16px;
  text-align: left;
}

.silder .silder_list li:first-child {
  z-index: 2;
}

.silder .silder_list li {
  height: 100% !important;
  display: flex;
  flex-direction: column !important;
  z-index: 1;
  position: absolute;
  /* 绝对定位，避免布局重排 */
  top: 0;
  left: 0;
  width: 100%;
  /* transition: opacity 0.5s ease-in-out;  只对透明度做过渡
  opacity: 0; 默认透明 */
}

.silder .silder_list li.slideshide {
  z-index: -1;
}

/* 激活状态的轮播项 */
.silder .silder_list li.active {
  opacity: 1 !important;
  z-index: 2;
}

.silder .silder_list a {
  position: absolute;
  top: 0;
  left: 0;
}

.silder .silder_list a,
.silder .silder_list img {
  display: inline-block;
  height: 100% !important;
  /* max-height: 315px; */
}

.carousel-image {
  flex: 1;
  /* width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 100%; 滚动bug*/
}

.carousel-title {
  margin-top: 10px;
  padding: 16px;
  position: absolute;
  bottom: 0;
  background-color: #66614f;
  opacity: 0.5;
  width: 100%;
  color: #fff;
  padding: 16px;
}

.carousel-time {
  padding: 2px 16px 10px 16px;
  color: #666666;
  line-height: 24px;
  display: none;
}

.arrow-blue {
  width: 26px;
  height: 6px;
  background: url(../images/home/arrow-r-blue.png) no-repeat;
  background-size: 100% 100%;
  margin: 5px 16px 10px 16px;
}

.silder .silder_page {
  /* position: absolute;
  bottom: 60px;
  right: 10px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(50px); */
  text-align: right;
  margin: 0 auto;
  right: 1px;
  overflow: hidden;
  position: absolute;
  bottom: 1px;
  height: 50px;
  z-index: 10;
}

.silder .silder_page li {
  /* display: inline-block;
  color: #333;
  font-size: 16px;
  line-height: 1;
  margin: 0;
  padding: 0;
  background: none;
  width: auto;
  height: auto;
  float: none; */
  width: 20px;
  font-size: 14px;
  float: left;
  height: 20px;
  line-height: 20px;
  margin: 15px 10px 0 0;
  background: #f1f1f1;
  display: inline-block;
  text-align: center;
  color: #000;
}

.silder .silder_page li.current {
  background: #245399;
  color: #fff;
}

.silder .silder_page li:hover {
  cursor: pointer;
}

.silder .silder_page .arrow-left,
.silder .silder_page .arrow-right {
  width: 16px;
  height: 16px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
  display: inline-block;
}

.silder .silder_page .arrow-left {
  background-image: url(../images/home/arrow-l.png);
}

.silder .silder_page .arrow-right {
  background-image: url(../images/home/arrow-r.png);
}

.silder .silder_page .page-info {
  display: flex;
  color: #fff;
  align-items: center;
  gap: 4px;
}

.silder .silder_page .page-info .current-page {
  font-size: 20px;
  font-weight: bold;
}

.silder .silder_page .page-info .total-page {
  font-size: 16px;
  font-weight: normal;
}

.silder_desc {
  /* color: #fff;
  float: left;
  line-height: 50px;
  height: 50px;
  width: 100%;
  overflow: hidden;
  position: absolute;
  left: 0;
  bottom: 0;
  text-align: left;
  text-indent: 10px;
  z-index: 9; */
  color: #fff;
  float: left;
  line-height: 50px;
  height: 50px;
  font-size: 14px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  position: absolute;
  left: 0;
  bottom: 0;
  text-align: left;
  text-indent: 10px;
  width: 100%;
  z-index: 9;
  width: 75%;
}

.silder .silder_page li:hover {
  cursor: pointer;
}

.silderbottom {
  position: absolute;
  bottom: 0;
  background-color: #66614f;
  height: 50px;
  width: 100%;
  filter: alpha(Opacity=80);
  -moz-opacity: 0.5;
  opacity: 0.5;
  z-index: 9;
}

.jygl-content {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.jygl-content p {
  padding: 8px 0;
  background: #f2f5fa;
  padding: 14px 16px;
  height: 86px;
  display: flex;
  align-items: center;
}

.banner-center {
  width: 100%;
  height: 174px;
  margin-top: 24px;
  background: url(../images/home/banner-center.jpg) no-repeat center center;
  background-size: 100% 100%;
}

.banner-center img {
  width: 100%;
  height: 100%;
  min-height: 50px;
  display: none;
}

.x-block-date {
  background: #ffffff;
  padding: 5px 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-right: 16px;
  border-radius: 8px 0px 8px 8px;
  flex-shrink: 0;
  width: 68px;
}

.x-block-date span:first-child {
  font-size: 16px;
  font-weight: bold;
}

/* .x-block-date span:last-child {
  font-size: 14px;
} */

.zwgk-block {
  width: 100%;
  padding: 50px 0 90px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(
    180deg,
    rgba(159, 188, 225, 0) 0%,
    rgba(179, 205, 238, 0.22) 42%,
    #d0e4ff 100%
  );
  transition: all 0.3s ease-in-out;
}

.home-arrow-down {
  width: 30px;
  height: 30px;
  margin: 20px 0px 0px 0;
  display: none;
}

.zwgk-center {
  display: flex;
  justify-content: space-between;
  flex: 1;
  width: 100%;
  align-items: center;
  margin-bottom: 20px;
  transition: all 0.3s ease-in-out, transform 0.8s ease-in-out;
}
.zwgk-center-high {
  margin-bottom: 200px;
}

/* 动画状态：上移并调整布局 */
.zwgk-center.animate-up {
  /* justify-content: flex-start;
  align-items: flex-start;
  padding-top: 20px; */
  /* transform: translateY(-30px); */
}

.zwgk-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px; /* 原gap:20px 改为10px，减少图标与标题间距 */
  width: 18%;
  height: 140px;
  justify-content: center;
  position: relative;
  transition: all 0.8s ease-in-out;
  cursor: pointer;
  padding-top: 2px; /* 新增：减少顶部留白 */
  padding-bottom: 2px; /* 新增：减少底部留白 */
}

/* 动画状态：未选中元素缩小 */
.zwgk-center.animate-up .zwgk-item {
  width: 16% !important;
  gap: 15px;
}

.zwgk-center.animate-up .selected {
  justify-content: flex-start !important;
}

.zwgk-center .selected .item-dialog {
  top: 15% !important;
}

.zwgk-center .selected.zwgk-item img {
  position: relative;
  top: -50px;
}

/* 选中状态：被点击的元素扩大 */
.zwgk-center.animate-up .zwgk-item.selected {
  /* width: 500px; */
  /* gap: 20px; */
  /* flex: 1; */
  width: 500px !important;
}

.zwgk-center.animate-up .zwgk-item.selected img {
  /* width: 140px;
  height: 140px; */
}

/* 不同弹窗的位置调整 */
/* 通知公告：最左边，向右扩展500px */
.zwgk-center.animate-up .gsgg-item.selected .item-dialog {
  /* left: 0;
  width: 500px; */
}

/* 政策法规：居中，向右扩展250px */
.zwgk-center.animate-up .zcfg-item.selected .item-dialog {
  /* left: -10%;
  width: 500px; */
}

/* 招标信息：稍微靠右，向右扩展250px */
.zwgk-center.animate-up .zbxx-item.selected .item-dialog {
  /* left: -250px;
  width: 500px; */
}

.zwgk-item img {
  width: 140px;
  z-index: 999;
  height: 140px;
  transition: all 0.8s ease-in-out;
}

.zwgk-item-title {
  font-size: 20px;
  position: absolute;
  width: 100%;
  text-align: center;
  top: 100%;
  left: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-dialog {
  width: 400px;
  height: 400px;
  background: #ffffff;
  position: absolute;
  top: 50%;
  /* left: -10%; */
  display: none;
  z-index: 10;
  overflow-y: hidden;
}

.content-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
  text-align: center;
}

/* 公示公告 */
.gsgg-dialog {
  background: url(../images/home/gg-bg.png) no-repeat center center;
  background-size: 100% 100%;
}

.gsgg-dialog .content-title {
  color: #702e00;
}

.zwgk-item-title-link {
  position: absolute;
  top: 100%;
  width: 100%;
  left: 0;
  transform-origin: center;
}

/* 政策法规 */
.zcfg-dialog {
  background: url(../images/home/fg-bg.png) no-repeat center center;
  background-size: 100% 100%;
}

.zcfg-dialog .content-title {
  color: #872f2f;
}

/* 招标信息 */
.zbxx-dialog {
  background: url(../images/home/zb-bg.png) no-repeat center center;
  background-size: 100% 100%;
}

.zbxx-dialog .content-title {
  color: #284675;
}

.content-box {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  /* gap: 16px; */
  padding: 0 30px;
}

.title-box {
  display: none;
  width: 100%;
  height: 80px;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 4px;
  background: linear-gradient(180deg, #ecf4ff 0%, #ddeaff 58%, #bdd6ff 164%);
}

.item-dialog .icon-title {
  width: 26px;
  height: 26px;
  margin-right: 10px;
}

.title-box span {
  color: #4679cb;
  font-size: 18px;
  font-weight: bold;
  line-height: 24px;
}

.item-dialog p {
  padding: 8px 10px;
}

.item-dialog p a {
  font-size: 16px;
  color: #333;
}

.item-dialog p .x-content {
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.81);
}

.item-dialog p .x-date {
  font-size: 16px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 10px;
}

.item-dialog p .x-date img {
  width: 20px;
  height: 20px;
}

@media screen and (max-width: 768px) {
  .home-contain {
    padding: 0 10px;
  }

  .xwzx {
    width: 100% !important;
    height: auto;
  }

  .xwzx-content {
    flex-wrap: wrap !important;
    height: auto !important;
  }

  .xw-left,
  .xw-right {
    width: 100% !important;
  }

  .xw-left {
    height: 300px;
  }
  .xw-right > div {
    /* padding: 0 16px; */
  }

  .x-tab-item {
    font-size: 1rem;
  }

  .silder .silder_list {
    font-size: 14px !important;
  }

  .silder_desc {
    width: 65% !important;
  }
  .silder .silder_page li {
    margin: 15px 5px 0 0 !important;
  }
  .carousel-title {
    margin-top: 5px;
    /* height: 40px;
    line-height: 20px; */
  }

  .jygl {
    width: 100% !important;
    display: none;
  }

  .home-arrow-down {
    display: none;
    width: 20px;
    height: 20px;
  }

  .home-contain-row {
    flex-wrap: wrap;
    padding-bottom: 0;
  }

  .zwgk-item img {
    position: relative;
    width: 120px;
    height: 120px;
    transition: all 0.3s ease-in-out;
  }

  .zwgk-block {
    height: auto !important;
  }

  .zwgk-center {
    flex-wrap: wrap;
  }

  .zwgk-item-title {
    top: 90%;
    font-size: 16px;
  }

  .zwgk-item-title-link {
    top: 90%;
    left: 0 !important;
  }

  .item-dialog {
    width: 90%;
    margin: 0 auto;
    left: auto;
  }

  .title-box {
    height: 60px;
  }

  .title-box span {
    font-size: 15px;
  }

  .banner-center {
    width: 100%;
    height: 70px;
    margin-top: 24px;
    background: url(../images/home/banner-center-s.jpg) no-repeat center center;
    background-size: 100% 100%;
  }

  .xzzf-item a {
    text-align: center;
  }

  /* 移动端隐藏所有item-dialog */
  .item-dialog {
    display: none !important;
  }

  .zwgk-item {
    width: 50%;
    gap: 5px; /* 移动端进一步缩小间距 */
    padding-top: 5px;
    padding-bottom: 5px;
    margin-bottom: 35px;
  }
}
