@charset "utf-8";

/* ==========================================================
   culture-workshop.css
   模块：企业文化共创工作坊专题页
   作用：
   1. 控制二级Banner；
   2. 控制4张工作坊概览卡片及中间蓝色层悬停效果；
   3. 控制4个图片与蓝色内容卡片交错叠加模块；
   4. 控制PC、平板、手机响应式布局。
   ========================================================== */

:root {
  --gc-blue: #063b91;
  --gc-blue-dark: #032b73;
  --gc-gold: #e4b650;
  --gc-text: #242a31;
  --gc-muted: #747b85;
  --gc-soft: #f5f7fa;
  --gc-container: 1320px;
}

/*
 * 同页普通锚点由CSS提供平滑滚动；
 * culture-workshop.js执行自定义滚动时会临时覆盖为auto，
 * 避免CSS与JS双重缓动。
 */
html {
  /* 锚点动画统一由 culture-workshop.js 控制，避免双重缓动 */
  scroll-behavior: auto;
}

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

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

#gc-overview,
.gc-section {
  scroll-margin-top: 130px;
  outline: none;
}

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

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

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

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

.gc-heading {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto 48px;
  text-align: center;
}

.gc-heading__title {
  margin: 0;
  font-size: 28px;
  line-height: 1.45;
  font-weight: 600;
  letter-spacing: 0.42em;
  color: #252b32;
}

.gc-heading__en {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.08em;
  color: #20252c;
  text-transform: uppercase;
}

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

.gc-heading__description {
  margin: 18px 0 0;
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: 0.12em;
  color: #30363d;
}

/* ==========================================================
   工作坊概览模块
   ========================================================== */

.gc-workshop {
  width: 100%;
  padding: 74px 0 94px;
  background: #ffffff;
}

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

.gc-workshop__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
  padding-bottom: 30px;
}

/* ==========================================================
   工作坊概览卡片
   交互参考“人力资源咨询”专题页 article：
   1. 默认蓝色标题条向图片下方溢出30px；
   2. 悬停时蓝色层从底部平滑向上展开；
   3. 蓝色层保持中间约52%宽度，不覆盖整张图片；
   4. 说明文字和悬停标题只做淡入，不跟随蓝层位移。
   ========================================================== */

.gc-workshop-card {
  position: relative;
  width: 100%;
  aspect-ratio: 380 / 278;
  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);
}

.gc-workshop-card__media {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background: #eaf1f7;
}

.gc-workshop-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1);
  transition: transform 0.42s ease;
}

.gc-workshop-card__layer {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: -30px;
  width: 62%;
  height: 72px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transform: translateX(-50%);
  background: rgba(0, 64, 153, 0.92);
  color: #fff;
  text-align: center;
  backdrop-filter: blur(2px);
  background-size: cover;
  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;
}

.gc-workshop-card__default-caption {
  width: 100%;
  text-align: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.18s ease, visibility 0s linear 0s;
}

.gc-workshop-card__title {
  margin: 0;
  font-size: 16px;
  line-height: 1.28;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #fff;
}

.gc-workshop-card__en {
  margin: 3px 0 0;
  font-size: 13px;
  line-height: 1.25;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,.88);
}

