<template>
  <div class="carousel">
    <div class="carousel-box">
      <div class="carousel-desc common-width">
        <h1>我们的服务</h1>
        <hr class="carousel-desc-line" />
        <div class="carousel-desc-text">优秀领导者能够带动业绩增长。我们致力于提供企业所需的见解，协助其做出有关人才寻聘、培养及晋升的正确决策，提升高管团队与董事会的绩效。</div>
      </div>
    </div>
    <div class="three-up-promo-cards common-width">
      <div class="three-up-promo-cards__card" v-for="(k, i) in list" :key="i">
        <span class="impact-messaging__number">{{ k.title }}</span>
        <span class="impact-messaging__copy">{{ k.desc }}</span>
      </div>
    </div>
    <div class="service-link">
      <div class="service-link-box common-width">
        <ul>
          <li v-for="(val, index) in service" :key="index" :style="{'border-left': index !== 0 ? '1px solid #56738f' : 'none'}">{{ val.title }}</li>
        </ul>
      </div>
    </div>
    <div class="site-width__constraint">
      <p class="text-center">依托在高管寻聘和领导力咨询方面的深厚专业知识，我们的顾问可进行跨行业、跨部门和跨地区的合作，以便更好地服务我们的客户。
        我们帮助组织寻找和培养优秀的领导者，提高团队效力，支持战略或文化转型。</p>
    </div>
    <div class="country-offices common-width mb-10">
      <h2 class="section-header--country-page">我们的顾问</h2>
      <div class="d-flex consultant-box">
        <div v-for="(val, i) in consultant" :key="i" class="consultant-item">
          <div class="consultant-item__img" :style="{'background-image': `url('${val.avatar}')`, 'width': '100%', 'height': '100%' }"></div>
          <div class="consultant-item__name">{{ val.enName }}</div>
          <p class="consultant-item__country">{{ val.country }}</p>
        </div>
      </div>
    </div>
    <div class="country-offices common-width mb-10">
      <h2 class="section-header--country-page">我们的办公地点</h2>
      <ul>
        <li v-for="(val, index) in countryOffice" :key="index" class="cursor">
          <div class="country-offices__office-content">
            <div class="country-office__office-link">
              <h3 style="font-size: 40px; margin-bottom: 10px;">{{ val.name }}</h3>
              <p>{{ val.desc }}</p>
            </div>
            <div class="country-offices__office-image" :style="{'background-image': `url('${val.url}')` }"></div>
            <div class="country-offices__office-overlay"></div>
          </div>
        </li>
      </ul>
    </div>
  </div>
</template>

<script setup>
defineOptions({ name: 'headhunting-carousel'})

const list = [
  { title: '70家', desc: '全球分支机构' },
  { title: '67年', desc: '领导力咨询经验' },
  { title: '450+位', desc: '经验丰富的顾问' }
]
const service = [
  { title: '高管搜索与招募' },
  { title: '董事会服务' },
  { title: '首次执行官继任计划' },
  { title: '高管评估服务' },
  { title: '领导力咨询服务' }
]
const countryOffice = [
  { name: '北京', desc: '故宫', url: 'https://cn.spencerstuart.com/-/media/offices-search/beijing-office.jpg' },
  { name: '上海', desc: '东方明珠', url: 'https://cn.spencerstuart.com/-/media/offices-search/hong-kong-office.jpg' },
  { name: '广州', desc: '珠江新城', url: 'https://cn.spencerstuart.com/-/media/offices-search/shanghai-1597-15257628-office-hdr.jpg' }
]
const consultant = [
  { country: '北京', enName: 'Siew Kiang Ng', avatar: 'https://cn.spencerstuart.com/-/media/consultant-photos-new/singapore/ng_siewkiang-web-5a.jpg' },
  { country: '上海', enName: 'Alice Au', avatar: 'https://cn.spencerstuart.com/-/media/consultant-photos-new/hong-kong/young_jeremy-web-5d.jpg' },
  { country: '苏州', enName: 'Jeremy Young', avatar: 'https://cn.spencerstuart.com/-/media/consultant-photos-new/hong-kong/au_alice-web-2d.jpg' }
]
</script>

