<template>
  <div>
    <!-- 广告位 start-->
    <div class="advertising">
      <div class="video-container" id="videoPlayer">
        <video src="/media/binary_premium.mp4" poster="/img/brand-ross-video-cover.png"></video>
        <div class="play"></div>
      </div>
    </div>
    <!-- 广告位 end -->

    <div class="main">
      <div class="container about">
        <div class="section-title">
          <img src="/img/ross-title-about.png" alt="" />
          <h3>公司介绍</h3>
        </div>
        <div class="content">
          <div class="clearfix about-swiper">
            <div class="swiper fl">
              <div class="swiper-container" id="aboutSwiepr">
                <div class="swiper-wrapper">
                  <div class="swiper-slide">
                    <img src="/img/ross-about-banner-01.png" alt="" />
                  </div>
                  <div class="swiper-slide">
                    <img src="/img/ross-about-banner-02.png" alt="" />
                  </div>
                  <div class="swiper-slide">
                    <img src="/img/ross-about-banner-03.png" alt="" />
                  </div>
                </div>
                <!-- 如果需要导航按钮 -->
                <div class="swiper-prev"></div>
                <div class="swiper-next"></div>
              </div>
            </div>
            <div class="section fl">
              <div class="title">RÖS'S ESTÉTICA公司简介</div>
              <div class="description">
                ROS'S中国区总代理为深圳艾斯佰丽生物科技有限公司<br />RÖS'S品牌创立于1978年，总部位于西班牙巴塞罗那，是一家专注于二进制先进科技研发、制造和销售的智能创新研发型企业。获得欧盟CE、国际ISO9001等系列认证，旗下拥有Binary Premium，Kestos T2，Rollaction，Intradermik等多系列先进智能科技设备。
              </div>
            </div>
          </div>
          <ul class="more-content">
            <li><img src="/img/ross-about-item-01.png" alt="" /></li>
            <li><img src="/img/ross-about-item-02.png" alt="" /></li>
            <li><img src="/img/ross-about-item-03.png" alt="" /></li>
            <li><img src="/img/ross-about-item-04.png" alt="" /></li>
            <li><img src="/img/ross-about-item-05.png" alt="" /></li>
          </ul>
        </div>
      </div>

      <div class="container chairman">
        <div class="section-title">
          <img src="/img/ross-title-chairman.png" alt="" />
          <h3>董事长简介</h3>
        </div>
        <div class="content clearfix">
          <div class="cover fl">
            <img src="/img/ross-chairman-cover.png" alt="" />
          </div>
          <div class="info fl">
            <div class="name">Carlos moliner</div>
            <div class="name-en">RÖS'S ESTÉTICA</div>
            <div class="tip">RÖS'S ESTÉTICA董事长<span>|</span>RÖS'S品牌创始人</div>
            <div class="line"></div>
            <div class="description">
              RÖS'S品牌创立于1978年，总部位于西班牙巴塞罗那，是一家专注于二进制先进科技研发、制造和销售的智能创新研发型企业。获得欧盟CE、国际ISO
              9001等系列认证，旗下拥有Binary Premium，Kestos T2，Rollaction，Intradermik等多系列先进智能科技设备。
            </div>
          </div>
        </div>
      </div>

      <div class="container word">
        <div class="section-title">
          <img src="/img/ross-title-word.png" alt="遍布世界各地" />
          <h3>遍布世界各地</h3>
        </div>
        <div class="content">
          <img src="/img/ross-word-cover.png" alt="遍布世界各地" class="only-pc" />
          <img src="/img/ross-word-cover-h5.jpg" alt="遍布世界各地" class="only-mobile" />
        </div>
      </div>

      <div class="container brand-activity">
        <div class="section-title">
          <img src="/img/ross-title-activity.png" alt="" />
          <h3>品牌活动</h3>
        </div>
        <div class="content clearfix">
          <div class="item">
            <img src="/img/ross-brand-activity-01.png" alt="全球专业美容盛会" />
            <div class="cover">
              <div class="title">· COSMO BEAUTY Barcelona （全球专业美容盛会)</div>
            </div>
          </div>
          <div class="item no-mr">
            <img src="/img/ross-brand-activity-02.png" alt="最佳创新奖" />
            <div class="cover">
              <div class="title">· 最佳创新奖</div>
            </div>
          </div>
          <div class="item">
            <img src="/img/ross-brand-activity-03.png" alt="最佳治疗奖项" />
            <div class="cover">
              <div class="title">· 最佳治疗奖项</div>
            </div>
          </div>
          <div class="item">
            <img src="/img/ross-brand-activity-04.png" alt="著名的拉丁美洲刊物SPA GUIDE 采访了卡洛斯·莫利纳先生" />
            <div class="cover">
              <div class="title">· 著名的拉丁美洲刊物SPA GUIDE 采访了卡洛斯·莫利纳先生</div>
            </div>
          </div>
          <div class="item no-mr">
            <img src="/img/ross-brand-activity-05.png" alt="品牌展会" />
            <div class="cover">
              <div class="title">· 品牌展会</div>
            </div>
          </div>
          <div class="item no-mb">
            <img src="/img/ross-brand-activity-06.png" alt="国外合作商展会" />
            <div class="cover">
              <div class="title">· 国外合作商展会</div>
            </div>
          </div>
          <div class="item no-mr no-mb">
            <img src="/img/ross-brand-activity-07.png" alt="专业培训团队" />
            <div class="cover">
              <div class="title">· 专业培训团队</div>
            </div>
          </div>
        </div>
      </div>

      <div class="container honor">
        <div class="section-title">
          <img src="/img/ross-title-honor.png" alt="" />
          <h3>荣誉证书</h3>
        </div>
        <div class="content">
          <div class="scroll-box only-mobile">
            <img src="/img/ross-honor-01.png" alt="" />
            <img src="/img/ross-honor-02.png" alt="" />
            <img src="/img/ross-honor-03.png" alt="" />
            <img src="/img/ross-honor-04.png" alt="" />
            <img src="/img/ross-honor-05.png" alt="" />
          </div>
          <div class="swiper-container only-pc" id="honorSwiper">
            <div class="swiper-wrapper">
              <div class="swiper-slide">
                <img src="/img/ross-honor-01.png" alt="" />
              </div>
              <div class="swiper-slide">
                <img src="/img/ross-honor-02.png" alt="" />
              </div>
              <div class="swiper-slide">
                <img src="/img/ross-honor-03.png" alt="" />
              </div>
              <div class="swiper-slide">
                <img src="/img/ross-honor-04.png" alt="" />
              </div>
              <div class="swiper-slide">
                <img src="/img/ross-honor-05.png" alt="" />
              </div>
            </div>
          </div>
          <!-- 如果需要导航按钮 -->
          <div class="swiper-prev"></div>
          <div class="swiper-next"></div>
        </div>
      </div>

      <div class="container device">
        <div class="section-title">
          <img src="/img/ross-title-device.png" alt="" />
          <h3>部分设备</h3>
        </div>
        <div class="content">
          <div class="scroll-box only-mobile">
            <img src="/img/ross-device-01.png" alt="" />
            <img src="/img/ross-device-02.png" alt="" />
            <img src="/img/ross-device-03.png" alt="" />
            <img src="/img/ross-device-04.png" alt="" />
            <img src="/img/ross-device-05.png" alt="" />
          </div>
          <div class="swiper-container only-pc" id="deviceSwiper">
            <div class="swiper-wrapper">
              <div class="swiper-slide">
                <img src="/img/ross-device-01.png" alt="" />
              </div>
              <div class="swiper-slide">
                <img src="/img/ross-device-02.png" alt="" />
              </div>
              <div class="swiper-slide">
                <img src="/img/ross-device-03.png" alt="" />
              </div>
              <div class="swiper-slide">
                <img src="/img/ross-device-04.png" alt="" />
              </div>
              <div class="swiper-slide">
                <img src="/img/ross-device-05.png" alt="" />
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  head() {
    return {
      title: "首页-艾斯佰丽官网-ROS'S介绍",
    }
  },
  mounted() {
    var aboutSwiepr = new Swiper('#aboutSwiepr', {
      loop: true, // 循环模式选项
      // 如果需要前进后退按钮
      navigation: {
        nextEl: '#aboutSwiepr .swiper-next',
        prevEl: '#aboutSwiepr .swiper-prev',
      },
    })

    var honorSwiper = new Swiper('#honorSwiper', {
      loop: true, // 循环模式选项
      autoplay: true,
      slidesPerView: 5,
      spaceBetween: 24,
      // 如果需要前进后退按钮
      navigation: {
        nextEl: '.honor .swiper-next',
        prevEl: '.honor .swiper-prev',
      },
    })

    var deviceSwiper = new Swiper('#deviceSwiper', {
      loop: true, // 循环模式选项
      autoplay: true,
      slidesPerView: 5,
      spaceBetween: 24,
    })

    // 关于疗法 手风琴效果
    function therapyDemoAccordion() {
      $('#therapy .item').on('mouseover', function (el) {
        $('#therapy .hover').removeClass('hover')
        $(this).addClass('hover')
      })
    }
    therapyDemoAccordion()

    // 视频播放
    function initVideoPlayer() {
      $('#videoPlayer')
        .find('.play')
        .on('click', function () {
          $(this).hide().siblings('video').attr('controls', true).get(0).play()
        })
    }

    initVideoPlayer()
  },
}
</script>

