/* ===== 博达站群 · 图片左右滑动浏览样式 v2 ===== */

/* 共用容器 */
.swipe-gallery {
  position: relative;
  margin: 16px 0;
}

.swipe-gallery__track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px;
  cursor: grab;
}

.swipe-gallery__item {
  flex-shrink: 0;
  scroll-snap-align: start;
}

.swipe-gallery__item img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
}

/* 图片说明文字 */
.swipe-gallery__caption {
  text-align: center;
  color: #888;
  font-size: 13px;
  margin-top: 6px;
  line-height: 1.5;
  padding: 0 4px;
}

/* 提示文字 */
.swipe-gallery__hint {
  text-align: center;
  color: #b0b0b0;
  font-size: 13px;
  margin-top: 8px;
  letter-spacing: 1px;
}
.swipe-gallery__hint::before { content: '↑ '; }
.swipe-gallery__hint::after  { content: ' ↑'; }

/* ===== 单张模式（div.swipe）：每张100%，隐藏滚动条 ===== */
.swipe-gallery--single .swipe-gallery__track {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.swipe-gallery--single .swipe-gallery__track::-webkit-scrollbar {
  display: none;
}
.swipe-gallery--single .swipe-gallery__item {
  width: 100%;
}

/* ===== 多张模式（div.swipe-duo）：多张并排，显示滚动条 ===== */
.swipe-gallery--duo .swipe-gallery__item {
  width: 45%;
  scroll-snap-align: center;
}
.swipe-gallery--duo .swipe-gallery__track {
  scroll-snap-type: x proximity;
}

/* 移动端 duo 调整 */
@media (max-width: 768px) {
  .swipe-gallery--duo .swipe-gallery__item {
    width: 80%;
  }
}

/* ===== 左右箭头按钮（仅PC端显示） ===== */
.swipe-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  border: 2px solid rgba(255,255,255,0.9);
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  line-height: 1;
  color: #fff;
  transition: background 0.2s, opacity 0.2s, transform 0.15s;
  -webkit-user-select: none;
  user-select: none;
}
.swipe-gallery__nav:hover {
  background: rgba(0,0,0,0.75);
  transform: translateY(-50%) scale(1.1);
}
.swipe-gallery__nav--prev { left: 8px; }
.swipe-gallery__nav--next { right: 8px; }
.swipe-gallery__nav:disabled {
  opacity: 0.25;
  cursor: default;
}

/* 移动端隐藏箭头，用触摸滑动 */
@media (max-width: 768px) {
  .swipe-gallery__nav {
    display: none;
  }
}