<style scoped lang="scss">
.common-width {
  width: 100%;
  max-width: 1000px;
}
.carousel-box {
  width: 100%;
  height: 480px;
  color: #fff;
  font-weight: 700;
  background-image: url('https://minio.citupro.com/dev/menduner/headhunting/ad.jpeg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  font-family: FFScalaSansWebBold, Georgia, Utopia, Charter, sans-serif;
  font-style: normal;
  font-weight: 700;
  .carousel-desc {
    margin: 0 auto;
    text-align: center;
    h1 {
      padding: 32px 0;
    }
    &-line {
      background-color: #fbcc11;
      width: 42px;
      height: 5px;
      margin: 0 auto;
      border: 0;
    }
    &-text {
      clear: both;
      font-size: 26px;
      padding: 48px 84px 0;
    }
  }
}
.three-up-promo-cards {
  display: flex;
  margin: 0 auto;
  background-color: #f5f7f9;
  margin-top: -100px;
  margin-bottom: 64px;
  position: relative;
  z-index: 700;
  font-weight: 400;
  .three-up-promo-cards__card {
    color: #003d79;
    width: 33.3%;
    flex: 1 0 auto;
    padding: 32px 24px;
    position: relative;
    text-align: center;
    font-family: FFScalaWeb, Georgia, Utopia, Charter, sans-serif;
    font-style: normal;
    font-weight: 400;
    .impact-messaging__number {
      display: block;
      font-size: 6rem;
      line-height: 6.5rem;
      font-variant-numeric: oldstyle-nums;
      font-feature-settings: "onum";
      -webkit-font-feature-settings: "onum";
      letter-spacing: -8px;
    }
    .impact-messaging__copy {
      font-size: .9375rem;
      text-transform: uppercase;
      letter-spacing: 1px;
    }
  }
}
.service-link {
  height: 88px;
  font-family: FFScalaSansWebBold, Helvetica, Arial, sans-serif;
  font-style: normal;
  font-weight: 700;
  color: #fff;
  font-size: .75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 20px 0;
  background-color: #00396f;
  &-box {
    margin: auto;
    ul {
      display: flex;
      list-style-type: none;
      width: 100%;
      margin: 0;
      padding: 0;
      li {
        width: 20%;
        padding: 15px;
        text-align: center;
        vertical-align: middle;
        cursor: pointer;
        &:hover {
          opacity: .7;
        }
      }
    }
  }
}
.site-width__constraint {
  max-width: 820px;
  text-align: left;
  margin: auto;
  padding: 40px 0;
}
.country-offices {
  padding-block: 50px;
  margin: auto;
  .section-header--country-page {
    font-size: 44px;
    line-height: 52px;
    margin-bottom: 44px;
    text-align: center;
    text-transform: none;
    font-weight: 400;
  }
  ul {
    display: flex;
    flex-wrap: wrap;
    height: 286px;
    justify-content: center;
    list-style-type: none;
    padding-left: 0;
    li {
      width: calc((100% - 60px) / 3);
      max-width: 350px;
      position: relative;
      margin-right: 20px;
      cursor: pointer;
      transition: transform 0.3s ease;
      &:nth-child(3n) {
        margin-right: 0;
      }
      &::before {
        content: '';
        display: block;
        padding-top: 83.3%;
        width: 100%;
      }
      .country-offices__office-content {
        bottom: 0;
        left: 0;
        position: absolute;
        right: 0;
        top: 0;
      }
      .country-office__office-link {
        height: 100%;
        width: 100%;
        color: #fff;
        position: absolute;
        display: flex;
        flex-direction: column;
        justify-content: center;
        z-index: 1;
        padding: 30px;
      }
      .country-offices__office-image {
        display: block;
        width: 100%;
        height: 100%;
        position: absolute;
        background-repeat: no-repeat;
        background-position: center center;
        background-size: cover;
        background-color: #404040;
        transition: transform .3s, -webkit-transform .3s;
      }
      .country-offices__office-overlay {
        background-color: rgba(76,76,78,.6);
        transition: .3s;
        display: block;
        width: 100%;
        height: 100%;
        position: absolute;
      }
    }
    .cursor:hover {
      transform: translateY(-15px);
    }
  }
}
.consultant-box {
  width: 100%;
  height: 200px;
  .consultant-item {
    width: calc((100% - 60px) / 3);
    max-width: 350px;
    margin-right: 20px;
    cursor: pointer;
    &:nth-child(3n) {
      margin-right: 0;
    }
    .consultant-item__img {
      background-repeat: no-repeat;
      background-position: center center;
      background-size: cover;
    }
    .consultant-item__name {
      font-family: FFScalaWebBold, Georgia, Utopia, Charter, serif;
      font-weight: 700;
      color: #4c4c4e;
      margin-top: 10px;
    }
    .consultant-item__country {
      font-family: FFScalaWebItalic, Georgia, Utopia, Charter, sans-serif;
      font-style: italic;
      font-weight: 400;
      color: #818183;
    }
  }
}
</style>
