/* 医院详情页：对应 Figma 节点 389:3290。 */
body:has(.mcg-hospital-detail) #loop-meta,
body:has(.mcg-hospital-detail) .entry-header,
body:has(.mcg-hospital-detail) .page-header {
	display: none !important;
}

body:has(.mcg-hospital-detail) #main,
body:has(.mcg-hospital-detail) #primary,
body:has(.mcg-hospital-detail) .content-area,
body:has(.mcg-hospital-detail) .site-main,
body:has(.mcg-hospital-detail) .entry,
body:has(.mcg-hospital-detail) .entry-content,
body:has(.mcg-hospital-detail) .entry-the-content {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

.mcg-hospital-detail {
	--mcg-hospital-cyan: #1fadc1;
	--mcg-hospital-cyan-dark: #178a9a;
	--mcg-hospital-ink: #0f2a33;
	--mcg-hospital-muted: #717182;
	--mcg-hospital-red: #e83e34;
	--mcg-hospital-orange: #ea8700;
	position: relative;
	left: 50%;
	width: 100vw;
	margin-left: -50vw;
	background: #f6fafb;
	color: var(--mcg-hospital-ink);
	font-family: MCGInter, Inter, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	letter-spacing: 0;
}

.mcg-hospital-detail *,
.mcg-hospital-detail *::before,
.mcg-hospital-detail *::after {
	box-sizing: border-box;
}

.mcg-hospital-detail :where(h1, h2, h3, p, dl, dt, dd) {
	margin: 0;
	letter-spacing: 0;
}

.mcg-hospital-detail .mcg-hospital-detail-container {
	width: min(1152px, 100%);
	margin: 0 auto;
	padding-right: 24px;
	padding-left: 24px;
}

.mcg-hospital-detail .mcg-hospital-hero {
	position: relative;
	min-height: 208px;
	overflow: hidden;
	background: #176f7d;
}

.mcg-hospital-detail .mcg-hospital-hero__image {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none !important;
	margin: 0 !important;
	object-fit: cover;
	object-position: center 48%;
}

.mcg-hospital-detail .mcg-hospital-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(170deg, rgba(31, 173, 193, .92) 8%, rgba(23, 138, 154, .85) 46%, rgba(15, 42, 51, .85) 92%);
}

.mcg-hospital-detail .mcg-hospital-hero__content {
	position: relative;
	z-index: 1;
	display: flex;
	min-height: 208px;
	flex-direction: column;
	justify-content: center;
	padding-top: 24px;
	padding-bottom: 24px;
	color: #fff;
}

.mcg-hospital-detail .mcg-hospital-detail-badges {
	display: flex;
	min-height: 24px;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.mcg-hospital-detail .mcg-hospital-badge {
	display: inline-flex;
	min-height: 24px;
	align-items: center;
	gap: 4px;
	padding: 4px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .15);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	line-height: 16px;
	white-space: nowrap;
}

.mcg-hospital-detail .mcg-hospital-badge img {
	display: block;
	width: 14px;
	height: 14px;
	max-width: none;
	flex: 0 0 14px;
	margin: 0;
}

.mcg-hospital-detail .mcg-hospital-hero h1 {
	max-width: 768px;
	margin-top: 12px;
	color: #fff !important;
	font-family: MCGMontserrat, Montserrat, Arial, sans-serif;
	font-size: 24px;
	font-weight: 500;
	line-height: 36px;
	text-wrap: balance;
}

.mcg-hospital-detail .mcg-hospital-hero__secondary-name {
	margin-top: 4px !important;
	color: rgba(255, 255, 255, .85);
	font-size: 20px;
	font-weight: 400;
	line-height: 28px;
}

.mcg-hospital-detail .mcg-hospital-detail-main {
	min-height: 900px;
	padding: 39px 0 64px;
	background: #f6fafb;
}

.mcg-hospital-detail .mcg-hospital-section-title {
	position: relative;
	width: fit-content;
	min-height: 42px;
	padding-bottom: 12px;
	color: var(--mcg-hospital-ink) !important;
	font-family: MCGMontserrat, Montserrat, Arial, sans-serif;
	font-size: 20px;
	font-weight: 500;
	line-height: 30px;
}

