/* 易心教育｜手机端专家半身人像修复，2026-10-24
 * 修复此前手机端裁成“大头照”的问题。
 * 原始照片保持不变；桌面端不应用本样式。
 * 先完整显示上半身（contain），再做最多几%的水平视觉微调。
 */
@media screen and (max-width: 767px) {
  .expert-photo,
  .core-photo2,
  .pc-team-grid .pc-card .portrait {
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(118deg, #f8efdf 0%, #fbf8f1 60%, #efdcb8 100%) !important;
  }

  /* 撤销旧版 transform: scale(1.13~1.48) 的脸部放大，
   * 使头顶、双肩和胸部在固定卡片内自然完整呈现。 */
  .expert-photo img,
  .core-photo2 img,
  .pc-team-grid .pc-card .portrait img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    transform-origin: center center !important;
  }

  /* 钟萧核心专家：将偏左的人物向右移动少许，保持上半身不被裁切。 */
  .expert-photo img,
  .core-photo2 img {
    transform: translateX(5%) !important;
  }

  /* 十位专家的小卡片：轻微缩小以确保肩膀不被横向移动裁切。
   * 仅微调人物视觉中心，不改变卡片结构、文字或原文件。 */
  .pc-team-grid .pc-card .portrait img {
    transform: translateX(var(--yx-upperbody-shift, 0%)) scale(0.94) !important;
  }
  .pc-team-grid .pc-card:nth-child(1)  { --yx-upperbody-shift:  6%; } /* 钟萧 */
  .pc-team-grid .pc-card:nth-child(2)  { --yx-upperbody-shift: -2%; } /* 王川 */
  .pc-team-grid .pc-card:nth-child(3)  { --yx-upperbody-shift: -2%; } /* 罗宝珠 */
  .pc-team-grid .pc-card:nth-child(4)  { --yx-upperbody-shift: -2%; } /* 高文博 */
  .pc-team-grid .pc-card:nth-child(5)  { --yx-upperbody-shift:  0%; } /* 林雅琴 */
  .pc-team-grid .pc-card:nth-child(6)  { --yx-upperbody-shift:  7%; } /* 陈志远 */
  .pc-team-grid .pc-card:nth-child(7)  { --yx-upperbody-shift:  6%; } /* 周慧敏 */
  .pc-team-grid .pc-card:nth-child(8)  { --yx-upperbody-shift:  0%; } /* 许静怡 */
  .pc-team-grid .pc-card:nth-child(9)  { --yx-upperbody-shift:  1%; } /* 陆明轩 */
  .pc-team-grid .pc-card:nth-child(10) { --yx-upperbody-shift:  1%; } /* 苏婉清 */
}
