/* 浮动栏css */
.float-bar-placeholder {
  background-color: var(--primary-100);
  height: 3.5rem;
}
.float-bar {
  height: 3.5rem;
  width: 100vw;
  background-color: var(--bg-100);
  border-top: 1px solid var(--accent-100);
  position: fixed;
  bottom: 0;
  z-index: 999;
  opacity: 0.9;
}
.float-bar-content {
  position: relative;
  margin: 0 auto;
  display: flex;
  height: 100%;
  align-items: center;
  max-width: 800px;
  justify-content: space-between;
  color: var(--text-100);
}

.float-logo {
  display: flex;
  gap: 1rem;
  padding: 0.5rem;
}

.float-logo-text {
  color: var(--primary-200);
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 0.5rem;
}
.float-logo-name {
  color: var(--accent-100);
  font-size: 0.75rem;
  font-weight: 700;
}

.float-btn {
  /* border-radius: 4px; */
  /* background-color: var(--accent-200); */
  /* padding: 0.5rem 1rem; */
  /* font-size: 0.75rem; */

  background: linear-gradient(45deg, #2d00f7, #ff00c8);
  color: #ffd600;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 12px;
  padding: 10px 20px;
  cursor: pointer;
  animation: flash 1s infinite;
  white-space: nowrap;
}

.float-mid-btn {
  position: absolute;
  top: -10px;
  left: 50%;
  animation: ping-pong 1s infinite;
  padding: 0.5rem 1rem;
  color: #fff;
  background-image: linear-gradient(to right, #005b99, #b7e9ff);
  border-radius: 0.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  font-size: 1.125rem;
  font-weight: 700;
}

@keyframes flash {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 10px #ffd600;
  }
  50% {
    opacity: 0.7;
    box-shadow: 0 0 20px #ff00c8;
  }
}

@keyframes ping-pong {
  0%,
  100% {
    transform: translateX(-50%) scale(1);
  }
  50% {
    transform: translateX(-50%) scale(1.1);
  }
}
