/* 平滑滚动 */
html {
	scroll-behavior: smooth;
}

section[id] {
	scroll-margin-top: 70px;
	/* 根据导航栏实际高度调整 */
}

/* 导航栏样式 */
.navbar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(10px);
	box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
	z-index: 1000;
	transition: all 0.3s ease;
	line-height: normal;
}

.nav-container {
	/* max-width: 1200px; */
	max-width: 1325px;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 70px;
}

.nav-logo,
.nav-logo:link,
.nav-logo:visited,
.nav-logo:active,
.nav-logo:hover {
	color: #fff !important;
	text-decoration: none !important;
}

.nav-logo h1 {
	color: inherit !important;
	font-size: 1.8rem;
	font-weight: 700;
	margin: 0;
}

.nav-menu {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	align-items: center;
}

nav,
.navbar {
	background-color: #000;
}

.nav-link {
	color: #ffffff;
	text-decoration: none;
	padding: 23px 20px;
	/* margin: 0 5px; */
	margin: 0 2px;
	font-weight: 500;
	position: relative;
	/* font-size: 15px; */
	font-family: auto;
	text-transform: capitalize;
}

.nav-link::after {
	content: '';
	position: absolute;
	bottom: 15px;
	left: 50%;
	transform: translateX(-50%);
	width: 0;
	height: 2px;
	background: #ffda20;
	border-radius: 1px;
	transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	pointer-events: none;
}

.nav-link.active::after,
.nav-link:hover::after {
	/* bottom: 15px; */
	width: 20px;
}

.nav-link:hover {
	color: #ffda20;
}

.nav-link.active {
	color: #ffda20;
}


/* 移动端菜单按钮 */
.nav-toggle {
	display: none;
	flex-direction: column;
	cursor: pointer;
	padding: 5px;
	z-index: 1001;
}

.nav-toggle span {
	width: 25px;
	height: 3px;
	background: #ffffff;
	margin: 3px 0;
	transition: 0.3s;
	border-radius: 2px;
}

/* 页面切换动画 */
.section {
	display: block;
	animation: fadeIn 0.5s ease-in-out;
	/* background: white; */
}

.section.active {
	display: block;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}


.language {
	color: #fff;
	font-family: emoji;
}

.navbar .nav-logo h1 {
	color: #ffffff !important;
}

.navbar .nav-logo .img-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 50px;
}

.nav-toggle span {
	background: #fff !important;
}

/* 导航栏下拉菜单样式 */
.nav-link-dropdown-wrapper {
	position: relative;
	display: inline-block;
	margin: 0;
	padding: 0;
}

.nav-dropdown {
	max-height: 0;
	opacity: 0;
	transform: translateY(-10px);
	overflow: hidden;
	transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	display: block;
	visibility: hidden;
	position: absolute;
	top: 200%;
	/* top: 100%; */
	left: 50%;
	margin-left: -68px;
	text-align: center;
	min-width: 140px;
	background: rgba(0, 0, 0, 0.5);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
	z-index: 1200;
}

.nav-dropdown-item {
	display: block;
	width: 100%;
	box-sizing: border-box;
	color: #fff;
	padding: 0.7rem 1.5rem;
	text-decoration: none;
	font-size: 1rem;
	/* transition: background 0.2s, color 0.2s; */
	transition: background 0.2s, color 0.2s;
	font-family: auto;
	cursor: pointer;
}

.nav-dropdown-item:hover {
	background: rgba(30, 30, 30, 0.6);
	/* background: #000; */
	color: #ffda20;
}

