<template>
  <div class="layout_com_page">
    <section class="home-banner">
      <div class="banner-text">
        <p style="font-weight: bold;">如果你：</p>
        <p>想驰骋商企领袖圈，群雄荟萃彰显高层身份</p>
        <p>想构建国际化格局，对话中美顶级商学大师</p>
        <P>想掌舵数字新纪元，构建高净值商业生态圈</P>
        <h1>紫荆-玛丽伍德大学数字时代领航人才EMBA</h1>
        <p>塑造具备全球数字化视野的商企领袖</p>
      </div>
      <el-carousel arrow="never" class="banner-swiper">
        <el-carousel-item v-for="item in bannerList" :key="item.src"><img :src="item.src"/></el-carousel-item>
      </el-carousel>
    </section>
    <section class="home-student">
      <div class="title">精英学员云集 群雄同学荟萃</div>
      <div class="card-list">
        <div class="card-item">
          <div class="top">
            <div class="num">86%</div>
            <p>企业中高管学员</p>
            <p>占比</p>
          </div>
          <img src="https://webapp-pub.oss-cn-beijing.aliyuncs.com/lms/wmp/student1.png" />
        </div>
        <div class="card-item">
          <div class="top">
            <div class="num">10%</div>
            <p>硕士、博士学位学员</p>
            <p>占比</p>
          </div>
          <img src="https://webapp-pub.oss-cn-beijing.aliyuncs.com/lms/wmp/student2.png" />
        </div>
        <div class="card-item">
          <div class="top">
            <div class="num">34</div>
            <p>学员来自34个省级</p>
            <p>行政区</p>
          </div>
          <img src="https://webapp-pub.oss-cn-beijing.aliyuncs.com/lms/wmp/student3.png" />
        </div>
        <div class="card-item">
          <div class="top">
            <div class="num">10</div>
            <p>学员来自10个海外</p>
            <p>国家</p>
          </div>
          <img src="https://webapp-pub.oss-cn-beijing.aliyuncs.com/lms/wmp/student4.png" />
        </div>
      </div>
      <p class="text">
        紫荆-玛丽伍德大学项目培养了众多高管学员，他们中有众多成功创业者和企业高管，就职于<span>中化、中冶、中交、中金、阿里、百度</span>等国际知名企业。
      </p>
      <p class="text" style="margin-top: 20px;">
        很多学员曾毕业于<span>清华、北大、人大、复旦、北理工、厦大、浙大、杜克、加州伯克利、纽约大学</span>等国内外著名学府。
      </p>
      <div class="home-student_tab" @mouseover="studentTabStop" @mouseout="studentTabPlay">
        <div class="tab-btn">
          <div style="margin: 0 auto;width: 950px; display: flex;">
            <div :class="studentTabIndex === 0 ? 'active item-btn' : 'item-btn'" @click="studentTabIndex = 0">
              中美大师课
            </div>
            <div :class="studentTabIndex === 1 ? 'active item-btn' : 'item-btn'" @click="studentTabIndex = 1">
              线上研讨
            </div>
            <div :class="studentTabIndex === 2 ? 'active item-btn' : 'item-btn'" @click="studentTabIndex = 2">
              线下课堂
            </div>
          </div>
        </div>
        <div class="tab-content1" v-if="studentTabIndex === 0">
          <div class="content1-item">
            <img src="https://webapp-pub.oss-cn-beijing.aliyuncs.com/lms/wmp/tab-1-1.png" />
            <div class="tag">中文教学 双语环境</div>
          </div>
          <div class="content1-item m-c">
            <img src="https://webapp-pub.oss-cn-beijing.aliyuncs.com/lms/wmp/tab-1-2.png" />
            <div class="tag">中外师资 实时交流</div>
          </div>
          <div class="content1-item">
            <img src="https://webapp-pub.oss-cn-beijing.aliyuncs.com/lms/wmp/tab-1-3.png" />
            <div class="tag">商业视野 格局境界</div>
          </div>
          <div class="content1-item">
            <img src="https://webapp-pub.oss-cn-beijing.aliyuncs.com/lms/wmp/tab-1-4.png" />
            <div class="tag">中西交融 在线互动</div>
          </div>
          <div class="content1-item m-c">
            <img src="https://webapp-pub.oss-cn-beijing.aliyuncs.com/lms/wmp/tab-1-5.png" />
            <div class="tag">创新思维 启迪智慧</div>
          </div>
          <div class="content1-item">
            <img src="https://webapp-pub.oss-cn-beijing.aliyuncs.com/lms/wmp/tab-1-6.png" />
            <div class="tag">精品课程 聚焦前沿</div>
          </div>
        </div>
        <div class="tab-content_it" v-if="studentTabIndex === 1">
          <div>
            <p>充分开启同学、师生之间的交流探讨，分享各自的商业案例，把脉时代的前沿课题，探索企业数字化转型之路。</p>
          </div>
          <div>
            <img src="https://webapp-pub.oss-cn-beijing.aliyuncs.com/lms/wmp/tab-2-1.png" />
          </div>
          <div>
            <img src="https://webapp-pub.oss-cn-beijing.aliyuncs.com/lms/wmp/tab-2-2.png" />
          </div>
          <div>
            <img src="https://webapp-pub.oss-cn-beijing.aliyuncs.com/lms/wmp/tab-2-3.png" />
          </div>
        </div>
        <div class="tab-content_it" v-if="studentTabIndex === 2">
          <div>
            <img src="https://webapp-pub.oss-cn-beijing.aliyuncs.com/lms/wmp/tab-3-1.png" />
          </div>
          <div>
            <p>丰富的线下互动课程，现场对话名师，建立顶级商业思维，开拓前沿商业视野，探索创新商业模式。</p>
          </div>
          <div>
            <img src="https://webapp-pub.oss-cn-beijing.aliyuncs.com/lms/wmp/tab-3-2.png" />
          </div>
          <div>
            <img src="https://webapp-pub.oss-cn-beijing.aliyuncs.com/lms/wmp/tab-3-3.png" />
          </div>
        </div>
      </div>
    </section>
    <!-- <section class="introduce">
      <h3>数字时代课题贯穿的<span>教学内容</span></h3>
      <h3>从思路到出路，从方法到结果的<span>教学逻辑</span></h3>
      <h3 class="line">理论学习、实操训练、案例教学、团队协作等多元化的<span>学习体验</span></h3>
      <p>
        项目课程划分为三个模块，遵循商业发展规律，以商业发展为主线，系统科学地把握项目与企业发展中的每个重要环节。
        让创业不难，让转型不痛，让方法科学涌现，让执行酣畅到位，让决策有理可依，让管理有的放矢，让结果指日可期。
      </p>
    </section> -->
    <courseSystem></courseSystem>
    <teacherInfo></teacherInfo>
    <section class="project-study">
      <div class="subtitle">
        <h2>学习相关</h2>
      </div>
      <div class="project-study-bd">
        <div class="project-study-left">
          <img src="https://webapp-pub.oss-cn-beijing.aliyuncs.com/lms/wmp/cert.png" width="500px" />
        </div>
        <div class="project-study-right">
          <h3>项目学制</h3>
          <ul>
            <li><span>16</span>个月</li>
            <li>修满<span>36</span>学分</li>
          </ul>
          <p>
            修满全部学分并考核合格后，由玛丽伍德大学授予高级管理人员工商管理硕士（EMBA）证书。
          </p>
        </div>
      </div>
    </section>
    <studentActivity></studentActivity>
    <!-- <section class="activity-list">
      <h1>丰富多彩的学生活动</h1>
      <div class="list">
        <div class="nav">
          <div class="li">开学典礼</div>
          <div class="li">论坛</div>
          <div class="li">企业采访</div>
          <div class="li">班级集体活动</div>
        </div>
        <div class="imgs w1">
          <img src="https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/new-marywood/activity1.png" />
        </div>
        <div class="imgs">
          <img src="https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/new-marywood/activity2.png" />
          <img src="https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/new-marywood/activity3.png" />
        </div>
        <div class="imgs">
          <img src="https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/new-marywood/activity4.png" />
          <img src="https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/new-marywood/activity5.png" />
        </div>
        <div class="imgs">
          <img src="https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/new-marywood/activity6.png" />
          <img src="https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/new-marywood/activity7.png" />
          <img src="https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/new-marywood/activity8.png" />
        </div>
        <div class="imgs">
          <img src="https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/new-marywood/activity9.png" />
          <img src="https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/new-marywood/activity10.png" />
          <img src="https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/new-marywood/activity11.png" />
        </div>
      </div>
    </section> -->
    <section class="project-card">
      <div class="project-card-item" v-for="(item, index) in list" :key="index">
        <div class="project-card-item-header">
          <h3>{{ item.name }}</h3>
        </div>
        <div class="project-card-item-box">
          <img :src="item.bg" />
          <ul>
            <li v-for="(child, index) in item.children" :key="index">{{ child }}</li>
          </ul>
        </div>
      </div>
    </section>

    <FormBox />
  </div>
