/*!
 * jmxkf_autotag 文章自动标签样式
 * 详情页标签胶囊复用话题标签同款 Bootstrap 类（badge bg-primary bg-opacity-10 text-primary），
 * 本文件仅保留：编辑操作按钮 + 集合页/检索页专属样式
 * 前缀：.jmxkf-autotag-*
 */

/* ===== 详情页操作按钮（作者/管理员，紧随标签胶囊之后，弱化不抢眼） ===== */
.jmxkf-autotag-actions {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	margin-left: 0.25rem;
	vertical-align: middle;
}

.jmxkf-autotag-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.5rem;
	height: 1.5rem;
	padding: 0;
	border: none;
	border-radius: 0.375rem;
	background: transparent;
	color: var(--bs-secondary-color, #6c757d);
	font-size: 0.8125rem;
	cursor: pointer;
	transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;
}

.jmxkf-autotag-btn:hover {
	background: rgba(13, 110, 253, 0.1);
	color: var(--bs-primary, #0d6efd);
}

.jmxkf-autotag-btn-danger:hover {
	background: rgba(239, 68, 68, 0.12);
	color: #dc2626;
}

/* ===== 集合页 / 检索页专属样式 ===== */
.jmxkf-autotag-headicon {
	background-color: rgba(139, 92, 246, 0.14) !important;
	color: #7c3aed;
}

.jmxkf-autotag-title {
	color: #6d28d9;
}

[data-bs-theme="dark"] .jmxkf-autotag-title,
.dark .jmxkf-autotag-title {
	color: #c4b5fd;
}

/* 标签胶囊（集合页标签云与全部标签列表） */
.jmxkf-autotag-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.125rem;
	padding: 0.2rem 0.625rem;
	border: 1px solid rgba(139, 92, 246, 0.55);
	border-radius: 999px;
	background: rgba(139, 92, 246, 0.1);
	color: #7c3aed;
	font-size: 0.8125rem;
	line-height: 1.4;
	text-decoration: none;
	transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.jmxkf-autotag-chip:hover,
.jmxkf-autotag-chip:focus {
	background: #8b5cf6;
	border-color: #8b5cf6;
	color: #fff;
	text-decoration: none;
}

[data-bs-theme="dark"] .jmxkf-autotag-chip,
.dark .jmxkf-autotag-chip {
	color: #c4b5fd;
	border-color: rgba(167, 139, 250, 0.5);
	background: rgba(139, 92, 246, 0.16);
}

[data-bs-theme="dark"] .jmxkf-autotag-chip:hover,
.dark .jmxkf-autotag-chip:hover {
	background: #8b5cf6;
	border-color: #8b5cf6;
	color: #fff;
}

.jmxkf-autotag-hash {
	opacity: 0.65;
	margin-right: 0.0625rem;
	font-weight: 700;
}

.jmxkf-autotag-count {
	opacity: 0.55;
	margin-left: 0.25rem;
	font-size: 0.75rem;
}

/* 移动端紧凑化 */
@media (max-width: 767.98px) {
	.jmxkf-autotag-chip {
		padding: 0.15rem 0.5rem;
		font-size: 0.75rem;
	}
}