.mcg-hospital-detail .mcg-hospital-section-title::after {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 56px;
	height: 4px;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--mcg-hospital-red), var(--mcg-hospital-orange));
	content: '';
}

.mcg-hospital-detail .mcg-hospital-overview__copy {
	margin-top: 12px !important;
	color: var(--mcg-hospital-muted);
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
}

.mcg-hospital-detail .mcg-hospital-disclaimer {
	display: flex;
	min-height: 43px;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
	padding: 10px 20px;
	border-radius: 10px;
	background: #f6f6f6;
	color: #404040;
}

.mcg-hospital-detail .mcg-hospital-disclaimer img {
	display: block;
	width: 14px;
	height: 14px;
	max-width: none;
	flex: 0 0 14px;
	margin: 0;
}

.mcg-hospital-detail .mcg-hospital-disclaimer p {
	font-size: 12px;
	font-weight: 300;
	line-height: 22px;
}

.mcg-hospital-detail .mcg-hospital-info-grid {
	display: grid;
	overflow: hidden;
	margin-top: 32px;
	border: 1px solid rgba(0, 0, 0, .05);
	border-radius: 16px;
	background: rgba(0, 0, 0, .05);
	box-shadow: 0 1px 3px rgba(0, 0, 0, .1), 0 1px 2px -1px rgba(0, 0, 0, .1);
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1px;
}

.mcg-hospital-detail .mcg-hospital-info-item {
	display: flex;
	min-width: 0;
	min-height: 96px;
	flex-direction: column;
	justify-content: flex-start;
	padding: 20px;
	background: #fff;
}

.mcg-hospital-detail .mcg-hospital-info-item dt {
	color: var(--mcg-hospital-cyan-dark);
	font-size: 12px;
	font-weight: 600;
	line-height: 16px;
	text-transform: uppercase;
}

.mcg-hospital-detail .mcg-hospital-info-item dd {
	min-width: 0;
	margin-top: 4px;
	color: var(--mcg-hospital-ink);
	font-size: 15px;
	font-weight: 400;
	line-height: 23px;
	overflow-wrap: anywhere;
}

.mcg-hospital-detail .mcg-hospital-info-item a {
	color: var(--mcg-hospital-ink);
	text-decoration: none;
}

.mcg-hospital-detail .mcg-hospital-info-item a:hover,
.mcg-hospital-detail .mcg-hospital-info-item a:focus-visible {
	color: var(--mcg-hospital-cyan-dark);
	text-decoration: underline;
}

.mcg-hospital-detail .mcg-hospital-specialties,
.mcg-hospital-detail .mcg-hospital-departments {
	margin-top: 28px;
}

.mcg-hospital-detail .mcg-hospital-specialties__panel {
	min-height: 56px;
	margin-top: 16px;
	padding: 18px 32px;
	border: 1px solid rgba(0, 0, 0, .05);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .1), 0 1px 2px -1px rgba(0, 0, 0, .1);
	color: #178a9a;
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
}

.mcg-hospital-detail .mcg-hospital-department-list {
	display: grid;
	margin-top: 16px;
	gap: 12px;
}

.mcg-hospital-detail .mcg-hospital-department-card {
	overflow: hidden;
	padding: 0 35px 28px;
	border: 1px solid rgba(0, 0, 0, .05);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .1), 0 1px 2px -1px rgba(0, 0, 0, .1);
}

.mcg-hospital-detail .mcg-hospital-department-card header {
	display: flex;
	min-height: 60px;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	padding: 16px 0;
}

.mcg-hospital-detail .mcg-hospital-department-card h3 {
	color: var(--mcg-hospital-ink) !important;
	font-family: MCGMontserrat, Montserrat, Arial, sans-serif;
	font-size: 18px;
	font-weight: 500;
	line-height: 27px;
}

.mcg-hospital-detail .mcg-hospital-rank {
	display: inline-flex;
	min-height: 24px;
	align-items: center;
	gap: 4px;
	padding: 4px 12px;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--mcg-hospital-red), var(--mcg-hospital-orange));
	box-shadow: 0 1px 2px rgba(0, 0, 0, .1);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	line-height: 16px;
	text-transform: uppercase;
	white-space: nowrap;
}

.mcg-hospital-detail .mcg-hospital-rank img {
	display: block;
	width: 10px;
	height: 16px;
	max-width: none;
	flex: 0 0 10px;
	margin: 0;
}