</template>

<script>
import courseSystem from '@/components/courseSystem'
import teacherInfo from '@/components/teacherInfo'
import studentActivity from '@/components/studentActivity'
import FormBox from '@/components/formBox'
export default {
  name: 'major-set',
  components: {
    FormBox,
    courseSystem,
    teacherInfo,
    studentActivity
  },
  data() {
    return {
      studentTabIndexTime: null,
      studentTabIndex: 0,
      bannerList: [
        {
          src: 'https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/marywood/417/banner-417-1.png'
        },
        {
          src: 'https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/marywood/417/banner-417-2.png'
        },
        {
          src: 'https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/marywood/417/banner-417-3.png'
        }
      ],
      forestIndex: 0,
      forest: [
        {
          name: '家庭',
          eName: 'Family',
          children: [
            { name: '今日家庭', eName: 'The Family Today' },
            { name: '家庭发展', eName: 'Family Development' }
          ]
        },
        {
          name: '社会',
          eName: 'Others',
          children: [
            { name: '人类发展', eName: 'Human Development' },
            { name: '家庭法律与公共政策', eName: 'Family Law and Public Policy' }
          ]
        },
        {
          name: '关系',
          eName: 'Relations',
          children: [
            { name: '婚姻与家庭关系', eName: 'Marriage and Family Relations' },
            { name: '人类性学', eName: 'Human Sexuality' }
          ]
        },
        {
          name: '养育',
          eName: 'Education',
          children: [
            { name: '家庭与育儿的现代议题-儿童期', eName: 'Contemporary Issues of Family and Parenting - Childhood' },
            { name: '家庭与育儿的现代议题-青少年期', eName: 'Contemporary Issues of Family and Parenting - Adolescent' }
          ]
        },
        {
          name: '技能',
          eName: 'Skills',
          children: [{ name: '家庭教育的课程设计与方法', eName: 'Curriculum and Methods in Family Life Education' }]
        },
        {
          name: '治疗',
          eName: 'Therapy',
          children: [{ name: '家庭治疗（技术与特殊专题）', eName: 'Family Therapy (Techniques and specials Topics)' }]
        }
      ],
      list: [
        {
          name: '招生对象',
          bg: 'https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/new-marywood/project_bg_01.png',
          children: [
            '希望收获商业伙伴，共话未来商业发展机会的管理者',
            '持续企业创新，让企业持续在行业领跑的管理者',
            '有企业责任、社会责任的商业管理精英与领袖'
          ]
        },
        {
          name: '入学条件',
          bg: 'https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/new-marywood/project_bg_02.png',
          children: [
            '持有本科学历或学位',
            '拥有三年制大专学历者可视情况录取',
            '具备5年以上管理经验，具备领航新时代愿景'
          ]
        },
        {
          name: '授课形式',
          bg: 'https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/new-marywood/project_bg_03.png',
          children: [
            '线上研讨+线下课堂',
            '中文授课、免联考，充分开启同学、师生之间的充分交流，分享各自的商业案例，把脉与深度研讨时代前沿课题。 '
          ]
        },
        {
          name: '毕业典礼',
          bg: 'https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/new-marywood/project_bg_04.png',
          children: ['学生可在学业全部完成后，在国内或赴美参加毕业典礼，共享学有所成的精彩时刻。']
        }
      ]
    }
  },
  mounted() {
    this.studentTabSwiper()
  },
  methods: {
    studentTabSwiper() {
      clearInterval(this.studentTabIndexTime)
      this.studentTabIndexTime = setInterval(() => {
        if (this.studentTabIndex === 2) {
          this.studentTabIndex = 0
        } else {
          this.studentTabIndex++
        }
      }, 2000)
    },
    studentTabPlay() {
      this.studentTabSwiper()
    },
    studentTabStop() {
      clearInterval(this.studentTabIndexTime)
    }
  }
}
</script>

