<template>
  <div>
    <!-- banner区域 start -->
    <div class="swiper-container banner" id="banner">
      <div class="swiper-wrapper">
        <div class="swiper-slide">
          <img src="/img/binary-banner.png" 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/binary-title-about.png" alt="" />
          <h3>品牌设备</h3>
        </div>
        <div class="content clearfix">
          <div class="cover fl">
            <img src="/img/binary-about-cover.png" alt="" />
          </div>
          <div class="info fr">
            <div class="name">Binary Premium</div>
            <div class="subname">创新型云智能体疗管理系统</div>
            <div class="line"></div>
            <div class="description">
              集内生热技术、肌肉重塑疗法、免疫力助推发烧疗法、盆底肌健康管理四大黑科技于一身，可应用于面部和身体，全方位满足多样化需求。Binary
              Premium，能够从细胞和肌肉层面来改善人体亚健康问题！同时在肌肉抗衰、产后康复、减脂塑形、私密健康管理、运动损伤和美学缺陷修复领域也拥有绝对权威地位。
            </div>
          </div>
        </div>
      </div>

      <div class="container therapy">
        <div class="section-title">
          <img src="/img/binary-title-therapies.png" alt="" />
          <h3>四大疗法</h3>
        </div>
        <div class="content">
          <div class="section">
            <div class="cover">
              <img src="/img/binary-therapy-01.png" alt="免疫力助推发烧疗法" />
            </div>
            <div class="info">
              <div class="name">免疫力助推发烧疗法</div>
              <div class="description">
                采用448kHz频率，通过特定的免疫力助推手环作用于人体四肢，渗透诱发全身细胞进行跨膜运动，使人体通过内生热的方式提升基础体温至42℃，持续8-12小时，激活免疫系统
              </div>
            </div>
            <a href="/product/binary/therapy-1.html" class="link">了解详情</a>
          </div>
          <div class="section">
            <div class="cover only-mobile">
              <img src="/img/binary-therapy-01.png" alt="免疫力助推发烧疗法" />
            </div>
            <div class="info">
              <div class="name">透热疗法</div>
              <div class="description">CAP电容式透热疗法结合RES电阻式透热疗法应用<span>448kHz</span>特定频率实现细胞的平衡、修复和再生</div>
            </div>
            <div class="cover only-pc">
              <img src="/img/binary-therapy-01.png" alt="免疫力助推发烧疗法" />
            </div>
            <a href="/product/binary/therapy-2.html" class="link">了解详情</a>
          </div>
          <div class="section">
            <div class="cover">
              <img src="/img/binary-therapy-01.png" alt="免疫力助推发烧疗法" />
            </div>
            <div class="info">
              <div class="name">肌肉重塑疗法</div>
              <div class="description">通过发射在中频上调制的低频可变电流来实现刺激皮肤和肌肉的微观结构进而促进血液流动和促进营养吸收，恢复肌肉张力</div>
            </div>
            <a href="/product/binary/therapy-3.html" class="link">了解详情</a>
          </div>
          <div class="section">
            <div class="cover only-mobile">
              <img src="/img/binary-therapy-01.png" alt="免疫力助推发烧疗法" />
            </div>
            <div class="info">
              <div class="name">私密健康疗法</div>
              <div class="description">
                独特频率448kHz<br />
                神经肌肉电刺激（NMES）
              </div>
            </div>
            <div class="cover only-pc">
              <img src="/img/binary-therapy-01.png" alt="免疫力助推发烧疗法" />
            </div>
            <a href="/product/binary/therapy-4.html" class="link">了解详情</a>
          </div>
        </div>
      </div>

      <div class="container application">
        <div class="section-title">
          <img src="/img/binary-title-application.png" alt="" />
          <h3>七大应用</h3>
        </div>
        <div class="content clearfix">
          <div class="item">
            <img src="/img/binary-application-01.png" alt="亚健康管理" />
            <div class="cover">
              <div class="title">亚健康管理</div>
              <div class="subtitle">Subhealth</div>
            </div>
          </div>
          <div class="item no-mr">
            <img src="/img/binary-application-02.png" alt="美学缺陷修复" />
            <div class="cover">
              <div class="title">美学缺陷修复</div>
              <div class="subtitle">Aesthetic defect</div>
            </div>
          </div>
          <div class="item">
            <img src="/img/binary-application-03.png" alt="运动损伤修复" />
            <div class="cover">
              <div class="title">运动损伤修复</div>
              <div class="subtitle">Sports injury</div>
            </div>
          </div>
          <div class="item">
            <img src="/img/binary-application-04.png" alt="肌肉抗衰" />
            <div class="cover">
              <div class="title">肌肉抗衰</div>
              <div class="subtitle">Muscle anti-aging</div>
            </div>
          </div>
          <div class="item no-mr">
            <img src="/img/binary-application-05.png" alt="减脂塑形" />
            <div class="cover">
              <div class="title">减脂塑形</div>
              <div class="subtitle">Body reshaping</div>
            </div>
          </div>
          <div class="item no-mb">
            <img src="/img/binary-application-06.png" alt="私密健康管理" />
            <div class="cover">
              <div class="title">私密健康管理</div>
              <div class="subtitle">pelvic floor</div>
            </div>
          </div>
          <div class="item no-mr no-mb">
            <img src="/img/binary-application-07.png" alt="产后康复" />
            <div class="cover">
              <div class="title">产后康复</div>
              <div class="subtitle">Postpartum rehabilitation</div>
            </div>
          </div>
        </div>
      </div>

      <div class="container device">
        <div class="section-title">
          <img src="/img/binary-title-equipment.png" alt="" />
          <h3>设备配件</h3>
        </div>
        <div class="content">
          <div class="scroll-box only-mobile">
            <img src="/img/binary-device-01.png" alt="" />
            <img src="/img/binary-device-02.png" alt="" />
            <img src="/img/binary-device-03.png" alt="" />
            <img src="/img/binary-device-04.png" alt="" />
            <img src="/img/binary-device-05.png" alt="" />
          </div>
          <div class="swiper-container only-pc" id="deviceSwiper">
            <div class="swiper-wrapper">
              <div class="swiper-slide">
                <img src="/img/binary-device-01.png" alt="" />
              </div>
              <div class="swiper-slide">
                <img src="/img/binary-device-02.png" alt="" />
              </div>
              <div class="swiper-slide">
                <img src="/img/binary-device-03.png" alt="" />
              </div>
              <div class="swiper-slide">
                <img src="/img/binary-device-04.png" alt="" />
              </div>
              <div class="swiper-slide">
                <img src="/img/binary-device-05.png" alt="" />
              </div>
              <div class="swiper-slide">
                <img src="/img/binary-device-06.png" alt="" />
              </div>
            </div>
          </div>
          <!-- 如果需要导航按钮 -->
          <div class="swiper-prev"></div>
          <div class="swiper-next"></div>
        </div>
      </div>
    </div>
  </div>
