/* ===== LCD Touchscreen Header Navigation Styles ===== */

/* Header Container */
.lcd-header {
	position: relative;
	background: #ffffff;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
	z-index: 1000;
}

.lcd-header__top {
	border-bottom: 1px solid #e5e5e5;
}

.lcd-header__container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 70px;
}

/* Logo Section */
.lcd-header__logo {
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.lcd-logo {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: #ff0040;
	font-weight: 600;
	font-size: 20px;
	letter-spacing: 0.5px;
	margin-bottom: 2px;
}

.lcd-logo__icon {
	width: 40px;
	height: 40px;
	background: #ff0040;
	clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.lcd-logo__icon::before {
	content: 'Q';
	color: #ffffff;
	font-weight: bold;
	font-size: 20px;
}

.lcd-logo__text {
	font-family: 'Arial', sans-serif;
	font-weight: 700;
}

.lcd-logo__tagline {
	font-size: 11px;
	font-weight: 400;
	color: #666666;
	letter-spacing: 0.3px;
	text-transform: uppercase;
	margin-left: 52px;
	margin-top: -2px;
	font-family: 'Arial', sans-serif;
}

/* Main Navigation */
.lcd-header-menu {
	flex: 1;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 30px;
}

.lcd-hm-ul {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 30px;
	align-items: center;
}

.lcd-hm-item {
	position: relative;
}

.lcd-hm-link {
	display: flex;
	align-items: center;
	gap: 6px;
	color: #333333;
	text-decoration: none;
	font-size: 16px;
	font-weight: 500;
	font-family: 'Arial', sans-serif;
	transition: color 0.3s ease;
	padding: 8px 0;
}

.lcd-hm-link:hover {
	color: #ff0040;
}

.lcd-hm-item.active .lcd-hm-link,
.lcd-hm-item.is-active .lcd-hm-link {
	color: #ff0040;
}

.lcd-hm-item__arrow {
	display: none;
}

.lcd-hm-item::before {
	content: "";
	position: absolute;
	top: 100%;
	right: -15px;
	left: -15px;
	height: 13px;
	visibility: hidden;
	opacity: 0;
	transition: all 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.lcd-hm-item::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-bottom: 5px solid #ff0040;
	visibility: hidden;
	opacity: 0;
	transition: all 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
}

/* 如果使用背景图片，取消注释下面的代码并注释上面的CSS三角形代码 */
/* .lcd-hm-item::after {
	width: 28px;
	height: 8px;
	margin-left: -14px;
	margin-top: 5px;
	background: no-repeat url(../assets/images/hm_bg.png) top center;
	background-size: 100% auto;
	border: none;
} */

.lcd-hm-item.active::before,
.lcd-hm-item.is-active::before {
	visibility: visible;
	opacity: 1;
}

.lcd-hm-item.active::after,
.lcd-hm-item.is-active::after {
	visibility: visible;
	opacity: 1;
}

/* Utility Navigation */
.lcd-header__utils {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-shrink: 0;
}

.lcd-utils__item {
	display: flex;
	align-items: center;
	gap: 6px;
	color: #666666;
	text-decoration: none;
	font-size: 14px;
	font-family: 'Arial', sans-serif;
	transition: color 0.3s ease;
}

.lcd-utils__item:hover {
	color: #0066cc;
}

.lcd-icon-search,
.lcd-icon-user,
.lcd-icon-envelope,
.lcd-icon-globe {
	width: 18px;
	height: 18px;
	display: inline-block;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}

.lcd-icon-search::before {
	content: '🔍';
	font-size: 18px;
}

.lcd-icon-user::before {
	content: '👤';
	font-size: 18px;
}

.lcd-icon-envelope::before {
	content: '✉';
	font-size: 16px;
}

.lcd-icon-globe::before {
	content: '🌐';
	font-size: 18px;
}

.lcd-btn-quote {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #ff0040;
	color: #ffffff;
	padding: 12px 28px;
	border-radius: 8px;
	text-decoration: none;
	font-size: 15px;
	font-weight: 600;
	font-family: 'Arial', sans-serif;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(255, 0, 64, 0.3);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.lcd-btn-quote:hover {
	background: #e6003a;
	box-shadow: 0 4px 12px rgba(255, 0, 64, 0.4);
	transform: translateY(-1px);
}

.lcd-lang-select {
	display: flex;
	align-items: center;
	gap: 6px;
	color: #666666;
	font-size: 14px;
	font-family: 'Arial', sans-serif;
	cursor: pointer;
	position: relative;
}

.lcd-lang-arrow {
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 4px solid #666666;
	display: inline-block;
}

/* Dropdown Menu */
.lcd-dropdown-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: #ffffff;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	border-top: 1px solid #e5e5e5;
	z-index: 999;
	animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.lcd-dropdown-menu.is-open {
	display: block;
}

.lcd-dropdown__container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 40px 20px;
	display: flex;
	gap: 60px;
}

.lcd-dropdown__container--cards {
	padding: 40px 20px;
	gap: 0;
}

/* Left Section: Description */
.lcd-dropdown__left {
	flex: 0 0 300px;
}

.lcd-dropdown__intro {
	padding-right: 20px;
}

.lcd-dropdown__title {
	font-size: 32px;
	font-weight: 700;
	color: #333333;
	margin: 0 0 16px 0;
	font-family: 'Arial', sans-serif;
}

.lcd-dropdown__desc {
	font-size: 16px;
	color: #666666;
	line-height: 1.6;
	margin: 0 0 24px 0;
	font-family: 'Arial', sans-serif;
}

.lcd-dropdown__learn-more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #ff0040;
	text-decoration: none;
	font-size: 16px;
	font-weight: 500;
	font-family: 'Arial', sans-serif;
	transition: color 0.3s ease;
}

.lcd-dropdown__learn-more:hover {
	color: #e6003a;
}

.lcd-arrow-right {
	font-size: 14px;
}

/* Right Section: Application Grid */
.lcd-dropdown__right {
	flex: 1;
}

/* Dropdown Cards Layout (for Insights, Support, About) */
.lcd-dropdown__container--cards {
	flex-direction: column;
}

.lcd-dropdown__cards-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1px;
	width: 100%;
	background: #e5e5e5;
}

