<template>
  <div class="service-content max-width-center">
    <div :class="isMobile ? 'is-h5' : 'is-pc'">
      <card :title="$t('home.project.title')">
        <ul class="nav-content">
          <li v-for="(item, index) in data" :key="index">
            <img :src="item.icon" class="icon" />
            <img v-if="!isMobile" :src="item.iconActive" class="icon-active" />
            <div class="text" v-html="item.text"></div>
          </li>
        </ul>
        <div class="feature-box">
          <h3>双导师培养+岗位直通车</h3>
          <div class="feature-box-content">
            <dl>
              <dt><img src="/images/icon_1.png" /></dt>
              <dd>
                <strong>双导师培养：</strong
                >瑞士顶级教授与万达酒店高管联合授课，先进理论+万达酒店运营案例，打造国际化视野与本土化实战能力的优质人才。
              </dd>
            </dl>
            <dl>
              <dt><img src="/images/icon_2.png" /></dt>
              <dd>
                <strong>岗位直通车：</strong
                >万达酒店高管亲自带教，学员可深度参与酒店整体运营管理，全面提升薄弱项和简历含金量；考核优秀者免初试，获得直通万达酒店及度假村副总经理/总经理岗位面试机会。
              </dd>
            </dl>
          </div>
        </div>
      </card>
    </div>
  </div>
</template>
<script>
import Card from '@/components/Card'
import AppLink from '@/components/Link'
export default {
  name: 'projectFeatures',
  components: {
    AppLink,
    Card,
  },
  data() {
    return {
      titleParams: {
        name: this.$t('home.project.title'),
      },
      data: [
        {
          icon: '/images/feature_icon_1.png',
          iconActive: '/images/feature_icon_1.png',
          text: '瑞士顶级教授与万达酒店高管<br/>联合授课',
          path: '',
          pathType: 0,
        },
        {
          icon: '/images/feature_icon_2.png',
          iconActive: '/images/feature_icon_2.png',
          text: '先进理论+万达酒店<br/>运营案例',
          path: '',
          pathType: 0,
        },
        {
          icon: '/images/feature_icon_3.png',
          iconActive: '/images/feature_icon_3.png',
          text: '打造国际化视野与本土化<br/>实战能力的优质人才',
          path: '',
          pathType: 0,
        },
        {
          icon: '/images/feature_icon_4.png',
          iconActive: '/images/feature_icon_4.png',
          text: '深度参与万达酒店整体运营<br/>全面提升薄弱项和简历含金量',
          path: '',
          pathType: 0,
        },
        {
          icon: '/images/feature_icon_5.png',
          iconActive: '/images/feature_icon_5.png',
          text: '可获直通万达酒店及度假村<br/>副总/总经理岗位面试机会',
          path: '',
          pathType: 0,
        },
      ],
    }
  },
  methods: {
    goPage(path) {
      if (path === '') {
        // this.$message('暂未开通，尽请期待。')
        return
      }
      window.open(path)
    },
  },
  mounted() {
    console.log(this.isMobile)
  },
  computed: {
    isMobile() {
      return this.$store.state.isMobile
    },
  },
}
</script>

<style lang="scss" scoped>
.is-pc {
  .service-content {
    padding-top: 68px;
    .nav-content {
      display: flex;
      justify-content: space-between;
      padding-top: 15px;
      li {
        width: 224px;
        height: 230px;
        padding-top: 53px;
        box-sizing: border-box;
        background: #f9f8f8;
        // background: #fff;
        // box-shadow: 0px 4px 38px rgba(142, 30, 34, 0.41);
        cursor: pointer;
        transition: all 0.3s;
        img {
          width: 80px;
          height: 80px;
          display: block;
          margin: 0 auto;
        }
        .icon-active {
          display: none;
        }
        &:hover {
          background: #aa1941;
          box-shadow: 0px 4px 20px rgba(142, 30, 34, 0.41);
          .text {
            color: #fff;
          }
          .icon {
            display: none;
          }
          .icon-active {
            display: block;
          }
        }
        .text {
          font-size: 14px;
          line-height: 18px;
          color: #666666;
          margin-top: 20px;
          text-align: center;
        }
      }
    }
  }
  .max-width-center {
    width: 1200px;
    margin: 0 auto;
  }
  .feature-box {
    margin-top: 120px;
    background: #a5815b;
    padding: 50px;
    box-sizing: border-box;
    h3 {
      font-size: 24px;
      color: #ffffff;
      line-height: 36px;
      margin-bottom: 50px;
      text-align: center;
    }
    .feature-box-content {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 100px;
    }
    dl {
      display: flex;
      align-items: flex-start;
      dt {
        width: 80px;
      }
      dd {
        font-size: 18px;
        color: #ffffff;
        line-height: 30px;
        margin-left: 20px;
        border-left: 1px solid #ffffff;
        padding-left: 20px;
      }
    }
  }
}
.is-h5 {
  .service-content {
    ul {
      display: flex;
      overflow-x: scroll;
      -webkit-overflow-scrolling: touch;
    }
    li {
      min-width: 0.78rem;
      background: #ffffff;
      margin-right: 0.1rem;
      padding-top: 0.11rem;
      img {
        width: 0.4rem;
        height: 0.4rem;
        display: block;
        margin: 0 auto;
      }
      .text {
        font-size: 0.1rem;
        line-height: 0.16rem;
        color: #666666;
        padding-top: 0.05rem;
        text-align: center;
        padding-bottom: 0.1rem;
      }
    }
  }
}
</style>
