/* ─── Header Nav Widget ─────────────────────────────────────────────────── */

/* Base: white bg, black text, normal document flow (占位) */
.hbc-hnav-wrap {
	position: relative;
	width: 100%;
	background: #ffffff;
	z-index: 999;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* ─── 吸顶: fixed at top ─── */
.hbc-hnav-wrap.is-sticky {
	position: relative;
	width: 100%;
}

/* 透明模式始终 fixed */
.hbc-hnav-wrap.is-sticky.is-transparent {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
}

/* 非透明模式：滚动后 fixed 吸顶 */
.hbc-hnav-wrap.is-sticky.is-fixed {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	animation: hbcHnavSlideDown 0.3s ease forwards;
}

@keyframes hbcHnavSlideDown {
	from { transform: translateY(-100%); }
	to   { transform: translateY(0); }
}

/* 占位元素 */
.hbc-hnav-placeholder {
	width: 100%;
}

/* ─── 透明不占位模式: transparent bg, white text, fixed, no space ─── */
.hbc-hnav-wrap.is-transparent {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	background: transparent !important;
	box-shadow: none !important;
}

[class*="elementor"] .hbc-hnav-wrap.is-transparent .hbc-hnav-logo,
[class*="elementor"] [class*="elementor"] .hbc-hnav-wrap.is-transparent .hbc-hnav-logo {
	color: #ffffff !important;
}

[class*="elementor"] .hbc-hnav-wrap.is-transparent .hbc-hnav-menu > .hbc-hnav-item > .hbc-hnav-link,
[class*="elementor"] [class*="elementor"] .hbc-hnav-wrap.is-transparent .hbc-hnav-menu > .hbc-hnav-item > .hbc-hnav-link {
	color: #ffffff !important;
}

[class*="elementor"] .hbc-hnav-wrap.is-transparent .hbc-hnav-menu > .hbc-hnav-item > .hbc-hnav-link:hover,
[class*="elementor"] [class*="elementor"] .hbc-hnav-wrap.is-transparent .hbc-hnav-menu > .hbc-hnav-item > .hbc-hnav-link:hover {
	color: rgba(255, 255, 255, 0.75) !important;
}

[class*="elementor"] .hbc-hnav-wrap.is-transparent .hbc-hnav-btn,
[class*="elementor"] [class*="elementor"] .hbc-hnav-wrap.is-transparent .hbc-hnav-btn {
	background: transparent !important;
	color: #ffffff !important;
	border-color: #ffffff !important;
}

[class*="elementor"] .hbc-hnav-wrap.is-transparent .hbc-hnav-toggle span,
[class*="elementor"] [class*="elementor"] .hbc-hnav-wrap.is-transparent .hbc-hnav-toggle span {
	background-color: #ffffff !important;
}

/* ─── 下滑吸顶后: white bg, black text (both modes) ─── */
.hbc-hnav-wrap.is-scrolled,
[class*="elementor"] .hbc-hnav-wrap.is-scrolled {
	background-color: #ffffff !important;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

[class*="elementor"] .hbc-hnav-wrap.is-scrolled .hbc-hnav-logo,
[class*="elementor"] [class*="elementor"] .hbc-hnav-wrap.is-scrolled .hbc-hnav-logo {
	color: #222222 !important;
}

[class*="elementor"] .hbc-hnav-wrap.is-scrolled .hbc-hnav-menu > .hbc-hnav-item > .hbc-hnav-link,
[class*="elementor"] [class*="elementor"] .hbc-hnav-wrap.is-scrolled .hbc-hnav-menu > .hbc-hnav-item > .hbc-hnav-link {
	color: #222222 !important;
}

[class*="elementor"] .hbc-hnav-wrap.is-scrolled .hbc-hnav-menu > .hbc-hnav-item > .hbc-hnav-link:hover,
[class*="elementor"] [class*="elementor"] .hbc-hnav-wrap.is-scrolled .hbc-hnav-menu > .hbc-hnav-item > .hbc-hnav-link:hover {
	color: #000000 !important;
}

[class*="elementor"] .hbc-hnav-wrap.is-scrolled .hbc-hnav-btn,
[class*="elementor"] [class*="elementor"] .hbc-hnav-wrap.is-scrolled .hbc-hnav-btn {
	background-color: #3688ED !important;
	color: #ffffff !important;
	border-color: #3688ED !important;
}

[class*="elementor"] .hbc-hnav-wrap.is-scrolled .hbc-hnav-toggle span,
[class*="elementor"] [class*="elementor"] .hbc-hnav-wrap.is-scrolled .hbc-hnav-toggle span {
	background-color: #222222 !important;
}

/* Smooth transition for scrolled elements */
.hbc-hnav-wrap .hbc-hnav-logo,
.hbc-hnav-wrap .hbc-hnav-link,
.hbc-hnav-wrap .hbc-hnav-btn,
.hbc-hnav-wrap .hbc-hnav-toggle span {
	transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

/* ─── Elementor widget wrapper ─── */

.elementor-widget-hbc_header_nav,
.elementor-widget-hbc_header_nav > .elementor-widget-container {
	background: transparent !important;
	padding: 0 !important;
	margin: 0 !important;
}

/* ─── Bar layout ─── */

.hbc-hnav-bar {
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 18px 4%;
}

/* ─── Logo ─── */

.hbc-hnav-logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: #222222;
	font-size: 17px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	flex-shrink: 0;
}

.hbc-hnav-logo img {
	display: block;
	width: 56px;
	height: auto;
	max-height: 56px;
	object-fit: contain;
}

/* Logo swap */
.hbc-hnav-logo .hbc-hnav-logo-scrolled {
	display: none;
}

.hbc-hnav-wrap.is-scrolled .hbc-hnav-logo .hbc-hnav-logo-default {
	display: none;
}

.hbc-hnav-wrap.is-scrolled .hbc-hnav-logo .hbc-hnav-logo-scrolled {
	display: block;
}

/* ─── Nav center ─── */

.hbc-hnav-nav {
	flex: 1 1 auto;
	display: flex;
	justify-content: center;
}

.hbc-hnav-menu {
	display: flex;
	align-items: center;
	gap: 32px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hbc-hnav-item {
	position: relative;
}

.hbc-hnav-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 0;
	color: #222222;
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
}

.hbc-hnav-menu > .hbc-hnav-item > .hbc-hnav-link:hover {
	color: #000000;
}

.hbc-hnav-arrow {
	font-size: 10px;
	transition: transform 0.25s ease;
}

/* ─── Submenu ─── */

.hbc-hnav-submenu {
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-30%) translateY(8px);
	min-width: 200px;
	margin: 0;
	padding: 10px 0;
	list-style: none;
	background: #ffffff;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
	border-radius: 8px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
	z-index: 100;
}

.hbc-hnav-item.has-submenu:hover > .hbc-hnav-submenu {
	opacity: 1;
	visibility: visible;
	transform: translateX(-30%) translateY(0);
}

.hbc-hnav-item.has-submenu:hover > .hbc-hnav-link .hbc-hnav-arrow {
	transform: rotate(180deg);
}

.hbc-hnav-subitem {
	display: block;
}

.hbc-hnav-submenu .hbc-hnav-link {
	display: block;
	padding: 10px 22px;
	color: #333333;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	background: transparent;
	white-space: nowrap;
}

.hbc-hnav-submenu .hbc-hnav-link:hover {
	background: transparent;
	color: #333333;
}

/* ─── Right side actions ─── */

.hbc-hnav-actions {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-shrink: 0;
	margin-left: auto;
}

.hbc-hnav-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	padding: 10px 28px;
	background: #222222;
	color: #ffffff;
	border: 1px solid #222222;
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	border-radius: 999px;
	text-decoration: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.hbc-hnav-btn:hover {
	opacity: 0.92;
	transform: translateY(-1px);
}

.hbc-hnav-consult-trigger {
	background: #e8590c !important;
	border-color: #e8590c !important;
	color: #ffffff !important;
}

.hbc-hnav-consult-trigger:hover {
	background: #d14800 !important;
	border-color: #d14800 !important;
}

/* ─── Hamburger ─── */

.hbc-hnav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 36px;
	height: 36px;
	padding: 0;
	background: transparent;
	border: 0;
	cursor: pointer;
	flex-shrink: 0;
	-webkit-tap-highlight-color: transparent;
	-webkit-appearance: none;
	appearance: none;
}

