<template>
  <div class="list">
    <div v-for="item in cardList" :key="item.index" class="list-item">
      <div class="item-index">{{ item.index }}</div>
      <div class="item-line"></div>
      <div class="item-title">{{ item.title }}</div>
      <div class="item-desc">{{ item.desc }}</div>
      <div class="item-img">
        <img :src="item.img" />
      </div>
      <div class="item-goto" :class="item.goFlag ? 'item-goto-active': ''">立即前往 >></div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      cardList: [
        {
          index: '01',
          title: '添加店铺',
          desc: '输入您的店铺ID，绑定您的店铺。',
          img: require('@/assets/guide/market.png'),
          goFlag: true
        },
        {
          index: '02',
          title: '绑定企业',
          desc: '完成企业绑定，即可获取融资额度。',
          img: require('@/assets/guide/market.png'),
          goFlag: false
        },
        {
          index: '03',
          title: '申请融资',
          desc: '发起融资申请，即可轻松到账。',
          img: require('@/assets/guide/market.png'),
          goFlag: false
        }
      ]
    }
  }
}
</script>

<style lang="scss" scoped>
.list {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
  margin-top: 24px;
  padding-left: 40px;
  .list-item {
    flex-basis: 470px;
    height: 100%;
    border-radius: 10px;
    background-color: #F7FAFF;
    padding-bottom: 20px;
    .item-index {
      width: 100%;
      margin-top: 44px;
      padding-left: 60px;
      font-size: 48px;
      line-height: 72px;
    }
    .item-line {
      width: 40px;
      height: 4px;
      margin-left: 60px;
      background-color: #E9423A;
    }
    .item-title {
      width: 100%;
      margin-top: 38px;
      padding-left: 60px;
      font-size: 30px;
      line-height: 44px;
    }
    .item-desc {
      width: 100%;
      margin-top: 8px;
      padding-left: 60px;
      font-size: 16px;
      line-height: 24px;
    }
    .item-img {
      width: 220px;
      height: 218px;
      margin: 62px auto 62px;
      img {
        width: 100%;
        height: 100%;
      }
    }
    .item-goto {
      width: 100%;
      text-align: center;
      font-size: 16px;
      line-height: 24px;
      color: #A3A8AC;
      cursor: pointer;
    }
    .item-goto-active{
      color: #E9423A;
    }
  }
  .list-item:hover {
    border: 1px solid #E9423A;
  }
}
@media screen and (min-width: 768px) and (max-width: 1600px) {
  .list {
    .list-item{
      flex-basis: 390px;
    }
  }
}
</style>
