/* 新闻列表页（短代码 views/news） */

.is-view-news {
  width: 100%;
  overflow-x: hidden;
  overflow-y: visible;
}

/* Figma 主内容 1600px */
.section {
  width: 100rem !important;
  max-width: 100rem !important;
}

/* --- Figma 1050:4049 页头：底 #f5f5f7 + 多图层 + image 26 --- */
.news-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #f5f5f7;
}

.news-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.news-hero__layer {
  position: absolute;
}

.news-hero__layer--ydzx {
  left: -40.26%;
  top: -0.73rem;
  width: 151.6%;
  height: 41.69rem;
}

.news-hero__layer--ydzx img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-hero__layer--unsplash {
  left: 42.08%;
  top: -4.875rem;
  width: 62.5%;
  height: 50rem;
  max-width: 75rem;
}

.news-hero__layer--unsplash img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-hero__layer--grad-left {
  left: 0;
  top: 0;
  width: 100%;
  height: 40.845rem;
  z-index: 1;
  background: linear-gradient(
    to left,
    rgba(189, 198, 207, 0) 25.342%,
    rgba(188, 203, 216, 0.73) 41.895%,
    #bbcddb 57.363%
  );
}

.news-hero__layer--martini {
  left: 0;
  top: -24.5rem;
  width: 100%;
  height: 66.97675rem;
  z-index: 2;
}

.news-hero__martini-inner {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.news-hero__martini-inner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-hero__martini-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    #ffffff 5.311%,
    rgba(255, 255, 255, 0.71) 13.813%,
    rgba(255, 255, 255, 0) 57.04%
  );
  pointer-events: none;
}

.news-hero__layer--image26 {
  left: 0;
  top: -15.625rem;
  z-index: 3;
  display: flex;
  width: 100%;
  height: 67.56rem;
  align-items: center;
  justify-content: center;
}

.news-hero__image26-rotate {
  position: relative;
  flex: none;
  width: 67.56rem;
  height: 120rem;
  transform: rotate(-90deg);
}

.news-hero__image26-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.news-hero__image26-inner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-hero__image26-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    #f5f5f7 18.394%,
    rgba(255, 255, 255, 0.71) 21.829%,
    rgba(255, 255, 255, 0) 39.296%
  );
  pointer-events: none;
}

.news-intro {
  position: relative;
  z-index: 4;
  padding-top: 5rem;
  padding-bottom: 2.5rem;
  background-color: transparent;
}

.news-intro__title {
  margin: 0 auto 2.5rem auto !important;
  text-align: center;
  font-size: 3.5rem !important;
  line-height: 1 !important;
  color: #252b3a !important;
}

.news-intro__desc {
  margin: 0 auto;
  max-width: 45.0875rem;
  text-align: center;
  font-size: 1.625rem !important;
  line-height: normal !important;
  color: #435566 !important;
}

/* --- 轮播：居中主卡 + 左右露半张（Figma 1050-4047） --- */
.news-carousel-section {
  position: relative;
  z-index: 4;
  width: 100%;
  padding-bottom: 1.8125rem;
  background-color: transparent;
}

.news-carousel-wrap {
  position: relative;
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

/* 轮播可视区：箭头轨道与 .section 同宽（100rem）水平居中，不随超宽屏贴边 */
.news-carousel__viewport {
  position: relative;
  width: 100%;
}

.news-carousel__btn-rail {
  position: absolute;
  inset: 0;
  z-index: 6;
  width: 100rem;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  padding: 0 0.5rem;
  pointer-events: none;
}

.news-carousel__btn-rail .news-carousel__btn {
  pointer-events: auto;
  position: absolute;
  top: 15.625rem;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.12);
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.25));
  cursor: pointer;
}

.news-carousel__btn-rail .news-carousel__btn--prev {
  left: 7.25rem;
}

.news-carousel__btn-rail .news-carousel__btn--next {
  right: 7.25rem;
}

.news-carousel__btn:focus-visible {
  outline: 0.125rem solid #3ab0ff;
  outline-offset: 0.125rem;
}

