.ugc-materials {
  overflow: hidden;
}
.ugc-materials .content {
  overflow: hidden;
  margin-top: 15px;
}

.ugc-materials .tabs {
  display: flex;
  gap: 30px;
  margin-bottom: 20px;
  margin-top: 20px;
  overflow-x: auto;
}

.ugc-materials .tab {
  font-size: 20px;
  line-height: 1.4;
  color: #A6A6A6;
  font-weight: 500;
  white-space: nowrap;
}

.ugc-materials .tab.active {
  color: #000000;
}

.ugc-materials .tab:hover {
  text-decoration: underline;
}

.ugc-materials .sections-box {
  display: flex;
  justify-content: space-around;
  position: relative;
}

.ugc-materials .labels {
  flex: 1;
  overflow: hidden;
  overflow-x: auto;
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 20px;
}

.ugc-materials .label-box {
  line-height: 1;
  font-size: 16px;
  padding: 12px 25px;
  white-space: nowrap;
  border-radius: 8px;
  border: 1px solid #DFDFDF;
  background: #FFF;
  display: inline-block;
  cursor: pointer;
}

@media screen and (min-width: 951px){
  .ugc-materials .label-box:hover {
    background: #000000;
    border-color: #000000;
    color: #fff;
  }
}

.ugc-materials .label-box.active {
  background: #000000;
  border-color: #000000;
  color: #fff;
}

.ugc-materials .navigation {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 32px;
  position: absolute;
  right: 0;
  bottom: 4px;
}
.ugc-materials .navigation .icon-arrow {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: top;
  cursor: pointer;
}
.ugc-materials .navigation .icon-arrow.swiper-button-disabled {
  opacity: 0.2;
}
.ugc-materials .navigation .prev-arrow {
  transform: rotate(90deg);
}

.ugc-materials .navigation .next-arrow {
  transform: rotate(-90deg);
}

.ugc-materials .content .swiper-slide {
  display: flex;
  position: relative;
}
.ugc-materials .content .swiper-slide:before {
  content: "";
  display: block;
  width: 100%;
  padding-bottom: var(--img-height, 100%);
}

.ugc-materials .content .swiper-slide img {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-height: 100%;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* 视频播放按钮 */
.ugc-materials .video-play-btn {
  cursor: pointer;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ugc-materials .video-play-btn svg {
  width: 28px;
  height: 28px;
}

.ugc-materials .swiper-slide:hover .video-play-btn {
  background: rgba(255, 255, 255, 0.8);
}

/* 视频弹窗样式 */
.ugc-materials .popup-video {
  display: none;
}

.ugc-materials .popup-video.active {
  display: block;
}

.ugc-materials .popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.ugc-materials .popup-container {
  position: relative;
  width: 90%;
  max-width: 1000px;
  animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.ugc-materials .popup-close {
  position: absolute;
  top: -50px;
  right: 0;
  width: 40px;
  height: 40px;
  background: #fff;
  border: none;
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.ugc-materials .popup-close:hover {
  background: #000;
  color: #fff;
}

.ugc-materials .popup-video-wrapper {
  position: relative;
  width: 100%;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

.ugc-materials .popup-video-wrapper video {
  width: 100%;
  height: auto;
  display: block;
  max-height: 80vh;
}

@media screen and (max-width: 950px){
  .ugc-materials .tab {
    font-size: 16px;
  }
  .ugc-materials .navigation {
    display: none;
  }
  .ugc-materials .labels {
    flex-wrap: wrap;
  }
  .ugc-materials .label-box {
    padding: 12px;
    font-size: 12px;
    border-radius: 4px;
  }
  .ugc-materials .tabs {
    margin-bottom: 15px;
  }
}