@charset "utf-8";
/* CSS Document */
.slider-container {
  position: relative;
  width: 100%;
  max-width: 19.2rem;
  height: 9.5rem;
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
  touch-action: pan-y;
  user-select: none;
  cursor: grab;
}
.slider-container:active {
  cursor: grabbing;
}
.slider-wrapper {
  display: flex;
  transition: transform 0.5s ease;
  width: 100%;
  height: 100%;
}
.slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}
.slide img, .slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.slide.video-slide::after {
  content: "Video";
  position: absolute;
  top: 0.15rem;
  right: 0.15rem;
  opacity: 0.3;
  color: white;
  padding: 0.05rem 0.1rem;
  border-radius: 0.03rem;
  font-size: 0.12rem;
  font-weight: bold;
  z-index: 10;display: none;
}
.slide.video-slide .video-status {
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.08rem 0.15rem;
  border-radius: 0.05rem;
  font-size: 0.14rem;
  z-index: 15;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.slide.video-slide.playing .video-status {
  opacity: 1;
}
.slide.video-slide .video-status::after {
  content: " 播放中...";
}
.slide.video-slide.ended .video-status::after {
  content: " 已结束";
}
.slide.video-slide.user-skipped .video-status::after {
  content: " 已跳过";
}
.slider-pagination {
  position: absolute;
  bottom: 0.4rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.1rem;
  z-index: 20;
}
.pagination-dot {
  width: 0.15rem;
  height: 0.15rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 0.02rem solid transparent;
}
.pagination-dot:hover {
  background: rgba(255, 255, 255, 0.8);
}
.pagination-dot.active {
  background: rgba(255,255,255,0.8);
width: 0.35rem;border-radius:0.2rem
}
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.3s ease;
  user-select: none;
}
.slider-arrow:hover{opacity:1}
.slider-arrow-prev {
  left: 0.2rem;opacity:0.3
}

.slider-arrow-next {
  right: 0.2rem;opacity:0.3
}
.slider-arrow-prev:before{content:"";background: url("../images/arrow-l.png")center center no-repeat;width:0.4rem;height:0.4rem;display:inline-block;background-size: contain}
.slider-arrow-next:before{content:"";background: url("../images/arrow-r.png")center center no-repeat;width:0.4rem;height:0.4rem;display:inline-block;background-size: contain}
.slider-controls {
  text-align: center;
  margin-top: 0.15rem;
}
.control-btn {
  background: #333;
  color: white;
  border: none;
  padding: 0.1rem 0.2rem;
  margin: 0 0.05rem;
  border-radius: 0.05rem;
  cursor: pointer;
  transition: background 0.3s;
  font-size: 0.14rem;
}
.control-btn:hover {
  background: #555;
}
.control-btn:disabled {
  background: #999;
  cursor: not-allowed;
  opacity: 0.6;
}
.slider-container.fade .slider-wrapper {
  display: block;
  position: relative;
}
.slider-container.fade .slide {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: 1;
  min-width: 100%;
}
.slider-container.fade .slide.active {
  opacity: 1;
  z-index: 2;
}
.slider-container.dragging {
  cursor: grabbing;
}
.slider-container.dragging .slider-wrapper {
  transition: none;
}
.video-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0.04rem;
  background: rgba(255, 255, 255, 0.3);
  z-index: 16;
  opacity: 0;
  transition: opacity 1;
}
.slide.video-slide.playing .video-progress {
  opacity: 1;
}
.video-progress-bar {
  height: 100%;
  background: #fff;
  width: 0%;
  transition: width 0.1s linear;
}
@media (max-width: 1920px) {
  .slider-container {
    max-width: 100%;
    height: auto;
    aspect-ratio: 1920 / 950;
  }
}
@media (max-width: 768px) {
 
  
  .slider-container {
    height: auto;
    aspect-ratio: 1920 / 950;
  }
  .pagination-dot {
    width: 0.15rem;
    height: 0.15rem;
  }
  .slider-pagination {
    bottom: 0.3rem;
  }
  .slide.video-slide .video-status {
    bottom: 0.6rem;
    font-size: 0.14rem;
    padding: 0.06rem 0.1rem;
  }
}
@media (max-width: 480px) {
  .slider-container {
    aspect-ratio: 1920 / 1000;
margin-top:100px;
  }
 
}
.info {
  text-align: center;
  margin: 20px 0;
  padding: 15px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.info h2 {
  margin-bottom: 10px;
  color: #333;
}
.info p {
  color: #666;
  line-height: 1.6;
  margin: 5px 0;
}
.info .highlight {
  color: #ff5722;
  font-weight: bold;
}
.config-hint {
  background: #e3f2fd;
  padding: 15px;
  border-radius: 8px;
  margin-top: 15px;
  border-left: 4px solid #2196F3;
}
.config-hint h3 {
  color: #1976D2;
  margin-bottom: 10px;
}
.config-hint code {
  background: #f5f5f5;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: monospace;
  color: #d32f2f;
}
.drag-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 30;
  white-space: nowrap;
}
.slider-container.dragging .drag-indicator {
  opacity: 1;
}
.debug-info {
  background: #fff3cd;
  padding: 10px;
  margin-top: 10px;
  border-radius: 5px;
  font-size: 12px;
  font-family: monospace;
  display: none;
  max-height: 200px;
  overflow-y: auto;
}
.debug-info.show {
  display: block;
}
.video-lock-notice {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 87, 34, 0.9);
  color: white;
  padding: 15px 25px;
  border-radius: 8px;
  font-size: 16px;
  z-index: 25;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  white-space: nowrap;
}
.slider-container.video-locked .video-lock-notice {
  opacity: 1;
}
.video-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 14px;
  z-index: 15;
  opacity: 0;
  transition: opacity 0.3s;
}
.slide.video-slide.loading .video-loading {
  opacity: 1;
}
.status-indicator {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  z-index: 25;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.slider-container.video-locked .status-indicator, .slider-container.dragging .status-indicator {
  opacity: 1;
}
.manual-switch-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 150, 136, 0.9);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 26;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  white-space: nowrap;
}
.slider-container.manual-switch .manual-switch-hint {
  opacity: 1;
}
.auto-play-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(76, 175, 80, 0.9);
  color: white;
  padding: 15px 25px;
  border-radius: 8px;
  font-size: 16px;
  z-index: 27;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  white-space: nowrap;
}
.slider-container.auto-play-started .auto-play-hint {
  opacity: 1;
}