/* 导航栏基础样式 */
.custom-header {
	background-color: #fff;
	max-height: var(--header-height);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	position: relative;
	z-index: 1000;
}

/* 固定导航样式 */
.custom-header.header-fixed {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	transform: translateY(-100%);
	transition: transform 0.3s ease;
}

.custom-header.header-fixed.header-slide-in {
	transform: translateY(0);
}

/* 观察点样式 */
.header-sentinel {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	opacity: 0;
}

/* 导航栏滑入动画 */
.custom-header.header-fixed.header-slide-in {
	animation: slideInDown var(--animation-duration) ease-out forwards;
}

@keyframes slideInDown {
	from {
		transform: translateY(-100%);
		opacity: 0;
	}

	to {
		transform: translateY(0);
		opacity: 1;
	}
}

.custom-header .navbar {
	padding: 0;
}

.custom-header .container {
	max-width: var(--main-max-width);
	padding: 0 var(--main-padding-l-f);
}

/* Logo样式 */
.custom-header .navbar-brand {
	padding: 0;
	margin-right: max(2.5vw, 20px);
}

.custom-header .navbar-brand img {
	height: 30px;
	width: 180px;
	object-fit: contain;
}

.custom-header .navbar-nav>.nav-item>.nav-link {
	font-size: var(--widget-title-p-3-fs);
}

.nav-link {
	color: var(--theme-p-color) !important;
	padding: calc(0.5rem + 15px) 0 !important;
	font-size: var(--widget-title-p-2-fs);
	display: flex;
	align-items: center;
	gap: 8px;
	line-height: 1;
}


/* 下拉菜单箭头 */
.dropdown-toggle::after {
	content: '';
	display: inline-block;
	width: 6px;
	height: 6px;
	border: none;
	border-right: 1.5px solid var(--theme-p-color);
	border-bottom: 1.5px solid var(--theme-p-color);
	transform: rotate(45deg);
	margin-bottom: 2px;
	display: none;
}

/* 子菜单箭头 */
.submenu-arrow {
	width: 16px;
	height: 16px;
	margin-left: 8px;
	display: flex;
	align-items: center;
	transition: transform .3s ease;
	fill: currentColor;
}

.submenu-arrow svg {
	width: 100%;
	height: 100%;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transform: rotate(-90deg);
	vertical-align: baseline;
	transform-origin: center center;
	transition: transform var(--animation-duration) ease;
}


/* 下拉菜单列表 */
.dropdown-menu {
	list-style: none;
	padding: 0;
	margin: 0;
	background: #fafafa;
	opacity: 0;
	visibility: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
	border-radius: 4px;
}

.dropdown-menu {
	display: block !important;
	opacity: 0;
	visibility: hidden;
	transform: none;
	transition: opacity 0.3s ease;
	border: none;
	box-shadow: none;
	background: transparent;
}

.dropdown-menu a {
	display: flex;
	align-items: center;
	padding: 16px;
	color: var(--theme-p-color);
	text-decoration: none;
	transition: all var(--animation-duration) ease;
	font-size: var(--widget-title-p-3-fs);
	border-radius: 4px;
	white-space: nowrap;
}

/* 悬停效果 */
.dropdown-menu a:hover {
	color: var(--theme-color);
	/* background-color: rgba(0, 117, 201, 0.05); */
}

.dropdown-menu a:hover svg {
	/* svg 图片变色 */
	fill: var(--theme-color);
}

/* 显示下拉菜单 */
.nav-item:hover .dropdown-menu,
.nav-bg:hover .dropdown-menu {
	opacity: 1;
	visibility: visible;
}

.dropdown-menu li:hover>.submenu,
.has-submenu:hover>.submenu {
	transform: translateX(0);
}

