:root {
  --qi-scroll-title: 48px;
}


.qili-scroll {
}

.qili-scroll h2 {
  font-size: clamp(24px, 2.2vw, 42px);
  text-align: center;
  margin-bottom: 20px;
}

/* 父容器：垂直排列两排 */
.qili-marquee {
  width: 100%;
  overflow: hidden;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px; /* 两排之间的间距，可调整 */
}

/* 每一排容器 */
.qili-marquee .marquee-content {
  width: 100%;
  overflow: hidden;
  grid: auto / auto-flow max-content;
  justify-content: center;
  display: grid;
}

/* 滚动动画 */
@keyframes loop-anim-right {
  0% {
    transform: translate3d(-100%, 0, 0);
  }
  to {
    transform: translateZ(0);
  }
}

/* 滚动项：两排 同向滚动 */
.qili-marquee .marquee-item {
  grid: auto / auto-flow auto max-content;
  place-items: center;
  display: grid;
  white-space: nowrap;
  animation: loop-anim-right 40s linear infinite reverse;
}

/* 图片样式 */
.qili-marquee .marquee-item img {
  margin: 0 10px;
  aspect-ratio: 3/2;
  object-fit: cover;
  height: 240px;
}

@media (max-width: 1500px) {
  :root {
    --qi-scroll-title: 42px;
  }
}

@media (max-width: 1280px) {
  :root {
    --qi-scroll-title: 36px;
  }
}

@media (max-width: 1200px) {
  :root {
    --qi-scroll-title: 30px;
  }
  .qili-marquee .marquee-item img {
    height: 300px;
    margin: 0 15px;
  }
}

@media (max-width: 992px) {
  :root {
    --qi-scroll-title: 26px;
  }
}

@media (max-width: 768px) {
  :root {
    --qi-scroll-title: 22px;
  }
  .qili-marquee .marquee-item img {
    height: 250px;
    margin: 0 10px;
  }
}

@media (max-width: 576px) {
  :root {
    --qi-scroll-title: 18px;
  }
}