.carousel-inner {
  height: 37.5rem;
  position: relative;
}
.news-carousel .carousel-caption > h2 {
  font-size: 2.25rem;
  font-weight: 600;
}
.news-carousel .carousel-caption > p {
  font-size: 1.125rem;
  color: #444444;
}
.news-data {
  position: relative;
  padding: 4.375rem 0;
}
.news-data::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../../assets/images/news-data-img1.png") no-repeat center
    center;
  opacity: 0.04;
  z-index: -1;
}
.news-data-container {
}
.news-data-container > h2 {
  text-align: center;
  font-weight: 600;
  font-size: 2.125rem;
  color: #313233;
  margin-bottom: 1.875rem;
}
.news-data-container .tabs {
  position: relative;
  width: 40rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.125rem;
}
.news-data-container .tab {
  position: relative;
  width: 10rem;
  font-size: 16px;
  color: #212121;
  height: 2.375rem;
  padding: 0 1.875rem;
  line-height: 2.375rem;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
  /* transition: all 0.3s; */
  user-select: none;
  z-index: 9;
  white-space: nowrap;
}
.news-data-container .tab-active {
  position: absolute;
  left: 0;
  top: 0;
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient( 219deg, #FE6B44 0%, #FE9D35 100%);
  border-radius: 1.25rem;
  z-index: -1;
  will-change: transform, width;
  transform: translateX(0px);
  opacity: 0;
}

.news-data-container .tab-active.no-transition {
  transition: none;
}

.news-data-container .tab-active.with-transition {
  transition: transform 0.3s ease-in-out, width 0.3s ease-in-out;
  background: linear-gradient( 219deg, #FE6B44 0%, #FE9D35 100%);
}

/* 文档列表样式 */
.news-list-row {
  margin: 0 -0.75rem;
}

.news-item-col {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.news-item-col.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.news-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.news-card {
  height: 30.6875rem;
  background: #ffffff;
  box-shadow: 0 0.5rem 1rem 0 rgba(215, 229, 255, 0.53);
  border-radius: 0.625rem;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  will-change: transform;
  transform: translateZ(0);
}

.news-card:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 0.75rem 1.5rem 0 rgba(215, 229, 255, 0.7);
}

/* .news-card:hover .news-card-image::after {
  opacity: 1;
} */

.news-card:hover .news-card-image img {
  border-radius: 0;
}

.news-card:hover .news-card-title {
  color: #FE9D35;
}

.news-card:hover .news-go-detail {
  color: #FE9D35;
  font-weight: 500;
}

.news-card-image {
  width: 100%;
  height: 16rem;
  overflow: hidden;
  position: relative;
}

/* .news-card-image::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4rem;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #FFFFFF 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
} */

.news-card-image img {
  width: 100%;
  height: 100%;
  border-radius: 0.625rem;
  object-fit: cover;
  transition: all 0.3s ease;
}

.news-card-content {
  padding: 1.25rem;
  height: 14.6875rem;
  display: flex;
  flex-direction: column;
}
.news-card-tags {
  display: flex;
  margin-bottom: 0.75rem;
}
.news-card-tags > div {
  padding: 0 0.5rem;
  height: 1.5rem;
  background: #ffefc7;
  border-radius: 0.25rem;
  border: 1px solid #eec890;
  font-weight: 500;
  font-size: 0.75rem;
  color: #704d1b;
  text-align: center;
  line-height: 1.5rem;
  margin-right: 0.5rem;
}
.news-card-tags .news-tag-jx {
  dsplay: flex;
}
.news-card-date {
  font-size: 0.875rem;
  color: #999;
  margin-bottom: 0.75rem;
}

.news-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #121212;
  line-height: 1.56rem;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-desc {
  font-size: 0.875rem;
  color: #696872;
  line-height: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.8rem;
}

.news-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  font-size: 0.875rem;
}

.news-tag {
  background: #e3f2fd;
  color: #1976d2;
  padding: 0.25rem 0.75rem;
  border-radius: 1.25rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.news-card-meta .news-go-detail {
  color: #bf8d56;
}

.news-card-meta .news-date {
  color: #9e9e9e;
}


@media (max-width: 767px) {
  .news-data {
    padding: 2rem 0;
    width: 95vw;
    margin: 0 auto;
  }

  .news-data-container > h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    text-align: center;
  }

  .news-data-container .tabs {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 0.5rem;
    padding: 0 1rem;
    justify-content: flex-start;
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .news-data-container .tabs::-webkit-scrollbar {
    display: none;
  }

  /* 移动端隐藏滑动背景，使用简单的激活样式 */
  .news-data-container .tab-active {
    display: none;
  }

  .news-data-container .tab {
    width: auto;
    min-width: 4rem;
    padding: 0 1rem;
    font-size: 14px;
    height: 2.37rem;
    line-height: 2.25rem;
    border-radius: 1.125rem;
    transition: all 0.3s ease;
    text-align: center;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
  }

  /* 移动端激活状态样式 */
  .news-data-container .tab.mobile-active {
    background: linear-gradient(219deg, #fe6b44 0%, #fe9d35 100%);
    color: #fff !important;
  }

  .news-list-row {
    margin: 0 -0.75rem;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 3!important;
  }

  .news-item-col {
    width: 50%;
    flex: 0 0 50%;
    display: flex;
    will-change: transform, opacity;
  }

  .news-card {
    /* height: 100%; */
    height: 22rem;
    border-radius: 0.75rem;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .news-card-image {
    min-height: 10rem;
    max-height: 10rem;
  }

  .news-card-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    height: auto!important;
  }

  .news-card-title {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .news-card-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    min-height: 3.2rem!important;
    max-height: 3.2rem!important;
    word-break: break-all;
    word-wrap: break-word;
  }

  .news-card-meta {
    font-size: 12px;
    color: #999;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .news-card-meta .news-go-detail {
  color: #bf8d56;
  font-size: 13px!important;
}

  .news-card-tags {
    margin-bottom: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .news-card-tags > div {
    font-size: 12px;
    height: 1.7rem;
    line-height: 1.7rem;
    padding: 0 0.5rem;
    border-radius: 0.25rem;
    font-weight: 500;
    background: #f0f4ff;
    color: #4a90e2;
  }

  .news-card-tags .news-tag-jx {
    background: #ffefc7 !important;
    border: 1px solid #eec890 !important;
    color: #704d1b !important;
  }

  /* 移动端加载更多组件 */
  .mobile-load-more {
    display: block;
    text-align: center;
    margin: 2rem 0;
    padding: 0 1rem;
  }

  .load-more-btn {
    width: 100%;
    max-width: 200px;
    height: 44px;
    background: linear-gradient(219deg, #fe6b44 0%, #fe9d35 100%);
    border: none;
    border-radius: 22px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    margin: 0 auto;
    will-change: transform;
    backface-visibility: hidden;
  }

  .load-more-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(254, 107, 68, 0.3);
  }

  .load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
  }

  .load-more-spinner .spinner-border {
    width: 20px;
    height: 20px;
    border-width: 2px;
  }

  .no-more-data {
    color: #999;
    font-size: 14px;
    padding: 20px 0;
  }
}

/* 移动端加载更多组件 - PC端隐藏 */
.mobile-load-more {
  display: none;
}

/* 新分页样式 */
.news-pagination-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.25rem;
  margin-top: 2rem;
  font-size: 0.875rem;
  color: #666;
}

@media (max-width: 767px) {
  .news-pagination-wrapper {
    display: none;
  }

  .pagination-controls {
    order: 1;
  }

  .pagination-info {
    order: 2;
    font-size: 0.875rem;
  }

  .pagination-options {
    order: 3;
    font-size: 0.875rem;
  }

  .pagination-jump {
    order: 4;
    font-size: 0.875rem;
  }

  .pagination-jump input {
    width: 3rem;
    height: 2rem;
    font-size: 0.875rem;
  }

  .page-number,
  .pagination-btn {
    min-width: 2rem;
    height: 2rem;
    font-size: 0.875rem;
  }
}

.pagination-info {
  color: #666;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pagination-btn {
  width: 2rem;
  height: 2rem;
  background: #fff;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.25rem;
  transition: all 0.3s ease;
  border: none;
}

.pagination-btn:hover:not(:disabled) {
  border-color: #1890ff;
  color: #1890ff;
}

.pagination-btn:disabled {
  color: #ccc;
  cursor: not-allowed;
}

/* 分页箭头图片样式 */
.pagination-arrow {
  width: 16px;
  height: 16px;
  transition: opacity 0.3s ease;
}

.pagination-arrow-left {
  transform: scaleX(-1); /* 水平翻转左箭头 */
}

/* 禁用状态的箭头 */
.pagination-btn:disabled .pagination-arrow {
  opacity: 0.3;
  filter: grayscale(1);
}

.pagination-pages {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.page-number {
  min-width: 2rem;
  height: 2rem;
  border: none;
  background: transparent;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.25rem;
  transition: all 0.3s ease;
  padding: 0 0.5rem;
}

.page-number:hover {
  color: #fe9d35;
}

.page-number.active {
  background: transparent;
  border: none;
  color: #fe9d35;
}

.page-ellipsis {
  padding: 0 0.5rem;
  color: #999;
}

.pagination-options {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pagination-options select {
  border: 0.0625rem solid #d9d9d9;
  border-radius: 0.25rem;
  padding: 0.25rem 0.5rem;
  background: #fff;
  color: #666;
  cursor: pointer;
}

.pagination-jump {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pagination-jump input {
  width: 3.125rem;
  height: 2rem;
  border: 0.0625rem solid #d9d9d9;
  border-radius: 0.25rem;
  padding: 0 0.5rem;
  text-align: center;
  color: #666;
}

/* 隐藏数字输入框的增减按钮 */
.pagination-jump input::-webkit-outer-spin-button,
.pagination-jump input::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}

.pagination-jump input[type="number"] {
  -moz-appearance: textfield !important;
}

/* 更通用的隐藏方式 */
#jumpInput::-webkit-outer-spin-button,
#jumpInput::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}

#jumpInput[type="number"] {
  -moz-appearance: textfield !important;
}

.pagination-jump input:focus {
  border-color: #1890ff;
  outline: none;
}

/* 加载状态样式 */
.spinner-border {
  width: 3rem;
  height: 3rem;
  border: 0.25rem solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
  to {
    transform: rotate(360deg);
  }
}

/* 修复line-clamp兼容性 */
.news-card-title {
  line-clamp: 2;
}

.news-card-desc {
  line-clamp: 3;
  word-break: break-all;
  word-wrap: break-word;
}

.carousel-item {
  height: 100%;
}

.news-detail-carousel-caption {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  padding: 0 1rem;
}
.news-detail-carousel-caption h2 {
  font-weight: 600;
  font-size: 2.25rem;
  margin-bottom: 1.875rem;
}
.news-detail-carousel-caption p {
  font-size: 1.125rem;
  line-height: 28px;
  max-width: 40rem;
  text-align: center;
  word-break: break-all;
  word-wrap: break-word;

}
.news-detail-article {
  background: #fff;
  box-shadow: 0px 8px 11px 0px rgba(214, 214, 214, 0.24);
  border-radius: 0.875rem;
  border: 1px solid #f5f6f8;
  overflow: hidden;
  margin: 5rem 0 3.75rem;
  padding: 1.875rem 2.5rem 2.5rem;
}

.news-detail-header {
  padding: 0 2rem 0;
}

.news-detail-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: #666;
}

.news-detail-meta .news-tag {
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-weight: 500;
  margin-right: 0;
}

.news-detail-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: #121212;
  line-height: 1.4;
  margin-bottom: 1rem;
  text-align: center;
}
.news-detail-date {
  font-size: 0.875rem;
  color: #999999;
  text-align: center;
  margin-bottom: 1.5rem;
}

.news-detail-image {
  width: 100%;
  max-height: 400px;
  overflow: hidden;
}

.news-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-detail-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid #f0f0f0;
  background: #fafafa;
}

