<template>
  <div class="main_content">
    <img src="https://webapp-pub.ezijing.com/www/pc/practice/Index/banner.png" class="content_banner" />
    <div class="content_part">
      <div class="part_title">数字人才产教融合基地</div>
      <div class="part_desc">
        数字经济产教融合实践基地”的建设内涵由“N+3”组成，即N个数字经济产业学院集群；一个数字经济实验室，一个数字职业技能中心；一个数字经济<br />产业与人才公共服务平台。
      </div>
    </div>
    <div class="content_part2"></div>
    <div class="content_part3">
      <div class="part3_con">
        <div class="con_list" v-for="(item, index) in list" :key="index" @click="$router.push(item.url)">
          <div class="mask"></div>
          <img class="img" :src="item.img" alt="" />
          <img class="imgActive" :src="item.imgActive" alt="" />
          <div class="list_tit">{{ item.title }}</div>
          <div class="list_desc" v-html="item.desc"></div>
          <div class="list_btn">点击进入</div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      list: [
        {
          img: 'https://webapp-pub.ezijing.com/www/pc/practice/Index/icon_gongjian.png',
          imgActive: 'https://webapp-pub.ezijing.com/www/pc/practice/Index/icon_gongjian_active.png',
          title: '数字经济产业学院',
          desc: '1+3+N <br/>打造高水平专业集群',
          url: 'practice/industry'
        },
        {
          img: 'https://webapp-pub.oss-cn-beijing.aliyuncs.com/www/pc/practice/Index/icon_shiyan.png',
          imgActive: 'https://webapp-pub.oss-cn-beijing.aliyuncs.com/www/pc/practice/Index/icon_shiyan_active.png',
          title: '数字经济实验室',
          desc: '商业数据分析实验室 <br/>数字营销实验室',
          url: '/practice/laboratory'
        },
        {
          img: 'https://webapp-pub.oss-cn-beijing.aliyuncs.com/www/pc/practice/Index/icon_1%2Bx.png',
          imgActive: 'https://webapp-pub.oss-cn-beijing.aliyuncs.com/www/pc/practice/Index/icon_1%2Bx_active.png',
          title: '数字经济人才技能中心',
          desc: '1+X职业等级证书<br/>PRP私人财富风险管理证书<br/>人社部职业证书',
          url: '/practice/skill'
        },
        {
          img: 'https://webapp-pub.oss-cn-beijing.aliyuncs.com/www/pc/practice/Index/icon_pt.png',
          imgActive: 'https://webapp-pub.oss-cn-beijing.aliyuncs.com/www/pc/practice/Index/icon_pt_active.png',
          title: '数字经济人才公共服务平台',
          desc: '6项人才对接服务<br/>打造高质量就业',
          url: '/practice/talent'
        }
      ]
    }
  }
}
</script>

<style lang="scss" scoped>
.main_content {
  width: 100%;
  background: #ffffff;
  .content_banner {
    width: 100%;
    height: 580px;
  }
  .content_part {
    width: 100%;
    height: 316px;
    background: #f9f8f8;
    padding: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    .part_title {
      font-size: 30px;
      font-weight: bold;
      color: #333333;
    }
    .part_desc {
      margin-top: 36px;
      font-size: 18px;
      font-weight: 400;
      line-height: 34px;
      color: #666666;
      white-space: nowrap;
      text-align: center;
    }
  }
  .content_part2 {
    width: 1200px;
    height: 662px;
    margin: 106px auto;
    background: url('https://webapp-pub.ezijing.com/www/pc/practice/Index/jd_bg.png') no-repeat center;
    background-size: 100% 100%;
  }
  .content_part3 {
    width: 100%;
    height: 626px;
    background: #f9f8f8;
    padding-top: 120px;

    .part3_con {
      width: 1200px;
      margin: auto;
      display: flex;
      justify-content: space-between;
      .con_list {
        width: 285px;
        // background: rgba(255, 255, 255, 0.39);
        background-size: 100% 100%;
        box-shadow: 0px 1px 12px rgba(0, 0, 0, 0.13);
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 47px 0 48px 0;
        border-bottom: 3px solid #aa1941;
        cursor: pointer;

        position: relative;
        .list_tit {
          font-size: 22px;
          font-weight: bold;
          color: #333333;
        }
        .list_desc {
          font-size: 20px;
          font-weight: 400;
          line-height: 38px;
          color: #666666;
          margin-top: 32px;
          text-align: center;
        }
        .list_btn {
          width: 107px;
          height: 37px;
          background: #aa1941;
          text-align: center;
          line-height: 37px;
          font-size: 14px;
          font-weight: 400;
          color: #ffffff;
          margin-top: 72px;
        }
        .imgActive {
          display: none;
        }
        .mask {
          position: absolute;
          background: none;
          top: 0;
          right: 0;
          width: 100%;
          height: 100%;
          pointer-events: none;
        }
        &:hover {
          border: none;
          position: relative;
          z-index: 10;
          background-image: url('https://webapp-pub.oss-cn-beijing.aliyuncs.com/www/pc/practice/Index/bg1.png');
          .mask {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.24) !important;
            z-index: 20;
          }
          .imgActive {
            display: block;
            position: relative;
            z-index: 30;
          }
          .img {
            display: none;
          }
          .list_tit,
          .list_desc {
            color: #ffffff;
            position: relative;
            z-index: 30;
          }
          .list_btn {
            background: #ffffff;
            color: #333333;
            position: relative;
            z-index: 30;
          }
        }
      }
      .con_list:nth-child(3) {
        &:hover {
          background-image: url('https://webapp-pub.oss-cn-beijing.aliyuncs.com/www/pc/practice/Index/bg3.png');
        }
        .list_tit {
          margin-top: 24px;
        }
        .list_btn {
          margin-top: 34px;
        }
      }
      .con_list:nth-child(1) {
        &:hover {
          background-image: url('https://webapp-pub.oss-cn-beijing.aliyuncs.com/www/pc/practice/Index/bg1.png');
        }
        .list_tit {
          margin-top: 26px;
        }
      }
      .con_list:nth-child(2) {
        &:hover {
          background-image: url('https://webapp-pub.oss-cn-beijing.aliyuncs.com/www/pc/practice/Index/bg2.png');
        }
        .list_tit {
          margin-top: 21px;
        }
      }
      .con_list:nth-child(4) {
        &:hover {
          background-image: url('https://webapp-pub.oss-cn-beijing.aliyuncs.com/www/pc/practice/Index/bg4.png');
        }
        .list_tit {
          margin-top: 22px;
        }
      }
    }
  }
}
</style>
