<!-- 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: '交互式量化投研平台',
    desc: '对话生成策略 / 智能回测 / 因子库',
    children: [
      {
        icon: 'https://webapp-pub.ezijing.com/www/pc/digital/yx_1_1/mk_1_1.png',
        title: 'Text-to-Code自然语言生成Python量化代码',
      },
      {
        icon: 'https://webapp-pub.ezijing.com/www/pc/digital/yx_1_1/mk_1_2.png',
        title: '集成Wind/Tushare等主流金融数据接口',
      },
      {
        icon: 'https://webapp-pub.ezijing.com/www/pc/digital/yx_1_1/mk_1_3.png',
        title: '内置 100+ 经典 Alpha 因子与遗传算法挖掘环境',
      },
    ],
  },
  {
    icon: 'https://webapp-pub.ezijing.com/www/pc/digital/yx_1_1/mk_2.png',
    title: '金融大模型训练工厂',
    desc: '研报微调 / 舆情分析 / 知识图谱',
    children: [
      {
        icon: 'https://webapp-pub.ezijing.com/www/pc/digital/yx_1_1/mk_2_1.png',
        title: '基于 BERT/GPT 的金融新闻舆情情感分析',
      },
      {
        icon: 'https://webapp-pub.ezijing.com/www/pc/digital/yx_1_1/mk_2_2.png',
        title: '毫秒级高频交易回测引擎与 Tick 级数据重放',
      },
      {
        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_3.png',
    title: '智能风控与监管沙箱',
    desc: '风险归因 / 压力测试 / 合规审查',
    children: [
      {
        icon: 'https://webapp-pub.ezijing.com/www/pc/digital/yx_1_1/mk_3_1.png',
        title: '多资产组合优化（Markowitz/Black-Litterman）',
      },
      {
        icon: 'https://webapp-pub.ezijing.com/www/pc/digital/yx_1_1/mk_3_2.png',
        title: '支持 ESG 报告智能评分与绿色金融评级实战',
      },
      {
        icon: 'https://webapp-pub.ezijing.com/www/pc/digital/yx_1_1/mk_3_3.png',
        title: '与全国高校金融科技学会/量化大赛标准衔接',
      },
    ],
  },
])
const zyList = ref([
  { title: '案例1:基于 LLM 的财经新闻情感评分与事件驱动策略', industry: 'NLP金融', hours: 16 },
  { title: '案例2:沪深300指数增强:遗传算法挖掘 Alpha 因子', industry: '量化选股', hours: 20 },
  { title: '案例3:AIGC 辅助生成商品期货双均线 CTA 策略代码', industry: 'CTA策略', hours: 12 },
  { title: '案例4:基于知识图谱的企业信贷风险穿透式监管', industry: '金融风控', hours: 16 },
  { title: '案例5:50ETF 期权波动率曲面拟合与套利策略回测', industry: '金融衍生品', hours: 24 },
  { title: '案例6:使用 FinGPT 微调模型自动撰写行业研究报告', industry: '智能投研', hours: 8 },
  { title: '案例7:高频订单流(Order Flow)微观结构特征分析', industry: '高频交易', hours: 16 },
  { title: '案例8:基于机器学习(XGBoost)的违约概率预测', industry: '金融风控', hours: 12 },
  { title: '案例9:宏观经济指标预测:LSTM 与Transformer 模型对比', industry: '宏观分析', hours: 16 },
  { title: '案例10:构建 Smart Beta 投资组合与风险归因分析', industry: '资产配置', hours: 12 },
])

const numList = ref([
  { num: 'TB级', desc: '高频行情与另类数据' },
  { num: '100+', desc: '预置经典因子库' },
  { num: '1ms', desc: '超低延时回测引擎' },
  { num: '10', desc: '金融微调大模型' },
  { num: 'Python', desc: 'C++ / Python 双栈' },
])

const tabActive = ref(0)

