/* 特来电风格 - 完全透明导航栏 */

.modern-header {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 80px;
	background: transparent;
	z-index: 1000;
	transition: all 0.3s ease;
}

/* 内页header固定在顶部，白色背景 */
.inner-page .modern-header {
	position: fixed;
	background: rgba(255, 255, 255, 0.95);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* 内页body添加顶部间距 */
.inner-page {
	padding-top: 0;
}

/* 内页banner添加顶部padding，为header留空间 */
.inner-page .nybanner {
	padding-top: 80px;
}

/* 内页logo不需要滤镜 */
.inner-page .header-logo img {
	filter: none;
}

/* 内页导航文字为深色 */
.inner-page .nav-item > a {
	color: #333;
	text-shadow: none;
}

/* 滚动后添加背景 */
.modern-header.scrolled {
	position: fixed;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.modern-header .w1200 {
	height: 100%;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

/* Logo区域 */
.header-logo {
	display: flex;
	align-items: center;
	height: 80px;
	margin-right: auto;
	padding-right: 40px;
}

.header-logo a {
	display: flex;
	align-items: center;
	height: 100%;
}

.header-logo img {
	width: auto;
	max-height: 40px;
	max-width: 220px;
	object-fit: contain;
	transition: all 0.3s;
	/* 透明背景时添加阴影，让logo更清晰 */
	filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}

/* 滚动后Logo去掉阴影 */
.modern-header.scrolled .header-logo img {
	filter: none;
	max-height: 38px;
	max-width: 200px;
}

/* 导航区域 */
.header-nav {
	display: flex;
	align-items: center;
	gap: 30px;
	height: 80px;
}

.nav-list {
	display: flex;
	align-items: center;
	gap: 0;
	height: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav-item {
	position: relative;
	height: 100%;
	display: flex;
	align-items: center;
	padding: 0 18px;
}

.nav-item > a {
	color: rgba(255, 255, 255, 0.95);
	font-size: 16px;
	font-weight: 500;
	text-decoration: none;
	transition: all 0.3s;
	position: relative;
	display: block;
	white-space: nowrap;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* 滚动后文字变深色 */
.modern-header.scrolled .nav-item > a {
	color: #333;
	text-shadow: none;
}

/* 悬停和激活效果 */
.nav-item:hover > a,
.nav-item.active > a {
	color: #1abc9e;
	text-shadow: none;
}

/* 底部指示线 */
.nav-item > a::after {
	content: '';
	position: absolute;
	bottom: -10px;
	left: 0;
	width: 0;
	height: 2px;
	background: #1abc9e;
	transition: width 0.3s ease;
}

.nav-item:hover > a::after,
.nav-item.active > a::after {
	width: 100%;
}

/* 下拉菜单 */
.nav-dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 180px;
	background: rgba(255, 255, 255, 0.98);
	backdrop-filter: blur(10px);
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
	border-radius: 8px;
	padding: 10px 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: all 0.3s ease;
	z-index: 100;
	margin-top: 10px;
}

.nav-item:hover .nav-dropdown {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.dropdown-inner {
	display: flex;
	flex-direction: column;
}

.dropdown-item {
	padding: 10px 20px;
	color: #666;
	font-size: 14px;
	text-decoration: none;
	transition: all 0.3s;
	display: block;
	white-space: nowrap;
}

.dropdown-item:hover {
	background: #f8f9fa;
	color: #1abc9e;
	padding-left: 25px;
}

/* 联系电话按钮 */
.header-contact {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 24px;
	background: rgba(26, 188, 156, 0.9);
	border-radius: 25px;
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	white-space: nowrap;
	box-shadow: 0 4px 15px rgba(26, 188, 156, 0.4);
	transition: all 0.3s;
	cursor: pointer;
	border: 2px solid rgba(255, 255, 255, 0.3);
}

.header-contact:hover {
	background: #1abc9e;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(26, 188, 156, 0.5);
	border-color: rgba(255, 255, 255, 0.5);
}

/* 滚动后电话按钮样式 */
.modern-header.scrolled .header-contact {
	background: linear-gradient(135deg, #1abc9e 0%, #16a085 100%);
	border-color: transparent;
}

.phone-icon {
	width: 16px;
	height: 16px;
	background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z"/></svg>') center no-repeat;
	background-size: contain;
	display: inline-block;
}

/* 移除hero-banner的顶部间距 */
.hero-banner {
	margin-top: 0 !important;
}

/* 响应式 */
@media (max-width: 1200px) {
	.header-nav {
		gap: 20px;
	}

	.nav-item {
		padding: 0 12px;
	}

	.nav-item > a {
		font-size: 15px;
	}

	.header-contact {
		font-size: 14px;
		padding: 8px 18px;
	}
}

@media (max-width: 768px) {
	.modern-header {
		height: 60px;
		background: rgba(255, 255, 255, 0.95);
	}

	.header-logo {
		height: 60px;
		padding: 10px 0;
	}

	.header-logo img {
		filter: none;
		max-height: 35px;
	}

	.header-nav {
		height: 60px;
		gap: 10px;
	}

	.nav-list {
		display: none;
	}

	.nav-item > a {
		color: #333;
		text-shadow: none;
	}

	.header-contact {
		font-size: 13px;
		padding: 6px 12px;
	}
}

/* 搜索功能样式 */
.header-actions {
	display: flex;
	align-items: center;
	gap: 15px;
}

.header-search {
	position: relative;
}

.search-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	cursor: pointer;
	transition: all 0.3s ease;
}

.search-btn:hover {
	background: rgba(255, 255, 255, 0.2);
	border-color: rgba(255, 255, 255, 0.3);
	transform: translateY(-2px);
}

.search-icon {
	width: 18px;
	height: 18px;
	background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/></svg>') center no-repeat;
	background-size: contain;
	display: inline-block;
}

.search-dropdown {
	position: absolute;
	top: 100%;
	right: 0;
	margin-top: 10px;
	width: 280px;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
	border: 1px solid rgba(255, 255, 255, 0.2);
	display: none;
	z-index: 1001;
	overflow: hidden;
}

.search-input {
	width: 100%;
	padding: 15px 50px 15px 20px;
	border: none;
	background: transparent;
	font-size: 16px;
	color: #333;
	outline: none;
}

.search-input::placeholder {
	color: #999;
}

.search-submit {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	width: 36px;
	height: 36px;
	background: #1abc9e;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
}

.search-submit:hover {
	background: #16a085;
}

.search-submit-icon {
	width: 16px;
	height: 16px;
	background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/></svg>') center no-repeat;
	background-size: contain;
	display: inline-block;
}

/* 滚动后搜索按钮样式 */
.modern-header.scrolled .search-btn {
	background: rgba(26, 188, 156, 0.1);
	border-color: rgba(26, 188, 156, 0.3);
}

.modern-header.scrolled .search-btn:hover {
	background: rgba(26, 188, 156, 0.2);
	border-color: rgba(26, 188, 156, 0.4);
}

/* 移动端搜索适配 */
@media (max-width: 768px) {
	.search-dropdown {
		width: 240px;
		right: -10px;
	}

	.search-input {
		font-size: 14px;
		padding: 12px 45px 12px 15px;
	}

	.search-submit {
		width: 32px;
		height: 32px;
	}
}
