/* 专业律师页：微信 / 电话 / 邮箱提示 */
#team .style-419-outer,
#team .style-419,
#team .h-social-icons,
#team .social-icon-container {
	overflow: visible !important;
}

.h-social-icons .social-icon-container.xys-lawyer-contact {
	position: relative;
	cursor: pointer;
}

.h-social-icons .social-icon-container.xys-lawyer-contact > a {
	cursor: pointer;
	text-decoration: none;
}

.xys-lawyer-contact-tip {
	position: absolute;
	left: 50%;
	bottom: calc(100% + 12px);
	transform: translateX(-50%) translateY(6px);
	min-width: 160px;
	padding: 12px;
	background: #ffffff;
	border: 1px solid #e6e6e6;
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
	z-index: 1000;
	text-align: center;
}

.xys-lawyer-contact-tip[hidden] {
	display: none !important;
}

.xys-lawyer-contact-tip::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -7px;
	width: 12px;
	height: 12px;
	background: #ffffff;
	border-right: 1px solid #e6e6e6;
	border-bottom: 1px solid #e6e6e6;
	transform: translateX(-50%) rotate(45deg);
}

.xys-lawyer-contact-tip img {
	display: block;
	width: 140px;
	height: 140px;
	margin: 0 auto 8px;
	object-fit: contain;
	border-radius: 4px;
}

.xys-lawyer-contact-tip__value {
	display: block;
	color: #0d47a1 !important;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.4;
	word-break: break-all;
	text-decoration: none !important;
}

.xys-lawyer-contact-tip__value:hover {
	text-decoration: underline !important;
}

.xys-lawyer-contact-tip__label {
	display: block;
	margin-bottom: 6px;
	font-size: 0.75rem;
	color: #888888;
}

.xys-lawyer-contact-tip--wechat {
	min-width: 164px;
}

.xys-lawyer-contact-tip--phone,
.xys-lawyer-contact-tip--email {
	min-width: 200px;
	min-height: 88px;
	padding: 18px 20px 20px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	box-sizing: border-box;
}

.xys-lawyer-contact-tip--phone .xys-lawyer-contact-tip__label,
.xys-lawyer-contact-tip--email .xys-lawyer-contact-tip__label {
	margin-bottom: 10px;
	line-height: 1.5;
}

.xys-lawyer-contact-tip--phone .xys-lawyer-contact-tip__value,
.xys-lawyer-contact-tip--email .xys-lawyer-contact-tip__value {
	padding: 8px 0;
	line-height: 1.6;
	font-size: 1.05rem;
}

.xys-lawyer-contact-tip--wechat .xys-lawyer-contact-tip__label {
	margin-top: 8px;
	margin-bottom: 0;
}

.social-icon-container.xys-lawyer-contact:hover .xys-lawyer-contact-tip,
.social-icon-container.xys-lawyer-contact:focus-within .xys-lawyer-contact-tip,
.social-icon-container.xys-lawyer-contact.is-active .xys-lawyer-contact-tip {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
	pointer-events: auto;
}

.social-icon-container.xys-lawyer-contact.is-active .icon-container,
.social-icon-container.xys-lawyer-contact:hover .icon-container,
.social-icon-container.xys-lawyer-contact:focus-within .icon-container {
	opacity: 0.85;
}

@media (max-width: 768px) {
	.xys-lawyer-contact-tip {
		left: auto;
		right: 0;
		transform: translateY(6px);
	}

	.xys-lawyer-contact-tip::after {
		left: auto;
		right: 18px;
		transform: rotate(45deg);
	}

	.social-icon-container.xys-lawyer-contact:hover .xys-lawyer-contact-tip,
	.social-icon-container.xys-lawyer-contact:focus-within .xys-lawyer-contact-tip,
	.social-icon-container.xys-lawyer-contact.is-active .xys-lawyer-contact-tip {
		transform: translateY(0);
	}
}

/* 专业律师列表：卡片跳转简历 */
.xys-lawyer-card {
	position: relative;
}

.xys-lawyer-card__photo {
	cursor: pointer;
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.xys-lawyer-card__photo:hover,
.xys-lawyer-card__photo:focus {
	transform: translateY(-4px);
	outline: none;
}

/* 专业律师列表头像：铺满裁剪，保留面部（保持文档流，避免高度塌陷） */
#team .style-420,
#team .xys-lawyer-card__photo {
	overflow: hidden !important;
	background: #1a2744;
}