.news-detail-actions {
  text-align: center;
}

/* 富文本内容样式 */
.news-detail-content {
  line-height: 1.6;
  color: #333;
}

.news-detail-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem auto;
  border-radius: 0.5rem;
}

.news-detail-content video {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem auto;
  border-radius: 0.5rem;
}

.news-detail-content p {
  margin-bottom: 1rem;
}

.news-detail-content h1,
.news-detail-content h2,
.news-detail-content h3,
.news-detail-content h4,
.news-detail-content h5,
.news-detail-content h6 {
  margin: 1.5rem 0 1rem 0;
  color: #222;
}

@media (max-width: 768px) {
  .news-detail-article {
    margin: 1rem;
    padding: 30px 16px 40px!important;
  }

  .news-detail-header,
  .news-detail-content,
  .news-detail-footer {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .news-detail-title {
    font-size: 1.5rem;
  }

  .news-detail-meta {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  /* 移动端富文本内容优化 */
  .news-detail-content {
    padding: 0;
  }

  .news-detail-content img {
    max-width: 100%;
    width: 100%;
    height: auto;
    margin: 0.8rem 0;
    border-radius: 0.25rem;
  }

  .news-detail-content video {
    max-width: 100%;
    width: 100%;
    height: auto;
    margin: 0.8rem 0;
    border-radius: 0.25rem;
  }

  .news-detail-content p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.8rem;
  }

  .news-detail-content h1,
  .news-detail-content h2,
  .news-detail-content h3,
  .news-detail-content h4,
  .news-detail-content h5,
  .news-detail-content h6 {
    margin: 1rem 0 0.8rem 0;
    font-size: 1.1rem;
  }
}
