@charset "utf-8";

body {
  margin: 0;
  font-family: 'Microsoft YaHei';
  font-size: 17px;
  font: 17px/1.2 'Microsoft YaHei';
  color: #333;
  line-height: 1.2;
}

ul,
li,
dl,
dd,
img,
h1,
h2,
h3,
h4,
h5,
h6,
p {
  border: none;
  padding: 0;
  margin: 0;
}

li {
  list-style: none;
}

ul {
  list-style-type: none;
}

a {
  text-decoration: none;
  color: #333333;
}

/* 电脑端样式 */
@media screen and (min-width: 768px) {
  .hidden-pc {
    display: none;
  }
  .hidden-mobile {
    display: block;
  }
  .container {
    width: 1200px;
    margin: 0 auto;
    padding-left: 0px;
    padding-right: 0px;
    margin-top: 1.5%;
  }
  .container-title {
    font-size: 22px;
    font-family: Source Han Sans CN-Regular, Source Han Sans CN;
    font-weight: 400;
    color: #000000;
    margin-right: 10px;
  }
  .title-eng {
    font-size: 20px;
    font-family: Source Han Sans CN-Medium, Source Han Sans CN;
    font-weight: 500;
    color: #7c797c;
  }
  .sjly-content {
    display: flex;
    justify-content: space-between;
    margin-top: 3%;
  }
  .sjfb-content {
    display: flex;
    margin-top: 1.5%;
  }
  .tb-title li {
    cursor: pointer;
    width: 207px;
    height: 44px;
    line-height: 44px;
    text-align: center;
    color: #000000;
    background: rgb(237, 241, 244);
    box-shadow: 0px 2px 4px 0px #e8e8e8;
    border-radius: 2px 2px 2px 2px;
    margin-bottom: 15px;
  }
  .tb-title .on {
    background: #0064c0;
    color: white;
  }
  .sj-container {
    display: flex;
    margin-top: 5%;
    justify-content: space-around;
  }
  .tjsj-top,
  .jjfz-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .more {
    color: #7c797c;
  }
  .more a:hover {
    cursor: pointer;
    color: #0064c0;
  }
  .tjsj-content {
    margin-top: 5%;
  }
  .n_l_nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
  }
  .n_l_nav span {
    font-weight: bold;
    display: block;
    float: left;
    cursor: pointer;
    padding: 0 14px;
    font: bold 16px/33px 宋体;
    color: #333333;
    background: #eeeeee;
  }
  .n_l_nav span.on {
    color: #fff;
    background: #258bcb;
    font: bold 16px/33px 宋体;
  }
  .cont ul {
    width: 100%;
    padding: 10px 0;
  }
  .cont ul li {
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #666666;
  }
  .cont ul li:hover {
    color: #0064c0;
  }
  .sjzs-content {
    display: flex;
    margin-top: 1.5%;
    justify-content: space-between;
  }
  .year-date {
    color: white;
    height: 44px;
    line-height: 44px;
    background: linear-gradient(90deg, #fc9a45 0%, #ffffff 100%);
    font-size: 30px;
    font-family: Source Han Sans CN-ExtraLight, Source Han Sans CN;
    padding-left: 5%;
  }
  .sj-content {
    margin-top: 1%;
    background: url(https://www.sipac.gov.cn/szgyyq/xhtml/sjzs.png) no-repeat
      center;
    background-size: 100% 98%;
  }
  .common-title {
    font-weight: bold;
    font-size: 20px;
  }
  .common-sj {
    color: #ea4740;
    font-size: 33px;
  }
  .common-content {
    display: flex;
    margin-top: 3%;
  }
  .tb-content div img {
    width: 59.375rem;
  }
}

/* 手机端样式 */
@media screen and (max-width: 768px) {
  .hidden-pc {
    display: block;
  }
  .hidden-mobile {
    display: none;
  }
  .hide {
    display: none;
  }
  .menu-button {
    position: relative;
  }
  .menu-button {
    background: #f2f2f2;
    display: block;
    padding: 20px;
    color: #000000;
    cursor: pointer;
    font-size: 12px;
    text-transform: uppercase;
  }
  .back-home {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
  }
  .menu {
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    height: calc(100vh - 40px);
    background-image: url(https://www.sipac.gov.cn/szgyyq/xhtml/images/mobile-menu-bg.png);
    background-size: 100% 100%;
    overflow: hidden;
    z-index: 2;
  }
  .menu-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0 40px;
  }
  .hnew-navbar-center-list-item {
    background: #fff;
    width: 120px;
    display: inline-block;
    margin: 10px 0;
    height: 32px;
    line-height: 32px;
    text-decoration: none;
    border-radius: 4px;
    color: #1d71b7;
    text-align: center;
    font-size: 14px;
  }
  .menu-button::before {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    display: block;
    width: 15px;
    height: 3px;
    border-top: 2px solid #000000;
    border-bottom: 2px solid #000000;
  }
  .menu-button::after {
    content: '';
    position: absolute;
    top: 15px;
    right: 20px;
    display: block;
    width: 15px;
    height: 2px;
    background: #000000;
  }
  .img-mobile {
    width: 50px;
    margin: 20px auto 0;
  }
  .img-title {
    width: 90%;
    margin: 15px auto;
  }
  .header-img {
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .search {
    width: calc(100vw - 80px);
    margin: 40px 0 30px 40px;
  }
  .search dl {
    position: relative;
    width: 100%;
    background-color: #fff;
    border: 1px solid #b5b5b5;
    border-radius: 30px;
    overflow: hidden;
  }
  .search dl dd {
    margin-right: 70px;
    padding-left: 10px;
    height: 33px;
    background-color: transparent;
    border: none;
  }
  .search dl dd input[type='text'] {
    padding: 0;
    height: 33px;
    line-height: 33px;
    width: 100%;
    font-size: 14px;
    color: #999;
    background: none;
    border: 0;
    vertical-align: top;
  }
  .search dl dt.button {
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 33px;
    border-left: 1px solid #b5b5b5;
  }
  .search dl dt input.searchBtn {
    width: 100%;
    height: 33px;
    color: #fff;
    background: url(https://www.sipac.gov.cn/szgyyq/xhtml/images/public/header-search-btn.jpg)
      no-repeat center;
    -webkit-appearance: none;
    border: none;
    vertical-align: top;
    cursor: pointer;
  }
  .title-news-center {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 150px;
    background-size: 100% 100%;
    color: #fff;
    font-size: 18px;
    background-image: url(https://www.sipac.gov.cn/szgyyq/xhtml/images/news-center-bg.png);
  }
  .container {
    /* width: 100%;
		margin: 0 auto; */
    padding-left: 0px;
    padding-right: 0px;
    margin-top: 1.5%;
  }
  .container-title {
    font-size: 22px;
    font-family: Source Han Sans CN-Regular, Source Han Sans CN;
    font-weight: 400;
    color: #000000;
    margin-right: 3%;
    margin-left: 3%;
  }
  .title-eng {
    font-size: 20px;
    font-family: Source Han Sans CN-Medium, Source Han Sans CN;
    font-weight: 500;
    color: #7c797c;
  }
  .sjly-content {
    display: flex;
    justify-content: space-between;
    margin-top: 3%;
  }
  .sjfb-content {
    margin-top: 1.5%;
  }
  .tb-title {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 10px;
  }
  .sjzs-title {
    display: flex;
    flex-wrap: wrap;
    padding: 10px;
  }
  .tb-title li,
  .sjzs-title li {
    cursor: pointer;
    width: 30%;
    height: 43px;
    line-height: 43px;
    text-align: center;
    color: #1d6ce3;
    background: rgba(250, 250, 250, 0.39);
    opacity: 0.93;
    margin-bottom: 15px;
  }
  .tb-title .on,
  .sjzs-title .on {
    background: #1d6ce3;
    color: white;
  }
  .cont {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    color: #666666;
    padding: 6px;
  }
  .cont a {
    width: 250px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
}

.banner-swiper {
  height: 400px; /* 固定高度，可根据实际需要调整 */
}
.banner-swiper .swiper-wrapper {
  height: 100%;
}
.banner-swiper .swiper-slide {
  height: 100%;
  position: relative;
}
.banner-swiper .swiper-slide a {
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
}
.banner-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 保持比例，裁剪多余部分 */
  display: block;
  object-position: left top;
  vertical-align: top; /* 消除图片底部间隙 */
}
/* 移动端适配 */
@media (max-width: 767px) {
  .banner-swiper {
    height: 250px; /* 移动端稍小的高度 */
  }
}

.header_top {
  position: relative;
  /* overflow: hidden; */
}
.header_top .bg-white {
  width: 100%;
  display: block;
}
.header_top .bg-white img {
  width: 100%;
  height: auto;
  display: block;
}
.ai-title {
  width: 1200px;
  text-align: center;
  background-color: #fff;
  font-size: 24px;
  font-weight: bold;
  position: absolute;
  height: 72px;
  bottom: -35px;
  display: flex;
  align-items: center;
  justify-content: center;
  left: calc(50% - 600px);
  border-radius: 8px;
}
/* AI应用列表样式 */
.ai-yl-container {
  width: 100%;
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;
  margin-top: 70px;
}

.ai-yl-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.ai-yl-item {
  background: linear-gradient(181deg, #ddecff -1%, #e8f4ff 15%, #fefeff 80%);
  border-radius: 8px;
  box-shadow: 0px 2px 5px 0px rgba(167, 193, 231, 0.15);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.ai-yl-item:hover {
  box-shadow: 0px 4px 10px 0px rgba(167, 193, 231, 0.25);
  transform: translateY(-4px);
}

.ai-yl-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 5px;
  flex-shrink: 0;
}

.ai-yl-content {
  padding: 20px 20px 10px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ai-yl-title {
  font-size: 18px;
  font-weight: 600;
  color: #333333;
  margin: 0 0 12px 0;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-yl-title > a,
.ai-yl-title > span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ai-yl-title a {
  color: #333333;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 18px;
  display: block;
}

.ai-yl-title a:hover {
  color: #0064c0;
}

.ai-yl-memo {
  margin: 0 0 16px 0;
  flex: 1;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  box-shadow: 0px 4px 12px 0px rgba(181, 206, 243, 0.25);
  padding: 12px 16px;
  border-radius: 8px;
}

.ai-yl-memo-text {
  font-size: 14px;
  color: #666666;
  line-height: 1.6;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ai-yl-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #999999;
  padding: 10px 0;
  /* border-top: 1px solid #f0f0f0; */
}

.ai-yl-source {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-yl-source > div{
  margin-bottom: 3px;
}

.ai-yl-date {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  margin-left: 12px;
  white-space: nowrap;
}
.ai-yl-detail {
  border-top: 1px solid #f0f0f0;
  font-size: 14px;
  line-height: 36px;
  padding-top: 8px;
  color: #0865f0;
}

.twoline-ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* 电脑端样式优化 */
@media screen and (min-width: 768px) {
  .ai-yl-container {
    margin-top: 70px;
    margin-bottom: 60px;
  }

  .ai-yl-list {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
  }

  .ai-yl-title {
    font-size: 20px;
  }

  .ai-yl-memo {
    font-size: 15px;
  }
}

/* 移动端样式优化 */
@media screen and (max-width: 767px) {
  .header_top {
    margin-bottom: 20px;
  }

  .header_top .bg-white {
    width: 100%;
    height: auto;
  }

  .header_top .bg-white img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  .ai-title {
    width: calc(100% - 30px);
    max-width: 90%;
    font-size: 14px;
    height: 40px;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0 15px;
    box-sizing: border-box;
  }

  .ai-yl-container {
    margin-top: 50px;
    margin-bottom: 40px;
    padding: 0 15px;
  }

  .ai-yl-list {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
  }

  .ai-yl-content {
    padding: 12px;
  }

  .ai-yl-title {
    font-size: 14px;
    margin-bottom: 10px;
    gap: 0;
  }

  .ai-yl-title a {
    font-size: 14px;

  }

  .ai-yl-memo {
    font-size: 13px;
    margin-bottom: 12px;
  }

  .ai-yl-meta {
    font-size: 11px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .ai-yl-date {
    margin-left: 0;
  }

  .ai-yl-detail {
    font-size: 13px;
    line-height: 20px;
  }
}

@media screen and (min-width: 3840px) {
        .banner-swiper {
          height: 800px;
        }
      }
      @media screen and (max-width: 3840px) {
        .banner-swiper {
          height: 700px;
        }
      }
      @media screen and (max-width: 2560px) {
        .banner-swiper {
          height: 500px;
        }
      }
      @media screen and (max-width: 1920px) {
        .banner-swiper {
          height: 400px;
        }
      }
      @media screen and (max-width: 1600px) {
        .banner-swiper {
          height: 320px;
        }
      }
      @media screen and (max-width: 1440px) {
        .banner-swiper {
          height: 300px;
        }
      }
      @media screen and (max-width: 1280px) {
        .banner-swiper {
          height: 240px;
        }
      }
      @media screen and (max-width: 1024px) {
        .banner-swiper {
          height: 200px;
        }
      }
