<template>
  <div>
    <tab-nav active="1"></tab-nav>
    <img src="https://webapp-pub.ezijing.com/www/h5/images/about_banner_01.png" class="main-banner" />
    <div class="main-container">
      <div class="main-content">
        <h1 class="title">紫荆简介</h1>
        <p>
          紫荆教育全称是清控紫荆（北京）教育科技股份有限公司，由清华控股有限公司于2015年以清华大学五道口金融学院相关知识产权创设而成。“紫荆”二字取自清华大学校花“紫荆花”，寓意“自强不息，向美而行”。
        </p>
        <p>
          紫荆教育以教育为本、以科技赋能、以专业化为基础，以国际化为目标，提供高端国际学位教育、职业教育和在线教育解决方案，为我国培养高质量的国际化人才和产业人才。
        </p>
      </div>
      <div class="total">
        <ul>
          <li>
            <p class="t1"><span>12</span>所</p>
            <p class="t2">国际合作院校</p>
          </li>
          <li>
            <p class="t1"><span>522</span>门</p>
            <p class="t2">线上课程</p>
          </li>
        </ul>
        <ul>
          <li>
            <p class="t1"><span>600</span>+</p>
            <p class="t2">金融机构/协会/政府/学校</p>
          </li>
          <li>
            <p class="t1"><span>700</span>+</p>
            <p class="t2">国内外师资团队</p>
          </li>
        </ul>
        <ul>
          <li>
            <p class="t1"><span>5000</span>+</p>
            <p class="t2">学位学员</p>
          </li>
          <li>
            <p class="t1"><span>500万</span>+</p>
            <p class="t2">人次学习</p>
          </li>
        </ul>
        <ul>
          <li>
            <p class="t1"><span>1000</span>+</p>
            <p class="t2">学术直播课</p>
          </li>
          <li>
            <p class="t1"><span>4800</span>+</p>
            <p class="t2">总研发课时</p>
          </li>
        </ul>
      </div>
      <div class="tabs">
        <ul class="tab-nav">
          <li :class="{ 'is-active': indexActive === 0 }" @click="changeIndex(0)">
            <p class="t1">专业化</p>
            <p class="t2">长期思维&nbsp;&nbsp;严谨治学</p>
          </li>
          <li :class="{ 'is-active': indexActive === 1 }" @click="changeIndex(1)">
            <p class="t1">科技化</p>
            <p class="t2">源自清华&nbsp;&nbsp;持续投入</p>
          </li>
          <li :class="{ 'is-active': indexActive === 2 }" @click="changeIndex(2)">
            <p class="t1">国际化</p>
            <p class="t2">放眼全球&nbsp;&nbsp;国际合作</p>
          </li>
        </ul>
        <div class="tab-content" v-show="indexActive === 0">
          <span>9</span>年深耕教育产业，完善的教学管理体系和内控体系; <br />
          <span>12</span>所国际合作大学，<span>16</span>个国际学位项目，互认学分; <br />
          <span>600+</span>金融机构政府、协会等合作单位; <br />
          <span>50+</span>课程研发人员，<span>700+</span>师资团队，<span>4800+</span>总研发课时。
        </div>
        <div class="tab-content" v-show="indexActive === 1">
          源自清华，持续投入 <span>50+</span>技术研发团队，<br /><span>1亿+</span>累计研发投入;<br />
          <span>500万+</span>总学习人次，<span>24</span>小时在线;<br />
          <span>1000+</span>次直播，<span>10000+</span>题库;<br />
          大数据智能学习分析、作业评判、智能化营销数据分配。
        </div>
        <div class="tab-content" v-show="indexActive === 2">
          <span>AACSB、EQUIS、ASCHE、ACE、HLC、WASC</span>等认证;<br />
          <span>30</span>余位哈佛、清华、哥伦比亚等国际一流大学人才组成的国际化团队;<br />
          <span>40%</span>员工有研究生学历;<br />
          <span>5</span
          >大洲<span>16</span>个国家/地区国际校友网络，<br />覆盖全国<span>380+</span>省、市、自治区及行政特区。
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import TabNav from '@/components/about/TabNav'
export default {
  components: { TabNav },
  data() {
    return {
      indexActive: 0
    }
  },
  methods: {
    changeIndex(n) {
      this.indexActive = n
    }
  }
}
</script>

<style lang="scss" scoped>
.total {
  padding-top: 0.3rem;
  ul {
    display: flex;
    li {
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: center;
      height: 0.48rem;
      margin-bottom: 0.2rem;
      .t1 {
        font-size: 0.16rem;
        font-weight: 500;
        color: #aa1941;
        span {
          font-size: 0.23rem;
        }
      }
      .t2 {
        font-size: 0.11rem;
        color: #666;
      }
      &:first-child {
        padding-right: 0.3rem;
        text-align: right;
      }
      &:last-child {
        padding-left: 0.3rem;
        text-align: left;
      }
    }
    li + li {
      border-left: 1px solid #c3c3c3;
    }
  }
}

.tabs {
  margin-top: 0.3rem;
  .tab-nav {
    display: flex;
    li {
      position: relative;
      flex: 1;
      height: 0.75rem;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      box-sizing: border-box;
      background: #fbfbfb;
      cursor: pointer;

      &.is-active {
        background: #fff;
        border-top: 0.04rem solid #aa1941;
        box-shadow: 0px 1px 13px rgba(0, 0, 0, 0.06);
        &::after {
          content: '';
          position: absolute;
          left: 50%;
          bottom: -0.2rem;
          width: 0;
          height: 0;
          border-left: 0.1rem solid transparent;
          border-right: 0.1rem solid transparent;
          border-bottom: 0.1rem solid #fff;
          transform: translateX(-50%);
          z-index: 1;
        }
      }

      .t1 {
        font-size: 0.13rem;
        font-weight: 500;
        color: #aa1941;
        text-align: center;
      }
      .t2 {
        margin-top: 0.1rem;
        font-size: 0.1rem;
        text-align: center;
      }
    }
    li + li {
      margin-left: 0.07rem;
    }
  }
  .tab-content {
    position: relative;
    padding: 0.24rem;
    margin-top: 0.2rem;
    font-size: 0.12rem;
    line-height: 0.3rem;
    color: #333;
    background: #fff;
    box-shadow: 0px 1px 13px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
    span {
      font-size: 0.2rem;
      font-weight: bold;
      color: #aa1941;
    }
  }
}
</style>
