<script setup>
const certList = [
  {
    img: 'https://webapp-pub.oss-cn-beijing.aliyuncs.com/www/pc/next/cert/cert_1.png',
    name: '人工智能通识应用',
    tags: ['AI知识体系', '人机交互', 'AI应用素养'],
    desc: '本项目旨在培养学员掌握人工智能，特别是大模型技术的通识性理论与应用技能，使其成为具备AI素养、符合数字时代要求的复合型人才。',
    href: 'https://eec.ezijing.com/AI',
  },
  {
    img: 'https://webapp-pub.oss-cn-beijing.aliyuncs.com/www/pc/next/cert/cert_2.png',
    name: '智能数据分析与实战应用',
    tags: ['分级精准培养', '技能层层递进', '权威证书认证'],
    desc: '本培训分初、中、高三级培养智能数据分析人才，递进提升数据技能，考核合格颁发对应等级工信部证书，助力胜任各层级岗位并赋能企业决策。',
    href: 'https://eec.ezijing.com/product',
  },
  {
    img: 'https://webapp-pub.oss-cn-beijing.aliyuncs.com/www/pc/next/cert/cert_3.png',
    name: '智能数据营销与实战应用',
    tags: ['营销技能实战', '数字策略掌握', '权威认证加持'],
    desc: '智能数字营销与实战应用证书分初、中、高三级，系统培养营销实战、数字策略能力，权威认证加持，助力胜任各层级相关岗位。',
    href: 'https://eec.ezijing.com/',
  },
  {
    img: 'https://webapp-pub.oss-cn-beijing.aliyuncs.com/www/pc/next/cert/cert_4.png',
    name: '中/高端酒店总经理培养项目',
    tags: ['双方导师培养', '真实运营案例', '岗位直通快车'],
    desc: '瑞士酒店MBA中心与万达酒店高管联合授课，先进理论+万达酒店运营案例，学员深度参与酒店运营，全面提升薄弱项和简历含金量；考核优秀者直通万达酒店副/总经理岗位面试。',
    href: 'https://wdgm.ezijing.com/',
  },
  {
    img: 'https://webapp-pub.oss-cn-beijing.aliyuncs.com/www/pc/next/cert/cert_5.png',
    name: '私人财富风险管理课程',
    tags: ['专家联合研发', '聚焦财富风控', '碎片系统学习'],
    desc: '本项目旨在培育未来十年私人财富市场引领者，助学员突破认知、升级心智，强化风控能力，专家研发适配碎片学习，权威出品赋能行业。',
    href: 'https://prp.ezijing.com/',
  },
]

const 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/>……',
  },
]
// 增值服务
const zzfwList = ['顶层设计服务', '技能培训服务', '行业讲座服务', '科研服务', '教学服务']
</script>

<template>
  <div class="cert-page">
    <div class="banner">
      <div class="banner-inner">
        <h1>一张证书 解锁职场新可能</h1>
        <span class="line"></span>
        <p>正规备案·官方认可・行业刚需</p>
      </div>
    </div>
    <section class="section">
      <div class="section-inner">
        <div class="cert-list">
          <div class="cert-list-item first">
            <h2>
              <span>一纸职业证</span><br />
              职场硬底气
            </h2>
          </div>
          <div class="cert-list-item" v-for="item in certList" :key="item.name">
            <img :src="item.img" alt="item.name" />
            <div class="cert-list-item-content">
              <h3>{{ item.name }}</h3>
              <ul>
                <li v-for="tag in item.tags" :key="tag">{{ tag }}</li>
              </ul>
              <p>{{ item.desc }}</p>
              <div class="more">
                <NuxtLink :href="item.href" target="_blank"><span>查看详情</span><IconsIconMore /></NuxtLink>
              </div>
            </div>
          </div>
        </div>
      </div>
    </section>
    <section class="section">
      <h2 class="section-title">报考流程</h2>
      <div class="section-inner">
        <img src="https://webapp-pub.ezijing.com/www/pc/next/cert/cert_flow.png" alt="报考流程" style="width: 100%" />
      </div>
    </section>
    <section class="section" v-if="false">
      <h2 class="section-title">通知公告</h2>
      <div class="section-inner"></div>
    </section>
    <!-- 报名 -->
    <Presence></Presence>
  </div>