.gc-workshop-card__overlay {
  position: absolute;
  z-index: 4;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 62%;
  transform: translateX(-50%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease 0.12s, visibility 0s linear 0.52s;
}

.gc-workshop-card__details {
  position: absolute;
  inset: 0;
  padding: 46px 7px 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}

.gc-workshop-card__details p {
  margin: 0;
  font-size: clamp(14px, 0.82vw, 16px);
  line-height: 1.72;
  letter-spacing: 0.01em;
  color: rgba(255,255,255,.97);
  white-space: nowrap;
}

.gc-workshop-card__hover-caption {
  position: absolute;
  left: 7px;
  right: 7px;
  bottom: 10px;
  text-align: center;
}

.gc-workshop-card--dense .gc-workshop-card__details {
  padding-top: 10px;
  padding-bottom: 56px;
}

.gc-workshop-card--dense .gc-workshop-card__details p {
  font-size: clamp(13px, 0.72vw, 14px);
  line-height: 1.56;
}

@media (hover: hover) and (pointer: fine) {
  .gc-workshop-card:hover,
  .gc-workshop-card:focus,
  .gc-workshop-card:focus-within {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  }

  .gc-workshop-card:hover .gc-workshop-card__layer,
  .gc-workshop-card:focus .gc-workshop-card__layer,
  .gc-workshop-card:focus-within .gc-workshop-card__layer {
    width: 62%;
    height: 100.1%;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background:
      rgba(0, 64, 153, 0.78)
      url("../../images/gc10.png")
      center / cover
      no-repeat;
  }

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

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

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

/* ==========================================================
   4个锚点内容模块
   ========================================================== */

.gc-services {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 4px 40px 102px;
}

.gc-section {
  width: 100%;
  margin: 0 0 92px;
}

.gc-section:last-child {
  margin-bottom: 0;
}

.gc-section__inner {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  align-items: center;
}

/*
 * 默认模块：
 * 图片占左侧10/24，蓝色卡片占右侧16/24，
 * 二者叠加2/24，保持参考效果中的轻微穿插关系。
 */
.gc-section__media {
  position: relative;
  z-index: 2;
  grid-column: 1 / 11;
  grid-row: 1;
  width: 100%;
  overflow: hidden;
  background: #d9e8ef;
  box-shadow: 0 10px 30px rgba(16, 48, 78, 0.06);
}

.gc-section__image {
  display: block;
  width: 100%;
  height: auto;
  transform: scale(1);
  transform-origin: center center;
  transition: transform 0.4s ease;
}

.gc-section__panel {
  position: relative;
  z-index: 3;
  grid-column: 10 / 25;  /*右侧蓝色与图片交界距离*/
  grid-row: 1;
  width: 100%;
  min-height: 360px;
  display: flex;
  align-items: center;
  border-radius: 5px; 
  overflow: hidden;
  background-color: #07358a;
  background-image: url("../../images/gc09.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  color: #ffffff;
}

.gc-section__panel::before { 
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(3, 43, 117, 0.08);/*蓝色层透明度*/
  pointer-events: none;
}
/*右侧蓝色边界*/
.gc-section__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 42px 45px 32px 56px; /*蓝色块内文字左边界*/
}

.gc-section__title {
  margin: 0;
  font-size: 23px;
  line-height: 1.0;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #ffffff;
}

.gc-section__en {
  margin: 5px 0 0;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.78);
}
/*黄色装饰条*/
.gc-section__line {
  display: block;
  width: 110px;
  height: 3px;
  margin: 10px 0 18px;
  background: var(--gc-gold);
}
/*行间距*/
.gc-section__desc {
  max-width: 900px;
  font-size: 15px;
  line-height: 1.86;
  color: rgba(255, 255, 255, 0.95);
  text-align: justify;
}
/*段落间距*/
.gc-section__desc p {
  margin: 0 0 8px;
}

.gc-section__desc p:last-child {
  margin-bottom: 0;
}

.gc-section__result-list {
  display: grid;
  gap: 3px;
  margin: 1px 0 0;
  padding: 0;
  list-style: none;
}

.gc-section__result-list li {
  font-size: 12px;
  position: relative;
  padding-left: 17px;
  line-height: 1.40;
}

.gc-section__result-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 1px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gc-gold);
}

.gc-section__result-list strong {
  color: #ffffff;
  font-weight: 600;
}

.gc-section:hover .gc-section__image,
.gc-section:focus-within .gc-section__image {
  transform: scale(1.012);
}

/* ==========================================================
   左右交错布局
   ========================================================== */

.gc-section--reverse .gc-section__media {
  grid-column: 16 / 25;  /*右侧图与蓝色交界大小*/
  grid-row: 1;
}

.gc-section--reverse .gc-section__panel {
  grid-column: 1 / 17;
  grid-row: 1;
}
/*左侧蓝色边界*/
.gc-section--reverse .gc-section__content {
  padding: 42px 86px 42px 56x;
}

/* ==========================================================
   大屏与普通桌面微调
   ========================================================== */

@media (max-width: 1380px) {
  .gc-services {
    max-width: 1280px;
  }

  .gc-section__content {
    padding-left: 74px;
    padding-right: 42px;
  }

  .gc-section--reverse .gc-section__content {
    padding-left: 42px;
    padding-right: 74px;
  }

  .gc-section__title {
    font-size: 21px;
  }

  .gc-section__desc {
    font-size: 14px;
  }
}

/* ==========================================================
   平板端
   ========================================================== */

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

  .gc-workshop__container {
    width: calc(100% - 40px);
  }

  .gc-workshop__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
    row-gap: 58px;
    padding-bottom: 30px;
  }

  .gc-workshop-card__layer,
  .gc-workshop-card__overlay {
    width: 52%;
  }

  .gc-services {
    padding: 0 24px 82px;
  }

  .gc-section {
    margin-bottom: 76px;
  }

  .gc-section__media {
    grid-column: 1 / 12;
  }

  .gc-section__panel {
    grid-column: 10 / 25;
    min-height: 330px;
  }

  .gc-section--reverse .gc-section__media {
    grid-column: 14 / 25;
  }

  .gc-section--reverse .gc-section__panel {
    grid-column: 1 / 16;
  }

  .gc-section__content,
  .gc-section--reverse .gc-section__content {
    padding: 34px 34px 34px 54px;
  }

  .gc-section--reverse .gc-section__content {
    padding-left: 34px;
    padding-right: 54px;
  }

  .gc-section__title {
    font-size: 20px;
  }

  .gc-section__desc {
    font-size: 13px;
    line-height: 1.8;
  }
}

