/* 客户评价列表：布局对齐设计稿；色值跟全站雾蓝紫 */
.ce-page {
  background: #f6f7fa;
  color: #303644;
}
.ce-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(ellipse 70% 80% at 100% -10%, rgba(109, 120, 164, 0.38), transparent 58%),
    linear-gradient(165deg, #1a2438 0%, #243352 62%, #1c2a44 100%);
  border-bottom: 1px solid rgba(228, 231, 238, 0.08);
}
.ce-hero-mountains {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(26, 36, 56, 0.55) 0%, rgba(26, 36, 56, 0.2) 48%, rgba(26, 36, 56, 0.05) 100%),
    url('../images/ce-cta-mountains-dark.svg');
  background-repeat: no-repeat;
  background-position: center top, center bottom;
  background-size: 100% 100%, 100% auto;
  pointer-events: none;
}
.ce-hero-inner {
  position: relative;
  z-index: 1;
  padding: 2.75rem 0 2.5rem;
}
.ce-hero .breadcrumb {
  padding-top: 0;
  margin-bottom: 1.25rem;
  color: rgba(255, 255, 255, 0.72);
}
.ce-hero .breadcrumb a {
  color: rgba(255, 255, 255, 0.78);
}
.ce-hero .breadcrumb a:hover {
  color: #fff;
}
.ce-hero .breadcrumb__current {
  color: #fff;
}
.ce-kicker {
  display: block;
  margin: 0 0 0.65rem;
  color: #d5dced;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ce-hero h1 {
  max-width: 14em;
  margin: 0 0 0.85rem;
  font-family: Georgia, 'Times New Roman', 'Songti SC', 'SimSun', serif;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.25;
}
.ce-lead {
  max-width: 42rem;
  margin: 0 0 1.75rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.0625rem;
  line-height: 1.9;
}
.ce-trust {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem 1.25rem;
  margin: 0;
  padding: 1.25rem 0 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.ce-trust li {
  display: grid;
  grid-template-columns: 2.35rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center; /* 图标相对两行文案垂直居中 */
  min-width: 0;
}
.ce-trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #eef1fa;
  line-height: 0;
}
.ce-trust-icon .icon {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
  max-width: none;
  margin: 0;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ce-trust-icon.has-img {
  padding: 0.35rem;
}
.ce-trust-icon.has-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.ce-trust strong {
  display: block;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.45;
}
/* 只改文案副行，勿命中 .ce-trust-icon（否则 display:block 会让 SVG 贴左上） */
.ce-trust li > div > span {
  display: block;
  margin-top: 0.15rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.ce-main {
  padding: 2rem 0 3rem;
}
.ce-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1.35rem;
}
.ce-toolbar-copy h2 {
  margin: 0 0 0.25rem;
  color: #303644;
  font-size: 1.375rem;
  line-height: 1.35;
}
.ce-count {
  margin: 0;
  color: #606c83;
  font-size: 0.9375rem;
}
.ce-sort {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid #dfe3ed;
  border-radius: 999px;
  background: #fff;
  color: #45507a;
  font-size: 0.875rem;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.ce-sort:hover {
  border-color: #626e9c;
  color: #626e9c;
  background: #f8f9fc;
}
.ce-sort .icon {
  width: 0.95rem;
  height: 0.95rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ce-sort-chevron {
  width: 0.85rem;
  height: 0.85rem;
  transition: transform 0.15s ease;
}
.ce-sort.is-asc .ce-sort-chevron {
  transform: rotate(180deg);
}

.ce-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: stretch;
}
/* 格子拉高后，li / 卡片跟着撑满，同行底边对齐 */
.ce-grid > li {
  display: flex;
  min-height: 100%;
}
.ce-card {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 0.95rem;
  width: 100%;
  min-width: 0;
  min-height: 100%;
  padding: 1.35rem 1.35rem 1.2rem;
  border: 1px solid #e4e7ee;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(69, 80, 122, 0.04);
}
.ce-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.ce-stars {
  display: inline-flex;
  gap: 0.15rem;
  color: #c4a35a;
}
.ce-stars .icon {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
  stroke: none;
}
.ce-stars .is-empty {
  color: #d5dae6;
}
.ce-who {
  margin: 0;
  color: #606c83;
  font-size: 0.875rem;
  text-align: right;
  line-height: 1.5;
}
.ce-card-title {
  margin: 0;
  color: #303644;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.45;
}
.ce-quote-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  min-width: 0;
}
.ce-quote {
  margin: 0;
  color: #303644;
  font-size: 1rem;
  line-height: 1.85;
}
.ce-quote-toggle {
  display: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #626e9c;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
}
.ce-quote-toggle:hover {
  color: #45507a;
}
.ce-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: auto; /* 无关联产品时，元信息贴卡片底 */
  padding-top: 0.95rem;
  border-top: 1px solid #eef0f5;
}
.ce-meta div {
  min-width: 0;
}
.ce-meta dt {
  margin: 0 0 0.2rem;
  color: #8a93a8;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}
.ce-meta dd {
  margin: 0;
  color: #45507a;
  font-size: 0.875rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.ce-product {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) 1.5rem;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.15rem;
  padding: 0.55rem;
  border: 1px solid #e4e7ee;
  border-radius: 8px;
  background: #f8f9fc;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}
/* 只有关联产品、没有元信息时，产品条贴底 */
.ce-quote + .ce-product {
  margin-top: auto;
}
.ce-product:hover {
  border-color: #c5cad8;
  background: #f0f1f7;
}
.ce-product-media {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 6px;
  overflow: hidden;
  background: #e4e7ef;
}
.ce-product-media.has-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ce-product-copy {
  min-width: 0;
  display: grid;
  gap: 0.15rem;
}
.ce-product-copy strong {
  color: #303644;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.ce-product-copy small {
  color: #606c83;
  font-size: 0.8125rem;
  line-height: 1.4;
}
.ce-product-go {
  display: grid;
  place-items: center;
  color: #626e9c;
}
.ce-product-go .icon {
  width: 1.05rem;
  height: 1.05rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ce-empty {
  padding: 2.5rem 1.5rem;
  border: 1px dashed #dfe3ed;
  border-radius: 10px;
  background: #fff;
  text-align: center;
}
.ce-empty h2 {
  margin: 0 0 0.5rem;
  font-size: 1.375rem;
  color: #45507a;
}
.ce-empty p {
  margin: 0;
  color: #606c83;
}

.ce-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 2rem;
}
.ce-pager a,
.ce-pager span {
  display: inline-grid;
  place-items: center;
  min-width: 2.35rem;
  height: 2.35rem;
  padding: 0 0.55rem;
  border-radius: 8px;
  border: 1px solid #dfe3ed;
  background: #fff;
  color: #45507a;
  font-size: 0.9375rem;
  line-height: 1;
}
.ce-pager a:hover {
  border-color: #626e9c;
  color: #626e9c;
}
.ce-pager .is-current {
  border-color: #626e9c;
  background: #626e9c;
  color: #fff;
}
.ce-pager .is-disabled {
  opacity: 0.45;
  pointer-events: none;
}
.ce-pager .icon {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 页底定制 CTA（布局跟设计稿；深色雾蓝紫 + 山景） */
.ce-cta {
  position: relative;
  overflow: hidden;
  margin-top: 0.5rem;
  padding: 3.25rem 0 3.4rem;
  background:
    radial-gradient(ellipse 70% 80% at 0% 100%, rgba(109, 120, 164, 0.28), transparent 55%),
    linear-gradient(165deg, #1a2438 0%, #243352 62%, #1c2a44 100%);
  border-top: 1px solid rgba(228, 231, 238, 0.08);
}
.ce-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/ce-cta-mountains-dark.svg');
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 100% auto;
  opacity: 0.9;
  pointer-events: none;
}
.ce-cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem 3rem;
}
.ce-cta-copy {
  position: relative;
  max-width: 46rem;
  padding-left: 1.15rem;
}
.ce-cta-copy::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.2rem;
  bottom: 0.2rem;
  width: 2px;
  background: #9aa6ce;
  border-radius: 2px;
}
.ce-cta-copy h2 {
  margin: 0 0 0.7rem;
  font-family: Georgia, 'Times New Roman', 'Songti SC', 'SimSun', serif;
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: #fff;
}
.ce-cta-copy p {
  margin: 0;
  max-width: 40rem;
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.78);
}
.ce-cta-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3rem;
  padding: 0.75rem 1.45rem;
  border-radius: 8px;
  background: linear-gradient(165deg, #6d78a4, #525d8a);
  color: #fff;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(18, 24, 40, 0.28);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.ce-cta-btn:hover {
  background: #45507a;
  color: #fff;
  box-shadow: 0 10px 24px rgba(18, 24, 40, 0.36);
  transform: translateY(-1px);
}
.ce-cta-btn .icon {
  width: 1.05rem;
  height: 1.05rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 1050px) {
  .ce-hero-inner {
    padding: 2.1rem 0 1.85rem;
  }
  .ce-trust {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ce-grid {
    grid-template-columns: 1fr;
  }
  .ce-meta {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
  .ce-cta {
    padding: 2.6rem 0 2.75rem;
  }
  .ce-cta-inner {
    gap: 1.5rem 2rem;
  }
  /* 窄屏：评价正文最多三行，超出省略并可展开 */
  .ce-quote-wrap:not(.is-expanded) .ce-quote {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }
  .ce-quote-toggle:not([hidden]) {
    display: inline-flex;
  }
}

@media (max-width: 760px) {
  .ce-trust {
    grid-template-columns: 1fr;
  }
  .ce-card {
    padding: 1.15rem;
  }
  .ce-card-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .ce-who {
    text-align: left;
  }
  .ce-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .ce-cta-btn {
    width: 100%;
  }
}
