/* 新闻容器样式 */
.news-container {
  width: 100%;
  background-color: #ffffff;
  margin-top: 1.47rem;
}

/* 加载状态样式 */
#loading {
  text-align: center;
  padding: 10rem 0; /* 100px -> 10rem */
  font-size: 1.6rem; /* 16px -> 1.6rem */
  color: #666;
}

/* 无数据样式 */
.no-data {
  text-align: center;
  padding: 10rem 0; /* 100px -> 10rem */
  font-size: 1.6rem; /* 16px -> 1.6rem */
  color: #999;
}

/* 新闻列表样式 */
.news-list {
  width: fit-content;

  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin: auto;
}

/* 新闻卡片样式 */
.news-card {
  /* height: 4.76rem; */
  border-radius: 10px;
  background-color: #f6f6f6;
  overflow: hidden;
  cursor: pointer;
}

/* 鼠标悬浮效果 */
.active-new {
  background-color: #f8650d;
}

.active-new .news-title,
.active-new .news-date {
  color: #fff !important;
}

/* 新闻图片样式 */
.news-img {
  width: 100%;
  /* height: 2.58rem; */
  overflow: hidden;
}

.news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 新闻内容样式 */
.news-content {
  /* transition: color 0.3s ease; */
  padding: 0 0.44rem;
}

.news-date {
  color: #656565;
  font-size: 0.16rem;
  margin-top: 0.61rem;
  text-align: right;
  margin-bottom: 0.3rem;
}

.news-title {
  font-size: 0.21rem;
  margin-top: 0.43rem;
  overflow: hidden;
  color: #000;
}

/* 分页控件样式 */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.82rem 0 0.79rem;
}

.page-item {
  display: inline-block;
  width: 0.69rem;
  height: 0.69rem;
  line-height: 0.68rem;
  text-align: center;
  border-radius: 0.08rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.2rem; /* 14px -> 1.4rem */
}

.page-item:hover:not(.active) {
  border-color: #f8650d;
  color: #f8650d;
}

.page-item.active {
  background-color: #f8650d;
  color: #fff;
  border-color: #f8650d;
}

.page-prev,
.page-next {
  width: 0.13rem;
  height: 0.21rem;
  vertical-align: middle;
  margin: 0 0.24rem;
  cursor: pointer;
}

.page-item.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 媒体查询：移动端（≤768px） */
@media screen and (max-width: 768px) {
  .news-card {
    width: 100%;
  }
  .news-list {
    display: flex;
    flex-wrap: wrap;
  }
}

/* 媒体查询：桌面端（≥768px） */
@media screen and (min-width: 768px) {
  .news-card {
    width: 4.59rem;
  }
  .news-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
}
