<template>
  <div :class="inPage ? 'Box active' : 'Box'">
    <div id="top"></div>
    <top />
    <div class="topBox">
      <div class="more" @click="showPopup">
        <div class="wire"></div>
        <div class="wire"></div>
        <div class="wire"></div>
      </div>
      <div @click="goLogin">
        <img class="userImg" src="../../assets/img/user center.png" alt="" />
      </div>
    </div>

    <div class="module_1">
      <!-- <video ref="vidoe" src="../../assets/video/1.mp4" width="100%" height="100%" autoplay muted="muted" loop="loop" /> -->
      <!-- <video ref="vidoe" src="https://video.metavatar.cc/sv/d51a6f6-187fa2dff79/d51a6f6-187fa2dff79.mp4" width="100%" height="100%" autoplay muted="muted" loop="loop" /> -->
      <div class="vantLoadingBox" style="height: 550px" v-show="!loading">
        <van-loading type="spinner" color="#52d4e5" class="vantLoading" />
      </div>
      <video ref="vidoe" :src="videoUrl" width="100%" height="100%" autoplay muted="muted" loop="loop" />
      <div class="titleBox" @click="goLogin">
        <div class="title_item1" v-if="characters == 1">打造自主数字人IP</div>
        <div class="title_item2" v-if="characters == 1">沉淀数字资产</div>
        <!-- <div class="title_item3" v-if="characters==1">自动化实时创作过程 帮助您快速定义形象 多种类型</div> -->
        <!-- <div class="title_item3" v-if="characters==1">创造生成 超真实 超写实 风格化 不同性别</div> -->
        <!-- <div class="title_item3" v-if="characters==1">多人种 分身化身随心创造</div> -->

        <div class="title_item1_y" v-if="characters != 1">Create virtual human IP</div>
        <div class="title_item2" v-if="characters != 1">for your business as digital assets</div>
        <!-- <div
          class="title_item3"
          v-if="characters!=1"
        >Automatic creation process, speed up character defined from months to hours Diversity character types, ultra-realistic, stylized or customized freely</div>-->

        <div class="title_btn">
          {{ characters == 1 ? '立刻体验' : 'Try it now' }}
        </div>
      </div>
      <div class="md1" id="md1"></div>
    </div>

    <div v-if="loading" class="module_2" id="module_2">
      <div class="title">
        {{ characters == 1 ? '文字语音AI驱动' : 'Text/Audio AI manipulation' }}
      </div>
      <div class="xian"></div>
      <div class="title_ctn">
        {{
          characters == 1
            ? '文字/语音驱动生成数字人，邃芒技术所呈现的高自然度，以及多语言多种输入方式，'
            : 'Text/audio manipulate the virtual human created, Metavatar AIGC delivers high resolution, naturally and vividly character moves.'
        }}
      </div>
      <div class="title_ctn">
        {{
          characters == 1
            ? '让您的数字人可以快速进行内容生产，真正实现智能全自动的内容生产（AIGC）。'
            : 'supporting multiple languages and inputs, generating digital content, bring new intelligence experience far more exciting than before .'
        }}
      </div>
      <div class="title_btn" @click="goLogin">
        {{ characters == 1 ? '立刻体验' : 'Try it now' }}
      </div>
    </div>

    <div v-if="loading" class="module_3" id="module_3">
      <div class="imgBox1">
        <img src="https://suimang.oss-cn-beijing.aliyuncs.com/builtin/static/wap/module_3_1.png" alt />
      </div>
      <!-- <div class="imgBox2">
        <img src="../../assets/img/module_3_2.png" alt>
      </div>-->
    </div>

    <div v-if="loading" class="module_2" id="module_2">
      <div class="title">
        {{ characters == 1 ? '中之人驱动' : '“中の人”manipulation' }}
      </div>
      <div class="xian"></div>
      <div class="title_ctn">
        {{
          characters == 1
            ? '中之人驱动数字形象，快速生产各种背景下的视频，短片，影视剧等，让您的数字人轻松进入各种复杂场景，'
            : 'Metavatar also supports the “中の人“ vtuber manipulation. Generating videos and broadcasting content on demand in any complex cases.'
        }}
      </div>
      <div class="title_ctn">
        {{ characters == 1 ? '为企业在数字内容上提供丰富的体验，大幅节省成本提高生产效率。' : 'Provide extremely expenses saving & extendable user experience in digital content producing process.' }}
      </div>
      <div class="title_btn" @click="goLogin">
        {{ characters == 1 ? '立刻体验' : 'Try it now' }}
      </div>
    </div>

    <div v-if="loading" class="module_3" id="module_3">
      <!-- <div class="imgBox1">
        <img src="../../assets/img/module_3_1.png" alt>
      </div>-->
      <div class="imgBox2">
        <img src="https://suimang.oss-cn-beijing.aliyuncs.com/builtin/static/wap/module_3_2.png" alt />
      </div>
    </div>

    <div v-if="loading" class="module_5" id="module_5">
      <img src="https://suimang.oss-cn-beijing.aliyuncs.com/builtin/static/wap/module_5_bg2.png" alt class="module_5_bg1" />
      <div class="titleBox">
        <div class="title">
          {{ characters == 1 ? '快速 高效 完美' : 'Flexible and Vivid Avatar' }}
        </div>
        <div class="paragraph">
          {{
            characters == 1
              ? 'MetaGene是邃芒科技自主技术研发的自动化数字人平台，以GAN（生成对抗网络）、NeRF（神经辐射场）、多模态合成技术为基础，并加持NLP与知识图谱能力，建设元宇宙的基础设施。MetaGene 实现无人工干预的形象创造、数字人驱动以及智能交互全流程，通过MetaGene可以实时创造高辨率的虚拟数字人形象，数字分身，并且可以自由的编辑及风格化。'
              : 'MetaGene is an automated digital human platform developed by Metavatar. MetaGene is based on GAN (Generative Adversarial Network), NeRF (Neural Radiation Field) and multimodal synthesis technology, combined by NLP and knowledge graph capabilities to build the infrastructure of the Metaverse. '
          }}
        </div>

        <div class="paragraph" v-if="characters != 1">
          User can experiences a completely automatic process of character creation, manipulation and intelligent interaction without any intervention.MetaGene provides high-resolution virtual digital
          human , “digital twin”, symbolization characters editable freely rapidly.
        </div>

        <div class="paragraph">
          {{
            characters == 1
              ? 'MetaGene不仅支持通过语音、文字、视频等多种有/无中之人的数字人驱动方式，为用户生成实时的生成高质量的视频内容；还通过先进技术手段降低前端算力依赖，解决直播实时性等复杂场景问题。'
              : 'MetaGene not only supports real-time high-quality video content generation for users through voice, text, video and other manipulation approaches; It also reduces the front-end computing power cost and compatible in the complex scenario, such as live broadcast real-time.'
          }}
        </div>

        <div class="paragraph">
          {{
            characters == 1
              ? 'MetaGene为数字人提供了智能交互的能力，让输出的形象具备智能化互动功能，帮助处理实际业务中的问题，协助完成任务。'
              : 'MetaGene provides digital human with the interactive ability, the character will have intelligent interactive functions, help to deal with real world problems in the business and assistance in completing tasks.'
          }}
        </div>
        <div class="read_btn" @click="goLogin">
          {{ characters == 1 ? '了解详情' : 'Read more' }}
        </div>
      </div>

      <!-- <div class="md1" id="md2"></div> -->
    </div>

    <div v-if="loading" class="module_6" id="module_6">
      <div class="title">
        {{ characters == 1 ? '邃芒数字人可服务的场景' : 'Scenarios that Suimang Digital Humans can serve' }}
      </div>
      <div class="imgBox">
        <div class="itemBox" v-for="(item, index) in module_6_data" :key="index">
          <img :src="item.url" alt />
          <p>{{ characters == 1 ? item.name : item.name_y }}</p>
        </div>
      </div>
    </div>

    <div v-if="loading" class="module_7">
      <div class="title">
        {{ characters == 1 ? '超写实数字人的互动全新体验' : 'A new interactive experience of hyper-realistic digital people' }}
      </div>
      <div class="fillBox">
        <div class="hintBox">
          <div class="triangle"></div>
          <div class="news1">
            {{ characters == 1 ? '你好，我是XXXX' : "Hello, I'm XXXX" }}
          </div>
        </div>

        <div class="hintBox2">
          <div class="triangle"></div>
          <div class="news1">
            {{ characters == 1 ? '你会说英语吗？Avrli' : 'Do you speak English? Avrli' }}
          </div>
        </div>

        <div class="hintBox3">
          <div class="triangle"></div>
          <div class="news1">
            <span>Which one would you like--this one or that one</span>
          </div>
        </div>

        <div class="hintBox4">
          <div class="triangle"></div>
          <div class="news1">
            {{ characters == 1 ? '你会说英语吗？Avrli' : 'Do you speak English? Avrli' }}
          </div>
        </div>
        <div class="hintBox5">
          <div class="triangle"></div>
          <div class="news1">
            {{ characters == 1 ? '据北京市气象局消息，丰台、石景山有雷阵雨天气' : 'According to the Beijing Meteorological Bureau,' }}
          </div>
        </div>
        <div class="bnt_look" @click="goLogin">
          {{ characters == 1 ? '立刻体验' : 'Try it now' }}
        </div>
      </div>
    </div>

    <div v-if="loading" class="module_9" id="module_9">
      <div class="weBox">
        <div class="weText">
          <div class="conBox">
            <div class="title" v-if="characters == 2">ABOUT ME</div>
            <div class="title_h" v-if="characters == 1">关于我们</div>
            <div :class="characters == 1 ? 'ctn1' : 'ctn'">
              {{ characters == 1 ? '北京邃芒科技公司正式成立于2021年8月，团队组建于2018年10月。' : 'Metavatar is founded in August 2021, the team built up in year 2018. ' }}
            </div>
            <div :class="characters == 1 ? 'ctn_c1' : 'ctn_c'">
              {{
                characters == 1
                  ? '3年迭代形成AI技术为基础的数字人全生产流程，拥有业界顶尖AI形象生成和驱动技术，积累了独有的亚洲超现实数字人数据资产，已成功商用于工业级影视、品牌商和直播。团队均来自科研机构及一流院所，拥有来自悉尼科技大学, 北邮，中科院，清华的博士硕士团队和行业内一流人才。'
                  : "In the past 3 years, Metavatar has iteratively been forming the whole production process of digital human based on AI technology. We own the industry's top AI image generation and driving technology, and has accumulated unique Asian surreal digital human data assets, which have been successfully used in industrial-grade film and television, brand owners and live broadcasts. The team is from scientific research institutions and first-class institutes, with PhD and Masters from the UTS, BUPT , CAS, Tsinghua University and first-class talents in the industry."
              }}
            </div>
            <div :class="characters == 1 ? 'ctn_c1' : 'ctn_c'">
              {{
                characters == 1
                  ? '邃芒科技专注虚拟数字人，提供未来世界数字形象巨量需求的生产力与能力，依靠技术与商业双轮驱动为用户打开元宇宙大门。'
                  : 'Metavatar focus on digital human sector, provides capability of producing the massive amount requirements for the future metaverse. Vision to be the first level company as a KEY to knock out the door of metaverse; Developing the leading technology and create customer value along the way.'
              }}
            </div>
          </div>
        </div>
      </div>
    </div>
    <div class>
      <div class="cooperationBox">
        <div class="titleBox">
          <!-- <div class="title">PARTNER</div> -->
          <div class="title_h" v-if="characters == 1">合作伙伴</div>
        </div>
      </div>

      <div class="cooperation">
        <div class="cooperationItem0" v-for="(item, index) in partnerLsit" :key="index">
          <img :src="item.url" alt />
        </div>
      </div>
    </div>

    <div class="contentBox" v-if="dialogVisible">
      <div class="titleBox">
        <div class="guan" @click="dialogVisible = false">x</div>
      </div>

      <div class="contentInput">
        <input type="text" :placeholder="characters == 1 ? '姓名' : 'Name'" v-model="userName" />
      </div>
      <div class="contentInput">
        <input type="text" :placeholder="characters == 1 ? '手机' : 'Phone Number'" v-model="phone" />
      </div>
      <div class="contentInput">
        <input type="text" :placeholder="characters == 1 ? 'E-mail' : 'Mail'" v-model="email" />
      </div>
      <div class="subBtn" @click="submit()">
        {{ characters == 1 ? '提交' : 'Submit' }}
      </div>
    </div>

    <van-popup
      v-model="show"
      position="top"
      :style="{
        width: '70%',
        height: '90%',
        'background-color': 'rgb(255, 255, 255,0)',
        'margin-top': '10%'
      }">
      <div class="goItem" @click="goView('module_2')">
        {{ characters == 1 ? '产品能力' : 'Product' }}
      </div>
      <div class="goItem" @click="goView('module_5')">
        {{ characters == 1 ? '创新技术' : 'Technology' }}
      </div>
      <div class="goItem" @click="goView('module_6')">
        {{ characters == 1 ? '解决方案' : 'Solutions' }}
      </div>
      <!-- <div class="goItem">{{characters==1?'精选案例':'Cases'}}</div> -->
      <!-- @click="go('/aboutUs')" -->
      <div class="goItem" @click="goView('module_9')">
        {{ characters == 1 ? '关于我们' : 'About us' }}
      </div>
      <div class="languageImgBox" @click="change(1)">
        <img src="../../assets/img/cn.jpeg" alt class="cutImg" />
      </div>
      <div class="languageImgBox" @click="change(2)">
        <img src="../../assets/img/en.jpg" alt class="cutImg" />
      </div>
    </van-popup>
  </div>
