/**
 * Mizhan mega menu templates (inside .mega-menu-dropdown--mizhan-template).
 */

@media (min-width: 992px) {
	/* 比 .container 更宽：居中宽带面板（设计稿商店枢纽 / 分类橱窗） */
	.navbar .dropdown.position-static > .mega-menu-dropdown.mega-menu-dropdown--mizhan-template:not(.mega-menu-full-viewport) {
		left: 50%;
		right: auto;
		width: min(96vw, 1520px);
		max-width: min(96vw, 1520px);
		transform: translateX(-50%) translateY(10px);
	}

	.navbar .dropdown.position-static:hover > .mega-menu-dropdown.mega-menu-dropdown--mizhan-template:not(.mega-menu-full-viewport) {
		transform: translateX(-50%) translateY(0);
	}

	.navbar .dropdown.position-static > .mega-menu-dropdown.mega-menu-dropdown--mizhan-template:not(.mega-menu-full-viewport)::before {
		left: 50%;
		right: auto;
		width: min(96vw, 1520px);
		transform: translateX(-50%);
	}

	.navbar .mega-menu-dropdown.mega-menu-dropdown--mizhan-template {
		display: block !important;
		grid-template-columns: none;
		max-height: min(88vh, 640px);
		overflow-y: auto;
	}

	/* 分类橱窗：内容紧凑，不裁切横向 */
	.navbar .mega-menu-dropdown.mega-menu-dropdown--mizhan-template:has(.mizhan-mega--showcase),
	.navbar .mega-menu-dropdown.mega-menu-dropdown--mizhan-template:has(.mizhan-mega--shop),
	.navbar .mega-menu-dropdown.mega-menu-dropdown--mizhan-template:has(.mizhan-mega--support) {
		max-height: none;
		overflow: visible;
	}

	.navbar .mega-menu-dropdown--mizhan-template > .mega-menu-shortcode-cell {
		display: block;
		width: 100%;
		min-width: 0;
		max-width: 100%;
		overflow: visible;
	}

	.navbar .mega-menu-dropdown--mizhan-template .mega-menu-shortcode-inner {
		width: 100%;
		max-width: 100%;
		min-width: 0;
		box-sizing: border-box;
		overflow: visible;
	}
}

.navbar .mega-menu-dropdown--mizhan-template {
	padding: 1.15rem 1.5rem !important;
	min-width: 0;
	box-sizing: border-box;
}

.navbar .mega-menu-dropdown--mizhan-template:has(.mizhan-mega--showcase) {
	padding: 0.85rem 1rem !important;
}

/* 三模版统一：圆角与字号（外框与主题 mega-menu 下拉一致 8px） */
.navbar .mega-menu-dropdown--mizhan-template:has(.mizhan-mega--shop),
.navbar .mega-menu-dropdown--mizhan-template:has(.mizhan-mega--support) {
	padding: 1.85rem 2.1rem 1.9rem !important;
	border: 1px solid rgba(31, 143, 147, 0.2);
	border-radius: 8px;
	box-shadow: 0 18px 48px rgba(18, 31, 38, 0.14);
}

.navbar .mega-menu-dropdown--mizhan-template:has(.mizhan-mega--support) {
	padding: 1.25rem 1.5rem !important;
}

.mizhan-mega {
	--mz-radius-outer: 8px;
	--mz-radius-inner: 8px;
	--mz-fs-block: 1rem;
	--mz-fs-group: 0.8125rem;
	--mz-fs-text: 0.875rem;
	--mz-fs-small: 0.8125rem;
	--mz-fs-caption: 0.75rem;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	color: #1a1a1a;
	font-size: var(--mz-fs-text);
	line-height: 1.45;
}

.mizhan-mega__col-title {
	font-size: var(--mz-fs-group);
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: hsl(181, 42%, 37%);
	margin-bottom: 0.65rem;
}