.lcd-dropdown__card {
	padding: 30px 40px;
	display: block;
	text-decoration: none;
	transition: all 0.3s ease;
	border-radius: 0;
	background: #ffffff;
	margin: 0;
	height: 100%;
	box-sizing: border-box;
	min-height: 120px;
}

.lcd-dropdown__card:hover {
	background: #ff0040;
	opacity: 1;
}

.lcd-dropdown__card-title {
	font-size: 18px;
	font-weight: 700;
	color: #333333;
	margin: 0 0 8px 0;
	font-family: 'Arial', sans-serif;
	line-height: 1.4;
	transition: color 0.3s ease;
}

.lcd-dropdown__card:hover .lcd-dropdown__card-title {
	color: #ffffff;
}

.lcd-dropdown__card-desc {
	font-size: 14px;
	color: #666666;
	line-height: 1.6;
	margin: 0 0 12px 0;
	font-family: 'Arial', sans-serif;
	transition: color 0.3s ease;
}

.lcd-dropdown__card:hover .lcd-dropdown__card-desc {
	color: #ffffff;
}

.lcd-dropdown__card-sublinks {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 8px;
}

.lcd-dropdown__card-sublinks a {
	color: #666666;
	text-decoration: none;
	font-size: 14px;
	font-family: 'Arial', sans-serif;
	transition: color 0.3s ease;
}

.lcd-dropdown__card:hover .lcd-dropdown__card-sublinks a {
	color: #ffffff;
}

.lcd-dropdown__card-sublinks a:hover {
	color: rgba(255, 255, 255, 0.8);
}

.lcd-dropdown__card:hover .lcd-dropdown__separator {
	color: rgba(255, 255, 255, 0.6);
}