.news-carousel__btn-icon {
  display: block;
  width: 0.5rem;
  height: 0.5rem;
  margin: 0 auto;
  border-right: 0.1875rem solid #3ab0ff;
  border-bottom: 0.1875rem solid #3ab0ff;
}

.news-carousel__btn-icon--prev {
  transform: rotate(135deg);
}

.news-carousel__btn-icon--next {
  transform: rotate(-45deg);
}

.news-carousel-swiper {
  width: 100%;
  height: 41.5rem;
  overflow: visible;
}

.news-carousel-swiper .swiper-wrapper {
  align-items: stretch;
}

/* 主 slide：924px；slide 间距由 Swiper spaceBetween 控制（news-view.js），此处勿写 margin-right */
.news-carousel-swiper .swiper-slide {
  width: 57.75rem;
  height: 31.25rem;
  border-radius: 1.25rem;
  overflow: visible;
  flex-shrink: 0;
}

.news-carousel__slide-link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.news-carousel__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 1.25rem;
  overflow: hidden;
  z-index: 0;
}

.news-carousel__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

/* 激活 slide 内卡片：804px 宽，相对 924px slide 左右各留 60px */
.news-carousel__floating-card {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 2;
  box-sizing: border-box;
  width: 50.25rem;
  max-width: calc(100% - 7.5rem);
  transform: translate(-50%, 50%);
  background: #ffffff;
  border-radius: 1.25rem;
  box-shadow: 0 0.625rem 0.9375rem rgba(0, 0, 0, 0.06);
  padding: 4rem 3rem 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.news-carousel-swiper .swiper-slide.swiper-slide-active .news-carousel__floating-card {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.news-carousel__tag {
  position: absolute;
  left: 3rem;
  top: -0.8125rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.5rem;
  border-radius: 0.5rem;
  background: #cf070b;
  color: #ffffff;
  font-family: s-demibold, sans-serif;
  font-size: 1.5rem;
  line-height: 1;
  font-weight: normal;
}

.news-carousel__title {
  margin: 0 !important;
  font-family: s-demibold, sans-serif !important;
  font-size: 2.25rem !important;
  line-height: normal !important;
  color: #1d1d1f !important;
}

.news-carousel__desc {
  margin: 0;
  font-family: s-regular, sans-serif;
  font-size: 1.25rem;
  line-height: 2rem;
  color: #435566;
  /* 仅展示两行，超出省略号 */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: break-word;
}

.news-carousel-wrap > .news-carousel__pagination {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.news-carousel-swiper .swiper-slide .news-carousel__floating-card * {
  transform: none !important;
}

.news-carousel-swiper .swiper-pagination-bullet {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999rem;
  background: #d9d9d9;
  opacity: 1;
  margin: 0 0.5rem !important;
}

.news-carousel-swiper .swiper-pagination-bullet-active {
  background: #266ac9;
}

/* --- 新闻列表 --- */
.news-list-section {
  padding-top: 0;
  padding-bottom: 6.25rem;
  background: #F5F5F7;
}

.news-list-section__head {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 1rem 1.5rem;
  border-bottom: 0.0625rem solid rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
}

.news-list-section__title {
  margin: 0 !important;
  font-family: s-demibold, sans-serif !important;
  font-size: 1.5rem !important;
  line-height: 1 !important;
  color: #000000 !important;
}

.news-list-shell {
  position: relative;
}

.news-list-live {
  opacity: 1;
  transition: opacity 0.6s ease;
}

.news-list-skeleton {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
}

.news-list-section.news-list-section--loading .news-list-skeleton {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.news-list-section.news-list-section--loading .news-list-live {
  opacity: 0;
  pointer-events: none;
}

.news-list-skeleton__item {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  border-radius: 1.25rem;
  background: #ffffff;
  padding: 1.5rem 2.5rem 1.5rem 1.5rem;
}

.news-list-skeleton__media,
.news-list-skeleton__line {
  background: linear-gradient(90deg, #eef1f5 25%, #f7f9fb 37%, #eef1f5 63%);
  background-size: 400% 100%;
  animation: newsSkeleton 1.2s ease infinite;
}

.news-list-skeleton__media {
  width: 22.22225rem;
  height: 12.5rem;
  border-radius: 0.75rem;
  flex-shrink: 0;
}

.news-list-skeleton__body {
  flex: 1;
  min-width: 0;
}

.news-list-skeleton__line {
  width: 100%;
  height: 0.9375rem;
  border-radius: 0.375rem;
}

.news-list-skeleton__line--title {
  width: 66%;
  height: 1.375rem;
  margin-bottom: 1.125rem;
}

@keyframes newsSkeleton {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: 0 0;
  }
}

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.news-list__item {
  margin: 0;
  padding: 0;
}

.news-list__link {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2.5rem;
  text-decoration: none;
  color: inherit;
  border-radius: 1.25rem;
  background: #ffffff;
  padding: 1.5rem 2.5rem 1.5rem 1.5rem;
  transition: box-shadow 0.6s ease;
}

.news-list__link:hover {
  box-shadow: 0px 0px .625rem 0px rgba(23,38,68,0.16);
}

.news-list__link:hover .news-list__title {
  color: #266ac9 !important;
}

.news-list__media {
  flex-shrink: 0;
  width: 22.22225rem;
  height: 12.5rem;
  border-radius: 0.75rem;
  overflow: hidden;
  background-color: #f1f4f8;
}

.news-list__thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-list__body {
  flex: 1;
  min-width: 0;
  padding-top: 0.5rem;
}

.news-list__title {
  margin: 0 0 0.5625rem 0 !important;
  font-family: s-demibold, sans-serif !important;
  font-size: 1.375rem !important;
  line-height: 1 !important;
  color: #252b3a !important;
  transition: color 0.6s ease;
}

.news-list__excerpt {
  margin: 0;
  font-family: s-regular, sans-serif;
  font-size: 0.9375rem;
  line-height: 1.5rem;
  color: #435566;
  min-height: 3rem;
  max-height: 3rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: break-word;
  word-break: break-word;
}

.news-list__empty {
  margin: 0;
  text-align: center;
  font-size: 1rem;
  color: #8b909a;
  padding: 3rem 0;
}

/* --- 分页 --- */
.news-pagination {
  margin-top: 2.5rem;
}

.news-pagination__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.news-pagination__btn,
.news-pagination__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.875rem;
  height: 1.875rem;
  border-radius: 0.375rem;
  border: 0.0625rem solid #d8d8d8;
  background: #ffffff;
  text-decoration: none;
  box-sizing: border-box;
}

.news-pagination__num {
  font-family: s-regular, sans-serif;
  font-size: 0.875rem;
  line-height: normal;
  color: #3b3e40;
  text-decoration: none;
}

.news-pagination__num:hover,
.news-pagination__btn:hover {
  border-color: #266ac9;
}

.news-pagination__num--current {
  border-color: #266ac9;
  color: #266ac9;
}

.news-pagination__btn--disabled {
  opacity: 0.45;
  pointer-events: none;
}

.news-pagination__ellipsis {
  color: #3b3e40;
  font-size: 0.875rem;
  line-height: 1;
}

.news-pagination__chev {
  display: block;
  color: #3b3e40;
}

.news-pagination__chev--flip {
  transform: rotate(180deg);
}

.news-pagination__jump-wrap {
  display: inline-flex;
  align-items: center;
  margin-left: 1rem;
  gap: 0.5rem;
}

.news-pagination__jump-txt {
  font-family: s-regular, sans-serif;
  font-size: 0.875rem;
  line-height: normal;
  color: #3b3e40;
}

.news-pagination__jump-input {
  width: 2.75rem;
  height: 1.875rem;
  border: 0.0625rem solid #d8d8d8;
  border-radius: 0.375rem;
  background: #ffffff;
  text-align: center;
  font-family: s-regular, sans-serif;
  font-size: 0.875rem;
  line-height: normal;
  color: #3b3e40;
  padding: 0;
  box-sizing: border-box;
}

.news-pagination__jump-input::-webkit-outer-spin-button,
.news-pagination__jump-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.news-pagination__jump-input[type=number] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.news-pagination__jump-go {
  width: 2.75rem;
  height: 1.875rem;
  border: 0.0625rem solid #d8d8d8;
  border-radius: 0.375rem;
  background: #ffffff;
  font-family: s-regular, sans-serif;
  font-size: 0.75rem;
  color: #3b3e40;
  cursor: pointer;
  padding: 0;
}

.news-pagination__jump-go:hover {
  border-color: #266ac9;
  color: #266ac9;
}

.news-pagination__jump-go:focus-visible,
.news-pagination__jump-input:focus-visible,
.news-pagination__num:focus-visible,
.news-pagination__btn:focus-visible {
  outline: 0.125rem solid #266ac9;
  outline-offset: 0.0625rem;
}

.news-pagination__jump-go:disabled {
  opacity: 0.45;
  pointer-events: none;
}

.news-pagination ul.page-numbers {
  border: none;
  margin: 0;
  padding: 0;
  display: none;
}

@media (max-width: 980px) {
  .news-hero {
    min-height: auto;
  }

  .news-hero__layer--ydzx,
  .news-hero__layer--unsplash,
  .news-hero__layer--martini {
    display: none;
  }

  .news-hero__layer--grad-left {
    height: 28rem;
    opacity: 0.9;
  }

  .news-hero__layer--image26 {
    top: -6rem;
    height: 36rem;
  }

  .news-hero__image26-rotate {
    width: 44rem;
  }

  .news-intro {
    padding-top: 2rem;
    padding-bottom: 1.5rem;
  }

  .news-intro__title {
    margin-bottom: 1.5rem !important;
    font-size: 2rem !important;
  }

  .news-intro__desc {
    font-size: 1.125rem !important;
  }

  .news-carousel-section {
    padding-bottom: 2rem;
  }

  .news-carousel-swiper {
    height: 23.5rem;
  }

  .news-carousel-swiper .swiper-slide {
    width: min(90vw, 57.75rem);
    height: 18rem;
  }

  .news-carousel__btn-rail .news-carousel__btn {
    top: 40%;
    transform: translate(-50%, -50%);
    width: 2.5rem;
    height: 2.5rem;
  }

  .news-carousel__btn-rail .news-carousel__btn--prev {
    left: 2rem;
  }

  .news-carousel__btn-rail .news-carousel__btn--next {
    right: -0.5rem;
  }

  .news-carousel__title {
    font-size: 1.25rem !important;
    line-height: 1.5rem !important;
  }

  .news-carousel__desc {
    font-size: 0.9375rem;
    line-height: 1.5rem;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .news-carousel__floating-card {
    width: min(calc(100% - 2rem), 42rem);
    max-width: calc(100% - 2rem);
    padding: 2.5rem 1.5rem 2rem;
    gap: 0.75rem;
  }

  .news-carousel__tag {
    left: 1.5rem;
    font-size: 1rem;
    padding: 0.375rem 0.75rem;
  }

  .news-carousel-wrap > .news-carousel__pagination {
    margin-top: 2rem;
  }

  .news-list-section {
    padding-bottom: 3rem;
  }

  .news-list-section__head {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .news-list-section__title {
    font-size: 1.25rem !important;
  }

  .news-list-skeleton__item,
  .news-list__link {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .news-list-skeleton__media,
  .news-list__media {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .news-list-skeleton__line--title {
    width: 100%;
  }

  .news-list__thumb {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .news-pagination {
    margin-top: 2rem;
  }

  .news-pagination__inner {
    gap: 0.5rem;
  }

  .news-pagination__jump-wrap {
    width: 100%;
    justify-content: center;
    margin-left: 0;
    margin-top: 0.5rem;
  }
}