const tabList = ref([
  {
    title: '策略需求(Prompt)',
    tag: '投资意向书',
    name: '自然语言描述投资策略',
    items: [
      '模拟基金经理下达的模糊投资指令，训练学生的需求拆解能力；',
      '通过 Prompt Engineering 将业务逻辑转化为量化因子定义；',
      '包含数据清洗规则、滑点设置及手续费率等实战约束条件。',
    ],
    img: 'https://webapp-pub.ezijing.com/www/pc/next/platform/new-business-studies/4/tab1.png',
  },
  {
    title: 'AI生成代码',
    tag: '核心引擎',
    name: 'Text-to-Code 自动编程',
    items: [
      '基于微调后的 CodeLlama/StarCoder 模型，一键生成 Python 策略代码；',
      '自动补全 Pandas 数据处理逻辑与 Talib 技术指标计算；',
      '提供代码解释器，帮助非计算机专业学生理解量化逻辑。',
    ],
    img: 'https://webapp-pub.ezijing.com/www/pc/next/platform/new-business-studies/4/tab2.png',
  },
  {
    title: '回测绩效报告',
    tag: '绩效归因',
    name: '专业级量化回测报告',
    items: [
      '可视化展示累计收益、回撤曲线及持仓分布；',
      '动计算夏普比率、索提诺比率、信息比率等关键指标；',
      '支持 Brinson 归因分析，明确超额收益来源于选股还是择时。',
    ],
    img: 'https://webapp-pub.ezijing.com/www/pc/next/platform/new-business-studies/4/tab3.png',
  },
  {
    title: '实战教学视频',
    tag: '实战课程',
    name: '全流程实操演示视频',
    items: [
      '业界导师手把手教学，从数据获取到模型上线的完整闭环；',
      '重点讲解“过拟合（Overfitting）”陷阱的识别与规避；',
      '涵盖 Python 环境搭建、Docker 部署等工程化技能。',
    ],
    img: 'https://webapp-pub.ezijing.com/www/pc/next/platform/new-business-studies/4/tab4.png',
  },
])

// 标准服务
const bzfwList = ref([
  {
    icon: 'https://webapp-pub.ezijing.com/www/pc/digital/yx_1_1/bzfw_1.png',
    title: '数据服务',
    desc: `股票/期货/期权历史数据
Level-2 高频行情快照
上市公司财务报表库
宏观经济数据库同步`,
  },
  {
    icon: 'https://webapp-pub.ezijing.com/www/pc/digital/yx_1_1/bzfw_2.png',
    title: '算力平台',
    desc: `GPU 并行计算集群
金融大模型私有化部署
JupyterHub 教学环境
多租户资源隔离管理`,
  },
  {
    icon: 'https://webapp-pub.ezijing.com/www/pc/digital/yx_1_1/bzfw_3.png',
    title: '培训服务',
    desc: `Python 金融数据分析培训
FinTech 师资研修班
量化大赛赛前辅导
CFA/FRM 考证融合课程`,
  },
  {
    icon: 'https://webapp-pub.ezijing.com/www/pc/digital/yx_1_1/bzfw_4.png',
    title: '技术支持',
    desc: `系统运维与定期巡检
策略代码调试支持
7x24小时在线响应
数据接口定制开发`,
  },
])

// 增值服务
const zzfwList = ref(['金融科技专业申报', '校企联合实验室共建', '省级虚拟仿真项目申报', '量化私募实习直通车'])
</script>
<!-- 引产入校 -->
<template>
  <div>
    <div class="banner">
      <img src="https://webapp-pub.ezijing.com/www/pc/next/platform/new-business-studies/4/banner.jpg" />
      <div class="cover">
        <div class="cover-inner">
          <h2>AIGC金融工程智能创新实验室</h2>
          <span></span>
          <h6>量化 · 算法 · 投研 · 智造</h6>
          <p>
            面向金融工程、金融科技及经济学专业，深度融合大语言模型（LLM）与量化交易体系。 提供 FinGPT
            金融大模型微调、自然语言生成策略代码（Text-to-Code）、智能舆情因子挖掘等实训环境，
            培养具备“AI+金融”双重能力的复合型金融科技人才。
          </p>
        </div>
      </div>
    </div>
    <section class="section">
      <div class="section-inner">
        <h2 class="section-title">核心模块</h2>
        <p class="section-title-desc">重构金融投研范式，打造智能化交易流水线</p>
        <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>
              <span>{{ item.desc }}</span>
            </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">源自顶级私募与券商金工组真实项目，覆盖 Alpha、CTA、期权等核心策略</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;
  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: 70px;
      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>
