<!-- 引产入校 -->
<template>
  <div>
    <div class="banner">
      <img src="https://webapp-pub.ezijing.com/www/pc/digital/yx_1_1/banner.png" />
      <div class="cover">
        <div class="cover-inner">
          <h2>商业数据分析实践教学平台</h2>
          <span></span>
          <h6>真场景 · 真环境 · 真项目 · 真案例</h6>
          <p>
            实现“贯通”专业集群底层逻辑，融合商业数据分析服务能力，实现工作实践和教学场景的一体化无缝衔接，融合海量结构化数据集，多行业综合案例集，打造全国影响力的的数字经济核心能力实践教学平台。
          </p>
          <a href="https://saas-lab.ezijing.com" target="_blank">进入系统</a>
        </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>
    <section class="section">
      <div class="section-inner">
        <h2 class="section-title">交付案例</h2>
        <ul class="al-list">
          <li v-for="item in jfalList" :key="item"><img :src="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:电子商城数据分析', industry: '电商' },
  { title: '案例2:房屋价格的数据分析', industry: '房地产' },
  { title: '案例3:汽车金融企业业务分析', industry: '汽车服务' },
  { title: '案例4:互联网零售数据分析', industry: '互联网' },
  { title: '案例5:微博热门博主与话题模型分析', industry: '互联网' },
  { title: '案例6:商业银行专项财务指标分析', industry: '金融' },
  { title: '案例7:信用卡欺诈行为分析', industry: '金融' },
  { title: '案例8:金融量化投资分析', industry: '金融' },
  { title: '案例9:基于RFM模型进行用户分群运营分析', industry: '零售' },
  { title: '案例10:智慧交通综合分析', industry: '交通' },
])

const numList = ref([
  { num: 10, desc: '个案例' },
  { num: 10, desc: '篇案例原文' },
  { num: 13, desc: '个数据集' },
  { num: 31, desc: '份辅助资源' },
  { num: 65, desc: '份案例指导书' },
  { num: 65, desc: '套教学PPT' },
  { num: 231, desc: '个教学视频。' },
])

const tabActive = ref(0)

const tabList = ref([
  {
    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',
    ],
  },
])

// 标准服务
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(['顶层设计服务', '师资培训服务', '行业讲座服务', '科研服务', '教学服务'])

// 交付案例
const jfalList = ref([
  'https://webapp-pub.ezijing.com/www/pc/digital/yx_1_1/jfal_1.png',
  'https://webapp-pub.ezijing.com/www/pc/digital/yx_1_1/jfal_2.png',
  'https://webapp-pub.ezijing.com/www/pc/digital/yx_1_1/jfal_3.png',
  'https://webapp-pub.ezijing.com/www/pc/digital/yx_1_1/jfal_4.png',
  'https://webapp-pub.ezijing.com/www/pc/digital/yx_1_1/jfal_5.png',
  'https://webapp-pub.ezijing.com/www/pc/digital/yx_1_1/jfal_6.png',
])
</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: 1200px;
    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: 1200px;
  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>
