/* ==================== 顶部便捷导航条 ==================== */

#quickNavLogo {
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#quickNavLogo:hover {
  transform: scale(1.06);
}

#quickNavLogo:active {
  transform: scale(0.9);
}

.quick-nav {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
  z-index: 300;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-102%);
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.32s,
    box-shadow 0.32s ease;
  will-change: transform;
}

.quick-nav.open {
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0s,
    box-shadow 0.32s ease;
}

.quick-nav-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 12px;
  overflow: hidden;
  white-space: nowrap;
}

.quick-nav-slider {
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 30px;
  border-radius: 7px;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transform: translateY(-50%);
  transition:
    left 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.18s ease,
    background-color 0.20s ease;
}

.quick-nav-slider.show {
  opacity: 1;
}

.quick-nav-slider.tone-blue {
  background: #3b82f6;
}

.quick-nav-slider.tone-red {
  background: #ef4444;
}

.quick-nav-slider.tone-orange {
  background: #f97316;
}

.quick-nav-slider.tone-purple {
  background: #8b5cf6;
}

.quick-nav-slider.tone-green {
  background: #10b981;
}

.quick-nav-btn {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  height: 30px;
  padding: 0 9px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition:
    color 0.18s ease,
    transform 0.18s ease;
}

.quick-nav-btn.tone-blue {
  color: #3b82f6;
}

.quick-nav-btn.tone-red {
  color: #ef4444;
}

.quick-nav-btn.tone-orange {
  color: #f97316;
}

.quick-nav-btn.tone-purple {
  color: #8b5cf6;
}

.quick-nav-btn.tone-green {
  color: #10b981;
}

.quick-nav.open .quick-nav-btn {
  animation: quickNavItemIn 0.34s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes quickNavItemIn {
  0% {
    opacity: 0;
    transform: translateY(-6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.quick-nav-btn:active {
  transform: translateY(0) scale(0.97);
}

.quick-nav-btn.is-hovered {
  color: #fff;
}

.quick-nav-sep {
  flex: 0 0 1px;
  width: 1px;
  height: 18px;
  margin: 0 6px;
  background: var(--border-color);
}

@media (max-width: 1200px) {
  .quick-nav-inner {
    gap: 3px;
    padding: 0 8px;
  }

  .quick-nav-btn {
    height: 28px;
    padding: 0 7px;
    font-size: 11px;
  }

  .quick-nav-slider {
    height: 28px;
  }

  .quick-nav-sep {
    margin: 0 4px;
  }
}
