/* ============================================================
   荣尊团队 team.css — 分块对照 img/3荣尊团队.jpg
   ============================================================ */

/* 【区块1】Banner
   素材：images/荣尊-banenr.png */
.team-page .page-banner {
  background-image: url("../images/荣尊-banenr.png");
}

/* 【区块2】筛选条：专业领域 / 职务 / 关键词 — 280×43 圆角白底 */
.team-filter {
  padding: 48px 0 20px;
  background: #fff;
}

.team-filter .filter-bar {
  justify-content: center;
  gap: 16px;
}

.team-filter .filter-bar .select,
.team-filter .filter-bar .input {
  width: 280px;
  height: 43px;
  min-width: 0;
  max-width: 100%;
  flex: 1 1 200px;
  box-sizing: border-box;
  padding: 0 14px;
  background: #ffffff;
  border-radius: 19px;
  border: 1px solid #dddddd;
  color: #666666;
  font-size: 14px;
}

.team-filter .filter-bar .select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23ED7330' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 36px;
}

.team-filter .filter-bar .btn-search {
  width: 100%; max-width: 276px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  box-sizing: border-box;
  background: #ed7330;
  border-radius: 19px;
  border: none;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.team-filter .filter-bar .btn-search:hover {
  background: #e06728;
}

.team-filter .filter-bar .btn-search img {
  width: 13px;
  height: 13px;
  display: block;
  object-fit: contain;
}

.team-filter .filter-bar .btn-search span {
  font-family: "HarmonyOS_Sans_SC", "HarmonyOS Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 13px;
  color: #ffffff;
  line-height: 11px;
}

/* 【区块3】律师网格 4列
   默认态：与首页 .lawyer-card 完全一致
   Hover：橙色滑入简介（保留人物剪影）
   素材：images/1图层 *.png、图层 *.png */
.team-grid-section {
  padding: 20px 0 80px;
  background: #fff;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 276px));
  justify-content: center;
  gap: 25px;
}

/* —— 默认态（同首页 lawyer-card） —— */
.member-card {
  position: relative;
  width: 100%;
  max-width: 276px;
  height: 345px;
  box-sizing: border-box;
  background: #f1eeed;
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
}

.member-card::before {
  content: "";
  position: absolute;
  left: 15px;
  bottom: -60px;
  z-index: 3;
  width: 164px;
  height: 165px;
  background: #ed7330;
  border-radius: 82px;
  opacity: 0.7;
  transform: translateX(-50%);
  pointer-events: none;
  transition: opacity 0.3s;
}

.member-card .photo {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  /* 后台上传为完整 JPG 人像，铺满卡片；勿用 contain+顶距（会露出米色底） */
  object-fit: cover;
  object-position: center top;
  min-height: 0;
  display: block;
  margin: 0;
  transition: opacity 0.3s;
}

.member-card .name-tag {
  position: absolute;
  left: 55px;
  top: 270px;
  bottom: auto;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  box-sizing: border-box;
  width: auto;
  min-width: 59px;
  height: auto;
  min-height: 44px;
  padding: 0;
  background: transparent;
  border-radius: 0;
  z-index: 3;
  overflow: visible;
  color: #ffffff;
  text-align: left;
  white-space: nowrap;
  transition: opacity 0.3s;
}

.member-card .name-tag .name {
  font-family: "HarmonyOS_Sans_SC_Medium", "HarmonyOS Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 19px;
  font-weight: 500;
  line-height: 25px;
  letter-spacing: 0;
  color: #ffffff;
  text-align: left;
  font-style: normal;
  text-transform: none;
}

.member-card .name-tag .role-line {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  line-height: 25px;
}

.member-card .name-tag .slash {
  font-family: "HarmonyOS_Sans_SC_Black", "HarmonyOS Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 13px;
  font-weight: 900;
  font-style: normal;
  line-height: 25px;
  letter-spacing: 0;
  color: #ffffff;
  text-align: left;
}

.member-card .name-tag .role {
  font-family: "HarmonyOS_Sans_SC", "HarmonyOS Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 13px;
  font-weight: 400;
  font-style: normal;
  line-height: 25px;
  letter-spacing: 0;
  color: #ffffff;
  text-align: left;
}

/* —— Hover 滑入：橙底 + 人物剪影 + 文案上移滑入 —— */
.member-card .overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  box-sizing: border-box;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  color: #fff;
  background: transparent;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.member-card:hover {
  background: #ed7330;
}

.member-card:hover::before,
.member-card:hover .name-tag {
  opacity: 0;
}

.member-card:hover .photo {
  opacity: 0.22;
}

.member-card:hover .overlay {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.member-card .overlay h3 {
  font-family: "HarmonyOS_Sans_SC_Medium", "HarmonyOS Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 20px;
  margin: 0 0 4px;
}

.member-card .overlay .role {
  font-size: 13px;
  opacity: 0.9;
  margin-bottom: 16px;
}

.member-card .overlay p {
  font-size: 13px;
  line-height: 1.75;
  opacity: 0.95;
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 10;
  -webkit-box-orient: vertical;
  margin: 0;
}

.member-card .overlay .go {
  margin-top: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.member-card .overlay .go img {
  width: 12px;
  height: 12px;
  display: block;
  object-fit: contain;
  margin: 0;
}

/* 加载更多：样式见 common.css .btn-load */

@media (max-width: 1200px) {
  .team-grid {
    grid-template-columns: repeat(3, minmax(0, 276px));
  }
}

@media (max-width: 900px) {
  .team-filter .filter-bar {
    flex-wrap: wrap;
  }

  .team-filter .filter-bar .select,
  .team-filter .filter-bar .input,
  .team-filter .filter-bar .btn-search {
    width: 100%;
    max-width: none;
    flex: 1 1 calc(50% - 8px);
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 276px));
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .team-filter {
    padding: 28px 0 12px;
  }

  .team-filter .filter-bar .select,
  .team-filter .filter-bar .input,
  .team-filter .filter-bar .btn-search {
    flex: 1 1 100%;
  }

  .team-grid-section {
    padding: 12px 0 48px;
  }

  .team-grid {
    grid-template-columns: minmax(0, 276px);
  }

  .member-card {
    margin: 0 auto;
  }
}
