/* 评价样稿延续站点的深色基调，轮播操作保留在标题旁。 */
.trust-section {
  background: radial-gradient(ellipse at 78% 18%, #172c431f, transparent 62%);
}

.trust-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-block-end: clamp(22px, 3vw, 34px);
}

.trust-header .section-heading { margin-block-end: 0; }
.trust-header h2 { text-wrap: balance; }

.trust-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.trust-control {
  display: grid;
  place-items: center;
  inline-size: 44px;
  block-size: 44px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: #c7d8e5;
  background: var(--panel);
  font: inherit;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color .2s, background-color .2s, color .2s;
}

.trust-control:hover {
  color: var(--cyan);
  border-color: #557d7e;
  background: #172d35;
}
.trust-control:active { background: #1d3c43; }

.trust-toggle span {
  inline-size: 9px;
  block-size: 11px;
  border-inline: 2px solid currentColor;
}

.trust-toggle[data-paused="true"] span {
  inline-size: 10px;
  block-size: 12px;
  border: 0;
  background: currentColor;
  clip-path: polygon(12% 0, 100% 50%, 12% 100%);
}

/* 原生横向滚动保留触屏手势；等宽的两组卡片形成循环。 */
.trust-viewport {
  --trust-gap: clamp(12px, 1.5vw, 19px);
  container-type: inline-size;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  padding-block: 7px;
  mask-image: linear-gradient(90deg, #000 calc(100% - 14px), transparent);
}

.trust-viewport::-webkit-scrollbar { display: none; }
.trust-viewport:focus-visible { outline: 2px solid var(--cyan); outline-offset: -3px; }
.trust-deck, .trust-cards { display: flex; }

.trust-cards {
  flex: none;
  gap: var(--trust-gap);
  margin: 0;
  padding: 0 var(--trust-gap) 0 0;
  list-style: none;
}

.trust-card {
  --trust-accent: var(--cyan);
  display: grid;
  flex: none;
  inline-size: clamp(234px, calc((100cqi - 2 * var(--trust-gap)) / 3), 460px);
  min-block-size: 256px;
}

.trust-card-surface {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(15px, 1.8vw, 22px);
  isolation: isolate;
  padding: clamp(18px, 2vw, 30px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  background: linear-gradient(147deg, var(--panel), #0d1726 88%);
  box-shadow: inset 0 1px #d9f0ff12;
  transition: border-color .2s ease;
}

.trust-card:nth-child(3n + 2) {
  --trust-accent: #a6a9d5;
}

.trust-card:nth-child(3n) {
  --trust-accent: #9abfdc;
}

.trust-card-surface::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  content: "";
  background: radial-gradient(ellipse at 100% 0, color-mix(in srgb, var(--trust-accent) 7%, transparent), transparent 57%);
}

.trust-card:hover .trust-card-surface { border-color: color-mix(in srgb, var(--trust-accent) 52%, var(--line)); }

/* 只抬升卡片内层，鼠标在外框边缘时仍能稳定命中。 */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .trust-card-surface {
    transition: border-color .2s ease, translate .2s ease, box-shadow .2s ease;
  }
  .trust-card-surface::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: radial-gradient(ellipse at var(--depth-x, 50%) var(--depth-y, 40%),
      color-mix(in srgb, var(--trust-accent) 24%, transparent), transparent 68%);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
    content: "";
  }
  .trust-card[data-depth-active] .trust-card-surface {
    translate: 0 -4px;
    border-color: color-mix(in srgb, var(--trust-accent) 60%, var(--line));
    box-shadow: inset 0 1px #d9f0ff20, 0 10px 18px -12px #02050dc9;
  }
  .trust-card[data-depth-active] .trust-card-surface::before { opacity: 1; }
}

.trust-review-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.trust-stars {
  display: inline-flex;
  color: #dfb779;
  font-family: "Segoe UI Symbol", system-ui, sans-serif;
  font-size: .98rem;
  line-height: 1;
  letter-spacing: .1em;
  white-space: nowrap;
}

.trust-star-empty { color: #9b8b75; }

/* 评价样稿随卡片一起移动，使单独截图也能看出内容用途。 */
.trust-sample {
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0d1928;
  color: #bfd0e3;
  font-size: .7rem;
  font-weight: 600;
}

.trust-quote {
  position: relative;
  margin: 0;
  padding-block-start: 15px;
}

.trust-quote::before {
  position: absolute;
  inset: -7px auto auto -1px;
  color: color-mix(in srgb, var(--trust-accent) 55%, #293b4d);
  content: "“" / "";
  font: 600 2.55rem/.98 Georgia, serif;
  pointer-events: none;
}

.trust-quote p {
  margin: 0;
  color: #dfebf6;
  font-size: .94rem;
  line-height: 1.7;
}

.trust-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-block-start: 16px;
  border-top: 1px solid var(--line);
}
.trust-profile > div { min-width: 0; }

.trust-avatar {
  inline-size: 48px;
  block-size: 48px;
  flex: none;
  object-fit: cover;
  object-position: center;
  border: 1px solid #8eaccb48;
  border-radius: 50%;
  background: #243647;
}

.trust-profile h3 {
  margin: 0 0 3px;
  color: var(--ink);
  font-size: .98rem;
  line-height: 1.35;
}

.trust-profile p {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.4;
}

@media (max-width: 620px) {
  .trust-header { align-items: start; flex-direction: column; gap: 15px; margin-block-end: 17px; }
  .trust-viewport { --trust-gap: 12px; mask-image: linear-gradient(90deg, #000 calc(100% - 8px), transparent); }
  .trust-card { inline-size: min(28rem, 88cqi); min-block-size: 254px; }
  .trust-card-surface { gap: 13px; padding: 16px 17px; }
  .trust-avatar { inline-size: 45px; block-size: 45px; }
}

@media (prefers-reduced-motion: reduce) {
  .trust-toggle { display: none; }
  .trust-card-surface, .trust-control { transition: none; }
}
