/* 中誉特色新闻组件样式 */
.zhongyu-feature-news {
  padding: 124px 158px;
  background: #FFFFFF;
  position: relative;
  overflow: hidden;
}

@media (min-width: 1800px) {
  .zhongyu-feature-news .container {
    max-width: 1600px;
  }
}

/* 标题区域 */
.zhongyu-feature-news-header {
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

.zhongyu-feature-news-title {
  font-family: var(--title-font-family, 'Roboto', sans-serif);
  font-size: var(--zhongyu-title, 36px);
  font-weight: 700;
  line-height: 1.17;
  color: #FFFFFF;
  margin: 0 0 10px 0;
}

.zhongyu-feature-news-subtitle {
  font-family: var(--font-family, 'Roboto', sans-serif);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.17;
  color: #FFFFFF;
  margin: 0;
}

/* 轮播区域 */
.zhongyu-feature-news-carousel {
  position: relative;
}

.zhongyu-feature-news-swiper {
  overflow: visible;
}

.zhongyu-feature-news-swiper .swiper-wrapper {
  align-items: center;
}

.zhongyu-feature-news-swiper .swiper-slide {
  width: 300px;
  height: auto;
  transition: all 0.3s ease;
  opacity: 0.47; /* 默认状态：缩小+半透明 */
  transform: scale(0.8);
}

/* JS-driven highlight for desktop */
.zhongyu-feature-news-swiper .swiper-slide.is-highlight {
  opacity: 1;
  transform: scale(1);
  z-index: 3;
}

/* CSS-driven highlight for mobile/tablet where centeredSlides=true */
@media (max-width: 767.98px) {
  .zhongyu-feature-news-swiper .swiper-slide-active {
    opacity: 1;
    transform: scale(1);
  }
}

/* 新闻卡片 */
.zhongyu-news-card {
  background: #FFFFFF;
  border-radius: 0;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  position: relative; /* 确保z-index生效 */
  z-index: 1;
}


/* 新闻图片 */
.zhongyu-news-image {
  position: relative;
  aspect-ratio: 300/200;
  overflow: hidden;
}

.zhongyu-news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s ease;
}

.zhongyu-news-card:hover .zhongyu-news-image img {
  transform: scale(1.05);
}

.zhongyu-news-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.zhongyu-news-card:hover .zhongyu-news-overlay {
  opacity: 1;
}

/* 新闻内容 */
.zhongyu-news-content {
  padding: 24px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.zhongyu-news-title {
  font-family: var(--font-family, 'Roboto', sans-serif);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.17;
  color: #231815;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zhongyu-news-meta {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex: 1;
}

.zhongyu-news-meta svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  color: #595757;
}

.zhongyu-news-description {
  font-family: var(--font-family, 'Roboto', sans-serif);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.79;
  color: #595757;
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zhongyu-news-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-family, 'Roboto', sans-serif);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.17;
  color: #1A69B6;
  text-decoration: none;
  transition: color 0.3s ease;
  margin-top: auto;
  justify-content: space-between;
}

.zhongyu-news-link:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.zhongyu-news-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.zhongyu-news-link:hover svg {
  transform: translateX(4px);
}

/* 左右蒙版 */
.zhongyu-news-mask {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2; /* 确保在底层slide之上，高亮slide之下 */
  pointer-events: none;
}

