/* 漂浮样式 */
.floating-ad {
  position: fixed;
  right: 10px;
  bottom: 490px;
  width: 175px;
  z-index: 9999;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.floating-ad.visible {
  opacity: 1;
  pointer-events: auto;
  animation: floatingBreath 3s ease-in-out infinite;
}

.floating-ad img {
  width: 100%;
  display: block;
}

.floating-ad .text {
  position: absolute;
  left: 22px;
  top: 14px;
  right: 6px;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.floating-ad .text p:first-of-type {
  font-size: 13px;
}

@keyframes floatingBreath {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

/* 移动端隐藏 */
@media (max-width: 768px) {
  .floating-ad {
    display: none;
  }
}