</template>

<style lang="scss">
.cert-page {
  background-color: #fff;
  .section {
    &-title {
      margin: 60px 0;
      font-weight: bold;
      font-size: 30px;
      color: #333;
      line-height: 1;
      text-align: center;
    }
    &-subtitle {
      display: inline-block;
      margin: 0 0 36px 0;
      font-size: 20px;
      line-height: 32px;
      color: #424242;
      border-bottom: 1px solid var(--main-color);
    }
    &-inner {
      max-width: 1200px;
      margin: 0 auto;
    }
  }
  .banner {
    height: 650px;
    background: url('https://webapp-pub.ezijing.com/www/pc/next/cert/cert_banner.png') no-repeat center center;
    background-size: cover;
    &-inner {
      max-width: 1200px;
      height: 100%;
      margin: 0 auto;

      display: flex;
      flex-direction: column;
      justify-content: center;
      h1 {
        font-size: 60px;
        font-weight: bold;
        line-height: 1;
      }
      h2 {
        margin-top: 20px;
        font-size: 48px;
        font-weight: bold;
        line-height: 1;
        color: var(--main-color);
      }
      .line {
        margin: 46px 0;
        width: 60px;
        height: 6px;
        background: #333;
      }
      p {
        font-size: 24px;
      }
    }
  }

  .cert-list {
    margin-top: 90px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px 40px;
    &-item {
      position: relative;
      height: 400px;
      background: linear-gradient(225deg, #f0ece7 0%, #fdfafb 43.35%, #e7e7f4 100%);
      border-radius: 12px;
      overflow: hidden;
      &.first {
        display: flex;
        align-items: center;
        justify-content: center;
        h2 {
          font-weight: bold;
          font-size: 30px;
          color: #333333;
          line-height: 42px;
          span {
            color: var(--main-color);
          }
        }
      }
      img {
        height: 140px;
      }
      &:hover {
        box-shadow: 0px 0px 16px 1px rgba(0, 0, 0, 0.12);
        .cert-list-item-content {
          top: 0;
        }
        p {
          display: block;
        }
        .more {
          border-radius: 33px 33px 33px 33px;
          border: 1px solid #6c6c6c;
          padding: 0 20px;

          span {
            display: inline-block;
          }
        }
      }
      &-content {
        padding: 20px;
        position: absolute;
        top: 140px;
        right: 0;
        bottom: 0;
        left: 0;
        background: linear-gradient(225deg, #f0ece7 0%, #fdfafb 43.35%, #e7e7f4 100%);
        transition: all 0.3s;
        border-radius: 12px;

        h3 {
          font-size: 20px;
          font-weight: bold;
        }
        ul {
          margin-top: 30px;
          display: flex;
          gap: 10px;
        }
        li {
          padding: 0 12px;
          background: #fff;
          height: 26px;
          font-size: 12px;
          color: #6c6c6c;
          line-height: 26px;
          border-radius: 33px;
          white-space: nowrap;
        }
        p {
          display: none;
          margin-top: 30px;
          padding-top: 40px;
          font-size: 14px;
          color: #6c6c6c;
          line-height: 22px;
          border-top: 1px solid #d5d5d5;
        }
        .more {
          position: absolute;
          bottom: 30px;
          width: 200px;
          height: 42px;
          line-height: 42px;
          display: flex;
          align-items: center;
          a {
            width: 100%;
            display: flex;
            justify-content: space-between;
            align-items: center;
          }
          span {
            display: none;
          }
        }
      }
    }
  }

  .bz-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 38px;
    li {
      position: relative;
      transition: all 0.3s;
      &:hover {
        transform: scale(1.06);
      }
      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
    }
    .cover {
      position: absolute;
      left: 0;
      top: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.7);
    }
    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>
