.customer-testimonials__wrapper {
  width: 100%;
  background-color: rgb(var(--color-background));
  color: rgb(var(--color-foreground));
  /* 为包装容器添加更多内边距和最小高度 */
  padding: 100px 60px;
  min-height: 600px;
  box-sizing: border-box;
  /* 添加垂直居中 */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .customer-testimonials__wrapper {
    padding: 80px 30px;
    min-height: 500px;
  }
}

.customer-testimonials-container {
  width: 100%;
  overflow: hidden; /* 防止内容溢出导致滚动 */
}

.customer-testimonials-container .testimonials-wrapper {
  width: 600px;
  margin: 0 auto;
}

.customer-testimonials-container .testimonial-content {
  height: 170px; /* 固定高度防止抖动 */
  position: relative;
}

.customer-testimonials-container .content-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateY(30px);
  transition: none;
  will-change: transform, opacity;
  pointer-events: none;
}

.customer-testimonials-container .content-item.active {
  opacity: 1;
  transform: translateY(0);
}

.customer-testimonials-container .content-text {
  font-size: 20px;
  line-height: 1.6;
  text-align: center;
  color: rgb(var(--color-foreground));
  margin: 0;
  padding: 0 20px;
}

/* 桌面端客户列表 */
.customer-testimonials-container .testimonial-list.desktop-only {
  display: flex;
  justify-content: center;
  gap: 80px;
}

.customer-testimonials-container .list-item {
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease;
  filter: brightness(0.5);
}

.customer-testimonials-container .list-item.active {
  filter: brightness(1);
}

/* 移动端客户信息和导航点容器 */
.customer-testimonials-container .mobile-customer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.customer-testimonials-container .mobile-customer-info {
  width: 100%;
  position: relative;
  height: 120px; /* 固定高度防止抖动 */
  margin-bottom: 20px;
}

.customer-testimonials-container .customer-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
  transition: none;
  will-change: transform, opacity;
}

.customer-testimonials-container .customer-item.active {
  opacity: 1;
  transform: translateY(0);
}

.customer-testimonials-container .avatar-wrapper {
  width: 60px;
  height: 60px;
  margin: 0 auto 10px;
  border-radius: 50%; /* 默认圆形 */
  overflow: hidden;
  position: relative;
  background-color: rgba(var(--color-foreground), 0.1);
}

.customer-testimonials-container .avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 占位图样式 - SVG 元素 */
.customer-testimonials-container svg.avatar-image {
  display: block;
  background-color: rgba(var(--color-foreground), 0.1);
  color: rgba(var(--color-foreground), 0.5);
}

/* 圆形头像样式 */
.customer-testimonials-container.avatar-shape-circle .avatar-wrapper {
  border-radius: 50%;
}

/* 方形头像样式 */
.customer-testimonials-container.avatar-shape-square .avatar-wrapper {
  border-radius: 8px; /* 轻微的圆角 */
}

/* 长方形头像样式 - 调整为140px宽度 */
.customer-testimonials-container.avatar-shape-rectangle .avatar-wrapper {
  width: 140px; /* 从100px增加到140px */
  height: 70px;  /* 保持70px高度 */
  border-radius: 12px; /* 中等圆角 */
}

.customer-testimonials-container .customer-name {
  font-size: 14px;
  padding-top: 10px;
  margin: 0;
  color: rgb(var(--color-foreground));
  text-align: center;
}

/* 移动端导航点 */
.customer-testimonials-container .mobile-dots {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 10px;
  height: 20px; /* 固定高度防止抖动 */
}

.customer-testimonials-container .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: rgba(var(--color-foreground), 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.customer-testimonials-container .dot.active {
  background-color: rgb(var(--color-foreground));
  transform: scale(1.1);
}

/* 响应式设计 */
@media (max-width: 768px) {

.customer-testimonials-container .testimonials-wrapper {
        width: 100%;
        text-align: center;
    }

  .customer-testimonials-container .testimonials-wrapper {
    padding: 0 10px;
  }
  
  .customer-testimonials-container .testimonial-content {
    margin-bottom: 0px;
  }
  
  .customer-testimonials-container .content-text {
    font-size: 18px;
    padding: 0px;
  }
  
  .customer-testimonials-container .testimonial-list.desktop-only {
    display: none;
  }
  
  .customer-testimonials-container .avatar-wrapper {
    width: 60px;
    height: 60px;
  }
  
  /* 移动端长方形头像也要调整 */
  .customer-testimonials-container.avatar-shape-rectangle .avatar-wrapper {
    width: 120px; /* 移动端稍小一些，从85px增加到120px */
    height: 60px;
  }
  
  .customer-testimonials-container .customer-name {
    font-size: 14px;
  }
}

@media (min-width: 769px) {
  .customer-testimonials-container .mobile-only {
    display: none;
  }
}

/* 移动端导航按钮样式 */
.customer-testimonials-container .mobile-nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(var(--color-foreground), 0.05);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: rgb(var(--color-foreground));
  z-index: 10;
  padding: 0;
  outline: none;
  opacity: 0.6;
}

.customer-testimonials-container .mobile-nav-button:hover {
  background: rgba(var(--color-foreground), 0.15);
  opacity: 1;
}

.customer-testimonials-container .mobile-nav-button:active {
  transform: translateY(-50%) scale(0.95);
}

.customer-testimonials-container .mobile-nav-prev {
  left: -20px;
}

.customer-testimonials-container .mobile-nav-next {
  right: -20px;
}

.customer-testimonials-container .mobile-nav-button svg {
  width: 16px;
  height: 16px;
}

/* 移动端按钮适配 */
@media (max-width: 768px) {
  .customer-testimonials-container .mobile-customer-container {
    position: relative;
    padding: 0 30px;
  }
  
  .customer-testimonials-container .mobile-nav-prev {
    left: -10px;
  }
  
  .customer-testimonials-container .mobile-nav-next {
    right: -10px;
  }
}

/* 桌面端隐藏移动端按钮 */
@media (min-width: 769px) {
  .customer-testimonials-container .mobile-nav-button {
    display: none;
  }
}