.mcg-hospital-detail .mcg-hospital-department-highlight {
	min-height: 112px;
	padding: 12px 16px;
	border: 1px solid rgba(31, 173, 193, .25);
	border-radius: 14px;
	background: #e6f7fa;
	color: #0f5a64;
	font-size: 14px;
	line-height: 23px;
}

.mcg-hospital-detail .mcg-hospital-department-highlight strong {
	display: block;
	color: var(--mcg-hospital-cyan-dark);
	font-weight: 600;
}

.mcg-hospital-detail .mcg-hospital-department-highlight p {
	font-size: 14px;
	font-weight: 400;
	line-height: 23px;
}

/* 医院详情页下方的关联医院区域。 */
.ph-hospital-related {
	--ph-related-cyan: #1fadc1;
	--ph-related-cyan-dark: #178a9a;
	--ph-related-ink: #0f2a33;
	--ph-related-muted: #717182;
	position: relative;
	left: 50%;
	width: 100vw;
	margin-left: -50vw;
	padding: 0 0 64px;
	background: #f6fafb;
	color: var(--ph-related-ink);
	font-family: MCGInter, Inter, Arial, sans-serif;
	font-size: 14px;
	line-height: 1.6;
	letter-spacing: 0;
}

.ph-hospital-related *,
.ph-hospital-related *::before,
.ph-hospital-related *::after {
	box-sizing: border-box;
}

.ph-hospital-related .ph-hospital-related__inner {
	width: min(1152px, 100%);
	margin: 0 auto;
	padding: 0 24px;
}

.ph-hospital-related .ph-same-key-specialty-wrapper,
.ph-hospital-related .ph-same-city-wrapper,
.ph-hospital-related .ph-other-top-wrapper {
	width: 100%;
	margin: 0 0 28px !important;
}

.ph-hospital-related .ph-hospital-table {
	width: 100% !important;
	min-width: 0 !important;
	overflow: hidden;
	border: 1px solid rgba(0, 0, 0, .05) !important;
	border-radius: 16px;
	border-collapse: separate !important;
	border-spacing: 0;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .1), 0 1px 2px -1px rgba(0, 0, 0, .1);
	color: var(--ph-related-ink);
	font-family: inherit;
	table-layout: fixed;
}

.ph-hospital-related .ph-hospital-table tr,
.ph-hospital-related .ph-hospital-table tr:hover,
.ph-hospital-related .ph-hospital-table tr:nth-child(even) {
	background: #fff;
}

.ph-hospital-related .ph-hospital-table td {
	padding: 16px 24px !important;
	border: 0 !important;
	border-bottom: 1px solid rgba(15, 42, 51, .1) !important;
	background: #fff !important;
	color: var(--ph-related-ink);
	font-size: 14px;
	line-height: 22px;
	vertical-align: top;
}

.ph-hospital-related .ph-same-key-specialty-header td,
.ph-hospital-related .ph-same-city-header td,
.ph-hospital-related .ph-other-top-header td {
	position: relative;
	padding: 22px 32px 24px !important;
	border-bottom: 1px solid rgba(15, 42, 51, .08) !important;
	background: #fff !important;
}

