/* 新闻中心内页头部：图片+标题轮播 */
.hero-inner--news {
  position: relative;
  min-height: 520px;
  height: 520px;
  padding-bottom: 0;
}
.news-hero__track {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.news-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.news-hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}
.news-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.news-hero__slide .hero__content {
  position: relative;
  z-index: 2;
}
.hero-inner--news .hero__nav {
  position: relative;
  z-index: 4;
}
/* banner 左右箭头：与内容同宽，显示在内容边距处 */
.news-hero__arrows-wrap {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  pointer-events: none;
}
.news-hero__arrows-wrap .news-hero__arrow-btn {
  pointer-events: auto;
}
.news-hero__arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.95);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.news-hero__arrow-btn:hover {
  background: #fff;
  border-color: #fff;
}
.news-hero__arrow-btn--prev { left: 0; }
.news-hero__arrow-btn--next { right: 0; }
/* 左箭头：指向左 */
.news-hero__arrow-btn--prev::after {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  border-left: 2px solid #333;
  border-top: 2px solid #333;
  border-right: none;
  border-bottom: none;
  transform: rotate(-45deg);
  margin-left: 2px;
}
/* 右箭头：指向右 */
.news-hero__arrow-btn--next::after {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  border-right: 2px solid #333;
  border-top: 2px solid #333;
  border-left: none;
  border-bottom: none;
  transform: rotate(45deg);
  margin-right: 2px;
}

.hero-inner .hero__content {
  position: relative;
  z-index: 2;
  height: 100%;
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.news-hero__bottom {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}
.news-hero__title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  max-width: 50%;
  flex: 1;
}
.news-hero__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  color: #fff;
  padding: 12px 24px;
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 8px;
  transition: background 0.25s ease, color 0.25s ease;
  flex-shrink: 0;
}
.news-hero__link:hover { background: rgba(255,255,255,0.15); color: #fff; }
.news-hero__link-arrow {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
}

/* 新闻列表 */
.news-list {
  padding: 80px 0 60px;
  background: var(--color-gray-light);
}
.news-list__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 40px;
}
.news-list__card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.news-list__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}
.news-list__card-img {
  display: block;
  width: 100%;
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
}
.news-list__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.news-list__card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.news-list__card-body time {
  font-size: 14px;
  color: var(--color-gray);
}
.news-list__card-body h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.4;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* 卡片箭头：用 CSS 绘制，尺寸固定、不模糊 */
.news-list__arrow {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--color-dark);
}
.news-list__arrow::after {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -2px;
  margin-right: -2px;
}

/* 分页 */
.news-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 60px;
}
.news-pagination__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #d0d4dc;
  background: #fff;
  color: #666;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}
.news-pagination__btn::after {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}
.news-pagination__btn--prev::after {
  transform: rotate(-135deg);
  margin-left: 2px;
}
.news-pagination__btn--next::after {
  transform: rotate(45deg);
  margin-right: 2px;
}
.news-pagination__btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.news-pagination__nums {
  display: flex;
  gap: 8px;
}
.news-pagination__nums a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-dark);
  border-radius: 50%;
  border: 1px solid #d0d4dc;
  transition: background 0.2s ease, color 0.2s ease;
}
.news-pagination__nums a:hover { background: var(--color-gray-light); }
.news-pagination__nums a.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* ========== 响应式 ========== */
@media (max-width: 1200px) {
  .news-hero__title { font-size: 22px; max-width: 60%; }
  .news-list__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero-inner--news {
    min-height: 360px;
    height: 360px;
  }
  .hero-inner--news .hero__content {
    padding-bottom: 48px;
  }
  .news-hero__arrow-btn {
    width: 40px;
    height: 40px;
  }
  .news-hero__arrow-btn--prev { left: 16px; }
  .news-hero__arrow-btn--next { right: 16px; }
  .news-hero__arrow-btn--prev::after,
  .news-hero__arrow-btn--next::after {
    width: 8px;
    height: 8px;
    border-width: 1.5px;
  }
  .news-hero__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .news-hero__title {
    font-size: 16px;
    max-width: 100%;
    line-height: 1.3;
  }
  .news-hero__link {
    font-size: 14px;
    padding: 10px 18px;
    align-self: flex-end;
  }
  .news-list { padding: 48px 0 40px; }
  .news-list .container {
    padding-left: 0;
    padding-right: 0;
  }
  .news-list__grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0 16px;
  }
  .news-list__card {
    min-width: 0;
    overflow: hidden;
  }
  .news-list__card-img {
    width: 100%;
    height: 180px;
    min-height: 180px;
  }
  .news-list__card-img img {
    width: 100%;
    height: 100%;
    min-width: 100%;
    object-fit: cover;
    object-position: center;
  }
  .news-list__card-body { padding: 20px; }
  .news-list__card-body h3 { font-size: 16px; }
  .news-pagination { margin-top: 40px; flex-wrap: wrap; }
  .news-pagination__nums a { min-width: 36px; height: 36px; font-size: 14px; }
}

@media (max-width: 480px) {
  .hero-inner--news {
    min-height: 300px;
    height: 300px;
  }
  .hero-inner--news .hero__content {
    padding-bottom: 32px;
  }
  .news-hero__arrow-btn {
    width: 36px;
    height: 36px;
  }
  .news-hero__arrow-btn--prev { left: 12px; }
  .news-hero__arrow-btn--next { right: 12px; }
  .news-hero__arrow-btn--prev::after,
  .news-hero__arrow-btn--next::after {
    width: 6px;
    height: 6px;
    border-width: 1.5px;
  }
  .news-hero__bottom {
    gap: 12px;
  }
  .news-hero__title {
    font-size: 14px;
    line-height: 1.35;
  }
  .news-hero__link {
    font-size: 13px;
    padding: 8px 14px;
    align-self: flex-end;
  }
  .news-hero__link-arrow {
    width: 6px;
    height: 6px;
    border-width: 1.5px;
  }
  .news-list__card-img {
    height: 160px;
    min-height: 160px;
  }
}