/* 有子菜单的项目 */
.has-submenu>a {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

/* 箭头旋转 */
.has-submenu:hover>a .submenu-arrow svg,
.nav-item:hover>a .submenu-arrow {
	transform: rotate(0deg);
}

/* 右侧图标 */
.header-right,
.header-right .header-icons {
	display: flex;
	align-items: center;
	gap: max(1.6vw, 20px);
}

.header-icon {
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	border: none;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.3s;
	grid-gap: 4px;
}

.header-icon span {
	font-size: var(--widget-title-p-4-fs);
	color: var(--theme-p-color);
}

.header-icon:hover {
	background: rgba(255, 255, 255, 0.2);
}

.header-icon:hover span {
	color: var(--theme-color);
}

.header-icon img {
	width: 16px;
	height: 16px;
}

/* 多语言选择器样式 */
#lsft-sub-menu {
	top: calc(100% - 4px) !important;
	width: max-content !important;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
	padding: 8px !important;
	margin-top: 5px !important;
	max-height: 80vh;
	overflow-y: auto;
}

.stylable-list {
	color: var(--theme-p-color) !important;
	background-color: transparent !important;
	font-size: 14px;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	gap: 8px;
}

.stylable-list a,
.stylable-list a svg {
	color: var(--theme-p-color) !important;
	fill: var(--theme-p-color);
}

#lsft-sub-menu li a {
	color: var(--theme-p-color) !important;
}

#lsft-sub-menu li a:hover {
	color: var(--theme-color) !important;
}

/* 响应式调整 */
@media (max-width: 991.98px) {
	.navbar-collapse {
		position: fixed;
		top: var(--header-height);
		left: 0;
		right: 0;
		bottom: 0;
		background: #1B3665;
		padding: 0;
		transform: translateX(-100%);
		transition: transform 0.3s ease;
		overflow-y: auto;
		z-index: 1000;
	}

	.navbar-collapse.show {
		transform: translateX(0);
	}

	.navbar-nav {
		padding: 1rem;
		margin: 0;
		gap: 0 !important;
	}

	.nav-item {
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	}

	.nav-item:last-child {
		border-bottom: none;
	}

	.dropdown-menu-wrapper,
	.submenu {
		position: static;
		box-shadow: none;
		padding: 0;
		transform: none;
	}

	.dropdown-menu {
		padding: 10px 0;
	}

	.submenu {
		padding-left: 20px;
	}

	.has-submenu>a .submenu-arrow svg {
		transform: rotate(90deg);
	}

	.has-submenu.show>a .submenu-arrow svg {
		transform: rotate(-90deg);
	}
}

/* 确保 banner 和导航栏始终可见 */
.carousel,
.primary-menu {
	opacity: 1 !important;
	transform: none !important;
}

/* 搜索相关样式 */
.search-wrapper {
	position: relative;
}

/* 导航栏动画 */
.navbar-nav {
	transition: transform var(--animation-duration) ease,
		opacity var(--animation-duration) ease;
}

.search-wrapper.active~.navbar-nav {
	transform: translateY(-100%);
	opacity: 0;
	pointer-events: none;
}

/* 搜索面板样式 */
.search-panel {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.95);
	z-index: 9999;
	opacity: 0;
	visibility: hidden;
	transition: all var(--animation-duration) ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.search-panel.active {
	opacity: 1;
	visibility: visible;
}

.search-panel-inner {
	width: 100%;
	max-width: 800px;
	padding: 0 20px;
	position: relative;
	transform: translateY(20px);
	opacity: 0;
	transition: all var(--animation-duration) cubic-bezier(0.4, 0, 0.2, 1);
}

.search-panel.active .search-panel-inner {
	transform: translateY(0);
	opacity: 1;
}

.search-input-wrapper {
	position: relative;
	width: 100%;
}

.search-input {
	width: 100%;
	height: 60px;
	background: transparent;
	border: none;
	border-bottom: 2px solid rgba(255, 255, 255, 0.2);
	color: #fff;
	font-size: 24px;
	padding: 0 50px 0 0;
	transition: all var(--animation-duration) ease;
}

.search-input:focus {
	outline: none;
	border-color: var(--theme-color);
}

.search-input::placeholder {
	color: rgba(255, 255, 255, 0.5);
}