#team .style-420-image,
#team .xys-lawyer-card__photo img,
#team .style-420 img {
	display: block !important;
	position: static !important;
	width: 100% !important;
	height: auto !important;
	max-width: 100% !important;
	aspect-ratio: 3 / 4;
	object-fit: cover !important;
	object-position: center 14% !important;
}

.xys-lawyer-card__name-link {
	color: inherit !important;
	text-decoration: none !important;
	transition: color 0.2s ease;
}

.xys-lawyer-card__name-link:hover,
.xys-lawyer-card__name-link:focus {
	color: #0d47a1 !important;
}

.xys-lawyer-card__more {
	display: inline-block;
	margin-top: 0.15rem;
	font-size: 0.92rem;
	font-weight: 600;
	color: #0d47a1 !important;
	text-decoration: none !important;
}

.xys-lawyer-card__more:hover,
.xys-lawyer-card__more:focus {
	text-decoration: underline !important;
}

/* 专业律师列表：五张卡等高，图标底对齐 */
#team .h-row > .style-419-outer {
	display: flex;
	align-self: stretch;
}

#team .h-row > .style-419-outer > .style-419,
#team .h-row > .style-419-outer > [class*="style-419"] {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	width: 100%;
}

#team .style-419 > .h-y-container {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	width: 100%;
}

#team .style-421 {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	width: 100%;
}

#team .style-421 > .h-row {
	display: flex;
	flex: 1 1 auto;
	width: 100%;
}

#team .style-422-outer {
	display: flex !important;
	flex: 1 1 auto;
	width: 100% !important;
	max-width: 100%;
}

#team .style-422 {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	width: 100%;
	text-align: center;
}

#team .style-422 > .h-y-container {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	width: 100%;
}

#team .style-422 > .h-y-container > *:not(:last-child) {
	margin-bottom: 15px;
}

#team .style-425 {
	margin-top: auto;
}

#team .style-423 h4 {
	margin-top: 0;
	margin-bottom: 0;
}

#team .style-424 p {
	margin-top: 0;
	margin-bottom: 0;
}

/* 律师简历页 */
.xys-lawyer-profile-page {
	background: #f5f7fb;
}

.xys-lawyer-profile__hero {
	background: linear-gradient(145deg, #1a2744 0%, #243b5e 55%, #2f4f73 100%);
	color: #ffffff;
	padding: 2rem 1rem 2.5rem;
}

.xys-lawyer-profile__hero-inner,
.xys-lawyer-profile__body {
	max-width: var(--xys-content-width);
	margin: 0 auto;
}

#colibri #content .xys-lawyer-profile__hero,
#colibri #content .xys-lawyer-profile__hero p,
#colibri #content .xys-lawyer-profile__hero span,
#colibri #content .xys-lawyer-profile__hero h1,
#colibri #content .xys-lawyer-profile__hero a,
#content.content .xys-lawyer-profile__hero,
#content.content .xys-lawyer-profile__hero p,
#content.content .xys-lawyer-profile__hero span,
#content.content .xys-lawyer-profile__hero h1,
#content.content .xys-lawyer-profile__hero a {
	color: #ffffff !important;
}

.xys-lawyer-profile__back,
.xys-lawyer-profile__hero a.xys-lawyer-profile__back,
.xys-lawyer-profile__hero a.xys-lawyer-profile__back:visited {
	display: inline-block;
	margin-bottom: 1.25rem;
	color: #ffffff !important;
	text-decoration: none !important;
	font-size: 0.95rem;
}

.xys-lawyer-profile__back:hover,
.xys-lawyer-profile__back:focus {
	color: #ffffff !important;
	text-decoration: underline !important;
}

.xys-lawyer-profile__header {
	display: grid;
	grid-template-columns: 168px 1fr auto;
	gap: 1.5rem;
	align-items: center;
}

.xys-lawyer-profile__photo-wrap {
	width: 168px;
	height: 200px;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
	background: #1a2744;
}

.xys-lawyer-profile__photo {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 14%;
}

.xys-lawyer-profile__firm {
	margin: 0 0 0.35rem;
	font-size: 0.92rem;
	color: #ffffff !important;
}

