/* 底部浮悬导航菜单样式 - 增加特异性以避免全局样式冲突 */
#bottom-nav {
  position: fixed !important;
  bottom: 30px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 9999 !important;
  background-color: rgba(10, 10, 10, 0.7) !important;
  backdrop-filter: blur(10px) !important;
  border-radius: 30px !important;
  padding: 10px 20px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
  transition: all 0.3s ease !important;
  min-height: auto !important;
  max-height: none !important;
  width: auto !important;
}

#bottom-nav:hover {
  background-color: rgba(10, 10, 10, 0.9) !important;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4) !important;
}

#bottom-nav-list {
  display: flex !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 150px !important;
  min-height: auto !important;
  height: auto !important;
}

#bottom-nav-list .bottom-nav-item {
  position: relative !important;
  list-style-type: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#bottom-nav-list .bottom-nav-item .bottom-nav-link {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  color: #bbb !important;
  text-decoration: none !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  transition: color 0.3s ease !important;
  font-family: inherit !important;
  line-height: normal !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

#bottom-nav-list .bottom-nav-item .bottom-nav-link:hover {
  color: #fff !important;
}

#bottom-nav-list .bottom-nav-item .bottom-nav-link .bottom-nav-icon {
  font-size: 20px !important;
  margin-bottom: 5px !important;
  display: inline-block !important;
  width: auto !important;
  height: auto !important;
}

#bottom-nav-list .bottom-nav-item .bottom-nav-link .bottom-nav-text {
  display: inline-block !important;
  font-size: 12px !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* 响应式设计 - 增加特异性以避免全局样式冲突 */
@media (max-width: 768px) {
  #bottom-nav {
    padding: 15px 25px !important;
    border-radius: 40px !important;
  }
  
  #bottom-nav-list {
    gap: 25px !important;
  }
  
  #bottom-nav-list .bottom-nav-item .bottom-nav-link .bottom-nav-icon {
    font-size: 28px !important;
  }
  
  #bottom-nav-list .bottom-nav-item .bottom-nav-link .bottom-nav-text {
    font-size: 13px !important;
  }
  
  #bottom-nav-list .bottom-nav-item .bottom-nav-link {
    padding: 8px 12px !important;
  }
}

@media (max-width: 480px) {
  #bottom-nav {
    bottom: 15px !important;
    width: 98% !important;
    max-width: 400px !important;
    padding: 20px 15px !important;
    background-color: rgba(10, 10, 10, 0.9) !important;
  }
  
  #bottom-nav-list {
    gap: 10px !important;
    justify-content: space-around !important;
  }
  
  #bottom-nav-list .bottom-nav-item .bottom-nav-link .bottom-nav-text {
    display: none !important;
  }
  
  #bottom-nav-list .bottom-nav-item .bottom-nav-link .bottom-nav-icon {
    font-size: 38px !important;
    margin-bottom: 0 !important;
  }
  
  #bottom-nav-list .bottom-nav-item .bottom-nav-link {
    padding: 12px 18px !important;
    min-width: 56px !important;
    min-height: 56px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }
  
  /* 增加移动端点击区域 */
  #bottom-nav-list .bottom-nav-item {
    min-width: 56px !important;
    min-height: 56px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

/* 动画效果 */
@keyframes float {
  0% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-5px);
  }
  100% {
    transform: translateX(-50%) translateY(0);
  }
}

#bottom-nav {
  animation: float 3s ease-in-out infinite !important;
}

/* 滚动时的效果 */
body.scrolled #bottom-nav {
  background-color: rgba(10, 10, 10, 0.95) !important;
}

/* 高亮当前页面 */
.at-home #bottom-nav-list .bottom-nav-item.is-home .bottom-nav-link,
.at-about #bottom-nav-list .bottom-nav-item.is-about .bottom-nav-link,
.at-contact #bottom-nav-list .bottom-nav-item.is-contact .bottom-nav-link {
  color: #fff !important;
}

.at-home #bottom-nav-list .bottom-nav-item.is-home .bottom-nav-link .bottom-nav-icon,
.at-about #bottom-nav-list .bottom-nav-item.is-about .bottom-nav-link .bottom-nav-icon,
.at-contact #bottom-nav-list .bottom-nav-item.is-contact .bottom-nav-link .bottom-nav-icon {
  transform: scale(1.1) !important;
}

/* 指示器效果 */
#bottom-nav-list .bottom-nav-item::after {
  content: '' !important;
  position: absolute !important;
  bottom: -15px !important;
  left: 50% !important;
  transform: translateX(-50%) scaleX(0) !important;
  width: 16px !important;
  height: 3px !important;
  background-color: #fff !important;
  border-radius: 3px !important;
  transition: transform 0.3s ease !important;
  display: block !important;
  z-index: 9999 !important;
}

#bottom-nav-list .bottom-nav-item:hover::after,
#bottom-nav-list .bottom-nav-item.is-active::after {
  transform: translateX(-50%) scaleX(1) !important;
}