<template>
  <div class="product-box">
    <img class="banner" src="https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/x-new/pro-banner.png" />
    <section class="section">
      <!-- 实训平台介绍 -->
      <h1 class="pt-100">1+X金融产品数字化营销实训平台介绍</h1>
      <div class="describe">
        1+X金融产品数字化营销实训平台是一款既面向1+X职业技能等级证书，又面向企业数字化转型核心基础能力人才培养的综合金融产品数字化营销训练平台，该平台是在成熟工业级数字营销系统基础上进行教育适配化改造得来，提供涵盖了银行、保险、证券等多个金融行业综合案例集和配套理论与实践教学资源，定位于学生实践平台、教师科研平台、企业营销业务平台等功能为一体的综合性平台，是院校金融营销实训室建设的必备实训平台。
      </div>
      <!-- 核心模块 -->
      <h1 class="pt-80">核心模块</h1>
      <img src="https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/x-new/pro-img1.png" class="describe-img" />
      <h1 class="pt-80">案例资源</h1>
      <img src="https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/x-new/pro-img2.png" class="describe-img" />
      <p class="js">
        金融产品数字营销实验室目前配备<span>6</span>个案例，<span>6</span>篇案例原文、<span>34</span>份案例指导书、<span>33</span>套教学PPT、<span>80</span>个教学视频。
      </p>
      <!-- 案例资源示例 -->
      <h3 class="section-subtitle pt-80">案例资源示例</h3>
      <div class="tab">
        <ul class="tab-header">
          <li
            v-for="(item, index) in tabList"
            :class="{ 'is-active': index === tabActive }"
            :key="index"
            @mouseover="tabActive = index"
          >
            {{ item.title }}
          </li>
        </ul>
        <ul class="tab-body" v-for="(item, index) in tabList" :key="index" v-if="index === tabActive">
          <li v-for="item in item.children" :key="item"><img :src="item" /></li>
        </ul>
      </div>
      <!-- 产品配套服务 -->
      <h2 class="section-title">配套服务</h2>
      <h3 class="section-subtitle">标准服务</h3>
      <ul class="bz-list">
        <li v-for="item in bzfwList" :key="item.title">
          <img :src="item.icon" />
          <div class="cover">
            <h4>{{ item.title }}</h4>
            <p v-html="item.desc"></p>
          </div>
        </li>
      </ul>
      <!-- 增值服务 -->
      <h3 class="section-subtitle" style="padding-top: 50px;">增值服务</h3>
      <ul class="zz-list">
        <li v-for="item in zzfwList" :key="item">{{ item }}</li>
      </ul>
      <!-- 报名 -->
      <presence></presence>
    </section>
  </div>
