body {
  overflow-y: scroll; /* 强制显示滚动条占位 */
  margin-right: calc(-1 * (100vw - 100%)); /* 隐藏滚动条 */
}
body::-webkit-scrollbar {
  display: none; /* Chrome/Safari/Edge 隐藏滚动条 */
}
.news-container {
  position: relative;
  /* height: calc(100vh - 60px);
  overflow: auto;
  scrollbar-width: none;
  -ms-overflow-style: none; */
}

.news-container .return-top {
  position: fixed;
  bottom: 14vw;
  right: 5.46875vw;
  width: 50px;
  height: 50px;
  background: url('../assets/news/news_icon_up@2x.png');
  background-repeat: no-repeat;
  background-size: contain;
  cursor: pointer;
  display: none;
  z-index: 1;
}

.news-container::-webkit-scrollbar {
  display: none; /* Chrome/Safari/Edge 隐藏滚动条 */
}

.news_wordbg_recent {
  position: absolute;
  top: 15.625vw;
  left: 0;
  width: 28.125vw;
  height: 5.47vw;
  background-image: url("../assets/news/news_wordbg_recent@2x.png");
  background-repeat: no-repeat;
  background-size: contain;
}

.news_wordbg_news {
  position: absolute;
  top: 31.25vw;
  right: 0;
  width: 20.94vw;
  height: 9.375vw;
  background-image: url("../assets/news/news_wordbg_news@2x.png");
  background-repeat: no-repeat;
  background-size: contain;
}

.pagination-container {
  width: 65vw;
  margin: 0 auto;
}

.data-list {
  padding-top: 1.718vw;
  box-sizing: border-box;
}

.data-list .list-item {
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 2px 2px 10px 0px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.875vw;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform-origin: center;
  display: flex;
  overflow: hidden;
  position: relative;
  z-index: 1;
  text-decoration: none;
}

.data-list .list-item:hover {
  transform: scale(1.05); /* 放大5% */
}

.data-list .list-item .item-content {
  padding: 10px;
  box-sizing: border-box;
  display: flex;
}

.list-item .news-img {
  width: 11.72vw;
  height: 7.8125vw;
  background-color: #333;
  object-fit: cover;
}

.list-item .news-content {
  margin-left: 1.5625vw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.list-item .news-content .news-title {
  width: 42.97vw;
  word-break: break-all;
  font-family: PingFangSC, PingFang SC;
  font-weight: 600;
  font-size: 16px;
  color: #2b2b2b;
  line-height: 26px;
}

.list-item .news-content .new-info {
  display: flex;
  align-items: center;
  font-weight: 400;
  font-size: 14px;
  color: rgba(43, 43, 43, 0.5);
  line-height: 26px;
  margin-top: 2px;
}

.list-item .news-content .new-info .volume {
  margin-left: 5.78vw;
}

.list-item .enter-icon {
  flex-shrink: 0;
  width: 3.98vw;
  background-color: #FFE100;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(3.98vw);
  transition: transform 0.2s ease-in;
}

.list-item:hover .enter-icon {
  transform: translateX(0);
}
.scroll-indicator {
  position: static;
  transform: rotate(270deg) scale(0.88) translateY(4px);
  color: white;
  font-size: 1.5rem;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform-origin: center;
}

.scroll-indicator i {
  display: inline-block;
  padding: 6px;
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0;
  animation: fade 1.5s infinite;
}
.scroll-indicator i:nth-child(1) {
  margin-bottom: -10px;
  animation-delay: 0s;
  /* 第一个箭头的动画延迟为0.75秒 */
  width: 18px;
  height: 18px;
  background-image: url("../assets/small-arrow.png");
}
.scroll-indicator i:nth-child(2) {
  animation-delay: 0.35s;
  /* 第二个箭头的动画延迟为0 */
  width: 30px;
  height: 30px;
  background-image: url("../assets/big-arrow.png");
}

.list-item .enter-icon .enter-icon-img {
  width: 2.34vw;
  height: 2.34vw;
}

.pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.56vw;
  padding: 0.46vw 0 2.03vw;
  box-sizing: border-box;
}

.pagination-btn {
  width: 2.5vw;
  height: 2.5vw;
  background-color: transparent;
  background-repeat: no-repeat;
  background-size: contain;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#prev-btn {
  background-image: url("../assets/news/products_icon_left_default@2x\(1\).png");
}

#next-btn {
  background-image: url("../assets/news/products_icon_left_default@2x.png");
}

.pagination-btn:disabled {
  /* background-color: #cccccc; */
  cursor: not-allowed;
}

.page-numbers {
  display: flex;
  gap: 1.56vw;
}

.page-number {
  width: 2.5vw;
  height: 2.5vw;
  text-align: center;
  border-radius: 4px;
  line-height: 2.51vw;
  background: rgba(43, 43, 43, 0.08);
  border-radius: 2px;
  cursor: pointer;
  color: rgba(43, 43, 43, 0.5);
  transition: all 0.3s ease-in-out;
}

.page-number.active {
  background-color: #FFE100;
  color: #2b2b2b;
}

.page-ellipsis {
  user-select: none;
  width: 2.5vw;
  height: 2.5vw;
  text-align: center;
  border-radius: 4px;
  line-height: 2.5vw;
  background: rgba(43, 43, 43, 0.08);
  border-radius: 2px;
  color: rgba(43, 43, 43, 0.5);
}

.footer {
  position: static;
  background-color: #2b2b2b;
  transform: translateY(0);
  padding-top: 24px;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .pagination-container {
    width: 90%;
    padding: 0 10px;
  }

  .list-item {
    margin: 0; /* 移除单列布局的外边距 */
    padding: 10px;
    height: 100%; /* 确保高度一致 */
  }

  .data-list .list-item:hover {
    transform: none;
  }
  .data-list .list-item .item-content {
    width: 100%;
    flex-direction: column;
    margin: 0 auto;
  }
  .list-item .news-img {
    width: 100%;
    height: auto;
  }
  .list-item .news-content {
    margin-left: 0;
    margin-top: 12px;
  }
  .list-item .news-content .news-title {
    width: 100%;
    font-size: 14px;
    line-height: 22px;
  }
  .list-item .news-content .new-info {
    font-size: 12px;
    line-height: 18px;
  }
  .list-item .enter-icon {
    display: none;
  }

  .pagination-controls {
    flex-wrap: wrap;
    gap: 5px;
    padding: 18px 0;
  }

  .pagination-btn {
    width: 30px;
    height: 30px;
    padding: 6px 12px;
    font-size: 13px;
  }

  .page-numbers {
    justify-content: center;
  }

  .page-number,
  .page-ellipsis {
    min-width: 30px;
    height: 30px;
    font-size: 13px;
    line-height: 30px;
  }
}

/* 小屏幕手机特别适配 */
@media (max-width: 480px) {
  .pagination-btn {
    width: 28px;
    height: 28px;
    padding: 5px 10px;
    font-size: 12px;
  }

  .page-number,
  .page-ellipsis {
    width: 28px;
    height: 28px;
    font-size: 12px;
    line-height: 28px;
  }
}
