﻿/* Custom styles */
.page_header {
  background-color: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

@media screen and (max-width: 999px) {
  .header-mobile-hide {
    display: none !important;
  }

  #space_header {
    display: none !important;
  }
}

/* 底部按钮动画 */
.bottom-button-container {
  text-align: center;
  z-index: 10;
}

.bottom-button-link {
  display: inline-block;
  text-decoration: none;
}

.pulse-button {
  display: inline-block;
  animation: pulse 1.5s ease-in-out infinite;
  max-width: 100%;
  height: auto;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.dibu-btn {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding-bottom: 20px;
  z-index: 100; /* 可选，根据需要设置层级，防止被其他元素覆盖 */
}

/* 底部按钮放大缩小动画效果 */
.dibu-btn .btn_01 {
  animation: scaleAnimation 3s ease-in-out infinite;
  transition: all 0.3s ease;
  transform-origin: center center;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.dibu-btn .btn_01:hover {
  animation: none;
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

@keyframes scaleAnimation {
  0% {
    transform: scale(1);
  }
  20% {
    transform: scale(1.02);
  }
  40% {
    transform: scale(1.04);
  }
  60% {
    transform: scale(1.02);
  }
  80% {
    transform: scale(1.01);
  }
  100% {
    transform: scale(1);
  }
}

/* 移动端优化 */
@media screen and (max-width: 768px) {
  .dibu-btn .btn_01 {
    animation: scaleAnimationMobile 2s ease-in-out infinite;
  }
  
  @keyframes scaleAnimationMobile {
    0% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.03);
    }
    100% {
      transform: scale(1);
    }
  }
}