</template>

<script>
import 'swiper/dist/js/swiper';
import 'swiper/dist/css/swiper.css';
import Swiper from 'swiper';
import { mapState, mapActions } from 'vuex';
import top from '../common/top.vue';

import { Toast } from 'vant';
import Vue from 'vue';
Vue.use(Toast);

import { oneList, twoList, threeList } from './load.js';

export default {
  components: {
    top
  },
  data() {
    return {
      inPage: false,
      loading: false,
      videoUrl: '',
      userName: '',
      phone: '',
      email: '',
      show: false,
      form: {
        name: '',
        phone: '',
        email: ''
      },

      rules: {
        name: [
          {
            required: true,
            min: 1,
            max: 10,
            message: '此项必填，内容最大10个字符!',
            trigger: 'blur'
          }
        ],
        phone: [
          {
            required: true,
            trigger: 'change',
            message: '请先输手机号'
          },
          {
            validator(rule, value, callback, source, options) {
              var errors = [];
              // var mobile = /^1[0|1|2|3|4|5|6|7|8|9]\d{9}$/,
              let phone = /^1[35789]\d{9}$/;
              if (value && !phone.test(value)) {
                callback('抱歉，请输入正确的手机号');
              }
              callback(errors);
            }
          }
        ],
        email: [
          {
            required: true,
            trigger: 'change',
            message: '请先输邮箱'
          }
        ]
      },
      // characters: 1, //1=》中文 2=》英文
      timeFlag: 5,
      dialogVisible: false,
      module_6_data: [
        {
          url: '',
          name: '教育',
          name_y: 'Education',
          des: '创新和丰富的学习体验',
          des_y: 'Innovative & richinng the learning experience'
        },
        {
          url: '',
          name: '金融',
          name_y: 'Finance',
          des: '加强客户服务，通过新颖的互动方式与客户搭建沟通桥梁',
          des_y: 'Enhance customer service, engage client relations through new innteravtive ways'
        },
        {
          url: '',
          name: ' 电商',
          name_y: 'E-commerce',
          des: '7*24全天候数字员工线上销售和品牌推广',
          des_y: '7*24 employee online selling & brands promotion'
        },
        {
          url: '',
          name: '零售与品牌',
          name_y: 'Retails',
          des: '数字广告代言人以前所未有的方式打造品牌',
          des_y: 'Branding in a different new way by digital Ads endorsers.'
        },
        {
          url: '',
          name: '技术服务',
          name_y: 'Avatar tech provider',
          des: '可以将创造的数字人形象、行为和全部交互轻松的部署到自己的应用服务中',
          des_y: 'Provide all capability of avatar creation, manipulation & interactive of metavatar to deploy them in your own applications.'
        },
        {
          url: '',
          name: '娱乐',
          name_y: 'Entertaining',
          des: '让您在元宇宙中拥有时尚靓丽的数字孪生',
          des_y: 'Exiciting etertaning experience by digital twins, stylishing the pictures & video, great looking avatars in metaverse.'
        },
        {
          url: '',
          name: '影视特效 ',
          name_y: 'Special Effects',
          des: '通过Ai技术在电影特效中使用虚拟角色，极大的提高了效率，加强视觉效果',
          des_y: 'A.I. technology for avatars deployed in movie special effects, great enhancement of effects production.'
        },
        {
          url: '',
          name: '公共服务',
          name_y: 'Public Sector',
          des: '当人们需要帮助和助手时，数字公共服务人员24*7随时为您的繁重工作待命',
          des_y: '24*7 public service employee for repetitive heavy duties, anytime ready when people need help and assistant.'
        }
      ],
      carouselLsit: [
        {
          url: ''
        },
        {
          url: ''
        },
        {
          url: ''
        }
      ],
      partnerLsit: [
        {
          url: ''
        },
        {
          url: ''
        },
        {
          url: ''
        },
        {
          url: ''
        },
        {
          url: ''
        }
      ],
      timeLsit: [
        {
          title: '2018-10',
          ctn1_y: 'Team built up in Oct. 2018',
          // ctn2_y: "Team built up in Oct. 2018",
          ctn1: '团队组建'
          // ctn2: "团队组建"
        },
        {
          url: '',
          title: '2019',
          ctn1_y: 'Deliver the first movie project in May. 2019',
          // ctn2_y: "Deliver the first movie project in May. 2019",
          ctn1: '第一个影视特效 ',
          ctn2: '项目交付'
        },
        {
          url: '',
          title: '2021-05',
          ctn1_y: 'Beta of MetaGene published in May,2021',
          // ctn2_y: "Beta of MetaGene published in May,2021",
          ctn1: '内部产品',
          ctn2: 'Metagene V1完成'
        },

        {
          url: '',
          title: '2021-08',
          ctn1_y: 'Metavatar built up in Aug, 2021',
          // ctn2_y: "Metavatar built up in Aug, 2021",
          ctn1: '邃芒科技成立'
          // ctn2: "邃芒科技成立",
        },
        {
          url: '',
          title: '2022-01',
          ctn1_y: 'Angel fund in Jan, 2022',
          // ctn2_y: "Angel fund in Jan, 2022",
          ctn1: '获得天使轮融资'
          // ctn2: "获得天使轮融资",
        },
        {
          url: '',
          title: '2022-06',
          ctn1_y: 'Deliver the first project based on Magenta for our strategic partner in Jun,2022',
          // ctn2_y: "Beta of MetaGene published in May,2021",
          ctn1: '为战略合作伙伴新奥特',
          ctn2: '交付首个基于MetaGene的内容生产项目'
        }
      ]
    };
  },
  methods: {
    ...mapActions(['setCharacters']),

    goLogin() {
      this.$router.push('/myPage');
      return;

      const AccessToken = localStorage.getItem('AccessToken');
      if (AccessToken) {
        this.$axios({
          method: 'get',
          // url: `https://smapitest.malls.iformall.com/C/api/userVideo/list?pageNum=1&pageSize=3`,
          // url: `http://m.metavatar.cc/C/api/userVideo/list?pageNum=1&pageSize=3`,
          url: process.env.VUE_APP_API_ROOT + `/api/userVideo/list?pageNum=1&pageSize=3`,
          headers: {
            'Content-Type': 'application/json;charset=UTF-8',
            token: AccessToken
          }
        })
          .then(res => {
            if (res.data.code == 1052) {
              this.$router.push('/login');
              return;
            } else {
              this.$router.push('/myPage');
            }
          })
          .catch(err => {
            Toast.fail(err.message);
          });
      } else {
        this.$router.push('/login');
      }
    },

    showPopup() {
      this.show = true;
    },
    change(value) {
      this.setCharacters(value);
      this.show = false;
    },
    showBox() {
      this.dialogVisible = true;
    },
    goView(id) {
      document.querySelector('#' + id).scrollIntoView({
        behavior: 'smooth',
        block: 'start',
        inline: 'nearest'
      });
      this.show = false;
    },
    submit() {
      let phone = /^1[35789]\d{9}$/;
      if (this.userName == '') {
        Toast.fail(this.characters == 1 ? '请输入姓名' : 'Please enter your name');
        return;
      } else if (!phone.test(this.phone)) {
        Toast.fail(this.characters == 1 ? '请输入手机号' : 'Please enter your mobile phone number');
        return;
      } else if (this.email == '') {
        Toast.fail(this.characters == 1 ? '请输入邮箱' : 'Please enter email address');
        return;
      }
      let params = {
        mallName: this.email, //邮箱
        applicant: this.userName, //姓名
        phone: this.phone //电话
      };
      this.$axios({
        method: 'post',
        url: 'http://www.metavatar.cc/api/callback/wxMallApply/add',
        headers: {
          'Content-Type': 'application/json;charset=UTF-8'
        },
        data: params
      })
        .then(res => {
          this.email = '';
          this.userName = '';
          this.phone = '';
          this.dialogVisible = false;
          Toast.success(this.characters == 1 ? '提交成功' : 'submit successfully');
        })
        .catch(err => {
          Toast.fail(err.message);
        });
    }
  },
  computed: {
    ...mapState({
      characters: state => state.publicObj.characters
    })
  },

  mounted() {
    this.goView('top');
    this.$nextTick(() => {
      this.module_6_data = oneList;
      this.carouselLsit = twoList;
      this.partnerLsit = threeList;
      this.videoUrl = 'https://video.metavatar.cc/sv/d51a6f6-187fa2dff79/d51a6f6-187fa2dff79.mp4';
      this.loading = true;
    });

    new Swiper('.swiper-container', {
      slidesPerView: 3,
      spaceBetween: 30,
      centeredSlides: true,
      loop: true,

      // 如果需要分页器
      pagination: {
        el: '.swiper-pagination',
        clickable: true // 分页器可以点击
      },

      // 如果需要前进后退按钮
      navigation: {
        nextEl: '.swiper-button-next',
        prevEl: '.swiper-button-prev'
      },

      // 如果需要滚动条
      scrollbar: {
        el: '.swiper-scrollbar'
      }
    });
    this.inPage = true;
  }
};
</script>