<style lang="scss" scoped>
@media screen and(min-width:768px) {
  .advertising {
    width: 100%;
    height: 973px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    background: #f2f2f2;
    overflow: hidden;
    background: url(/img/brand-ross-ad.png) no-repeat;
    background-position: top center;

    .video-container {
      position: relative;
      width: 960px;
      height: 540px;
      margin: 0 auto;
      margin-top: 433px;

      .play {
        position: absolute;
        width: 132px;
        height: 132px;
        border-radius: 50%;
        z-index: 2;
        top: 50%;
        left: 50%;
        -webkit-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
        cursor: pointer;
        background: url(/img/ross-video-play.png) no-repeat center;
      }

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

  .main {
    .about {
      .content {
        .about-swiper {
          height: 540px;

          .swiper {
            width: 720px;
            height: 100%;
            position: relative;

            .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.3) !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;
            }

            img {
              width: 100%;
              height: 540px;
            }
          }

          .section {
            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;
            width: 480px;
            height: 540px;
            background: url(/img/icon-comma-01.png), url(/img/icon-comma-02.png);
            background-color: #f3920d;
            background-repeat: no-repeat;
            background-position: 36px 36px, 353px 422px;
            color: #fff;

            .title {
              font-size: 25px;
              font-weight: bold;
              padding: 0 24px;
              width: 100%;
              text-align: left;
              -webkit-box-sizing: border-box;
              box-sizing: border-box;
            }

            .description {
              font-size: 24px;
              font-weight: lighter;
              line-height: 44px;
              padding: 0 24px;
              text-align: justify;
              word-break: break-all;
              margin-top: 12px;
            }
          }
        }
        .more-content {
          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;
          margin-top: 24px;

          img {
            display: block;
            width: 233px;
            height: 160px;
          }
        }
      }
    }

    .chairman {
      .cover {
        img {
          display: block;
          width: 470px;
          height: 480px;
        }
      }
      .info {
        padding-top: 40px;
        margin-left: 50px;
        width: 668px;
        .name {
          font-size: 41px;
          color: #f3920d;
          font-weight: bold;
        }
        .name-en {
          font-size: 25px;
          color: #000000;
          margin-top: 12px;

          span {
            font-size: 38px;
            color: #f3920d;
            font-weight: normal;
          }
        }
        .tip {
          font-size: 25px;
          color: #000;
          margin-top: 76px;
          span {
            margin: 0 16px;
          }
        }
        .line {
          width: 36px;
          height: 7px;
          background: #f3920d;
          margin: 24px 0 60px;
        }
        .description {
          font-size: 20px;
          color: #000;
          line-height: 36px;
        }
      }
    }

    .word {
      .content {
        img {
          display: block;
          width: 100%;
        }
      }
    }

    .brand-activity {
      .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 {
            position: absolute;
            left: 0;
            bottom: 0;
            display: inline-block;
            background: rgba(0, 0, 0, 0.5);
            padding: 19px 14px;

            .title {
              color: #fff;
              font-size: 24px;
              font-weight: lighter;
              line-height: 1.5;
            }
          }
        }
      }
    }

    .honor {
      .content {
        position: relative;

        .swiper-container {
          width: 1070px;
          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.3) !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;
        }
      }
    }

    .device {
      .swiper-container {
        img {
          display: block;
          width: 100%;
        }
      }
    }
  }
}