.hbc-hnav-toggle:hover,
.hbc-hnav-toggle:focus,
.hbc-hnav-toggle:active,
.hbc-hnav-toggle:focus-visible {
	background: transparent !important;
	box-shadow: none !important;
	outline: none !important;
}

.hbc-hnav-toggle span {
	display: block;
	width: 24px;
	height: 2px;
	background: #222222;
}

.hbc-hnav-wrap.is-open .hbc-hnav-toggle span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.hbc-hnav-wrap.is-open .hbc-hnav-toggle span:nth-child(2) {
	opacity: 0;
}

.hbc-hnav-wrap.is-open .hbc-hnav-toggle span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* ─── Mobile: hide actions buttons in bar, show in dropdown ─── */

.hbc-hnav-wrap.is-open .hbc-hnav-actions .hbc-hnav-btn:not(.hbc-hnav-toggle):not(.hbc-hnav-consult-trigger) {
	display: none;
}

.hbc-hnav-wrap.is-open .hbc-hnav-actions .hbc-hnav-consult-trigger {
	display: none;
}

/* Mobile actions inside dropdown */
.hbc-hnav-mobile-actions {
	display: none;
	flex-direction: column;
	gap: 10px;
	padding: 14px 22px;
	border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.hbc-hnav-wrap.is-open .hbc-hnav-mobile-actions {
	display: flex;
}

.hbc-hnav-mobile-actions .hbc-hnav-btn {
	width: 100%;
	text-align: center;
	justify-content: center;
}

/* ─── Mobile nav ─── */

.hbc-hnav-wrap .hbc-hnav-nav {
	--hbc-hnav-mobile-bg: #ffffff;
	--hbc-hnav-mobile-text: #222222;
}

.hbc-hnav-wrap.is-open .hbc-hnav-nav {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	display: block;
	background: var(--hbc-hnav-mobile-bg);
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
	max-height: 80vh;
	overflow-y: auto;
}

.hbc-hnav-wrap.is-open .hbc-hnav-menu {
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	width: 100%;
	padding: 8px 0;
}

.hbc-hnav-wrap.is-open .hbc-hnav-menu > .hbc-hnav-item {
	width: 100%;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.hbc-hnav-wrap.is-open .hbc-hnav-menu > .hbc-hnav-item:last-child {
	border-bottom: 0;
}

.hbc-hnav-wrap.is-open .hbc-hnav-menu > .hbc-hnav-item > .hbc-hnav-link {
	display: flex;
	justify-content: space-between;
	padding: 14px 22px;
	color: var(--hbc-hnav-mobile-text);
}

.hbc-hnav-wrap.is-open .hbc-hnav-menu > .hbc-hnav-item > .hbc-hnav-link:hover {
	color: var(--hbc-hnav-mobile-text);
}

.hbc-hnav-wrap.is-open .hbc-hnav-submenu {
	position: static;
	display: none;
	min-width: 0;
	width: 100%;
	margin: 0;
	padding: 4px 0 10px;
	background: transparent;
	box-shadow: none;
	opacity: 1;
	visibility: visible;
	transform: none !important;
	border-radius: 0;
}

.hbc-hnav-wrap.is-open .hbc-hnav-item.has-submenu.is-open > .hbc-hnav-submenu {
	display: block;
}

.hbc-hnav-wrap.is-open .hbc-hnav-submenu .hbc-hnav-link {
	padding: 10px 36px;
	color: var(--hbc-hnav-mobile-text);
	opacity: 0.85;
}

.hbc-hnav-wrap.is-open .hbc-hnav-item.has-submenu.is-open > .hbc-hnav-link .hbc-hnav-arrow {
	transform: rotate(180deg);
}

/* ═══════════════════════════════════════════════════════════════
   咨询弹窗 – Project Consultation Modal
   ═══════════════════════════════════════════════════════════════ */

.hbc-consult-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
	overflow-y: auto;
}

.hbc-consult-overlay.is-open {
	display: flex;
}

.hbc-consult-modal {
	background: #ffffff;
	border-radius: 12px;
	max-width: 900px;
	width: 100%;
	position: relative;
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	animation: hbcConsultFadeIn 0.3s ease;
}

@keyframes hbcConsultFadeIn {
	from { opacity: 0; transform: scale(0.95) translateY(10px); }
	to   { opacity: 1; transform: scale(1) translateY(0); }
}

.hbc-consult-close {
	position: absolute;
	top: 12px;
	right: 16px;
	background: none;
	border: none;
	font-size: 28px;
	color: #666;
	cursor: pointer;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: background 0.2s;
	z-index: 10;
}

.hbc-consult-close:hover {
	background: #f0f0f0;
	color: #333;
}

.hbc-consult-body {
	display: flex;
}

/* ── 左侧深色面板 ───────────────────────────────────────── */

.hbc-consult-left {
	flex: 0 0 38%;
	background: #1a2332;
	color: #ffffff;
	padding: 40px 30px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
}

.hbc-consult-tag {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1px;
	color: #e8590c;
	text-transform: uppercase;
	margin-bottom: 12px;
}

.hbc-consult-title {
	font-size: 24px;
	font-weight: 700;
	color: #ffffff;
	margin: 0 0 12px;
	line-height: 1.3;
}

.hbc-consult-desc {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.7);
	line-height: 1.6;
	margin: 0 0 24px;
}

