<template>
  <div class="container">
    <common-banner :img="bgImg" :height="644">
      <div class="content-wrap">
        <div class="content w1200">
          <no-ssr>
            <submit-form></submit-form>
          </no-ssr>
        </div>
      </div>
    </common-banner>

    <!-- 优质输出平台 -->
    <div class="quality">
      <div class="quality-content">
        <title-content :title="'全球优质教育内容输出平台'" :titleSub="'GIOBAL QUALITY EDUCATION CONTENT EXPORT PLATFORM'"></title-content>
        <div class="q-content w1200">
          <img class="main-img" src="~/assets/images/contact/quality_img.png" alt="" srcset="">
          <img class="bt-img" src="~/assets/images/contact/quality_footer.png" alt="" srcset="">
          <!-- <p class="desc">全球多个国家   众多教学机构   都在使用的新一代教育方案</p> -->
        </div>
      </div>
    </div>

    <!-- 针对儿童思维开发 -->
    <div class="thinking">
      <div class="t-content w1200">
        <div class="t-top title-content">
          <div class="title">针对儿童思维开发</div>
          <div class="title-sub">以孩子为核心</div>
        </div>
        <div class="thinking-content-box">
          <div class="content-left">
            <img src="~/assets/images/contact/thinking_img.png" alt="" srcset="~/assets/images/contact/thinking_img.png, ~/assets/images/contact/thinking_img@2x.png">
          </div>
          <div class="content-right">
            <div class="content-right-top">
              <div class="img-item img-item-arrow01">
                <img src="~/assets/images/contact/thinking_arrow_01.png" alt="" srcset="~/assets/images/contact/thinking_arrow_01.png, ~/assets/images/contact/thinking_arrow_01@2x.png">
              </div>
              <div class="img-item img-item-icon right-top-02">
                <img src="~/assets/images/contact/thinking_icon_01.png" alt="" srcset="~/assets/images/contact/thinking_icon_01.png, ~/assets/images/contact/thinking_icon_01@2x.png">
                <!-- <div class="span-item">
                  <span>激发</span>
                  <span>兴趣</span>
                </div> -->
              </div>
              <div class="img-item img-item-arrow02">
                <img src="~/assets/images/contact/thinking_arrow_02.png" alt="" srcset="~/assets/images/contact/thinking_arrow_02.png, ~/assets/images/contact/thinking_arrow_02@2x.png">
              </div>
            </div>
            <div class="content-right-bottom">
              <div class="img-item img-item-icon">
                <img src="~/assets/images/contact/thinking_icon_02.png" alt="" srcset="~/assets/images/contact/thinking_icon_02.png, ~/assets/images/contact/thinking_icon_02@2x.png">
                <!-- <div class="span-item">
                  <span>探索</span>
                  <span>实践</span>
                </div> -->
              </div>
              <div class="img-item img-item-arrow03">
                <img src="~/assets/images/contact/thinking_arrow_03.png" alt="" srcset="~/assets/images/contact/thinking_arrow_03.png, ~/assets/images/contact/thinking_arrow_03@2x.png">
              </div>
              <div class="img-item img-item-icon">
                <img src="~/assets/images/contact/thinking_icon_03.png" alt="" srcset="~/assets/images/contact/thinking_icon_03.png, ~/assets/images/contact/thinking_icon_03@2x.png">
                <!-- <div class="span-item">
                  <span>掌握</span>
                  <span>方法</span>
                </div> -->
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>

    <!-- 逻辑狗激发学习兴趣 -->
    <div class="interest">
      <div class="i-content w1200">
        <title-content :title="'逻辑狗激发学习兴趣'" :titleSub="'逻辑狗提供的智力游戏，于孩子的生活实际，让孩子在熟悉的知识环境中，锻炼自己的思维，丰富自己的知识，这对孩子的健康成长也是很有帮助的。'"></title-content>
        <!-- <div class="t-top title-content">
          <div class="t-title title-zh wow animate__animated animate__fadeInDown">
            <div class="title-en">LEARNING INTEREST</div>
            逻辑狗激发学习兴趣
          </div> 
          <p class="title-sub">逻辑狗提供的智力游戏，于孩子的生活实际，让孩子在熟悉的知识环境中，锻炼自己的思维，丰富自己的知识，这对孩子的健康成长也是很有帮助的。</p>
        </div> -->
        <div class="interest-content-box">
          <div class="interest-item">
            <img class="inter-img" src="~/assets/images/contact/interest_01.png" alt="" srcset="~/assets/images/contact/interest_01.png, ~/assets/images/contact/interest_01@2x.png">
            <img class="btm-img" src="~/assets/images/contact/interest_btm.png" alt="" srcset="">
          </div>
          <div class="interest-item">
            <img class="inter-img" src="~/assets/images/contact/interest_02.png" alt="" srcset="~/assets/images/contact/interest_02.png, ~/assets/images/contact/interest_02@2x.png">
            <img class="btm-img" src="~/assets/images/contact/interest_btm.png" alt="" srcset="">
          </div>
        </div>
      </div>
    </div>

    <!-- 逻辑狗教育大奖 -->
    <div class="award">
      <div class="a-content">
        <div class="t-top title-content">
          <div class="title">逻辑狗教育大奖</div>
          <div class="title-sub">THE CLITURELOGIC DOG EDUCATION AWARD'</div>
        </div>
        <div class="award-content-box">
          <div class="img">
            <img src="~/assets/images/contact/award_img.png" alt="" srcset="~/assets/images/contact/award_img.png, ~/assets/images/contact/award_img@2x.png">
          </div>
        </div>
      </div>
    </div>

    <!-- 校园风采 -->
    <div class="campus">
      <div class="c-content w1200">
        <title-content :title="'校园风采'" :titleSub="'THE CAMPUS'"></title-content>
        <div class="campus-content-box">
          <div :class="['campus-item', item.id == currentId ? 'active' : '']" v-for="(item, index) in campusList" :key="index" @mouseenter="campusEnter(item)">
            <div class="img">
              <img :src="item.imgUrl" alt="" srcset="">
            </div>
            <div class="desc">
              {{ item.title }}
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import CommonBanner from '@/components/common/banner';
import SubmitForm from '@/components/common/form';
import TitleContent from '@/components/common/titleContent';

