/* //////////////////////////////////// section03 //////////////////////////////////// */
#particles_hero {
  background-color: rgb(51, 68, 97);
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: 0;   /* 改小一點，避免干擾 section03 的背景圖層 */
  pointer-events: none; /* 避免滑鼠事件被擋住 */
}

/*背景*/
#section03 .bg{
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  mix-blend-mode:color-dodge;
}
#section03 .bg img:nth-child(1){
  position: absolute;
  top: 0;
  width: 70%;
  display: none;
}
#section03 .bg img:nth-child(2){
  position: absolute;
  top: -38%;
  left: 20%;
  width: 50%;
  /* display: none; */
}
#section03 .bg img:nth-child(3){
  position: absolute;
  top: 0;
  width: 60%;
  left: 19%;
  display: none;
}



/*種族選單*/
#section03 .nav-pills{
  position: absolute;
  left: 12.8%;
  top: 25%;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  border: 1px solid #ffffff00;
  padding: 0 !important;
  z-index: 999;
}

#section03 li.nav-item{
  width: 85px;
  height: 75px;
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: center center;
  image-rendering: -webkit-optimize-contrast;
  flex-direction: row;
  -ms-flex-direction: row;
  justify-content: flex-end;
  -ms-flex-pack: end;
  position: relative;
  margin-bottom: 1rem;
}

#section03 li.nav-item img{
  opacity: 0.01;
}

#section03 li.nav-item a{
  padding: 0;
  margin-bottom: .5rem;
}

.nav-pills .nav-link.active,
.nav-pills .show>.nav-link{
  background-color: #0d6dfd00 !important;
}



/*種族選單 X 標誌*/
#section03 li.nav-item:nth-of-type(1) {
  background-image: url(../images/sec_hero/ethnic_1.png);
}
#section03 li.nav-item:nth-of-type(2) {
  background-image: url(../images/sec_hero/ethnic_2.png);
}
#section03 li.nav-item:nth-of-type(3) {
  background-image: url(../images/sec_hero/ethnic_3.png);
}
#section03 li.nav-item:nth-of-type(4) {
  background-image: url(../images/sec_hero/ethnic_4.png);
}
#section03 li.nav-item:nth-of-type(5) {
  background-image: url(../images/sec_hero/ethnic_5.png);
}
#section03 li.nav-item:nth-of-type(6) {
  background-image: url(../images/sec_hero/ethnic_6.png);
}



/*種族選單 X 標誌 X hover.active*/
#section03 li.nav-item:nth-of-type(1) .nav-link:hover,
#section03 li.nav-item:nth-of-type(1) .nav-link.active,
#section03 li.nav-item:nth-of-type(2) .nav-link:hover,
#section03 li.nav-item:nth-of-type(2) .nav-link.active,
#section03 li.nav-item:nth-of-type(3) .nav-link:hover,
#section03 li.nav-item:nth-of-type(3) .nav-link.active,
#section03 li.nav-item:nth-of-type(4) .nav-link:hover,
#section03 li.nav-item:nth-of-type(4) .nav-link.active,
#section03 li.nav-item:nth-of-type(5) .nav-link:hover,
#section03 li.nav-item:nth-of-type(5) .nav-link.active,
#section03 li.nav-item:nth-of-type(6) .nav-link:hover,
#section03 li.nav-item:nth-of-type(6) .nav-link.active {
  background-size: 100% auto;
  background-repeat: no-repeat;
  filter: drop-shadow(1px 1px 4px #fff);
}


#section03 li.nav-item:nth-of-type(1) .nav-link:hover,
#section03 li.nav-item:nth-of-type(1) .nav-link.active {
  background-image: url(../images/sec_hero/ethnic_1_active.png) ;
  /* margin-top: -2.5px; */
}
#section03 li.nav-item:nth-of-type(1) .nav-link:hover::before,
#section03 li.nav-item:nth-of-type(1) .nav-link.active::before{
  content: "人族";
  position: absolute;
  left: 110%;
  top: 25%;
  font-size: larger;
  font-weight: 500;
  line-height: 24px;
  color: #fff;
}

#section03 li.nav-item:nth-of-type(2) .nav-link:hover,
#section03 li.nav-item:nth-of-type(2) .nav-link.active {
  background-image: url(../images/sec_hero/ethnic_2_active.png);
  margin-top: -2.5px;
}
#section03 li.nav-item:nth-of-type(2) .nav-link:hover::before,
#section03 li.nav-item:nth-of-type(2) .nav-link.active::before{
  content: "林妖";
  position: absolute;
  left: 110%;
  top: 25%;
  font-size: larger;
  font-weight: 500;
  line-height: 24px;
  color: #fff;
}

