<!-- 引产入校 -->
<template>
  <div>
    <div class="banner">
      <img src="https://webapp-pub.ezijing.com/www/pc/digital/yx_1_3/banner.png" />
      <div class="cover">
        <div class="cover-inner">
          <h2>大数据实践教学平台</h2>
          <span></span>
          <h6>开箱即用 · 内置课程 · 丰富案例 · 灵活教学</h6>
          <p>
            既能满足工科大数据通识能力的训练需求，又能满足商科等其他学科对于大数据基础实践教学的训练需求。提供竞赛等模块，满足高校对于大数据教学的多层次需求。打造高校学生大数据通识能力的一站式实践教学平台。
          </p>
        </div>
      </div>
    </div>
    <section class="section">
      <div class="section-inner">
        <h2 class="section-title">核心模块</h2>
        <div class="mk-list">
          <div class="mk-item" v-for="item in mkList" :key="item.title">
            <div class="box">
              <img :src="item.icon" />
              <p>{{ item.title }}</p>
            </div>
            <ul>
              <li v-for="item in item.children" :key="item.title">
                <img :src="item.icon" />
                <p>{{ item.title }}</p>
              </li>
            </ul>
          </div>
        </div>
      </div>
    </section>
    <section class="section">
      <div class="section-inner">
        <h2 class="section-title">大数据实践教学平台案例资源介绍</h2>
        <p class="section-info">
          以真实的行业案例为原型，辅之以大量的真实行业数据，按照国家级教材研发标准为参考开发的综合性企业真实场景的实战教学案例
        </p>
        <div class="zy">
          <table class="table">
            <thead>
              <tr>
                <th>案例名称</th>
                <th>所属行业</th>
              </tr>
            </thead>
            <tbody>
              <tr v-for="item in zyList" :key="item.title">
                <td>{{ item.title }}</td>
                <td>{{ item.industry }}</td>
              </tr>
            </tbody>
          </table>
          <ul class="num">
            <p>每个案例支撑16个学时实践教学</p>
            <li v-for="item in numList" :key="item.desc">
              <span>{{ item.num }}</span>
              <em>{{ item.desc }}</em>
            </li>
          </ul>
        </div>
        <h3 class="section-subtitle">案例资源示例</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-show="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">增值服务</h3>
        <ul class="zz-list">
          <li v-for="item in zzfwList" :key="item">{{ item }}</li>
        </ul>
      </div>
    </section>
  </div>
</template>

<script setup>
import { ref } from 'vue'

// 核心模块
const mkList = ref([
  {
    icon: 'https://webapp-pub.ezijing.com/www/pc/digital/yx_1_1/mk_1.png',
    title: '综合实践教学平台',
    children: [
      {
        icon: 'https://webapp-pub.ezijing.com/www/pc/digital/yx_1_1/mk_1_1.png',
        title: '内置多个开箱即用教学环境',
      },
      {
        icon: 'https://webapp-pub.ezijing.com/www/pc/digital/yx_1_1/mk_1_2.png',
        title: '内置多门大数据基础及提升课程资源',
      },
      {
        icon: 'https://webapp-pub.ezijing.com/www/pc/digital/yx_1_1/mk_1_3.png',
        title: '支持多种训练环境及教师远程辅助',
      },
      {
        icon: 'https://webapp-pub.ezijing.com/www/pc/digital/yx_1_1/mk_1_4.png',
        title: '支持多种虚拟化技术及部署方式',
      },
    ],
  },
  {
    icon: 'https://webapp-pub.ezijing.com/www/pc/digital/yx_1_1/mk_2.png',
    title: '教学管理平台',
    children: [
      {
        icon: 'https://webapp-pub.ezijing.com/www/pc/digital/yx_1_1/mk_2_1.png',
        title: '一站式理论+实践学习平台',
      },
      {
        icon: 'https://webapp-pub.ezijing.com/www/pc/digital/yx_1_1/mk_2_2.png',
        title: '结合配套教学资源实现开箱即用',
      },
      {
        icon: 'https://webapp-pub.ezijing.com/www/pc/digital/yx_1_1/mk_2_3.png',
        title: '工业级产品与教学管理的完美适配',
      },
      {
        icon: 'https://webapp-pub.ezijing.com/www/pc/digital/yx_1_1/mk_2_4.png',
        title: '全面支撑课程评价和专业建设数据要求',
      },
    ],
  },
  {
    icon: 'https://webapp-pub.ezijing.com/www/pc/digital/yx_1_1/mk_3.png',
    title: '实验管理平台',
    children: [
      {
        icon: 'https://webapp-pub.ezijing.com/www/pc/digital/yx_1_1/mk_3_1.png',
        title: '灵活的实验配置实现丰富教学场景支撑',
      },
      {
        icon: 'https://webapp-pub.ezijing.com/www/pc/digital/yx_1_1/mk_3_2.png',
        title: '实验成绩多维构成及综合评分制',
      },
      {
        icon: 'https://webapp-pub.ezijing.com/www/pc/digital/yx_1_1/mk_3_3.png',
        title: '实验报告在线灵活填写及自动评分',
      },
      {
        icon: 'https://webapp-pub.ezijing.com/www/pc/digital/yx_1_1/mk_3_4.png',
        title: '与大赛平台无缝衔接',
      },
    ],
  },
])

