/* 當你想為某一個區塊或方塊，增加背景，請在該區塊/方塊上增加class名稱
例如：

在HTML裡：
<div class="abc">我要增加背景</div> 

在css裡：
.abc{
    background-image: url(../images/body_bg.webp);  <------圖檔位置
    background-position: center; <-----圖片在區塊/方塊裡的定位
    background-size: cover;  <-----圖片在區塊/方塊裡的大小
}

 */

/* 補充 
    學習資料
    https://ithelp.ithome.com.tw/articles/10223887
    https://ithelp.ithome.com.tw/articles/10224214
*/

/* === 全站背景 === */
body {
  background-color: #c4e5fc;
  background-position: center top;
  background-size: 2000px;
}

/* === 固定背景圖 === */
.bgFixed {
  z-index: -1;
  position: fixed;
  background: url("../images/bgsky.png") no-repeat center bottom / 2000px 100vh;
  height: 100vh;
  width: 100%;
}

@media screen and (max-width: 767px) {
  .bgFixed {
    background: url("../images/bgsky-mb.png") no-repeat center top / cover;
  }
}

/* === 主區塊背景 === */
main {
  background-image: url("../images/bgmain.png");
  background-repeat: repeat-y;
  background-position: center top;
  background-size: 2200px;
  overflow: hidden;
  position: relative;
}

@media (max-width: 767px) {
  main {
    background-image: url("../images/bgmain-mb.png");
    background-repeat: repeat-y;
    background-position: center top;
    background-size: 102vw;
  }
}

/* === 首圖區 === */
#kvTopBN2 {
  position: relative;
  background: url("../images/kvbg.png") no-repeat center top;
}

/* === KV 導覽點 === */
#kvTopBN2 .swiper-pagination {
  bottom: 25px;
}
@media (max-width: 991px) {
  #kvTopBN2 .swiper-pagination {
    bottom: 4%;
  }
}

/* === Swiper 分頁點樣式 === */
.swiper-pagination-bullet {
  background: #6ff8ffa9;
}
.swiper-pagination-bullet.swiper-pagination-bullet-active {
  background: #ffdd00;
}

/* === 發光文字效果 === */
.shineWord {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  text-align: center;
  background: transparent;
  z-index: 1;
  pointer-events: none;
  filter: brightness(1.5);
  mask-size: 500% 400%;
  mask-image: linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 1) 50%,
    rgba(255, 255, 255, 0) 60%
  );
  transition: mask-position 3s;
  transform: translate3d(0, 0, 0);
  animation: move 2s linear infinite;
}

@keyframes move {
  from {
    mask-position: 150% 0px;
  }
  to {
    mask-position: 0% 0px;
  }
}

/* === 按鈕區塊 === */
.btnset a {
  color: rgb(0, 166, 255);
  border: 3px solid #027cbe;
  background: #fff;
  box-shadow: 0 5px #00659b;
  line-height: 1.2;
}
.btnset a:hover {
  color: #ffff00;
  border: 3px solid #027cbe;
  background: #008dda;
  box-shadow: 0 3px #00659b;
}

@media (max-width: 991px) {
  .btnset {
    font-size: 14px;
  }
}
@media (max-width: 425px) {
  .btnset {
    font-size: 12px;
  }
}

/* === 活動辦法區塊 === */
section#method {
  color: #fff;
}
section#method .container {
  background: rgba(0, 54, 70, 0.45);
  padding: 10px 0;
  border-radius: 16px;
}
section#method a {
  color: #ffff00;
}
section#method a:hover {
  background: #ffff00;
  color: #013b4a;
  padding: 0 5px;
  border-radius: 24px;
}

/* === 頁尾區 === */
footer {
  position: relative;
  z-index: 999;
}

/* === 區塊樣式 === */
.nocarslideinnBox01 {
  background: #084b7d;
  padding: 10px;
}

.productSetprice .priceBox {
  flex-direction: row !important;
}

.logooutbox .logoinn {
  flex-basis: 11%;
}
@media screen and (max-width: 640px) {
  .logooutbox .logoinn {
    flex-basis: 24%;
  }
}

.squarepppinfoinn-box.pppinfobox {
  background: #075f9e;
  color: #fff;
  text-decoration: none;
}

/* === 活動表格 === */
@media screen and (max-width: 767px) {
  .actablebox {
    font-size: 14px;
  }
  .actablebox th.table-title {
    font-size: 1.2rem;
  }
}

/* === 特效：硬幣飛 === */
.flyCoins {
  z-index: 9;
  position: absolute;
  pointer-events: none;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url(../images/coins.png) repeat-y center top / 1450px;
}
@media (max-width: 767px) {
  .flyCoins {
    background: unset;
  }
}
.flyLeft,
.flyRight {
  z-index: 9;
  position: fixed;
  pointer-events: none;
  width: 25vw;
}
.flyLeft {
  top: 58vh;
  left: -10vw;
}
.flyRight {
  top: 20vh;
  right: -10vw;
}

/* === 滑鼠視差區塊 === */
.mouseParallax {
  position: fixed;
  width: 100vw;
  height: 100vh;
  bottom: -50vh;
  left: 0;
  background: #7f7f7f29;
}

/* === 雲朵圖層 === */
.cloud {
  position: absolute;
  top: 0;
  bottom: 0;
  width: auto;
  height: auto;
  z-index: 999;
  opacity: 0.8;
}

/* === 灑落金箔 === */
#gold {
  position: fixed;
  pointer-events: none;
  overflow: hidden;
  z-index: 8887;
}

/* for this page */
.title-overlay {
  margin-top: -60px;
}

