/* 资讯动态 */
.page-banner {
  background-image: url("../images/banner/banner-news.jpg");
}

.news-page {
  padding: 0.8rem 0;
  background: #f8fafc;
}

.news-page > .container {
  width: calc(100% - 3.6rem);
  max-width: 16.44rem;
  margin: 0 auto;
}

.news-page .sec-head-left {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.2rem;
  margin-bottom: 0;
}

.news-page .sec-head-left .sec-title {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 600;
  font-size: 0.3rem;
  line-height: 0.32rem;
  color: #1e2538;
}

.news-page .sec-head-left .sec-rail {
  flex: none;
  width: 100%;
  height: 0;
  background: none;
  border-bottom: 1px solid #cfcfcf;
}

.news-page .tabs {
  justify-content: flex-start;
  gap: 0.16rem;
  margin: 0.3rem 0 0.45rem;
}

.news-page .tab-btn {
  width: 1.36rem;
  min-width: 1.36rem;
  height: 0.46rem;
  padding: 0;
  box-sizing: border-box;
  border: 1px solid #ddd;
  border-radius: 0.04rem;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 600;
  font-size: 0.16rem;
  font-style: normal;
  line-height: 0.46rem;
  color: #1e2538;
  text-align: center;
  text-transform: none;
}

.news-page .tab-btn:hover,
.news-page .tab-btn.is-active {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}

.news-page .news-list {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.news-page .news-card {
  display: flex;
  align-items: stretch;
  gap: 0.36rem;
  margin-bottom: 0;
  box-sizing: border-box;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.08rem;
  box-shadow: 0 4px 4px 0 rgba(141, 155, 185, 0.08);
  transition: border-color 0.2s;
}

.news-page .news-card-cover {
  width: 2.92rem;
  min-height: 2.03rem;
  align-self: stretch;
  flex-shrink: 0;
  border-radius: 0;
  object-fit: cover;
  display: block;
}

.news-page .news-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 0.28rem 0.32rem 0.24rem 0;
  box-sizing: border-box;
}

.news-page .list-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.24rem;
  margin-bottom: 0.14rem;
}

.news-page .list-card-title {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 600;
  font-size: 0.2rem;
  font-style: normal;
  line-height: 1.4;
  color: #1e2538;
  text-align: left;
  text-transform: none;
}

.news-page .list-card-date {
  flex-shrink: 0;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 500;
  font-size: 0.14rem;
  font-style: normal;
  line-height: 0.28rem;
  color: #1e2538;
  text-align: left;
  text-transform: none;
}

.news-page .list-card-desc {
  margin: 0 0 0.2rem;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 400;
  font-size: 0.16rem;
  font-style: normal;
  line-height: 0.24rem;
  color: #626c84;
  text-align: left;
  text-transform: none;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-page .list-card-action {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
}

.news-page .news-card .btn,
.news-page .news-card .btn-ghost {
  display: inline-flex;
  height: 0.36rem;
  padding: 0 0.2rem;
  box-sizing: border-box;
  border-radius: 0.04rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 500;
  font-size: 0.14rem;
  font-style: normal;
  line-height: 0.21rem;
  color: #1e2538;
  text-align: left;
  text-transform: none;
}

.news-page .news-card:hover {
  border-color: #dc2626;
  border-width: 3px;
}

.news-page .news-card:hover .btn-ghost {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}

.news-page .pagination {
  margin-top: 0.44rem;
  justify-content: center;
  gap: 0.12rem;
}

.news-page .pagination a,
.news-page .pagination span,
.news-page .pagination li a {
  width: 0.6rem;
  min-width: 0.6rem;
  height: 0.6rem;
  box-sizing: border-box;
  background: #fff;
  border-radius: 0.08rem;
  border: 1px solid #e2e8f0;
  font-size: 0.16rem;
  color: #1e2538;
}

.news-page .pagination a:hover,
.news-page .pagination li a:hover {
  border-color: #dc2626;
  color: #dc2626;
  background: #fff;
}

.news-page .pagination a.is-active,
.news-page .pagination .is-active,
.news-page .pagination .current,
.news-page .pagination span.current,
.news-page .pagination li.active a,
.news-page .pagination li.active span {
  background: #dc2626;
  border: 1px solid #dc2626;
  color: #fff;
}

.news-page .pagination .page-prev,
.news-page .pagination .page-next,
.news-page .pagination > li:first-child a,
.news-page .pagination > li:last-child a {
  font-size: 0;
  color: transparent;
}

.news-page .pagination .page-prev::before,
.news-page .pagination .page-next::before,
.news-page .pagination > li:first-child a::before,
.news-page .pagination > li:last-child a::before {
  content: "";
  width: 0.12rem;
  height: 0.12rem;
  box-sizing: border-box;
  border-top: 2px solid #9ba6bc;
  border-right: 2px solid #9ba6bc;
}

.news-page .pagination .page-prev::before,
.news-page .pagination > li:first-child a::before {
  transform: rotate(-135deg);
}

.news-page .pagination .page-next::before,
.news-page .pagination > li:last-child a::before {
  transform: rotate(45deg);
}

.news-page .pagination .page-prev:hover::before,
.news-page .pagination .page-next:hover::before,
.news-page .pagination > li:first-child a:hover::before,
.news-page .pagination > li:last-child a:hover::before {
  border-color: #dc2626;
}

@media (max-width: 900px) {
  .news-page > .container {
    width: calc(100% - 0.48rem);
    max-width: none;
  }
  .news-page { padding: 0.48rem 0 0.64rem; }
  .news-page .tabs { flex-wrap: wrap; gap: 0.12rem; }
  .news-page .tab-btn {
    width: auto; min-width: 1.4rem; padding: 0 0.2rem;
    height: 0.56rem; line-height: 0.56rem; font-size: 0.22rem;
  }
  .news-page .sec-head-left .sec-title { font-size: 0.36rem; line-height: 1.3; }

  /* 手机端：左图右文 */
  .news-page .news-list {
    gap: 0.16rem;
  }

  .news-page .news-item,
  .news-page .news-card {
    flex-direction: row !important;
    align-items: stretch;
    gap: 0.16rem;
  }

  .news-page .news-card-cover {
    width: 2.2rem !important;
    min-width: 2.2rem;
    max-width: 38%;
    height: auto !important;
    min-height: 1.6rem;
    align-self: stretch;
    object-fit: cover;
    aspect-ratio: 4 / 3;
  }

  .news-page .news-card-body {
    flex: 1;
    min-width: 0;
    padding: 0.14rem 0.16rem 0.14rem 0 !important;
    gap: 0.06rem;
  }

  .news-page .list-card-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.06rem;
    margin-bottom: 0.06rem;
  }

  .news-page .list-card-title {
    font-size: 0.24rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .news-page .list-card-date {
    font-size: 0.18rem;
    line-height: 1.3;
  }

  .news-page .list-card-desc {
    margin: 0 0 0.08rem;
    font-size: 0.18rem;
    line-height: 1.4;
    -webkit-line-clamp: 2;
  }

  .news-page .list-card-action {
    margin-top: auto;
    justify-content: flex-start;
  }

  .news-page .news-card .btn,
  .news-page .news-card .btn-ghost {
    height: 0.44rem;
    padding: 0 0.16rem;
    font-size: 0.18rem;
  }
}