<style lang="scss" scoped>
@keyframes showIn {
  50% {
    transform: translateY(-25%);
  }
  100% {
    transform: translateY(0);
  }
}

.contentBox {
  width: 90%;
  background-color: rgba(0, 0, 0, 0.5);
  position: fixed;
  top: 200px;
  left: 5%;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s;
  animation: showIn 0.3s;
  .titleBox {
    overflow: hidden;
    .guan {
      float: right;
      font-size: 18px;
      padding: 10px 20px;
      text-align: center;
      color: #fff;
    }
  }

  .contentInput {
    width: 220px;
    height: 36px;
    background: #ffffff;
    text-align: center;
    margin: 0 auto 10px auto;
    input {
      width: 200px;
      height: 36px;
    }
    input::placeholder {
      font-weight: 400;
      color: #949494;
    }
  }
  .subBtn {
    width: 70px;
    height: 24px;
    background: #ffffff;
    border-radius: 24px;
    text-align: center;
    line-height: 24px;
    cursor: pointer;
    font-size: 14px;
    margin: 20px auto 10px auto;
  }
}

.font {
  font-size: 12px;

  transform: scale(0.83, 0.83);

  *font-size: 10px;
}
.goItem {
  margin: 20px;
  color: #fff;
  font-size: 14px;
}
.languageImgBox {
  margin: 10px 0 0 20px;
  overflow: hidden;
  img {
    width: 25px;
    height: 25px;
    border-radius: 50px;
    border: 1px #fff solid;
  }
}
.Box {
  width: 100%;
  overflow: hidden;
  transform: translateX(30%);
  opacity: 0;
  transition: all 0.5s; // global-transition
  &.active {
    opacity: 1;
    transform: translateX(0);
  }
}
.topBox {
  width: 100%;
  height: 30px;
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  // background-color:red;
  .userImg {
    float: right;
    width: 30px;
    height: 30px;
    margin-top: 3px;
    margin-right: 10px;
  }
  .more {
    width: 25px;
    height: 20px;
    float: right;
    margin-top: 6px;
    margin-right: 10px;
    .wire {
      width: 20px;
      height: 1px;
      background-color: #fff;
      margin-top: 5px;
    }
  }
}
.logoBox {
  margin-top: 35px;
  margin-left: 35px;
  margin-bottom: 35px;
  float: left;
  overflow: hidden;
}
.logo {
  float: left;
  //   width: 60px;
  //   height: 30px;
}
.logoTitle {
  float: left;
  line-height: 30px;
  margin-left: 10px;
  font-size: 22px;
}
.categoryBox {
  height: 30px;
  width: 600px;
  float: left;
  margin-top: 20px;
  margin-left: 16%;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}
