/* ========================================
   S5: TRUST BAR — 白底跑马灯
   ======================================== */

.trust-bar-section {
  background-color: #ffffff; /* 白色背景 */
  padding: 4rem 0;
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
  overflow: hidden;
}

.trust-bar-container {
  width: 100%;
  overflow: hidden;
  position: relative;
}

/* 跑马灯轨道 */
.trust-bar-track {
  display: flex;
  width: calc(200% + 4rem); /* 双倍宽度确保无缝循环 */
  animation: marquee 40s linear infinite;
}

/* Logo组 */
.trust-bar-group {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 50%; /* 每组占轨道的一半 */
  flex-shrink: 0;
  gap: 4rem;
  padding: 0 2rem;
}

/* Logo样式 */
.trust-bar-logo {
  height: 3rem; /* 48px 高度 */
  max-width: 8rem; /* 最大宽度 128px */
  object-fit: contain;
  filter: grayscale(1) opacity(0.7); /* 灰度 + 透明度 */
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.trust-bar-logo:hover {
  filter: grayscale(0) opacity(1); /* hover时恢复颜色和不透明 */
  transform: scale(1.1);
}

/* 跑马灯动画 */
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* 响应式调整 */
@media (max-width: 768px) {
  .trust-bar-section {
    padding: 3rem 0;
  }

  .trust-bar-group {
    gap: 2rem;
    padding: 0 1rem;
  }

  .trust-bar-logo {
    height: 2.5rem; /* 移动端稍小 */
    max-width: 6rem;
  }

  .trust-bar-track {
    animation-duration: 30s; /* 移动端稍快 */
  }
}

@media (max-width: 480px) {
  .trust-bar-logo {
    height: 2rem; /* 小屏幕更小 */
    max-width: 4rem;
  }

  .trust-bar-group {
    gap: 1.5rem;
  }
}

/* 暂停hover效果（可选） */
.trust-bar-section:hover .trust-bar-track {
  animation-play-state: paused;
}