const zyList = ref([
  { title: '案例1：爬取51job的数据分析', industry: '互联网' },
  { title: '案例2：威士忌酒的评论数据分析', industry: '零售' },
  { title: '案例3：印度自杀率分析', industry: '政府' },
  { title: '案例4：新加坡旅游数据的数据洞察', industry: '旅游' },
  { title: '案例5：气候变化分析', industry: '旅游' },
  { title: '案例6：使用社交网络广告进行销售预测', industry: '互联网' },
  { title: '案例7：预测泰坦尼克号生存率', industry: '交通' },
  { title: '案例8：糖尿病预测分析', industry: '医疗' },
  { title: '案例9：房天下兰州二手房价预测', industry: '房地产' },
  { title: '案例10：信用卡客户违约预测', industry: '金融' },
])

const numList = ref([
  { num: 10, desc: '个案例' },
  { num: 10, desc: '篇案例原文' },
  { num: 34, desc: '份案例指导书' },
  { num: 58, desc: '套教学PPT' },
  { num: 157, desc: '个教学视频。' },
])

const tabActive = ref(0)

const tabList = ref([
  {
    title: '案例原文',
    children: [
      'https://webapp-pub.ezijing.com/www/pc/digital/yx_1_3/alzy_1_1.png',
      'https://webapp-pub.ezijing.com/www/pc/digital/yx_1_3/alzy_1_2.png',
      'https://webapp-pub.ezijing.com/www/pc/digital/yx_1_3/alzy_1_3.png',
    ],
  },
  {
    title: '案例指导书',
    children: [
      'https://webapp-pub.ezijing.com/www/pc/digital/yx_1_3/alzy_2_1.png',
      'https://webapp-pub.ezijing.com/www/pc/digital/yx_1_3/alzy_2_2.png',
      'https://webapp-pub.ezijing.com/www/pc/digital/yx_1_3/alzy_2_3.png',
    ],
  },
  {
    title: '教学PPT',
    children: [
      'https://webapp-pub.ezijing.com/www/pc/digital/yx_1_3/alzy_3_1.png',
      'https://webapp-pub.ezijing.com/www/pc/digital/yx_1_3/alzy_3_2.png',
    ],
  },
  {
    title: '操作视频',
    children: [
      'https://webapp-pub.ezijing.com/www/pc/digital/yx_1_3/alzy_4_1.png',
      'https://webapp-pub.ezijing.com/www/pc/digital/yx_1_3/alzy_4_2.png',
    ],
  },
])

// 标准服务
const bzfwList = ref([
  {
    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/>……',
  },
])

// 增值服务
const zzfwList = ref(['顶层设计服务', '师资培训服务', '行业讲座服务', '科研服务', '教学服务'])
</script>