</template>
<script>
import presence from './components/presence.vue'
export default {
  components: {
    presence
  },
  data() {
    return {
      tabActive: 0,
      // 标准服务
      bzfwList: [
        {
          icon: 'https://webapp-pub.ezijing.com/www/pc/digital/yx_1_1/bzfw_1.png',
          title: '产品服务',
          desc: '产品安装服务<br/>产品配置调试服务<br/>产品免费升级服务<br/>……'
        },
        {
          icon: 'https://webapp-pub.ezijing.com/www/pc/digital/yx_1_1/bzfw_2.png',
          title: '资源服务',
          desc: '配套课程资源<br/>课程资源免费更新服务<br/>行业案例免费升级服务<br/>……'
        },
        {
          icon: 'https://webapp-pub.ezijing.com/www/pc/digital/yx_1_1/bzfw_3.png',
          title: '培训服务',
          desc: '产品使用培训<br/>产品维护培训<br/>……'
        },
        {
          icon: 'https://webapp-pub.ezijing.com/www/pc/digital/yx_1_1/bzfw_4.png',
          title: '产品技术支持',
          desc: '产品功能与性能巡检<br/>产品使用分析与建议<br/>产品在线技术支持<br/>产品电话技术支持<br/>……'
        }
      ],
      // 增值服务
      zzfwList: ['顶层设计服务', '师资培训服务', '行业讲座服务', '科研服务', '教学服务'],

      tabList: [
        {
          title: '案例原文',
          children: [
            'https://webapp-pub.ezijing.com/www/pc/digital/yx_1_1/alzy_1_1.png',
            'https://webapp-pub.ezijing.com/www/pc/digital/yx_1_1/alzy_1_2.png',
            'https://webapp-pub.ezijing.com/www/pc/digital/yx_1_1/alzy_1_3.png'
          ]
        },
        {
          title: '案例指导书',
          children: [
            'https://webapp-pub.ezijing.com/www/pc/digital/yx_1_1/alzy_2_1.png',
            'https://webapp-pub.ezijing.com/www/pc/digital/yx_1_1/alzy_2_2.png',
            'https://webapp-pub.ezijing.com/www/pc/digital/yx_1_1/alzy_2_3.png'
          ]
        },
        {
          title: '教学PPT',
          children: [
            'https://webapp-pub.ezijing.com/www/pc/digital/yx_1_1/alzy_3_1.png',
            'https://webapp-pub.ezijing.com/www/pc/digital/yx_1_1/alzy_3_2.png'
          ]
        },
        {
          title: '操作视频',
          children: [
            'https://webapp-pub.ezijing.com/www/pc/digital/yx_1_1/alzy_4_1.png',
            'https://webapp-pub.ezijing.com/www/pc/digital/yx_1_1/alzy_4_2.png'
          ]
        }
      ]
    }
  },
  mounted() {},
  methods: {}
}
</script>
<style lang="scss" scoped>
.banner {
  width: 100%;
  display: block;
}
.pt-80 {
  padding-top: 80px;
}
.pt-100 {
  padding-top: 100px;
}
h1 {
  font-size: 32px;
  font-weight: bold;
  color: #333333;
  line-height: 34px;
  text-align: center;
  margin-bottom: 50px;
}
.describe {
  font-size: 18px;
  color: #666666;
  line-height: 36px;
  margin-bottom: 50px;
}
.describe-img {
  width: 100%;
  display: block;
}
.section {
  width: 1200px;
  margin: 0 auto;
}
.js {
  font-size: 18px;
  color: #666666;
  margin-top: 10px;
  line-height: 100%;
  span {
    font-size: 24px;
    color: #aa1941;
  }
}
.section-subtitle {
  display: inline-block;
  margin: 0 0 36px 0;
  font-size: 20px;
  line-height: 32px;
  color: #424242;
  border-bottom: 1px solid var(--main-color);
}
.tab {
  display: flex;
  margin-bottom: 70px;
}
.tab-header {
  margin-right: 38px;
  li {
    width: 270px;
    height: 70px;
    font-size: 24px;
    font-family: Source Han Sans CN-Medium, Source Han Sans CN;
    font-weight: 500;
    line-height: 70px;
    color: #333333;
    background: #fff;
    text-align: center;
    border: 1px solid #d5d5d5;
    cursor: pointer;
    &.is-active {
      color: #fff;
      background-color: var(--main-color);
      border: 1px solid var(--main-color);
    }
    & + li {
      margin-top: 22px;
    }
  }
}
.tab-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  background-color: var(--main-color);
}
.section-title {
  margin-bottom: 36px;
  font-size: 30px;
  font-family: Source Han Sans CN;
  font-weight: bold;
  line-height: 32px;
  color: #333333;
  text-align: center;
}
.bz-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 38px;
  li {
    position: relative;
    transition: all 0.3s;
    &:hover {
      transform: scale(1.06);
    }
  }
  .cover {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(51, 51, 51, 0.6);
  }
  h4 {
    padding: 64px 0 45px;
    font-size: 24px;
    font-family: Source Han Sans CN-Medium, Source Han Sans CN;
    font-weight: 500;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  p {
    font-size: 16px;
    font-family: Source Han Sans CN-Regular, Source Han Sans CN;
    font-weight: 400;
    color: #ffffff;
    line-height: 40px;
    text-align: center;
  }
}
.zz-list {
  display: flex;
  gap: 25px;
  li {
    flex: 1;
    font-size: 22px;
    font-family: Source Han Sans CN-Medium, Source Han Sans CN;
    font-weight: 500;
    color: #333333;
    line-height: 80px;
    text-align: center;
    border: 1px solid var(--main-color);
    border-left-width: 10px;
  }
}
</style>
