/* =========================================================
   客户证言轮播（v9.31，两页共用）
   一行三卡：中间大卡强调、两侧卡缩小淡化作预览；底部圆点分页。
   配色走站点 token：主蓝 var(--color-primary)、侧卡 --color-bg-soft 浅蓝 tint；禁绿禁紫。
   ========================================================= */

.vc-stage {
  margin-top: 48px;
  position: relative;
}
/* 视觉块宽 1240（与 v9.30 同规则：负 margin 突围 .wrap 内容盒，1024–1280 自适应不溢出） */
@media (min-width: 1024px) {
  .vc-stage {
    width: min(1240px, calc(100vw - 80px));
    max-width: none;
    margin-inline: calc((100% - min(1240px, 100vw - 80px)) / 2);
  }
}

.vc-track { position: relative; }

.vc-card {
  position: absolute;
  left: 50%;
  top: 0;
  width: 480px;
  margin: 0;
  padding: 28px 32px 24px;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  box-shadow: 0 2px 10px rgba(20, 50, 120, 0.05);
  transition: transform 0.6s var(--ease-out), opacity 0.6s var(--ease-out);
  will-change: transform, opacity;
}
.vc-card.is-mid {
  border-color: rgba(31, 95, 224, 0.35);
  box-shadow: 0 12px 32px rgba(20, 50, 120, 0.12);
}
.vc-card.is-side {
  background: var(--color-bg-soft);
  border-color: rgba(31, 95, 224, 0.14);
  cursor: pointer;
}
.vc-card.is-hidden { pointer-events: none; }

/* v9.31b：顶部 16:9 横向图片区（aspect-ratio 防 CLS；占位符风格同 tpl-gallery） */
.vc-shot {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: var(--color-bg-soft);
  margin-bottom: 16px;
}
.vc-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vc-ph {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.vc-ph span { font-size: 12px; color: var(--color-text-tertiary); }

.vc-who { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.vc-name { font-size: 16px; font-weight: 700; color: var(--color-text); }
.vc-org { font-size: 13px; color: var(--color-text-secondary); }
.vc-quote { margin: 0; font-size: 15px; line-height: 1.8; color: var(--color-text); }

/* 「查看案例详情 →」仅中间卡可见可点（占位 href="#"，JS 已 preventDefault） */
.vc-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out);
}
.vc-card.is-mid .vc-link { opacity: 1; pointer-events: auto; }
.vc-link:hover { text-decoration: underline; }

.vc-dots { display: flex; justify-content: center; gap: 10px; margin-top: 28px; }
.vc-dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: #c3d2f0;
  cursor: pointer;
  transition: transform 0.3s var(--ease-out), background 0.3s var(--ease-out);
}
.vc-dot.on { background: var(--color-primary); transform: scale(1.35); }

/* 834：三卡收窄（JS 间距同步 200px） */
@media (max-width: 1023px) {
  .vc-stage { margin-top: 36px; }
  .vc-card { width: 360px; padding: 24px 26px 20px; }
}
/* 390：单卡 + 圆点（JS 间距 0，侧卡隐藏） */
@media (max-width: 767px) {
  .vc-card { width: min(100%, 340px); padding: 22px 24px 18px; }
}
/* reduced-motion：无过渡，静态第 1 张（JS 同闸不启动自动轮播） */
@media (prefers-reduced-motion: reduce) {
  .vc-card, .vc-link, .vc-dot { transition: none; }
}

/* =========================================================
   v9.35 追加：小标签胶囊 + 左右箭头（7 卡轮播）
   ========================================================= */

/* 小标签：公司名 / 官网原标题 */
.vc-tag {
  display: inline-block;
  margin: 0 0 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(31, 95, 224, 0.08);
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 左右箭头：圆钮贴舞台两侧、垂直居中于轨道 */
.vc-arrow {
  position: absolute;
  top: 40%;
  z-index: 5;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-line);
  background: #fff;
  color: var(--color-text-secondary);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(20, 50, 120, 0.08);
  transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.vc-arrow:hover {
  color: var(--color-primary);
  border-color: rgba(31, 95, 224, 0.45);
  box-shadow: 0 6px 16px rgba(20, 50, 120, 0.14);
}
.vc-arrow--prev { left: -6px; }
.vc-arrow--next { right: -6px; }
@media (min-width: 1024px) {
  .vc-arrow--prev { left: -18px; }
  .vc-arrow--next { right: -18px; }
}
@media (prefers-reduced-motion: reduce) {
  .vc-arrow { transition: none; }
}
