/* 首页改版引导弹层：917×508 居中轮播 */
.kerui-home-launch-modal {
  position: fixed;
  inset: 0;
  z-index: 2000000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: rgba(0, 0, 0, 0.55);
}

.kerui-home-launch-nav {
  flex-shrink: 0;
  width: 28px;
  height: 56px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: opacity 0.15s ease;
  --launch-nav-color: #e0635a;
}

.kerui-home-launch-nav::after {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  border-top: 3px solid var(--launch-nav-color);
  border-right: 3px solid var(--launch-nav-color);
  box-sizing: border-box;
}

.kerui-home-launch-nav--prev::after {
  transform: rotate(-135deg);
  margin-right: 2px;
}

.kerui-home-launch-nav--next::after {
  transform: rotate(45deg);
  margin-left: 2px;
}

.kerui-home-launch-nav:hover:not(.swiper-button-disabled) {
  opacity: 0.82;
}

.kerui-home-launch-nav.swiper-button-disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.kerui-home-launch-nav.is-hidden {
  display: none;
}

.kerui-home-launch-modal.is-hidden {
  display: none;
}

.kerui-home-launch-panel {
  position: relative;
  width: 917px;
  height: 508px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  flex-shrink: 0;
  border: none;
  box-shadow: none;
  /* 设计稿 917×508：分页点右缘距面板 35px、bottom=35px；右锚定避免多页时溢出图外 */
  --launch-dot-slot: 25px;
  --launch-dot-active-w: 25px;
  --launch-dot-inactive-w: 10px;
  --launch-dot-h: 6px;
  --launch-dot-right: 50px;
  --launch-dot-bottom: 35px;
}

.kerui-home-launch-skip {
  position: absolute;
  top: 2.95%;
  right: 3.05%;
  z-index: 3;
  border: none;
  background: transparent;
  color: #222222;
  font-size: 14px;
  line-height: 1;
  padding: 4px 2px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.kerui-home-launch-skip:hover {
  color: #000000;
}

.kerui-home-launch-swiper {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: none;
  border-radius: 0;
}

.kerui-home-launch-swiper .swiper-slide {
  width: 100%;
  height: 100%;
}

.kerui-home-launch-swiper .swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

/* 右锚定分页点行；覆盖 Swiper 默认 left:0;width:100% */
#keruiHomeLaunchPagination.kerui-home-launch-pagination,
.kerui-home-launch-panel .kerui-home-launch-pagination.swiper-pagination-horizontal,
.kerui-home-launch-panel .kerui-home-launch-pagination.swiper-pagination-bullets {
  position: absolute !important;
  left: auto !important;
  right: var(--launch-dot-right) !important;
  top: auto !important;
  bottom: var(--launch-dot-bottom) !important;
  width: auto !important;
  max-width: none !important;
  transform: none !important;
  text-align: left !important;
  z-index: 3;
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  pointer-events: none;
  box-sizing: border-box;
}

.kerui-home-launch-pagination .swiper-pagination-bullet {
  position: relative;
  width: var(--launch-dot-slot);
  height: var(--launch-dot-h);
  margin: 0 !important;
  border-radius: 0;
  background: transparent;
  opacity: 1;
  pointer-events: auto;
  flex: 0 0 var(--launch-dot-slot);
}

.kerui-home-launch-pagination .swiper-pagination-bullet::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--launch-dot-inactive-w);
  height: var(--launch-dot-h);
  margin: 0;
  border-radius: calc(var(--launch-dot-h) / 2);
  background: #aaaaaa;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, border-radius 0.2s ease, background 0.2s ease;
}

.kerui-home-launch-pagination .swiper-pagination-bullet-active::before {
  width: var(--launch-dot-active-w);
  height: var(--launch-dot-h);
  border-radius: calc(var(--launch-dot-h) / 2);
  background: #e0635a;
}

@media (max-width: 960px) {
  .kerui-home-launch-modal {
    gap: 10px;
  }

  .kerui-home-launch-nav {
    width: 22px;
    height: 44px;
  }

  .kerui-home-launch-nav::after {
    width: 14px;
    height: 14px;
    border-width: 2.5px;
  }

  .kerui-home-launch-panel {
    width: min(917px, calc(100vw - 24px));
    height: auto;
    aspect-ratio: 917 / 508;
    --launch-dot-right: 5%;
    --launch-dot-bottom: 6.89%;
  }

  .kerui-home-launch-swiper,
  .kerui-home-launch-swiper .swiper-slide {
    height: 100%;
  }
}
