<!-- 引产入校 -->
<template>
  <div>
    <div class="banner">
      <img src="https://webapp-pub.ezijing.com/www/pc/services/school/banner.jpg" />
    </div>
    <section class="section">
      <div class="section-inner">
        <h2 class="section-title">{{ $t('school.tit') }}</h2>
        <p class="section-desc">
          {{ $t('school.desc') }}
        </p>
        <div class="section-pic" style="margin-top: 120px">
          <img
            :src="
              $cookies.get('lang') == 'en-US'
                ? 'https://webapp-pub.ezijing.com/www/pc/services/school/1_en.png'
                : 'https://webapp-pub.ezijing.com/www/pc/services/school/1.png'
            "
          />
        </div>
      </div>
    </section>
    <section class="section">
      <div class="section-inner">
        <h2 class="section-title" v-html="$t('school.mechanism.tit')"></h2>
        <div class="edu-list">
          <div class="edu-item" v-for="item in list" :key="item.image_url">
            <div class="edu-item__pic"><img :src="item.image_url" /></div>
            <div class="edu-item__content">
              <h2>{{ item.title }}</h2>
              <ul>
                <li v-for="(item, index) in item.items" :key="index">
                  {{ item }}
                </li>
              </ul>
            </div>
          </div>
        </div>
      </div>
    </section>
    <section class="section">
      <div class="section-inner">
        <div class="section-pic">
          <img
            :src="
              $cookies.get('lang') == 'en-US'
                ? 'https://webapp-pub.ezijing.com/www/pc/services/school/2_en.png'
                : 'https://webapp-pub.ezijing.com/www/pc/services/school/2.png'
            "
            width="100%"
          />
        </div>
      </div>
    </section>
  </div>
</template>

<script>
export default {
  data() {
    return {
      list: [
        {
          image_url: 'https://webapp-pub.ezijing.com/www/pc/services/school/yrjz_1.png',
          title: this.$t('school.mechanism.item1_tit'),
          items: this.$t('school.mechanism.item1_desc')
        },
        {
          image_url: 'https://webapp-pub.ezijing.com/www/pc/services/school/yrjz_2.png',
          title: this.$t('school.mechanism.item2_tit'),
          items: this.$t('school.mechanism.item2_desc')
        },
        {
          image_url: 'https://webapp-pub.ezijing.com/www/pc/services/school/yrjz_3.png',
          title: this.$t('school.mechanism.item3_tit'),
          items: this.$t('school.mechanism.item3_desc')
        },
        {
          image_url: 'https://webapp-pub.ezijing.com/www/pc/services/school/yrjz_4.png',
          title: '品牌管理与数字化营销',
          title: this.$t('school.mechanism.item4_tit'),
          items: this.$t('school.mechanism.item4_desc')
        }
      ]
    }
  },
  methods: {}
}
</script>

<style lang="scss" scoped>
.banner {
  img {
    width: 100%;
  }
}
.section:nth-child(even) {
  background-color: #fff;
}
.section:nth-child(odd) {
  background-color: #f9f8f8;
}
.section-inner {
  width: 1200px;
  margin: 0 auto;
  padding: 120px 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: 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%;
  }
}
.edu-list {
  margin-top: 100px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.edu-item {
  box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16);
  transition: all 0.3s;
  &:hover {
    transform: scale(1.1);
  }
}
.edu-item__content {
  padding: 20px;
  h2 {
    margin-bottom: 16px;
    font-size: 20px;
    font-family: Source Han Sans CN;
    font-weight: 500;
    line-height: 24px;
    color: #333333;
  }
  li {
    position: relative;
    font-size: 16px;
    font-family: Source Han Sans CN;
    font-weight: 400;
    line-height: 30px;
    color: #666666;
    padding-left: 20px;
    &::before {
      content: '';
      position: absolute;
      left: 0;
      top: 50%;
      transform: translateY(-50%);
      width: 5px;
      height: 5px;
      background-color: var(--main-color);
      border-radius: 50%;
    }
  }
}
</style>
