<template>
  <div class="layout_com_page">
    <div class="banner">
      <div class="banner-inner">
        <h1>威斯康星协和大学—家庭教育硕士</h1>
        <p>
          目前，国内普遍的家庭教育课程结构像是一棵树，父母好比树干，孩子好比枝叶，课程更多的是围绕父母教养孩子的“狭义家庭教育”。然而，深入的家庭教育不应只片面地强调子女养育。家庭好比一片森林（FOREST），科学的家庭教育是将家庭作为一个系统进行研究。
        </p>
      </div>
    </div>
    <section class="school-top">
      <div class="subtitle">
        <h2>专业排名与认证</h2>
      </div>
      <img src="https://webapp-pub.ezijing.com/project/cuw/project_top.jpg" />
    </section>
    <section class="project-forest">
      <h2>项目采用<span>“FOREST（森林）”</span>教学体系</h2>
      <p class="t0">
        引领学生全方位掌握在家庭教育中，个体发展、婚姻关系、家庭发展、性与家庭、儿童和青少年养育等理论与方法，<br />
        以及家庭与社会的文化、政策、法律等关系，让学生从根本上理解并解决家庭的问题。
      </p>
      <div class="forest-group">
        <div
          class="forest-item"
          :class="{ 'is-active': forestIndex === index }"
          v-for="(item, index) in forest"
          :key="item.name"
          @mouseenter="forestIndex = index"
        >
          <div class="circle">
            <p class="t1">{{ item.eName }}</p>
            <p class="t2">{{ item.name }}</p>
          </div>
          <div class="forest-item-main">
            <div class="line"></div>
            <dl v-for="child in item.children" :key="child.nam">
              <dt>{{ child.name }}</dt>
              <dd>{{ child.eName }}</dd>
            </dl>
          </div>
        </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 in item.children">{{ child }}</li>
          </ul>
        </div>
      </div>
    </section>
    <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.ezijing.com/project/cuw/project_study.png" width="547px" />
        </div>
        <div class="project-study-right">
          <h3>项目学制</h3>
          <ul>
            <li><span>20</span>个月</li>
            <li>修满<span>30</span>学分</li>
          </ul>
          <p>
            修满全部学分并考核合格后，由威斯康星协和大学授予教育学硕士学位。学位证书与出国留学学习所获得的学位证书相同。
          </p>
        </div>
      </div>
    </section>
    <FormBox />
  </div>
</template>

<script>
import FormBox from '@/components/formBox'

export default {
  components: { FormBox },
  data() {
    return {
      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.ezijing.com/project/cuw/project_bg_01.png',
          children: [
            '心理咨询师、婚姻家庭治疗师、家庭教育指导师、社区工作者',
            '幼儿园、小学、中学教师、班主任',
            '对科学理解家庭及养育有需求的人群'
          ]
        },
        {
          name: '入学条件',
          bg: 'https://webapp-pub.ezijing.com/project/cuw/project_bg_02.png',
          children: ['持有本科学历或学位', '有两年以上相关工作经验的大专学历学生有少量名额，可通过筛选后择优录取']
        },
        {
          name: '授课形式',
          bg: 'https://webapp-pub.ezijing.com/project/cuw/project_bg_03.png',
          children: ['双语环境，中文授课', '操作流畅的学习平台', '线上课程+线下工作坊']
        },
        {
          name: '毕业典礼',
          bg: 'https://webapp-pub.ezijing.com/project/cuw/project_bg_04.png',
          children: ['学生可在学业全部完成后，在国内或赴美参加毕业典礼，共享学有所成的高光时刻']
        }
      ]
    }
  }
}
</script>

