<!-- AIGC网络直播实验室 -->
<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:某电商网站全链路 SQL 注入与数据加固', industry: '互联网', hours: 16 },
  { title: '案例2:银行核心系统勒索木马溯源取证分析', industry: '金融', hours: 16 },
  { title: '案例3:工业互联网 PLC 控制指令重放攻击模拟', industry: '工控', hours: 12 },
  { title: '案例4:跨境邮件钓鱼防御与社会工程学溯源', industry: '政府', hours: 8 },
  { title: '案例5:安卓端恶意扣费软件逆向分析实战', industry: '移动安全', hours: 16 },
  { title: '案例6:DDoS 洪流攻击识别与 WAF 防御配置', industry: '运营商', hours: 12 },
  { title: '案例7:企业内网横向移动与域渗透攻防实操', industry: '企业服务', hours: 24 },
  { title: '案例8:无线 Wi-Fi 协议漏洞分析与 WPA 爆破预防', industry: '通用', hours: 8 },
  { title: '案例9:云原生 K8s 容器逃逸漏洞利用与修补', industry: '云计算', hours: 16 },
  { title: '案例10:零信任架构下的身份认证绕过模拟', industry: '信息技术', hours: 12 },
])

const numList = ref([
  { num: '10', desc: '个核心教学案例' },
  { num: '52', desc: '套教学 PPT' },
  { num: '148', desc: '个教学视频' },
  { num: '40', desc: '份实验手册' },
  { num: '200', desc: '个实验靶点' },
])

const tabActive = ref(0)

const tabList = ref([
  {
    title: '案例原文',
    tag: '实战背景',
    name: '案例原文展示',
    items: [
      '基于真实行业脱敏案例，完整复现攻击路径与手法；',
      '包含原始攻击包分析、漏洞成因详述及专家深度点评；',
      '提供标准PDF下载，适用于课堂深度研讨与复盘分析。',
    ],
    img: 'https://webapp-pub.ezijing.com/www/pc/next/platform/new-engineering/3/tab1.png',
  },
  {
    title: '案例指导书',
    tag: '操作指南',
    name: '案例指导书预览',
    items: [
      '详尽的实验手册，包含环境拓扑规划与工具配置步骤；',
      '提供每一步骤的预期结果截图，辅助学生纠错；',
      '内置Flag获取点引导，确保实训过程闭环且可衡量。',
    ],
    img: 'https://webapp-pub.ezijing.com/www/pc/next/platform/new-engineering/3/tab2.png',
  },
  {
    title: '教学PPT',
    tag: '教研资源',
    name: '标准化教学PPT课件',
    items: [
      '配套标准化课件，逻辑清晰，覆盖从基础到进阶知识；',
      '内置动态攻击原理图解，降低抽象技术理解门槛；',
      '支持教师二次定制，适配不同专业背景的授课需求。',
    ],
    img: 'https://webapp-pub.ezijing.com/www/pc/next/platform/new-engineering/3/tab3.png',
  },
  {
    title: '教学视频',
    tag: '视频演示',
    name: '高品质实操录播视频',
    items: [
      '专家级实操录屏，全程演示漏洞挖掘、利用与加固；',
      '针对实训中的易错点提供语音详解，辅助学生自学；',
      '4K高清画质，确保控制台指令与代码细节一目了然。',
    ],
    img: 'https://webapp-pub.ezijing.com/www/pc/next/platform/new-engineering/3/tab4.png',
  },
])

// 标准服务
const bzfwList = ref([
  {
    icon: 'https://webapp-pub.ezijing.com/www/pc/digital/yx_1_1/bzfw_1.png',
    title: '产品服务',
    desc: `本地私有化部署服务
产品配置调试服务
公有云账号分发
一年期免费升级`,
  },
  {
    icon: 'https://webapp-pub.ezijing.com/www/pc/digital/yx_1_1/bzfw_2.png',
    title: '资源服务',
    desc: `配套课程资源
课程资源免费更新
行业案例免费升级
CVE漏洞库同步`,
  },
  {
    icon: 'https://webapp-pub.ezijing.com/www/pc/digital/yx_1_1/bzfw_3.png',
    title: '培训服务',
    desc: `产品使用培训
师资培训服务
产品维护培训
CTF竞赛带队指导`,
  },
  {
    icon: 'https://webapp-pub.ezijing.com/www/pc/digital/yx_1_1/bzfw_4.png',
    title: '技术支持',
    desc: `产品功能与性能巡检
平台日常管理维护
产品在线技术支持
产品电话技术支持`,
  },
])

