/* 中誉关于我们组件样式 */
.zhongyu-about {
  padding: 140px 0;
  background: #f5f5f5;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

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

/* 背景装饰图案 */
.zhongyu-about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 600"%3E%3Cpath d="M0 0h800v600H0z" fill="%23000" opacity="0.03"/%3E%3C/svg%3E');
  opacity: 0.1;
  pointer-events: none;
}

/* 主内容区域 */
.zhongyu-about-content {
  position: relative;
  display: flex;
  gap: 30px;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}

/* 左侧内容 */
.zhongyu-about-left {
  flex: 1;
  min-width: 0; /* 允许内容在必要时缩小 */
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* 标题区域 */
.zhongyu-about-header {
  text-align: center;
  margin-bottom: 60px;
}

.zhongyu-about-title {
  font-family: var(--title-font-family, 'Roboto', sans-serif);
  font-size: var(--zhongyu-title, 36px);
  font-weight: 700;
  line-height: 1.17;
  margin: 0 0 8px 0;
  color: var(--color-primary);
}

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

/* 描述文本 */
.zhongyu-about-description {
  font-family: var(--font-family, 'Roboto', sans-serif);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.25;
  color: #595757;
  max-height: 300px;
  overflow-y:auto;
}
.zhongyu-about-description .highlight{
  font-size:24px;
  color: var(--color-primary);
}
.zhongyu-about-description::-webkit-scrollbar { 
    /* 隐藏默认的滚动条 */
    -webkit-appearance: none;
}

.zhongyu-about-description::-webkit-scrollbar:vertical { 
    /* 设置垂直滚动条宽度 */
    width: 6px;
}


.zhongyu-about-description::-webkit-scrollbar-thumb { 
    border-radius: 8px; 
    background-color: rgba(0, 0, 0, .5);
}

.zhongyu-about-description::-webkit-scrollbar-track {
    background: #f1f1f1 !important;
    border-radius: 6px !important;
    border: 1px solid #ddd !important;
    visibility: visible !important;
}
.zhongyu-about-description p {
  margin: 0;
}
/* 按钮 */
.zhongyu-about-button{
  width: 150px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  background-color:var(--color-primary) ;
  color: #fff;
  border-radius: 8px;
}

/* 数字统计模块 */
.zhongyu-about-stats {
  position: absolute;
  left: 0;
  bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0C3054;
  padding: 30px 0;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  gap: 72px;
  z-index: 2;
  width: 70%;
}

.zhongyu-about-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  /* flex: 1; */
}

.zhongyu-about-stat-number {
  font-family: var(--font-family, 'Roboto', sans-serif);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.17;
  color: #fff;
  text-align: center;
}
.zhongyu-about-stat-unit {
  font-family: var(--font-family, 'Roboto', sans-serif);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.17;
  color: #fff;
  text-align: center;
}
.zhongyu-about-stat-label {
  font-family: var(--font-family, 'Roboto', sans-serif);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.17;
  color: #fff;
  text-align: center;
  white-space: nowrap;
}

.zhongyu-about-stat-divider {
  width: 1px;
  height: 60px;
  background: #fff;
  flex-shrink: 0;
}

/* 右侧图片展示 */
.zhongyu-about-right {
  flex-shrink: 0;
  width: 60%;
  height: 462px;
}

.zhongyu-about-gallery {
  display: flex;
  gap: 20px;
  height: 100%;
  /* align-items: stretch; */
}

/* 主图 */
.zhongyu-about-main-image {
  flex: 1;
  /* height: 594px; */
  border-radius: 4px;
  overflow: hidden;
  background: #f0f0f0;
  aspect-ratio: 727/462;
  height: 100%;
}

.zhongyu-about-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  /* aspect-ratio: 767/462; */
  transition: opacity 0.3s ease;
}

/* 缩略图区域 */
.zhongyu-about-thumbnails {
  display: flex;
  gap: 10px;
  align-items: stretch;
  height: 100%;
}

.zhongyu-thumbnails-swiper {
  width: 144px;
  height: 100%;
  overflow: hidden;
}

.zhongyu-thumbnails-swiper .swiper-wrapper {
  display: flex;
  flex-direction: column;
  /* Swiper's `spaceBetween` handles the gap */
  height: 100%;
}

.zhongyu-thumbnails-swiper .swiper-slide {
  /* height is calculated by Swiper based on slidesPerView */
  width: 100%;
  flex-shrink: 0;
}

.zhongyu-thumbnail-item {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
}

.zhongyu-thumbnail-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.zhongyu-thumbnail-item:hover::after {
  opacity: 1;
}

.zhongyu-thumbnail-item.active {
  /* border-color: var(--title-text-color, #0C3054); */
}

.zhongyu-thumbnail-item.active::after {
  opacity: 0;
}

.zhongyu-thumbnail-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* 自定义滚动条 */
.zhongyu-scrollbar {
  width: 20px;
  height: 100%;
  position: relative;
}

.zhongyu-scrollbar-track {
  width: 6px;
  height: 100%;
  background: #fff;
  border-radius: 3px;
  position: relative;
  margin: 0 auto;
}

.zhongyu-scrollbar-thumb {
  width: 6px;
  background: #000;
  border-radius: 3px;
  position: absolute;
  top: 0;
  left: 0;
  cursor: pointer;
  transition: background 0.2s ease;
}