#section03 li.nav-item:nth-of-type(3) .nav-link:hover,
#section03 li.nav-item:nth-of-type(3) .nav-link.active {
  background-image: url(../images/sec_hero/ethnic_3_active.png);
  margin-top: -2.5px;
}
#section03 li.nav-item:nth-of-type(3) .nav-link:hover::before,
#section03 li.nav-item:nth-of-type(3) .nav-link.active::before{
  content: "納姆";
  position: absolute;
  left: 110%;
  top: 25%;
  font-size: larger;
  font-weight: 500;
  line-height: 24px;
  color: #fff;
}


#section03 li.nav-item:nth-of-type(4) .nav-link:hover,
#section03 li.nav-item:nth-of-type(4) .nav-link.active {
  background-image: url(../images/sec_hero/ethnic_4_active.png);
  margin-top: -2.5px;
}
#section03 li.nav-item:nth-of-type(4) .nav-link:hover::before,
#section03 li.nav-item:nth-of-type(4) .nav-link.active::before{
  content: "暗精靈";
  position: absolute;
  left: 110%;
  top: 8%;
  font-size: larger;
  font-weight: 500;
  line-height: 24px;
  color: #fff;
}

#section03 li.nav-item:nth-of-type(5) .nav-link:hover,
#section03 li.nav-item:nth-of-type(5) .nav-link.active {
  background-image: url(../images/sec_hero/ethnic_5_active.png);
  margin-top: -2.5px;
}
#section03 li.nav-item:nth-of-type(5) .nav-link:hover::before,
#section03 li.nav-item:nth-of-type(5) .nav-link.active::before{
  content: "獸人";
  position: absolute;
  left: 110%;
  top: 25%;
  font-size: larger;
  font-weight: 500;
  line-height: 24px;
  color: #fff;
}

#section03 li.nav-item:nth-of-type(6) .nav-link:hover,
#section03 li.nav-item:nth-of-type(6) .nav-link.active {
  background-image: url(../images/sec_hero/ethnic_6_active.png);
  margin-top: -2.5px;
}
#section03 li.nav-item:nth-of-type(6) .nav-link:hover::before,
#section03 li.nav-item:nth-of-type(6) .nav-link.active::before{
  content: "龍族";
  position: absolute;
  left: 110%;
  top: 25%;
  font-size: larger;
  font-weight: 500;
  line-height: 24px;
  color: #fff;
}


#section03 li.nav-item .nav-link:hover .btn_ov,
#section03 li.nav-item .nav-link.active .btn_ov {
  opacity: 1;
}




/*角色區域*/
#section03 .tab-content{
  position: relative;
  width: 100%;
  height: 100vh;
  border: 1px solid #ffffff00;
  z-index: 99;
}

/* tab-pane 動畫 */
.tab-content .tab-pane {
  display: none;
  opacity: .3;
  transform: translateX(50px); /* 由右滑入，換成 -50px 是從左滑入 */
  animation: none;
}

.tab-content .tab-pane.active.show {
  display: block;
  animation: slideFadeIn 1s ease forwards;
}

@keyframes slideFadeIn {
  from {
    opacity: .3;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}


/*角色大區域 X 各角色 & 背景範圍 */
#section03 .tab-pane {
  opacity: 0;
  visibility: hidden;
  z-index: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* display: flex; 
  justify-content: center;
  align-items: center; */
  transition: opacity 0.1s ease-in-out;
}

#section03 .tab-pane.active.show {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}




/*角色區域 X 各角色 & 背景範圍 X 各種族背景設定*/
#section03 #human {
  background-image: url('../images/sec_hero/ethnic_bg_1.webp');
  background-size: 100% auto;
  background-position-y: 31%;
  filter: drop-shadow(2px 4px 6px black) contrast(1.1);
}
#section03 #dryad {
  background-image: url('../images/sec_hero/ethnic_bg_2.webp');
  background-size: 100% auto;
  background-position-y: 15%;
  filter:drop-shadow(2px 4px 6px black) contrast(1.1);
}

#section03 #nham {
  background-image: url('../images/sec_hero/ethnic_bg_3.webp');
  background-size: 100% auto;
  background-position-y: 15%;
  filter: drop-shadow(2px 4px 6px black) contrast(1.1);
}

