<template>
  <div :class="isMobile ? 'is-h5' : 'is-pc'">
    <div class="ranking-content-box">
      <div class="title">
        <div class="line"></div>
        <div class="name">{{ $t('home.ranking.title') }}</div>
        <div class="line"></div>
      </div>
      <div class="content-mian">
        <div class="li">
          <div class="li-tit" v-html="$t('home.ranking.item1Tit')"></div>
          <div class="li-tit1" v-html="$t('home.ranking.item1Tit1')"></div>
          <div class="item">
            <div class="tit"><span class="no">2021.No.</span><span class="num">1</span></div>
            <div class="p" v-html="$t('home.ranking.item1Txt1')"></div>
          </div>
          <div class="item">
            <div class="tit"><span class="no">2021.No.</span><span class="num">8</span></div>
            <div class="p" v-html="$t('home.ranking.item1Txt2')"></div>
          </div>
        </div>
        <div class="li li_center">
          <!-- <div class="li-tit" v-html="$t('home.ranking.item2Tit11')"></div> -->
          <div class="li-tit2" v-html="$t('home.ranking.item2Tit12')"></div>
          <div class="li-tit2" v-html="$t('home.ranking.item2Tit13')"></div>
          <div class="li-tit2" v-html="$t('home.ranking.item2Tit14')"></div>
        </div>
        <div class="li mar-t">
          <div class="li-tit" v-html="$t('home.ranking.item3Tit')"></div>
          <div class="li-tit1" v-html="$t('home.ranking.item3Tit1')"></div>

          
          <div class="item item_two">

            <div class="tit"><span class="no">2021.No.</span><span class="num">1</span></div>
            <div class="p" v-html="$t('home.ranking.item3Txt1')"></div>
          </div>
          <div class="item item_last">
            <div class="tit"><span class="no">2021.No.</span><span class="num">7</span></div>
            <div class="p" v-html="$t('home.ranking.item3Txt2')"></div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  name: 'schoolRanking',
  computed: {
    isMobile() {
      return this.$store.state.isMobile
    }
  }
}
</script>
<style lang="scss" scoped>
.is-pc {
  .ranking-content-box {
    margin-top: 57px;
    width: 100%;
    height: 680px;
    background: url(https://webapp-pub.ezijing.com/project/kelley/home-ranking-bg.png) center;
    background-size: cover;
    .title {
      width: 1200px;
      display: flex;
      margin: 0 auto;
      justify-content: space-between;
      align-items: center;
      padding: 80px 0;
      .line {
        // width: 369px;
        height: 1px;
        background: #ffffff;
      }
      .name {
        font-size: 36px;
        font-weight: bold;
        line-height: 100%;
        color: #ffffff;
      }
    }
    .content-mian {
      width:1200px;
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
      .li_center {
        flex: 0 200px !important;
        // align-self: center;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
      }
      .li {
        flex: 1;
        // width: 250px;
        margin: auto;
        .li-tit {
          text-align: center;
          font-size: 30px;
          line-height: 24px;
          color: #fff;
          font-weight: 400;
        }
        .li-tit1 {
          font-size: 28px;
          font-weight: 300;
          line-height: 24px;
          color: #ffffff;
          margin-top: 11px;
          text-align: center;
        }
        .li-tit2 {
          font-size: 28px;
          font-weight: 500;
          line-height: 70px;
          color: #ffffff;
          opacity: 1;
        }
        .item {
          .tit {
            padding-top: 46px;
            color: #fbfbfb;
            text-align: center;
            margin-bottom: 15px;
            line-height: 34px;
            .no {
              font-size: 24px;
            }
            .num {
              font-size: 48px;
            }
          }
          .p {
            text-align: center;
            font-size: 16px;
            line-height: 24px;
            color: #ffffff;
          }
        }
      }
    }
  }
}
.is-h5 {
  .ranking-content-box {
    margin-top: 0.2rem;
    width: 100%;
    min-height: 2.84rem;
    background: url(https://webapp-pub.ezijing.com/project/kelley-h5/home-ranking-bg.png) center;
    background-size: cover;
    padding: 0 0.1rem;
    box-sizing: border-box;
    .title {
      width: 3.41rem;
      display: flex;
      margin: 0 auto;
      justify-content: space-between;
      align-items: center;
      padding: 0.27rem 0 0.26rem;
      .line {
        width: 1rem;
        height: 0.01rem;
        background: #ffffff;
      }
      .name {
        font-size: 0.17rem;
        font-weight: bold;
        line-height: 0.33rem;
        color: #ffffff;
      }
    }
    .content-mian {
      // margin: 0 auto;
      display: flex;
      justify-content: space-between;
      padding-bottom: .44rem;
      .li_center {
        align-self: center;
        text-align: center;
      }
      .li {
        width: 2.5rem;
        .li-tit {
          text-align: center;
          font-size: .14rem;
          line-height: .15rem;
          color: #fff;
          font-weight: 400;
        }
        .li-tit1{
        font-size: .12rem;
        font-weight: 300;
        line-height: .12rem;
        color: #FFFFFF;
        margin-top: .05rem;
        text-align: center;
        }
        .li-tit2{
        font-size: .12rem;
        font-weight: 500;
        line-height: .24rem;
        color: #FFFFFF;
        opacity: 1;
        }
        .item {
          .tit {
            padding-top: 12px;
            color: #FBFBFB;
            text-align: center;
            // margin-bottom: 16px;
            line-height: 20px;
            .no {
              font-size: 12px;
            }
            .num{
              font-size: 18px;
            }
          }
          .p {
            text-align: center;
            font-size: 12px;
            color: #ffffff;
          }
        }
        .item_last{
          margin-top: .15rem;
        }
        .item_two{
          margin-top: .15rem;
        }
      }
    }
  }
}
</style>