
  /* 只作用于首页的证书模块，避免影响站内其他轮播。 */
  .ly_certificates_1 .cer_list[data-thriwa-cert-marquee] {
    /* 清除 UEESHOP 原轮播在桌面端保留的左右内边距，
       让证书可视区域与 Latest News 等首页内容区域保持同宽。 */
    width: 100%;
    max-width: 100%;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box;
    overflow: hidden;
  }

  .ly_certificates_1 .thriwa-cert-viewport {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .ly_certificates_1 .thriwa-cert-track {
    display: flex;
    width: max-content;
    transform: translate3d(0, 0, 0);
    will-change: transform;
    animation: thriwa-cert-marquee var(--thriwa-cert-duration, 160s) linear infinite;
  }

  .ly_certificates_1 .thriwa-cert-group {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: var(--thriwa-cert-gap, 50px);
    padding-right: var(--thriwa-cert-gap, 50px);
  }

  .ly_certificates_1 .thriwa-cert-group .cer_item {
    flex: 0 0 var(--thriwa-cert-item-width, 280px);
    width: var(--thriwa-cert-item-width, 280px) !important;
    margin: 0 !important;
  }

  .ly_certificates_1 .thriwa-cert-track:hover,
  .ly_certificates_1 .thriwa-cert-track:focus-within {
    animation-play-state: paused;
  }

  @keyframes thriwa-cert-marquee {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(var(--thriwa-cert-distance), 0, 0); }
  }

  @media (prefers-reduced-motion: reduce) {
    .ly_certificates_1 .thriwa-cert-track {
      animation-play-state: paused;
    }
  }
