<template>
  <div class="wrap">
    <div class="single-banner single-banner-overview">
      <img class="banner-img" :src="modules[0].form.pic" alt="">
      <div class="texts">
        <h6 class="banner-title">{{ modules[0].form.title }}</h6>
      </div>
    </div>

    <ul class="tabs wow fadeInLeft">
      <template v-for="(item, i) in tabs">
        <li :class="{active: i == active}" :key="i" @click="tabChange(i)">{{ item | i18nName($i18n) }}</li>
      </template>
    </ul>

    <div class="tab-content">
      <div v-html="modules[1].form.des"></div>
    </div>
  </div>
</template>

<script>
import mixins from '@/mixins/page'
import overview from '@/mixins/overview'
import WOW from 'wow.js'
export default {
  mixins: [mixins, overview],
  data() {
    return {
      active: 3
    }
  },
  mounted() {
    new WOW().init()
  },
  methods: {
    
  }
};
</script>

<style lang="scss" scoped>
@import url(../../plugins/wow/animate.css);
@import "../../styles/page/page.scss";
.wrap {
  background: url(../../assets/images/survey1.png) (0 559px)/auto no-repeat,
              url(../../assets/images/survey2.png) (bottom right)/auto no-repeat;
}
.single-banner {
  .banner-img {
    height: 24rem;
  }
  .texts {
    top: auto !important;
    bottom: 2rem;
    h6 {
      font-size: 2.16rem
    }
  }
}
.tabs {
  display: flex;
  justify-content: center;
  box-shadow: 0px 2px 10px 0px rgba(223,223,223,0.28);
  li {
    padding: 1.25rem .95rem;
    margin: 0 .5rem;
    font-size: 1.05rem;
    color: #333;
    border-bottom: 4px solid transparent;
    text-shadow: 0px 2px 14px rgba(167,167,167,0.26);
    cursor: pointer;
    &.active {
      color: #1583FF;
      border-bottom-color: #1583FF;
    }
  }
}
.tab-content {
  width: 50rem;
  padding: 3.85rem 0;
  margin: 0 auto;
  span {
    font-size: 1.35rem;
  }
  /deep/ img {
    width: 100% !important;
  }
}
.video {
  width: 100%;
  margin-bottom: 2.75rem;
}
.text {
  font-size: .9rem;
  color: #020202;
  line-height: 1.6rem;
}
@media (max-width: 1200px) {
  .tabs {
    overflow: hidden;;
    overflow-x: auto;
    white-space: normal;
    justify-content: normal;
    display: -webkit-box;
    li {
      white-space: normal;
    }
  }
  .tab-content{
    width: 90%;
    span {
      font-size: 1.35rem;
    }
  }
 
}
@media (min-width: 280px) and (max-width: 120px) {
  .single-banner {
    .banner-img {
      height: 15rem;
    }
    .texts {
      top: 9rem !important;
     left: 22rem !important;
    }
    
  }
}
@media (max-width: 320px) {
  .wrap {
    .banner-img {
        height: 12rem;
      }
    .single-banner {
      .texts {
        bottom: 2rem !important;
        left: 2rem !important;
        .banner-title {
          font-size: 1.5rem;
        }
      }
    }
  }
  .tabs {
    li {
      padding: 1rem .5rem;
      font-size: .85rem;
    }
  }
}
@media (min-width: 320px) and (max-width: 375px)  {
  .wrap {
    .banner-img {
        height: 12rem;
      }
    .single-banner {
      .texts {
        bottom: 2rem !important;
        left: 2rem !important;
        .banner-title {
          font-size: 1.5rem;
        }
      }
    }
  }
  .tabs {
    li {
      padding: 1rem .5rem;
      font-size: .85rem;
    }
  }
}

@media (min-width: 375px) and (max-width: 480px)  {
  .wrap {
    .banner-img {
        height: 12rem;
      }
    .single-banner {
      .texts {
        bottom: 2rem !important;
        left: 2rem !important;
        .banner-title {
          font-size: 1.5rem;
        }
      }
    }
  }
  .tabs {
    li {
      padding: 1rem .5rem;
      font-size: .85rem;
    }
  }
}
@media (min-width: 480px) and (max-width: 640px)  {
  .wrap {
    .banner-img {
        height: 12rem;
      }
    .single-banner {
      .texts {
        bottom: 2rem !important;
        left: 2rem !important;
        .banner-title {
          font-size: 1.5rem;
        }
      }
    }
  }
  .tabs {
    li {
      padding: 1rem .5rem;
      font-size: .85rem;
    }
  }
}
@media (min-width: 640px) and (max-width: 768px)  {
  .wrap {
    .banner-img {
        height: 12rem;
      }
    .single-banner {
      .texts {
        bottom: 2rem !important;
        left: 2rem !important;
        .banner-title {
          font-size: 1.5rem;
        }
      }
    }
  }
  .tabs {
    li {
      padding: 1rem .5rem;
      font-size: .85rem;
    }
  }
}
@media (min-width: 768px) and (max-width: 980px)  {
  .wrap {
    .banner-img {
        height: 12rem;
      }
    .single-banner {
      .texts {
        bottom: 2rem !important;
        left: 2rem !important;
        .banner-title {
          font-size: 1.5rem;
        }
      }
    }
  }
  .tabs {
    li {
      padding: 1rem .5rem;
      font-size: .85rem;
    }
  }
}
@media (min-width: 980px) and (max-width: 1200px)  {
  .wrap {
    .banner-img {
        height: 12rem;
      }
    .single-banner {
      .texts {
        bottom: 2rem !important;
        left: 2rem !important;
        .banner-title {
          font-size: 1.5rem;
        }
      }
    }
  }
  .tabs {
    li {
      padding: 1rem .5rem;
      font-size: .85rem;
    }
  }
}
</style>