<template>
  <div class="main_content">
    <div class="content_com">
      <h5 class="gov_tit">企业</h5>
      <ul class="gov_con">
        <li v-for="(item, index) in companyList" :key="index">
          <AppLink :data="item">
            <div class="con_desc" v-html="item.desc"></div>
          </AppLink>
        </li>
      </ul>
    </div>
    <img class="com_img" src=" https://webapp-pub.oss-cn-beijing.aliyuncs.com/www/pc/home/company/clip.png" />
  </div>
</template>

<script>
import AppLink from '@/components/Link'
export default {
  components: { AppLink },
  data() {
    return {
      companyList: [
        {
          desc: `数字化转型 <br />高级研修<br />项目`,
          onClick: () => {
            this.$message('暂未开通')
          }
        },
        {
          desc: '成功案例',
          path: '/services/college/case'
        }
      ]
    }
  }
}
</script>

<style lang="scss" scoped>
.main_content {
  position: relative;
  .content_com {
    padding: 30px;
    box-sizing: border-box;
    .gov_tit {
      font-size: 20px;
      font-weight: 500;
      color: #333333;
      border-left: 4px solid #aa1941;
      padding-left: 6px;
      line-height: 1;
    }
    .gov_con {
      margin-top: 31px;
      display: flex;
      flex-direction: column;
      align-items: center;

      li {
        width: 100px;
        height: 134px;
        border: 1px solid #dbdbdb;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        white-space: nowrap;
        cursor: pointer;
        .con_desc {
          font-size: 14px;
          font-weight: 400;
          line-height: 1.5;
          color: #555454;
          text-align: center;
          margin-top: 12px;
        }
        &:hover {
          background: #aa1941;
          .con_desc {
            color: #ffffff;
          }
        }
      }
      li:nth-child(1) {
        margin-top: 58px;
      }
      li:nth-child(2) {
        margin-top: 40px;
        z-index: 10;
      }
    }
  }
  .com_img {
    width: 200px;
    height: 218.79px;
    position: absolute;
    top: 292px;
  }
}
</style>
