/* 专业团队 v4 · 2026-10-28
   默认：照片 + 下方姓名/职务；悬停：左下角暖白文字 + 底部深灰渐隐
   gap row30 / col26 · 桌面 4×2 · 圆角 4px · #79171C
   对齐 website-team-v3-1440
*/

/* —— Page head：H1 + 右侧英文，无口号 / 无巨型 TEAM —— */
html body.team-directory-page main#main-content > section.team-page-head,
html body.team-directory-page main#main-content > section:first-of-type.team-page-head {
  padding: 18px 0 14px !important;
  margin: 0 auto !important;
  max-width: 1280px !important;
  background: #fff !important;
}
html body.team-directory-page main#main-content .team-page-head-row {
  display: flex !important;
  align-items: baseline !important;
  justify-content: space-between !important;
  gap: 20px !important;
}
html body.team-directory-page main#main-content .team-page-head h1,
html body.team-directory-page main#main-content > section.team-page-head h1 {
  font-size: 25px !important;
  line-height: 1.15 !important;
  font-weight: 650 !important;
  color: #1f2329 !important;
  letter-spacing: 0.02em !important;
  margin: 0 !important;
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif !important;
}
html body.team-directory-page main#main-content .team-page-head .meta-en {
  font-size: 10px !important;
  letter-spacing: 0.16em !important;
  color: #9aa0a6 !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  flex-shrink: 0 !important;
  line-height: 1 !important;
}
/* 隐藏旧页头口号 / 巨型 TEAM 水印（若残留） */
html body.team-directory-page main#main-content > section.team-page-head p,
html body.team-directory-page main#main-content > section.team-page-head .text-\[120px\],
html body.team-directory-page main#main-content > section.team-page-head .font-label-caps.text-cinnabar-red {
  display: none !important;
}

/* —— Filter bar —— */
html body.team-directory-page main#main-content > section.team-filter-sec {
  position: sticky !important;
  top: 46px !important;
  z-index: 30 !important;
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(8px) !important;
  border-bottom: 1px solid #e5e6e8 !important;
  margin: 0 auto 0 !important;
  max-width: none !important;
  padding: 0 !important;
}
html body.team-directory-page main#main-content > section.team-filter-sec > .team-filter-inner {
  max-width: 1280px !important;
  margin: 0 auto !important;
  padding: 11px 48px !important;
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  flex-wrap: nowrap !important;
}
html body.team-directory-page main#main-content .team-ftabs {
  display: flex !important;
  align-items: center !important;
  flex: 1 !important;
  min-width: 0 !important;
  overflow-x: auto !important;
  gap: 0 !important;
  flex-wrap: nowrap !important;
}
html body.team-directory-page #main-content [data-lawyer-filter],
html body.team-directory-page #main-content [data-lawyer-reset] {
  appearance: none !important;
  background: none !important;
  border: 0 !important;
  border-bottom: 0 !important;
  padding: 0 !important;
  font-size: 13px !important;
  color: #3a3f45 !important;
  cursor: pointer !important;
  font-family: inherit !important;
  white-space: nowrap !important;
  line-height: 1.2 !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
html body.team-directory-page #main-content [data-lawyer-filter]:hover,
html body.team-directory-page #main-content [data-lawyer-reset]:hover {
  color: #79171c !important;
}
html body.team-directory-page #main-content [data-lawyer-filter].filter-active {
  color: #79171c !important;
  font-weight: 600 !important;
  border-bottom: 0 !important;
}
html body.team-directory-page main#main-content .team-fsep {
  flex-shrink: 0 !important;
  color: #9aa0a6 !important;
  font-size: 12px !important;
  padding: 0 9px !important;
  user-select: none !important;
  line-height: 1 !important;
}
html body.team-directory-page main#main-content .team-filter-meta {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  flex-shrink: 0 !important;
  margin-left: auto !important;
}
html body.team-directory-page #main-content [data-lawyer-page-status] {
  position: static !important;
  font-size: 12px !important;
  color: #6b7075 !important;
  white-space: nowrap !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  top: auto !important;
  left: auto !important;
}
html body.team-directory-page #main-content #lawyer-search {
  height: 28px !important;
  border: 0 !important;
  border-bottom: 1px solid #e5e6e8 !important;
  border-radius: 0 !important;
  padding: 0 2px !important;
  width: 148px !important;
  font-size: 13px !important;
  background: transparent !important;
}
html body.team-directory-page #main-content #lawyer-search:focus {
  border-bottom-color: #79171c !important;
  outline: none !important;
  box-shadow: none !important;
}