// 增值服务
const zzfwList = ref(['顶层设计服务', '实验室空间规划', '行业专家讲座', '精品课联合申报'])
</script>
<!-- 引产入校 -->
<template>
  <div>
    <div class="banner">
      <img src="https://webapp-pub.ezijing.com/www/pc/next/platform/new-engineering/3/banner.jpg" />
      <div class="cover">
        <div class="cover-inner">
          <h2>信息安全实践教学平台</h2>
          <span></span>
          <h6>专业 · 深度 · 实战 · 智能</h6>
          <p>
            针对高校网络空间安全人才培养，提供从基础通识到专业攻防的全流程实训。集成 Kali Linux、Metasploit
            等深度实战环境，支持 CTF 夺旗赛模式与 AWD 实时对抗。
          </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>
                <th>学时</th>
              </tr>
            </thead>
            <tbody>
              <tr v-for="item in zyList" :key="item.title">
                <td>{{ item.title }}</td>
                <td>{{ item.industry }}</td>
                <td>{{ item.hours }}</td>
              </tr>
            </tbody>
          </table>
          <ul class="num">
            <li v-for="item in numList" :key="item.desc">
              <span>{{ item.num }}</span>
              <em>{{ item.desc }}</em>
            </li>
          </ul>
        </div>
        <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>
          <div class="tab-body" v-for="(item, index) in tabList" :key="index" v-show="index === tabActive">
            <div class="tab-body-pic">
              <img :src="item.img" :alt="item.title" />
            </div>
            <div class="tab-body-content">
              <span>{{ item.tag }}</span>
              <h4>{{ item.title }}</h4>
              <ul>
                <li v-for="subItem in item.items" :key="subItem">{{ subItem }}</li>
              </ul>
            </div>
          </div>
        </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>

<style lang="scss" scoped>
.banner {
  position: relative;
  img {
    width: 100%;
    height: 650px;
    object-fit: cover;
  }
  .cover {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    line-height: 1;
    color: #ffffff;
    h2 {
      font-size: 60px;
      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: 46px 0;
      width: 60px;
      height: 6px;
      background: #ffffff;
    }
    h6 {
      font-size: 24px;
      font-family:
        Source Han Sans CN-Medium,
        Source Han Sans CN;
      font-weight: 500;
      line-height: 1;
    }
    p {
      margin-top: 30px;
      max-width: 600px;
      font-size: 18px;
      font-family:
        Source Han Sans CN-Regular,
        Source Han Sans CN;
      line-height: 30px;
    }
    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-inner {
  width: 1200px;
  margin: 90px auto;
}
.section-title {
  margin-bottom: 40px;
  font-size: 30px;
  font-family: Source Han Sans CN;
  font-weight: bold;
  line-height: 32px;
  color: #333333;
  text-align: center;
}
.section-title-desc {
  margin-bottom: 50px;
  font-family:
    Source Han Sans CN,
    Source Han Sans CN;
  font-weight: 400;
  font-size: 18px;
  color: #666666;
  line-height: 30px;
  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);
    color: #fff;
    p {
      margin-top: 40px;
      font-size: 18px;
      font-family:
        Source Han Sans CN-Medium,
        Source Han Sans CN;
      font-weight: 500;
      color: #ffffff;
    }
    span {
      margin-top: 15px;
    }
  }
  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(0, 0, 0, 0.7);
  }
  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  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;
    white-space: pre-wrap;
  }
}
.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 {
    img {
      width: 100%;
    }
    transition: all 0.3s;
    &:hover {
      transform: scale(1.06);
    }
  }
}
.zy {
  display: flex;
  .table {
    flex: 1;
  }
  .num {
    margin-left: 35px;
  }
}
.num {
  width: 320px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  li {
    padding: 20px;
    height: 130px;
    background: #ffffff;
    box-shadow: 0px 0px 8px 1px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    &:first-child {
      grid-column: span 2;
    }
    &:hover {
      color: #fff;
      background-color: var(--main-color);
      span {
        color: #fff;
      }
    }
    span {
      font-size: 30px;
      font-weight: bold;
      font-family: SourceHanSansCN-Bold;
      color: var(--main-color);
    }
    em {
      font-style: normal;
      font-size: 14px;
      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: 1;
      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: 10px;
      border: 1px solid #8b8b8b;
    }
    td:nth-child(1) {
      padding-left: 40px;
    }
    td:nth-child(2),
    td:nth-child(3) {
      text-align: center;
    }
  }
}
.tab {
  display: flex;
  margin: 60px 0 90px;
}
.tab-header {
  margin-right: 38px;
  li {
    width: 270px;
    height: 70px;
    font-size: 18px;
    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: #fff;
  box-shadow: 0px 0px 8px 1px rgba(0, 0, 0, 0.1);
  &-pic {
    position: relative;

    margin: 0 90px;
    width: 200px;
    height: 240px;
    img {
      position: relative;
      max-width: 100%;
      height: auto;
      z-index: 10;
    }
    &::before {
      z-index: 1;
      content: '';
      position: absolute;
      left: 10px;
      top: 10px;
      width: 100%;
      height: 100%;
      background: #ededed;
    }
  }
  &-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    span {
      width: 80px;
      height: 30px;
      font-size: 12px;
      line-height: 30px;
      text-align: center;
      color: var(--main-color);
      background: #f8e9ed;
      border-radius: 8px 8px 8px 8px;
    }
    h4 {
      margin: 20px 0 40px;
      font-weight: bold;
      font-size: 22px;
    }
    li {
      position: relative;
      font-size: 16px;
      color: #333333;
      line-height: 36px;
      padding-left: 20px;
      &::after {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 8px;
        height: 8px;
        background-color: var(--main-color);
        border-radius: 50%;
      }
    }
  }
}
</style>
