html {
	width: 100%;
	-webkit-text-size-adjust: 100%;
}

body {
	width: 100%;
	max-width: 100vw;
	position: relative;
	overflow-x: hidden;
}

/* 确保所有容器不超出视口 */
* {
	max-width: 100%;
	box-sizing: border-box;
}

@media (min-width: 980px) and (max-width: 1600px) {

	/* 主容器自适应宽度 */
	.ww {
		width: 95% !important;
		max-width: 1360px !important;
		padding-left: 20px;
		padding-right: 20px;
	}

	/* 导航栏自适应 */
	.header .hbox {
		width: 95% !important;
		max-width: 1360px !important;
	}

	.header .hlogo .hlbox img {
		max-height: 30px !important;
	}

	#searchword {
		max-width: 190px !important;
	}

	.hsearch .layui-form {
		margin: 0px !important;
	}

	.commenu ul li ul,
	.hsearch ul li ul {
		max-width: 900px;
	}
}

.video-modal {
	position: fixed;
	z-index: 9999;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.8);
	display: flex;
	justify-content: center;
	align-items: center;
}

.video-modal-content {
	position: relative;
	background-color: transparent;
	padding: 0;
	border-radius: 0;
	width: 95%;
	height: 95%;
	max-width: 1200px;
	max-height: 800px;
}

.close-video {
	position: absolute;
	top: -10px;
	right: -10px;
	color: #fff;
	font-size: 30px;
	font-weight: bold;
	cursor: pointer;
	background-color: #ff0000;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10000;
}

.close-video:hover {
	background-color: #cc0000;
}

.video-container {
	position: relative;
	width: 100%;
	height: 100%;
}

.video-container iframe {
	width: 100%;
	height: 100%;
	min-height: 500px;
	border: none;
	border-radius: 8px;
}

/* 响应式设计 */
@media (max-width: 768px) {
	.video-modal-content {
		width: 98%;
		height: 90%;
		padding: 0;
		margin: 0;
	}

	.video-container iframe {
		min-height: 300px;
		border-radius: 4px;
	}
}

@media (max-width: 480px) {
	.video-modal-content {
		width: 100%;
		height: 85%;
	}

	.video-container iframe {
		min-height: 250px;
	}
}

.whatsapp-hover {
	position: relative;
	display: inline-block;
}

.whatsapp-hover .hover-image {
	position: absolute !important;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	background: white;
	padding: 10px;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	opacity: 0 !important;
	visibility: hidden !important;
	transition: all 0.3s ease;
	z-index: 1000;
	margin-top: 5px;
	display: block;
}

.whatsapp-hover:hover .hover-image {
	opacity: 1 !important;
	visibility: visible !important;
}

.whatsapp-hover .hover-image::before {
	content: '';
	position: absolute;
	top: -6px;
	left: 50%;
	transform: translateX(-50%);
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
	border-bottom: 6px solid white;
}

.wechat-hover {
	text-decoration: none;
	transition: text-decoration 0.3s ease;
}

.wechat-hover:hover {
	text-decoration: underline;
}
