<script setup>
const eduList = [
  {
    name: '本科',
    icon: 'https://webapp-pub.ezijing.com/www/pc/next/solution/international/icon_1.png',
    items: ['1+3', '2+2', '3+1'],
  },
  {
    name: '硕士',
    icon: 'https://webapp-pub.ezijing.com/www/pc/next/solution/international/icon_2.png',
    items: ['1+1'],
  },
  {
    name: '博士',
    icon: 'https://webapp-pub.ezijing.com/www/pc/next/solution/international/icon_3.png',
    items: ['2+1'],
  },
]
const majorList = [
  {
    name: '新文科',
    items: ['数字金融', '技术管理', '工程管理'],
  },
  {
    name: '新工科',
    items: ['网络安全', '云计算', '商业数据分析'],
  },
]

const ysList = [
  {
    name: '实力',
    desc: `全美Top100合作院校
本科、硕士、博士`,
  },
  {
    name: '项目合规',
    desc: `教育部留服认证
政策支持`,
  },
  {
    name: '学分互认',
    desc: `中美学分互认
学术权威
教授、博导`,
  },
  {
    name: '推免入学',
    desc: `推免入学
免试托福/GRE/
GMAT：课程替代`,
  },
  {
    name: '对标TOP',
    desc: `对标美方TOP院校的高等教育运营体系`,
  },
]

const bzList = [
  {
    name: '学生认可',
    desc: `学生认可
市场看涨`,
  },
  {
    name: '声誉&口碑',
    desc: `声誉&口碑
高就业回报率`,
  },
  {
    name: '零交付成本',
    desc: `【0】交付成本
快速稳定现金流`,
  },
  {
    name: '高持续转化率',
    desc: `高持续转化率
未来保障`,
  },
]
const lfList = [
  {
    img: 'https://webapp-pub.ezijing.com/www/pc/next/solution/international/hz_1.png',
    name: `斯蒂文斯理工学院研究生院资深副教务长Dr. Constantin Chassapis一行莅临清控紫荆教育`,
  },
  {
    img: 'https://webapp-pub.ezijing.com/www/pc/next/solution/international/hz_2.png',
    name: `斯蒂文斯理工学院研究生院招生办主任Dina Iskaros一行莅临清控紫荆教育`,
  },
  {
    img: 'https://webapp-pub.ezijing.com/www/pc/next/solution/international/hz_3.png',
    name: `美国德保罗大学商学院院长巴素琳教授莅临清控紫荆教育`,
  },
  {
    img: 'https://webapp-pub.ezijing.com/www/pc/next/solution/international/hz_4.png',
    name: `美国加州浸会大学副校长Dr. Larry Linamen一行莅临清控紫荆教育`,
  },
  {
    img: 'https://webapp-pub.ezijing.com/www/pc/next/solution/international/hz_5.png',
    name: `美国石溪大学商学院副院长蒋丹凌教授莅临清控紫荆教育`,
  },
]
</script>

