@charset "UTF-8";

.star-cont {
  height: 35px;
  font-family: "Microsoft Yahei", "PingFang SC", sans-serif;
}

.start-line {
  width: 33%;
  border-top: 3px solid #0065cc;
  position: relative;
  top: 10px;
}

.city-star {
  position: relative;
  top: -12px;
  font-size: 20px;
  font-weight: 900;
  text-align: center;
  letter-spacing: 0.1em;
  background: linear-gradient(45deg,
      #4facfe 0%,
      #00f2fe 25%,
      #7b61ff 50%,
      #ff2a6d 75%,
      #ffcb57 100%);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  text-shadow:
    1px 1px 2px rgba(0, 0, 0, 0.2),
    2px 2px 3px rgba(0, 0, 0, 0.1),
    0 0 8px rgba(79, 172, 254, 0.3);
  /* 动画效果 */
  animation: gradientMove 8s ease infinite,
    float 3s ease-in-out infinite;
  padding: 0.5rem 0.5rem;
}

/* 渐变移动动画 */
@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-2px);
  }
}

@-webkit-keyframes twinkle {
  0% {
    opacity: 0.2;
    transform: scale(0.8);
    -webkit-filter: brightness(0.8);
  }

  100% {
    opacity: 1;
    transform: scale(1.2);
    -webkit-filter: brightness(1.5);
  }
}

@media (max-width: 768px) {
  .city-star {
    letter-spacing: 0.05em;
    padding: 0.8rem 0.3rem;
  }

  .city-star::before {
    right: -8px;
  }

  .city-star::after {
    left: -8px;
  }
}

.star-item-img {
  height: 100%;
  width: 100%;
  overflow: hidden;
  position: relative;
  border-radius: 10px;
}

.star-item-text {
  position: absolute;
  bottom: 0;
  z-index: 999;
  background-color: rgba(0, 0, 0, 0.4);
  color: #fff;
  line-height: 20px;
}


/* 首页中间的字幕动画 start*/
.scroll-wrap {
  width: 100%;
  /* height: 115px; */
  /* line-height: 80px; */
  overflow: hidden;
  position: relative;
}

.scroll-content1 {
  display: inline-block;
  white-space: nowrap;
  margin: 0;
  padding: 0;
  animation: scroll-left 20s linear infinite;
}

.scroll-content2 {
  display: inline-block;
  white-space: nowrap;
  margin: 0;
  padding: 0;
  animation: scroll-right 20s linear infinite;
}

.scroll-item {
  width: 100px;
  height: 100px;
  display: inline-block;
  margin-right: 14px;
  /* font-size: 16px; */
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }
}

@keyframes scroll-right {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(0);
  }
}

/* 鼠标悬停暂停（可选） */
.scroll-wrap:hover .scroll-content1 {
  animation-play-state: paused;
}

.scroll-wrap:hover .scroll-content2 {
  animation-play-state: paused;
}

/* 清除inline-block的默认空白（关键：避免内容之间出现间隙） */
.scroll-content1>* {
  display: inline-block;
}

.scroll-content2>* {
  display: inline-block;
}

/* 首页中间的字幕动画 end*/