.dctc-kf {
	--dctc-kf-theme: #0066cc;
	--dctc-kf-size: 38px;
	--dctc-kf-bg: #fff;
	--dctc-kf-text: #333;
	--dctc-kf-muted: #999;
	font-size: 12px;
	line-height: 1.5;
	z-index: 1000;
	position: fixed;
	box-sizing: border-box;
}
.dctc-kf *,
.dctc-kf *::before,
.dctc-kf *::after {
	box-sizing: border-box;
}
.dctc-kf-icon {
	display: inline-block;
	width: 16px;
	height: 16px;
	fill: currentColor;
	vertical-align: middle;
}

.dctc-kf-rb { right: 20px; bottom: 50px; }
.dctc-kf-rc { right: 20px; top: 50%; transform: translateY(-50%); }
.dctc-kf-rt { right: 20px; top: 50px; }
.dctc-kf-lb { left: 20px; bottom: 50px; }
.dctc-kf-lc { left: 20px; top: 50%; transform: translateY(-50%); }
.dctc-kf-lt { left: 20px; top: 50px; }

/* 图标条（对齐多合一客服展开模式） */
.dctc-kf-bar {
	width: var(--dctc-kf-size);
	box-shadow: 2px 2px 8px rgba(0, 0, 0, .25);
	border-radius: 3px;
	overflow: visible;
}
.dctc-kf-bar.dctc-kf-fillet {
	border-radius: 24px;
}
.dctc-kf-bar.dctc-kf-fillet .dctc-kf-el:first-child {
	border-radius: 24px 24px 0 0;
}
.dctc-kf-bar.dctc-kf-fillet .dctc-kf-el:last-child {
	border-radius: 0 0 24px 24px;
}
.dctc-kf-el {
	position: relative;
	width: 100%;
	height: var(--dctc-kf-size);
	background: var(--dctc-kf-bg);
	transition: background-color .2s ease;
}
.dctc-kf-el:first-child { border-radius: 3px 3px 0 0; }
.dctc-kf-el:last-child { border-radius: 0 0 3px 3px; }
.dctc-kf-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	cursor: pointer;
	color: #666;
}
.dctc-kf-btn .dctc-kf-icon {
	width: 40%;
	height: 40%;
}
.dctc-kf-el:hover {
	background: var(--dctc-kf-theme);
	z-index: 2;
}
.dctc-kf-el:hover .dctc-kf-btn {
	color: #fff;
}
.dctc-kf-pop {
	position: absolute;
	top: 50%;
	right: 100%;
	padding-right: 14px;
	opacity: 0;
	visibility: hidden;
	transform: translate(10px, -50%);
	transition: transform .25s ease, opacity .25s ease, visibility 0s .25s;
	z-index: 3;
	pointer-events: none;
}
.dctc-kf-lb .dctc-kf-pop,
.dctc-kf-lc .dctc-kf-pop,
.dctc-kf-lt .dctc-kf-pop {
	right: auto;
	left: 100%;
	padding-right: 0;
	padding-left: 14px;
	transform: translate(-10px, -50%);
}
.dctc-kf-el:hover .dctc-kf-pop {
	opacity: 1;
	visibility: visible;
	transform: translate(0, -50%);
	transition-delay: 0s;
	pointer-events: auto;
}
.dctc-kf-rb .dctc-kf-el:last-child .dctc-kf-pop,
.dctc-kf-lb .dctc-kf-el:last-child .dctc-kf-pop {
	top: auto;
	bottom: 0;
	transform: translate(10px, 0);
}
.dctc-kf-lb .dctc-kf-el:last-child .dctc-kf-pop {
	transform: translate(-10px, 0);
}
.dctc-kf-rb .dctc-kf-el:last-child:hover .dctc-kf-pop,
.dctc-kf-lb .dctc-kf-el:last-child:hover .dctc-kf-pop {
	transform: translate(0, 0);
}
.dctc-kf-rb .dctc-kf-el:last-child .dctc-kf-pop-inner::after,
.dctc-kf-lb .dctc-kf-el:last-child .dctc-kf-pop-inner::after {
	top: auto;
	bottom: 11px;
	transform: rotate(45deg);
}
.dctc-kf-pop-inner {
	position: relative;
	min-width: 140px;
	padding: 16px;
	background: var(--dctc-kf-bg);
	border-radius: 3px;
	box-shadow: 2px 2px 8px rgba(0, 0, 0, .25);
	color: var(--dctc-kf-text);
}
.dctc-kf-pop-inner::after {
	content: "";
	position: absolute;
	top: 50%;
	right: -6px;
	width: 12px;
	height: 12px;
	background: var(--dctc-kf-bg);
	transform: translateY(-50%) rotate(45deg);
	box-shadow: 2px -1px 4px rgba(0, 0, 0, .08);
}
.dctc-kf-lb .dctc-kf-pop-inner::after,
.dctc-kf-lc .dctc-kf-pop-inner::after,
.dctc-kf-lt .dctc-kf-pop-inner::after {
	right: auto;
	left: -6px;
	box-shadow: -1px 2px 4px rgba(0, 0, 0, .08);
}

