<template>
  <div>
    <!-- banner区域 start -->
    <div class="swiper-container banner" id="banner">
      <div class="swiper-wrapper">
        <div class="swiper-slide">
          <img src="/img/mesobiolift-banner.jpg" alt="" />
        </div>
      </div>
      <!-- <div class="swiper-pagination"></div> -->
    </div>
    <!-- banner区域 end -->

    <div class="main">
      <div class="container about">
        <div class="section-title">
          <img src="/img/mesobiolift-title-equipment.png" alt="品牌设备" />
          <h3>品牌设备</h3>
        </div>
        <div class="content clearfix">
          <div class="tags only-mobile">
            <img src="/img/mesobiolift-about-tag-01.png" alt="" />
            <img src="/img/mesobiolift-about-tag-02.png" alt="" />
            <img src="/img/mesobiolift-about-tag-03.png" alt="" />
          </div>
          <div class="cover fl">
            <img src="/img/mesobiolift-about-cover.png" alt="" />
          </div>
          <div class="info fr">
            <div class="name">Mesobiolift RF</div>
            <div class="subname">全身紧致抗衰系统</div>
            <div class="line"></div>
            <div class="description">
              全新生物修复技术，射频RF与直流电DC完美融合，根据皮肤年龄和衰老程度，制定个性化抗衰方案，激活细胞活力，重建皮肤平衡，对抗皮肤衰老
            </div>
            <div class="tags only-pc">
              <img src="/img/mesobiolift-about-tag-01.png" alt="" />
              <img src="/img/mesobiolift-about-tag-02.png" alt="" />
              <img src="/img/mesobiolift-about-tag-03.png" alt="" />
            </div>
          </div>
        </div>
      </div>
      <div class="container technology">
        <div class="section-title">
          <img src="/img/mesobiolift-title-technologies.png" alt="两大技术" />
          <h3>两大技术</h3>
        </div>
        <div class="content">
          <div class="section">
            <div class="cover">
              <img src="/img/mesobiolift-technologies-01.png" alt="" />
            </div>
            <div class="info">
              <div class="title">射频RF技术</div>
              <div class="subtitle">Radio Frequency(RF)</div>
              <div class="description">
                1-3mHz射频，促使皮肤温度升高，产生热休克蛋白，促使胶原蛋白和弹性蛋白生成，诱导皮肤成纤维母细胞增殖，改善组织动脉系统，激活循环系统、改善水肿，为皮肤提供额外的氧气和营养物质
              </div>
            </div>
          </div>
          <div class="section">
            <div class="info">
              <div class="title">直流电DC技术</div>
              <div class="subtitle">Direct Current(DC)</div>
              <div class="description">
                促使组织内部温度可控性升高（43℃），将美容产品中活性成分推入皮肤最深层，刺激循环、促进活性成分吸收，同时引起血管收缩、镇定舒缓
              </div>
            </div>
            <div class="cover">
              <img src="/img/mesobiolift-technologies-02.png" alt="" />
            </div>
          </div>
        </div>
      </div>
      <div class="container care">
        <div class="section-title">
          <img src="/img/mesobiolift-title-care.png" alt="关于护理" />
          <h3>关于护理</h3>
        </div>
        <div class="content clearfix">
          <div class="section">
            <div class="info">
              <div class="title big">面部护理</div>
              <div class="subtitle">Facial Treatment</div>
            </div>
          </div>
          <div class="section">
            <div class="cover">
              <img src="/img/mesobiolift-care-01.png" alt="" />
            </div>
            <div class="info">
              <div class="title">促进循环</div>
              <div class="description">促进新陈代谢、加速血液循环、增强细胞活力和增加促进营养吸收</div>
            </div>
          </div>
          <div class="section">
            <div class="cover">
              <img src="/img/mesobiolift-care-02.png" alt="" />
            </div>
            <div class="info">
              <div class="title">紧致提升</div>
              <div class="description">引起胶原收缩、形成新弹性纤维、弹性修复、紧致抗衰</div>
            </div>
          </div>
          <div class="section">
            <div class="cover">
              <img src="/img/mesobiolift-care-03.png" alt="" />
            </div>
            <div class="info">
              <div class="title">提拉轮廓</div>
              <div class="description">紧实皮下组织，改善轮廓曲线、提拉轮廓、紧致肌肤</div>
            </div>
          </div>
          <div class="section">
            <div class="cover">
              <img src="/img/mesobiolift-care-04.png" alt="" />
            </div>
            <div class="info">
              <div class="title">淡纹祛斑</div>
              <div class="description">刺激胶原蛋白再生、促进面部血液循环、抚平深层皱纹、淡化色斑</div>
            </div>
          </div>
          <div class="section">
            <div class="info">
              <div class="title big">身体护理</div>
              <div class="subtitle">Body Treatment</div>
            </div>
          </div>
          <div class="section">
            <div class="cover">
              <img src="/img/mesobiolift-care-05.png" alt="" />
            </div>
            <div class="info">
              <div class="title">紧致护理<br />皮肤激活再生</div>
            </div>
          </div>
          <div class="section">
            <div class="cover">
              <img src="/img/mesobiolift-care-06.png" alt="" />
            </div>
            <div class="info">
              <div class="title">抗充血治疗<br />刺激护理部位血液循环</div>
            </div>
          </div>
        </div>
      </div>
      <div class="container device">
        <div class="section-title">
          <img src="/img/mesobiolift-title-guide.png" alt="设备配件" />
          <h3>设备配件</h3>
        </div>
        <div class="content">
          <div class="scroll-box only-mobile">
            <img src="/img/mesobiolift-guide-01.png" alt="" />
            <img src="/img/mesobiolift-guide-02.png" alt="" />
            <img src="/img/mesobiolift-guide-03.png" alt="" />
          </div>
          <div class="swiper-container only-pc" id="deviceSwiper">
            <div class="swiper-wrapper">
              <div class="swiper-slide">
                <img src="/img/mesobiolift-guide-01.png" alt="" />
              </div>
              <div class="swiper-slide">
                <img src="/img/mesobiolift-guide-02.png" alt="" />
              </div>
              <div class="swiper-slide">
                <img src="/img/mesobiolift-guide-03.png" alt="" />
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  head() {
    return {
      title: '首页-艾斯佰丽官网-产品系列-MESOBIOLIFT',
    }
  },
  mounted() {
    var bannerSwiper = new Swiper('#banner', {
      loop: false, // 循环模式选项
      // 如果需要分页器
      pagination: {
        el: '.swiper-pagination',
      },
    })

    var deviceSwiper = new Swiper('#deviceSwiper', {
      loop: true, // 循环模式选项
      autoplay: true,
      slidesPerView: 3,
      spaceBetween: 16,
    })
  },
}
</script>