<style lang="scss" scoped>
.home-banner {
  position: relative;
  height: calc(100vh - 10px);
  min-height: 600px;
}
.banner-swiper {
  height: 100%;
  ::v-deep .el-carousel__container {
    height: 100%;
  }
  img {
    height: 100%;
    width: 100%;
    object-fit: cover;
  }
}
.banner {
  position: relative;
  height: calc(100vh - 10px);
  min-height: 600px;
  background: url(https://webapp-pub.ezijing.com/project/cuw/project_banner.jpg) no-repeat center;
  background-size: cover;
  .banner-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 980px;
    margin: 0 auto;
  }
  h1 {
    font-size: 50px;
    font-family: SourceHanSansCN-Medium, SourceHanSansCN;
    font-weight: 500;
    color: #ffffff;
    line-height: 58px;
    letter-spacing: 9px;
    text-align: center;
    padding: 20px 0;
  }
  p {
    font-size: 24px;
    font-family: SourceHanSansCN-Regular, SourceHanSansCN;
    font-weight: 400;
    color: #ffffff;
    line-height: 40px;
  }
}

.project-card {
  padding: 120px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  // background: url('~@/assets/images/major-set/bg1.png');
  // background-size: cover;
}
.project-card-item {
  width: 260px;
  margin: 0 20px;
  &:hover {
    .project-card-item-box {
      img {
        transform: scale(1.05);
      }
    }
  }
}
.project-card-item-header {
  width: 220px;
  height: 60px;
  margin: 0 auto;
  font-size: 26px;
  font-family: SourceHanSansCN-Medium, SourceHanSansCN;
  font-weight: 500;
  color: #ffffff;
  line-height: 60px;
  text-align: center;
  background: url('https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/new-marywood/proejct_card_bg.png') no-repeat
    center top;
  background-size: contain;
}
.project-card-item-box {
  position: relative;
  background: rgba(26, 86, 50, 1);
  border-radius: 13px;
  overflow: hidden;
  padding-bottom: 10px;
  img {
    width: 100%;
    transition: all 0.25s ease-in-out;
  }
  ul {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    padding: 40px 10px 0 18px;
    background: rgba(0, 0, 0, 0.5);
  }
  li {
    position: relative;
    font-size: 16px;
    font-family: SourceHanSansCN-Regular, SourceHanSansCN;
    font-weight: 400;
    color: #ffffff;
    line-height: 28px;
    padding-left: 15px;
    &::before {
      content: '';
      position: absolute;
      top: 12px;
      left: 0;
      width: 6px;
      height: 6px;
      background: #ffffff;
      border-radius: 50%;
      overflow: hidden;
    }
  }
  li + li {
    margin-top: 15px;
  }
}
.project-study {
  padding: 30px 0;
  height: 600px;
  // background: url(https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/new-marywood/cert_bg.png) no-repeat center
  //   center;
  // background-size: cover;
  background: #fff;
  .subtitle {
    padding: 50px 0;
    text-align: center;
    h2 {
      display: inline-block;
      padding-bottom: 12px;
      font-size: 40px;
      font-family: SourceHanSansCN-Medium, SourceHanSansCN;
      font-weight: 500;
      color: #1a5632;
      line-height: 1;
      border-bottom: 3px solid #1a5632;
    }
  }
}
.project-study-bd {
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-study-right {
  width: 452px;
  margin-left: 45px;
  color: #000;
  h3 {
    font-size: 26px;
    font-family: SourceHanSansCN-Bold, SourceHanSansCN;
    font-weight: bold;
    color: #000;
    line-height: 34px;
  }
  ul {
    margin-top: 66px;
    margin-bottom: 20px;
    display: flex;
  }
  li {
    font-size: 22px;
    font-family: SourceHanSansCN-Regular, SourceHanSansCN;
    font-weight: 400;
    color: #000;
    line-height: 1;
    padding-right: 30px;
    span {
      font-size: 60px;
      font-family: 思源黑体 CN Regular;
    }
  }
  li + li {
    padding-left: 30px;
    border-left: 1px solid #000;
  }
  p {
    font-size: 18px;
    font-family: SourceHanSansCN-Regular, SourceHanSansCN;
    font-weight: 400;
    color: #000;
    line-height: 30px;
  }
}
.banner-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 99;
  text-align: center;
  p {
    font-size: 24px;
    color: #ffffff;
    line-height: 41px;
  }
  h1 {
    font-size: 56px;
    font-family: SourceHanSansCN-Bold, SourceHanSansCN;
    font-weight: bold;
    color: #f6a800;
    letter-spacing: 3px;
    white-space: nowrap;
  }
}
@media all and (orientation : portrait){
  .banner-text{
    h1{
      font-size: 32px;
    }
  }
}
.introduce {
  height: 624px;
  background: url(https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/new-marywood/introduce_bg.png?v1);
  background-size: cover;
  padding-top: 150px;
  box-sizing: border-box;
  h3 {
    font-size: 34px;
    font-weight: bold;
    color: #ffffff;
    line-height: 56px;
    width: fit-content;
    margin: 0 auto;
    &.line {
      border-bottom: 1px solid #f6a800;
    }
    span {
      color: #f6a800;
    }
  }
  p {
    font-size: 22px;
    font-weight: 400;
    color: #ffffff;
    line-height: 32px;
    max-width: 1200px;
    margin: 30px auto;
  }
}
.activity-list {
  height: 789px;
  background: url(https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/new-marywood/course_bg.png);
  background-size: cover;
  h1 {
    font-size: 40px;
    font-weight: bold;
    color: #ffffff;
    line-height: 51px;
    border-bottom: 3px solid #f6a800;
    width: fit-content;
    margin: 0 auto;
    padding-top: 40px;
  }
  .list {
    position: relative;
    width: 1350px;
    display: flex;
    padding-top: 80px;
    margin: 0 auto;
    .nav {
      position: absolute;
      top: 340px;
      left: 440px;
      width: 900px;
      height: 53px;
      background: rgba(246, 168, 0, 0.6);
      display: flex;
      // z-index: 999;
      .li {
        font-size: 24px;
        color: #ffffff;
        line-height: 53px;
        min-width: 210px;
        margin-right: 20px;
        text-align: center;
      }
    }
    .imgs {
      margin-right: 20px;
      img {
        width: 210px;
        display: block;
        margin-bottom: 6px;
        &:hover {
          transform: scale(1.05);
          transition: all 0.5s;
        }
      }
    }
    .w1 {
      img {
        width: 420px;
      }
    }
  }
}
.home-student {
  padding-top: 76px;
  margin-bottom: 50px;
  .title {
    font-size: 40px;
    font-weight: normal;
    color: #1a5632;
    line-height: 51px;
    border-bottom: 3px solid #f6a800;
    width: 500px;
    margin: 0 auto 56px;
  }
  .card-list {
    width: 950px;
    margin: 0 auto;
    display: flex;
    .card-item {
      min-width: 210px;
      overflow: hidden;
      transition: all 1s;
      margin-right: 36px;
      margin-bottom: 39px;
      &:hover {
        img {
          transform: scale(1.1);
          transition: all 0.3s;
        }
      }
      .top {
        background: #1a5632;
        height: 200px;
        .num {
          padding: 38px 0 20px;
          text-align: center;
          font-size: 48px;
          font-weight: normal;
          color: #f6a800;
          line-height: 56px;
        }
        p {
          font-size: 22px;
          font-weight: normal;
          color: #fff;
          line-height: 30px;
          text-align: center;
        }
      }
    }
  }
  .text {
    width: 950px;
    margin: 0 auto;
    text-align: center;
    font-size: 24px;
    font-weight: normal;
    color: #000000;
    line-height: 36px;
    span {
      color: #1a5632;
    }
  }
  .home-student_tab {
    margin-top: 60px;
    .tab-btn {
      border-bottom: 1px solid #1a5632;
      .item-btn {
        cursor: pointer;
        width: 180px;
        line-height: 42px;
        border: 1px solid #1a5632;
        text-align: center;
        color: #1a5632;
        margin-right: 10px;
        border-bottom: none;
        &.active {
          background: #1a5632;
          color: #fff;
        }
      }
    }
    .tab-content1 {
      display: flex;
      flex-wrap: wrap;
      width: 950px;
      margin: 0 auto;
      padding-top: 53px;
      .content1-item {
        width: 280px;
        margin-bottom: 38px;
        &.m-c {
          margin-left: 55px;
          margin-right: 55px;
          .tag {
            border-bottom: 4px solid #f6a800;
          }
        }
        .tag {
          line-height: 56px;
          border-bottom: 4px solid #1a5632;
          font-size: 24px;
          color: #000000;
          text-align: center;
        }
      }
    }
    .tab-content_it {
      display: flex;
      flex-wrap: wrap;
      width: 950px;
      margin: 0 auto;
      padding-top: 53px;
      div {
        width: 460px;
        height: 250px;
        margin-bottom: 10px;
        &:nth-child(odd) {
          margin-right: 30px;
        }
        p {
          font-size: 24px;
          color: #000000;
          line-height: 40px;
        }
      }
    }
  }
}
</style>
