/* 幻灯片进度条动画 */
@keyframes slideshow-progress {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(0);
  }
}

/* 基础样式 */
.slideshow .button {
  word-break: break-word;
  white-space: normal;
}

/* 轮播轨道样式 */
.slideshow .carousel__track {
  aspect-ratio: var(--desktop-aspect-ratio);
  overflow-y: hidden;
  will-change: transform; /* 优化动画性能 */
}
.slideshow__item {
  width: 100%;
}
.slideshow__image {
  position: relative;
  width: var(--slideshow-image-width);
  height: var(--slideshow-image-height);
}
.slideshow__image--mobile,
.slideshow__image--desktop {
  position: relative;
  z-index: 1;
}
.slideshow__image--mobile img,
.slideshow__image--mobile svg,
.slideshow__image--desktop img,
.slideshow__image--desktop svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slideshow__image--mobile {
  display: none;
}
.slideshow__image--desktop {
  display: block;
  height: var(--desktop-height);
}
.slideshow__image-container {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  background-color: rgb(var(--color-image-background));
}
.slideshow__image-mask {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-color: rgba(
    0,
    0,
    0,
    calc(var(--slideshow-image-mask-opacity) / 100)
  );
  transform: translate(-50%, -50%);
}
.slideshow__group {
  position: relative;
  z-index: 3;
}
.slideshow__pager {
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 50%;
  z-index: 3;
  display: flex;
  gap: 6px;
  align-items: center;
  transform: translate(-50%, 0);
}
.slideshow__pager--dots {
  inset-block-end: 20px;
}
.slideshow__pager--dot {
  display: block;
  width: 6px;
  height: 6px;
  padding: 0;
  cursor: pointer;
  background-color: #fff;
  border: 0;
  border-radius: 50%;
  opacity: 0.4;
  transition: opacity, width, height, 0.3s;
}
.slideshow__pager--dot.is-active {
  width: 10px;
  height: 10px;
  opacity: 1;
}
.slideshow__pager--progresses {
  gap: 10px;
}
.slideshow__pager--progress {
  display: block;
  width: 120px;
  height: 6px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  background-color: rgb(255 255 255 / 50%);
  border: 0;
}
.slideshow__pager--progress.is-active {
  opacity: 1;
}
.slideshow__pager--progress.is-active .slideshow__pager--progress-inner {
  display: block;
  width: 100%;
  height: 100%;
  background-color: #fff;
  animation: slideshow-progress var(--slideshow-speed, 0s) linear forwards;
}
.slideshow__pager--progress.is-active .slideshow__pager--progress-inner-static {
  display: block;
  width: 100%;
  height: 100%;
  background-color: #fff;
}
.slideshow__pager--arrows {
  inset-block-end: 0;
  inset-inline: auto 40px;
  width: fit-content;
  transform: translateY(50%);
}
.slideshow__pager--arrow {
  width: 40px;
  height: 40px;
  padding: 0;
  cursor: pointer;
  background-color: #fff;
  filter: drop-shadow(0 4px 10px rgb(0 0 0 / 15%));
  border: 0;
  border-radius: 50%;
}
.slideshow__pager--arrow {
  position: absolute;
  top: 0;
  height: 100%;
  padding: 0;
  border: none;
  background: none;
  z-index: 1;
}
.slideshow__pager--arrow .arrow-icon{ 
  color: #fff;
}
.slideshow__pager--arrow .arrow-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  cursor: pointer;
  background-color: rgba(0,0,0,0.25);
  /* filter: drop-shadow(0 4px 10px rgb(0 0 0 / 15%)); */
  border: 0;
  border-radius: 50%;
}
.slideshow__pager--arrow[name="previous"] {
  left: 2%;
}
.slideshow__pager--arrow[name="next"] {
  right: 2%;
}
.slideshow__pager--arrow[name="previous"] .arrow-wrap {
  transform: rotate(90deg);
}
.slideshow__pager--arrow[name="next"] .arrow-wrap {
  transform: rotate(-90deg);
}
.slideshow__image-text-mask {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  display: block;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
}
.slideshow__image-text-mask-deep {
  background: radial-gradient(
    77.64% 77.64% at 50% 50%,
    rgb(0 0 0 / 30%) 59.64%,
    rgb(0 0 0 / 0%) 100%
  );
  filter: blur(120px);
  border-radius: 50%;
}
.slideshow__image-text-mask-light {
  background: radial-gradient(
    77.64% 77.64% at 50% 50%,
    rgb(255 255 255 / 30%) 59.64%,
    rgb(255 255 255 / 0%) 100%
  );
  filter: blur(120px);
  border-radius: 50%;
}

