/* 产品介绍下拉菜单样式 */

/* 基础下拉菜单样式 */
.nav-dropdown {
	position: relative;
}

.nav-dropdown > a {
	display: flex;
	align-items: center;
	gap: 8px;
}

.dropdown-icon {
	font-size: 12px;
	transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-icon,
.nav-dropdown.active .dropdown-icon {
	transform: rotate(180deg);
}

/* 下拉菜单容器 */
.nav-dropdown-menu {
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	width: 800px;
	background: white;
	border-radius: 8px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
	border: 1px solid #e5e7eb;
	opacity: 0;
	visibility: hidden;
	transform: translateX(-50%) translateY(-10px);
	transition: all 0.3s ease;
	z-index: 1000;
	margin-top: 10px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.active .nav-dropdown-menu {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
}

/* 下拉菜单内容容器 */
.dropdown-container {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0;
	padding: 24px;
}

/* 每列样式 */
.dropdown-column {
	padding: 0 16px;
	border-right: 1px solid #f3f4f6;
}

.dropdown-column:last-child {
	border-right: none;
}

/* 列标题样式 */
.dropdown-title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 16px;
	font-weight: bold;
	color: #0D234D;
	margin-bottom: 12px;
	padding-bottom: 8px;
	border-bottom: 2px solid #f0f0f0;
}

.dropdown-title i {
	color: #FE5B00;
	font-size: 14px;
}

/* 子菜单样式 */
.dropdown-submenu {
	list-style: none;
	padding: 0;
	margin: 0;
}

.dropdown-submenu li {
	margin-bottom: 8px;
}

.dropdown-submenu a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	color: #666;
	text-decoration: none;
	border-radius: 4px;
	transition: all 0.3s ease;
	font-size: 14px;
}

.dropdown-submenu a:before {
	content: "•";
	color: #FE5B00;
	font-weight: bold;
	font-size: 16px;
}

.dropdown-submenu a:hover {
	background-color: #f8f9fa;
	color: #FE5B00;
	transform: translateX(4px);
}

.dropdown-submenu a.active {
	background-color: #FE5B00;
	color: white;
}

.dropdown-submenu a.active:before {
	color: white;
}

/* 移动端样式 */
@media (max-width: 768px) {
	.nav-dropdown-menu {
		position: static;
		width: 100%;
		transform: none;
		margin-top: 0;
		border-radius: 0;
		box-shadow: none;
		border: none;
		border-top: 1px solid #e5e7eb;
		opacity: 1;
		visibility: visible;
		display: none;
	}

	.nav-dropdown.active .nav-dropdown-menu {
		display: block;
	}

	.dropdown-container {
		grid-template-columns: 1fr;
		gap: 16px;
		padding: 16px;
	}

	.dropdown-column {
		padding: 0;
		border-right: none;
		border-bottom: 1px solid #f3f4f6;
		padding-bottom: 16px;
	}

	.dropdown-column:last-child {
		border-bottom: none;
		padding-bottom: 0;
	}

	.dropdown-title {
		font-size: 14px;
		margin-bottom: 12px;
	}

	.dropdown-submenu a {
		padding: 6px 8px;
		font-size: 13px;
	}
}

/* 移动端手风琴样式 */
.mobile-dropdown {
	display: none;
}

@media (max-width: 768px) {
	.nav-dropdown {
		display: none;
	}

	.mobile-dropdown {
		display: block;
	}

	.mobile-dropdown-menu {
		display: none;
		background: #f8f9fa;
		border-top: 1px solid #e5e7eb;
		padding: 16px;
	}

	.mobile-dropdown.active .mobile-dropdown-menu {
		display: block;
	}

	.mobile-dropdown-section {
		margin-bottom: 16px;
	}

	.mobile-dropdown-section:last-child {
		margin-bottom: 0;
	}

	.mobile-dropdown-section h4 {
		font-size: 14px;
		font-weight: 600;
		color: #0d234d;
		margin-bottom: 8px;
		padding-bottom: 4px;
		border-bottom: 1px solid #fe5b00;
	}

	.mobile-dropdown-section ul {
		list-style: none;
		padding: 0;
		margin: 0;
	}

	.mobile-dropdown-section li {
		margin-bottom: 4px;
	}

	.mobile-dropdown-section a {
		display: block;
		padding: 6px 12px;
		color: #4b5563;
		text-decoration: none;
		font-size: 13px;
		border-radius: 4px;
		transition: all 0.2s ease;
	}

	.mobile-dropdown-section a:hover {
		background-color: #fe5b00;
		color: white;
	}
}

/* 防止下拉菜单被其他元素遮挡 */
.nav-dropdown-menu {
	z-index: 9999;
}

/* 箭头指示器 */
.nav-dropdown-menu:before {
	content: '';
	position: absolute;
	top: -8px;
	left: 50%;
	transform: translateX(-50%);
	width: 0;
	height: 0;
	border-left: 8px solid transparent;
	border-right: 8px solid transparent;
	border-bottom: 8px solid white;
}

.nav-dropdown-menu:after {
	content: '';
	position: absolute;
	top: -9px;
	left: 50%;
	transform: translateX(-50%);
	width: 0;
	height: 0;
	border-left: 9px solid transparent;
	border-right: 9px solid transparent;
	border-bottom: 9px solid #e5e7eb;
}