.page5{
  width: 720px;
  margin: 0 auto;
  height: 1500px;
  position: relative;
  top: 520px;
  /* background: url(../image/section5/bg.jpg) no-repeat;
  background-size: 100%; */
}

.page5.fadeInUpPlus5 {
  animation: fadeInUpPlus5 1s ease-in-out;
}
@keyframes fadeInUpPlus5 {
  from {
    opacity: 0;
    transform: translateY(10%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.title-hunter {
  width: 261px;
  height: 68px;
  position: absolute;
  top: -25px;
  background: url(../image/section5/title-hunter.png) no-repeat;
  background-size: 100%;
  z-index: 3;
  left: 50%;
  transform: translateX(-50%);
}

.swiper {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.mySwiper .swiper-slide {
  width: 500px;
  height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
}



.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pagination-bg {
    width: 426px;
  height: 9px;
  position: absolute;
  bottom: -43px;
  left: 148px;
  background: url(../image/section5/pagination-bg.png) no-repeat;
  background-size: 100%;
  pointer-events: none; /* 不阻挡点击事件 */
  z-index: 1; /* 确保在分页器下方 */
}

/* 主轮播图分页器样式 */
.swiper-pagination {
  position: absolute;
  text-align: center;
  transition: .3s opacity;
  transform: translate3d(0,0,0);
  z-index: 10;
}

.mySwiper > .swiper-pagination {
  position: absolute;
  bottom: -30px;
  left: 98%;
  transform: translateX(-50%);
   z-index: 10; /* 提高层级，确保在 pagination-bg 上方 */
}

.mySwiper > .swiper-pagination .swiper-pagination-bullet:nth-child(1) {
  width: 20px;
  height: 24px;
  position: absolute;
  bottom: -21px;
  left: -75px;
  background: url(../image/section5/career-1.png) no-repeat;
  background-size: 100%;
  border-radius: 0;
  z-index: 1;
}

.mySwiper > .swiper-pagination .swiper-pagination-bullet:nth-child(1).swiper-pagination-bullet-active {
  width: 32px;
  height: 36px;
  position: absolute;
  bottom: -25px;
  left: -81px;
  background: url(../image/section5/career-active-1.png) no-repeat;
  background-size: 100%;
  border-radius: 0;
   z-index: 1;
}

.mySwiper > .swiper-pagination .swiper-pagination-bullet:nth-child(2) {
  width: 20px;
  height: 24px;
  position: absolute;
  bottom: -21px;
  left: -25px;
  background: url(../image/section5/career-2.png) no-repeat;
  background-size: 100%;
  border-radius: 0;
   z-index: 1;
}

.mySwiper > .swiper-pagination .swiper-pagination-bullet:nth-child(2).swiper-pagination-bullet-active {
  width: 32px;
  height: 36px;
  position: absolute;
  bottom: -25px;
  left: -31px;
  background: url(../image/section5/career-active-2.png) no-repeat;
  background-size: 100%;
  border-radius: 0;
   z-index: 1;
}

.mySwiper > .swiper-pagination .swiper-pagination-bullet:nth-child(3) {
  width: 20px;
  height: 24px;
  position: absolute;
  bottom: -21px;
  left: 25px;
  background: url(../image/section5/career-3.png) no-repeat;
  background-size: 100%;
  border-radius: 0;
   z-index: 1;
}

.mySwiper > .swiper-pagination .swiper-pagination-bullet:nth-child(3).swiper-pagination-bullet-active {
  width: 32px;
  height: 36px;
  position: absolute;
  bottom: -25px;
  left: 19px;
  background: url(../image/section5/career-active-3.png) no-repeat;
  background-size: 100%;
  border-radius: 0;
   z-index: 1;
}
.mySwiper > .swiper-pagination .swiper-pagination-bullet:nth-child(4) {
  width: 20px;
  height: 24px;
  position: absolute;
  bottom: -21px;
  left: 75px;
  background: url(../image/section5/career-4.png) no-repeat;
  background-size: 100%;
  border-radius: 0;
   z-index: 1;
}

.mySwiper > .swiper-pagination .swiper-pagination-bullet:nth-child(4).swiper-pagination-bullet-active {
  width: 32px;
  height: 36px;
  position: absolute;
  bottom: -25px;
  left: 69px;
  background: url(../image/section5/career-active-4.png) no-repeat;
  background-size: 100%;
  border-radius: 0;
   z-index: 1;
}


/* 分页器点基础样式 */
.swiper-pagination-bullet {
  background-color: #2a2c9c;
  width: 100px;
  height: 100px;
  display: inline-block;
  opacity: 0.8;
   z-index: 1;
}

/* .swiper-slide .hunter_img {
  position:absolute;
  top: 50px;
} */

/* .swiper-pagination-bullet-active {
  opacity: 1;
  background-color: #911717;
} */
/* 
.hunter-pic {
  position: absolute;
  width: 100%;
  height: 100%;
} */

/* .hunter-bg {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0rem;
  left: 0rem;
  object-fit: cover;
  z-index: 1;
} */

/* 战士职业 */
.hunter-warrior .hunter_img {
  width: 429px;
  height: 653px;
  position: absolute;
  /* bottom: 160px; */
  left: -60px;
  top: 170px;
  background: url(../image/section5/hunter-1.png) no-repeat;
  background-size: 100%;
}

.hunter-warrior .hunter_text {
  width: 720px;
  height: 562px;
  top: 900px;
  left: 0px;
  position: absolute;
  background: url(../image/section5/hunter-1-text.png) no-repeat;
  background-size: 100%;
}

/* 法师职业 */
.hunter-mage .hunter_img {
  width: 487px;
  height: 605px;
  position: absolute;
  top: 218px;
  left: -60px;
  background: url(../image/section5/hunter-2.png) no-repeat;
  background-size: 100%;
}

.hunter-mage .hunter_text {
  width: 720px;
  height: 562px;
  top: 900px;
  left: 0px;
  position: absolute;
  background: url(../image/section5/hunter-2-text.png) no-repeat;
  background-size: 100%;
}

/* 炮手职业 */
.hunter-gunner .hunter_img {
  width: 369px;
  height: 640px;
  position: absolute;
  top: 180px;
  left: -55px;
  background: url(../image/section5/hunter-3.png) no-repeat;
  background-size: 100%;
}

.hunter-gunner .hunter_text {
  width: 720px;
  height: 562px;
  top: 900px;
  left: 0px;
  position: absolute;
  background: url(../image/section5/hunter-3-text.png) no-repeat;
  background-size: 100%;
}

/* 刺客职业 */
.hunter-assassin .hunter_img {
  width: 369px;
  height: 632px;
  position: absolute;
  top: 191px;
  left: -55px;
  background: url(../image/section5/hunter-4.png) no-repeat;
  background-size: 100%;
}
.swiper-button-next {
  position: absolute;
  top: 50%;
  right: 0px;
  width: 48px;
  height: 58px;
  background: url(../image/section5/swiper-button-next.png) no-repeat;
  background-size: 100%;
}
.swiper-button-prev {
  position: absolute;
  top: 50%;
  left: 0px;
  width: 48px;
  height: 58px;
  background: url(../image/section5/swiper-button-prev.png) no-repeat;
  background-size: 100%;
}

.hunter-assassin .hunter_text {
  width: 720px;
  height: 562px;
  top: 900px;
  left: 0px;
  position: absolute;
  background: url(../image/section5/hunter-4-text.png) no-repeat;
  background-size: 100%;
}

/* 重构后的四职业/男女角色轮播 */
.role-title {
  position: absolute;
  top: 100px;
  left: 50%;
  width: 455px;
  height: 87px;
  background: url(../image/section5/title.png) center / 100% 100% no-repeat;
  pointer-events: none;
  transform: translateX(-50%);
  z-index: 9;
}

.role-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 1500px;
  overflow: visible;
  z-index: 0;
}

.role-career-swiper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1500px;
  overflow: hidden;
  z-index: 2;
}

.role-career-swiper > .swiper-wrapper,
.role-career-slide,
.role-gender-swiper,
.role-gender-swiper > .swiper-wrapper,
.role-gender-slide {
  width: 100%;
  height: 100%;
}

.role-career-slide,
.role-gender-slide {
  position: relative;
  overflow: hidden;
}

.role-gender-slide::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 723px;
  background: url(../image/section5/Profession-bg.png) center bottom / 100% 100% no-repeat;
  pointer-events: none;
  z-index: 1;
}

.role-portrait {
  position: absolute;
  top: -150px;
  left: 50%;
  width: 720px;
  height: 1500px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  background-image: none;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-blend-mode: normal;
}

.role-portrait-label {
  position: absolute;
  top: calc(50% + 345px);
  left: 50%;
  z-index: 2;
  display: block;
  width: 530px;
  height: 209px;
  transform: translate(-50%, -50%);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  font-size: 0;
}

.role-portrait-label-1 {
  background-image: url(../image/section5/text-1.png);
}

.role-portrait-label-2 {
  width: 546px;
  background-image: url(../image/section5/text-2.png);
}

.role-portrait-label-3 {
  width: 515px;
  height: 210px;
  background-image: url(../image/section5/text-3.png);
}

.role-portrait-label-4 {
  width: 544px;
  background-image: url(../image/section5/text-4.png);
}

.role-portrait-assassin-male {
 background-image: url(../image/section5/assassin-male.png);
}

.role-portrait-assassin-female {
   background-image: url(../image/section5/assassin-female.png);
}

.role-portrait-blade-male {
 background-image: url(../image/section5/blade-male.png);
}
.role-portrait-blade-female {
  background-image: url(../image/section5/blade-female.png);
}

.role-portrait-mage-male{
   background-image: url(../image/section5/mage-male.png);
}

.role-portrait-mage-female {
 background-image: url(../image/section5/mage-female.png);
}

.role-portrait-gunner-male{
 background-image: url(../image/section5/gunner-male.png);
}
.role-portrait-gunner-female {
 background-image: url(../image/section5/gunner-female.png);
}

.role-career-avatar-pagination {
  position: absolute;
  top: 735px;
  left: 50%;
  width: 100%;
  height: 160px;
  transform: translateX(-50%);
  z-index: 5;
}

.role-career-avatar,
.role-career-bottom-button,
.role-gender-button,
.role-career-nav {
  padding: 0;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.role-career-avatar {
  position: absolute;
  top: 0;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 128px;
  color: #b7bdce;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translateX(-50%) scale(.72);
  transform-origin: center bottom;
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}

.role-career-avatar.is-visible {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.role-career-avatar[data-avatar-position="left"] {
  left: calc(50% - 190px);
  transform: translateX(-50%) translateY(22px) scale(.72) rotate(-8deg);
}

.role-career-avatar[data-avatar-position="center"] {
  left: 50%;
  transform: translateX(-50%) scale(.72);
}

.role-career-avatar[data-avatar-position="right"] {
  left: calc(50% + 190px);
  transform: translateX(-50%) translateY(22px) scale(.72) rotate(8deg);
}

.role-career-avatar.is-active {
  color: #f4d58c;
  opacity: 1;
  transform: translateX(-50%) scale(1) rotate(0deg);
}

.role-career-avatar-image {
  display: block;
  width: 190px;
  height: 215px;
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  font-size: 0;
}

.role-career-avatar-image[data-avatar-image="ck-1.png"] {
  background-image: url(../image/section5/ck-1.png);
}

.role-career-avatar-image[data-avatar-image="ck-2.png"] {
  background-image: url(../image/section5/ck-2.png);
}

.role-career-avatar-image[data-avatar-image="js-1.png"] {
  background-image: url(../image/section5/js-1.png);
}

.role-career-avatar-image[data-avatar-image="js-2.png"] {
  background-image: url(../image/section5/js-2.png);
}

.role-career-avatar-image[data-avatar-image="fs-1.png"] {
  background-image: url(../image/section5/fs-1.png);
}

.role-career-avatar-image[data-avatar-image="fs-2.png"] {
  background-image: url(../image/section5/fs-2.png);
}

.role-career-avatar-image[data-avatar-image="qs-1.png"] {
  background-image: url(../image/section5/qs-1.png);
}

.role-career-avatar-image[data-avatar-image="qs-2.png"] {
  background-image: url(../image/section5/qs-2.png);
}

.role-career-avatar-name {
  margin-top: 8px;
  font-size: 24px;
  line-height: 1;
}

.role-gender-pagination {
  position: absolute;
  top: 640px;
  left: 50%;
  display: flex;
  gap: 18px;
  transform: translateX(-50%);
  z-index: 8;
}

.role-gender-button {
  width: 120px;
  height: 120px;
  color: transparent;
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100px 102px;
  border: 0;
  border-radius: 0;
  font-size: 0;
}

.role-gender-button[data-gender-index="0"] {
  background-image: url(../image/section5/nan.png);
}

.role-gender-button[data-gender-index="0"].is-active {
  background-image: url(../image/section5/nan-active.png);
  background-size: 120px 120px;
}

.role-gender-button[data-gender-index="1"] {
  background-image: url(../image/section5/nv.png);
}

.role-gender-button[data-gender-index="1"].is-active {
  background-image: url(../image/section5/nv-active.png);
  background-size: 120px 120px;
}

.role-career-nav {
  position: absolute;
  bottom: 165px;
  width: 48px;
  height: 58px;
  background-color: transparent;
  background-repeat: no-repeat;
  background-size: 100%;
  z-index: 7;
}

.role-career-prev {
  left: 12px;
  background-image: url(../image/section5/swiper-button-prev.png);
}

.role-career-next {
  right: 12px;
  background-image: url(../image/section5/swiper-button-next.png);
}

.role-career-top-nav {
  position: absolute;
  top: 85px;
  width: 57px;
  height: 66px;
  padding: 0;
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 57px 66px;
  border: 0;
  cursor: pointer;
  z-index: 7;
}

.role-career-top-prev {
  left: calc(50% - 155px);
  background-image: url(../image/section5/swiper-button-prev1.png);
}

.role-career-top-next {
  right: calc(50% - 155px);
  background-image: url(../image/section5/swiper-button-next1.png);
}

.role-career-bottom-pagination {
  position: absolute;
  bottom: 97px;
  left: 50%;
  width: 100%;
  height: 160px;
  transform: translateX(-50%);
  z-index: 6;
}

.role-career-bottom-button {
  position: absolute;
  top: 0;
  left: 50%;
  width: 102px;
  /* min-width: 102px; */
  height: 130px;
  color: transparent;
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  border: 0;
  border-radius: 0;
  font-size: 0;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translateX(-50%) scale(.72);
  transform-origin: center bottom;
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}

.role-career-bottom-button.is-visible {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.role-career-bottom-button[data-career-position="left"] {
  left: calc(50% - 190px);
  transform: translateX(-50%);
}

.role-career-bottom-button[data-career-position="center"] {
  left: 50%;
  transform: translateX(-50%);
}

.role-career-bottom-button[data-career-position="right"] {
  left: calc(50% + 190px);
  transform: translateX(-50%);
}

.role-career-bottom-button[data-career-index="0"] {
  background-image: url(../image/section5/ck.png);
}

.role-career-bottom-button[data-career-index="1"] {
  background-image: url(../image/section5/js.png);
}

.role-career-bottom-button[data-career-index="2"] {
  width: 84px;
  background-image: url(../image/section5/mf.png);
}

.role-career-bottom-button[data-career-index="3"] {
  background-image: url(../image/section5/qs.png);
}

.role-career-bottom-button.is-active {
  opacity: 1;
  animation: role-career-bottom-breathe 1.5s ease-in-out infinite;
}

@keyframes role-career-bottom-breathe {
  0%,
  100% {
    filter: drop-shadow(0 0 0 rgba(244, 213, 140, 0));
    transform: translateX(-50%) scale(1) rotate(0deg);
  }

  50% {
    filter: drop-shadow(0 0 8px rgba(244, 213, 140, .55));
    transform: translateX(-50%) scale(1.06) rotate(0deg);
  }
}

/* 动画样式 */
.hunter_img.animated.ani {
  animation-name: fadeInLeft;
  animation-duration: 0.4s;
  animation-delay: 0.25s;
}

.hunter_text.animated.ani {
  animation-name: fadeInRight;
  animation-duration: 0.4s;
  animation-delay: 0.25s;
}


/* 激活状态的角色背景图 */
.swiper-slide-active .hunter-warrior .hunter_img {
    width: 518px;
  height: 791px;
  position: absolute;
  left: -98px;
  top: 107px;
  background-size: 100%;
  background: url(../image/section5/hunter-1-active.png) no-repeat;
}

.swiper-slide-active .hunter-mage .hunter_img {
 width: 566px;
  height: 731px;
  position: absolute;
  top: 169px;
  left: -95px;
  background: url(../image/section5/hunter-2-active.png) no-repeat;
  background-size: 100%;
}

.swiper-slide-active .hunter-gunner .hunter_img {
  width: 439px;
  height: 776px;
  position: absolute;
   top: 125px;
  left: -90px;
  background: url(../image/section5/hunter-3-active.png) no-repeat;
  background-size: 100%;
}

.swiper-slide-active .hunter-assassin .hunter_img {
   width: 439px;
  height: 764px;
  position: absolute;
 top: 125px;
  left: -90px;
  background: url(../image/section5/hunter-4-active.png) no-repeat;
  background-size: 100%;
}