@media screen and(max-width:768px) {
  .advertising {
    width: 100%;
    height: 5.9488rem;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    background: #f2f2f2;
    overflow: hidden;
    background: url(/img/brand-ross-ad.png) no-repeat;
    background-position: top center;
    background-size: 7.5rem;

    .video-container {
      position: relative;
      width: 6.86rem;
      height: 3.8588rem;
      margin: 0 auto;
      margin-top: 2.09rem;

      .play {
        position: absolute;
        width: 0.8rem;
        height: 0.8rem;
        border-radius: 50%;
        z-index: 2;
        top: 50%;
        left: 50%;
        -webkit-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
        cursor: pointer;
        background: url(/img/ross-video-play.png) no-repeat center;
        background-size: 0.8rem;
      }

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

  .main {
    .about {
      width: 6.86rem;
      margin: 0 auto;
      .content {
        .about-swiper {
          .swiper {
            width: 100%;
            float: unset !important;

            .swiper-container {
              width: 100%;
              height: 5.14rem;

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

          .section {
            float: unset !important;
            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: url(/img/icon-comma-01.png), url(/img/icon-comma-02.png);
            background-color: #f3920d;
            background-repeat: no-repeat;
            background-size: 0.66rem;
            background-position: 0.4rem 0.82rem, 5.86rem 2.8rem;
            color: #fff;
            padding: 0.4rem;

            .title {
              font-size: 0.32rem;
              font-weight: bold;
              width: 100%;
              text-align: left;
              -webkit-box-sizing: border-box;
              box-sizing: border-box;
              text-align: center;
            }

            .description {
              font-size: 0.24rem;
              line-height: 0.46rem;
              text-align: justify;
              word-break: break-all;
              margin-top: 0.4rem;
              text-align: center;
            }
          }
        }
        .more-content {
          display: none;
        }
      }
    }

    .chairman {
      width: 6.48rem;
      margin: 0 auto;
      .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;
        .cover {
          float: unset !important;
          img {
            display: block;
            width: 5.46rem;
            height: 5.57rem;
            margin: 0 auto;
          }
        }
        .info {
          float: unset !important;
          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;
          .name {
            font-size: 0.3rem;
            color: #272727;
            font-weight: bold;
          }
          .name-en {
            font-size: 0.26rem;
            color: #272727;
            margin-top: 0.32rem;

            span {
              font-size: 0.3rem;
              color: #f3920d;
            }
          }
          .tip {
            font-size: 0.26rem;
            color: #272727;
            margin-top: 0.12rem;
            span {
              margin: 0 0.16rem;
            }
          }
          .line {
            width: 0.4rem;
            height: 0.06rem;
            background: #f3920d;
            margin: 0.4rem 0;
          }
          .description {
            font-size: 0.26rem;
            color: #666;
            line-height: 0.48rem;
            text-align: center;
            margin-bottom: 0.4rem;
          }
        }
      }
    }

    .word {
      width: 6.86rem;
      margin: 0 auto;
      .content {
        img {
          display: block;
          width: 100%;
        }
      }
    }

    .brand-activity {
      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 {
            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;
            bottom: 0;
            display: inline-block;
            background: rgba(0, 0, 0, 0.5);
            padding: 0.08rem 0.1rem;

            .title {
              color: #fff;
              font-size: 0.22rem;
              font-weight: lighter;
              line-height: 1.5;
            }
          }
        }
      }
    }

    .honor {
      .scroll-box {
        img {
          width: 1.96rem;
          height: 2.83rem;
          margin-right: 0.24rem;

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

          &:last-child {
            margin-right: 0.32rem;
          }
        }
      }
    }

    .device {
      .scroll-box {
        img {
          width: 1.88rem;
          height: 2.41rem;
          margin-right: 0.24rem;

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

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