.categoryitem {
  width: 110px;
  line-height: 30px;
  color: #7d7d7d;
  font-size: 15px;
  // background-color: #16e9d6
}
.cutBox {
  float: right;
  margin-top: 35px;
  margin-right: 50px;
  overflow: hidden;
  cursor: pointer;
}
.cutImg {
  width: 30px;
  height: 20px;
  float: left;
  margin-top: 10px;
  margin-right: 10px;
}
.en {
  float: left;
  font-size: 15px;
}
.md1 {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 70px;
  width: 100%;
}
.module_1 {
  width: 100%;
  background-color: #202020;
  // height: 100vh;
  // height: 640px;
  // background-color: aquamarine;
  // background-image: url("../../assets/img/bg.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  overflow: hidden;
  position: relative;

  .titleBox {
    width: 55%;
    position: absolute;
    top: 420px;
    left: 40px;
    overflow: hidden;
    color: #fff;
    .title_item1 {
      margin-bottom: 6px;
      font-size: 18px;
    }
    .title_item1_y {
      // margin-bottom: 14px;
      font-size: 18px;
    }
    .title_item2 {
      margin-bottom: 8px;
      font-size: 18px;
    }
    .title_item3 {
      font-size: 12px;
      line-height: 14px;
    }
    .title_btn {
      margin-top: 24px;
      height: 22px;
      width: 80px;
      text-align: center;
      line-height: 22px;
      color: #fff;
      border-radius: 16px;
      border: #fff solid 2px;
      font-size: 14px;
      cursor: pointer;
    }
  }
}

