<template>
  <div class="intr-content-box">
    <img src="https://webapp-pub.ezijing.com/www/pc/home/banner.png" alt="" />
    <div class="text-content">
      <div class="title">{{ $t('about.project.title') }}</div>
      <div class="text-intr" v-html="$t('about.project.text')"></div>
      <div class="garish-content">
        <div class="flex-box">
          <div class="li w184">
            <div class="col-txt">
              12<span>{{ $t('about.project.unit1') }}</span>
            </div>
            <div class="n-txt">{{ $t('about.project.itemText1') }}</div>
          </div>
          <div class="li w180">
            <div class="col-txt">
              535<span>{{ $t('about.project.unit2') }}</span>
            </div>
            <div class="n-txt">{{ $t('about.project.itemText2') }}</div>
          </div>
          <div class="li w249">
            <div class="col-txt">600<span>+</span></div>
            <div class="n-txt">{{ $t('about.project.itemText3') }}</div>
          </div>
          <div class="li w186">
            <div class="col-txt">700<span>+</span></div>
            <div class="n-txt">{{ $t('about.project.itemText4') }}</div>
          </div>
        </div>
        <div class="flex-box mar-t-35">
          <div class="li w188">
            <div class="col-txt">1000<span>+</span></div>
            <div class="n-txt">{{ $t('about.project.itemText5') }}</div>
          </div>
          <div class="li w180">
            <div class="col-txt">4800<span>+</span></div>
            <div class="n-txt">{{ $t('about.project.itemText6') }}</div>
          </div>
          <div class="li w249">
            <div class="col-txt">6000<span>+</span></div>
            <div class="n-txt">{{ $t('about.project.itemText7') }}</div>
          </div>
          <div class="li w186">
            <div class="col-txt">
              <span class="unit3Text">{{ $t('about.project.unit3Text') }}</span
              ><span>{{ $t('about.project.unit3') }}+</span>
            </div>
            <div class="n-txt">{{ $t('about.project.itemText8') }}</div>
          </div>
        </div>
      </div>
      <div class="tab-content">
        <div class="tab-nav">
          <div :class="indexActive === 0 ? 'li active' : 'li'" @click="changeIndex(0)">
            <div class="t1">{{ $t('about.project.tabBtn1Tit') }}</div>
            <div class="t2" v-html="$t('about.project.tabBtn1Txt')"></div>
          </div>
          <div :class="indexActive === 1 ? 'li active' : 'li'" @click="changeIndex(1)">
            <div class="t1">{{ $t('about.project.tabBtn2Tit') }}</div>
            <div class="t2" v-html="$t('about.project.tabBtn2Txt')"></div>
          </div>
          <div :class="indexActive === 2 ? 'li active' : 'li'" @click="changeIndex(2)">
            <div class="t1">{{ $t('about.project.tabBtn3Tit') }}</div>
            <div class="t2" v-html="$t('about.project.tabBtn3Txt')"></div>
          </div>
        </div>
        <div class="tab-con" v-if="indexActive === 0" v-html="$t('about.project.tabCon1')"></div>
        <div class="tab-con tab-con2" v-if="indexActive === 1" v-html="$t('about.project.tabCon2')"></div>
        <div class="tab-con tab-con3" v-if="indexActive === 2" v-html="$t('about.project.tabCon3')"></div>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  components: {},
  data() {
    return {
      indexActive: 0
    }
  },
  methods: {
    changeIndex(n) {
      this.indexActive = n
    }
  }
}
</script>
<style lang="scss" scoped>
.intr-content-box {
  width: 1000px;
  padding-bottom: 100px;
  img {
    width: 100%;
    display: block;
  }
  .text-content {
    padding: 50px 64px 81px;
    box-sizing: border-box;
    background: #fff;
    .title {
      font-size: 22px;
      font-weight: 500;
      color: #424242;
      margin-bottom: 15px;
    }
    .text-intr {
      font-size: 16px;
      line-height: 32px;
      color: #424242;
    }
  }
  .garish-content {
    padding-top: 66px;
    .flex-box {
      display: flex;
      width: 800px;
      margin: 0 auto;
      &.mar-t-35 {
        padding-top: 35px;
      }
      .li {
        box-sizing: border-box;
        padding-top: 6px;
        // height: 70px;
        border-right: 1px solid #c3c3c3;
        &:last-child {
          border: none;
        }
        .col-txt {
          font-size: 36px;
          font-weight: 500;
          line-height: 30px;
          color: #aa1941;
          text-align: center;
          .unit3Text {
            font-size: 36px;
          }
          span {
            font-size: 24px;
          }
        }
        .n-txt {
          font-size: 16px;
          font-family: auto;
          // line-height: 34px;
          text-align: center;
          color: #666666;
        }
        &.w184 {
          width: 184px;
        }
        &.w180 {
          width: 180px;
        }
        &.w249 {
          width: 249px;
        }
        &.w186 {
          width: 186px;
        }
        &.w188 {
          width: 188px;
        }
      }
    }
  }
  .tab-content {
    padding-top: 80px;
    .tab-nav {
      display: flex;
      justify-content: space-between;
      .li {
        width: 280px;
        height: 150px;
        box-sizing: border-box;
        padding-top: 38px;
        background: #fbfbfb;
        // margin-right: 16px;
        cursor: pointer;
        &.active {
          background: #ffffff;
          box-shadow: 0px 1px 25px rgba(0, 0, 0, 0.06);
          position: relative;
          &::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 8px;
            background: #aa1941;
          }
        }
        .t1 {
          text-align: center;
          line-height: 100%;
          font-size: 24px;
          font-weight: 500;
          color: #aa1941;
        }
        .t2 {
          font-size: 20px;
          line-height: 100%;
          color: #424242;
          margin-top: 16px;
          text-align: center;
          font-family: auto;
        }
      }
    }
    .tab-con {
      width: 872px;
      background: #ffffff;
      box-shadow: 0px 1px 25px rgba(0, 0, 0, 0.06);
      box-sizing: border-box;
      padding: 20px 48px;
      margin-top: 40px;
      position: relative;
      font-size: 16px;
      font-weight: 400;
      line-height: 40px;
      color: #333333;
      ::v-deep {
        span {
          color: rgba(170, 25, 65, 1);
          font-size: 28px;
          font-weight: bold;
        }
      }
      &.tab-con2 {
        &::after {
          top: -15px;
          left: 50%;
          transform: translateX(-50%);
        }
      }
      &.tab-con3 {
        &::after {
          top: -15px;
          left: auto;
          right: 140px;
        }
      }
      &::after {
        content: '';
        position: absolute;
        top: -15px;
        left: 140px;
        width: 0;
        height: 0;
        border-left: 15px solid transparent;
        border-right: 15px solid transparent;
        border-bottom: 15px solid #fff;
      }
    }
  }
}
</style>
