<!-- 数字经济人才公共服务平台 -->
<template>
  <div>
    <div class="banner">
      <img src="https://webapp-pub.ezijing.com/www/pc/practice/skill/banner.jpg" />
    </div>
    <section class="section">
      <div class="section-inner">
        <h2 class="section-title">{{ $t('skill.tit') }}</h2>
        <p class="section-desc">
          {{ $t('skill.desc') }}
        </p>
        <div class="section-pic">
          <img
            :src="
              $cookies.get('lang') == 'en-US'
                ? 'https://webapp-pub.ezijing.com/www/pc/practice/skill/001_en.png'
                : 'https://webapp-pub.ezijing.com/www/pc/practice/skill/001.png'
            "
          />
        </div>
        <div class="system-list">
          <div class="system-item" v-for="(item, index) in list" :key="index">
            <h3>{{ item.title }}</h3>
            <p v-html="item.desc"></p>
          </div>
        </div>
      </div>
    </section>
    <section class="section" v-if="$cookies.get('lang') !== 'en-US'">
      <div class="section-inner">
        <div class="project-list">
          <div class="project-item" v-for="(item, index) in list2" :key="index">
            <div class="project-item__pic"><img :src="item.image_url" /></div>
            <div class="project-item__content">
              <p>{{ item.title }}</p>
              <a :href="item.href" target="_blank">
                <el-button type="primary">{{ $t('skill.item_btn') }}</el-button>
              </a>
            </div>
          </div>
        </div>
      </div>
    </section>
  </div>
</template>

<script>
export default {
  data() {
    return {
      list: [
        {
          title: this.$t('skill.item1_tit'),
          desc: this.$t('skill.item1_desc')
        },
        {
          title: this.$t('skill.item2_tit'),
          desc: this.$t('skill.item2_desc')
        },
        {
          title: this.$t('skill.item3_tit'),
          desc: this.$t('skill.item3_desc')
        }
      ],
      list2: [
        {
          image_url: 'https://webapp-pub.ezijing.com/www/pc/practice/skill/1.png',
          title: this.$t('skill.item4_tit'),
          href: 'https://x.ezijing.com/'
        },

        {
          image_url: 'https://webapp-pub.ezijing.com/www/pc/practice/skill/2.png',
          title: this.$t('skill.item5_tit'),
          href: 'https://vst.ezijing.com/'
        },
        {
          image_url: 'https://webapp-pub.ezijing.com/www/pc/practice/skill/3.png',
          title: this.$t('skill.item6_tit'),
          href: 'https://prp.ezijing.com/'
        }
      ]
    }
  },
  methods: {}
}
</script>

<style lang="scss" scoped>
.banner {
  img {
    width: 100%;
  }
}
.section:nth-child(odd) {
  background-color: #f9f8f8;
}
.section:nth-child(even) {
  background-color: #fff;
}
.section-inner {
  width: 1200px;
  margin: 0 auto;
  padding: 90px 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-desc {
  font-size: 20px;
  font-family: Source Han Sans CN;
  font-weight: 500;
  line-height: 34px;
  color: #333333;
  text-align: center;
}
.section-pic {
  text-align: center;
  img {
    max-width: 100%;
  }
}
.system-list {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 58px;
}
.system-item {
  position: relative;
  padding: 50px 30px;
  box-shadow: 0px 3px 12px rgba(0, 0, 0, 0.12);

  h3 {
    margin-bottom: 20px;
    font-size: 20px;
    font-family: Source Han Sans CN;
    font-weight: 500;
    line-height: 34px;
    color: #333333;
  }
  p {
    font-size: 16px;
    font-family: Source Han Sans CN;
    font-weight: 400;
    line-height: 32px;
    color: #666666;
  }
}
.system-item + .system-item {
  &::before {
    content: '';
    position: absolute;
    left: -58px;
    width: 58px;
    top: 50%;
    border-top: 1px dashed var(--main-color);
    transform: translateY(-50%);
  }
  &::after {
    content: '';
    position: absolute;
    left: -29px;
    top: 50%;
    width: 0;
    height: 0;
    border: 5px solid transparent;
    border-left: 5px solid var(--main-color);
    transform: translateY(-50%);
  }
}
.project-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.project-item {
  background-color: #fff;
  &:hover {
    box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.16);
  }
}

.project-item__content {
  padding: 22px;
  text-align: center;

  p {
    height: 48px;
    font-size: 16px;
    font-family: Source Han Sans CN;
    font-weight: 400;
    line-height: 24px;
    color: #333333;
  }
  .el-button {
    margin-top: 18px;
    width: 130px;
    border-radius: 0;
  }
}
</style>
