/* 定义喇叭图标样式 */
#lb-icon {
  position: fixed;
  top: 35%;
  /* left，是从左边开始显示 */
  /* left: 2%; */
  right: 10px;
  width: 50px;
  height: 50px;
  background-image: url('../images/lb.png');
  background-size: cover;
  animation: shake 0.5s infinite;
  z-index: 88;
  cursor: pointer;
}
/* 添加移动端样式 */
@media screen and (max-width: 768px) {
  #lb-icon {
    top: 72.5%;  /* 在移动端降低位置，避免遮挡内容 */
    right: 10px; /* 稍微远离边缘 */
  }
}

/* 定义抖动动画 */
@keyframes shake {
  0% {
    transform: rotate(-10deg);
  }

  50% {
    transform: rotate(10deg);
  }

  100% {
    transform: rotate(-10deg);
  }
}

/* 添加喇叭图标的提示文字样式 */
.lb-hint {
  position: fixed;
  right: 100px;  /* 与价格表提示相同的位置 */
  top: 40%;
  transform: translateY(-50%);
  background: white;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 888;
  font-size: 14px;
  color: #333;
  white-space: nowrap;
}
/* 添加移动端样式 */
@media screen and (max-width: 768px) {
  .lb-hint {
    right: 80px;  /* 与价格表提示相同的位置 */
    top: 75.5%;
  }
}

.lb-hint:before {
  content: '';
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 10px solid white;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

.lb-hint.show {
  opacity: 1;
  visibility: visible;
  animation: bounce 0.5s ease;
}



/* 阅读抖动效果 */
.reading-effect {
  display: inline-block;
  animation: readingScale 0.6s ease-in-out;
  color: #155bd5; /* 蓝色文字 */
}

@keyframes readingScale {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.4);
  }

  100% {
    transform: scale(1);
  }
}

/* 阅读抖动效果 */


/* 扫光效果 */
/* 白天模式下效果 */
.shine-text {
  position: relative;
  display: inline-block;
  background: linear-gradient(90deg,
      #000000 0%,
      #333333 45%,
      #666666 50%,
      #333333 55%,
      #000000 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: subtle-shine 5s ease-in-out infinite;
  -webkit-animation: subtle-shine 5s ease-in-out infinite;
}

@-webkit-keyframes subtle-shine {
  0% {
    background-position: 200% center;
  }

  50% {
    background-position: -100% center;
  }

  100% {
    background-position: 200% center;
  }
}

@keyframes subtle-shine {
  0% {
    background-position: 200% center;
  }

  50% {
    background-position: -100% center;
  }

  100% {
    background-position: 200% center;
  }
}

/* 确保在暗色模式下也能看到效果 */
@media (prefers-color-scheme: dark) {
  .shine-text {
    background: linear-gradient(90deg,
        #ffffff 0%,
        #cccccc 45%,
        #ffffff 50%,
        #cccccc 55%,
        #ffffff 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

/* 扫光效果 */