export default {
  data() {
    return {
      // bgImg: require('@/assets/images/contact/contact_bg.png'),
      bgImg: 'https://app-resources-luojigou.luojigou.vip/ltdTPjI8Ism4HfpcPbABoB8iwePg?imageView2/0/q/40|imageslim',
      currentId: 1,
      campusList: [
        {
          id: 1,
          imgUrl: require('~/assets/images/contact/campus_01.png'),
          title: '武商亚贸广场的小小夏令营来啦，参加小小夏令营的小朋友，从此就爱上...'
        },
        {
          id: 2,
          imgUrl: require('~/assets/images/contact/campus_02.png'),
          title: '武商亚贸广场的小小夏令营来啦，参加小小夏令营的小朋友，从此就爱上...'
        },
        {
          id: 3,
          imgUrl: require('~/assets/images/contact/campus_03.png'),
          title: '武商亚贸广场的小小夏令营来啦，参加小小夏令营的小朋友，从此就爱上...'
        },
        {
          id: 4,
          imgUrl: require('~/assets/images/contact/campus_04.png'),
          title: '武商亚贸广场的小小夏令营来啦，参加小小夏令营的小朋友，从此就爱上...'
        },
        {
          id: 5,
          imgUrl: require('~/assets/images/contact/campus_05.png'),
          title: '武商亚贸广场的小小夏令营来啦，参加小小夏令营的小朋友，从此就爱上...'
        },
        {
          id: 6,
          imgUrl: require('~/assets/images/contact/campus_06.png'),
          title: '武商亚贸广场的小小夏令营来啦，参加小小夏令营的小朋友，从此就爱上...'
        }
      ]
    }
  },
  head() {
    return {
      title: "逻辑狗官网-中德智慧教育",
      meta: [
        {
          name: "keywords",
          hid: "keywords",
          content: `逻辑狗官网、逻辑狗教材、 幼儿园教材、逻辑狗课程、逻辑狗思维训练课程、儿童思维教育、0-12岁儿童`,
        },
        {
          name: "description",
          hid: "description",
          content: `逻辑狗官方网站，专为0-12岁儿童设计的思维训练课程，中德智慧教育，全球优质教育内容输出平台`,
        },
      ],
    };
  },
  components: {
    CommonBanner,
    SubmitForm
  },
  mounted() {},
  methods: {
    campusEnter(item) {
      this.currentId = item.id;
    },
    handleClick(item) {
      // console.log(item.id);
    }
  }
}
</script>

<style lang="scss" scoped>
@import "~static/common/style.sass";

.title-content {
  position: relative;
  text-align: center;
}
.title-en {
  position: absolute;
  font-size: 56px;
  font-family: PingFangSC-Semibold, sans-serif;
  font-weight: 600;
  color:rgba(35,106,250,1);
  opacity: 0.16;
}

.title-zh {
  position: relative;
  display: inline-block;
  font-size: 46px;
  font-family:PingFangSC-Semibold, sans-serif;
  font-weight: 600;
  color:#333333;
  text-align: center;
}

.quality {
  margin-top: 100px;
  background: #FFFFFF;
  padding-bottom: 92px;
  .q-content {
    text-align: center;
    .desc {
      text-align: center;
      font-size: 26px;
      font-family: Fontquan-XinYiGuanHeiTi2.0-Regular, Fontquan-XinYiGuanHeiTi20;
      font-weight: 400;
      color: #333330;
    }
    .main-img {
      width: 1178px;
      height: 657px;
      margin: 127px auto 80px;
    }
    .bt-img {
      width: 564px;
      height: 23px;
    }
  }
}

