@charset "utf-8";

/* ==========================================================
   hr-consulting.css
   模块：人力资源中心专题页面
   作用：控制咨询理念三栏卡片、悬停效果、人力资源咨询
        体系内容、案例预留区域以及响应式布局。
   ========================================================== */

:root {
  --hr-blue: #063b91;
  --hr-blue-dark: #032864;
  --hr-blue-light: #0b52b4;
  --hr-gold: #dfb24c;
  --hr-text: #222222;
  --hr-muted: #6f7783;
  --hr-border: #e8ebef;
  --hr-bg-soft: #f6f7f9;
  --hr-container: 1320px;
}

html {
  /* 锚点动画统一由 hr-consulting.js 控制，避免双重缓动 */
  scroll-behavior: auto;
}

.hr-page {
  min-width: 0;
  overflow-x: hidden;
  background: #ffffff;
  color: var(--hr-text);
}

.hr-main,
.hr-main * {
  box-sizing: border-box;
}

#hr-concept,
.hr-system {
  scroll-margin-top: 130px;
  outline: none;
}

/* ==========================================================
   二级 Banner
   PC端图片：/banner/eb4.jpg
   移动端图片：/banner/eb4-mobile.jpg
   移动端设计尺寸：750 × 400px
   ========================================================== */

.hr-banner {
  position: relative;
  width: 100%;
  height: clamp(360px, 28.5vw, 550px);
  min-height: 360px;
  overflow: hidden;
  background: #15355d;
}

.hr-banner__image {
  width: 100%;
  height: 100%;
  background-image: url("/banner/eb4.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.hr-page-title {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ==========================================================
   通用标题
   ========================================================== */

.hr-section-heading {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto 46px;
  text-align: center;
}

.hr-section-heading__title {
  margin: 0;
  font-size: clamp(24px, 2.1vw, 32px);
  line-height: 1.55;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: #313131;
}

.hr-section-heading__en {
  margin: 9px 0 0;
  font-size: 11px;
  line-height: 1.65;
  letter-spacing: 0.12em;
  color: #000;
  text-transform: uppercase;
}

.hr-concept .hr-section-heading__title {
  font-size: 24px;
  letter-spacing: 9px;
}

.hr-section-heading__line {
  display: block;
  width: 150px;
  height: 3px;
  margin: 14px auto 0;
  border-radius: 2px;
  background: var(--hr-blue);
}

.hr-section-heading__description {
  max-width: 1200px;
  margin: 20px auto 0;
  font-size: 17px;
  line-height: 2;
  color: #212121;
  letter-spacing: 2px;
}

.hr-section-heading--systems {
  margin-bottom: 42px;
}

/* ==========================================================
   咨询理念三栏布局
   参考首页 section02：三栏图片、底部蓝色标题框、
   悬停后蓝色层扩展覆盖整张图片。
   ========================================================== */

.hr-concept {
  width: 100%;
  padding: 76px 0 94px;
  background: #ffffff;
}

.hr-concept__container {
  width: min(var(--hr-container), calc(100% - 48px));
  margin: 0 auto;
}

.hr-concept__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
  align-items: start;
  padding-bottom: 30px;
}

/* ==========================================================
   卡片默认状态
   ========================================================== */

.hr-concept-card {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: visible;
  background: transparent;
  cursor: pointer;
  outline: none;
  isolation: isolate;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hr-concept-card__media {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background: #dfe6ef;
}

.hr-concept-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.42s ease;
}

/*
 * 蓝色层完全采用首页 section02 的结构和运动方式：
 * 默认宽70%、高72px、底部下溢30px；
 * 悬停后同一个蓝色层由底部向上扩展至整张卡片。
 */
.hr-concept-card__caption {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: -30px;
  width: 70%;
  height: 72px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transform: translateX(-50%);
  background: rgba(0, 64, 153, 0.92);
  color: #ffffff;
  text-align: center;
  backdrop-filter: blur(2px);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  will-change: width, height, left, bottom, transform;
  transition:
    width 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    height 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    left 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    bottom 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    background-color 0.3s ease;
}

.hr-concept-card__title,
.hr-concept-card__en {
  position: relative;
  z-index: 2;
  transition:
    transform 0.42s ease,
    opacity 0.3s ease;
}


/*
 * 默认标题与悬停标题分层：
 * 默认标题在蓝色窄条中显示；
 * 悬停时默认标题淡出，悬停标题与说明文字一起淡入。
 */
.hr-concept-card__default-caption {
  width: 100%;
  text-align: center;
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity 0.22s ease,
    visibility 0s linear 0s;
}

.hr-concept-card__hover-caption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  text-align: center;
  opacity: 1;
  transform: none;
}

.hr-concept-card__title {
  margin: 0;
  font-size: 21px;
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #ffffff;
}

.hr-concept-card__en {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.35;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.86);
}

