<template>
  <div>
    <!-- 背景图 -->
    <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">
      <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" style="width: 199%; max-width: 1200px;">
        <ul>
          <li 
            v-for="(val, index) in service" 
            :key="index" 
            :style="{'border-left': index !== 0 ? '1px solid #56738f' : 'none'}"
            @click="handleClick('service', val.id, val.title)"
          >{{ 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" @click="handleClick('consultant', val.id)">
          <div class="consultant-item__img" :style="{'background-image': `url('${val.avatar}')`, 'width': '100%', 'height': '100%' }"></div>
          <div class="consultant-item__name">{{ val.enName }}</div>
        </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 class="articles common-width">
      <div class="line"></div>
      <h2 class="text-center">行业的观点</h2>
      <div class="d-flex article-box">
        <div v-for="(val, i) in articles" :key="i" class="article-box-item" @click="handleClick('article', val.id)">
          <div class="sshr__article__flyout-placeholder"></div>
          <div class="sshr__article__content-wrapper active">
            <div class="sshr__article__picture">
              <div class="sshr__article__picture-overlay"></div>
              <img class="bg-img" :src="val.url" alt="" style="transition: transform 0.5s ease;">
            </div>
            <div class="sshr__article__content">
              <div class="sshr__article__bar-placeholder"></div>
              <h2 class="sshr__article__title">{{ val.title }}</h2>
            </div>
          </div>
        </div>
      </div>
    </div> -->
    <!-- 联系我们 -->
    <ContactPage></ContactPage>
  </div>
</template>

<script setup>
defineOptions({ name: 'headhunting-carousel'})
import { useRouter } from 'vue-router'
import ContactPage from './contact.vue'

const router = useRouter()

// 数值示例
const list = [
  { title: '1500家+', desc: '服务企业' },
  { title: '70%', desc: '拥有本科及以上学历人群' },
  { title: '12种', desc: '涉及行业' }
]
// 服务
const service = [
  { title: '高级管理精英甄选', id: 'selection-senior-management-elite' },
  { title: '人才发展储备策略', id: 'talent-development-reserve-strategy' },
  { title: '管理者能力提升方案', id: 'manager-capability-enhancement-plan' },
  { title: '卓越成长轨迹', id: 'excellent-growth-trajectory' },
  { title: '高管信誉与资质验证', id: 'senior-management-elite-verification' },
  { title: '多样化的人才网络', id: 'diversified-talent-network' }
]
// 办公地点
const countryOffice = [
  { name: '苏州', desc: '苏州识喜识谊信息科技有限公司', url: 'https://minio.menduner.com/dev/menduner/suzhou.png' },
  { name: '北京', desc: '苏州识喜识谊信息科技有限公司', url: 'https://minio.menduner.com/dev/menduner/beijin.png' },
  { name: '广州', desc: '苏州识喜识谊信息科技有限公司', url: 'https://minio.menduner.com/dev/menduner/guangzhou.png' }
]
// 我们的顾问
const consultant = [
  { country: '苏州', enName: '田森博士（Simon Tian）', id: 'simon', avatar: 'https://minio.menduner.com/dev/0957611baf90ada134b4205ca3a327eb12d29c1a4ef36541b8f1bec8e0b7170c.png' },
  { country: '北京', enName: '潘青海先生（Peter Pan）', id: 'peter', avatar: 'https://minio.menduner.com/dev/c96dce9744b27ed4e74f27f72628e946ef1ac2d4adcb6e3cc5e344b7120cadc8.png' },
  { country: '北京', enName: '姚嘉庆女士（Julia Yao）', id: 'julia', avatar: 'https://minio.menduner.com/dev/e6ee9b3e9784ebec9edc5be5dd141166dd685cb30ac856503b73a90732c43151.png' }
]
// 我们的见解
// const articles = [
//   { title: '女性领导力崛起：《走进中国女性高管的职场现状》', id: 'china-needs-more-women-in-executive-leadership', url: 'https://cn.spencerstuart.com/-/media/2023/march/chinaneedsmorewomen/web-cnwomen-mar23.jpg' },
//   { title: '纷繁复杂世界中的领导力：为未来的首席执行官做好规划', id: 'leadership-for-a-complex-world-planning-for-the-ceo-of-the-future', url: 'https://cn.spencerstuart.com/-/media/2023/september/ceofuture/thmb-ceoofthefuture-sept2023-616x434.jpg' },
//   { title: '全球视角下的CFO角色演变：跨领域高管的洞察与应对策略', id: 'the-evolution-of-the-cfo-role-from-a-global-perspective', url: 'https://cn.spencerstuart.com/-/media/search-images/placeholder-hdr.jpg' }
// ]

const handleClick = (type, id) => {
  if (!type && !id) return
  router.push(`/headhunting/service/details?type=${type}&key=${id}`)
}
</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.menduner.com/dev/menduner/banner.png');
  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 10px 0;
    }
    &-line {
      background-color: #30ffed;
      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;
  width: 100%;
  max-width: 1200px;
  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: #00695C;
    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;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 20px 0;
  background-color: #00695C;
  &-box {
    margin: auto;
    ul {
      display: flex;
      list-style-type: none;
      width: 100%;
      margin: 0;
      padding: 0;
      li {
        width: 16.6%;
        padding: 13px;
        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: 283px;
  .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: contain;
    }
    .consultant-item__name {
      font-family: FFScalaWebBold, Georgia, Utopia, Charter, serif;
      font-weight: 700;
      color: #4c4c4e;
      margin-top: 10px;
      margin-left: 55px;
    }
    .consultant-item__country {
      font-family: FFScalaWebItalic, Georgia, Utopia, Charter, sans-serif;
      font-style: italic;
      font-weight: 400;
      color: #818183;
      margin-left: 55px;
    }
  }
}
.articles {
  margin: auto;
  margin-bottom: 100px;
  .line {
    background-color: #fbcc11;
    content: "";
    display: block;
    height: 5px;
    width: 42px;
    left: 50%;
    margin-bottom: 16px;
    position: relative;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
  }
  h2 {
    font-size: 30px;
    padding: 0 0 25px;
  }
  .article-box {
    width: 100%;
    margin-bottom: 40px;
    &-item {
      width: calc((100% - 110px) / 3);
      height: 385px;
      margin-right: 50px;
      position: relative;
      cursor: pointer;
      &:nth-child(3n) {
        margin-right: 0;
      }
      .sshr__article__flyout-placeholder {
        position: absolute;
        top: 0;
        left: 0;
        z-index: 10;
        display: block;
        height: 100%;
        width: 100%;
        background-color: #fbcc11;
      }
      .sshr__article__content-wrapper {
        position: relative;
        height: 100%;
        width: 100%;
        color: #fff;
        transition: transform 0.3s ease;
        z-index: 20;
        &:hover {
          transform: translate(-20px, -20px);
        }
        .sshr__article__picture {
          position: absolute;
          z-index: 10;
          height: 100%;
          width: 100%;
          overflow: hidden;
          background-color: #4c4c4e;
          .sshr__article__picture-overlay {
            position: absolute;
            top: 0;
            left: 0;
            z-index: 1;
            height: 100%;
            width: 100%;
            background-color: #000;
            opacity: .5;
          }
          img {
            display: block;
            height: 100%;
            width: 100%;
            object-fit: cover;
          }
        }
        .sshr__article__content {
          position: relative;
          z-index: 20;
          display: -webkit-box;
          display: -ms-flexbox;
          display: flex;
          -webkit-box-orient: vertical;
          -webkit-box-direction: normal;
          -ms-flex-direction: column;
          flex-direction: column;
          min-height: 100%;
          width: auto;
          padding: 63px 44px 44px;
          .sshr__article__bar-placeholder {
            margin-bottom: 20px;
            -webkit-transition: width .35s ease-out;
            transition: width .35s ease-out;
            background-color: #fbcc11;
            content: "";
            display: block;
            height: 5px;
            width: 80px;
          }
        }
      }
      .active:hover .sshr__article__bar-placeholder {
        width: 100%;
      }
      .active:hover .bg-img {
        transform: scale(1.1);
      }
    }
  }
}
.tip-text {
  font-size: 14px;
  color: var(--color-222);
}
</style>