.thinking {
  background: url('~assets/images/contact/thinking_bg.png') no-repeat;
  background-position: center;
  padding: 100px 0 100px;
  background-color: #0D5CFA;
  .title-content {
    .title {
      font-size: 34px;
      font-family: PingFangSC-Semibold, PingFang SC;
      font-weight: 600;
      color: #FFFFFF;
    }
    .title-sub {
      font-size: 16px;
      font-family: PingFangSC-Regular, PingFang SC;
      font-weight: 400;
      color: #FFFFFF;
      line-height: 22px;
      margin-top: 43px;
    }
  }
  .thinking-content-box {
    margin-top: 113px;
    display: flex;
    .content-left {
      margin-right: 112px;
      font-size: 0;
      img {
        // width: 626px 426px;
      }
    }
    .content-right {
      font-size: 0;
      .content-right-top {
        display: flex;
        justify-content: center;
        align-items: center;
        .right-top-02 {
          margin: 0 26px 0 32px
        }
      }
      .content-right-bottom {
        display: flex;
        align-items: flex-end;
      }
      .img-item-icon {
        img {
          width: 208px;
          height: 208px;
        }
      }
      .img-item-arrow01 {
        img {
          width: 50px;
          height: 45px;
        }
      }
      .img-item-arrow02 {
        img {
          width: 48px;
          height: 44px;
        }
      }
      .img-item-arrow03 {
        img {
          width: 55px;
          height: 45px;
        }
      }
    }
    .span-item {
      display: flex;
      flex-direction: column;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      span {
        font-size: 30px;
        font-family: PingFangSC-Medium, PingFang SC;
        font-weight: 500;
        color: #FFFFFF;
        line-height: 42px;
      }
    }
    .img-item-icon {
      position: relative;
    }
  }
}

.interest {
  padding: 100px 0 100px;
  .title-en {
    left: 50%;
    transform: translate(-50%);
    top: -30px;
    width: 1200px;
  }
  .i-content {
    .title-sub {
      height: 96px;
      font-size: 24px;
      font-family: PingFangSC-Regular, sans-serif;
      font-weight: 400;
      color: #999999;
      line-height: 48px;

    }
    .title-sub {
      padding: 0 100px;
      margin-top: 38px;
    }
  }
  .interest-content-box {
    display: flex;
    justify-content: space-between;
    margin-top: 100px;
    .interest-item {
      position: relative;
      text-align: center;
      font-size: 0;
      width: 588px;
      overflow: hidden;
      transition: 0.3s ease-out;
      &:hover {
        transform: translate3d(0,-8px,0);
      }
      img {
        width: 100%;
      }
      .btm-img {
        width: 173px;
        height: 25px;
      }
    }
  }
}

.award {
  padding: 100px 0 102px;
  width: 100%;
  background: url('~assets/images/contact/award_bg.png') no-repeat;
  background-size: 100% 100%;
  background-color: #0D5CFA;
  .title-content {
    .title {
      font-size: 34px;
      font-family: PingFangSC-Semibold, PingFang SC;
      font-weight: 600;
      color: #FFFFFF;
    }
    .title-sub {
      font-size: 16px;
      font-family: PingFangSC-Regular, PingFang SC;
      font-weight: 400;
      color: #FFFFFF;
      line-height: 22px;
    }
  }
  .award-content-box {
    margin-top: 102px;
    .img {
      margin: 0 auto;
      text-align: center;
      width: 1236px;
    }
  }
}

.campus {
  padding: 100px 0 100px;
  .campus-content-box {
    margin-top: 100px;
    display: flex;
    flex-wrap: wrap;
    .campus-item {
      max-width:396px;
      // margin: 0 38px 126px 0;
      padding: 18px 18px 32px 18px;
      border-radius: 20px;
      border-bottom: 2px solid transparent;
      &:nth-child(3n) {
        margin-right: 0;
      }
      &.active {
        // transform: scale(1.1);
        // padding: 18px 18px 32px 18px;
        background:#ffffff;
        border-bottom: 2px solid rgba(35,106,250,1);
        box-shadow:0px 4px 20px 0px rgba(150,150,150,0.22);
        transition: all 0.5s;
        // border-radius: 20px;
        // margin-bottom: 52px;
        .desc {
          transform: scale(1.0);
        }
      }
      &:hover {
        // background:#ffffff;
        // border-bottom: 2px solid rgba(35,106,250,1);
        // box-shadow:0px 4px 20px 0px rgba(150,150,150,0.22);
        // .desc {
        //   transform: scale(1.0);
        // }
      }
      img {
        width: 100%;
        height: 192px;
        object-fit: cover;
        border-radius: 20px;
      }
      .desc {
        margin-top: 30px;
        font-size: 18px;
        font-family: PingFangSC-Regular, sans-serif;
        font-weight: 400;
        color: #333333;
        line-height: 28px;
        text-overflow: -o-ellipsis-lastline;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
      }
    }
  }
}

</style>
