/* news */
.news-cates ul {
  margin-left: -10px;
}

.news-cates ul li {
  padding-left: 10px;
  margin-bottom: 10px;
}

.news-cates ul li a {
  display: inline-block;
  min-width: 60px;
  padding: 0 10px;
  line-height: 40px;
  text-align: center;
  font-size: 14px;
  border: 1px solid rgb(204, 204, 204);
  border-radius: 55px;
  transition: 0.3s;
}

.news-cates ul li a.on,
.news-cates ul li.current-menu-item a,
.news-cates ul li a:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

@media (max-width: 1440px) {
  .news-item .cp-content h3 {
    font-size: 23px;
  }
}

@media (max-width: 1366px) {
  .news-item .cp-content h3 {
    font-size: 22px;
  }
}

@media (max-width: 1200px) {
  .news-cates ul {
    margin-left: -10px;
  }

  .news-cates ul li {
    padding-left: 10px;
  }

  .news-item .cp-content h3 {
    font-size: 22px;
  }
  .news-item .cp-title span {
    font-size: 14px;
  }
  .news-item .cp-desc p {
    font-size: 14px;
  }
}

@media (max-width: 640px) {
  .news-cates ul {
    justify-content: center;
  }

  .news-cates ul li a {
    line-height: 35px;
  }
}

@media (max-width: 480px) {
  .news-cates ul {
    margin-left: -10px;
  }

  .news-cates ul li {
    width: 25%;
  }

  .news-cates ul li a {
    width: 100%;
    line-height: 35px;
  }
}
/*  */
.news-list ul {
  margin-left: -30px;
}

.news-list ul li {
  width: 33.33%;
  margin-top: 30px;
  padding-left: 30px;
}

.news-item {
  display: block;
  overflow: hidden;
}

.news-item .cp-poster {
  overflow: hidden;
}

.news-item .cp-poster img {
  display: block;
  width: 100%;
  transition: all 0.3s ease;
}

.index-news-item:hover .cp-poster img {
  transform: scale(1.05);
}

.news-item .cp-content {
  padding: 30px;
  height: 300px;
  border: 1px solid #dedede;
  flex-direction: column;
  justify-content: space-between;
}

.news-item .cp-content h3 {
  font-size: 24px;
  line-height: 1.5;
  height: 70px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.news-item .cp-title span {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--color-primary);
}

.news-item .cp-desc p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: #666;
}

.news-item .cp-info {
  position: relative;
  z-index: -1;
}

.news-item .cp-desc {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  padding-top: 15px;
  background-color: #fff;
  border-top: 1px solid #dedede;
  transform: translateY(100%);
  visibility: hidden;
  opacity: 0;
  transition: all 0.6s ease;
}

.news-item:hover .cp-desc {
  transform: translateY(0);
  visibility: visible;
  opacity: 1;
}

.news-item:hover .cp-poster img {
  transform: scale(1.06);
}

.news-item:hover .cp-content h3 {
  color: var(--color-primary);
}

.news-item:hover .site-link {
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease;
}

@media (max-width: 992px) {
  .news-list ul {
    margin-left: -20px;
  }
  .news-list ul li {
    width: 50%;
    padding-left: 20px;
  }
}

@media (max-width: 768px) {
  .news-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .news-cates ul {
    flex-wrap: wrap;
    gap: 10px 0;
  }
  .news-layout {
    display: none;
  }
  /* 触屏无 hover：卡片信息改为静态展示 */
  .news-item .cp-content {
    height: auto;
    padding: 24px;
  }
  .news-item .cp-title h3 {
    font-size: 22px;
  }
  .news-item .cp-title span {
    font-size: 13px;
  }
  .news-item .cp-desc p {
    font-size: 14px;
  }
  .news-item .cp-info {
    z-index: auto;
  }
  .news-item .cp-desc {
    position: static;
    transform: none;
    visibility: visible;
    opacity: 1;
    margin-top: 15px;
  }
  .news-item .site-link {
    visibility: visible;
    opacity: 1;
    margin-top: 15px;
  }
  .news-item:hover .site-link {
    visibility: visible;
    opacity: 1;
  }
}

@media (max-width: 480px) {
  .news-list ul {
    margin-left: 0;
  }
  .news-list ul li {
    width: 100%;
    margin-top: 20px;
    padding-left: 0;
  }
  .news-item .cp-content {
    padding: 20px;
  }
  .news-item .cp-title h3 {
    font-size: 18px;
    height: auto;
  }
  .news-item .cp-title span {
    font-size: 13px;
  }
  .news-item .cp-desc p {
    font-size: 14px;
  }
  .news-cates ul li a {
    font-size: 12px;
  }
  .news-item .cp-tag {
    margin-top: 40px;
  }
}