#section03 #darkelf {
  background-image: url('../images/sec_hero/ethnic_bg_4.webp');
  background-size: 100% auto;
  background-position-y: 0%;
  filter: drop-shadow(2px 4px 6px black) contrast(1.1);
}
#section03 #beastmen {
  background-image: url('../images/sec_hero/ethnic_bg_5.webp');
  background-size: 100% auto;
  background-position-y: 9%;
  filter: drop-shadow(2px 4px 6px black) contrast(1.1);
}
#section03 #dragon {
  background-image: url('../images/sec_hero/ethnic_bg_6.webp');
  background-size: 100% auto;
  background-position-y: 20%;
}


/*角色小區塊*/
#section03 .tab-pane-con {
  width: 75%;
  display: flex;
  align-items: flex-start;
  /* gap: 20px; */
  margin: auto;
  margin-left: 13%;
  /* padding-top: 2.5%; */
  color: #fff;
  border: 1px solid #ffffff00;

}

/*角色小區塊 X 角色圖*/
#section03 .ch-img{
  position: relative;
  max-width: 900px;
  width: 65%;
  /* margin: auto; */
  /* margin-right: 0; */
}
#section03 .ch-img img {
 /* width: 120%;破圖需求*/
 width: 100%;
  height: 100%;
  border: 1px solid #ffffff00;
}









/*角色小區塊 X 角色介紹區塊*/
#section03 .ch-description {
  position: relative;
  width: 35%;
  color: #fff;
  margin: auto;
  margin-left: 0;
  /* margin-top: 10vh; */
  border: 1px solid #ffffff00;
}

/*角色小區塊 X 角色介紹區塊 X 角色名*/
.name-wrapper {
  position: relative;
  display: inline-block;
}

.name-stroke {
  font-size: 40px;
  font-weight: bold;
  color: transparent;
  -webkit-text-stroke: 3px #5e3d17; /* 描邊 */
  filter: drop-shadow(2px 2px 6px #dba43c);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.name-fill {
  font-size: 40px;
  font-weight: bold;
  background: linear-gradient(to bottom,#f7c76e, #fdf2c6 );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  z-index: 2;
}

/*角色小區塊 X 角色介紹區塊 X 角色職業技能*/
#section03 .profession{
  position: relative;
  z-index: 999;
  background: linear-gradient(to right, #1d1c1b94 20%, #1d1c1b00 100%);
  width: 90%;
  text-align: left;
  padding:5px 5px 5px 2rem;
  margin: auto;
  margin-right: 0;
  margin-bottom: .5rem;
  display: flex;
}

#section03 .profession::before{
  content: "";
  position: absolute;
  top: -5px;
  left: -1.3rem;
  /* background: url(../images/sec_hero/shield_1.png) no-repeat; */
  background-size: contain;
  width: 50px;
  height: 50px;
}

#section03 #human .profession::before{
  background: url(../images/sec_hero/shield_1.png) no-repeat;
  background-size: contain;
}
#section03 #dryad .profession::before{
  background: url(../images/sec_hero/shield_2.png) no-repeat;
  background-size: contain;
}
#section03 #nham .profession::before{
  background: url(../images/sec_hero/shield_3.png) no-repeat;
  background-size: contain;
}
#section03 #darkelf .profession::before{
  background: url(../images/sec_hero/shield_4.png) no-repeat;
  background-size: contain;
}
#section03 #beastmen .profession::before{
  background: url(../images/sec_hero/shield_5.png) no-repeat;
  background-size: contain;
}
#section03 #dragon .profession::before{
  background: url(../images/sec_hero/shield_6.png) no-repeat;
  background-size: contain;
}


#section03 .profession h4{
  display: inline-block;
  margin-bottom: 0;
  color: #e2c291;
}

#section03 .profession span{
  background: linear-gradient(to bottom, #dbc08e, #bda26d);
  border-radius: 10px 5px 10px 5px;;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.5),
              inset 0 -1px 2px rgba(0, 0, 0, 0.25);
  width: 200px;
  text-align: center;
  font-weight: bold;
  letter-spacing: 1px;
  line-height: 1.5;
  padding: 1px .5rem;
  margin-left: 1.5rem;
  margin-bottom: 0;
  position: relative;
  /* display: inline-block; */
}

