/* 联系信息卡片容器样式 */
.contact-cards-container {
  padding: 40px 0 80px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  width: 100%;
}

/* 联系信息卡片样式 */
.contact-card {
  width: calc(50% - 12px);
  /* 一行两个，减去间距 */
  min-width: 320px;
  /* 根据设计图的卡片高度 */
  background: #FFFFFF;
  border-radius: 3px;
  box-shadow: 0px 2px 12px 0px rgba(27, 62, 85, 0.15);
  box-sizing: border-box;
}

.contact-card>a {
  box-sizing: border-box;
  display: flex;
  align-items: stretch;
  gap: 16px;
  width: 100%;
  height: 100%;
  padding: 16px;
}

/* 头像容器 */
.contact-avatar {
  position: relative;
  width: 139px;
  flex-shrink: 0;
  overflow: hidden;
}

/* 使用 padding 来维持宽高比 */
.contact-avatar::before {
  content: '';
  display: block;
  padding-top: 143%;
}

.contact-avatar img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 联系信息内容 */
.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  padding: 4px 0;
  gap: 10px;
}

/* 基本信息区域 */
.contact-basic-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-name-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-name {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.4;
  color: #1D1D21;
  margin: 0;
}

.contact-education {
  display: flex;
  gap: 4px;
  align-items: flex-start;
}

.education-label,
.education-value {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5em;
  color: #1D1D21;
}

.education-label {
  flex-shrink: 0;
}

.education-value {
  flex: 1;
  min-width: 0;
  word-break: break-all;
}

/* 联系方式区域 */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-item {
  display: flex;
  gap: 4px;
}

.contact-item .contact-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
}

.contact-item .icon-location {
  background-image: url('../../image/icon/icon-location.png');
}

.contact-item .icon-phone {
  background-image: url('../../image/icon/icon-phone.png');
}

.contact-item .icon-contact-email {
  background-image: url('../../image/icon/icon-email-contact-info.png');
}

.contact-text {
  flex: 1;
  min-width: 0;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.3;
  color: #777777;
  font-style: normal;
  word-break: break-all;
}

/* 学科信息区域 */
.contact-subjects {
  display: flex;
  gap: 4px;
  align-items: flex-start;
  margin-top: 10px;
}

.subjects-label {
  font-weight: 400;
  font-size: 14px;
  line-height: 18px;
  color: #1D1D21;
  flex-shrink: 0;
}

.subjects-list {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  gap: 4px;
}

.contact-subjects>* {
  line-height: 22px;
}

.subject-item {
  width: fit-content;
  font-weight: 400;
  font-size: 14px;
  color: #1A6BB7;
  border-bottom: 1px solid #1A6BB7;
}

@media (max-width: 1024px) {
  .contact-cards-container {
    padding: 30px 0 60px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
  }

  /* 联系信息卡片样式 */
  .contact-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 10px 16px 10px;
    width: 100%;
    border-radius: 1.881px;
    background: #FFF;
    box-shadow: 0 1.254px 7.524px 0 rgba(27, 62, 85, 0.15);
    box-sizing: border-box;
  }

  .contact-card>a {
    display: unset;
    padding: unset;
  }

  .content-divider {
    margin-top: 4px;
  }

  .contact-card-header {
    display: flex;
    gap: 10px;
  }

  /* 头像容器 */
  .contact-avatar {
    width: 87px;
  }

  /* 联系信息内容 */
  .contact-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    padding: 0;
  }

  /* 基本信息区域 */
  .contact-basic-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .contact-name-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .contact-name {
    font-size: 16px;
  }

  .education-label,
  .education-value {
    font-size: 14px;
  }

  /* 联系方式区域 */
  .contact-details {
    gap: 0px;
  }
}