/* 切换按钮样式 */
.gallery-switcher {
  display: flex;
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

.gallery-btn {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #222;
  padding: 10px 20px;
  margin: 0 5px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.gallery-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: all 0.5s;
}

.gallery-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-btn:hover::before {
  left: 100%;
}

.gallery-btn.active {
  background: linear-gradient(135deg, #3a7bd5, #4889e0);
  color: white;
  box-shadow: 0 6px 20px rgba(58, 123, 213, 0.4);
  transform: scale(1.05);
}

.gallery-btn:active {
  transform: scale(0.95);
}

/* 画廊容器控制 */
.gallery-container {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.gallery-container.active {
  display: block;
  opacity: 1;
}

/* 淡入淡出动画 */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(10px); }
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

.fade-out {
  animation: fadeOut 0.3s ease forwards;
}

@media (max-width: 768px) {
  .gallery-container {
    transition: opacity 0.32s ease;
  }

  .fade-in {
    animation-duration: 0.32s;
    animation-timing-function: ease-out;
  }

  .fade-out {
    animation-duration: 0.22s;
    animation-timing-function: ease-in;
  }
}