/* PC版用 X 角色小區塊 X 角色介紹區塊 X 角色敘述*/
#section03 .directions{
  position: relative;
  z-index: 99;
  background: url(../images/sec_hero/frame_pattern.webp) ;
  background-size: cover;
  border: 3.8px solid #5e3d17;
  box-shadow: 0 0 10px 10px #e1a843;
  clip-path: polygon(3% 0%, 97% 0%, 100% 3%, 100% 97%, 97% 100%, 3% 100%, 0% 97%, 0% 3%);
  width: 75%;
  /* height: 500px; */
  margin: auto;
  padding: 10px 7px;
  margin-top: 1rem;
  margin-bottom: .5rem;
  color: #180202;
}
#section03 .char-desc::before{
  content: "";
  position: absolute;
  top: 12.8%;
  left: 45%;
  z-index: 999;
  width: 36px;
  height: 36px;
  background: url(../images/sec_hero/form_decorate.png) no-repeat;
  background-size: 100% auto;
}




/*角色小區塊 X 角色介紹區塊 X 角色敘述 X 文字*/
#section03 .directions .txt{
  position: relative;
  text-align: justify;
  height: 250px;
  padding: 5px 15px 10px 15px;
  margin-top: 1rem;
  margin-bottom: .5rem;
  overflow: scroll;
  overflow-x: hidden;/* 隱藏水平滾動條 */
}

#section03 .directions .txt::-webkit-scrollbar {
  display: block !important;
  width: 3px;
}
#section03 .directions .txt::-webkit-scrollbar-track{
  background-color: #f6dea5;
  border-radius: 10px;
  margin: 10px 5px;
}
#section03 .directions .txt::-webkit-scrollbar-thumb{
  border-radius: 10px;
  background-color: rgb(201, 178, 116);
}
/* 隱藏水平 scrollbar，只保留垂直 */
::-webkit-scrollbar:horizontal {
  display: none !important;
}





/*角色小區塊 X 角色介紹區塊 X 角色敘述 X 影片*/

#section03 .cf {
  position: relative;
  width: 90%;
  /* height: 155px; */
  aspect-ratio:360/220;
  margin: 0 auto;
  display: inline-block;
  border:2px solid #5b4a3591;
  overflow: hidden;
  /* pointer-events:none; */
  z-index: 99;
}

#section03 .cf .cf_bg{
  position: relative;
  width: 100%;
  z-index: 99;
  opacity: .8;
}
#section03 .cf a {
  position: absolute;
  top: 33%;
  left: 40%;
  width: 60px;
  height: 60px;
  z-index: 9998;
  animation: btnvideo2 1s infinite alternate;
}
@keyframes btnvideo2 {
  from {
    filter: brightness(100%) drop-shadow(0px 0px 8px #807a6c);
    transform: scale(1);
  }
  to {
    filter: brightness(130%) drop-shadow(0px 0px 8px #fff);
    transform: scale(1.1);
  }
}




#section03 .cf a:hover {
  filter: brightness(1.2);
}

/* #section03 .lity-close{
  top: 13%;
  right: 10%;
}
 */

/* aspect-ratio:330/185; */
#section03 .cf_video,
#section03 .cf_video_wrapper{
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.cf_video_wrapper {
  position: relative;
  width: 100%;
  height: 0;
  overflow: hidden;
}

/* .cf_video_wrapper iframe.cf_video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
} */


/* #section03 .cf .music_img{
  width: 100%;
} */



 /* MB版用 X 隱藏 X 英雄簡歷 */
  #section03 .directions_more{
    position: relative;
    z-index: 999;
    /* top: -5rem; */
    /* background: url(../images/sec_hero/btn_resume.webp) no-repeat; 
    background-size: 100% auto;
    background-position-y: 62%;*/
    width: 100%;
    height: 200px;
    padding: 20px 15px;
    margin: auto;
    border: 1px solid #ffffff00;
    display: none;
    flex-direction: column;
    justify-content: center;
    animation: btn_light 2.5s linear 1s infinite;
  }
  /* #section03 .directions_more::before{
    content: "";
    animation: btn_light 2.5s linear 1s infinite;
  } */
  #section03 .directions_more a{
    text-decoration: none;
    color: #fff;
    font-size: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  

    @keyframes btn_light{
      0%{
        filter: brightness(1.2);
      }
      25%{
        filter: brightness(1);
      }
      50%{
        filter: brightness(1.2);
      }

      75%{
        filter: brightness(1);
      }
      
      100%{
        filter: brightness(1.2);
      }

    }









#section03 .tab-pane:not(.active) .tab-pane-con,
#section03 .tab-pane:not(.active) .character-swiper-wrap {
  display: none !important;
}

#section03 .tab-pane.active.show {
  position: relative;
}