.dctc-kf-row {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--dctc-kf-text);
	text-decoration: none;
	padding: 4px 0;
}
.dctc-kf-row + .dctc-kf-row,
.dctc-kf-qr + .dctc-kf-qr {
	border-top: 1px solid #ececec;
	margin-top: 10px;
	padding-top: 10px;
}
.dctc-kf-row:hover {
	color: var(--dctc-kf-theme);
	text-decoration: none;
}
.dctc-kf-row .dctc-kf-icon {
	flex: 0 0 16px;
	color: var(--dctc-kf-theme);
}
.dctc-kf-type-wx .dctc-kf-row .dctc-kf-icon { color: #12b95e; }
.dctc-kf-type-qq .dctc-kf-row .dctc-kf-icon { color: #11b7f5; }
.dctc-kf-type-tel .dctc-kf-row .dctc-kf-icon { color: #12b95e; }
.dctc-kf-type-telegram .dctc-kf-row .dctc-kf-icon { color: #29b6f6; }
.dctc-kf-row-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.dctc-kf-label {
	color: var(--dctc-kf-muted);
}
.dctc-kf-value {
	word-break: break-all;
}
.dctc-kf-qr {
	text-align: center;
}
.dctc-kf-qr img {
	display: block;
	width: 120px;
	max-width: 100%;
	height: auto;
	margin: 0 auto 6px;
}

/* 浮标 */
.dctc-kf-buoy .dctc-kf-buoy-btn {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 12px;
	border: 0;
	border-radius: 50px;
	background: var(--dctc-kf-bg);
	box-shadow: 2px 2px 8px rgba(0, 0, 0, .25);
	cursor: pointer;
	color: var(--dctc-kf-theme);
}
.dctc-kf-buoy-btn .dctc-kf-icon {
	width: 24px;
	height: 24px;
}
.dctc-kf-buoy-text {
	display: none;
	font-size: 12px;
	color: var(--dctc-kf-text);
}
.dctc-kf-dot {
	position: absolute;
	top: 4px;
	right: 0;
	width: 8px;
	height: 8px;
	background: #e2231a;
	border-radius: 50%;
}
.dctc-kf-mask {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .55);
	z-index: 99999;
}
.dctc-kf-panel {
	position: absolute;
	right: 0;
	bottom: 64px;
	width: 320px;
	max-width: calc(100vw - 24px);
	background: var(--dctc-kf-bg);
	border-radius: 10px;
	box-shadow: 2px 2px 8px rgba(0, 0, 0, .25);
	overflow: hidden;
	z-index: 3;
}
.dctc-kf-lb .dctc-kf-panel,
.dctc-kf-lc .dctc-kf-panel,
.dctc-kf-lt .dctc-kf-panel {
	right: auto;
	left: 0;
}
.dctc-kf-panel-head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 20px;
	background: #f4f9ff;
}
.dctc-kf-avatar {
	position: relative;
	width: 38px;
	height: 38px;
	border: 1px solid #b8d1ea;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--dctc-kf-theme);
	background: #fff;
	flex: 0 0 38px;
}
.dctc-kf-online {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 8px;
	height: 8px;
	background: #4ad504;
	border: 2px solid #fff;
	border-radius: 50%;
}
.dctc-kf-head-info { flex: 1; min-width: 0; }
.dctc-kf-name { font-weight: 700; color: #333; }
.dctc-kf-text { margin-top: 2px; color: #333; opacity: .5; }
.dctc-kf-close {
	border: 0;
	background: none;
	cursor: pointer;
	color: #999;
	padding: 4px;
}
.dctc-kf-panel-body {
	padding: 14px 20px 20px;
	max-height: 50vh;
	overflow: auto;
}
.dctc-kf-welcome {
	background: #f1f0f0;
	border-radius: 0 8px 8px 8px;
	padding: 10px 8px 14px;
	margin-bottom: 14px;
	color: var(--dctc-kf-text);
}
.dctc-kf-welcome p { margin: 0 0 .6em; }
.dctc-kf-welcome p:last-child { margin: 0; }
.dctc-kf-tools {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 12px;
}
.dctc-kf-tool {
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 5px;
	background: #ccc;
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}
.dctc-kf-tool.is-on,
.dctc-kf-tool:hover { filter: brightness(1.05); }
.dctc-kf-tool-qq,
.dctc-kf-tool-qq_group { background: #11b7f5; }
.dctc-kf-tool-wx { background: #12b95e; }
.dctc-kf-tool-tel { background: #0066cc; }
.dctc-kf-tool-email { background: #0088cc; }
.dctc-kf-tool-telegram { background: #29b6f6; }
.dctc-kf-tool-hours,
.dctc-kf-tool-link { background: #666; }
.dctc-kf-detail {
	background: #f1f0f0;
	border-radius: 2px 5px 5px 5px;
	padding: 10px 14px;
}
.dctc-kf-toast {
	position: fixed;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	z-index: 100001;
	background: rgba(0, 0, 0, .85);
	color: #fff;
	border-radius: 5px;
	padding: 10px 14px;
	max-width: 220px;
	text-align: center;
	pointer-events: none;
}

@media (max-width: 768px) {
	.dctc-kf-buoy.dctc-kf-open .dctc-kf-mask {
		display: block;
	}
	.dctc-kf-panel {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		width: 100%;
		max-width: none;
		border-radius: 10px 10px 0 0;
		z-index: 100000;
	}
}