.hbc-consult-features {
	list-style: none;
	padding: 0;
	margin: 0 0 30px;
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
}

.hbc-consult-features li {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.9);
	margin-bottom: 10px;
}

.hbc-consult-features li svg {
	flex-shrink: 0;
}

.hbc-consult-contact {
	margin-top: auto;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	text-align: center;
	width: 100%;
}

.hbc-consult-phone {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.8);
	margin-bottom: 6px;
}

.hbc-consult-stats {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.5);
}

/* ── 右侧表单 ───────────────────────────────────────────── */

.hbc-consult-right {
	flex: 1;
	padding: 36px 32px;
	overflow-y: auto;
	max-height: 85vh;
}

.hbc-consult-form-title {
	font-size: 20px;
	font-weight: 700;
	color: #222;
	margin: 0 0 6px;
}

.hbc-consult-form-sub {
	font-size: 13px;
	color: #888;
	margin: 0 0 24px;
}

.hbc-consult-field {
	margin-bottom: 18px;
}

.hbc-consult-field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #333;
	margin-bottom: 6px;
}

.hbc-consult-field label .required {
	color: #e53e3e;
}

.hbc-consult-field input[type="text"],
.hbc-consult-field input[type="email"],
.hbc-consult-field textarea {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	font-size: 14px;
	background: #fafafa;
	transition: border-color 0.2s;
	box-sizing: border-box;
}

