/* 滑动切换样式 */
#swiper-modal{
    display: none;
}
.swiper-modal {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.65);
}
.swiper-modal-container {
  position: relative;
  margin: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.swiper-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px 8px 24px;
  background: #fff;
  border-bottom: 1px solid #eee;
}
.swiper-modal-info {
  font-size: 18px;
  font-weight: bold;
  color: #222;
}
.swiper-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
}
.swiper-modal-close svg {
  width: 32px;
  height: 32px;
  stroke: #222;
  stroke-width: 3.5;
}
.swiper-modal-close:hover {
  background: #ffeaea;
  box-shadow: 0 4px 16px rgba(255,0,0,0.10);
}
.swiper-modal-content {
  padding: 16px 24px 24px 24px;
  background: #fff;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.swiper-modal-overlay {
  display: none;
}
@media (max-width: 600px) {
  .swiper-modal-container {
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
    padding: 0;
  }
  .swiper-modal-content {
    padding: 8px;
  }
  .swiper-modal-header {
    padding: 8px 12px 4px 12px;
  }
}

.slider-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.slider-wrapper {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  min-width: 300px;
  min-height: 200px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  margin: 0 auto;
}

.slider-track {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.slider-slide {
  display: none;
  text-align: center;
  padding: 10px;
  width: 100%;
  height: 100%;
  position: relative;
}

.slider-slide.active {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: slideIn 0.3s ease-in-out;
}

.slider-slide img {
  opacity: 0;
  transition: opacity 0.3s ease;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

@keyframes slideIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.slider-nav button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
}

.slider-nav button:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-50%) scale(1.1);
  color: #000;
}

.slider-prev {
  left: 10px;
}

.slider-next {
  right: 10px;
}

.slider-dots {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 20px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

.slider-dot.active {
  background: white;
  transform: scale(1.2);
}

.slider-close {
  position: absolute;
  top: -60px;
  right: 0;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  font-weight: bold;
  backdrop-filter: blur(10px);
}

.slider-close:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
  color: #000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.slider-info {
  position: absolute;
  top: -60px;
  left: 0;
  color: white;
  font-size: 16px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.slider-counter {
  background: rgba(0, 0, 0, 0.7);
  padding: 4px 8px;
  border-radius: 12px;
  margin-left: 10px;
  font-size: 14px;
}

.slider-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 14px;
  background: rgba(0, 0, 0, 0.7);
  padding: 10px 20px;
  border-radius: 20px;
  z-index: 5;
}

/* 防止浏览器缩放影响 */
.slider-container {
  transform: scale(1) !important;
  transform-origin: center center !important;
  zoom: 1 !important;
}

.slider-wrapper {
  transform: scale(1) !important;
  transform-origin: center center !important;
  zoom: 1 !important;
}

.slider-track {
  transform: scale(1) !important;
  transform-origin: center center !important;
  zoom: 1 !important;
}

.slider-slide {
  transform: scale(1) !important;
  transform-origin: center center !important;
  zoom: 1 !important;
}

.slider-slide img {
  transform: scale(1) !important;
  transform-origin: center center !important;
  zoom: 1 !important;
}

/* 禁用浏览器缩放 */
body {
  -webkit-text-size-adjust: none !important;
  -moz-text-size-adjust: none !important;
  -ms-text-size-adjust: none !important;
  text-size-adjust: none !important;
}

/* 确保弹窗不受缩放影响 */
.slider-container * {
  -webkit-text-size-adjust: none !important;
  -moz-text-size-adjust: none !important;
  -ms-text-size-adjust: none !important;
  text-size-adjust: none !important;
}

/* 确保图片在容器中完美居中 */
.slider-slide.active {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .slider-wrapper {
    max-width: 95vw;
    max-height: 95vh;
    min-width: 280px;
    min-height: 180px;
  }
  
  .slider-nav button {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .slider-prev {
    left: 5px;
  }
  
  .slider-next {
    right: 5px;
  }
  
  .slider-close {
    top: -50px;
    width: 40px;
    height: 40px;
  }
  
  .slider-info {
    top: -50px;
    font-size: 14px;
  }
  
  .slider-dots {
    bottom: -30px;
    gap: 8px;
    padding: 8px;
  }
  
  .slider-dot {
    width: 10px;
    height: 10px;
  }
}

/* 隐藏lightbox加载效果 */
.lb-outerContainer.animating {
  animation: none !important;
  transition: none !important;
  display: none;
}

.lb-loader {
  display: none !important;
}

.lb-cancel {
  display: none !important;
}

/* 确保lightbox蒙层被隐藏 */
.lightboxOverlay {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

/* 隐藏所有lightbox相关元素 */
.lightbox {
  display: none !important;
} 