/* 全站悬浮客服工具条（.kefu_box），不依赖 .wjc-home 那套 CSS 变量（有些页面走 Blocksy
   默认模板没有那层 wrapper），颜色直接写死。 */
.kefu_box {
	width: auto;
	height: auto;
	position: fixed;
	bottom: 30%;
	right: 0;
	z-index: 90;
}

.kefu_box .item_box {
	width: 58px;
	height: auto;
	padding: 24px 0;
	border-radius: 100px;
	background: rgba(255, 255, 255, 0.9);
	box-shadow: 0px 4px 30px 0px rgba(0, 0, 0, 0.1);
	display: flex;
	flex-direction: column;
	gap: clamp(15.008px, calc(-21.92px + 2.88vw), 30px);
}

.kefu_box .item_box a {
	text-decoration: none;
	list-style: none;
}

.kefu_box .item_box .item {
	text-align: center;
	cursor: pointer;
	display: block;
	position: relative;
	z-index: 1;
}

.kefu_box .item_box .item .icon img {
	transition: all 0.3s ease;
	filter: brightness(0) saturate(1) hue-rotate(0deg) !important;
}

.kefu_box .item_box .item .word {
	font-size: 12px;
	color: #B6C81A;
	margin-top: 4px;
	transition: all 0.3s ease;
}

.kefu_box .item_box .item .word span {
	width: auto;
	height: auto;
	display: block;
}

.kefu_box .item_box .item .word span:last-child {
	display: none;
}

.kefu_box .item_box .item .info_box {
	position: absolute;
	top: 50%;
	transform: translateY(-50%) translateX(20px);
	width: max-content;
	height: auto;
	right: calc(100% + 28px);
	background: #FFFFFF;
	padding: 25px 30px;
	border-radius: 10px;
	box-shadow: 0px 4px 30px 0px rgba(0, 0, 0, 0.1);
	text-align: start;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
}

.kefu_box .item_box .item .info_box img {
	max-width: 180px;
}

.kefu_box .item_box .item .info_box::after {
	content: '';
	display: block;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 10.5px 0 10.5px 10px;
	border-color: transparent transparent transparent #FFFFFF;
	position: absolute;
	left: 100%;
	top: 50%;
	transform: translateY(-50%);
}

.kefu_box .item_box .item .info_box .title {
	font-size: clamp(16px, calc(1.232px + 1.15vw), 22px);
	color: #3468F6;
	line-height: 1;
}

.kefu_box .item_box .item .info_box .subtitle {
	font-size: 12px;
	color: #666666;
	margin-top: 10px;
}

.kefu_box .item_box .item:hover .icon img {
	filter: unset !important;
}

.kefu_box .item_box .item:hover .word {
	color: #3468F6;
}

.kefu_box .item_box .item:hover .info_box {
	opacity: 1;
	visibility: visible;
	transform: translateY(-50%) translateX(0);
}

.kefu_box .goUp {
	width: 68px;
	height: 68px;
	background: rgba(255, 255, 255, 0.9);
	box-shadow: 0px 4px 30px 0px rgba(0, 0, 0, 0.1);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 12px;
	cursor: pointer;
}

.kefu_box .goUp img {
	transition: all 0.3s ease;
	filter: brightness(0) invert(0.5);
}

.kefu_box .goUp:hover img {
	filter: unset !important;
}

@media (max-width: 1560px) {
	.kefu_box .item_box .item .word span {
		display: none;
	}

	.kefu_box .item_box .item .word span:last-child {
		display: block !important;
	}
}

@media (max-width: 990px) {
	.kefu_box {
		bottom: 0;
		width: 100%;
		height: auto;
		padding: 4px;
	}

	.kefu_box .item_box {
		flex-direction: row;
		flex-wrap: nowrap;
		justify-content: space-between;
		width: 100%;
		padding: 8px 20px;
		background: rgba(255, 255, 255, 1);
	}

	.kefu_box .item_box .item {
		flex: 1 1 25%;
		max-width: 25%;
	}

	.kefu_box .item_box .item .info_box {
		display: none !important;
	}

	.kefu_box .goUp {
		display: none;
	}
}

/* ---------- 表单弹窗 / 二维码弹窗 ---------- */
.popup_getForm {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	justify-content: center;
	align-items: center;
	z-index: 100;
	transition: all 0.3s ease;
}

.popup_getForm .content {
	background-color: #fff;
	padding: 20px;
	border-radius: 10px;
	width: 98%;
	height: 680px;
	max-width: 500px;
	transform: scale(0.7);
	opacity: 0;
	overflow: auto;
	transition: all 0.3s ease;
}

.popup_getForm.show {
	display: flex;
}

.popup_getForm.show .content {
	display: flex;
	transform: scale(1);
	opacity: 1;
}

.popup_getQrcode {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	justify-content: center;
	align-items: center;
	z-index: 100;
}

.popup_getQrcode .content {
	background-color: #fff;
	padding: 20px;
	border-radius: 10px;
	width: 92%;
	max-width: 500px;
	transform: scale(0.7);
	opacity: 0;
	overflow: auto;
	transition: all 0.3s ease;
}

.popup_getQrcode.show {
	display: flex;
}

.popup_getQrcode.show .content {
	display: flex;
	transform: scale(1);
	opacity: 1;
}

#wl-qrcode {
	background: #ffffff;
	padding: 20px;
}

#wl-qrcode img {
	width: 160px;
}

/* ---------- 表单容器美化 ---------- */
#customForm {
	width: 100%;
	max-width: 350px;
	margin: 50px auto;
	padding: 20px;
	background-color: #fff;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
	border-radius: 8px;
	border: 1px solid #ddd;
	font-family: Arial, sans-serif;
}

#customForm h1 {
	text-align: center;
	color: #333;
	font-size: 24px;
	margin-bottom: 20px;
}

#customForm label {
	display: block;
	font-size: 14px;
	margin-bottom: 5px;
	color: #333;
}

#customForm input[type="text"],
#customForm textarea {
	width: 100%;
	padding: 8px;
	margin-bottom: 15px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	box-sizing: border-box;
}

#customForm input[type="text"]:focus,
#customForm textarea:focus {
	border-color: #4CAF50;
	outline: none;
}

#customForm textarea {
	resize: vertical;
	height: 50px;
}

#customForm button {
	width: 100%;
	padding: 14px;
	background-color: #000000;
	color: white;
	border: none;
	border-radius: 4px;
	font-size: 16px;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

#customForm button:hover {
	background-color: #B6C81A;
}
