html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-size: 16px;
}

h1,
h2,
h3 {
  font-size: 0;
  text-indent: -9999px;
  text-align: center;
}

p {
  font-size: 1em;
}

.w900 {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.con {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  /* 老式瀏覽器 */
  clip-path: inset(50%);
  /* 現代瀏覽器 */
  white-space: nowrap;
  border: 0;
}

img {
  max-width: 100%;
  height: auto;
}

/*產品總攬頁*/
.product_kv2024 {
  position: relative;
  background: url(../images/img/product_kvbg.jpg) no-repeat center top;
  width: 100%;
  height: 380px;
  z-index: 5;
  overflow: hidden;
}

.p_t {
  background: url(../images/img/product_kv_txt.png) no-repeat center top;
  background-size: contain;
  width: 451px;
  height: 121px;
  top: 45px;
  left: calc(50% - 380px);
}

.product_kv2023 > div,
.product_kv2024 > div {
  position: absolute;
}

.product_tab a {
  display: inline-block;
  border: 1px solid #6f6f6f;
  background: #fff;
  font-size: 21px;
  color: #6f6f6f;
  margin: 10px 5px;
  padding: 5px 0;
  border-radius: 10px;
  text-align: center;
  font-weight: bold;
  width: 115px;
}

.product_tab a.hide {
  display: none;
}

.product_tab a.long {
  width: calc(20.5% - 40px);
  padding: 5px 0;
}

.product_tab a.long.on,
.product_tab a.long:hover {
  color: #fff;
  background: #219170;
  border: 1px solid #219170;
}

.product_tab a.on,
.product_tab a:hover {
  color: #fff;
  background: #219170;
  border: 1px solid #219170;
}

/*優蛋白*/
.p02d {
  color: #a6853d;
}

.p02d .pro_out {
  border: 1px solid #a6853d;
  background: linear-gradient(to bottom, transparent 74.9%, #a6853d 75%);
}

.p02d .pro_pic {
  background: url(../images/img/product_m12.png) no-repeat left;
  background-size: contain;
}

.p02d .pro_txt span {
  display: inline-block;
  background: url(../images/img/icon_new2.png) no-repeat left top;
  width: 99px;
  height: 55px;
  padding: 0 0 10px 0;
}

/*代謝之鑰*/
.p02h {
  color: #1b613c;
}

.p02h .pro_out {
  border: 1px solid #4b9639;
  background: linear-gradient(to bottom, transparent 74.9%, #4b9639 75%);
}

.p02h .pro_pic {
  background: url(../images/img/product_m13.png) no-repeat left;
  background-size: contain;
}

.p02h .pro_txt span {
  display: inline-block;
  background: url(../images/img/icon_new3.png) no-repeat left top;
  width: 99px;
  height: 55px;
  padding: 0 0 10px 0;
}

.p02h .pro_txt {
  padding-top: 30px;
}

/*美力蛋白*/
.p02i {
  color: #381c80;
}

.p02i .pro_out {
  border: 1px solid #e9619b;
  position: relative;
}

.p02i .pro_out::after {
  content: '';
  z-index: 1;
  width: 100%;
  height: 25%;
  position: absolute;
  left: 0;
  bottom: 0;
  display: block;
  background: #e9619b;
  background: linear-gradient(90deg, #e9619b 0%, #fa7fb4 100%);
}

.p02i .pro_pic {
  background: url(../images/img/product_m14new.png) no-repeat left;
  background-size: contain;
  z-index: 2;
  position: relative;
}

.p02i .pro_txt span {
  display: inline-block;
  background: url(../images/img/icon_new_pink.png) no-repeat left top;
  width: 99px;
  height: 55px;
  padding: 0 0 10px 0;
  z-index: 2;
  position: relative;
}

.p02i .pro_txt {
  padding-top: 30px;
}

/*產品內頁共用*/
.product-content {
  margin: 0 auto;
  text-align: center;
  width: 100%;
  max-width: 1085px;
}

.product-content picture img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}


.video {
  position: relative;
  display: block;
  width: 100%;
}

.newmv {
  position: absolute;
  top: 15%;
  /* 根據圖片高度，影片出現在上半部 */
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  aspect-ratio: 16 / 9;
  border-radius: 15px;
  overflow: hidden;
  z-index: 10;

}

.newmv iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 20px;
}

.bottom2 {
  position: fixed;
  bottom: 240px;
  animation: btn3 4s ease infinite;
}

/* @keyframes btn2{
  0%{filter: brightness(1);}
  50%{filter: brightness(1.2); }
  100%{filter: brightness(1);}
} */


@keyframes btn3 {
  0% {
    filter: brightness(1);
    transform: translateY(0px);
  }

  10% {
    transform: translateY(-10px);
  }

  15% {
    transform: translateY(0px);
  }

  20% {
    transform: translateY(-10px);
  }

  25% {
    transform: translateY(0px);
    filter: brightness(1.1);
  }

  30% {
    ilter: brightness(1);
  }

  100% {
    filter: brightness(1);
  }
}

/*右邊常駐按鈕*/
.newaction {
  overflow: hidden;
}

.newaction a::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 175px;
  background: rgb(255, 255, 255, 0.6);
  filter: blur(2);
  mix-blend-mode: overlay;
  animation: btnlight 1.5s ease infinite;
}

.bottom2 a {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 20px;
}

.bottom2 a::before {
  content: "";
  position: absolute;
  width: 5px;
  height: 45px;
  background: rgb(255, 255, 255, 0.8);
  box-shadow: 0 0 20px 10px rgba(255, 255, 255, 0.6);
  animation: btnlight 2s ease infinite;
}

@keyframes btnlight {
  0% {
    transform: skewX(30deg) translateX(-100px);
  }

  100% {
    transform: skewX(30deg) translateX(200px);
  }
}

.bottom2 a::after {
  content: "";
  background: url(../images/img/btngo.png)no-repeat center;
  background-size: contain;
  position: absolute;
  width: 100%;
  max-width: 93px;
  height: 21px;
  animation: sacle0 1s ease infinite;
  bottom: 18px;
  left: 15%;

}

@keyframes sacle0 {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}


@media (max-width: 768px) {
  .product12_box picture img {
    width: 100% !important;
    height: auto !important;
  }

  .newmv {
    width: 85%;
    top: 13%;
  }

}

@media (max-width: 1175px) {
  .p_w {
    top: 0px;
    width: 300px;
    left: calc(50% - 500px);
  }
}

@media (max-width: 991px) {

  .product_kv2023,
  .product_kv2024 {
    margin-top: 75px;
  }

  .p12top {
    height: 75px;
  }

  .product-content {
    background: #fabec9;
    background: linear-gradient(90deg, rgba(250, 190, 201, 1) 0%, rgba(255, 201, 211, 1) 50%, rgba(244, 172, 188, 1) 100%);
    width: 100%;
    max-width: 640px;
  }
  
}

@media (max-width: 940px) {
  .product_tab a,
  .product_tab a.long {
    padding: 5px 0 !important;
  }
}

@media (max-width: 837px) {
  .product_tab a,
  .product_tab a.long {
    font-size: 18px;
    margin: 10px 0;
    width: fit-content;
    padding: 5px 10px !important;
    min-width: 90px;
  }

}

@media (max-width: 790px) {
  .product_kv2023,
  .product_kv2024 {
    height: 440px;
  }

  .product_tab a,
  .product_tab a.long {
    font-size: 17px !important;
  }
}

@media (max-width: 660px) {
  .product_tab a,
  .product_tab a.long {
    font-size: 16px;
  }
}


@media (max-width: 576px) {

  .product_kv2023,
  .product_kv2024 {
    background-position-x: 0;
  }
}

@media (max-width: 500px) {
  .bottom2 {
    position: fixed;
    bottom: 90px;
  }
}

@media (max-width: 450px) {
  .newmv iframe {
    height: 180px;
  }
}

@media (max-width: 430px) {
  .product_tab a,
  .product_tab a.long {
    padding: 5px 0 !important;
  }
}

@media (max-width: 400px) {
  .product_tab a,
  .product_tab a.long {
    font-size: 15px;
  }
}