/*角色小區塊 X 同族切換角色*/
.character-swiper-wrap {
  position: relative;
  z-index: 999;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0px auto;
  /* padding: 0 36px;*/ 
  max-width: 420px;
  overflow: visible !important;
}

.characterSwiper {
  width: 100%;
  border-radius: 100px;
  padding:3px 3px;
  overflow: hidden;
}
.characterSwiper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  background:url(../images/sec_hero/swiper_bg.webp)no-repeat ;
  background-size: cover;
  width:500px;
  height:500px;
  mix-blend-mode: soft-light;
  opacity: .2;
}



#human .characterSwiper{
  background: #7bc6e4;
}

#dryad .characterSwiper{
  background: #87d38d;
}

#nham .characterSwiper{
  background: #efcf89;
}

#beastmen .characterSwiper{
  background: #f1ac90;
}

#darkelf .characterSwiper{
  background: #5f60c7;
}

#dragon .characterSwiper{
  background: #73e3d5;
}



.characterSwiper .swiper-wrapper {
  display: flex;
  /*justify-content: space-between;*/ /* 或 center */
  justify-content: flex-start;
}

.characterSwiper .swiper-slide {
  flex: 0 0 19%; /* 每列 4 個 */
  max-width: 20%;
  /* height: 70px; */
  margin: 7px 7px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  opacity: .8;
  transition: transform 0.3s;
}

.characterSwiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.character-swiper-wrap .swiper-button-prev,
.character-swiper-wrap .swiper-button-next {
  position: relative;
  top: 35px;
  background: #fff;
  filter:drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2));
  z-index: 10;
  flex-shrink: 0;
}

.character-swiper-wrap .swiper-button-prev {
  background: url(../images/sec_hero/arrow_l.webp) no-repeat;
  background-size: contain;
  width: 45px;
  height: 45px;
  left: 0px; /* 往左推到外面 */
}

.character-swiper-wrap .swiper-button-next {
  background: url(../images/sec_hero/arrow_r.webp) no-repeat;
  background-size: contain;
  width: 45px;
  height: 45px;
  right: 0px; /* 往右推到外面 */
}

.character-swiper-wrap .swiper-button-prev::after,
.character-swiper-wrap .swiper-button-next::after {
  font-size: 16px;
  color: #000;
}

.characterSwiper .swiper-slide.active {
  outline: 3px solid #3279bb;
  transform: scale(1.1);
  opacity: 1;
}

#human .characterSwiper .swiper-slide.active {
  outline: 3px solid #3279bb;
}
#dryad .characterSwiper .swiper-slide.active {
  outline: 3px solid #3f8946;
}
#nham .characterSwiper .swiper-slide.active {
  outline: 3px solid #efad75;
}
#darkelf .characterSwiper .swiper-slide.active {
  outline: 3px solid #9697f7;
}
#beastmen .characterSwiper .swiper-slide.active {
  outline: 3px solid #cd6340;
}
#dragon .characterSwiper .swiper-slide.active {
  outline: 3px solid #0aa793;
}


#dryad .character-swiper-wrap .swiper-button-prev,
#dryad .character-swiper-wrap .swiper-button-next,
#nham .character-swiper-wrap .swiper-button-prev,
#nham .character-swiper-wrap .swiper-button-next,
#darkelf .character-swiper-wrap .swiper-button-prev,
#darkelf .character-swiper-wrap .swiper-button-next,
#beastmen .character-swiper-wrap .swiper-button-prev,
#beastmen .character-swiper-wrap .swiper-button-next{
  opacity: 0;
  pointer-events:none;
}




.char-img,
.char-desc {
  display: none;
}
.char-img.active,
.char-desc.active {
  display: block;
}

.fade-in {
  animation: fadeIn 0.4s ease;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}





  @media (max-width:1025px) {
    #section03 .profession{
      background: linear-gradient(to right,#1d1c1b00 0%, #1d1c1b94 50%, #1d1c1b00 100%);
      display: flex;
      flex-direction: column;
      align-items: center;
      margin-right: auto;
    }

    #section03 .profession h4{
      margin-bottom: 1rem;
    }

    #section03 .profession::before{
      display: none;
    }

  }




@media (min-width:1921px) {
  #section03 .directions{
    background-size: 102% auto;
    height: 485px;
  }
  #section03 .directions .txt{
    height: 240px;
  }
}