.xys-lawyer-profile__name {
	margin: 0 0 0.35rem;
	font-size: 2rem;
	line-height: 1.2;
	color: #ffffff !important;
}

.xys-lawyer-profile__title {
	margin: 0 0 1rem;
	font-size: 1.05rem;
	color: #ffffff !important;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.55rem 1rem;
}

.xys-lawyer-profile__role,
.xys-lawyer-profile__license {
	color: #ffffff !important;
}

.xys-lawyer-profile__license {
	font-weight: 500;
	opacity: 0.95;
}

.xys-lawyer-profile__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.xys-lawyer-profile__tag {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.42);
	font-size: 0.85rem;
	color: #ffffff !important;
}

.xys-lawyer-profile__contacts {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
}

.xys-lawyer-profile__contact,
.xys-lawyer-profile__hero a.xys-lawyer-profile__contact,
.xys-lawyer-profile__hero a.xys-lawyer-profile__contact:visited {
	color: #ffffff !important;
	text-decoration: none !important;
	font-size: 0.95rem;
	font-weight: 600;
}

.xys-lawyer-profile__contact:hover,
.xys-lawyer-profile__contact:focus {
	text-decoration: underline !important;
}

.xys-lawyer-profile__wechat {
	text-align: center;
	padding: 0.75rem;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.1);
}

.xys-lawyer-profile__wechat img {
	display: block;
	margin: 0 auto 0.5rem;
	border-radius: 6px;
	background: #ffffff;
}

.xys-lawyer-profile__wechat span {
	font-size: 0.85rem;
	color: #ffffff !important;
}

.xys-lawyer-profile__body {
	padding: 2rem 1rem 3rem;
}

.xys-lawyer-profile__content {
	background: #ffffff;
	border-radius: 12px;
	padding: 2rem 1.75rem;
	box-shadow: 0 8px 24px rgba(26, 39, 68, 0.08);
}

.xys-lawyer-profile__summary {
	margin: 0 0 1.25rem;
	font-size: 1.05rem;
	line-height: 1.85;
	color: #333333;
}

.xys-lawyer-profile__entry h3 {
	margin: 1.5rem 0 0.75rem;
	font-size: 1.15rem;
	color: #1a2744 !important;
}

.xys-lawyer-profile__entry h4 {
	margin: 1.25rem 0 0.5rem;
	font-size: 1.02rem;
	color: #243b5e !important;
}

.xys-lawyer-profile__entry p,
.xys-lawyer-profile__entry li {
	color: #333333;
	line-height: 1.85;
}

.xys-lawyer-profile__entry ul {
	margin: 0;
	padding-left: 1.25rem;
}

.xys-lawyer-profile__cta {
	margin-top: 2rem;
}

.xys-lawyer-profile__content .xys-related-block {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid #e8ecf1;
}

.xys-lawyer-profile__content .xys-related-block__title {
	margin: 0 0 0.85rem;
	font-size: 1.1rem;
	color: #1a2744 !important;
}

.xys-lawyer-profile__content .xys-related-block__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem 0.75rem;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.xys-lawyer-profile__content .xys-related-block__list li {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.xys-lawyer-profile__content .xys-related-block__list a {
	display: inline-block !important;
	padding: 0.4rem 0.9rem !important;
	border-radius: 999px !important;
	background: #eef2f7 !important;
	color: #1a2744 !important;
	text-decoration: none !important;
	font-size: 0.92rem !important;
	border: 1px solid #dce4ef !important;
}

.xys-lawyer-profile__content .xys-related-block__list a:hover,
.xys-lawyer-profile__content .xys-related-block__list a:focus {
	background: #dce4ef !important;
	color: #1a2744 !important;
}

@media (max-width: 768px) {
	.xys-lawyer-profile__header {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.xys-lawyer-profile__photo-wrap {
		margin: 0 auto;
		width: 148px;
		height: 176px;
	}

	.xys-lawyer-profile__tags,
	.xys-lawyer-profile__contacts {
		justify-content: center;
	}

	.xys-lawyer-profile__wechat {
		max-width: 180px;
		margin: 0 auto;
	}

	.xys-lawyer-profile__content {
		padding: 1.5rem 1.15rem;
	}
}