<style lang="scss" scoped>
@media screen and (min-width: 768px) {
  .main {
    .about {
      .cover {
        img {
          display: block;
          width: 470px;
          height: 480px;
        }
      }

      .info {
        width: 660px;
        padding-top: 65px;

        .name {
          font-size: 50px;
          color: #5daf32;
          font-weight: bold;
        }
        .subname {
          font-size: 30px;
          margin-top: 15px;
        }
        .line {
          width: 36px;
          height: 7px;
          background: #5daf32;
          margin: 20px 0 30px;
        }
        .description {
          font-size: 20px;
          text-align: justify;
          word-break: break-all;
          line-height: 36px;
        }

        .tags {
          display: -webkit-box;
          display: -ms-flexbox;
          display: flex;
          -webkit-box-align: center;
          -ms-flex-align: center;
          align-items: center;
          -webkit-box-pack: justify;
          -ms-flex-pack: justify;
          justify-content: space-between;
          margin-top: 40px;
        }
      }
    }

    .technology {
      .content {
        .section {
          display: -webkit-box;
          display: -ms-flexbox;
          display: flex;
          -webkit-box-pack: justify;
          -ms-flex-pack: justify;
          justify-content: space-between;
          -webkit-box-align: center;
          -ms-flex-align: center;
          align-items: center;
          padding: 10px 30px;
          background: #eee;
          margin-top: 40px;

          &:first-child {
            margin-top: 0;
          }

          .cover {
            -ms-flex-negative: 0;
            flex-shrink: 0;
            img {
              display: block;
              width: 374px;
            }
          }

          &:nth-child(2n-1) {
            .info {
              margin-left: 40px;
            }
          }

          &:nth-child(2n) {
            .info {
              margin-right: 40px;
            }
          }

          .info {
            -webkit-box-flex: 1;
            -ms-flex: 1;
            flex: 1;
            -ms-flex-negative: 0;
            flex-shrink: 0;

            .title {
              font-size: 34px;
              color: #5daf33;
              font-weight: bold;
            }
            .subtitle {
              font-size: 16px;
              color: #434343;
              font-weight: lighter;
              margin-top: 12px;
            }
            .description {
              font-size: 27px;
              color: #434343;
              margin-top: 24px;
              line-height: 40px;
              text-align: justify;
              word-break: break-all;
            }
          }
        }
      }
    }

    .care {
      .content {
        .section {
          float: left;
          width: 390px;
          height: 340px;
          position: relative;
          margin-right: 15px;
          margin-top: 15px;
          background: #eee;
          overflow: hidden;

          &:nth-child(2),
          &:nth-child(5),
          &:nth-child(8) {
            margin-right: 0;
          }

          &:nth-child(1),
          &:nth-child(2) {
            margin-top: 0;
          }

          &:first-child {
            width: 795px;
          }

          &:nth-child(1),
          &:nth-child(6) {
            background: #5daf32;
          }

          &:hover {
            img {
              -webkit-transform: scale(1.2);
              transform: scale(1.2);
            }
          }

          .cover {
            position: absolute;
            width: 100%;
            height: 100%;

            img {
              display: block;
              width: 100%;
              height: 100%;
              -webkit-transition: all 0.4s;
              transition: all 0.4s;
            }
          }

          .info {
            position: absolute;
            z-index: 2;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.3);
            display: -webkit-box;
            display: -ms-flexbox;
            display: flex;
            -webkit-box-pack: center;
            -ms-flex-pack: center;
            justify-content: center;
            -webkit-box-align: center;
            -ms-flex-align: center;
            align-items: center;
            -webkit-box-orient: vertical;
            -webkit-box-direction: normal;
            -ms-flex-direction: column;
            flex-direction: column;
            color: #fff;
            text-align: center;
            -webkit-box-sizing: border-box;
            box-sizing: border-box;
            padding: 0 32px;
            line-height: 1.5;

            .title {
              font-size: 28px;
              font-weight: bold;

              &.big {
                font-size: 41px;
              }
            }
            .subtitle {
              font-size: 24px;
              margin-top: 8px;
            }
            .description {
              font-size: 20px;
              font-weight: lighter;
              margin-top: 20px;
            }
          }
        }
      }
    }

    .device {
      .content {
        .swiper-container {
          width: 100%;

          img {
            display: block;
            width: 100%;
          }
        }
      }
    }
  }
}