@media (max-width:1600px) {
  #section03 .tab-pane-con{
    padding-top: 0;
  }
  #section03 .nav-pills{
    left: 10%;
  }
  #section03 li.nav-item{
    width: 70px;
    height: 65px;
  }
  #section03 .ch-img{
    max-width: 680px;
  }
  #section03 .ch-img img{
    margin-left: -5%;
    margin-top: -8%;
  }

  .name-stroke,.name-fill{
    font-size: 30px;
  }
  #section03 .profession h4{
    font-size: 1.2rem;
    margin-top: 1.5px;
  }

  #section03 .profession{
    padding: 5px 5px 5px 1.5rem;
  }
  #section03 .profession span{
    font-size: 13.5px;
    width: 170px;
    margin-left: .5rem;
  }
  #section03 .profession::before{
    width: 45px;
    height: 45px;
  }
  #section03 .directions{
    width: 87%;
  }
  #section03 .directions .txt{
    margin-top: .5rem;
    padding: 0px 10px 0px 10px;
    height: 230px;
  }
  #section03 .cf{
    /* width: 90%;
    height: 160px; */
  }
  .characterSwiper .swiper-slide{
    flex: 0 0 18%;
  }
  .character-swiper-wrap .swiper-button-prev,
  .character-swiper-wrap .swiper-button-next{
    width: 40px;
    height: 40px;
  }


  #section03 .ch-img{
    width: 70%;
    max-width: unset !important;
  }

  #section03 .ch-description{
    position: absolute;
    max-width: 376px;
    top: 10%;
    right: 10%;
  }

}


@media screen and (max-width: 1400px) {
  #section03 #human,
  #section03 #dryad,
  #section03 #nham,
  #section03 #darkelf,
  #section03 #beastmen,
  #section03 #dragon{
    background-position-Y: 0%;
    background-position-x: center;
    background-size: 120% auto;
  }
  #section03 .tab-pane-con{
    width:80%;
    padding-top: 16%;
  }



}


@media (max-width:1281px) {
  #section03 .nav-pills{
    left: 8%;
  }
  #section03 #human,
  #section03 #dryad,
  #section03 #nham,
  #section03 #darkelf,
  #section03 #beastmen,
  #section03 #dragon{
    background-position-Y: 5%;
  }
  #section03 .tab-pane-con{
    width:75%;
    padding-top: 7.3%;
  }
  #section03 .directions{
    width: 95%;
  }
  .characterSwiper .swiper-slide{
    flex: 0 0 17.5%;
  }
  .character-swiper-wrap .swiper-button-prev, .character-swiper-wrap .swiper-button-next{
    width: 45px;
    height: 45px;
  }
}



@media (max-width:1025px) {

  #section03 #human{
    background: url("../images/sec_hero/ethnic_bg_m_1.webp") no-repeat;
    background-size: 115% auto;
  }
  #section03 #dryad{
    background: url("../images/sec_hero/ethnic_bg_m_2.webp") no-repeat;
    background-size: 115% auto;
  }
  #section03 #nham {
    background: url("../images/sec_hero/ethnic_bg_m_3.webp") no-repeat;
    background-size: 115% auto;
  }
  #section03 #darkelf{
    background: url("../images/sec_hero/ethnic_bg_m_4.webp") no-repeat;
    background-size: 115% auto;
  }
  #section03 #beastmen {
    background: url("../images/sec_hero/ethnic_bg_m_5.webp") no-repeat;
    background-size: 115% auto;
  }
  #section03 #dragon{
    background: url("../images/sec_hero/ethnic_bg_m_6.webp") no-repeat;
    background-size: 115% auto;
  }


  #section03 .nav-pills{
    top: 26%;
  }
  #section03 li.nav-item{
    width: 80px;
    height: 70px;
    margin-bottom: .5rem;
  }


  #section03 li.nav-item .nav-link:hover::before, 
  #section03 li.nav-item .nav-link.active::before{
    filter: drop-shadow(0 0 15px #000) !important;
    font-size: 2rem !important;
    text-align: left;
    width: 7rem;
    padding: 1.5rem 0;
  }

  #section03 li.nav-item:nth-of-type(1) .nav-link:hover::before, 
  #section03 li.nav-item:nth-of-type(1) .nav-link.active::before,
  #section03 li.nav-item:nth-of-type(2) .nav-link:hover::before, 
  #section03 li.nav-item:nth-of-type(2) .nav-link.active::before,
  #section03 li.nav-item:nth-of-type(3) .nav-link:hover::before, 
  #section03 li.nav-item:nth-of-type(3) .nav-link.active::before,
  #section03 li.nav-item:nth-of-type(5) .nav-link:hover::before, 
  #section03 li.nav-item:nth-of-type(5) .nav-link.active::before,
  #section03 li.nav-item:nth-of-type(6) .nav-link:hover::before, 
  #section03 li.nav-item:nth-of-type(6) .nav-link.active::before{
    top: 0;
  }
  


  #section03 .tab-pane-con{
    flex-direction:column;
    width: 100%;
    padding-top: unset;
    margin-left:auto;
  }
  #section03 .ch-img{
    width: 100%;
    max-width:980px;
  }
  #section03 .ch-img img{
    width: 115%;
    margin-left: -7%;
  }


  #section03 .ch-description{
    position: absolute;
    bottom: 13%;
    left: 8%;
    top: unset;
    width: 85%;
    max-width: unset;
    /* margin-left:auto; */
  }

  .name-stroke,
  .name-fill{
    font-size: 4rem;
  }

  #section03 .profession{
    padding: 1.3rem 5px 1.3rem 5px;
    margin-bottom: 0;
  }
  #section03 .profession h4{
    font-size: 2.5rem;
  }
  #section03 .profession span{
    width: 80%;
    font-size: 1.8rem;
    margin-left: 0;
  }
  #section03 .char-desc::before{
    content: "";
    background: url(../images/sec_hero/btn_resume.webp) no-repeat; 
    background-size: 100% auto;
    background-position-y: 48%;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    animation: btn_light 2.5s linear 1s infinite;
  }


  /*隱藏 X 英雄影片介紹框*/
  #section03 .directions{
    display: none;
  }

  /*顯示 X 英雄簡歷*/
  #section03 .directions_more{
    display: flex;
  }
  .character-swiper-wrap{
    max-width: 550px;
  }
  .characterSwiper .swiper-slide{
    max-width: 25%;
    flex: 0 0 20.5%;
  }
}