</template>

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

    var deviceSwiper = new Swiper('#deviceSwiper', {
      loop: true, // 循环模式选项
      autoplay: true,
      slidesPerView: 6,
      spaceBetween: 10,
      // 如果需要前进后退按钮
      navigation: {
        nextEl: '.device .swiper-next',
        prevEl: '.device .swiper-prev',
      },
    })
  },
}
</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: #f3920d;
          font-weight: bold;
        }
        .subname {
          font-size: 30px;
          margin-top: 15px;
        }
        .line {
          width: 36px;
          height: 7px;
          background: #f3920d;
          margin: 20px 0 50px;
        }
        .description {
          font-size: 20px;
          text-align: justify;
          font-weight: lighter;
          line-height: 36px;
        }
      }
    }

    .therapy {
      .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;
        position: relative;
        background: #eeeeee;
        height: 400px;
        margin-top: 44px;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
        padding: 0 20px;

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

        .info {
          -ms-flex-negative: 0;
          flex-shrink: 0;
          -webkit-box-flex: 1;
          -ms-flex: 1;
          flex: 1;
          -webkit-box-sizing: border-box;
          box-sizing: border-box;
          margin-left: 40px;

          .name {
            font-size: 36px;
            font-weight: bold;
            color: #f3920d;
          }

          .description {
            font-size: 26px;
            color: #434343;
            line-height: 36px;
            font-weight: lighter;
            text-align: justify;
            padding-right: 20px;
            margin-top: 36px;
          }
        }

        &:nth-child(2n-1) {
          .link {
            right: 40px;
            bottom: 20px;
          }
        }

        &:nth-child(2n) {
          .link {
            left: 60px;
            bottom: 20px;
          }
        }

        .link {
          position: absolute;
          display: block;
          width: 164px;
          height: 50px;
          line-height: 50px;
          text-align: center;
          -webkit-box-sizing: border-box;
          box-sizing: border-box;
          padding-right: 30px;
          background: url('/img/binary-icon-link.png') no-repeat;
          background-position: 144px center;
          background-color: #000000;
          font-size: 25px;
          color: #f3920d;
          cursor: pointer;
        }
      }
    }

    .application {
      .content {
        .item {
          position: relative;
          float: left;
          height: 340px;
          width: 390px;
          margin-right: 15px;
          margin-bottom: 15px;
          -webkit-box-sizing: border-box;
          box-sizing: border-box;
          overflow: hidden;

          .cover-bg {
            width: 100%;
            height: 100%;
            opacity: 1;
            -webkit-transition: all 0.4s;
            transition: all 0.4s;
            background: #f3920d;
          }

          img {
            width: 100%;
            height: 100%;
            opacity: 1;
            -webkit-transition: all 0.4s;
            transition: all 0.4s;
          }

          &.no-mb {
            margin-bottom: 0;
          }

          &.no-mr {
            margin-right: 0;
          }

          &:nth-child(1),
          &:nth-child(7) {
            width: 795px;
          }

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

            .cover {
              opacity: 1;
            }
          }

          .cover {
            opacity: 0;
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            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;
            background: rgba(0, 0, 0, 0.2);
            -webkit-transition: opacity 0.4s;
            transition: opacity 0.4s;

            .title {
              color: #fff;
              font-size: 38px;
            }

            .subtitle {
              font-size: 29px;
              color: #fff;
              font-weight: lighter;
              margin-top: 10px;
            }
          }
        }
      }
    }

    .device {
      .content {
        position: relative;

        .swiper-container {
          width: 1100px;
          margin: 0 auto;

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

        .swiper-prev,
        .swiper-next {
          position: absolute;
          left: 0;
          top: 50%;
          -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
          width: 48px;
          height: 72px;
          background-color: rgba(55, 55, 55, 0.6) !important;
          z-index: 5;
          cursor: pointer;
          background: url(/img/icon-arrow-left.png) no-repeat center;
        }

        .swiper-next {
          left: unset;
          right: 0;
          background: url(/img/icon-arrow-right.png) no-repeat center;
        }
      }
    }
  }
}

