.h70 {
  height: 70px;
}
.h35 {
  height: 35px;
}
.section.s1 {
  min-height: 500px;
  background-image: url(https://cdn.greenvines.com.tw/shopline/2021-rebrand/pages/know-more-resequence-dark-spot-serum/images/s1-bg.jpg);
  background-repeat: no-repeat;
  background-position: bottom;
}
.section.s3 {
  padding-top: 25%;
  margin-top: -20%;
}
.section.s4 {
  background-color: #002d18;
}
.section.s5 {
  background-image: url(https://cdn.greenvines.com.tw/shopline/2021-rebrand/pages/know-more-resequence-dark-spot-serum/images/s4-bg.jpg);
  background-position: 50% -280px;
  background-repeat: no-repeat;
}
.video .container-l {
  max-width: 1200px;
}
@media (max-width: 768px) {
  .h70 {
    height: 35px;
  }
  .h35 {
    height: 18px;
  }
  .section.s1 {
    background-image: url(https://cdn.greenvines.com.tw/shopline/2021-rebrand/pages/know-more-resequence-dark-spot-serum/images/m_s1-bg.jpg);
    background-position: top;
  }
  .section.s1 .col-sm-6.c1 {
    min-height: 600px;
  }
  .section.s5 {
    background-image: url(https://cdn.greenvines.com.tw/shopline/2021-rebrand/pages/know-more-resequence-dark-spot-serum/images/m_s4-bg.jpg);
    background-position: bottom;
    min-height: 1500px;
    background-size: cover;
  }
  .section .d-flex {
    flex-direction: column-reverse;
  }
  .section .col-sm-6.left {
    padding-top: 30px;
  }
}

/* ============================================================
   Before-After 比較區塊樣式
   ============================================================ */

.before-after {
  padding: 60px 0;
}

.desktop-view {
  display: flex !important;
  justify-content: center;
  align-items: center;
}

.desktop-view .row {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

@media (max-width: 768px) {
  .before-after {
    padding: 0;
  }
  .desktop-view {
    display: none !important;
  }

  .image-container {
    position: relative;
  }

  .ttm-container {
    width: 100%;
  }

  .ttm-container img {
    width: 100%;
  }

  #carouselNecessary .item {
    min-height: 500px;
  }
  .mb60 {
    margin-bottom: 30px;
  }
}

@media (min-width: 768px) {
  .desktop-view {
    display: block;
  }
}

@media (min-width: 992px) {
  .row {
    margin-left: 0px !important;
    margin-right: 0px !important;
  }
}

.section.application .necessary-tabs .necessary-tabs-item {
  width: 100%;
  border-bottom: 3px solid #0a2d1b;
}

/* ============================================================
   Banner 區塊樣式
   ============================================================ */

.banner {
  padding: 0 !important;
  margin-bottom: 0 !important;
  height: 560px;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 10%;
  background-image: url(https://cdn.greenvines.com.tw/shopline/2021-rebrand/pages/trial/images/toner/s1-bg-01.jpg);
}

.fz40 {
  font-size: 40px;
  line-height: 50px;
}

.fz35 {
  font-size: 35px;
  line-height: 45px;
}

.CustomPage {
  display: none;
}

@media (max-width: 768px) {
  .banner {
    background-size: cover;
    background-position: bottom;
    background-image: url(https://cdn.greenvines.com.tw/shopline/2021-rebrand/pages/trial/images/toner/m_s1-bg-01.jpg);
    height: 600px;
  }

  .banner .content-box {
    width: 100%;
  }

  .banner .content-box h1 {
    font-size: 30px;
    line-height: 40px;
  }

  .banner .content-box .fz30 {
    font-size: 20px;
    line-height: 32px;
  }

  .banner.toner-trial p {
    padding: 0 15px;
  }

  .banner.toner-trial a {
    margin-left: 15px;
  }

  .fz40,
  .fz35 {
    font-size: 20px;
    line-height: 30px;
  }
  .section.before-after .row {
    display: grid;
  }
  .item1 {
    order: 2;
  }
  .item2 {
    order: 3;
  }
  .item3 {
    order: 1;
    padding-bottom: 30px;
  }
}
.ProductDetail-additionalInfo.row {
  display: none !important;
}

audio,
canvas,
progress,
video {
  width: 100%;
  display: inline-block;
  min-height: 600px;
  vertical-align: baseline;
}
@media (max-width: 768px) {
  audio,
  canvas,
  progress,
  video {
    min-height: 200px;
  }
  .section.s3 {
    padding-top: 40%;
    margin-top: -30%;
  }
}
/* ─── img-comparison-slider：復刻 zurb-twentytwenty 樣式 ─── */
.before-after img-comparison-slider {
  --divider-width: 3px;
  --divider-color: #ffffff;
  width: 100%;
  display: block;
  line-height: 0;
}
.before-after img-comparison-slider img {
  width: 100%;
  height: auto;
  display: block;
}

/* Custom handle：38x38 圓形 + 3px 白 border + 陰影 */
.before-after .gv-handle {
  width: 38px;
  height: 38px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  box-sizing: content-box;
  box-shadow: 0 0 12px rgba(51, 51, 51, 0.5);
  background: transparent;
  position: relative;
  cursor: ew-resize;
}
.before-after .gv-handle::before,
.before-after .gv-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  transform: translateY(-50%);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}
.before-after .gv-handle::before {
  right: 50%;
  margin-right: 5px;
  border-right: 6px solid #ffffff;
}
.before-after .gv-handle::after {
  left: 50%;
  margin-left: 5px;
  border-left: 6px solid #ffffff;
}

/* ─── Hover overlay（復刻 zurb .twentytwenty-overlay 效果） ─── */
.before-after .compare-wrapper {
  position: relative;
  overflow: hidden;
}
.before-after .compare-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.5s;
  pointer-events: none; /* 讓滑桿可以接收滑鼠事件 */
  z-index: 25;
}
.before-after .compare-wrapper:hover .compare-overlay {
  background: rgba(0, 0, 0, 0.5);
}
/* 拖動時遮罩消失 */
.before-after .compare-wrapper.is-sliding .compare-overlay {
  background: rgba(0, 0, 0, 0);
}

/* Before / After 文字標籤（hover 時顯示，拖動時隱藏） */
.before-after .compare-label {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.1em;
  line-height: 38px;
  padding: 0 20px;
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.5s;
  z-index: 26;
  pointer-events: none;
}
.before-after .compare-label--before {
  left: 10px;
}
.before-after .compare-label--after {
  right: 10px;
}
.before-after .compare-wrapper:hover .compare-label {
  opacity: 1;
}
.before-after .compare-wrapper.is-sliding .compare-label {
  opacity: 0;
}

/* 手機上一個一個直排；desktop 用 col-sm-4 保持三欄 */
.before-after .compare-item {
  margin-bottom: 20px;
}
.s7 .container-fluid {
  max-width: 1920px;
  width: 100%;
  padding: 0;
  margin: 0;
}
.s7 .col-sm-6.c1 {
  background-image: url(https://cdn.greenvines.com.tw/shopline/2021-rebrand/pages/know-more-resequence-dark-spot-serum/images/s9-bg.jpg);
  background-size: cover;
  min-height: 670px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-direction: column;
  padding: 60px;
}
.s7 .col-sm-6.c2 {
  background-image: url(https://cdn.greenvines.com.tw/shopline/2021-rebrand/pages/know-more-resequence-dark-spot-serum/images/s9-p01.jpg);
  background-size: cover;
  min-height: 670px;
}
@media (max-width: 768px) {
  .section.s6 .col-sm-6 {
    padding: 10px;
  }
  .s7 .row {
    display: flex;
    flex-direction: column-reverse;
  }
  .s7 .col-sm-6.c1 {
    min-height: 350px;
    padding: 30px;
  }
  .s7 .col-sm-6.c2 {
    background-image: url(https://cdn.greenvines.com.tw/shopline/2021-rebrand/pages/know-more-resequence-dark-spot-serum/images/m_s9_p01.jpg);
    background-repeat: no-repeat;
    min-height: 350px;
  }
  .mb80 {
    margin-bottom: 40px;
  }
}

.promo-title {
  font-size: 40px;
  line-height: 50px;
  background-color: #ee9046;
  width: fit-content;
  padding: 5px 10px;
}