/* —— Grid：4 列 · gap 30/26 —— */
html body.team-directory-page main#main-content [data-lawyer-directory-grid] {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 30px 26px !important;
}
html body.team-directory-page main#main-content > section.team-list-sec {
  padding: 12px 0 40px !important;
  margin: 0 auto !important;
  max-width: 1280px !important;
  background: #fff !important;
}

/* —— Card shell —— */
html body.team-directory-page main#main-content [data-lawyer-card] {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: left !important;
  transform: none !important;
  color: inherit !important;
  text-decoration: none !important;
}
html body.team-directory-page main#main-content [data-lawyer-card]:hover {
  transform: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
}

/* Photo frame */
html body.team-directory-page main#main-content [data-lawyer-card] [data-lawyer-photo-frame],
html body.team-directory-page main#main-content [data-lawyer-card] > .photo {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: 268px !important;
  aspect-ratio: auto !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 4px !important;
  overflow: hidden !important;
  background: #e8eaed !important;
  isolation: isolate !important;
  box-shadow: none !important;
}
html body.team-directory-page main#main-content [data-lawyer-card] [data-lawyer-photo-frame]::after,
html body.team-directory-page main#main-content [data-lawyer-card] > .photo::after {
  display: none !important;
  content: none !important;
  opacity: 0 !important;
  background: none !important;
}
html body.team-directory-page main#main-content [data-lawyer-card] img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: top center !important;
  filter: none !important;
  transition: transform 0.35s ease, filter 0.3s ease !important;
}
html body.team-directory-page main#main-content [data-lawyer-card]:hover img,
html body.team-directory-page main#main-content [data-lawyer-card]:focus-within img,
html body.team-directory-page main#main-content [data-lawyer-card].is-hover img {
  transform: scale(1.03) !important;
  filter: none !important;
}

/* Veil + overlay (hidden by default) */
html body.team-directory-page main#main-content [data-lawyer-card] .veil {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  pointer-events: none !important;
  opacity: 0 !important;
  background: linear-gradient(180deg,
    rgba(24, 26, 30, 0) 12%,
    rgba(24, 26, 30, 0.16) 32%,
    rgba(24, 26, 30, 0.74) 58%,
    rgba(24, 26, 30, 0.94) 100%) !important;
  transition: opacity 0.28s ease !important;
}
html body.team-directory-page main#main-content [data-lawyer-card] .overlay-meta {
  position: absolute !important;
  z-index: 2 !important;
  inset: 0 !important;
  padding: 16px 16px 12px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  align-items: flex-start !important;
  color: #faf7f2 !important;
  pointer-events: none !important;
  opacity: 0 !important;
  transition: opacity 0.28s ease !important;
}
html body.team-directory-page main#main-content [data-lawyer-card] .overlay-meta .oname {
  font-size: 22px !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  letter-spacing: 0.06em !important;
  color: #faf7f2 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
  margin: 0 !important;
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif !important;
}
html body.team-directory-page main#main-content [data-lawyer-card] .overlay-meta .orole {
  margin-top: 5px !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
  color: #e5e0da !important;
}
html body.team-directory-page main#main-content [data-lawyer-card] .overlay-meta .oloc {
  margin-top: 2px !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
  color: #d0cbc5 !important;
}
html body.team-directory-page main#main-content [data-lawyer-card] .prac-block {
  margin-top: 10px !important;
  max-width: 100% !important;
}
html body.team-directory-page main#main-content [data-lawyer-card] .prac-label {
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  color: #dcc8ad !important;
  letter-spacing: 0.02em !important;
}
html body.team-directory-page main#main-content [data-lawyer-card] .overlay-meta .prac,
html body.team-directory-page main#main-content [data-lawyer-card] .overlay-meta [data-lawyer-tags] {
  margin: 4px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
  color: #eee9e3 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  flex-wrap: nowrap !important;
  gap: 0 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

/* Under-photo text (default visible) */
html body.team-directory-page main#main-content [data-lawyer-card] .under {
  padding: 8px 2px 0 !important;
  transition: opacity 0.28s ease !important;
  opacity: 1 !important;
}
html body.team-directory-page main#main-content [data-lawyer-card] .under .uname,
html body.team-directory-page main#main-content [data-lawyer-card] .under [data-lawyer-name] {
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  color: #1f2329 !important;
  letter-spacing: 0.04em !important;
  margin: 0 !important;
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif !important;
}
html body.team-directory-page main#main-content [data-lawyer-card] .under .urole,
html body.team-directory-page main#main-content [data-lawyer-card] .under [data-lawyer-role] {
  display: block !important;
  margin-top: 3px !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
  color: #6b7075 !important;
  max-width: none !important;
  text-align: left !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  padding: 0 !important;
  border: 0 !important;
}
html body.team-directory-page main#main-content [data-lawyer-card] .under .uloc,
html body.team-directory-page main#main-content [data-lawyer-card] .under [data-lawyer-loc] {
  margin-top: 2px !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
  color: #9aa0a6 !important;
}
/* Hide legacy summary below photo */
html body.team-directory-page main#main-content [data-lawyer-card] [data-lawyer-summary],
html body.team-directory-page main#main-content [data-lawyer-card] > .flex.justify-between {
  display: none !important;
}