@media screen and (max-width: 768px) {
  .main {
    .about {
      .content {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: reverse;
        -ms-flex-direction: column-reverse;
        flex-direction: column-reverse;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        .cover {
          margin-top: 0.4rem;
          img {
            display: block;
            width: 5.46rem;
            height: 5.57rem;
          }
        }

        .tags {
          display: -webkit-box;
          display: -ms-flexbox;
          display: flex;
          -webkit-box-align: center;
          -ms-flex-align: center;
          align-items: center;
          -webkit-box-pack: justify;
          -ms-flex-pack: justify;
          justify-content: space-between;
          margin-top: 0.16rem;

          img {
            display: block;
            width: 1.76rem;
            height: 1.12rem;
            margin: 0 0.06rem;
          }
        }

        .info {
          width: 6.5rem;
          margin: 0 auto;
          .name {
            font-size: 0.34rem;
            color: #5daf32;
            text-align: center;
            font-weight: bold;
          }
          .subname {
            font-size: 0.26rem;
            margin-top: 0.16rem;
            text-align: center;
          }
          .line {
            width: 0.4rem;
            height: 0.06rem;
            background: #5daf32;
            margin: 0.32rem auto;
          }
          .description {
            text-align: justify;
            word-break: break-all;
            color: #333333;
            text-align: center;
            font-size: 0.26rem;
            line-height: 0.48rem;
          }
        }
      }
    }

    .technology {
      .content {
        .section {
          width: 6.86rem;
          margin: 0 auto;
          padding: 0.4rem 0.7rem;
          background: #eee;
          margin-top: 0.32rem;
          -webkit-box-sizing: border-box;
          box-sizing: border-box;

          &:first-child {
            margin-top: 0;
          }

          .cover {
            img {
              display: block;
              width: 3.74rem;
              margin: 0 auto;
            }
          }

          .info {
            .title {
              font-size: 0.3rem;
              color: #5daf33;
              font-weight: bold;
              text-align: center;
              margin-top: 0.26rem;
            }
            .subtitle {
              font-size: 0.24rem;
              color: #333;
              margin-top: 0.16rem;
              text-align: center;
            }
            .description {
              font-size: 0.26rem;
              color: #333;
              margin-top: 0.4rem;
              line-height: 0.48rem;
              text-align: justify;
              word-break: break-all;
              text-align: center;
            }
          }
        }
      }
    }

    .care {
      .content {
        width: 6.86rem;
        margin: 0 auto;
        .section {
          float: left;
          width: 3.34rem;
          height: 3.4rem;
          position: relative;
          margin-right: 0.18rem;
          margin-top: 0.18rem;
          background: #eee;

          &:first-child {
            width: 6.86rem;
            margin-top: 0;
            margin-right: 0;
          }

          &:nth-child(3),
          &:nth-child(5),
          &:nth-child(7),
          &:nth-child(9) {
            margin-right: 0;
          }

          &:nth-child(1),
          &:nth-child(6) {
            background: #5daf32;
          }

          .cover {
            position: absolute;
            width: 100%;
            height: 100%;

            img {
              display: block;
              width: 100%;
              height: 100%;
            }
          }

          .info {
            position: absolute;
            z-index: 2;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.3);
            display: -webkit-box;
            display: -ms-flexbox;
            display: flex;
            -webkit-box-pack: center;
            -ms-flex-pack: center;
            justify-content: center;
            -webkit-box-align: center;
            -ms-flex-align: center;
            align-items: center;
            -webkit-box-orient: vertical;
            -webkit-box-direction: normal;
            -ms-flex-direction: column;
            flex-direction: column;
            color: #fff;
            text-align: center;
            -webkit-box-sizing: border-box;
            box-sizing: border-box;
            padding: 0 0.32rem;
            line-height: 1.5;

            .title {
              font-size: 0.32rem;
              &.big {
                font-size: 0.32rem;
              }
            }
            .subtitle {
              font-size: 0.24rem;
              margin-top: 0.24rem;
            }
            .description {
              font-size: 0.24rem;
              font-weight: lighter;
              margin-top: 0.24rem;
            }
          }
        }
      }
    }

    .device {
      .scroll-box {
        img {
          width: 3.16rem;
          height: 3.06rem;
          margin-right: 0.24rem;

          &:first-child {
            margin-left: 0.32rem;
          }

          &:last-child {
            margin-right: 0.32rem;
          }
        }
      }
    }
  }
}
</style>
