/* 客户评价整页 */

.page-testimonials {
  background: #fff;
}

.page-testimonials .site-footer {
  margin-top: 0;
}

.page-testimonials .back-top {
  display: none;
}

.tp-metrics {
  background: linear-gradient(90deg, #1D5EA8 0%, #4685C1 100%);
  color: #fff;
}

.tp-metrics__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 26px 28px 22px;
  text-align: center;
}

.tp-metric strong {
  display: block;
  font-size: clamp(36px, 3.4vw, 62px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .01em;
}

.tp-metric span {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  opacity: .96;
}

.tp-service {
  position: relative;
  overflow: hidden;
  padding: 70px 28px 58px;
  background: linear-gradient(180deg, #fff 0%, #fdfdfd 100%);
}

.tp-service::before,
.tp-service::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
}

.tp-service::before {
  background:
    radial-gradient(circle at 78% 34%, rgba(242, 245, 249, .95) 0, rgba(242, 245, 249, .55) 22%, transparent 48%),
    radial-gradient(circle at 20% 80%, rgba(245, 247, 250, .78) 0, transparent 44%);
}

.tp-service::after {
  background:
    repeating-radial-gradient(circle at 9% 6%, transparent 0 18px, rgba(17, 84, 157, .055) 19px 21px),
    repeating-radial-gradient(circle at 78% 92%, transparent 0 18px, rgba(17, 84, 157, .04) 19px 21px);
  background-size: 640px 420px, 720px 420px;
  background-repeat: no-repeat;
  background-position: left -130px top -130px, right -220px bottom -170px;
}

.tp-service__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(290px, 1fr) minmax(540px, 640px);
  align-items: center;
  gap: 36px;
  max-width: var(--page-width);
  margin: 0 auto;
  min-height: 520px;
}

.tp-service__title-block {
  position: relative;
  padding-left: 18px;
}

.tp-service__title-block::before {
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  background: #0b4f98;
  content: "";
}

.tp-service__copy h1 {
  margin: 0 0 12px;
  color: #0b4f98;
  font-size: clamp(36px, 3vw, 58px);
  line-height: 1.18;
  letter-spacing: .01em;
}

.tp-service__copy p {
  margin: 0;
  color: #3366a3;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.35;
}

.tp-logo-cloud {
  width: 100%;
  max-width: 760px;
  margin-left: auto;
  padding: 0;
}

.tp-logo-cloud img {
  width: 100%;
  max-height: 440px;
  object-fit: contain;
}

.tp-cases {
  padding: 48px 0 72px;
  background: #fff;
}

.tp-cases .section-heading {
  margin-bottom: 32px;
}

.tp-cases .section-heading h2 {
  margin-bottom: 0;
  color: #3d4147;
  font-size: 24px;
  font-weight: 700;
}

.tp-cases__layout {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: start;
  max-width: var(--page-width);
  margin: 0 auto;
}

.tp-cases__nav {
  border-top: 1px solid #d7e3f3;
}

.tp-cases__tab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 138px;
  padding: 18px 14px;
  border: 0;
  border-bottom: 1px solid #d7e3f3;
  background: #fff;
  color: #2c3746;
  cursor: pointer;
  font: 700 16px/1.4 Arial, "Microsoft YaHei", sans-serif;
  transition: background .2s ease, color .2s ease;
}

.tp-cases__tab:hover {
  background: #f2f7fd;
}

.tp-cases__tab.is-active {
  background: #0b4f98;
  color: #fff;
}

.tp-cases__panels {
  padding-left: 0;
}

.tp-cases__panel {
  display: none;
}

.tp-cases__panel.is-active {
  display: block;
}

.tp-cases__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px 16px;
  padding: 0 24px;
}

.tp-case-card {
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(33, 55, 86, .14);
}

.tp-case-card__trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.tp-case-card img,
.tp-case-card__placeholder {
  width: 100%;
  aspect-ratio: 1.16;
  object-fit: cover;
  background: linear-gradient(135deg, #c7d7e7, #ebf1f7);
  transition: transform .25s ease;
}

.tp-case-card__trigger:hover img {
  transform: scale(1.03);
}

.tp-case-card figcaption {
  display: -webkit-box;
  min-height: 64px;
  margin: 0;
  padding: 10px 10px 12px;
  color: #555d66;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.tp-recognition {
  position: relative;
  overflow: hidden;
  padding: 64px 28px 80px;
  background: linear-gradient(180deg, #eef2f6 0%, #f7f8fb 100%);
}

.tp-recognition::before,
.tp-recognition::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.tp-recognition::before {
  left: -90px;
  top: 18px;
  width: 360px;
  height: 210px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, 0));
  clip-path: polygon(0 0, 100% 54%, 0 100%);
}

.tp-recognition::after {
  right: -110px;
  bottom: -20px;
  width: 420px;
  height: 290px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, 0));
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.tp-recognition .section-heading {
  position: relative;
  z-index: 1;
  margin-bottom: 30px;
}

.tp-recognition .section-heading h2 {
  margin-bottom: 8px;
  color: #2e3135;
  font-size: 24px;
}

.tp-recognition .section-heading p {
  color: #8d959e;
  font-size: 14px;
}

.tp-recognition__stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: var(--page-width);
  margin: 0 auto 30px;
  background: #0b4f98;
  color: #fff;
}

.tp-recognition__stat {
  padding: 18px 20px 16px;
  text-align: center;
}

.tp-recognition__stat strong {
  display: block;
  font-size: clamp(28px, 2.5vw, 48px);
  font-weight: 700;
  line-height: 1.05;
}

.tp-recognition__stat span {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.45;
}

.tp-carousel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  align-items: center;
  gap: 16px;
  max-width: calc(var(--page-width) + 112px);
  margin: 0 auto;
}