.search-submit {
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	padding: 0;
	width: 40px;
	height: 40px;
	color: #fff;
	cursor: pointer;
	opacity: 0.7;
	transition: opacity var(--animation-duration) ease;
}

.search-submit:hover {
	opacity: 1;
}

.search-close {
	position: absolute;
	top: -60px;
	right: 20px;
	width: 40px;
	height: 40px;
	background: none;
	border: none;
	color: #fff;
	cursor: pointer;
	opacity: 0.7;
	transition: opacity var(--animation-duration) ease;
	padding: 0;
}

.search-close:hover {
	opacity: 1;
}

/* Products 导航菜单样式 */
.products-menu,
.solutions-menu {
	padding: 0;
	opacity: 0;
	visibility: hidden;
	height: 0;
	overflow: hidden;
	max-height: 100vh;
	transition: none;
	z-index: 1000;
	position: fixed;
	width: 100%;
	left: 0;
	pointer-events: none;
}

.products-menu.active,
.solutions-menu.active,
.nav-item.active > .products-menu,
.nav-item.active > .solutions-menu {
	opacity: 1;
	visibility: visible;
	height: auto;
	pointer-events: auto;
}

/* 内容容器：左侧分类 + 右侧产品/方案（展开时向下滑入） */
.products-menu>.container,
.solutions-menu > .container {
	max-width: var(--main-max-width);
	margin: 0 auto;
	padding: 0 var(--main-padding-l-f);
	opacity: 0;
	transform: translateY(-20px);
	transition: none;
}

.products-menu.active > .container,
.solutions-menu.active > .container,
.nav-item.active > .products-menu > .container,
.nav-item.active > .solutions-menu > .container {
	opacity: 1;
	transform: translateY(0);
	transition: opacity 0.3s ease, transform 0.3s ease;
	transition-delay: 0.1s;
}

.products-mega-menu-layout {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	background: #fff;
	min-height: 280px;
	--products-pad-y: max(24px, min(40px, 3.5vw));
	--products-pad-l: max(24px, min(60px, 5vw));
	--products-pad-r: max(20px, min(32px, 2.5vw));
	--products-card-w: max(80px, min(100px, 8vw));
	--products-img-size: var(--products-card-w);
	--products-gap-x: max(24px, min(60px, 5vw));
	--products-gap-y: max(20px, min(32px, 2.5vw));
}

/* 左侧一级分类列表（产品 / 解决方案共用） */
.products-mega-menu-layout .products-categories.level-1,
.solutions-mega-menu-layout .solutions-categories.level-1 {
	background: #fff;
	border-right: 1px solid #e8eef3;
	padding: 0;
}

.products-mega-menu-layout .products-categories-inner,
.solutions-mega-menu-layout .solutions-categories-inner {
	max-height: 420px;
	overflow-y: auto;
}

