:root {
  --testimonials-list-max-width: 1320px;
  --testimonials-card-border: #f2e8d5;
  --testimonials-card-shadow: 0px 2px 16px 0px rgba(0, 0, 0, 0.03);
  --testimonials-card-radius: 14px;
  --testimonials-gold: #c39d66;
  --testimonials-gold-border: #c8ac85;
  --testimonials-text-dark: #444444;
  --testimonials-text-gray: #555555;
  --testimonials-text-light: #666666;
  --testimonials-text-muted: #888888;
  --testimonials-text-placeholder: #999999;
  --testimonials-border-light: #eaeaea;
  --testimonials-border-lighter: #f5f5f5;
  --testimonials-divider: #e5e7eb;
}

/* ---- 内容区 ---- */
.testimonials-content {
  padding: 40px 0 60px;
  scroll-margin-top: 100px; 
}

.testimonials-content-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: var(--testimonials-list-max-width);
  margin: 0 auto;
  /* padding: 0 16px; */
}

/* ---- 评分栏 ---- */
.testimonials-rating-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  padding: 32px 24px;
  background: #ffffff;
  border: 1px solid var(--testimonials-card-border);
  border-radius: var(--testimonials-card-radius);
}

.testimonials-rating-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.testimonials-rating-score-group {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.testimonials-rating-score {
  font-family:
    "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 700;
  font-size: 47px;
  line-height: 1.02;
  color: var(--testimonials-gold);
}

.testimonials-rating-divider {
  font-family:
    "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.4;
  color: var(--testimonials-text-placeholder);
}

.testimonials-rating-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.testimonials-rating-stars {
  display: flex;
  align-items: center;
  gap: 2px;
}

.testimonials-rating-stars svg {
  width: 24px;
  height: 24px;
}

.testimonials-rating-count {
  font-family:
    "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.43;
  color: var(--testimonials-text-placeholder);
}

/* 展商/买家切换 */
.testimonials-rating-tabs {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonials-rating-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  height: 46px;
  line-height: 44px;
  border: 1px solid #eaeaea;
  border-radius: 4px;
  background-color: #fff;
  color: #666;
  font-size: 16px;
  font-family:
    "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.testimonials-rating-tab.active {
  background: #c39d66;
  border-color: #c8ac85;
  color: #fff;
}
.testimonials-rating-icon{
  height: 16px;
  object-fit: contain;
}
/* 
.testimonials-rating-tab:hover:not(.active) {
  border-color: var(--testimonials-gold-border);
} */

/* ---- 筛选标签 ---- */
.testimonials-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  width: 100%;
}

.testimonials-filter-tag {
  display: inline-flex;
  align-items: center;
  padding: 12px 16px;
  border: 1px solid var(--testimonials-border-light);
  border-radius: 4px;
  background: #ffffff;
  font-family:
    "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.22;
  color: var(--testimonials-text-light);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.testimonials-filter-tag.active {
  background: var(--testimonials-gold);
  border-color: var(--testimonials-gold-border);
  color: #ffffff;
  font-weight: 500;
}

.testimonials-filter-tag:hover:not(.active) {
  border-color: var(--testimonials-gold-border);
  color: var(--testimonials-gold);
}

/* ---- 评价卡片网格 ---- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 21px;
  margin-top: 32px;
  width: 100%;
}

.testimonials-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  background: #ffffff;
  border: 1px solid var(--testimonials-card-border);
  border-radius: var(--testimonials-card-radius);
  box-shadow: var(--testimonials-card-shadow);
  box-sizing: border-box;
}

/* 卡片头部：用户信息 + 星级 */
.testimonials-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  height: 72px;
  box-sizing: border-box;
}

.testimonials-card-user {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonials-card-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--testimonials-card-border);
  object-fit: cover;
  flex-shrink: 0;
}

.testimonials-card-user-info {
  display: flex;
  flex-direction: column;
}

.testimonials-card-name {
  font-family:
    "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.5;
  color: var(--testimonials-text-dark);
}

.testimonials-card-title {
  font-family:
    "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.5;
  color: var(--testimonials-text-placeholder);
  padding-top: 2px;
}

.testimonials-card-stars {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.testimonials-card-stars svg {
  width: 20px;
  height: 20px;
}

/* 卡片标题 */
.testimonials-card-headline {
  font-family:
    "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.625;
  color: var(--testimonials-text-gray);
  margin: 0;
}

/* 卡片描述 */
.testimonials-card-desc {
  font-family:
    "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.5;
  color: var(--testimonials-text-gray);
  margin: 0;
  padding-top: 8px;
}

/* 卡片底部：公司名 + 日期 */
.testimonials-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  margin-top: 16px;
  border-top: 1px solid var(--testimonials-border-lighter);
}

.testimonials-card-company,
.testimonials-card-date {
  font-family:
    "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.5;
  color: var(--testimonials-text-muted);
}

/* ---- 底部认证 ---- */
.testimonials-cert {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 60px;
  padding-bottom: 20px;
  font-family:
    "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.125;
  color: var(--testimonials-text-dark);
}

.testimonials-cert-sep {
  font-weight: 500;
  color: var(--testimonials-border-light);
}

/* ---- 响应式 ---- */
@media (max-width: 992px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .testimonials-rating-bar {
    flex-direction: column;
    gap: 20px;
    padding: 24px 20px;
  }

  .testimonials-rating-left {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  .testimonials-rating-meta {
    align-items: center;
  }

  .testimonials-filter {
    flex-wrap: wrap;
    margin-top: 24px;
  }

  .testimonials-cert {
    margin-top: 40px;
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .testimonials-content {
    padding: 40px 0 40px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 24px;
  }

  .testimonials-rating-bar {
    padding: 20px 16px;
    gap: 16px;
  }

  .testimonials-rating-score {
    font-size: 36px;
  }

  .testimonials-rating-divider {
    font-size: 16px;
  }

  .testimonials-rating-stars svg {
    width: 20px;
    height: 20px;
  }

  .testimonials-rating-count {
    font-size: 12px;
  }

  .testimonials-rating-tabs {
    width: 100%;
    gap: 8px;
  }

  .testimonials-rating-tab {
    flex: 1;
    width: auto;
    padding: 12px 16px;
    font-size: 14px;
  }

  .testimonials-filter {
    gap: 6px;
    margin-top: 20px;
  }

  .testimonials-filter-tag {
    padding: 8px 12px;
    font-size: 14px;
  }

  .testimonials-cert {
    flex-wrap: wrap;
    margin-top: 32px;
    font-size: 13px;
    gap: 4px;
  }
}