<style lang="scss" scoped>
.banner {
  position: relative;
  img {
    width: 100%;
  }
  .cover {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4039);
    line-height: 1;
    color: #ffffff;
    h2 {
      font-size: 42px;
      font-family: Source Han Sans CN-Bold, Source Han Sans CN;
      font-weight: bold;
      line-height: 1;
    }
    h3 {
      margin-bottom: 20px;
      font-size: 24px;
      font-family: Source Han Sans CN-Medium, Source Han Sans CN;
      font-weight: 500;
      line-height: 1;
      letter-spacing: 4px;
    }
    span {
      margin: 24px 0;
      width: 42px;
      height: 3px;
      background: #ffffff;
    }
    h6 {
      margin-bottom: 24px;
      font-size: 20px;
      font-family: Source Han Sans CN-Medium, Source Han Sans CN;
      font-weight: 500;
      line-height: 1;
      letter-spacing: 2px;
    }
    p {
      max-width: 644px;
      font-size: 14px;
      font-family: Source Han Sans CN-Regular, Source Han Sans CN;
      line-height: 26px;
    }
    a {
      margin-top: 28px;
      width: 112px;
      height: 36px;
      font-size: 16px;
      font-family: Source Han Sans CN-Regular, Source Han Sans CN;
      font-weight: 400;
      color: #ffffff;
      line-height: 36px;
      background: #aa1941;
      text-align: center;
    }
  }
  .cover-inner {
    height: 100%;
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-direction: column;
  }
}
.section:nth-child(even) {
  background-color: #fff;
}
.section:nth-child(odd) {
  background-color: #f9f8f8;
}
.section-inner {
  width: 1300px;
  margin: 0 auto;
  padding: 100px 0;
}
.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;
}
.section-subtitle {
  display: inline-block;
  margin: 36px 0;
  font-size: 20px;
  line-height: 32px;
  color: #424242;
  border-bottom: 1px solid var(--main-color);
}
.section-desc {
  font-size: 16px;
  font-family: Source Han Sans CN;
  font-weight: 400;
  line-height: 34px;
  color: #666666;
}
.section-info {
  margin: 40px 0 70px;
  font-size: 18px;
  font-family: Source Han Sans CN;
  font-weight: 400;
  line-height: 34px;
  color: #666666;
  text-align: center;
}

.section-pic {
  text-align: center;
  img {
    max-width: 100%;
  }
}
.mk-list {
  display: flex;
  gap: 60px;
  .mk-item {
    flex: 1;
  }
  .box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 260px;
    background-color: var(--main-color);
    p {
      margin-top: 48px;
      font-size: 18px;
      font-family: Source Han Sans CN-Medium, Source Han Sans CN;
      font-weight: 500;
      color: #ffffff;
    }
  }
  ul {
    margin-top: 40px;
  }
  li {
    margin-top: 25px;
    img {
      margin: 0 18px;
    }
    display: flex;
    align-items: center;
    height: 60px;
    background: #f2f2f2;
    font-size: 15px;
    font-family: Source Han Sans CN-Medium, Source Han Sans CN;
    font-weight: 500;
    color: #424242;
  }
}
.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;
  }
}
.al-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  li {
    transition: all 0.3s;
    &:hover {
      transform: scale(1.06);
    }
  }
}
.zy {
  display: flex;
  .table {
    flex: 1;
  }
  .num {
    margin-left: 35px;
  }
}
.num {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  p {
    font-size: 20px;
    font-family: Source Han Sans CN-Medium, Source Han Sans CN;
    font-weight: 500;
    color: #333333;
    line-height: 30px;
  }
  li {
    span {
      font-size: 30px;
      font-weight: bold;
      font-family: SourceHanSansCN-Bold;
      color: var(--main-color);
    }
    em {
      font-size: 18px;
      font-family: Source Han Sans CN;
    }
  }
}
.table {
  thead {
    th {
      padding: 20px;
      font-size: 18px;
      font-family: Source Han Sans CN;
      font-weight: bold;
      line-height: 22px;
      color: #fff;
      background-color: #aa1941;
      border: 1px solid #aa1941;
    }
    th:nth-child(2) {
      background: #931638;
    }
  }
  tbody {
    td {
      font-size: 16px;
      font-family: Source Han Sans CN;
      font-weight: 400;
      line-height: 1;
      color: #262626;
      padding: 14px;
      border: 1px solid #8b8b8b;
    }
    td:nth-child(1) {
      padding-left: 40px;
    }
    td:nth-child(2) {
      text-align: center;
    }
  }
}
.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);
}
</style>