.products-mega-menu-layout .products-categories .nav-link,
.solutions-mega-menu-layout .solutions-categories .nav-link {
	display: flex;
	align-items: center;
	padding: 12px 20px !important;
	margin-bottom: 0;
	border-radius: 0;
	gap: 10px;
	color: #333 !important;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.2;
	text-decoration: none;
	background-color: transparent;
	opacity: 0;
	transform: none;
	position: relative;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.products-mega-menu-layout .products-categories .nav-link:hover,
.solutions-mega-menu-layout .solutions-categories .nav-link:hover {
	background-color: #f5f9fc;
	color: var(--theme-color) !important;
}

.products-mega-menu-layout .products-categories .nav-link.active,
.solutions-mega-menu-layout .solutions-categories .nav-link.active {
	background-color: #e8f4fb;
	color: var(--theme-color) !important;
	font-weight: 500;
}

.products-mega-menu-layout .products-categories .nav-link:before,
.solutions-mega-menu-layout .solutions-categories .nav-link:before {
	display: none;
}

.products-menu.active .products-mega-menu-layout .products-categories .nav-link,
.solutions-menu.active .solutions-mega-menu-layout .solutions-categories .nav-link {
	opacity: 1;
	transition: background-color 0.2s ease, color 0.2s ease;
	transition-delay: calc(var(--animation-order) * 0.04s);
}

.products-mega-menu-layout .category-icon,
.solutions-mega-menu-layout .category-icon {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #999;
	transform: none;
}

.products-mega-menu-layout .products-categories .nav-link:hover .category-icon,
.products-mega-menu-layout .products-categories .nav-link.active .category-icon,
.solutions-mega-menu-layout .solutions-categories .nav-link:hover .category-icon,
.solutions-mega-menu-layout .solutions-categories .nav-link.active .category-icon {
	color: var(--theme-color);
	transform: none;
}

.products-mega-menu-layout .category-icon img,
.solutions-mega-menu-layout .category-icon img {
	display: none;
}

.products-mega-menu-layout .category-name,
.solutions-mega-menu-layout .category-name {
	flex: 1;
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.products-mega-menu-layout .category-chevron,
.solutions-mega-menu-layout .category-chevron {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	color: #bbb;
	margin-left: auto;
}

.products-mega-menu-layout .products-categories .nav-link:hover .category-chevron,
.products-mega-menu-layout .products-categories .nav-link.active .category-chevron,
.solutions-mega-menu-layout .solutions-categories .nav-link:hover .category-chevron,
.solutions-mega-menu-layout .solutions-categories .nav-link.active .category-chevron {
	color: var(--theme-color);
}

/* 右侧产品容器 */
.products-mega-menu-layout .products-container {
	padding: var(--products-pad-y) var(--products-pad-r) var(--products-pad-y) var(--products-pad-l);
	background: #fff;
	position: relative;
}

.products-mega-menu-layout .products-grid {
	display: none;
	grid-template-columns: repeat(auto-fill, var(--products-card-w));
	justify-content: flex-start;
	gap: var(--products-gap-y) var(--products-gap-x);
	opacity: 0;
	transform: none;
	transition: opacity 0.25s ease;
}

.products-mega-menu-layout .products-grid.active {
	display: grid;
	opacity: 1;
}

.products-mega-menu-layout .mega-menu-product-card {
	width: var(--products-card-w);
	max-width: 100%;
	min-width: 0;
}

.products-mega-menu-layout .mega-menu-product-card__link {
	display: block;
	width: 100%;
	text-decoration: none;
	color: inherit;
}

.products-mega-menu-layout .mega-menu-product-card__thumb {
	width: var(--products-img-size);
	height: var(--products-img-size);
	max-width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: max(6px, min(8px, 0.8vw));
	overflow: hidden;
}

.products-mega-menu-layout .mega-menu-product-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.products-mega-menu-layout .mega-menu-product-card__title {
	margin: 0 0 max(4px, min(6px, 0.6vw));
	font-size: max(11px, min(14px, 1.1vw));
	font-weight: 600;
	line-height: 1.35;
	color: #1c1c1c;
	text-align: left;
	text-transform: none;
	word-break: break-word;
	transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.products-mega-menu-layout .mega-menu-product-card__link:hover .mega-menu-product-card__title {
	color: var(--theme-color);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.products-mega-menu-layout .mega-menu-product-card__desc {
	margin: 0;
	font-size: max(10px, min(12px, 1vw));
	font-weight: 400;
	line-height: 1.5;
	color: #999;
	text-align: left;
	word-break: break-word;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}

.products-mega-menu-layout .no-products {
	grid-column: 1 / -1;
	text-align: center;
	padding: 40px 20px;
	color: #999;
	font-size: 14px;
}
/* 移动端适配 */
@media (max-width: 991px) {
	.products-menu {
		position: static;
		padding: 0;
		background: transparent;
		box-shadow: none;
	}

	.products-menu>.container {
		padding: 0 var(--main-padding-l-f);
	}

	.products-mega-menu-layout {
		grid-template-columns: 1fr;
	}

	.products-mega-menu-layout .products-categories.level-1,
	.solutions-mega-menu-layout .solutions-categories.level-1 {
		background: #fff;
	}

	.products-mega-menu-layout .products-container {
		padding: max(16px, min(24px, 4vw)) max(16px, min(20px, 3vw));
	}

	.products-mega-menu-layout .products-grid {
		gap: max(16px, min(20px, 3vw)) max(24px, min(40px, 4vw));
	}
}

/* 无产品提示 */
.no-products {
	grid-column: 1 / -1;
	text-align: center;
	padding: 20px;
	color: #666;
}

/* 调整固定导航时的产品菜单位置 */
.header-fixed .products-menu {
	top: 100%;
}

.solutions-mega-menu-layout {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	background: #fff;
	min-height: 280px;
	--solutions-pad-y: max(24px, min(40px, 3.5vw));
	--solutions-pad-l: max(24px, min(60px, 5vw));
	--solutions-pad-r: max(20px, min(32px, 2.5vw));
	--solutions-img-w: max(120px, min(180px, 14vw));
	--solutions-img-h: max(80px, min(120px, calc(var(--solutions-img-w) * 2 / 3)));
	--solutions-gap-x: max(20px, min(40px, 3vw));
	--solutions-gap-y: max(20px, min(32px, 2.5vw));
}

.solutions-mega-menu-layout .solutions-container {
	padding: var(--solutions-pad-y) var(--solutions-pad-r) var(--solutions-pad-y) var(--solutions-pad-l);
	background: #fff;
	position: relative;
}

.solutions-mega-menu-layout .solutions-grid {
	display: none;
	grid-template-columns: repeat(auto-fill, var(--solutions-img-w));
	justify-content: flex-start;
	gap: var(--solutions-gap-y) var(--solutions-gap-x);
	opacity: 0;
	transform: none;
	transition: opacity 0.25s ease;
}

.solutions-mega-menu-layout .solutions-grid.active {
	display: grid;
	opacity: 1;
}

.solutions-mega-menu-layout .mega-menu-solution-card {
	min-width: 0;
}

.solutions-mega-menu-layout .mega-menu-solution-card__link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.solutions-mega-menu-layout .mega-menu-solution-card__image {
	width: var(--solutions-img-w);
	max-width: 100%;
	border-radius: 6px;
	overflow: hidden;
	margin-bottom: max(8px, min(12px, 1vw));
	background: #f5f5f5;
}

.solutions-mega-menu-layout .mega-menu-solution-card__image img,
.solutions-mega-menu-layout .mega-menu-solution-card__image .thumbnail-placeholder {
	display: block;
	width: var(--solutions-img-w);
	max-width: 100%;
	height: var(--solutions-img-h);
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.solutions-mega-menu-layout .mega-menu-solution-card__image .thumbnail-placeholder {
	min-height: var(--solutions-img-h);
	background: #eef2f6;
}

.solutions-mega-menu-layout .mega-menu-solution-card__desc {
	margin: 0 0 4px;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.6;
	color: #666;
	text-align: left;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.solutions-mega-menu-layout .mega-menu-solution-card__title {
	margin: 0;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.5;
	color: #999;
	text-align: left;
}

.solutions-mega-menu-layout .mega-menu-solution-card__link:hover .mega-menu-solution-card__desc,
.solutions-mega-menu-layout .mega-menu-solution-card__link:hover .mega-menu-solution-card__title {
	color: var(--theme-color);
}

.solutions-mega-menu-layout .no-products {
	grid-column: 1 / -1;
	text-align: center;
	padding: 40px 20px;
	color: #999;
	font-size: 14px;
}

/* 移动端适配 */
@media (max-width: 991px) {
    .search-wrapper.active .search-panel {
		width: calc(100vw - 120px);
	}

	.custom-header .navbar-brand {
		margin-right: 0;
	}
	.solutions-menu {
		position: static;
		padding: 0;
		background: transparent;
		box-shadow: none;
	}

	.solutions-mega-menu-layout {
		grid-template-columns: 1fr;
	}

	.solutions-mega-menu-layout .solutions-container {
		padding: max(16px, min(24px, 4vw)) max(16px, min(20px, 3vw));
	}

	.solutions-mega-menu-layout .solutions-grid {
		gap: max(16px, min(20px, 3vw)) max(16px, min(24px, 3vw));
	}
	.custom-header .navbar-brand img {
		width: 150px;
	}
	.custom-header .container {
	    max-height: none;
	    padding: 10px var(--main-padding-l-f);
	}
}

/* 分类链接展开动画 */
.products-mega-menu-layout .products-categories.level-1 .nav-link,
.solutions-mega-menu-layout .solutions-categories.level-1 .nav-link {
	transition: background-color 0.2s ease, color 0.2s ease;
	transition-delay: calc(var(--animation-order) * 0.04s);
}

.products-menu.active .products-mega-menu-layout .products-categories.level-1 .nav-link,
.solutions-menu.active .solutions-mega-menu-layout .solutions-categories.level-1 .nav-link {
	opacity: 1;
}

.dropdown:hover .dropdown-menu {
	opacity: 1;
	visibility: visible;
	transform: scaleY(1);
}

/* 下拉菜单项逐个显示动画 */
.dropdown-menu .dropdown-item {
	opacity: 0;
	transform: translateX(-10px);
	transition: all 0.3s ease;
	transition-delay: calc(var(--item-index) * 0.05s);
}

.dropdown:hover .dropdown-menu .dropdown-item {
	opacity: 1;
	transform: translateX(0);
}

/* 导航菜单基础样式 */
.custom-header .nav-item {
	position: relative;
	padding: 0 max(1vw, 10px);
}

/* 普通下拉菜单样式 */
.nav-item .sub-menu {
	z-index: 2;
	padding: max(1vw, 10px) 0;
}

.nav-item .sub-menu .nav-item {
	padding: 0 max(1vw, 10px) 0 0;
}

/* 显示下拉菜单 */
.nav-item:hover .sub-menu,
.nav-item.active .sub-menu {
	opacity: 1;
	visibility: visible;
}

.sub-menu li {
	padding: 0;
}

/* 导航背景：根据内容高度撑开 */
.nav-bg {
	--nav-height: 0px;
	background: #fff;
	height: var(--nav-height);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	pointer-events: none;
	top: var(--header-height);
}

.nav-bg.transitioning {
	pointer-events: auto;
}

.nav-bg-closing {
	transition: height 0.3s ease;
}

.sub-menu {
	z-index: 2;
}

/* 子菜单容器 */
.submenu-wrapper {
	position: fixed;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease;
	z-index: 2;
	display: flex;
	justify-content: center;
}

/* 二级子菜单 */
.submenu {
	position: absolute;
	top: 0;
	left: 100%;
	min-width: 200px;
	opacity: 0;
	visibility: hidden;
	border-radius: 4px;
	transition: opacity 0.3s ease;
}

/* 显示子菜单 */
.nav-item:hover > .submenu-wrapper,
.nav-item.active > .submenu-wrapper,
.has-submenu:hover > .submenu {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

/* 子菜单项样式 */
.sub-menu,
.submenu {
	list-style: none;
	padding: 0;
	margin: 0;
	border-radius: 4px;
}

.sub-menu li,
.submenu li {
	padding: 0;
}

.sub-menu a,
.submenu a {
	display: flex;
	padding: 12px 0;
	color: var(--theme-p-color);
	text-decoration: none;
	transition: all 0.3s ease;
	white-space: nowrap;
	align-items: center;
}

.submenu a img,
.sub-menu a img {
	width: 16px;
	height: 16px;
	margin-right: 10px;
}

.sub-menu a:hover,
.submenu a:hover {
	color: var(--theme-color);
}

.sub-menu a:hover img,
.submenu a:hover img {
	filter: invert(42%) sepia(99%) saturate(1241%) hue-rotate(186deg) brightness(96%) contrast(101%);
}

/* 箭头样式 */
.submenu-arrow {
	margin-left: 8px;
	display: inline-flex;
	align-items: center;
}

.submenu-arrow svg {
	width: 16px;
	height: 16px;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform 0.3s ease;
}

.has-submenu:hover>a .submenu-arrow svg {
	transform: rotate(0);
}

/* Beacon 内容覆盖层样式 */
.beacon-content {
	position: absolute;
	left: max(16vw, 300px);
	right: 0;
	top: 0;
	bottom: 0;
	z-index: 10;
	opacity: 0;
	visibility: hidden;
	transition: all var(--animation-duration) ease;
}

.beacon-content.active {
	opacity: 1;
	visibility: visible;
}

.beacon-wrapper {
	padding: max(1.2vw, 20px) 0;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	position: relative;
	overflow: hidden;
	border-radius: 8px;
}

.beacon-wrapper img {
	overflow: hidden;
}

.beacon-wrapper .beacon-image-wrapper {
	border-radius: 8px;
}

.beacon-wrapper .beacon-image-wrapper::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.4);
}

.beacon-learn-more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: max(0.7vw, 10px) max(1.3vw, 20px);
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
	border-radius: 24px;
	text-decoration: none;
	font-size: var(--widget-title-p-1-fs);
	transition: all var(--animation-duration) ease;
	margin-top: auto;
	font-weight: 700;
	z-index: 1;
	line-height: 1;
}

/* 汉堡菜单按钮 */
.mobile-menu-toggle {
	width: 20px;
	height: 16px;
	position: relative;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
}

.mobile-menu-toggle span {
	display: block;
	width: 100%;
	height: 2px;
	background: var(--theme-p-color);
	position: absolute;
	left: 0;
	transition: all 0.3s ease;
}

.mobile-menu-toggle span:nth-child(1) {
	top: 0;
}

.mobile-menu-toggle span:nth-child(2) {
	top: 50%;
	transform: translateY(-50%);
}

.mobile-menu-toggle span:nth-child(3) {
	bottom: 0;
}

/* 汉堡菜单激活状态 */
.mobile-menu-toggle.active span:nth-child(1) {
	transform: rotate(45deg);
	top: 50%;
}

.mobile-menu-toggle.active span:nth-child(2) {
	opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
	transform: rotate(-45deg);
	bottom: 50%;
}

/* 侧边导航菜单 */
.mobile-menu {
	position: fixed;
	top: 0;
	right: -100%;
	width: 80%;
	max-width: 400px;
	height: 100vh;
	background: #fff;
	transition: right var(--animation-duration) ease;
	z-index: 1001;
}

.mobile-menu.active {
	right: 0;
}

.mobile-menu-inner {
	height: 100%;
	display: flex;
	flex-direction: column;
}

.mobile-menu-header {
	padding: 20px;
	border-bottom: 1px solid #eee;
}

.mobile-menu-close {
	background: none;
	border: none;
	font-size: 24px;
	color: var(--theme-p-color);
	cursor: pointer;
}

.mobile-menu-content {
	flex: 1;
	overflow-y: auto;
}

.mobile-menu-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.mobile-menu-list li {
	margin-bottom: 15px;
}

.mobile-menu-list a {
	color: var(--theme-p-color);
	text-decoration: none;
	font-size: 16px;
	transition: color 0.3s ease;
}

.mobile-menu-list a:hover {
	color: var(--theme-color);
}

/* 遮罩层 */
.mobile-menu-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	background: rgba(0, 0, 0, 0.5);
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
	z-index: 1000;
}

.mobile-menu-overlay.active {
	opacity: 1;
	visibility: visible;
}

/* 移动端菜单手风琴样式 */
.mobile-menu .accordion {
	--bs-accordion-btn-padding-y: 1rem;
	--bs-accordion-btn-padding-x: 1.25rem;
	--bs-accordion-active-color: var(--theme-color);
	--bs-accordion-active-bg: rgba(0, 117, 201, 0.05);
	--bs-accordion-btn-focus-box-shadow: none;
}

.mobile-menu .accordion-item {
	border: none;
	border-bottom: 1px solid #eee;
}

.mobile-menu .accordion-button,
.mobile-menu .accordion-link {
	padding: var(--bs-accordion-btn-padding-y) var(--bs-accordion-btn-padding-x);
	font-size: var(--widget-title-p-2-fs);
	font-weight: 500;
	color: var(--theme-p-color);
	background: none;
}

.mobile-menu .accordion-link {
	border-bottom: 1px solid #eee;
	display: flex;
	align-items: center;
	gap: 10px;
}

.mobile-menu .accordion-link:active {
	color: var(--theme-color);
	background-color: rgba(0, 117, 201, 0.05);
}

.mobile-menu .accordion-button:not(.collapsed) {
	color: var(--bs-accordion-active-color);
	background-color: var(--bs-accordion-active-bg);
	box-shadow: none;
}

.mobile-menu .accordion-button::after {
	width: 1rem;
	height: 1rem;
	background-size: 1rem;
}

.mobile-menu .accordion-body {
	padding: 0.5rem var(--bs-accordion-btn-padding-x);
}

/* 移动端产品菜单：分类 → 产品 */
.mobile-products-menu {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.mobile-product-category {
	padding: 0.75rem 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.mobile-product-category:last-child {
	border-bottom: none;
}

.mobile-product-category-title {
	display: block;
	font-size: 15px;
	font-weight: 600;
	color: #1c1c1c;
	text-decoration: none;
	padding: 0.25rem 0 0.5rem;
}

.mobile-product-category-title:hover {
	color: var(--theme-color);
}

.mobile-product-list {
	padding-left: 0.75rem;
	margin: 0;
}

.mobile-product-list a {
	font-size: 14px;
	color: #555;
}

.mobile-product-view-all a {
	color: var(--theme-color);
	font-size: 13px;
}

/* 菜单列表样式 */
.mobile-menu-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.mobile-menu-list li {
	margin: 0;
}

.mobile-menu-list a {
	display: block;
	padding: 0.75rem 1rem;
	color: var(--theme-p-color);
	text-decoration: none;
	font-size: var(--widget-title-p-3-fs);
	transition: all var(--animation-duration) ease;
}

.mobile-menu-list a:hover,
.mobile-menu-list a:active {
	color: var(--theme-color);
	background-color: rgba(0, 117, 201, 0.05);
}

/* 动画优化 */
.accordion-button {
	transition: all var(--animation-duration) ease;
}

.accordion-collapse {
	transition: all var(--animation-duration) ease;
}

/* 移动端菜单样式 */
.mobile-menu .accordion-item {
	border: none;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-menu .accordion-button {
	padding: 1rem 1.25rem;
	font-size: var(--widget-title-p-2-fs);
	font-weight: 500;
	color: var(--theme-p-color);
	background: none;
}

.mobile-menu .accordion-button:not(.collapsed) {
	color: var(--theme-color);
	background-color: rgba(0, 117, 201, 0.05);
	box-shadow: none;
}

.mobile-menu .accordion-button::after {
	width: 1rem;
	height: 1rem;
	background-size: 1rem;
}

.mobile-menu .accordion-body {
	padding: 0;
}

/* 菜单链接样式 */
.mobile-menu-link {
	display: block;
	padding: 0.75rem 1.25rem;
	color: var(--theme-p-color);
	text-decoration: none;
	font-size: var(--widget-title-p-3-fs);
	transition: all var(--animation-duration) ease;
}

.mobile-menu-link:hover {
	color: var(--theme-color);
	background-color: rgba(0, 117, 201, 0.05);
}

.mobile-submenu .mobile-menu-link {
	font-size: calc(var(--widget-title-p-3-fs) * 0.95);
}

/* 动画优化 */
.accordion-button,
.accordion-collapse {
	transition: all var(--animation-duration) ease;
}