/* PC端悬浮显示下拉菜单 */
.nav-link-dropdown-wrapper:hover .nav-dropdown,
.nav-link-dropdown-wrapper:focus-within .nav-dropdown {
	max-height: 400px;
	opacity: 1;
	transform: translateY(0);
	display: block;
	visibility: visible;
	transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link-dropdown {
	position: relative;
}

@media (max-width: 1292px) {
	.nav-link {
		padding: 23px 10px;
	}
}

/* @media (max-width: 1125px) {
	.nav-link{
		padding: 23px 5px;
	}
} */

/* 移动端响应式 - 断点改为1180px */
@media (max-width: 1180px) {
	.nav-toggle {
		display: flex;
	}

	.nav-menu {
		position: fixed;
		left: -100%;
		top: 70px;
		flex-direction: column;
		background-color: #2f2f2f;
		background-color: #000;
		width: 100%;
		text-align: center;
		transition: 0.3s ease-in-out;
		box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
		backdrop-filter: blur(10px);
		/* padding: 20px 0; */
		max-height: calc(100vh - 70px);
		overflow-y: auto;
		z-index: 999;
	}

	.nav-menu.active {
		left: 0;
	}

	.nav-link {
		margin: 10px 0;
		padding: 1px 15px 17px 15px;
		border-radius: 0;
		font-size: 1.1rem;
		display: block;
		width: 100%;
		box-sizing: border-box;
	}

	.nav-link::after {
		bottom: 10px;
	}

	.nav-dropdown-item:hover {
		background: #000;
		color: #ffda20;
	}

	.nav-link.active::after {
		content: '';
		position: absolute;
		left: 50%;
		bottom: 10px;
		transform: translateX(-50%);
		width: 20px;
		height: 2px;
		background: #ffda20;
		border-radius: 1px;
	}

	nav,
	.navbar,
	.nav-link,
	.nav-link.active {}

	/* 汉堡菜单动画 */
	.nav-toggle.active span:nth-child(1) {
		transform: rotate(-45deg) translate(-5px, 6px);
	}

	.nav-toggle.active span:nth-child(2) {
		opacity: 0;
	}

	.nav-toggle.active span:nth-child(3) {
		transform: rotate(45deg) translate(-5px, -6px);
	}

	.nav-search {
		width: 90%;
		margin: 18px auto 10px auto;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		padding: 0 20px;
	}

	.nav-search input[type="text"] {
		width: 100%;
		margin-bottom: 10px;
		font-size: 1.1rem;
		padding: 12px 15px;
		border-radius: 8px;
	}

	.nav-search button[type="submit"] {
		width: 100%;
		font-size: 1.1rem;
		margin-left: 0;
		padding: 12px 15px;
		border-radius: 8px;
	}

	/* 防止页面滚动当菜单打开时 */
	body.menu-open {
		overflow: hidden;
	}

	.nav-dropdown {
		display: none;
		position: static;
		left: 0;
		top: auto;
		min-width: 0;
		width: 100%;
		box-shadow: none;
		background: rgba(47, 47, 47, 0.97);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-10px);
		transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
		padding: 0;
		min-height: 0;
		height: auto;
		max-height: 0;
		overflow: hidden;
	}

	.nav-link-dropdown-wrapper:hover .nav-dropdown {
		display: block;
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
		max-height: 400px;
		transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	}

	.nav-dropdown.open {
		display: block !important;
		opacity: 1 !important;
		visibility: visible !important;
		transform: translateY(0) !important;
		max-height: 400px !important;
	}

	.nav-dropdown:empty {
		min-height: 0 !important;
		height: 0 !important;
		padding: 0 !important;
		background: none !important;
		box-shadow: none !important;
		border: none !important;
		display: none !important;
		max-height: 0 !important;
	}

	.nav-link-dropdown-wrapper {
		width: 100%;
	}

	/* 翻译按钮响应式 */
	.language {
		padding: 1px 15px 17px 15px;
	}

}





/* 移动端下拉菜单样式 */
@media (max-width: 1180px) {
	.nav-dropdown {
		display: none;
		position: static;
		left: 0;
		top: auto;
		min-width: 0;
		width: 100%;
		box-shadow: none;
		background: rgba(47, 47, 47, 0.97);
		/* background: rgba(255, 255, 255, 0.3); */
		opacity: 0;
		visibility: hidden;
		transform: translateY(-10px);
		transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
		padding: 0;
		margin-left: 0;
		min-height: 0;
		height: auto;
		max-height: 0;
		overflow: hidden;
	}

	.nav-link-dropdown-wrapper:hover .nav-dropdown {
		display: block;
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
		max-height: 400px;
		transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	}

	.nav-dropdown.open {
		display: block !important;
		opacity: 1 !important;
		visibility: visible !important;
		transform: translateY(0) !important;
		max-height: 400px !important;
	}

	.nav-dropdown:empty {
		min-height: 0 !important;
		height: 0 !important;
		padding: 0 !important;
		background: none !important;
		box-shadow: none !important;
		border: none !important;
		display: none !important;
		max-height: 0 !important;
	}

	.nav-link-dropdown-wrapper {
		width: 100%;
	}

	.nav-link-dropdown {
		position: relative;
		z-index: 1201;
		/* background: #2f2f2f; */
		/* background: #000; */
	}

	.nav-dropdown.open {
		padding-top: 48px;
		margin-top: -48px;
	}
}