/* Shop hub（效果图：左 40% 主推+链接，右 60% Latest Releases + 3×3） */
.mizhan-mega--shop {
	display: grid;
	grid-template-columns: minmax(0, 49.5%) minmax(0, 1fr);
	gap: 1.25rem 2.15rem;
	align-items: start;
}

.mizhan-mega__shop-left {
	display: flex;
	flex-direction: column;
	gap: 2.35rem;
	min-width: 0;
}

.mizhan-mega__shop-right {
	display: flex;
	flex-direction: column;
	gap: 1.65rem;
	min-width: 0;
	padding-left: 2.3rem;
	border-left: 1px solid rgba(27, 93, 99, 0.12);
}

.mizhan-mega__promo {
	position: relative;
	display: grid;
	grid-template-columns: minmax(170px, 42%) minmax(0, 1fr);
	align-items: center;
	gap: 1.6rem;
	min-height: 17.75rem;
	padding: 1.7rem 1.75rem;
	overflow: hidden;
	background:
		radial-gradient(circle at 18% 35%, rgba(255, 255, 255, 0.98) 0 0, rgba(255, 255, 255, 0.98) 34%, transparent 34.5%),
		radial-gradient(circle at 74% -12%, rgba(255, 255, 255, 0.48) 0 0, rgba(255, 255, 255, 0.48) 28%, transparent 28.5%),
		linear-gradient(140deg, #eefcfc 0%, #e9fbfb 48%, #f5ffff 100%);
	border: 1px solid hsl(181, 30%, 88%);
	border-radius: var(--mz-radius-inner, 8px);
}

.mizhan-mega__promo-visual {
	position: relative;
	z-index: 1;
	display: flex;
	justify-content: center;
}

.mizhan-mega__promo-avatar {
	position: relative;
	width: min(100%, 14.5rem);
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	overflow: hidden;
	background: #fff;
	border: 4px solid #fff;
	box-shadow: 0 0 0 2px rgba(31, 143, 147, 0.24), 10px 12px 0 -4px rgba(31, 143, 147, 0.9);
}

.mizhan-mega__promo-avatar img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mizhan-mega__promo-body {
	position: relative;
	z-index: 1;
	min-width: 0;
}

.mizhan-mega__promo-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1.05rem;
	padding: 0.34rem 0.75rem;
	font-size: var(--mz-fs-caption);
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: hsl(181, 42%, 37%);
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid rgba(31, 143, 147, 0.48);
	border-radius: var(--mz-radius-inner, 8px);
}

.mizhan-mega__promo-badge::before {
	content: "\2605";
	font-size: 0.86em;
	line-height: 1;
}

.mizhan-mega__promo-title {
	font-size: var(--mz-fs-block);
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 0.75rem;
}

.mizhan-mega__promo-desc {
	max-width: 22rem;
	margin: 0 0 1.35rem;
	color: #646970;
	font-size: var(--mz-fs-small);
	line-height: 1.48;
}

.mizhan-mega__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.7rem;
	min-width: 12rem;
	min-height: 3.25rem;
	padding: 0.62rem 1.45rem;
	background: hsl(181, 42%, 37%);
	color: #fff;
	text-decoration: none;
	border-radius: var(--mz-radius-inner, 8px);
	box-shadow: 0 5px 12px rgba(25, 139, 142, 0.28);
	font-size: var(--mz-fs-text);
	font-weight: 600;
}

.mizhan-mega__btn--arrow .mizhan-mega__btn-icon {
	font-size: 1.1em;
	line-height: 1;
}

.mizhan-mega__link-columns {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.15rem 1.75rem;
}

.mizhan-mega--shop .mizhan-mega__col-title {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	margin-bottom: 1.05rem;
	font-size: var(--mz-fs-group);
	font-weight: 700;
}

.mizhan-mega__col-title-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.35rem;
	height: 1.35rem;
	flex: 0 0 auto;
	color: hsl(181, 42%, 37%);
	font-size: 1.18rem;
	line-height: 1;
}

.mizhan-mega__col-title-icon .bi {
	color: hsl(181, 42%, 37%);
}