<template>
  <div>
    <div class="banner">
      <img src="https://webapp-pub.ezijing.com/www/pc/next/solution/international/banner.jpg" />
      <div class="cover">
        <div class="cover-inner">
          <h2>
            携手全球高校<br />
            共建本硕博一体化升学通道
          </h2>
          <span></span>
          <p>
            围绕多层次人才培养需求，打造兼具 “项目合规性、学分互认度、学术权威性”
            的升学方案，助力学子从本校直达全球名校课堂。
          </p>
        </div>
      </div>
    </div>
    <section class="section">
      <div class="section-inner">
        <h2 class="section-title">合作全景：培养国际化数字经济人才</h2>
        <div class="edu-list">
          <h2>学历层次</h2>
          <div class="edu-list-item" v-for="item in eduList" :key="item.name">
            <img :src="item.icon" />
            <h3>{{ item.name }}</h3>
            <ul>
              <li v-for="subItem in item.items" :key="subItem">{{ subItem }}</li>
            </ul>
          </div>
        </div>
        <div class="major-list">
          <h2>专业方向<IconsIconMore /></h2>
          <div class="major-list-item" v-for="item in majorList" :key="item.name">
            <h3>{{ item.name }}</h3>
            <ul>
              <li v-for="subItem in item.items" :key="subItem">{{ subItem }}</li>
            </ul>
          </div>
        </div>
      </div>
    </section>
    <section class="section">
      <div class="section-inner">
        <h2 class="section-title">合作优势</h2>
        <div class="ys-list">
          <div class="ys-list-item" v-for="(item, index) in ysList" :key="item.name">
            <div class="ys-list-item-header">
              <div class="num">0{{ index + 1 }}</div>
              <h2>{{ item.name }}</h2>
            </div>
            <div class="ys-list-item-content">
              {{ item.desc }}
            </div>
          </div>
        </div>
      </div>
    </section>
    <section class="section">
      <div class="section-inner">
        <h2 class="section-title">合作目标：高效、稳定、持续、声誉、未来</h2>
        <div class="bz-list">
          <div class="bz-list-item" v-for="item in bzList" :key="item.name">
            <h3>{{ item.name }}</h3>
            <p>{{ item.desc }}</p>
          </div>
        </div>
      </div>
    </section>
    <section class="section">
      <h2 class="section-title">合作来访</h2>
      <div class="lf-list">
        <div class="lf-track">
          <template v-for="copy in 3" :key="copy">
            <div class="lf-item" v-for="item in lfList" :key="item.name">
              <img :src="item.img" :alt="item.name" />
              <p>{{ item.name }}</p>
            </div>
          </template>
        </div>
      </div>
    </section>
    <section class="section" style="padding: 90px 0">
      <div class="section-inner">
        <AppContact :type="2" />
      </div>
    </section>
  </div>
</template>

<style lang="scss" scoped>
.banner {
  position: relative;
  img {
    width: 100%;
    height: 650px;
    object-fit: cover;
  }
  .cover {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;

    line-height: 1;
    color: #fff;
    h2 {
      font-size: 60px;
      font-family:
        Source Han Sans CN-Bold,
        Source Han Sans CN;
      font-weight: bold;
      line-height: 72px;
    }

    span {
      margin: 46px 0;
      width: 60px;
      height: 6px;
      background: #fff;
    }

    p {
      max-width: 664px;
      font-size: 18px;
      font-family:
        Source Han Sans CN-Regular,
        Source Han Sans CN;
      line-height: 30px;
    }
  }
  .cover-inner {
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-direction: column;
  }
}

.section-inner {
  width: 1200px;
  margin: 0 auto;
  // padding: 100px 0;
}
.section-title {
  padding: 90px 0 60px;
  font-size: 30px;
  font-family: Source Han Sans CN;
  font-weight: bold;
  line-height: 32px;
  color: #333333;
  text-align: center;
}
.section-subtitle {
  display: inline-block;
  margin: 36px 0;
  font-size: 20px;
  line-height: 32px;
  color: #424242;
  border-bottom: 1px solid var(--main-color);
}
.section-desc {
  font-size: 16px;
  font-family: Source Han Sans CN;
  font-weight: 400;
  line-height: 34px;
  color: #666666;
}
.section-pic {
  text-align: center;
  img {
    max-width: 100%;
  }
}

