.section-carousel {
    width: 100%;
    height: 60px;
    background: var(--background-color, #F7F7F7);
    white-space: nowrap;
    overflow-x: hidden;
    display: flex;
}

.section-carousel_scroll {
    animation: scroll var(--carousel-speed, 20s) linear infinite normal;
    display: flex;
}

.section-carousel:hover .section-carousel_scroll {
    animation-play-state: paused;
}

.section-carousel_item {
    display: inline-flex;
    align-items: center;
    height: 100%;
    margin-left: 60px;
}

.section-carousel_item_icon {
    display: flex;
    margin-right: 14px;
}

.section-carousel_item_icon img {
    height: 40px;
    width: auto;
}

.section-carousel_item_icon-default {
    width: 40px;
    height: 40px;
    background-color: #ddd;
}

.section-carousel_item_text {
    font-size: 16px;
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    color: var(--color-text, #4B3C8B);
}

@keyframes scroll {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
  .section-carousel {
    height: 40px;
  }

  .section-carousel_scroll {
    animation: scroll var(--carousel-speed, 15s) linear infinite normal;
  }

  .section-carousel_item {
    margin-left: 30px;
  }

  .section-carousel_item:first-child {
    margin-left: 15px;
  }

  .section-carousel_item_icon {
    margin-right: 8px;
  }

  .section-carousel_item_icon img,
  .section-carousel_item_icon-default {
    width: 24px;
    height: 24px;
  }

  .section-carousel_item_text {
    font-size: 12px;
    line-height: 18px;
    color: #4B3C8B;
    white-space: nowrap;
  }

  /* ---- 让一屏能看到 3 项 ----
     原来单项宽 218px，390 的屏一屏只放得下 1.8 项，
     所以两端永远切在某个字中间，静止看像排版坏掉。
     字号 14→12、图标 24→18、间距 30→18 之后单项约 150px，一屏 2.6 项。 */
  .section-carousel_item {
    margin-left: 18px;
  }

  .section-carousel_item:first-child {
    margin-left: 12px;
  }

  .section-carousel_item_icon {
    margin-right: 6px;
  }

  .section-carousel_item_icon img,
  .section-carousel_item_icon svg,
  .section-carousel_item_icon-default {
    width: 18px;
    height: 18px;
  }

  /* ---- 两端渐变淡出 ----
     跑马灯边缘被裁是它的固有行为，但硬切会被当成 bug。
     加一层遮罩让两端淡出，视觉上就成了「文字流进流出」。 */
  .section-carousel {
    -webkit-mask-image: linear-gradient(to right,
      transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%);
    mask-image: linear-gradient(to right,
      transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%);
  }

  /* 修改滚动动画 */
  @keyframes scroll {
    0% {
      transform: translateX(0);
    }

    100% {
      transform: translateX(-100%);
    }
  }
}