.mizhan-mega__col-title-icon--img {
	border-radius: 50%;
	background: hsl(181, 42%, 37%);
	overflow: hidden;
}

.mizhan-mega__col-title-icon--img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mizhan-mega__link-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mizhan-mega__link-list li + li {
	margin-top: 0.7rem;
}

.mizhan-mega__link-list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.7rem;
	padding: 0.15rem 0;
	color: #1a1a1a;
	text-decoration: none;
	font-size: var(--mz-fs-text);
	line-height: 1.32;
}

.mizhan-mega__link-list a:hover {
	color: hsl(181, 42%, 37%);
}

.mizhan-mega__link-label {
	min-width: 0;
}

.mizhan-mega__link-chevron {
	flex: 0 0 auto;
	color: hsl(181, 42%, 37%);
	font-size: 1.25rem;
	line-height: 1;
}

.mizhan-mega__shop-right-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.mizhan-mega__shop-right-title {
	position: relative;
	font-size: var(--mz-fs-block);
	font-weight: 700;
	line-height: 1.3;
}

.mizhan-mega__shop-right-title::after {
	content: "";
	position: absolute;
	left: 0;
	top: calc(100% + 0.7rem);
	width: 4.6rem;
	height: 0.2rem;
	border-radius: 999px;
	background: #1b9aa0;
}

.mizhan-mega__shop-view-all {
	display: inline-flex;
	align-items: center;
	gap: 0.28rem;
	font-size: var(--mz-fs-text);
	font-weight: 500;
	color: #1a1a1a;
	text-decoration: none;
	white-space: nowrap;
}

.mizhan-mega__shop-view-all:hover {
	text-decoration: underline;
}

.mizhan-mega__product-grid {
	display: grid;
	gap: 1.45rem 1.65rem;
}

.mizhan-mega--shop .mizhan-mega__shop-grid {
	width: 100%;
	grid-template-columns: repeat(var(--mizhan-shop-cols, 3), minmax(0, 1fr));
}

.mizhan-mega--shop .mizhan-mega__product-card {
	width: 100%;
	min-width: 0;
}

/* 产品图 / 标题：商店枢纽与分类橱窗一致 */
.mizhan-mega--shop .mizhan-mega__product-media,
.mizhan-mega--showcase .mizhan-mega__product-media {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: var(--mz-radius-inner, 8px);
	background: #f4f4f4;
	border: 1px solid #d9d9d9;
}