.edu-list {
  display: flex;
  gap: 30px;
  h2 {
    width: 190px;
    height: 220px;
    font-weight: bold;
    font-size: 20px;
    color: #ffffff;
    line-height: 220px;
    background: #aa1941;
    box-shadow: 0px 0px 22px 1px rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    text-align: center;
  }
  &-item {
    flex: 1;
    height: 220px;
    background: #f0f2f5 url(https://webapp-pub.ezijing.com/www/pc/next/solution/international/box_bg.png) no-repeat;
    background-size: 100% 100%;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 38px 0 45px;
    img {
      width: 46px;
    }
    h3 {
      padding: 10px 0 28px;
      font-weight: bold;
      font-size: 20px;
      color: #333333;
      line-height: 24px;
    }
    ul {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 15px;
    }
    li {
      width: 90px;
      line-height: 40px;
      text-align: center;
      background: #ffffff;
      border-radius: 6px 6px 6px 6px;
    }
  }
}
.major-list {
  padding: 30px 60px 30px 40px;
  background: #ffffff;
  box-shadow: 0px 0px 22px 1px rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  h2 {
    font-size: 20px;
    color: var(--main-color);
    display: flex;
    align-items: center;
    gap: 10px;
  }
  &-item {
    display: flex;
    align-items: center;
    gap: 20px;
    h3 {
      font-weight: bold;
      font-size: 20px;
    }
    ul {
      display: flex;
      gap: 10px;
    }
    li {
      width: 120px;
      height: 40px;
      font-size: 16px;
      line-height: 40px;
      text-align: center;
      background: #ffffff;
      border-radius: 6px 6px 6px 6px;
      border: 1px solid #d5d5d5;
    }
  }
}
.ys-list {
  display: flex;
  gap: 13px;
  &-item {
    position: relative;
    flex: 1;
    height: 240px;
    border: 1px solid #d5d5d5;
    border-radius: 12px;
    transition: all 0.3s;
    overflow: hidden;
    --header-bg: #dbd0d1;

    &:nth-child(1) {
      --header-bg: #dbd0d1;
    }
    &:nth-child(2) {
      --header-bg: #efecea;
    }
    &:nth-child(3) {
      --header-bg: #dee2ea;
    }
    &:nth-child(4) {
      --header-bg: #efecea;
    }
    &:hover {
      box-shadow: 0px 0px 22px 1px rgba(0, 0, 0, 0.12);
      transform: translateY(-10px);
    }
    &-header {
      height: 110px;
      display: flex;
      align-items: center;
      padding: 0 20px;
      gap: 14px;
      background-color: var(--header-bg);
      .num {
        width: 54px;
        height: 54px;
        background: #fff;
        border-radius: 50%;
        text-align: center;
        line-height: 54px;
        font-size: 24px;
        font-weight: bold;
      }
      h2 {
        font-weight: bold;
        font-size: 18px;
        color: #333333;
        line-height: 1;
      }
    }

    &-content {
      padding: 20px 25px 0;
      white-space: pre-wrap;
      text-align: center;
      font-size: 18px;
      color: #333333;
      line-height: 32px;
    }
  }
}
.bz-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  &-item {
    padding: 30px 40px;
    height: 200px;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    &:nth-child(1) {
      background-image: url('https://webapp-pub.ezijing.com/www/pc/next/solution/international/mb_bg_1.png');
      &:hover {
        background-image: url('https://webapp-pub.ezijing.com/www/pc/next/solution/international/mb_bg_1_hover.png');
      }
    }
    &:nth-child(2) {
      background-image: url('https://webapp-pub.ezijing.com/www/pc/next/solution/international/mb_bg_2.png');
      &:hover {
        background-image: url('https://webapp-pub.ezijing.com/www/pc/next/solution/international/mb_bg_2_hover.png');
      }
    }
    &:nth-child(3) {
      background-image: url('https://webapp-pub.ezijing.com/www/pc/next/solution/international/mb_bg_3.png');
      &:hover {
        background-image: url('https://webapp-pub.ezijing.com/www/pc/next/solution/international/mb_bg_3_hover.png');
      }
    }
    &:nth-child(4) {
      background-image: url('https://webapp-pub.ezijing.com/www/pc/next/solution/international/mb_bg_4.png');
      &:hover {
        background-image: url('https://webapp-pub.ezijing.com/www/pc/next/solution/international/mb_bg_4_hover.png');
      }
    }
    &:hover {
      h3 {
        color: var(--main-color);
      }
    }
    h3 {
      font-family: Source Han Sans CN;
      font-weight: bold;
      font-size: 22px;
      margin-bottom: 22px;
    }
    p {
      font-family: Source Han Sans CN;
      font-weight: 400;
      font-size: 16px;
      color: #333333;
      line-height: 24px;
      white-space: pre-wrap;
    }
  }
}
.lf-list {
  overflow: hidden;
  position: relative;
  width: 100%;

  .lf-track {
    display: flex;
    gap: 18px;
    animation: scroll-left 30s linear infinite;
    width: fit-content;

    &:hover {
      animation-play-state: paused;
    }
  }

  .lf-item {
    flex: 0 0 370px;
    border: 1px solid #d5d5d5;
    border-radius: 12px;
    overflow: hidden;

    img {
      width: 100%;
      height: 210px;
      object-fit: cover;
    }

    p {
      padding: 10px 25px;
      font-size: 14px;
      line-height: 18px;
      text-align: center;
    }
  }
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-1 * 100% / 3));
  }
}
</style>