.zhongyu-scrollbar-thumb:hover {
  background: #f0f0f0;
}

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

/* Large (lg) - <1200px */
@media (max-width: 1600px) {
      .zhongyu-about-stats{
        gap: 40px;
        width:75%;
        bottom: -70px;
      }
}

@media (max-width: 1199.98px) {
  .zhongyu-about {
    padding: 100px 0;
  }
  .zhongyu-about-stats{
        gap:20px;
        width:75%;
    }

  .zhongyu-about-content {
    gap: 40px;
  }


  .zhongyu-about-description {
    font-size: 16px;
  }

  .zhongyu-about-right {
    /* width: 450px; */
    /* height: 400px; */
  }

  .zhongyu-about-main-image {
    height: 100%;
  }

  .zhongyu-thumbnails-swiper {
    width: 130px;
    height: 100%;
  }

  .zhongyu-scrollbar {
    height: 100%;
  }

  .zhongyu-thumbnails-swiper .swiper-slide {
    /* height is calculated by Swiper */
  }

  .zhongyu-thumbnail-item {
    width: 100%;
    height: 100%;
  }

  .zhongyu-about-stats {
    gap: 25px;
    padding: 25px 0;
  }

  .zhongyu-about-stat-number {
    font-size: 26px;
  }

  .zhongyu-about-stat-label {
    font-size: 14px;
  }
}

/* Medium (md) - <992px */
@media (max-width: 991.98px) {
  .zhongyu-about-header{
    margin-bottom: 20px;
  }
  .zhongyu-about {
    padding: 80px 0;
  }

  .zhongyu-about-content {
    flex-direction: column;
    gap: 50px;
  }

  .zhongyu-about-left {
    width: 100%;
    gap: 30px;
  }



  .zhongyu-about-subtitle {
    font-size: 15px;
  }

  .zhongyu-about-description {
    font-size: 18px;
  }

  .zhongyu-about-right {
    width: 100%;
    height: auto;
  }

  /* 移动端：主图在上，缩略图在下水平排列 */
  .zhongyu-about-gallery {
    flex-direction: column;
    gap: 15px;
    height: auto;
  }

  .zhongyu-about-main-image {
    height: 400px;
  }

  .zhongyu-about-thumbnails {
    flex-direction: column;
    gap: 10px;
    height: auto;
    width: 100%;
  }

  .zhongyu-thumbnails-swiper {
    width: 100%;
    height: auto;
    overflow: hidden; /* Swiper container requires overflow: hidden */
  }

  .zhongyu-thumbnails-swiper .swiper-wrapper {
    flex-direction: row;
    /* gap: 10px; */
    height: auto;
  }

  .zhongyu-thumbnails-swiper .swiper-slide {
    /* height: 120px; */
    flex-shrink: 0;
    aspect-ratio: 1/1;
  }

  /* 移动端隐藏自定义滚动条 */
  .zhongyu-scrollbar {
    display: block;
    width: 100%;
    height: 20px; /* Includes track and some vertical space */
    padding: 7px 0; /* Center the track vertically */
    margin-top: 5px;
  }

  .zhongyu-scrollbar-track {
    width: 100%;
    height: 6px;
  }

  .zhongyu-scrollbar-thumb {
    height: 100%;
    /* Width is set by JS */
  }

  .zhongyu-about-stats {
    flex-wrap: wrap;
    gap: 30px 40px;
    padding: 25px 20px;
    position: unset;
    width: 100%;
  }

  .zhongyu-about-stat-item {
    flex: 0 0 calc(50% - 20px);
  }

  .zhongyu-about-stat-divider {
    display: none;
  }
}

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

  .zhongyu-about-content {
    gap: 40px;
  }

  .zhongyu-about-left {
    gap: 25px;
  }



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

  .zhongyu-about-description {
    font-size: 16px;
  }

  .zhongyu-about-main-image {
    height: 350px;
  }

  .zhongyu-thumbnails-swiper .swiper-slide {
    /* height: 100px; */
  }

  .zhongyu-about-stats {
    gap: 20px;
    padding: 20px 15px;
  }

  .zhongyu-about-stat-item {
    flex: 0 0 calc(50% - 10px);
  }

  .zhongyu-about-stat-number {
    font-size: 28px;
  }

  .zhongyu-about-stat-label {
    font-size: 13px;
  }
}

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

  .zhongyu-about-content {
    gap: 30px;
  }

  .zhongyu-about-left {
    gap: 20px;
  }



  .zhongyu-about-subtitle {
    font-size: 13px;
  }

  .zhongyu-about-description {
    font-size: 14px;
  }

  .zhongyu-about-main-image {
    height: 300px;
  }

  .zhongyu-thumbnails-swiper .swiper-slide {
    height: 90px;
  }

  .zhongyu-about-stats {
    gap: 15px;
    padding: 15px 10px;
  }

  .zhongyu-about-stat-number {
    font-size: 24px;
  }

  .zhongyu-about-stat-label {
    font-size: 12px;
  }
}

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

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

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

/* 数字滚动动画 */
@keyframes countUp {
  from {
    opacity: 0; 
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.zhongyu-about-stat-number.counting {
  animation: countUp 0.5s ease-out;
}