<style lang="scss" scoped>
.banner {
  position: relative;
  height: calc(100vh - 40px);
  min-height: 660px;
  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: translateX(-50%);
    width: 980px;
    margin: 0 auto;
  }
  h1 {
    font-size: 56px;
    font-family: SourceHanSansCN-Medium, SourceHanSansCN;
    font-weight: 500;
    color: #ffffff;
    line-height: 59px;
    letter-spacing: 9px;
    padding: 20px 0;
  }
  p {
    font-size: 24px;
    font-family: SourceHanSansCN-Regular, SourceHanSansCN;
    font-weight: 400;
    color: #ffffff;
    line-height: 40px;
  }
}
.school-top {
  position: relative;
  img {
    width: 100%;
  }
  .subtitle {
    position: absolute;
    top: 50px;
    left: 50%;
    padding: 20px 0;
    text-align: center;
    transform: translateX(-50%);
    h2 {
      display: inline-block;
      padding-bottom: 12px;
      font-size: 40px;
      font-family: SourceHanSansCN-Medium, SourceHanSansCN;
      font-weight: 500;
      color: #fff;
      line-height: 1;
      border-bottom: 3px solid #fff;
    }
  }
}
.project-forest {
  padding: 70px 0;
  height: 866px;
  background: url(https://webapp-pub.ezijing.com/project/cuw/project_forest.jpg) no-repeat;
  background-size: cover;
  box-sizing: border-box;
  h2 {
    font-size: 40px;
    font-family: PingFangSC-Semibold, PingFang SC;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    span {
      color: var(--main-color);
    }
  }
  .t0 {
    font-size: 20px;
    font-family: SourceHanSansCN-Regular, SourceHanSansCN;
    font-weight: 400;
    color: #ffffff;
    line-height: 30px;
    text-align: center;
  }
}
.forest-group {
  display: flex;
  justify-content: center;
  margin-top: 65px;
}
.forest-item {
  position: relative;
  margin: 0 12px;
  &:hover,
  &.is-active {
    .circle {
      border-color: var(--main-color);
    }
    .forest-item-main {
      display: block;
    }
  }
  .circle {
    width: 180px;
    height: 180px;
    border: 6px solid #0d78c6;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    .t1 {
      font-size: 30px;
      font-family: Lato-Regular, Lato;
      font-weight: 400;
      color: #ffffff;
      &::first-letter {
        font-size: 70px;
      }
    }
    .t2 {
      font-size: 22px;
      font-family: SourceHanSansCN-Regular, SourceHanSansCN;
      font-weight: 400;
      color: #ffffff;
    }
  }
}
.forest-item-main {
  display: none;
  position: absolute;
  left: 50%;
  transform: translate(-50%);
  .line {
    position: relative;
    margin: 0 auto 22px;
    width: 0;
    height: 190px;
    border-left: 1px dashed var(--main-color);
    &::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 50%;
      width: 9px;
      height: 9px;
      border-radius: 50%;
      background-color: var(--main-color);
      transform: translateX(-50%);
    }
  }
  dl {
    padding-left: 8px;
    border-left: 2px solid var(--main-color);
  }
  dl + dl {
    margin-top: 30px;
  }
  dt {
    font-size: 16px;
    font-family: SourceHanSansCN-Bold, SourceHanSansCN;
    font-weight: bold;
    color: #ffffff;
    line-height: 24px;
    white-space: nowrap;
  }
  dd {
    margin-top: 5px;
    font-size: 16px;
    font-family: Lato-Bold, Lato;
    font-weight: bold;
    color: #ffffff;
    line-height: 19px;
    white-space: nowrap;
  }
}

.project-card {
  padding: 120px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-card-item {
  width: 270px;
  margin: 0 20px;
  &:hover {
    .project-card-item-box {
      img {
        transform: scale(1.05);
      }
    }
  }
}
.project-card-item-header {
  width: 230px;
  height: 67px;
  margin: 0 auto;
  font-size: 28px;
  font-family: SourceHanSansCN-Medium, SourceHanSansCN;
  font-weight: 500;
  color: #ffffff;
  line-height: 67px;
  text-align: center;
  background: url('https://webapp-pub.ezijing.com/project/cuw/proejct_card_bg.png') no-repeat;
  background-size: contain;
}
.project-card-item-box {
  position: relative;
  background: #0b5a94;
  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 18px 0;
    background: rgba(0, 0, 0, 0.5);
  }
  li {
    position: relative;
    font-size: 18px;
    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: 10px;
  }
}
.project-study {
  height: 660px;
  background: url(https://webapp-pub.ezijing.com/project/cuw/project_study_bg.jpg) no-repeat center center;
  background-size: cover;
  .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: #fff;
      line-height: 1;
      border-bottom: 3px solid #fff;
    }
  }
}
.project-study-bd {
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-study-right {
  width: 452px;
  margin-left: 45px;
  color: #fff;
  h3 {
    font-size: 26px;
    font-family: SourceHanSansCN-Bold, SourceHanSansCN;
    font-weight: bold;
    color: #ffffff;
    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: #ffffff;
    line-height: 1;
    padding-right: 30px;
    span {
      font-size: 66px;
      font-family: 思源黑体 CN Regular;
    }
  }
  li + li {
    padding-left: 30px;
    border-left: 1px solid #fff;
  }
  p {
    font-size: 18px;
    font-family: SourceHanSansCN-Regular, SourceHanSansCN;
    font-weight: 400;
    color: #ffffff;
    line-height: 30px;
  }
}
</style>