.module_2 {
  overflow: hidden;
  // height: 180px;
  background-color: #202020;
  .title {
    font-size: 18px;
    text-align: center;
    color: #fff;
    margin-top: 10px;
  }
  .xian {
    width: 80%;
    height: 0.5px;
    margin: 10px auto;
    background-color: #16e9d6;
  }
  .title_ctn {
    width: 92%;
    margin: 0 auto 6px auto;
    font-size: 6px;
    color: #7e7e7e;
    font-family: Microsoft YaHei;
  }
  .title_btn {
    margin: 0 auto 10px auto;
    height: 22px;
    width: 80px;
    text-align: center;
    line-height: 22px;
    border-radius: 16px;
    font-size: 12px;
    cursor: pointer;
    color: #16e9d6;
    border: #16e9d6 solid 1px;
  }
}

.module_3 {
  overflow: hidden;
  background-color: #202020;
  .imgBox1 {
    width: 100%;
    height: 228px;
    float: left;
    // background-color: #16e9d6;
    img {
      width: 100%;
      height: 100%;
    }
  }
  .imgBox2 {
    width: 100%;
    height: 228px;
    float: right;
    // background-color: #16e9d6;
    img {
      width: 100%;
      height: 100%;
    }
  }
}
.module_4 {
  overflow: hidden;
  background-color: #202020;
  .btnBox1 {
    width: 49%;
    height: 96px;
    float: left;
    overflow: hidden;
    position: relative;
    .btnText {
      cursor: pointer;
      top: 0;
      right: 0;
      left: 0;
      bottom: 0;
      position: absolute;
      margin: auto;
      height: 24px;
      width: 88px;
      text-align: center;
      line-height: 24px;
      color: #16e9d6;
      border-radius: 40px;
      border: #16e9d6 solid 3px;
      font-size: 14px;
    }
  }
  .btnBox2 {
    width: 49%;
    height: 96px;
    float: right;
    overflow: hidden;
    position: relative;
    .btnText {
      cursor: pointer;
      top: 0;
      right: 0;
      left: 0;
      bottom: 0;
      position: absolute;
      margin: auto;
      height: 24px;
      width: 88px;
      text-align: center;
      line-height: 24px;
      color: #16e9d6;
      border-radius: 40px;
      border: #16e9d6 solid 3px;
      font-size: 14px;
    }
  }
}
.module_5 {
  background-color: #010101;
  position: relative;
  overflow: hidden;
  .module_5_bg1 {
    width: 100%;
    height: 560px;
  }
  .titleBox {
    margin-top: 20px;
    .title {
      font-size: 20px;
      font-family: Inter;
      font-weight: 600;
      margin-bottom: 28px;
      color: #fff;
      text-align: center;
    }
    .paragraph {
      width: 90%;
      margin: 0 auto 8px auto;
      font-weight: 400;
      color: #7e7e7e;
      font-size: 6px;
      font-family: Microsoft YaHei;
    }
    .read_btn {
      margin: 20px auto;
      height: 22px;
      width: 80px;
      text-align: center;
      line-height: 22px;
      border-radius: 16px;
      font-size: 13px;
      cursor: pointer;
      color: #16e9d6;
      border: #16e9d6 solid 1px;
    }
  }
}
.module_6 {
  background-color: #fff;
  margin-bottom: 40px;
  overflow: hidden;
  .title {
    height: 20px;
    text-align: center;
    font-size: 16px;
    color: #000;
    margin-top: 30px;
  }
  .imgBox {
    width: 96%;
    margin: 30px auto 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    .itemBox {
      width: 170px;
      height: 172px;
      position: relative;
      margin-bottom: 10px;
      img {
        width: 100%;
        height: 100%;
      }
      p {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 14px;
        margin: auto;
        color: #fff;
        width: 90%;
        font-size: 12px;
        font-family: Microsoft YaHei;
        line-height: 14px;
        font-weight: 400;
        text-align: center;
      }
    }
  }
}
.module_7 {
  overflow: hidden;
  height: 400px;
  background-color: #f0f4f7;
  position: relative;
  background-image: url('../../assets/img/module_7_bg.png');
  background-repeat: no-repeat;
  background-size: 280px 370px;
  background-position: 0% 30px;
  .title {
    width: 98%;
    margin: 0 auto;
    font-size: 14px;
    margin-top: 12px;
    height: 20px;
    text-align: center;
  }
  .fillBox {
    position: absolute;
    top: 36px;
    left: 48%;

    .hintBox {
      overflow: hidden;
      margin-top: 9px;

      .triangle {
        width: 0;
        height: 0;
        border: 8px solid transparent;
        border-right-color: #fff;
        float: left;
        margin-top: 4px;
      }
      .news1 {
        height: 20px;
        line-height: 20px;
        max-width: 150px;
        padding: 4px 8px;
        background: #ffffff;
        box-shadow: -1px 2px 4px 0px rgba(1, 3, 5, 0.1);
        border-radius: 12px;
        font-size: 10px;
        font-family: Inter;
        font-weight: 400;
        color: #232324;
        float: left;
      }
    }

    .hintBox2 {
      overflow: hidden;
      margin-top: 14px;
      margin-left: 30px;
      .triangle {
        width: 0;
        height: 0;
        border: 8px solid transparent;
        border-right-color: #fff;
        float: left;
        margin-top: 4px;
      }
      .news1 {
        height: 20px;
        line-height: 20px;
        max-width: 150px;
        padding: 4px 8px;
        background: #ffffff;
        box-shadow: -1px 2px 4px 0px rgba(1, 3, 5, 0.1);
        border-radius: 12px;
        font-size: 10px;
        font-family: Inter;
        font-weight: 400;
        color: #232324;
        float: left;
      }
    }

    .hintBox3 {
      overflow: hidden;
      margin-top: 14px;
      .triangle {
        width: 0;
        height: 0;
        border: 8px solid transparent;
        border-right-color: #fff;
        float: left;
        margin-top: 14px;
      }
      .news1 {
        height: 40px;
        line-height: 20px;
        max-width: 150px;
        padding: 4px 8px;
        background: #ffffff;
        box-shadow: -1px 2px 4px 0px rgba(1, 3, 5, 0.1);
        border-radius: 12px;
        font-size: 10px;
        font-family: Inter;
        font-weight: 400;
        color: #232324;
        float: left;
      }
    }

    .hintBox4 {
      overflow: hidden;
      margin-top: 14px;
      margin-left: 30px;
      .triangle {
        width: 0;
        height: 0;
        border: 8px solid transparent;
        border-right-color: #fff;
        float: left;
        margin-top: 4px;
      }
      .news1 {
        height: 20px;
        line-height: 20px;
        max-width: 150px;
        padding: 4px 8px;
        background: #ffffff;
        box-shadow: -1px 2px 4px 0px rgba(1, 3, 5, 0.1);
        border-radius: 12px;
        font-size: 10px;
        font-family: Inter;
        font-weight: 400;
        color: #232324;
        float: left;
      }
    }

    .hintBox5 {
      overflow: hidden;
      margin-top: 14px;
      .triangle {
        width: 0;
        height: 0;
        border: 8px solid transparent;
        border-right-color: #fff;
        float: left;
        margin-top: 14px;
      }
      .news1 {
        height: 40px;
        line-height: 20px;
        max-width: 150px;
        padding: 4px 8px;
        background: #ffffff;
        box-shadow: -1px 2px 4px 0px rgba(1, 3, 5, 0.1);
        border-radius: 12px;
        font-size: 10px;
        font-family: Inter;
        font-weight: 400;
        color: #232324;
        float: left;
        span {
          width: 104%;
          height: 100%;
          display: block;
          transform: scale(0.8);
        }
      }
    }

    .bnt_look {
      margin-top: 30px;
      margin-left: 64px;
      height: 24px;
      width: 88px;
      border: 1px solid #000000;
      border-radius: 33px;
      font-size: 14px;
      font-family: Inter;
      font-weight: 600;
      color: #000000;
      line-height: 22px;
      text-align: center;
      cursor: pointer;
    }
  }
}
.module_8 {
  height: 420px;
  background: #ffffff;
  .title {
    font-size: 30px;
    font-family: Inter;
    font-weight: 600;
    color: #191919;
    // line-height: 62px;
    margin-top: 80px;
    text-align: center;
    // margin-bottom: 40px;
  }
  .title_1 {
    text-align: center;
    font-size: 24px;
    font-family: Microsoft YaHei;
    font-weight: 400;
    color: #191919;
    line-height: 62px;
    height: 62px;
  }
  .xian {
    width: 66px;
    height: 3px;
    background: #16e9d6;
    margin: 0 auto;
    margin-bottom: 60px;
  }
  .tiktok {
    font-size: 18px;
    font-family: Inter;
    font-weight: 600;
    color: #0f1114;
    line-height: 62px;
    text-align: center;
  }
  .tiktok_ctn {
    width: 559px;
    height: 44px;
    font-size: 14px;
    font-family: Inter;
    font-weight: 400;
    color: #797979;
    line-height: 30px;
    text-align: center;
    margin: 0 auto;
  }
}
.module_9 {
  background-color: #000;
  overflow: hidden;
  .weBox {
    overflow: hidden;
    .weText {
      width: 90%;
      // background-color: #191919;
      margin: 10px auto;
      .conBox {
        overflow: hidden;
        .title {
          font-size: 18px;
          font-family: Inter;
          font-weight: 400;
          color: #ffffff;
          line-height: 32px;
          text-align: right;
        }
        .title_h {
          margin-top: 20px;
          font-size: 16px;
          font-family: Microsoft YaHei;
          font-weight: 400;
          color: #ffffff;
          text-align: center;
        }
        .ctn {
          width: 100%;
          font-size: 6px;
          font-family: Microsoft YaHei;
          font-weight: 400;
          color: #696969;
          // line-height: 24px;
          margin-top: 10px;
        }
        .ctn_c {
          width: 100%;
          font-size: 6px;
          font-family: Microsoft YaHei;
          font-weight: 400;
          color: #696969;
          // line-height: 22px;
          margin-top: 16px;
        }
        .ctn1 {
          width: 100%;
          font-size: 6px;
          font-family: Microsoft YaHei;
          font-weight: 400;
          color: #696969;
          // line-height: 20px;
          margin-top: 20px;
        }
        .ctn_c1 {
          width: 100%;
          font-size: 6px;
          font-family: Microsoft YaHei;
          font-weight: 400;
          color: #696969;
          // line-height: 20px;
          margin: 10px 0;
        }
      }
    }
    .weImg {
      width: 280px;
      height: 210px;
      float: left;
    }
  }
  .timeBox {
    overflow: hidden;
    position: relative;
    margin-bottom: 90px;
  }
  .xian {
    width: 100%;
    height: 6px;
    background: #ffffff;
    opacity: 0.57;
    position: absolute;
    top: 97px;
    left: 0;
  }
  .timeF {
    width: 1300px;
    display: flex;
    margin: 0 auto;
    justify-content: space-between;
    .itemBox {
      width: 200px;
      height: 250px;
      border: 1px solid #ffffff;
      opacity: 0.8;
      border-radius: 24px;
      background: #ffffff;
      overflow: hidden;
      .timeText {
        width: 200px;
        font-size: 16px;
        font-family: Inter;
        font-weight: 600;
        color: #313131;
        line-height: 30px;
        text-align: center;
        margin-top: 28px;
        // margin-bottom: 20px;
      }
      .ImgBox {
        width: 23px;
        height: 23px;
        margin: 30px auto 10px auto;
        // margin-bottom: 10px;
        img {
          width: 23px;
          height: 23px;
        }
      }
      .ctn {
        width: 160px;
        // height: 20px;
        font-size: 12px;
        font-family: Microsoft YaHei;
        font-weight: 400;
        color: #313131;
        line-height: 24px;
        margin: 0 auto;
        text-align: center;
      }
    }
  }
}
.cooperationBox {
  // margin-bottom: 30px;
  .titleBox {
    .title_h {
      font-size: 16px;
      font-family: Microsoft YaHei;
      font-weight: 400;
      color: #0d0912;
      line-height: 40px;
      margin-left: 10px;
      text-align: center;
    }
  }
}
.cooperation {
  overflow: hidden;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  width: 200px;
  margin: 0 auto;

  .cooperationItem0 {
    width: 80px;
    height: 30px;
    margin: 5px 10px;
    //  margin-left: 100px;
    img {
      width: 80px;
      height: 36px;
    }
  }
  .cooperationItem1 {
    width: 80px;
    height: 40px;
    margin-left: 10px;
    margin-left: 180px;
    img {
      width: 100%;
      height: 100%;
    }
  }
  .cooperationItem2 {
    width: 80px;
    height: 40px;
    margin-left: 100px;
    img {
      width: 100%;
      height: 100%;
    }
  }
  .cooperationItem3 {
    width: 80px;
    height: 40px;
    margin-left: 180px;
    img {
      width: 100%;
      height: 100%;
    }
  }
  .cooperationItem4 {
    width: 80px;
    height: 40px;
    margin-left: 100px;
    img {
      width: 100%;
      height: 100%;
    }
  }
}

.swiper-container {
  width: 100%;
}
.swiper-slide {
  width: 100%;
  height: 100%;
  text-align: center;
  font-size: 18px;
  background: #fff;

  /* Center slide text vertically */
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  -webkit-align-items: center;
  align-items: center;
  transition: 300ms;
  transform: scale(0.7);
}

.swiper-slide-active,
.swiper-slide-duplicate-active {
  transform: scale(1);
}

.swiper-slide-img {
  width: 100%;
  height: 100%;
}
</style>
