<template>
  <div :class="isMobile ? 'is-h5' : 'is-pc'">
    <app-frame :data="frameParams">
      <ul class="card">
        <li v-for="item in list" :key="item.title">
          <div class="left">
            <img :src="item.img" />
          </div>
          <div class="right">
            <h5>{{ item.title }}</h5>
            <p v-for="text in item.texts" :key="text">{{ text }}</p>
          </div>
        </li>
      </ul>
    </app-frame>
  </div>
</template>
<script>
export default {
  layout: 'normal',
  data() {
    return {
      list: [
        {
          img: 'https://webapp-pub.ezijing.com/project/kelley/project-intro-charac-icon1.png',
          title: this.$t('feature.item1Tit'),
          texts: [
            this.$t('feature.item1Txt1'),
            this.$t('feature.item1Txt2'),
            this.$t('feature.item1Txt3'),
            this.$t('feature.item1Txt4')
          ]
        },
        {
          img: 'https://webapp-pub.ezijing.com/project/kelley/project-intro-charac-icon2.png',
          title: this.$t('feature.item2Tit'),
          texts: [this.$t('feature.item2Txt1')]
        },
        {
          img: 'https://webapp-pub.ezijing.com/project/kelley/project-intro-charac-icon3.png',
          title: this.$t('feature.item3Tit'),
          texts: [this.$t('feature.item3Txt1')]
        }
      ],
      frameParams: {
        banner: 'https://webapp-pub.ezijing.com/project/seg-shms/banner-bg-xmts.png',
        slider: [
          {
            name: this.$t('menu.projectChild.bg'),
            path: '/project-intro/bg'
          },
          {
            name: this.$t('menu.projectChild.feature'),
            path: '/project-intro/charac'
          },
          {
            name: this.$t('menu.projectChild.cert'),
            path: '/project-intro/certificate'
          }
        ]
      }
    }
  },
  computed: {
    isMobile() {
      return this.$store.state.isMobile
    }
  }
}
</script>
<style lang="scss" scoped>
.is-pc {
  .card {
    width: 763px;
    margin: 0 auto 0;
    padding: 80px 0 30px;
    li {
      height: 205px;
      background: #f9f8f8;
      box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.09);
      margin-bottom: 50px;
      display: flex;
      .left {
        width: 212px;
        // background:#fcfcfc;
        img {
          width: 120px;
          height: 120px;
          margin: 43px 0 0 47px;
        }
      }
      .right {
        width: calc(100% - 212px);
        padding-top: 20px;
        h5 {
          font-size: 22px;
          font-family: Source Han Sans CN;
          font-weight: 500;
          line-height: 44px;
          color: #333333;
        }
        p {
          color: #424242;
          font-size: 16px;
          font-family: Source Han Sans CN;
          line-height: 36px;
        }
      }
    }
  }
}
.is-h5 {
  .card {
    background: #fff;
    // padding: .24rem .15rem .56rem;
    li {
      background: #f9f8f8;
      box-shadow: 0 0 0 rgb(0 0 0 / 9%);
      margin-bottom: 0.16rem;
      display: flex;
      align-items: center;
      box-sizing: border-box;
      padding: 0.16rem 0.14rem 0.1rem;
      .left {
        img {
          width: 0.72rem;
          height: 0.72rem;
          display: block;
        }
      }
      .right {
        margin-left: 0.23rem;
        h5 {
          font-size: 0.12rem;
          font-weight: 700;
          line-height: 100%;
          color: #333;
          margin-bottom: 0.16rem;
        }
        p {
          font-size: 0.1rem;
          font-family: Source Han Sans CN;
          line-height: 100%;
          color: #424242;
          margin-bottom: 0.1rem;
        }
      }
    }
  }
}
</style>