/* Hover / focus / touch → overlay on, under off */
html body.team-directory-page main#main-content [data-lawyer-card]:hover .veil,
html body.team-directory-page main#main-content [data-lawyer-card]:focus-within .veil,
html body.team-directory-page main#main-content [data-lawyer-card].is-hover .veil {
  opacity: 1 !important;
}
html body.team-directory-page main#main-content [data-lawyer-card]:hover .overlay-meta,
html body.team-directory-page main#main-content [data-lawyer-card]:focus-within .overlay-meta,
html body.team-directory-page main#main-content [data-lawyer-card].is-hover .overlay-meta {
  opacity: 1 !important;
}
html body.team-directory-page main#main-content [data-lawyer-card]:hover .under,
html body.team-directory-page main#main-content [data-lawyer-card]:focus-within .under,
html body.team-directory-page main#main-content [data-lawyer-card].is-hover .under {
  opacity: 0 !important;
}
/* Don't turn name red on hover (overlay handles it) */
html body.team-directory-page main#main-content [data-lawyer-card]:hover [data-lawyer-name] {
  color: #1f2329 !important;
}

/* Pagination */
html body.team-directory-page #main-content [data-lawyer-pagination] {
  margin-top: 28px !important;
  border-top: 1px solid #e5e6e8 !important;
  padding-top: 18px !important;
}
html body.team-directory-page #main-content [data-lawyer-pagination] button {
  font-size: 13px !important;
  color: #1f2329 !important;
  letter-spacing: 0.06em !important;
}
html body.team-directory-page #main-content [data-lawyer-pagination] button:hover:not(:disabled) {
  color: #79171c !important;
}

/* Team page nav height ~46 to match mockup sticky filter top */
html body.team-directory-page .site-header {
  height: 46px !important;
  min-height: 46px !important;
  max-height: 46px !important;
}
html body.team-directory-page main#main-content {
  padding-top: 46px !important;
}

@media (max-width: 900px) {
  html body.team-directory-page main#main-content > section.team-filter-sec > .team-filter-inner {
    padding: 10px 16px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
  }
  html body.team-directory-page main#main-content .team-ftabs {
    width: 100% !important;
    padding-bottom: 10px !important;
  }
  html body.team-directory-page main#main-content .team-filter-meta {
    width: 100% !important;
    margin-left: 0 !important;
    justify-content: space-between !important;
    padding: 8px 0 10px !important;
    border-top: 1px solid #e5e6e8 !important;
  }
  html body.team-directory-page main#main-content [data-lawyer-directory-grid] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px 16px !important;
  }
  html body.team-directory-page main#main-content [data-lawyer-card] [data-lawyer-photo-frame],
  html body.team-directory-page main#main-content [data-lawyer-card] > .photo {
    height: 210px !important;
  }
  html body.team-directory-page main#main-content [data-lawyer-card] .overlay-meta {
    padding: 12px !important;
  }
  html body.team-directory-page main#main-content [data-lawyer-card] .overlay-meta .oname {
    font-size: 20px !important;
  }
  html body.team-directory-page main#main-content [data-lawyer-card] .overlay-meta .prac {
    -webkit-line-clamp: 2 !important;
  }
  html body.team-directory-page main#main-content .team-page-head h1 {
    font-size: 24px !important;
  }
  html body.team-directory-page main#main-content > section.team-page-head,
  html body.team-directory-page main#main-content > section.team-list-sec {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  html body.team-directory-page .site-header {
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
  }
  html body.team-directory-page main#main-content > section.team-filter-sec {
    top: 48px !important;
  }
}

/* filter-active: wine + weight, no underline (beat polish) */
html body.team-directory-page #main-content [data-lawyer-filter].filter-active,
html body.team-directory-page #main-content button.filter-active[data-lawyer-filter] {
  color: #79171c !important;
  font-weight: 600 !important;
  border: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  text-decoration: none !important;
}
