/* ========== Circle公用样式 ========== */
.lang-arrow-circle {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	background: var(--brand-blue);
	color: #fff;
}

.lang-arrow-circle svg {
	width: 18px;
	height: 18px;
}

/* ========== Top Bar ========== */
.top-bar {
	background: #fff;
	padding: 14px 0;
}

.top-bar-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 1280px;
	margin: 0 auto;
}

/* Logo */
.logo-area {
	display: flex;
	align-items: center;
	gap: 12px;
}

.logo-hex {
	width: 54px;
	height: 58px;
}

.company-name {
	font-size: 20px;
	font-weight: bold;
	line-height: 24px;
	color: var(--dark);
}

/* Contact Info */
.contact-area {
	display: flex;
	align-items: center;
	gap: 28px;
}

.contact-item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.contact-item .c-icon {
	width: 22px;
	height: 22px;
}

.contact-item .c-text {
	line-height: 1.3;
}

.contact-item .c-text .main {
	font-size: 15px;
	font-weight: 700;
	color: var(--dark2);
}

.contact-item .c-text .sub {
	font-size: 14px;
	color: var(--gray);
}

/* Language Switcher */
.lang-switcher {
	position: relative;
}

.lang-trigger {
	display: flex;
	min-width: 120px;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	background: transparent;
	border: 1px solid #296CBF;
	border-radius: 999px;
	padding: 6px 6px 6px 16px;
	cursor: pointer;
	font-size: 14px;
	color: #374151;
	font-weight: 500;
	transition: all 0.2s;
}

.lang-trigger .lang-arrow-circle {
	width: 26px;
	height: 26px;
	transition: transform 0.2s;
}

.lang-trigger.active .lang-arrow-circle {
	transform: rotate(90deg);
}

.lang-dropdown {
	display: none;
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
	min-width: 130px;
	overflow: hidden;
	z-index: 1000;
	animation: fadeSlide 0.18s ease;
}

.lang-dropdown.show {
	display: block;
}

@keyframes fadeSlide {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}

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

.lang-dropdown .lang-option {
	padding: 10px 18px;
	font-size: 13px;
	color: #374151;
	cursor: pointer;
	transition: background 0.15s;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.lang-dropdown .lang-option:hover {
	background: #f9fafb;
}

.lang-dropdown .lang-option.selected {
	color: var(--brand-blue);
	font-weight: 600;
}

.lang-dropdown .lang-option .check {
	color: var(--brand-blue);
	display: none;
}

.lang-dropdown .lang-option.selected .check {
	display: inline;
}

/* ========== Main Navigation ========== */
.main-nav {
	background: var(--brand-blue);
	position: relative;
	z-index: 100;
}

.main-nav .nav-inner {
	display: flex;
	align-items: center;
	width: 1280px;
	margin: 0 auto;
	position: relative;
}

.main-nav .nav-list {
	flex: 1;
	display: flex;
}

.main-nav .nav-item {
	flex: 1;
	position: relative;
}

.main-nav .active {
	font-weight: bold;
}

.main-nav .nav-link {
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 0 22px;
	color: #fff;
	line-height: 52px;
	text-align: center;
	font-size: 16px;
	cursor: pointer;
	transition: background 0.2s;
	white-space: nowrap;
}

.main-nav .nav-link:hover {
	background: rgba(255, 255, 255, 0.15);
}

.main-nav .nav-link svg {
	width: 12px;
	height: 12px;
	opacity: 0.8;
}

/* Dropdown submenu */
.submenu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background: #fff;
	min-width: 200px;
	cursor: pointer;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	border-radius: 0 0 6px 6px;
	overflow: hidden;
}

.nav-item:hover .submenu {
	display: block;
}

.submenu a {
	display: block;
	    padding: 10px 10px 10px 14px;
	font-size: 14px;
	color: #374151;
	transition: all 0.15s;
	border-bottom: 1px solid #f3f4f6;
}

.submenu a:hover {
	background: #f0f5ff;
	color: var(--brand-blue);
}

/* Mega Menu (Products) */
.main-nav .nav-item.nav-item-mega {
	position: static;
}

.mega-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	background: #fff;
	padding: 24px;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px 24px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	border-radius: 0 0 20px 20px;
	z-index: 1000;
}

.nav-item-mega:hover .mega-menu {
	display: grid;
}

.mega-col {
	display: flex;
	flex-direction: column;
}

.mega-title {
	font-size: 16px;
	font-weight: bold;
	color: var(--dark);
	margin-bottom: 10px;
	padding-bottom: 8px;
	position: relative;
}

.mega-title::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 94px;
	height: 3px;
	background: var(--brand-blue);
	border-radius: 2px;
}

.mega-col a {
	display: block;
	padding: 4px 0;
	font-size: 14px;
	line-height: 22px;
	transition: color 0.15s;
	cursor: pointer;
	color: #000;
}

.mega-col a:hover {
	color: var(--brand-blue);
}

/* ========== Responsive ========== */
@media (max-width: 980px) {
	.contact-item:not(.lang-item) {
		display: none;
	}

	.nav-list {
		flex-wrap: wrap;
	}

	.nav-link {
		padding: 12px 14px;
		font-size: 13px;
	}
}

@media screen and (max-width: 768px) {
	.top-bar {
		padding: 10px 16px;
	}

	.top-bar-inner {
		width: 100%;
	}

	.logo-area {
		gap: 8px;
	}

	.logo-hex {
		width: 40px;
		height: 42px;
	}

	.company-name {
		display: none;
	}

	.contact-area {
		gap: 8px;
	}

	.lang-trigger {
		padding: 4px 4px 4px 12px;
		font-size: 12px;
	}

	.lang-trigger .lang-arrow-circle {
		width: 22px;
		height: 22px;
	}

	.lang-trigger .lang-arrow-circle svg {
		width: 14px;
		height: 14px;
	}

	.main-nav .nav-inner {
		width: 100%;
	}

	.main-nav .nav-list {
		flex-wrap: wrap;
	}

	.main-nav .nav-item {
		flex: 0 0 33.33%;
		position: static;
	}

	.main-nav .nav-link {
		padding: 0 8px;
		font-size: 13px;
		line-height: 44px;
	}

	.main-nav .nav-link svg {
		width: 10px;
		height: 10px;
	}

	/* 子菜单：全宽下拉，不挤压网格布局 */
	.submenu {
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		min-width: auto;
		background: #fff;
		box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
		border-radius: 0 0 6px 6px;
		z-index: 1000;
	}

	.nav-item:hover .submenu {
		display: block;
	}

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

	/* Mega Menu：全宽下拉 */
	.mega-menu {
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		width: auto;
		display: none;
		grid-template-columns: repeat(2, 1fr);
		gap: 12px 16px;
		padding: 16px;
		box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
		border-radius: 0 0 12px 12px;
		z-index: 1000;
	}

	.nav-item-mega:hover .mega-menu {
		display: grid;
	}

	.mega-title {
		font-size: 14px;
		margin-bottom: 6px;
		padding-bottom: 4px;
	}

	.mega-title::after {
		width: 50px;
		height: 2px;
	}

	.mega-col a {
		font-size: 13px;
		line-height: 20px;
		padding: 2px 0;
	}

	.lang-dropdown {
		min-width: 100px;
	}

	.lang-dropdown .lang-option {
		padding: 8px 12px;
		font-size: 12px;
	}
}