.sectitle {
  position: relative;
  z-index: 99;
}

@media (max-width: 767px) {
  .title-overlay {
    margin-top: 0px;
  }
}

#kvTopBN2 .swiper-pagination {
  bottom: 0px;
}

#kvTopBN2 .kvouter {
  position: relative;
}

#kvTopBN2 .kvtt {
  position: absolute;
  z-index: 99;
  pointer-events: none;
  animation: kvttShine 0.8s ease-in-out -1s infinite alternate both;
}

#kvTopBN2 .kvpromotion {
  position: absolute;
  z-index: 99;
  pointer-events: none;
  animation: kvttMove 1s ease-in -1s infinite alternate both;
}

#kvTopBN2 .kvttshine {
  position: absolute;
  z-index: 99;
  pointer-events: none;
  mix-blend-mode: screen;
}

#kvTopBN2 .kvttshine01 {
  animation: kvttShinebright 1.6s ease-in-out -0.8s infinite alternate both;
}

#kvTopBN2 .kvttshine02 {
  animation: kvttShinebright 1.6s ease-in-out -2.4s infinite alternate both;
}

@keyframes kvttShine {
  0% {
    filter: brightness(1.05);
  }

  100% {
    filter: brightness(1.18);
  }
}

@keyframes kvttMove {
  0% {
    transform: translateY(6px);
  }

  100% {
    transform: translateY(-6px);
  }
}

@keyframes kvttShinebright {
  0% {
    filter: brightness(1) blur(1);
    opacity: 1;
  }

  100% {
    filter: brightness(1.2) blur(5);
    opacity: 0;
  }
}

@media (max-width: 1199px) {
  #kvTopBN2 {
    background-size: cover;
  }
}

@media (max-width: 991px) {
  #kvTopBN2 .swiper-pagination {
    bottom: -5px;
  }
}

@media (max-width: 767px) {
  #kvTopBN2 {
    position: relative;
    background: url("../images/kvbg-mb.png") no-repeat center bottom;
    background-size: 100vw auto;
  }

  #kvTopBN2 .kvtt {
    position: relative;
    z-index: 99;
    top: unset;
    left: unset;
    transform: unset;
  }

  #kvTopBN2 .kvpromotion {
    position: absolute;
    z-index: 99;
    pointer-events: none;
    top: 0;
  }

  #kvTopBN2 .kvttshine {
    mix-blend-mode: screen;
    top: 0;
  }

  #kvTopBN2 .kvttshine01 {
    animation: kvttShinebright 1.6s ease-in-out -0.8s infinite alternate both;
  }

  #kvTopBN2 .kvttshine02 {
    animation: kvttShinebright 1.6s ease-in-out -2.4s infinite alternate both;
  }
}

.curtains .curtain {
  position: fixed;
  z-index: 7;
  pointer-events: none;
  width: 35vw;
  max-width: 35vw;
  top: 0;
  mix-blend-mode: screen;
}

.curtains .curtainleft {
  left: -22vw;
  animation: curtainMove 6s steps(100) -1s infinite alternate both;
}

.curtains .curtainright {
  right: -22vw;
  animation: curtainMove 6s steps(100) -1s infinite alternate-reverse both;
}

@keyframes curtainMove {
  0% {
    opacity: 0.8;
    transform: translate(0, 0);
    filter: blur(5);
  }

  50% {
    opacity: 0.45;
    transform-origin: right top;
    transform: translate(5px, 10px) rotate(2deg);
    filter: blur(50);
  }

  100% {
    opacity: 0.8;
    transform: translate(10px, 20px);
  }
}

@media (max-width: 1199px) {
  .curtains .curtain {
    display: none;
  }
}

/* 洗護髮專區 */
.bghair {
  background: url("../images/bghair.png") no-repeat center center / 100% 100%;
}

@media (max-width: 767px) {
  .bghair {
    background: url("../images/bghair-mb.png") no-repeat center center / 100%
      100%;
  }
}

.slideblue {
  border: 6px #7fcaff solid;
  border-radius: 20px;
  margin-top: 5px;
}

@media (max-width: 767px) {
  .slideblue {
    border: 3px #7fcaff solid;
    border-radius: 16px;
    margin-top: 5px;
  }
}

/* 洗衣真輕鬆 */
.bglaundry {
  background: url("../images/bglaundry.png") no-repeat center center / 100% 100%;
  border-radius: 20px;
  border: 6px #7fcaff solid;
}

.title-overlay2 {
  margin-top: -30px;
}

@media (max-width: 767px) {
  .bglaundry {
    background-image: unset;
    background: linear-gradient(
      to bottom,
      #f4fbff 0%,
      #86d2fe 50%,
      #55affc 100%
    );
    border-radius: 16px;
    border: 3px #7fcaff solid;
  }

  .title-overlay2 {
    margin-top: -15px;
  }
}

/* 紙有為你 */
.bgpaper {
  background: url("../images/bgpaper.png") no-repeat center center / 100% 100%;
  margin-top: -40px;
}

/* 個人清潔 & 家用清潔 */
.sectionSlides .title {
  position: relative;
  z-index: 99;
}

.sectionSlides .bgpd {
  background: url("../images/bgpd01.png") no-repeat center center / 100% 100%;
  margin-top: -50px;
  border-radius: 20px;
  border: 6px #ffffff solid;
}

@media (max-width: 767px) {
  .sectionSlides .bgpd {
    border-radius: 16px;
    border: 3px #ffffff solid;
  }
}

.sectionSlides .bgpd.bgpd02 {
  background-image: url("../images/bgpd02.png");
}