@media (max-width:992px) {

  #section03 #human,
  #section03 #dryad,
  #section03 #nham,
  #section03 #darkelf,
  #section03 #beastmen,
  #section03 #dragon{
    background-size: 125% auto;
  } 
  #section03 .nav-pills{
    left: 5%;
  }

  #section03 .tab-pane-con{
    width: 85%;
    padding-bottom: 3rem;
  }
  #section03 .ch-img img{
    width: 125%;
    margin-left: -12%;
  }
  #section03 .profession{
    padding: .7rem 5px 1.3rem 5px;
  }

  #section03 .ch-description{
    width: 100%;
    left: 0%;
    bottom: 5%;
  }
  #section03 .char-desc::before{
    background-position-y:56%
  }

  .name-stroke, .name-fill{
    font-size: 45px;
  }
  #section03 .profession{
    width: 80%;
  }
  #section03 .profession h4{
    font-size: 1.8rem; 
  }
  #section03 .profession span{
    width: 350px;
    font-size: 1.5rem;
  }
  .character-swiper-wrap{
    top: -7px;
    z-index: 999;
  }
  .characterSwiper .swiper-slide{
    flex: 0 0 20.5%;
  }
}


@media (max-width:769px) {
  #section03 #human,
  #section03 #dryad,
  #section03 #nham,
  #section03 #darkelf,
  #section03 #beastmen,
  #section03 #dragon{
    background-size: 110% auto;
  }
  #section03 .directions_more{
    height: 150px;
  }

}