/* ==========================================================
   手机端
   ========================================================== */

@media (max-width: 768px) {
  #gc-overview,
  .gc-section {
    scroll-margin-top: 92px;
  }

  /*
   * 企业文化共创专题页移动端专用Banner
   * 图片：/banner/eb5-mobile.jpg
   * 尺寸：750 × 400px
   */
  .gc-banner {
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 750 / 400;
    background: #17385f;
  }

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

  .gc-workshop {
    padding: 48px 0 62px;
  }

  .gc-workshop__container {
    width: calc(100% - 32px);
  }

  .gc-heading {
    margin-bottom: 32px;
  }

  .gc-heading__title {
    font-size: 23px;
    letter-spacing: 0.18em;
  }

  .gc-heading__en {
    font-size: 10px;
  }

  .gc-heading__line {
    width: 80px;
  }

  .gc-heading__description {
    margin-top: 15px;
    font-size: 14px;
  }

  .gc-workshop__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 12px;
    row-gap: 50px;
    padding-bottom: 30px;
  }

  .gc-workshop-card__layer,
  .gc-workshop-card__overlay {
    width: 58%;
  }

  .gc-workshop-card__layer {
    height: 62px;
    bottom: -24px;
  }

  .gc-workshop-card__title { font-size: 16px; }
  .gc-workshop-card__en { font-size: 11px; }
  .gc-workshop-card__details {
    padding: 30px 4px 58px;
    justify-content: flex-start;
  }

  .gc-workshop-card__details p {
    font-size: 10px;
    line-height: 1.45;
  }

  .gc-workshop-card--dense .gc-workshop-card__details {
    padding: 18px 3px 48px;
  }

  .gc-workshop-card--dense .gc-workshop-card__details p {
    font-size: 9px;
    line-height: 1.24;
  }

  .gc-workshop-card.is-active .gc-workshop-card__layer {
    height: 100.1%;
    bottom: 0;
    background: rgba(0, 64, 153, 0.78) url("../../images/gc10.png") center / cover no-repeat;
  }

  .gc-workshop-card.is-active .gc-workshop-card__overlay {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease 0.08s, visibility 0s linear 0s;
  }

  .gc-workshop-card.is-active .gc-workshop-card__default-caption {
    opacity: 0;
    visibility: hidden;
  }

  .gc-services {
    width: 100%;
    max-width: none;
    padding: 0 16px 66px;
  }

  .gc-section {
    margin-bottom: 54px;
  }

  .gc-section__inner,
  .gc-section--reverse .gc-section__inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .gc-section__media,
  .gc-section--reverse .gc-section__media {
    order: 1;
    width: 100%;
    overflow: hidden;
  }

  .gc-section__panel,
  .gc-section--reverse .gc-section__panel {
    order: 2;
    width: 100%;
    min-height: 0;
    background-position: center center;
  }

  .gc-section__content,
  .gc-section--reverse .gc-section__content {
    width: 100%;
    padding: 28px 22px 30px;
  }

  .gc-section__title {
    font-size: 20px;
  }

  .gc-section__en {
    font-size: 10px;
  }

  .gc-section__line {
    width: 54px;
    height: 2px;
    margin: 14px 0 16px;
  }

  .gc-section__desc {
    font-size: 14px;
    line-height: 1.78;
    text-align: left;
  }

  .gc-section:hover .gc-section__image,
  .gc-section:focus-within .gc-section__image {
    transform: none;
  }
}

/* ==========================================================
   窄屏手机
   ========================================================== */

@media (max-width: 520px) {
  .gc-workshop__grid {
    grid-template-columns: 1fr;
    row-gap: 54px;
    padding-bottom: 30px;
  }

  .gc-workshop-card {
    max-width: 380px;
    margin: 0 auto;
  }

  .gc-workshop-card__layer,
  .gc-workshop-card__overlay {
    width: 52%;
  }

  .gc-workshop-card__layer {
    height: 68px;
    bottom: -26px;
  }

  .gc-workshop-card__title {
    font-size: 18px;
  }

  .gc-workshop-card__en {
    font-size: 12px;
  }

  .gc-workshop-card__details {
    padding: 40px 10px 70px;
    justify-content: flex-start;
  }

  .gc-workshop-card__details p {
    font-size: 13px;
    line-height: 1.58;
  }

  .gc-workshop-card--dense .gc-workshop-card__details {
    padding-top: 24px;
    padding-bottom: 58px;
  }

  .gc-workshop-card--dense .gc-workshop-card__details p {
    font-size: 11px;
    line-height: 1.34;
  }
}

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

  .gc-heading__title {
    font-size: 21px;
  }

  .gc-section__content,
  .gc-section--reverse .gc-section__content {
    padding: 25px 19px 27px;
  }

  .gc-section__title {
    font-size: 18px;
  }

  .gc-section__desc {
    font-size: 13px;
  }
}

/* ==========================================================
   减少动态效果
   ========================================================== */

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