/* Sakete Clients Say 组件样式 */

.sakete-clients-say {
  width: 100%;
  padding: var(--spacing-7xl) 0;
  /* padding-top: 6.5625rem; */
  padding-bottom: calc(3.5rem - var(--spacing-4xl));
}

/* 标题区域 */
.sakete-clients-say-header {
  text-align: center;
  margin-bottom: var(--spacing-4xl);
}

.sakete-clients-say-title {
  color: var(--title-text-color);
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-xl);
  line-height: 150%;
  /* margin-bottom: var(--spacing-xl); */
  margin-bottom: 0.625rem;
  font-family: var(--title-font-family);
  text-align: center;
}

.sakete-clients-say-description {
  font-family: var(--font-family);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-base);
  line-height: 162.5%;
  color: var(--text-color);
  text-align: center;
  margin: 0;
}

/* 内容区域 */
.sakete-clients-say-content {
  position: relative;
  width: 100%;
}

/* 导航按钮 */
.sakete-clients-say-navigation {
  display: none;
}

.sakete-clients-say-navigation.show {
  display: flex;
}

/* Swiper 轮播容器 */
.sakete-clients-say-swiper-wrapper {
  position: relative;
  width: 100%;
}

.sakete-clients-say-swiper-wrapper .sakete-clients-say-swiper {
  width: 100%;
  padding: var(--spacing-4xl) var(--spacing-2xl);
  overflow: hidden;
}

.sakete-clients-say-swiper-wrapper .sakete-clients-say-swiper .swiper-wrapper {
  display: flex;
}

.sakete-clients-say-swiper-wrapper .sakete-clients-say-swiper .swiper-slide {
  height: auto;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  width: auto;
  box-sizing: border-box;
}

.sakete-clients-say-swiper-wrapper
  .sakete-clients-say-swiper
  .swiper-slide
  .sakete-clients-say-card {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* 非轮播模式（<=3个评价时） */
.sakete-clients-say-swiper-no-swipe {
  padding: 0;
}

.sakete-clients-say-swiper-no-swipe .sakete-clients-say-swiper {
  padding: 0;
  overflow: visible;
}

.sakete-clients-say-swiper-no-swipe .swiper-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-3xl);
  padding: 0;
  transform: none !important;
}

.sakete-clients-say-swiper-no-swipe .swiper-slide {
  width: 100% !important;
  height: auto;
}

@media (max-width: 1024px) {
  .sakete-clients-say-swiper-no-swipe .swiper-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .sakete-clients-say-swiper-no-swipe .swiper-wrapper {
    grid-template-columns: 1fr;
  }
}

/* 当数据不足3条时，完全隐藏导航容器 */
.sakete-clients-say-content:has(.sakete-clients-say-swiper-no-swipe)
  .sakete-clients-say-navigation {
  display: none !important;
}

/* 评价卡片 */
.sakete-clients-say-card {
  background: var(--bg-color, #ffffff);
  border: 1px solid #dddddd;
  border-radius: 0.9375rem; /* 15px */
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
  padding: 2.5rem 2.5rem 2.0625rem 2.5rem;
  display: flex;
  flex-direction: column;
  /* gap: var(--spacing-3xl); */
  transition: box-shadow 0.3s ease;
}

.sakete-clients-say-card:hover {
  box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.2);
}

/* 评价文字 */
.sakete-clients-say-quote {
  font-family: var(--font-family, 'Open Sans');
  font-size: var(--font-size-md, 1rem); /* 16px */
  font-weight: var(--font-weight-base, 400);
  line-height: 162.5%; /* 26px */
  color: var(--text-color, #4b5563);
  margin: 0;
  flex: 1;
}

/* 客户信息区域 */
.sakete-clients-say-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-xl);
}

/* 头像 */
.sakete-clients-say-avatar {
  width: 4.375rem;
  height: 4.375rem;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  background: #f3f4f6;
  order: 2;
}

.sakete-clients-say-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 客户详细信息 */
.sakete-clients-say-details {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  min-width: 0;
  order: 1;
}

/* 客户姓名 */
.sakete-clients-say-name {
  font-family: var(--font-family, 'Open Sans');
  font-size: var(--font-size-lg, 1.125rem); /* 18px */
  font-weight: var(--font-weight-base, 400);
  line-height: 162.5%; /* 30px */
  color: var(--text-color-lg, #282624);
  margin-bottom: 0;
}

/* 客户职位 */
.sakete-clients-say-position {
  font-family: var(--font-family, 'Open Sans');
  font-size: var(--font-size-sm, 0.875rem); /* 18px */
  font-weight: var(--font-weight-base, 400);
  line-height: 162.5%; /* 30px */
  color: #4b5563;
  margin-top: 0;
}

/* 地区标签 */
.sakete-clients-say-region {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.125rem var(--spacing-md); /* 2px 12px */
  border-radius: 3.125rem; /* 50px */
  background: var(--color-primary, #036eb7);
  color: var(--text-color-light, #ffffff);
  font-family: var(--font-family, 'Open Sans');
  font-size: var(--font-size-sm, 0.875rem); /* 14px */
  font-weight: var(--font-weight-base, 400);
  line-height: 157.14%; /* 22px */
  width: fit-content;
  white-space: nowrap;
  margin-bottom: 0;
  align-self: flex-start;
  margin-bottom: 1.5625rem;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
  .sakete-clients-say-card {
    padding: var(--spacing-2xl);
  }

  .sakete-clients-say-avatar {
    width: 3rem; /* 48px */
    height: 3rem; /* 48px */
  }
}

@media screen and (max-width: 576px) {
  .sakete-clients-say {
    padding: var(--spacing-5xl) 0;
  }

  .sakete-clients-say-header {
    margin-bottom: var(--spacing-3xl);
  }

  .sakete-clients-say-card {
    padding: var(--spacing-xl);
    gap: var(--spacing-2xl);
  }

  .sakete-clients-say-info {
    gap: var(--spacing-md);
  }

  .sakete-clients-say-avatar {
    width: 2.5rem; /* 40px */
    height: 2.5rem; /* 40px */
  }
}
