/* 人员列表按 Figma 分为两个 810px 卡片，列间距为 60px；原部门职责面板保持原样。 */
.staff-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 60px;
}

/* 卡片左侧为姓名标签预留 40px，长职责自然撑高，避免固定高度截断正文。 */
.staff-item {
  position: relative;
  isolation: isolate;
  display: block;
  min-width: 0;
  min-height: 440px;
  padding: 130px 40px 26px 80px;
}

/* 边框比姓名标签向右、向下各缩进 40px，底部随实际职责高度延伸。 */
.staff-item::before {
  position: absolute;
  inset: 40px 0 0 40px;
  z-index: -1;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
  content: "";
}

/* 新页面隐藏原有头像，继续复用原脚本中的姓名、联系方式和职责数据。 */
.staff-avatar {
  display: none;
}

.staff-summary {
  padding-top: 0;
}

/* 姓名底图包含蓝色斜角和浅蓝投影，文字在左侧 352px 蓝色区域内居中。 */
.staff-name {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  width: 384px;
  height: 90px;
  padding: 0 32px 21px 0;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: url("../img/figma/department-responsibilities-261021-name-background.png") center / 100% 100% no-repeat;
  font-size: 24px;
  line-height: 29px;
}

/* 电话与地点保持设计稿的横向位置；额外的邮箱信息自动换到下一行。 */
.staff-contact-list {
  width: auto;
  margin-top: 0;
  grid-template-columns: minmax(0, 1fr) 243px;
  gap: 20px 40px;
}

.staff-contact-item {
  position: relative;
  display: flex;
  min-width: 0;
  height: auto;
  min-height: 36px;
  padding-left: 46px;
  justify-content: flex-start;
  border: 0;
  border-radius: 0;
  background: url("../img/figma/department-responsibilities-261021-phone-icon.png") left 5px / 26px 26px no-repeat;
  overflow-wrap: anywhere;
}

/* 地点使用定位图标，电话与职责左侧的蓝色短线均从卡片边框开始。 */
.staff-contact-item:nth-child(2) {
  background-image: url("../img/figma/department-responsibilities-261021-office-icon.png");
}

.staff-contact-item::before,
.staff-duty-area::before {
  position: absolute;
  top: 17px;
  left: -39px;
  width: 20px;
  height: 2px;
  background: #0071bc;
  content: "";
}

/* 职责图标、标题和正文横向对齐；正文使用剩余宽度并允许长句换行。 */
.staff-duty-area {
  position: relative;
  min-height: 0;
  margin-top: 68px;
  padding: 0 0 0 46px;
  grid-template-columns: 77px minmax(0, 1fr);
  gap: 0 30px;
  border-left: 0;
  background: url("../img/figma/department-responsibilities-261021-duty-icon.png") left 5px / 26px 26px no-repeat;
}

.staff-duty-title {
  color: var(--text);
  font-size: 18px;
  line-height: 30px;
}

.staff-duty-content {
  padding-right: 0;
  font-size: 16px;
  line-height: 30px;
}

/* 手机端由公共函数识别，所有人员和联系信息改为纵向排列。 */
.is-mobile .staff-list {
  grid-template-columns: minmax(0, 1fr);
}

.is-mobile .staff-item {
  min-height: 0;
  padding: 86px 16px 24px 32px;
  border-bottom: 0;
}

.is-mobile .staff-item::before {
  inset: 26px 0 0 12px;
  border-radius: 16px;
}

.is-mobile .staff-summary {
  padding-top: 0;
}

/* 小屏姓名标签保留原图比例，避免蓝色斜角变形或超出窄屏。 */
.is-mobile .staff-name {
  width: 256px;
  max-width: 100%;
  height: 60px;
  padding: 0 22px 14px 0;
  font-size: 20px;
  line-height: 28px;
}

.is-mobile .staff-contact-list {
  width: 100%;
  margin-top: 0;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.is-mobile .staff-contact-item {
  height: auto;
  min-height: 28px;
  padding-left: 36px;
  border-radius: 0;
  background-position: left 3px;
  background-size: 22px 22px;
  font-size: 14px;
  line-height: 28px;
}

/* 手机端短线适当缩短，职责标题与正文纵向排列，确保长文本不挤压。 */
.is-mobile .staff-contact-item::before,
.is-mobile .staff-duty-area::before {
  top: 13px;
  left: -19px;
  width: 10px;
}

.is-mobile .staff-duty-area {
  display: block;
  margin-top: 24px;
  padding: 0 0 0 36px;
  border-top: 0;
  background-position: left 2px;
  background-size: 22px 22px;
}

.is-mobile .staff-duty-title {
  margin-bottom: 10px;
}

.is-mobile .staff-duty-content {
  font-size: 14px;
  line-height: 1.8;
}