.mizhan-mega--shop .mizhan-mega__product-media img,
.mizhan-mega--showcase .mizhan-mega__product-media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.mizhan-mega--shop .mizhan-mega__product-label,
.mizhan-mega--showcase .mizhan-mega__product-label {
	margin-top: 0.45rem;
	font-size: var(--mz-fs-small);
	line-height: 1.25;
	text-align: center;
	overflow: hidden;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.mizhan-mega__product-card,
.mizhan-mega__showcase-card {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	min-width: 0;
}

.mizhan-mega__product-label,
.mizhan-mega__showcase-label {
	display: block;
	margin-top: 0.45rem;
	text-align: center;
	font-size: var(--mz-fs-small);
	line-height: 1.25;
}

/* Showcase：grid 均分列宽（minmax(0,1fr) 防止撑出容器） */
.mizhan-mega--showcase {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.mizhan-mega--showcase .mizhan-mega__showcase-grid,
.mizhan-mega--showcase .mizhan-mega__product-grid.mizhan-mega__showcase-grid {
	display: grid;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	grid-template-columns: repeat(var(--mizhan-showcase-cols, 3), minmax(0, 1fr));
	gap: 0.5rem 0.65rem;
	align-items: start;
}

.mizhan-mega--showcase .mizhan-mega__showcase-card,
.mizhan-mega--showcase .mizhan-mega__product-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	min-width: 0;
	max-width: 100%;
}


.mizhan-mega__support-panel--placeholder {
	min-height: 140px;
	background: #f6f7f7;
	border: 1px dashed #dcdcde;
	border-radius: 8px;
}

/* Support */
.mizhan-mega--support {
	display: grid;
	grid-template-columns: minmax(0, 46%) minmax(0, 1fr);
	gap: 3.5rem;
	align-items: start;
}

.mizhan-mega__support-left {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	min-width: 0;
}

.mizhan-mega__support-group + .mizhan-mega__support-group {
	padding-top: 2rem;
	border-top: 1px solid rgba(27, 93, 99, 0.12);
}

.mizhan-mega__support-group-head {
	display: flex;
	align-items: center;
	gap: 1.35rem;
	margin-bottom: 1.45rem;
}

.mizhan-mega__support-group-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3.65rem;
	height: 3.65rem;
	border-radius: 50%;
	color: #fff;
	background: linear-gradient(180deg, #25a7ad 0%, #16888f 100%);
	box-shadow: 0 5px 10px rgba(22, 136, 143, 0.18);
	font-size: 1.6rem;
	line-height: 1;
	overflow: hidden;
}

.mizhan-mega__support-group-icon img {
	width: 1.65rem;
	height: 1.65rem;
	object-fit: contain;
}

.mizhan-mega__support-heading {
	color: #111;
	font-size: var(--mz-fs-block);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.mizhan-mega__support-links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mizhan-mega__support-link {
	display: grid;
	grid-template-columns: 3.1rem minmax(0, 1fr) 1.15rem;
	align-items: center;
	gap: 1.15rem;
	padding: 0.55rem 0;
	text-decoration: none;
	color: inherit;
}

.mizhan-mega__support-links li + li {
	margin-top: 1rem;
}

.mizhan-mega__support-link-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	border: 2px solid #239aa0;
	border-radius: 50%;
	color: #239aa0;
	font-size: 1.45rem;
	line-height: 1;
	overflow: hidden;
}

.mizhan-mega__support-link-icon img {
	width: 1.35rem;
	height: 1.35rem;
	object-fit: contain;
}

.mizhan-mega__support-link-copy {
	min-width: 0;
}

.mizhan-mega__support-link-title {
	display: block;
	font-weight: 600;
	font-size: var(--mz-fs-text);
	line-height: 1.25;
	color: hsl(181, 42%, 37%);
}

.mizhan-mega__support-link-desc {
	display: block;
	font-size: var(--mz-fs-small);
	color: #646970;
	line-height: 1.32;
	margin-top: 0.28rem;
}

.mizhan-mega__support-link-chevron {
	color: #2f3337;
	font-size: 1.125rem;
	line-height: 1;
	justify-self: end;
}

.mizhan-mega__support-right {
	min-width: 0;
}

.mizhan-mega__support-panel {
	padding: 2.05rem 2.35rem;
	min-height: 33rem;
	border-radius: var(--mz-radius-inner, 8px);
	background:
		radial-gradient(circle at 84% 6%, rgba(255, 255, 255, 0.78) 0 0, rgba(255, 255, 255, 0.78) 22%, transparent 22.5%),
		linear-gradient(135deg, #f2ffff 0%, #f8ffff 48%, #effafa 100%);
	box-shadow: inset 0 0 0 1px rgba(31, 143, 147, 0.06);
}

.mizhan-mega__support-panel-title {
	position: relative;
	color: #111;
	font-size: var(--mz-fs-block);
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-transform: none;
}

.mizhan-mega__support-panel-rule {
	width: 4.1rem;
	height: 0.22rem;
	margin: 0.95rem auto 0;
	border-radius: 999px;
	background: #1b9aa0;
}

/* 订购步骤：复用主题 cart-progress（与购物车/风格流程一致，无 Size 步） */
.mizhan-mega__checkout-progress {
	margin-top: 1.25rem;
}

.mizhan-mega--support .mizhan-mega__checkout-progress .cart-progress {
	margin-bottom: 1.25rem;
}

.mizhan-mega__order-visual {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 4.2rem minmax(0, 1fr);
	align-items: center;
	gap: 1.4rem;
	margin-top: 2rem;
	padding-top: 1.6rem;
	border-top: 1px solid rgba(27, 93, 99, 0.13);
}

.mizhan-mega__order-product,
.mizhan-mega__order-photo-stack {
	min-height: 12rem;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mizhan-mega__order-product img {
	display: block;
	width: min(100%, 12.8rem);
	height: auto;
	max-height: 15rem;
	object-fit: contain;
	border-radius: var(--mz-radius-inner, 8px);
	border: 1px solid #d9d9d9;
	background: #f4f4f4;
}

.mizhan-mega__order-photo-stack {
	position: relative;
	min-height: 14rem;
}

.mizhan-mega__order-photo-stack img {
	position: absolute;
	display: block;
	width: 78%;
	max-width: 13.5rem;
	height: auto;
	max-height: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: var(--mz-radius-inner, 8px);
	border: 1px solid #d9d9d9;
	background: #f4f4f4;
	box-shadow: 0 8px 20px rgba(31, 47, 54, 0.16);
}

.mizhan-mega__order-photo-stack img:nth-child(1) {
	z-index: 2;
	transform: translateX(-12%);
}

.mizhan-mega__order-photo-stack img:nth-child(2) {
	z-index: 1;
	transform: translateX(20%) scale(0.94);
	opacity: 0.86;
}

.mizhan-mega__order-arrow {
	color: #159aa1;
	font-size: 3.5rem;
	font-weight: 700;
	line-height: 1;
	text-align: center;
}

.mizhan-mega__support-panel-caption {
	margin-top: 1.25rem;
	color: #111;
	font-size: var(--mz-fs-block);
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
}

.mizhan-mega--empty .mizhan-mega__empty-note {
	margin: 0;
	padding: 0.5rem 0;
	color: #646970;
	font-size: 0.8125rem;
}

@media (max-width: 991.98px) {
	.mizhan-mega--shop,
	.mizhan-mega--support {
		grid-template-columns: 1fr;
	}

	.navbar .mega-menu-dropdown--mizhan-template:has(.mizhan-mega--shop) {
		padding: 1rem !important;
		border-radius: 8px;
	}

	.mizhan-mega__shop-right {
		padding-left: 0;
		border-left: 0;
	}

	.navbar .mega-menu-dropdown--mizhan-template:has(.mizhan-mega--support) {
		padding: 1rem !important;
		border-radius: 8px;
	}

	.mizhan-mega--support {
		gap: 1.5rem;
	}

	.mizhan-mega__support-group-head {
		gap: 0.8rem;
		margin-bottom: 1rem;
	}

	.mizhan-mega__support-group-icon {
		width: 2.8rem;
		height: 2.8rem;
		font-size: 1.25rem;
	}

	.mizhan-mega__support-heading {
		font-size: var(--mz-fs-block);
	}

	.mizhan-mega__support-link {
		grid-template-columns: 2.5rem minmax(0, 1fr) 1rem;
		gap: 0.8rem;
	}

	.mizhan-mega__support-link-icon {
		width: 2.45rem;
		height: 2.45rem;
		font-size: 1.1rem;
	}

	.mizhan-mega__support-panel {
		padding: 1.2rem;
		min-height: 0;
	}

	.mizhan-mega__order-visual {
		grid-template-columns: 1fr;
		gap: 0.8rem;
	}

	.mizhan-mega__order-arrow {
		font-size: 2rem;
		transform: rotate(90deg);
	}

	.mizhan-mega__promo {
		grid-template-columns: 1fr;
		min-height: 0;
		gap: 1.25rem;
		padding: 1.25rem;
	}

	.mizhan-mega__promo-avatar {
		width: min(70vw, 14rem);
	}

	.mizhan-mega__btn {
		min-width: 0;
		width: 100%;
		min-height: 3.25rem;
		font-size: 1rem;
	}

	.mizhan-mega__link-columns,
	.mizhan-mega--shop .mizhan-mega__product-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

}