/* 默认PC端 */
.mobile-search {
	display: none !important;
}

@media (max-width: 1180px) {
	.mobile-search {
		display: flex !important;
		flex-direction: row;
		align-items: center;
		justify-content: center;
		width: 100%;
		margin: 18px 0 10px 0;
		padding: 0 10px;
		background: transparent;
		gap: 8px;
	}

	.mobile-search input[type="text"] {
		flex: 1;
		min-width: 0;
		max-width: 320px;
		font-size: 1.08rem;
		padding: 10px 16px;
		border-radius: 16px;
		border: 1px solid #ccc;
		outline: none;
		box-sizing: border-box;
	}

	.mobile-search button[type="submit"] {
		flex-shrink: 0;
		padding: 10px 18px;
		border: none;
		border-radius: 16px;
		background: #333;
		color: #fff;
		cursor: pointer;
		font-size: 1.08rem;
		margin-left: 0;
		white-space: nowrap;
	}

	.nav-search {
		display: none !important;
	}
}

.dropdown-arrow {
	display: none;
}

@media (max-width: 1180px) {
	.dropdown-arrow {
		display: inline-block;
	}
}

.nav-link-dropdown-wrapper {
	position: relative !important;
}

.nav-dropdown {
	overflow: visible !important;
}

.nav-qrcode-popup {
	z-index: 2000;
}

/* 文旅案例模态框样式  start */
.cultural-tourism-modal-mask {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .45);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 100;
	/* 初始透明，用于慢动作淡入 */
	opacity: 0;
	transition: opacity 0.45s cubic-bezier(0.2, 0, 0, 1);
}

.cultural-tourism-modal {
	width: 414px;
	max-width: calc(100% - 40px);
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
	overflow: hidden;
	/* 打开时的慢动作：从轻微上移+缩放淡入 */
	opacity: 0;
	transform: translateY(-12px) scale(1);
	transition: transform 0.45s cubic-bezier(.2, .7, .1, 1), opacity 0.45s cubic-bezier(.2, .7, .1, 1);
}

.cultural-tourism-modal-header {
	padding: 18px 20px;
	font-size: 18px;
	font-weight: 600;
	color: #333;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.cultural-tourism-modal-close {
	width: 32px;
	height: 32px;
	border-radius: 8px;
	border: none;
	background: #f5f5f5;
	cursor: pointer;
}

.cultural-tourism-modal-body {
	padding: 16px 20px 24px;
}

.cultural-tourism-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	background: #3475af;
	color: #fff;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	font-weight: 600;
	margin-right: 15px;
	margin-bottom: 10px;
}

.cultural-tourism-btn:hover {
	filter: brightness(0.95);
}

.tip {
	margin-top: 14px;
	color: #999;
	font-size: 13px;
	line-height: 1.6;
}

/* 模态框抖动动画 */
@keyframes modal-shake {

	0%,
	100% {
		transform: translateX(0);
	}

	20% {
		transform: translateX(-10px);
	}

	40% {
		transform: translateX(10px);
	}

	60% {
		transform: translateX(-6px);
	}

	80% {
		transform: translateX(6px);
	}
}

.cultural-tourism-modal.shake {
	animation: modal-shake 0.45s cubic-bezier(.36, .07, .19, .97);
	will-change: transform;
}

/* 可见态：控制慢动作动画的终态 */
.cultural-tourism-modal-mask.visible {
	opacity: 1;
}

.cultural-tourism-modal-mask.visible .cultural-tourism-modal {
	opacity: 1;
	transform: translateY(0) scale(1);
}

/* 文旅案例模态框样式  end */