.zhongyu-news-mask-left {
  left: 0;
  /* background: linear-gradient(90deg, #0C3054 0%, transparent 100%); */
  background: linear-gradient(to right, #0C3054 0%, rgba(12, 48, 84, 0) 100%);
}

.zhongyu-news-mask-right {
  right: 0;
  /* background: linear-gradient(270deg, #0C3054 0%, transparent 100%); */
  background: linear-gradient(to left, #0C3054 0%, rgba(12, 48, 84, 0) 100%);
}

/* ========================================
   响应式设计 - 桌面优先断点系统
   
   断点说明（从大到小依次覆盖）：
   - 默认: ≥1200px (桌面大屏)
   - lg: <1200px   (桌面小屏)
   - md: <992px    (平板)
   - sm: <768px    (手机横屏)
   - xs: <576px    (手机竖屏)
   ======================================== */

/* Large (lg) - <1200px */
@media (max-width: 1199.98px) {
  .zhongyu-feature-news {
    padding: 100px 0;
  }

  .zhongyu-feature-news-header {
    margin-bottom: 50px;
  }

  .zhongyu-feature-news-swiper {
    padding: 0 80px;
  }

  .zhongyu-feature-news-swiper .swiper-slide {
    width: 280px;
  }

  .zhongyu-news-mask {
    width: 80px;
  }

  .zhongyu-news-content {
    padding: 20px 18px 18px;
    gap: 14px;
  }

  .zhongyu-news-title {
    font-size: 18px;
  }

  .zhongyu-news-description {
    font-size: 13px;
    line-height: 1.7;
  }
}

/* Medium (md) - <992px */
@media (max-width: 991.98px) {
  .zhongyu-feature-news {
    padding: 80px 0;
  }

  .zhongyu-feature-news-header {
    margin-bottom: 40px;
  }


  .zhongyu-feature-news-swiper {
    padding: 0 60px;
  }

  .zhongyu-feature-news-swiper .swiper-slide {
    width: 260px;
  }

  /* 平板上只显示中间一个放大 */
  /* 使用Swiper的active类 */
  .zhongyu-feature-news-swiper .swiper-slide-active {
    opacity: 1;
    transform: scale(1);
  }

  .zhongyu-news-mask {
    width: 60px;
  }

  .zhongyu-news-content {
    padding: 18px 16px 16px;
    gap: 12px;
  }

  .zhongyu-news-title {
    font-size: 17px;
  }

  .zhongyu-news-description {
    font-size: 12px;
    line-height: 1.6;
    -webkit-line-clamp: 2;
  }

  .zhongyu-news-link {
    font-size: 14px;
  }
}

/* Small (sm) - <768px */
@media (max-width: 767.98px) {
  .zhongyu-feature-news {
    padding: 60px 0;
  }

  .zhongyu-feature-news-header {
    margin-bottom: 30px;
  }


  .zhongyu-feature-news-swiper {
    padding: 0; /* 移动端不需要padding */
  }

  .zhongyu-feature-news-swiper .swiper-slide {
    width: 240px;
  }

  .zhongyu-news-mask {
    width: 40px;
  }

  .zhongyu-news-image {
    aspect-ratio: 240/160;
  }

  .zhongyu-news-content {
    padding: 16px 14px 14px;
    gap: 10px;
  }

  .zhongyu-news-title {
    font-size: 16px;
  }

  .zhongyu-news-description {
    font-size: 11px;
    line-height: 1.5;
  }

  .zhongyu-news-link {
    font-size: 13px;
  }
}

/* Extra Small (xs) - <576px */
@media (max-width: 575.98px) {
  .zhongyu-feature-news {
    padding: 40px 0;
  }

  .zhongyu-feature-news-header {
    margin-bottom: 25px;
  }



  .zhongyu-feature-news-subtitle {
    font-size: 14px;
  }

  .zhongyu-feature-news-swiper {
    padding: 0 30px;
  }

  .zhongyu-feature-news-swiper .swiper-slide {
    width: 220px;
  }

  /* 手机上所有slide都是正常大小 */
  .zhongyu-feature-news-swiper .swiper-slide {
    opacity: 1;
    transform: scale(1);
  }

  .zhongyu-news-mask {
    display: none; /* 手机端隐藏蒙版 */
  }

  .zhongyu-news-image {
    aspect-ratio: 220/140;
  }

  .zhongyu-news-content {
    padding: 14px 12px 12px;
    gap: 8px;
  }

  .zhongyu-news-title {
    font-size: 15px;
    -webkit-line-clamp: 2;
  }

  .zhongyu-news-description {
    font-size: 10px;
    line-height: 1.4;
    -webkit-line-clamp: 2;
  }

  .zhongyu-news-link {
    font-size: 12px;
  }

  .zhongyu-news-meta svg {
    width: 14px;
    height: 14px;
  }

  .zhongyu-news-link svg {
    width: 14px;
    height: 14px;
  }
}

/* 确保组件样式隔离 */
.zhongyu-feature-news *,
.zhongyu-feature-news *::before,
.zhongyu-feature-news *::after {
  box-sizing: border-box;
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.zhongyu-feature-news {
  animation: fadeInUp 0.6s ease-out;
}

/* Swiper覆盖样式 */
.zhongyu-feature-news-swiper .swiper-wrapper {
  transition-timing-function: ease-out;
}

/* 背景色调整 */
.zhongyu-feature-news {
  background: #0C3054;
}



.swiper-button-prev, .swiper-button-next{
  color: #fff;
}