/*
 * 说明文字独立固定在卡片区域中，不跟随蓝色层移动。
 * 鼠标悬停后仅做透明度淡入，视觉效果与首页 hover-content 一致。
 */
.hr-concept-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  padding: 48px 80px 112px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: none;
  transition:
    opacity 0.4s ease 0.12s,
    visibility 0s linear 0.52s;
}

.hr-concept-card__description {
  margin: 0;
  font-size: 16px;
  line-height: 1.95;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.97);
  text-align: justify;
}

/*
 * PC端悬停动作完全参照首页：
 * 同一个蓝色层从底部平缓向上扩展，不再让独立遮罩层瞬间出现。
 */
@media (hover: hover) and (pointer: fine) {
  .hr-concept-card:hover,
  .hr-concept-card:focus,
  .hr-concept-card:focus-within {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  }

  .hr-concept-card:hover .hr-concept-card__caption,
  .hr-concept-card:focus .hr-concept-card__caption,
  .hr-concept-card:focus-within .hr-concept-card__caption {
    width: 100%;
    height: 100.1%;
    bottom: 0;
    left: 0;
    transform: translateX(0);
    padding: 0 20px 18px;
    justify-content: flex-end;
    background:
      rgba(0, 64, 153, 0.75)
      url("../../images/hr04.png")
      center / cover
      no-repeat;
  }

  .hr-concept-card:hover .hr-concept-card__overlay,
  .hr-concept-card:focus .hr-concept-card__overlay,
  .hr-concept-card:focus-within .hr-concept-card__overlay {
    opacity: 1;
    visibility: visible;
    transition:
      opacity 0.4s ease 0.12s,
      visibility 0s linear 0s;
  }

  .hr-concept-card:hover .hr-concept-card__default-caption,
  .hr-concept-card:focus .hr-concept-card__default-caption,
  .hr-concept-card:focus-within .hr-concept-card__default-caption {
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.18s ease,
      visibility 0s linear 0.18s;
  }

  .hr-concept-card:hover .hr-concept-card__media img,
  .hr-concept-card:focus .hr-concept-card__media img,
  .hr-concept-card:focus-within .hr-concept-card__media img {
    transform: scale(1.015);
  }
}



/* ==========================================================
   悬停文字层层级
   ========================================================== */

.hr-concept-card > .hr-concept-card__overlay {
  z-index: 4;
}

.hr-concept-card > .hr-concept-card__caption {
  z-index: 3;
}

/* ==========================================================
   咨询体系双栏布局
   ========================================================== */

.hr-systems {
  width: 100%;
  padding: 0 0 96px;
  background: #ffffff;
}

.hr-systems__container {
  width: min(var(--hr-container), calc(100% - 48px));
  margin: 0 auto;
}

.hr-systems__list {
  display: grid;
  gap: 32px;
}

.hr-system {
  width: 100%;
  background: var(--hr-bg-soft);
}

.hr-system__inner {
  display: grid;
  grid-template-columns: minmax(0, 42%) minmax(0, 58%);
  align-items: stretch;
}

.hr-system__media {
  min-width: 0;
  overflow: hidden;
  background: #e6e9ed;
}

.hr-system__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  object-position: center center;
}

.hr-system__content {
  min-width: 0;
  padding: 30px 40px 20px ;
}

.hr-system__title {
  margin: 0 0 13px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: 12px;
  row-gap: 4px;
  font-size: 22px;
  line-height: 1.45;
  font-weight: 600;
  color: #1e252d;
}

.hr-system__title-text {
  display: inline-block;
}

.hr-system__en {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
  color: #9298a1;
  font-weight: 400;
}

.hr-system__list {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
}

.hr-system__list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.75;
  color: #3e454e;
}

.hr-system__list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--hr-blue);
}

/* ==========================================================
   客户案例预留区
   ========================================================== */

.hr-cases {
  width: 100%;
  padding: 58px 0 72px;
  background: #f4f4f4;
}

.hr-cases__container {
  width: min(var(--hr-container), calc(100% - 48px));
  margin: 0 auto;
}

.hr-cases__heading {
  text-align: center;
}

.hr-cases__heading h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: #20262d;
}

.hr-cases__heading p {
  margin: 7px 0 0;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.15em;
  color: #858b93;
}

.hr-cases__line {
  display: block;
  width: 76px;
  height: 3px;
  margin: 15px auto 0;
  background: var(--hr-blue);
}

.hr-cases__placeholder {
  width: 100%;
  min-height: 300px;
  margin-top: 34px;
}

/* ==========================================================
   平板响应式
   ========================================================== */

