/* xiunox_icon_gallery */

/* 搜索框内联放大镜 */
.icon-gallery-search { position: relative; }
.icon-gallery-search > i {
	position: absolute; left: .75rem; top: 50%; transform: translateY(-50%);
	color: var(--bs-secondary-color); z-index: 2; pointer-events: none;
}
.icon-gallery-search .form-control { padding-left: 2.25rem; }

/* 分类按钮内计数小徽标 */
.icon-gallery-filters .badge {
	font-weight: normal; font-size: .7em; vertical-align: baseline;
	color: inherit; background: rgba(var(--bs-emphasis-color-rgb), .08);
}
.icon-gallery-filters .btn.active .badge { color: inherit; background: rgba(255,255,255,.22); }

/* 图标网格 */
.icon-gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
	gap: .75rem;
}

/* 单个图标项 */
.icon-gallery-item {
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	gap: .5rem; padding: .8rem .5rem; text-align: center;
	border: 1px solid var(--bs-border-color); border-radius: .5rem;
	background: var(--bs-card-bg, #fff); cursor: pointer;
	transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease, background-color .15s ease;
}
.icon-gallery-item:hover {
	border-color: var(--bs-primary);
	box-shadow: 0 3px 10px rgba(13,110,253,.12);
	transform: translateY(-2px);
	background: var(--bs-primary-bg-subtle);
}
.icon-gallery-svg { pointer-events: none; line-height: 1; }
.icon-gallery-name {
	font-size: .72rem; color: var(--bs-secondary-color);
	line-height: 1.2; max-width: 100%;
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.icon-gallery-item:hover .icon-gallery-name { color: var(--bs-primary); }