@media (max-width:576px) {
  #section03 #human,
  #section03 #dryad,
  #section03 #nham,
  #section03 #darkelf,
  #section03 #beastmen,
  #section03 #dragon{
    background-size: 180% auto;
    background-position: top center;
  }
  #section03 .nav-pills{
    top: 13%;
    left: 2%;
  }
  .name-stroke, .name-fill{
    font-size: 2.5rem;
  }

  #section03 li.nav-item{
    width: 50px;
    height: 55px;
    /* margin-bottom: 0.3rem; */
  }
  #section03 li.nav-item a{
    margin-bottom: .1rem;
  }

  #section03 li.nav-item:nth-of-type(1) .nav-link:hover, 
  #section03 li.nav-item:nth-of-type(1) .nav-link.active, 
  #section03 li.nav-item:nth-of-type(2) .nav-link:hover, 
  #section03 li.nav-item:nth-of-type(2) .nav-link.active, 
  #section03 li.nav-item:nth-of-type(3) .nav-link:hover, 
  #section03 li.nav-item:nth-of-type(3) .nav-link.active, 
  #section03 li.nav-item:nth-of-type(4) .nav-link:hover, 
  #section03 li.nav-item:nth-of-type(4) .nav-link.active, 
  #section03 li.nav-item:nth-of-type(5) .nav-link:hover, 
  #section03 li.nav-item:nth-of-type(5) .nav-link.active, 
  #section03 li.nav-item:nth-of-type(6) .nav-link:hover, 
  #section03 li.nav-item:nth-of-type(6) .nav-link.active{
    margin-top: 5px;
  }

  #section03 li.nav-item:nth-of-type(1) .nav-link:hover::before, 
  #section03 li.nav-item:nth-of-type(1) .nav-link.active::before,
  #section03 li.nav-item:nth-of-type(2) .nav-link:hover::before, 
  #section03 li.nav-item:nth-of-type(2) .nav-link.active::before,
  #section03 li.nav-item:nth-of-type(3) .nav-link:hover::before, 
  #section03 li.nav-item:nth-of-type(3) .nav-link.active::before,
  #section03 li.nav-item:nth-of-type(4) .nav-link:hover::before, 
  #section03 li.nav-item:nth-of-type(4) .nav-link.active::before,
  #section03 li.nav-item:nth-of-type(5) .nav-link:hover::before, 
  #section03 li.nav-item:nth-of-type(5) .nav-link.active::before,
  #section03 li.nav-item:nth-of-type(6) .nav-link:hover::before, 
  #section03 li.nav-item:nth-of-type(6) .nav-link.active::before{
    font-size: 1.3rem !important;
    padding: .6rem 0;

  }
   #section03 li.nav-item:nth-of-type(4) .nav-link:hover::before, 
  #section03 li.nav-item:nth-of-type(4) .nav-link.active::before{
    top: -2.5%;
  }




  #section03 .tab-pane-con{
    width: 100%;
  }
  #section03 .ch-img{
    margin-top: 2.5rem;
  }
  #section03 .ch-img img{
    width: 150%;
    margin-left: -29%;
    margin-top: -10%;
  }


  #section03 .ch-description{
    bottom: 7%;
  }
  #section03 .char-desc::before{
    background-position-y:38%;
  }
  #section03 .profession{
    padding: .7rem 5px .7rem 5px;
  }

    #section03 .profession h4{
      margin-bottom: .5rem;
    }
    #section03 .profession span{
    width: 300px; 
    font-size: 1.3rem;
  }



  #section03 .directions_more{
    height: 100px;
  }
  #section03 .directions_more a{
    font-size: 26px;
    padding: 15px;
  }

  .characterSwiper .swiper-slide{
    flex: 0 0 18.8%;
  }

}




@media (max-width:480px) {
  #section03 .title{
    top: .5%;
  }

  #section03 .ch-img img{
    width: 130%;
    margin-left: -12%;
  }
  #section03 #human .ch-img img,
  #section03 #dryad .ch-img img,
  #section03 #beastmen .ch-img img,
  #section03 #darkelf .ch-img img{
    margin-top: 13%;
  }
  #section03 #human .ch-img img:nth-child(2){
    margin-left: -17%;
  }

  #section03 #nham .ch-img img:nth-child(1){
    margin-left: -20%;
    margin-top: 0%;
  }
  #section03 #nham .ch-img img:nth-child(4),
  #section03 #darkelf .ch-img img:nth-child(1),
  #section03 #darkelf .ch-img img:nth-child(2){
    margin-top: 0%;
  }
  
  #section03 .ch-description{
    bottom: 0%;
  }

}





@media (max-width:376px) {

  #section03 #human,
  #section03 #dryad,
  #section03 #nham,
  #section03 #darkelf,
  #section03 #beastmen,
  #section03 #dragon{
    background-size: 155% auto;
  }

  #section03 .nav-pills{
    top: 17%;
  }
  

  #section03 .ch-img{
    margin-top: 1.5rem;
  }


  #section03 .ch-description{
    bottom: 0%;
  }
  #section03 .char-desc::before{
    background-position-y:54%;
  }
  .name-stroke, .name-fill{
    font-size: 1.7rem; 
  }
  #section03 .profession h4{
    font-size: 1.2rem; 
  }
  #section03 .profession span{
    width: 83%;
    font-size: 1rem; 
  }
  #section03 .profession{
    padding: .5rem 5px .5rem 5px;
  }

  #section03 .directions_more{
    height: 100%;
    padding: 5px 2%;
  }
  #section03 .directions_more a{
    font-size: 1.3rem;
    
  }

  .characterSwiper .swiper-slide{
    flex: 0 0 17.5%;
  }
}