@media (max-width: 767px) {
	header.sticky {
		position: relative !important;   /* 覆盖 sticky */
		top: auto !important;
		z-index: auto !important;
	}
	/* 移动端菜单样式（fixed 相对视口，且不再受父级限制） */
	.nav-wrap {
		position: fixed;
		top: 0;
		right: 0;
		width: 280px;
		max-width: 85%;
		height: 100vh;
		background-color: white;
		/*box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15);*/
		z-index: 1000;          /* 现在可以正常生效 */
		transform: translateX(100%);
		transition: transform 0.3s ease-in-out;
		flex-direction: column;
		align-items: flex-start;
		padding: 1.5rem 1rem;
		gap: 0.75rem;
		overflow-y: auto;
		display: flex;
	}
	.nav-wrap.active {
		transform: translateX(0);
	}
	.nav-wrap > a,
	.nav-wrap .relative > span {
		display: block;
		width: 100%;
		padding: 0.75rem 0.8rem;
		font-size: 1rem;
		border-bottom:1px solid rgba(0, 0, 0, 0.03);
	}
	.nav-wrap .relative {
		width: 100%;
		position: static;
	}
	.nav-wrap .relative .child a
	{
		padding: 0.3rem 1.5rem;
		font-size: 0.875rem;
	}
	.nav-wrap .relative .md\:absolute {
		position: static !important;
		box-shadow: none;
		background: rgb(15 82 186 / 0.1);
		width: 100%;
		margin-top: 0.5rem;
		border-radius: 0.75rem;
		display: none;
		padding: 0.25rem 0;
	}
	.nav-wrap .relative .submenu-open {
		display: block !important;
	}
	.nav-wrap .relative .fa-angle-down {
		transition: transform 0.2s;
		float: right;
		margin-top: 0.25rem;
	}
	.nav-wrap .relative .rotate-icon {
		transform: rotate(180deg);
	}
	body.menu-open {
		overflow: hidden;
	}
}

/* 桌面端保持 sticky 原样 */
@media (min-width: 768px) {
	.nav-wrap {
		display: flex;
		flex-direction: row;
		position: static;
		transform: none;
		width: auto;
		height: auto;
		background: transparent;
		box-shadow: none;
		padding: 0;
		overflow: visible;
	}
	.nav-wrap .relative .md\:absolute {
		display: none;
	}
	.nav-wrap .relative:hover .md\:absolute {
		display: block;
	}
	.nav-wrap > a,
	.nav-wrap .relative > span {
		display: inline-block;
		padding: 0.75rem 0.8rem;
		font-size: 1rem;
		border-radius: 0.5rem;
	}
	.nav-wrap .relative .child a
	{
		padding: 0.5rem 1rem;
		font-size: 0.875rem;
	}
}