.tp-carousel__viewport {
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 14px;
  scrollbar-width: none;
}

.testimonials-track::-webkit-scrollbar {
  display: none;
}

.tp-review-card {
  display: flex;
  flex: 0 0 calc(25% - 15px);
  min-width: 0;
  flex-direction: column;
  min-height: 430px;
  padding: 16px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(41, 58, 86, .1);
  scroll-snap-align: start;
}

.tp-review-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.tp-review-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.tp-review-card__avatar--fallback {
  display: grid;
  place-items: center;
  background: #d9e6f3;
  color: #0b4f98;
  font-weight: 700;
}

.tp-review-card__head h3 {
  margin: 0 0 4px;
  color: #3a3e45;
  font-size: 15px;
  font-weight: 700;
}

.tp-review-card__stars {
  color: #f6c32f;
  font-size: 12px;
  letter-spacing: 1px;
}

.tp-review-card__stars .is-empty {
  color: #d5dbe2;
}

.tp-review-card__body {
  display: -webkit-box;
  margin: 0 0 12px;
  color: #5c6571;
  font-size: 12px;
  line-height: 1.8;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  min-height: 86px;
}

.tp-review-card__scene {
  width: 100%;
  aspect-ratio: 1.35;
  margin-bottom: 12px;
  border-radius: 4px;
  object-fit: cover;
  background: #e7edf4;
}

.tp-review-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}

.tp-review-card__tags li {
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef3fb;
  color: #7b8592;
  font-size: 10px;
  line-height: 1.2;
}

.tp-review-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  color: #bcc3cc;
  font-size: 10px;
  line-height: 1.4;
}

.tp-review-card__meta time {
  color: inherit;
}

.tp-carousel__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin: 0 auto;
  padding: 0;
  border: 1px solid #d0d8e2;
  border-radius: 50%;
  background: rgba(255, 255, 255, .95);
  color: #b0b7c0;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.tp-carousel__btn:hover {
  border-color: #0b4f98;
  background: #fff;
  color: #0b4f98;
}

.tp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.tp-lightbox[hidden] {
  display: none;
}

.tp-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 24, 39, .78);
}

.tp-lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 1120px);
  max-height: calc(100vh - 48px);
  padding: 18px 18px 14px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .24);
}

.tp-lightbox__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 31, 51, .08);
  color: #314156;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.tp-lightbox__image {
  width: 100%;
  max-height: calc(100vh - 130px);
  object-fit: contain;
  background: #f4f7fa;
}

.tp-lightbox__caption {
  margin: 12px 0 0;
  color: #4d5967;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

.tp-empty {
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 1240px) {
  .tp-service__inner {
    grid-template-columns: minmax(250px, 1fr) minmax(460px, 560px);
  }

  .tp-service__copy h1 {
    font-size: clamp(32px, 2.8vw, 50px);
  }

  .tp-service__copy p {
    font-size: 24px;
  }

  .tp-cases__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .tp-review-card {
    flex-basis: calc(33.333% - 14px);
  }
}

@media (max-width: 960px) {
  .tp-metrics__inner {
    gap: 18px;
    padding-inline: 18px;
  }

  .tp-service {
    padding: 56px 28px 42px;
  }

  .tp-service__inner {
    grid-template-columns: 1fr;
    min-height: 0;
    text-align: center;
  }

  .tp-service__title-block {
    padding-left: 0;
  }

  .tp-service__title-block::before {
    left: 50%;
    top: auto;
    bottom: calc(100% + 16px);
    width: 64px;
    height: 4px;
    transform: translateX(-50%);
  }

  .tp-logo-cloud {
    max-width: 520px;
    margin: 0 auto;
  }

  .tp-cases {
    padding: 42px 0 56px;
  }

  .tp-cases__layout {
    grid-template-columns: 1fr;
  }

  .tp-cases__nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 0;
    border-bottom: 1px solid #d7e3f3;
  }

  .tp-cases__tab {
    min-height: 72px;
    border-right: 1px solid #d7e3f3;
  }

  .tp-cases__tab:nth-child(3n) {
    border-right: 0;
  }

  .tp-cases__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 18px;
  }

  .tp-recognition {
    padding: 56px 28px 64px;
  }

  .tp-recognition__stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .tp-carousel {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 8px;
  }

  .tp-review-card {
    flex-basis: calc(50% - 10px);
  }
}

@media (max-width: 640px) {
  .tp-metrics__inner {
    grid-template-columns: 1fr;
    padding: 18px 16px;
  }

  .tp-service {
    padding-left: 16px;
    padding-right: 16px;
  }

  .tp-service__copy h1 {
    font-size: 30px;
  }

  .tp-service__copy p {
    font-size: 18px;
  }

  .tp-logo-cloud {
    max-width: 100%;
  }

  .tp-cases__nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tp-cases__tab:nth-child(3n) {
    border-right: 1px solid #d7e3f3;
  }

  .tp-cases__tab:nth-child(2n) {
    border-right: 0;
  }

  .tp-cases__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .tp-recognition {
    padding-left: 16px;
    padding-right: 16px;
  }

  .tp-recognition__stats {
    grid-template-columns: 1fr;
  }

  .tp-review-card {
    flex-basis: 85%;
    min-height: 390px;
  }

  .tp-carousel__btn {
    width: 30px;
    height: 30px;
    font-size: 18px;
  }

  .tp-lightbox {
    padding: 12px;
  }

  .tp-lightbox__dialog {
    width: 100%;
    max-height: calc(100vh - 24px);
    padding: 14px 14px 12px;
  }

  .tp-lightbox__image {
    max-height: calc(100vh - 100px);
  }
}