@media (max-width: 1200px) {
  .hr-banner {
    height: 360px;
    min-height: 360px;
  }

  .hr-concept,
  .hr-systems {
    padding-bottom: 78px;
  }

  .hr-concept__container,
  .hr-systems__container,
  .hr-cases__container {
    width: calc(100% - 40px);
  }

  .hr-concept__grid {
    gap: 22px;
  }

  .hr-concept-card__overlay {
    padding: 38px 28px 104px;
  }

  .hr-concept-card__description {
    font-size: 14px;
    line-height: 1.82;
  }

  .hr-system__content {
    padding: 27px 30px 26px;
  }

  .hr-system__media img {
    min-height: 260px;
  }
}

@media (max-width: 960px) and (min-width: 769px) {
  .hr-concept__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hr-concept-card:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 11px);
    justify-self: center;
  }

  .hr-system__inner {
    grid-template-columns: minmax(0, 40%) minmax(0, 60%);
  }

  .hr-system__content {
    padding: 24px;
  }

  .hr-system__title {
    font-size: 20px;
    column-gap: 10px;
  }

  .hr-system__list li {
    font-size: 13px;
  }
}

/* ==========================================================
   手机响应式
   ========================================================== */

@media (max-width: 768px) {
  #hr-concept,
  .hr-system {
    scroll-margin-top: 88px;
  }

  /*
   * 人力资源咨询专题页移动端专用Banner
   * 图片：/banner/eb4-mobile.jpg
   * 尺寸：750 × 400px
   */
  .hr-banner {
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 750 / 400;
    background: #15355d;
  }

  .hr-banner__image {
    width: 100%;
    height: 100%;
    background-image: url("/banner/eb4-mobile.jpg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
  }

  .hr-concept {
    padding: 46px 0 58px;
  }

  .hr-concept__container,
  .hr-systems__container,
  .hr-cases__container {
    width: calc(100% - 32px);
  }

  .hr-section-heading {
    margin-bottom: 30px;
  }

  .hr-section-heading__title {
    font-size: 21px;
    line-height: 1.55;
    letter-spacing: 0.08em;
  }

  .hr-section-heading__en {
    font-size: 10px;
    letter-spacing: 0.06em;
  }

  .hr-section-heading__description {
    margin-top: 18px;
    font-size: 14px;
    line-height: 1.85;
    text-align: left;
  }

  .hr-concept__grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-bottom: 0;
  }

  .hr-concept-card,
  .hr-concept-card:last-child {
    width: 100%;
    min-height: 360px;
    aspect-ratio: auto;
    grid-column: auto;
    justify-self: stretch;
    overflow: hidden;
  }

  .hr-concept-card__caption,
  .hr-concept-card.is-active .hr-concept-card__caption {
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    padding: 0 18px 20px;
    justify-content: flex-end;
    transform: none;
    background: rgba(0, 64, 153, 0.72);
    will-change: auto;
    transition: none;
  }

  .hr-concept-card__default-caption {
    opacity: 0;
    visibility: hidden;
  }

  .hr-concept-card__hover-caption {
    left: 18px;
    right: 18px;
    bottom: 20px;
  }

  .hr-concept-card__title {
    font-size: 19px;
  }

  .hr-concept-card__en {
    font-size: 13px;
  }

  .hr-concept-card__overlay,
  .hr-concept-card.is-active .hr-concept-card__overlay {
    padding: 34px 24px 104px;
    opacity: 1;
    visibility: visible;
    transition: none;
  }

  .hr-concept-card__description {
    font-size: 14px;
    line-height: 1.8;
  }

  .hr-systems {
    padding-bottom: 62px;
  }

  .hr-systems__list {
    gap: 24px;
  }

  .hr-system__inner {
    grid-template-columns: 1fr;
  }

  .hr-system__media img {
    height: auto;
    min-height: 0;
    object-fit: contain;
  }

  .hr-system__content {
    padding: 24px 20px 26px;
  }

  .hr-system__title {
    margin-bottom: 18px;
    font-size: 19px;
    column-gap: 8px;
    row-gap: 2px;
  }

  .hr-system__en {
    margin: 0;
    font-size: 10px;
  }

  .hr-system__list {
    gap: 9px;
  }

  .hr-system__list li {
    font-size: 13px;
    line-height: 1.7;
  }

  .hr-cases {
    padding: 46px 0 54px;
  }

  .hr-cases__heading h2 {
    font-size: 22px;
  }

  .hr-cases__placeholder {
    min-height: 220px;
    margin-top: 26px;
  }
}

@media (max-width: 420px) {
  /*
   * 420px以下继续保持750 × 400比例，
   * 不再设置固定Banner高度。
   */

  .hr-concept-card {
    min-height: 340px;
  }

  .hr-concept-card__overlay {
    padding: 28px 20px 98px;
  }

  .hr-concept-card__description {
    font-size: 13px;
    line-height: 1.72;
  }

  .hr-system__content {
    padding: 22px 18px 24px;
  }

  .hr-cases__placeholder {
    min-height: 180px;
  }
}

/* ==========================================================
   减少动画
   ========================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
