/* ================================================================
   SEC X  download / 遊戲程式下載
/* ================================================================ */

#download_body{   
  padding-top: 9rem;
  background: url("../img/download/body_bg.png") no-repeat top center;
  background-size: cover; 
}

/* #download{
  padding-top: 9rem;
  background: url("../img/download/body_bg.png") no-repeat top center;
  background-size: cover; 
} */



/***************** 內頁 *****************/


.download-hero {
  position: relative;
  /* padding-top: 5rem; */
  padding-bottom: 5rem;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  text-align: center;
}

.hero-inner::before{
  content: "";
  position: absolute;
  top: -5rem;
  left: -50%;
  transform: translateX(50%);
  /* background: url(../img/download/sec1_slogan_bg.png)no-repeat top center; */
  background-size: 100% auto;
  aspect-ratio: 1395/700;
  width: 100%;
  z-index: 1;
}



/* .page-title {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.1;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #7a84a1;
  text-shadow:
    0 3px 0 #fff,
    0 0 12px rgba(255,255,255,.95),
    2px 4px 8px rgba(82,100,140,.28);
} */

.page-title {
  position: relative;
  z-index: 2;
  margin: 0 auto;
  width: 500px;
}




.platform-font{
  /* font-family:"新細明體",'Times New Roman', Times, serif; */
  font-size: 18px;
  font-weight: 500;
  color: #3a59aa;
}
.title-line {
  position: relative;
  z-index: 2;
  width: min(720px, 90%);
  margin: 0px auto 30px;
}

.platform-tabs {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-bottom: 4rem;
}

.platform-btn {
  display: block;
  width: 250px;
  transition: transform .2s ease, filter .2s ease;
}

.platform-btn img {
  display: block;
  width: 100%;
}

.platform-btn:hover,
.platform-btn:active {
  transform: translateY(-3px);
  filter: brightness(1.08);
}

.ch-left,
.ch-right {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}

.ch-left {
  top: -1rem;
  left: calc(50% - 750px);
  width: 480px;
}

.ch-right {
  top: -1rem;
  right: calc(50% - 1000px);
  width: 650px;
}


/*----------------------------------------*/

.download-card {
  position: relative;
  width: min(850px, 100%);
  min-height: 320px;
  margin: 0 auto;
  margin-bottom: 5rem;
  /* padding: 12px 3rem 40px; */
  /* background: url("../img/download/sec2_frame.png") center / 100% 100% no-repeat; */
  box-sizing: border-box;
}
/* .download-card::before{
  content: "";
  background: url(../img/download/sec1_ch3.png)no-repeat;
  background-size: 100% auto;
  position: absolute;
  bottom: -20px;
  right: -90px;
  aspect-ratio: 497/498;
  width: 150px;
} */
.download-card .card-ch-r{
  position: absolute;
  bottom: -20px;
  right: -108px;
  aspect-ratio: 497/498;
  width: 150px;
} 
.download-card .card-ch-l{
  position: absolute;
  bottom: -20px;
  left: -138px;
  aspect-ratio: 374/245;
  width: 250px;
} 




.card-title {
  position: absolute;
  top: -35px;
  left: 50%;
  width: 400px;
  max-width: 82%;
  transform: translateX(-50%);
}

.card-body {
  background: url("../img/download/sec2_frame_m.png") center / 100% 100% no-repeat;
  padding: 1rem 3rem;
  color: #6f7382;
  text-align: left;
  min-height: 200px;
}

.card-body h2 {
  margin: 0 0 32px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: #616572;
}

.info-list {
  margin: 0;
}

.info-list > div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px dashed #c6c9d3;
}

.info-list > div:first-child {
  border-top: 0;
}

.info-list dt {
  font-weight: 700;
  color: #616572;
}

.info-list dd {
  margin: 0;
  line-height: 1.8;
  font-size: 15px;
}

.download-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 12px;
}

.dl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 10px;
  width: 185px;
  height: 60px;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  transition: transform .2s ease, filter .2s ease;
}

/* .dl-btn::before {
  content: "";
  width: 22px;
  height: 22px;
  margin-right: 6px;
  background: url("../img/download/sec2_icon_dw.png") center / contain no-repeat;
} */
.dl-btn img {
  width: 22px;
  height: 22px;
  /* margin-right: 6px; */
} 

.dl-btn.blue {
  background-image: url("../img/download/sec2_btn_b.png");
}
.dl-btn.gold {
  background-image: url("../img/download/sec2_btn_y.png");
}

/* .dl-btn.blue::before, */
.dl-btn img,
.dl-btn.blue span,
.dl-btn.gold span{
  filter: drop-shadow(0px 0px 3px #22242f);
}


.dl-btn:hover {
  transform: translateY(-2px);
  filter: brightness(0.9);
  color: #fff;
}
.dl-btn:hover img,
.dl-btn.blue:hover span,
.dl-btn.gold:hover span{
  filter: brightness(1.2) drop-shadow(0px 0px 3px #22242f);
}

.update-title {
  display: inline-block;
  width: 430px;
  max-width: 82%;
  margin-top: 78px;
  transition: transform .2s ease, filter .2s ease;
}

.update-title img {
  display: block;
  width: 100%;
}

.update-title:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
}





@media (max-width: 1441px) {
  .ch-left{
    top: -3rem;
    /* left: calc(50% - 680px); */
    width: 430px;
  }
  .ch-right{
    top: -8rem;
    right: calc(50% - 820px);
    width: 550px;
  }
  .title-line{
    width: min(520px, 90%);
  }
}


@media (max-width: 1025px) {
  .ch-left{
    left: calc(50% - 600px);
  }
  .ch-right{
    top: -9rem;
  }
}






@media (max-width: 900px) {
  .download-hero {
    padding-top: 140px;
    padding-left: 3rem;
    padding-right: 3rem;
  }

  .ch-left {
    width: 390px;
    left: 50px;
    top: -8rem;
    opacity: 1;
  }

  .ch-right {
    width: 450px;
    right: -3px;
    top:-9.5rem;
    opacity: 1;
  }

  .platform-tabs {
    /* gap: 12px; */
    margin-bottom: 7rem;
  }

  .platform-btn {
    width: 44%;
  }

  .download-card {
    padding: 15px 34px 54px;
    margin-bottom: 3rem;
  }
  .card-body{
    padding: 1.5rem 3rem;
  }
  .info-list > div {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .download-links {
    justify-content: center;
  }

  .download-card .card-ch-r{
    bottom: 20px;
    right: -60px;
  }
  .download-card .card-ch-l{
    bottom: 5px;
    left: -90px;
  }
}




@media (max-width: 769px) {

}


@media (max-width: 580px) {
  .ch-left{
    display: none;
  }
  .ch-right{
    right: -45px;
  }
  .page-title{
    filter: drop-shadow(0 0 5px #fff);
  }
  .hero-inner::before{
    top:0;
  }
  .platform-tabs{
    margin-bottom: 5rem;
  }
  .download-hero{
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .download-card{
    padding: 0;
    margin-bottom: 5rem;
  }
  .card-body{
    padding: 1.5rem 2rem;
  }
  .card-body h2{
    margin: 0 0 15px;
  }
  .download-card .card-ch-r{
    width: 120px;
    bottom: -20px;
    right: -65px;
  }
  .download-card .card-ch-l{
    width: 200px;
    bottom: -50px;
    left: -60px;
  }

}