/* 评论直达按钮样式（桌面 + 移动端） */

#cjb-button.cjb-button {
	--cjb-bg: #ff7eb3;
	--cjb-bg-hover: #ff5e99;
	--cjb-color: #ffffff;

	position: fixed;
	right: 10px;
	bottom: 15px;
	z-index: 999998;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 0 16px;
	height: 48px;
	min-width: 48px;
	border: none;
	border-radius: 24px;
	cursor: pointer;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	color: var(--cjb-color);
	background: var(--cjb-bg);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
	transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
	-webkit-tap-highlight-color: transparent;
	user-select: none;
}

#cjb-button.cjb-button:hover,
#cjb-button.cjb-button:focus {
	background: var(--cjb-bg-hover);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.24);
}

#cjb-button.cjb-button:active {
	transform: translateY(0);
}

#cjb-button .cjb-text {
	display: inline-block;
	white-space: nowrap;
}

#cjb-button .cjb-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 9px;
	background: rgba(0, 0, 0, 0.25);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
}

/*
 * 评论按钮显示时，把主题自带的右下角按钮向上让位，避免重叠。
 * 用固定偏移（不依赖 JS 动态测量），保证移动端/桌面端都稳定。
 */
body.cjb-active #changskin {
	bottom: 73px !important;
}
body.cjb-active #moblieGoTop {
	bottom: 134px !important;
}

/* 移动端：略微缩小，主题按钮让位量相应调整 */
@media (max-width: 768px) {
	#cjb-button.cjb-button {
		right: 10px;
		bottom: 15px;
		height: 44px;
		padding: 0 14px;
		border-radius: 22px;
		font-size: 14px;
	}

	body.cjb-active #changskin {
		bottom: 69px !important;
	}
	body.cjb-active #moblieGoTop {
		bottom: 130px !important;
	}
}

/* 尊重系统「减少动画」偏好 */
@media (prefers-reduced-motion: reduce) {
	#cjb-button.cjb-button {
		transition: none;
	}
}