@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 {
          float: unset !important;
          margin-top: 0.4rem;
          img {
            display: block;
            width: 5.64rem;
            height: 5.57rem;
            margin: 0 auto;
          }
        }

        .info {
          float: unset !important;
          width: 6.5rem;
          text-align: center;

          .name {
            font-size: 0.34rem;
            color: #f3920d;
          }
          .subname {
            font-size: 0.26rem;
            margin-top: 0.16rem;
          }
          .line {
            width: 0.4rem;
            height: 0.06rem;
            background: #f3920d;
            margin: 0.32rem auto;
          }
          .description {
            font-size: 0.26rem;
            text-align: justify;
            // font-weight: lighter;
            line-height: 0.48rem;
            color: #333333;
          }
        }
      }
    }

    .therapy {
      .section {
        position: relative;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
        width: 6.86rem;
        margin: 0 auto;
        background: #eeeeee;
        margin-top: 0.32rem;
        padding: 0.4rem;

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

        .cover {
          width: 4.5rem;
          height: 3.6rem;
          img {
            display: block;
            width: 100%;
            height: 100%;
          }
        }

        .info {
          .name {
            font-size: 0.3rem;
            font-weight: bold;
            color: #f3920d;
            text-align: center;
            margin: 0.4rem 0 0.32rem;
          }

          .description {
            font-size: 0.26rem;
            color: #333;
            line-height: 0.48rem;
            text-align: justify;
            text-align: center;
          }
        }

        .link {
          display: block;
          width: 2.48rem;
          height: 0.78rem;
          line-height: 0.78rem;
          text-align: center;
          background-color: #000000;
          font-size: 0.26rem;
          color: #f3920d;
          cursor: pointer;
          margin-top: 0.48rem;
        }
      }
    }

    .application {
      width: 6.86rem;
      margin: 0 auto;
      .content {
        .item {
          position: relative;
          float: left;
          height: 1.94rem;
          width: 2.23rem;
          margin-right: 0.08rem;
          margin-bottom: 0.08rem;
          -webkit-box-sizing: border-box;
          box-sizing: border-box;
          overflow: hidden;

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

          &.no-mb {
            margin-bottom: 0;
          }

          &.no-mr {
            margin-right: 0;
          }

          &:nth-child(1),
          &:nth-child(7) {
            width: 4.54rem;
          }

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

          .cover {
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            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;
            background: rgba(0, 0, 0, 0.2);
            -webkit-transition: opacity 0.4s;
            transition: opacity 0.4s;

            .title {
              color: #fff;
              font-size: 0.26rem;
            }

            .subtitle {
              font-size: 0.24rem;
              color: #fff;
              font-weight: lighter;
              margin-top: 0.08rem;
            }
          }
        }
      }
    }

    .device {
      .scroll-box {
        img {
          width: 1.77rem;
          height: 2.27rem;
          margin-right: 0.24rem;

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

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