.lcd-dropdown__separator {
	color: #999999;
	font-size: 12px;
	margin: 0 2px;
}

.lcd-app-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.lcd-app-item {
	position: relative;
}

.lcd-app-link {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 30px 20px;
	background: #ffffff;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	text-decoration: none;
	transition: all 0.3s ease;
	height: 100%;
	min-height: 140px;
}

.lcd-app-link:hover {
	border-color: #ff0040;
	box-shadow: 0 4px 12px rgba(255, 0, 64, 0.15);
	transform: translateY(-2px);
}

.lcd-app-item.active .lcd-app-link,
.lcd-app-item.is-active .lcd-app-link {
	background: #ff0040;
	border-color: #ff0040;
}

.lcd-app-item.active .lcd-app-label,
.lcd-app-item.is-active .lcd-app-label {
	color: #ffffff;
}

.lcd-app-icon {
	width: 60px;
	height: 60px;
	margin-bottom: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.lcd-app-icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	filter: brightness(0) saturate(100%) invert(0);
	transition: filter 0.3s ease;
}

.lcd-app-link:hover .lcd-app-icon img {
	filter: brightness(0) saturate(100%) invert(8%) sepia(100%) saturate(7490%) hue-rotate(350deg) brightness(101%) contrast(101%);
}

.lcd-app-item.active .lcd-app-icon img,
.lcd-app-item.is-active .lcd-app-icon img {
	filter: brightness(0) invert(1);
}

.lcd-app-label {
	font-size: 16px;
	font-weight: 500;
	color: #333333;
	text-align: center;
	font-family: 'Arial', sans-serif;
	transition: color 0.3s ease;
}

/* 桌面端样式：确保下拉菜单在hover时显示 */
@media (min-width: 1025px) {
	.lcd-dropdown-menu {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: #ffffff;
		box-shadow: 0 8px 16px rgba(0,0,0,0.1);
		z-index: 999;
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.3s ease, visibility 0.3s ease;
	}

	.lcd-dropdown-menu.is-open {
		display: block !important;
		opacity: 1 !important;
		visibility: visible !important;
	}
	
	/* 覆盖可能存在的display: none规则 */
	.lcd-header-menu .lcd-dropdown-menu.is-open,
	.lcd-header .lcd-dropdown-menu.is-open,
	body .lcd-header .lcd-dropdown-menu.is-open,
	html body .lcd-header .lcd-dropdown-menu.is-open {
		display: block !important;
		opacity: 1 !important;
		visibility: visible !important;
	}
}

/* Responsive Design */
@media (max-width: 1200px) {
	.lcd-app-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 992px) {
	.lcd-header__container {
		flex-wrap: wrap;
		height: auto;
		padding: 15px 20px;
	}
	
	.lcd-header-menu {
		order: 3;
		width: 100%;
		justify-content: flex-start;
		margin-top: 15px;
	}
	
	.lcd-hm-ul {
		flex-wrap: wrap;
		gap: 15px;
	}
	
	.lcd-dropdown__container {
		flex-direction: column;
		gap: 30px;
	}
	
	.lcd-dropdown__left {
		flex: 1;
	}
	
	.lcd-dropdown__cards-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px 30px;
	}
	
	.lcd-app-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.lcd-header__logo {
		align-items: center;
	}
	
	.lcd-logo__tagline {
		margin-left: 0;
		font-size: 10px;
		text-align: center;
	}
	
	.lcd-header__utils {
		gap: 10px;
	}
	
	.lcd-utils__text {
		display: none;
	}
	
	.lcd-lang-text {
		display: none;
	}
	
	.lcd-app-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 15px;
	}
	
	.lcd-app-link {
		padding: 20px 15px;
		min-height: 120px;
	}
	
	.lcd-app-icon {
		width: 50px;
		height: 50px;
		margin-bottom: 12px;
	}
}

/* Utility Classes */
.fw-500 {
	font-weight: 500;
}

.fz-16 {
	font-size: 16px;
}

.dh {
	display: inline-block;
}

.icon-next {
	display: inline-block;
}