.hbc-consult-field input:focus,
.hbc-consult-field textarea:focus {
	outline: none;
	border-color: #2563eb;
	background: #fff;
}

.hbc-consult-field textarea {
	resize: vertical;
}

/* ── 标签选择 ────────────────────────────────────────────── */

.hbc-consult-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.hbc-consult-cat {
	display: inline-flex;
	align-items: center;
	cursor: pointer;
}

.hbc-consult-cat input {
	display: none;
}

.hbc-consult-cat span {
	display: inline-block;
	padding: 6px 16px;
	border: 1px solid #e0e0e0;
	border-radius: 20px;
	font-size: 13px;
	color: #555;
	transition: all 0.2s;
	background: #fff;
}

.hbc-consult-cat:hover span {
	border-color: #2563eb;
	color: #2563eb;
}

.hbc-consult-cat.is-selected span {
	background: #e8590c;
	border-color: #e8590c;
	color: #fff;
}

/* ── 提交按钮 ────────────────────────────────────────────── */

.hbc-consult-submit {
	display: block;
	width: 100%;
	padding: 14px 24px;
	background: #e8590c;
	color: #ffffff;
	font-size: 15px;
	font-weight: 700;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.2s;
	margin-top: 8px;
}

.hbc-consult-submit:hover {
	background: #d14800;
}

.hbc-consult-submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* ── 二维码区域 ──────────────────────────────────────────── */

.hbc-consult-qr {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid #eee;
}

.hbc-consult-qr img {
	width: 60px;
	height: 60px;
	object-fit: contain;
	border-radius: 4px;
}

.hbc-consult-qr-text {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.hbc-consult-qr-text strong {
	font-size: 13px;
	color: #333;
}

.hbc-consult-qr-text span {
	font-size: 12px;
	color: #888;
}

/* ── 成功状态 ────────────────────────────────────────────── */

.hbc-consult-success {
	text-align: center;
	padding: 40px 20px;
}

.hbc-consult-success p {
	font-size: 16px;
	color: #22c55e;
	font-weight: 600;
}

/* ── 弹窗响应式 ─────────────────────────────────────────── */

@media (max-width: 768px) {
	.hbc-consult-body {
		flex-direction: column;
	}

	.hbc-consult-left {
		flex: none;
		padding: 28px 20px;
	}

	.hbc-consult-right {
		padding: 24px 20px;
		max-height: none;
	}

	.hbc-consult-modal {
		max-height: 95vh;
		overflow-y: auto;
	}
}