@media (max-width: 959px) {
  .slideshow .carousel__track {
    aspect-ratio: var(--mobile-aspect-ratio);
  }
  .slideshow__image--mobile {
    display: block;
    height: var(--mobile-height);
  }

  .slideshow__image--desktop {
    display: none;
  }
  .slideshow__pager--progress {
    width: 60px;
  }

  .slideshow__pager--arrows {
    inset-inline: auto 20px;
  }

  /* .slideshow__pager--arrow {
    width: 32px;
    height: 32px;
  }

  .slideshow__pager--arrow svg {
    width: 10px;
    height: 10px;
  } */
}


/* 从group.html迁移的样式 */
.slideshow__group--positioned {
  position: absolute!important;
}

/* === PC端定位 === */
@media screen and (min-width: 1025px) {
  /*组件支持PC/移动端隐藏*/
  .slideshow__group-wrapper[data-pc-hide="false"] {
    display: block;
  }
  .slideshow__group-wrapper[data-pc-hide="true"] {
    display: none;
  }
  .slideshow__carousel {
    margin: var(--pc-margin);
  }
  .slideshow__group--positioned[data-position-pc="top_left"] {
    top: var(--pc-top);
    left: var(--pc-left);
  }
  .slideshow__group--positioned[data-position-pc="top_right"] {
    top: var(--pc-top);
    right: var(--pc-right);
  }
  .slideshow__group--positioned[data-position-pc="bottom_left"] {
    bottom: var(--pc-bottom);
    left: var(--pc-left);
  }
  .slideshow__group--positioned[data-position-pc="bottom_right"] {
    bottom: var(--pc-bottom);
    right: var(--pc-right);
  }
  .slideshow__group--positioned[data-position-pc="center"] {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}

/* === 平板端定位 === */
@media screen and (min-width: 751px) and (max-width: 1024px) {
  .slideshow__carousel {
    margin: var(--pad-margin);
  }
  .slideshow__group--positioned[data-position-pad="top_left"] {
    top: var(--pad-top);
    left: var(--pad-left);
  }
  .slideshow__group--positioned[data-position-pad="top_right"] {
    top: var(--pad-top);
    right: var(--pad-right);
  }
  .slideshow__group--positioned[data-position-pad="bottom_left"] {
    bottom: var(--pad-bottom);
    left: var(--pad-left);
  }
  .slideshow__group--positioned[data-position-pad="bottom_right"] {
    bottom: var(--pad-bottom);
    right: var(--pad-right);
  }
  .slideshow__group--positioned[data-position-pad="center"] {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}

/* === 移动端定位 === */
@media screen and (max-width: 750px) {
  .slideshow__carousel {
    margin: var(--mobile-margin);
  }
  .slideshow__group--positioned {
    position: static !important;
  }

  .slideshow__group-wrapper {
    display: flex;
    position: relative;
    width: 100%;
    height: 100%;
  }

  .slideshow__group-wrapper[data-m-hide="false"] {
  }
  .slideshow__group-wrapper[data-m-hide="true"] {
    display: none;
  }

  /* 原有定位 */
  .slideshow__group-wrapper[data-position-mobile="top_left"] {
    justify-content: flex-start;
    align-items: flex-start;
  }
  .slideshow__group-wrapper[data-position-mobile="top_right"] {
    justify-content: flex-end;
    align-items: flex-start;
  }
  .slideshow__group-wrapper[data-position-mobile="bottom_left"] {
    justify-content: flex-start;
    align-items: flex-end;
  }
  .slideshow__group-wrapper[data-position-mobile="bottom_right"] {
    justify-content: flex-end;
    align-items: flex-end;
  }
  .slideshow__group-wrapper[data-position-mobile="center"] {
    justify-content: center;
    align-items: center;
  }

  .slideshow__group-wrapper[data-position-mobile="middle_top"] {
    justify-content: center;
    align-items: flex-start;
  }

  .slideshow__group-wrapper[data-position-mobile="middle_bottom"] {
    justify-content: center;
    align-items: flex-end;
  }
}

/* @media screen and (max-width: 750px) {
  .slideshow__carousel {
    margin: var(--mobile-margin);
  }
  .slideshow__group--positioned[data-position-mobile="top_left"] {
    top: var(--mobile-top);
    left: var(--mobile-left);
  }
  .slideshow__group--positioned[data-position-mobile="top_right"] {
    top: var(--mobile-top);
    right: var(--mobile-right);
  }
  .slideshow__group--positioned[data-position-mobile="bottom_left"] {
    bottom: var(--mobile-bottom);
    left: var(--mobile-left);
  }
  .slideshow__group--positioned[data-position-mobile="bottom_right"] {
    bottom: var(--mobile-bottom);
    right: var(--mobile-right);
  }
  .slideshow__group--positioned[data-position-mobile="center"] {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
} */