.ph-hospital-related .ph-same-key-specialty-header td::after,
.ph-hospital-related .ph-same-city-header td::after,
.ph-hospital-related .ph-other-top-header td::after {
	position: absolute;
	bottom: 0;
	left: 32px;
	width: 56px;
	height: 4px;
	border-radius: 999px;
	background: linear-gradient(90deg, #e83e34, #ea8700);
	content: '';
}

.ph-hospital-related .ph-related-heading {
	color: var(--ph-related-ink);
	font-family: MCGMontserrat, Montserrat, Arial, sans-serif;
	font-size: 18px;
	font-weight: 500;
	line-height: 28px;
	text-decoration: none;
}

.ph-hospital-related .ph-related-count {
	display: inline-flex;
	min-height: 24px;
	align-items: center;
	margin-left: 8px;
	padding: 4px 10px;
	border: 1px solid rgba(31, 173, 193, .25);
	border-radius: 999px;
	background: #e6f7fa;
	color: var(--ph-related-cyan-dark);
	font-family: MCGInter, Inter, Arial, sans-serif;
	font-size: 12px;
	font-weight: 600;
	line-height: 16px;
	vertical-align: middle;
	white-space: nowrap;
}

.ph-hospital-related .ph-related-status {
	padding: 24px 32px !important;
	border-bottom: 0 !important;
	color: var(--ph-related-muted);
	text-align: left !important;
}

.ph-hospital-related .ph-hospital-header-row > td,
.ph-hospital-related .ph-same-city-row > td,
.ph-hospital-related tr.phscr-row-hdr > td,
.ph-hospital-related tr.phhr-row-hdr > td {
	padding-top: 14px !important;
	padding-bottom: 14px !important;
	border-top: 0 !important;
	background: #f7fbfc !important;
	box-shadow: none !important;
	vertical-align: middle;
}

.ph-hospital-related tr.phscr-row-hdr:not(:first-child) > td,
.ph-hospital-related tr.phhr-row-hdr:not(:first-child) > td {
	border-top: 12px solid #f6fafb !important;
}

.ph-hospital-related .ph-icon-container,
.ph-hospital-related .ph-icon-container[style*="flex"] {
	display: flex !important;
	width: 100% !important;
	flex-wrap: wrap;
	align-items: center !important;
	justify-content: flex-start !important;
	gap: 8px;
}

.ph-hospital-related .ph-icon-container a {
	display: inline-flex;
	width: 28px;
	height: 28px;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(31, 173, 193, .2);
	border-radius: 8px;
	background: #e6f7fa;
}

.ph-hospital-related .ph-icon-container img {
	display: block;
	width: 18px;
	height: 18px;
	margin: 0;
	object-fit: contain;
}

.ph-hospital-related .ph-rounded-box {
	display: inline-flex !important;
	min-height: 28px;
	align-items: center;
	margin: 0 !important;
	padding: 5px 10px !important;
	border: 1px solid rgba(31, 173, 193, .25) !important;
	border-radius: 999px !important;
	background: #e6f7fa !important;
	color: var(--ph-related-cyan-dark) !important;
	font-size: 12px;
	font-weight: 600;
	line-height: 16px;
	word-break: normal;
}

.ph-hospital-related .ph-imd-box {
	border-color: rgba(234, 135, 0, .28) !important;
	background: #fff6e8 !important;
	color: #a85f00 !important;
}

.ph-hospital-related .ph-hospital-table a {
	color: var(--ph-related-cyan-dark);
	font-weight: 500;
	text-decoration: none;
}

.ph-hospital-related .ph-hospital-table a:hover,
.ph-hospital-related .ph-hospital-table a:focus-visible,
.ph-hospital-related .ph-dept-toggle:hover {
	color: #0f6975;
	text-decoration: underline;
}

.ph-hospital-related .ph-hospital-table strong {
	color: var(--ph-related-ink);
	font-weight: 600;
}

.ph-hospital-related .ph-hospital-table hr {
	height: 1px;
	margin: 12px 0 !important;
	border: 0;
	background: rgba(15, 42, 51, .1);
}

.ph-hospital-related .ph-hospital-image-cell img {
	width: 100%;
	max-width: none;
	height: 180px;
	margin: 0;
	border-radius: 10px;
	object-fit: cover;
}

.ph-hospital-related .ph-dept-toggle {
	color: var(--ph-related-cyan-dark) !important;
	font-weight: 600 !important;
}

.ph-hospital-related .ph-hidden-depts {
	margin-top: 8px;
	padding: 0;
}

.ph-hospital-related .ph-same-key-specialty-footer td,
.ph-hospital-related .ph-same-city-footer td,
.ph-hospital-related .ph-other-top-footer td {
	padding: 12px 24px !important;
	border-bottom: 0 !important;
}

.ph-hospital-related [id$="-pagination"] button {
	width: 34px !important;
	height: 34px !important;
	margin: 0 4px !important;
	padding: 0 !important;
	border: 1px solid rgba(15, 42, 51, .14) !important;
	border-radius: 8px !important;
	background: #fff !important;
	color: var(--ph-related-ink) !important;
	font: 600 12px/32px MCGInter, Inter, Arial, sans-serif !important;
}

.ph-hospital-related [id$="-pagination"] button.active,
.ph-hospital-related [id$="-pagination"] button:hover,
.ph-hospital-related [id$="-pagination"] button:focus-visible {
	border-color: var(--ph-related-cyan-dark) !important;
	background: var(--ph-related-cyan-dark) !important;
	color: #fff !important;
}

body:has(.ph-hospital-related) .mcg-hospital-detail .mcg-hospital-detail-main {
	padding-bottom: 28px;
}

@media (max-width: 900px) {
	.mcg-hospital-detail .mcg-hospital-info-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ph-hospital-related .ph-hospital-table colgroup {
		display: none;
	}

	.ph-hospital-related .ph-hospital-table,
	.ph-hospital-related .ph-hospital-table tbody,
	.ph-hospital-related .ph-hospital-table tr,
	.ph-hospital-related .ph-hospital-table td {
		display: block !important;
		width: 100% !important;
		max-width: 100% !important;
	}

	.ph-hospital-related .ph-hospital-table td {
		padding: 14px 20px !important;
	}

	.ph-hospital-related .ph-hospital-info-cell,
	.ph-hospital-related .ph-hospital-image-cell {
		border-bottom: 1px solid rgba(15, 42, 51, .08) !important;
	}

	.ph-hospital-related .ph-hospital-image-cell img {
		height: min(240px, 52vw);
	}
}

@media (max-width: 620px) {
	.mcg-hospital-detail .mcg-hospital-detail-container {
		padding-right: 20px;
		padding-left: 20px;
	}

	.mcg-hospital-detail .mcg-hospital-hero,
	.mcg-hospital-detail .mcg-hospital-hero__content {
		min-height: 230px;
	}

	.mcg-hospital-detail .mcg-hospital-hero__content {
		padding-top: 28px;
		padding-bottom: 28px;
	}

	.mcg-hospital-detail .mcg-hospital-detail-badges {
		gap: 6px;
	}

	.mcg-hospital-detail .mcg-hospital-badge {
		padding-right: 10px;
		padding-left: 10px;
		white-space: normal;
	}

	.mcg-hospital-detail .mcg-hospital-hero h1 {
		font-size: 22px;
		line-height: 30px;
	}

	.mcg-hospital-detail .mcg-hospital-hero__secondary-name {
		font-size: 17px;
		line-height: 24px;
	}

	.mcg-hospital-detail .mcg-hospital-detail-main {
		padding-top: 32px;
		padding-bottom: 48px;
	}

	.mcg-hospital-detail .mcg-hospital-disclaimer {
		align-items: flex-start;
		padding: 12px 14px;
	}

	.mcg-hospital-detail .mcg-hospital-disclaimer img {
		margin-top: 4px;
	}

	.mcg-hospital-detail .mcg-hospital-info-grid {
		grid-template-columns: 1fr;
	}

	.mcg-hospital-detail .mcg-hospital-info-item {
		min-height: 82px;
		padding: 16px;
	}

	.mcg-hospital-detail .mcg-hospital-specialties__panel {
		padding: 16px 20px;
		border-radius: 12px;
	}

	.mcg-hospital-detail .mcg-hospital-department-card {
		padding: 0 20px 20px;
		border-radius: 12px;
	}

	.mcg-hospital-detail .mcg-hospital-department-card header {
		align-items: flex-start;
		flex-direction: column;
		justify-content: center;
		gap: 8px;
	}

	.mcg-hospital-detail .mcg-hospital-department-highlight {
		border-radius: 10px;
	}

	.ph-hospital-related {
		padding-bottom: 48px;
	}

	.ph-hospital-related .ph-hospital-related__inner {
		padding-right: 20px;
		padding-left: 20px;
	}

	.ph-hospital-related .ph-same-key-specialty-header td,
	.ph-hospital-related .ph-same-city-header td,
	.ph-hospital-related .ph-other-top-header td {
		padding: 20px 20px 22px !important;
	}

	.ph-hospital-related .ph-same-key-specialty-header td::after,
	.ph-hospital-related .ph-same-city-header td::after,
	.ph-hospital-related .ph-other-top-header td::after {
		left: 20px;
	}

	.ph-hospital-related .ph-related-heading {
		font-size: 16px;
		line-height: 24px;
	}

	.ph-hospital-related .ph-related-count {
		margin-top: 6px;
		margin-left: 0;
	}
}
