/* ===============注册界面三级下拉框css样式==================== */
/* 三级级联下拉栏样式 */
.container-select {
	max-width: 100%;
	margin: 0 auto;
	background-color: white;
	padding: 30px;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}


/* 分类添加按钮 */
.add-category-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.3vw;
	background: linear-gradient(135deg, #949494 0%, #e4e4e4 100%);
	color: #8e8e8eb8;
	border-radius: 0.2vw;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
	user-select: none;
	font-size: 0.8vw;
	font-weight: 700;

}

.add-category-btn.cilke {
	background: linear-gradient(135deg, #70b556 0%, #185852 100%);
	color: white;
}

.add-category-btn.cilke:hover {
	transform: translateY(-5px);
}



/* 全局搜索框 */
.global-search {
	margin-bottom: 25px;
	position: relative;
}

.global-search label {
	display: block;
	margin-bottom: 0.5vw;
	color: #000000;
	font-size: 1vw;
	font-weight: 500;
}

.global-search-input {
	position: relative;
	width: 100%;
}

.global-search-input input {
	width: 93%;
	padding: 12px 15px 12px 40px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 15px;
	transition: all 0.2s ease;
}

.global-search-input input:focus {
	outline: none;
	border-color: #4096ff;
	box-shadow: 0 0 0 2px rgba(64, 150, 255, 0.2);
}

/* 全局搜索结果下拉框 */
.global-search-results {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	margin-top: 5px;
	background-color: white;
	border: 1px solid #ddd;
	border-radius: 6px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	z-index: 200;
	/* 确保在级联选择器下拉框之上 */
	max-height: 300px;
	overflow-y: auto;
	display: none;
}

.global-search-results.show {
	display: block;
}

.search-result-group {
	padding: 8px 15px;
	border-bottom: 1px solid #f0f0f0;
}

.search-result-group-title {
	font-size: 12px;
	color: #999;
	margin-bottom: 5px;
}

.search-result-items {
	list-style: none;
}

.search-result-item {
	padding: 8px 10px;
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.2s;
	font-size: 14px;
	display: flex;
	align-items: center;
}

.search-result-item:hover {
	background-color: #f5f7fa;
}

.search-result-item .path {
	color: #999;
	font-size: 12px;
	margin-left: 8px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	flex: 1;
}

.search-result-item .highlight {
	color: #4096ff;
	font-weight: 500;
}

/* 选择器容器 */
.cascader-wrapper {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-bottom: 20px;
}

.cascader-level {
	flex: 1;
}

.cascader-level label {
	display: block;
	margin-bottom: 0.5vw;
	color: #000000;
	font-size: 1vw;
	font-weight: 500;
}

/* 输入框样式 */
.search-input {
	position: relative;
	width: 95%;
}

.search-input input {
	width: 100%;
	padding: 0.3vw 0.1vw;
	border: 0.1vw solid #ddd;
	border-radius: 0.3vw;
	font-size: 0.6vw;
	transition: all 0.2s ease;
	background-color: #f9f9f9;
}

.search-input input:focus {
	outline: none;
	border-color: #4096ff;
	box-shadow: 0 0 0 2px rgba(64, 150, 255, 0.2);
}

.search-input input:disabled {
	background-color: #f5f5f5;
	cursor: not-allowed;
	color: #999;
}

.search-icon {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: #999;
	width: 18px;
	height: 18px;
}

/* 下拉框样式 */
.dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	margin-top: 5px;
	background-color: white;
	border: 1px solid #ddd;
	border-radius: 6px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	z-index: 100;
	max-height: 250px;
	overflow-y: auto;
	display: none;
}

.dropdown.show {
	display: block;
}

.option-list {
	list-style: none;
}

.option-item {
	padding: 10px 15px;
	cursor: pointer;
	transition: background-color 0.2s;
	font-size: 0.8vw;
	font-weight: 500;
}

.option-item:hover {
	background-color: #f5f7fa;
}

.option-item.active {
	background-color: #e8f3ff;
	color: #4096ff;
}

/* 加载状态 */
.loading {
	padding: 15px;
	text-align: center;
	display: none;
}

.loading.show {
	display: block;
}

.spinner {
	width: 20px;
	height: 20px;
	border: 2px solid #eee;
	border-top-color: #4096ff;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin: 0 auto;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

/* 空状态 */
.empty {
	padding: 15px;
	text-align: center;
	color: #999;
	font-size: 14px;
	display: none;
}

.empty.show {
	display: block;
}

/* 已选信息 */
.selected-info {
	margin-top: 8px;
	font-size: 14px;
	color: #666;
}

.selected-value {
	color: #4096ff;
	margin-left: 5px;
}

/* 结果展示 */

.result-div {
	display: inline-flex;
	align-items: center;
	padding: 0.2vw;
	border-radius: 5%;
	font-size: 0.7vw;
	flex-direction: row;
	width: 92%;
	justify-content: space-between;
	font-size: 1vw;
	font-weight: 700;
}

.result {
	/* margin-top: 30px; */
	padding: 0.2vw;
	background-color: #f5f7fa;
	border-radius: 5%;
	font-size: 0.7vw;
}

.result-title {
	font-size: 14px;
	color: #666;
	margin-bottom: 8px;
}

.result-content {
	font-size: 15px;
	color: #333;
}

/* 选择分类添加的标签样式 */
.category-tag {
	font-size: 1vw;
}

.remove-tag {
	color: #ff0000;
	font-size: 1.5vw;
	display: inline-block;
	/* 确保旋转动画正常工作 */
	transition: transform 0.5s ease;
	/* 平滑过渡效果 */
}

/* 鼠标悬浮时旋转360度 */
.remove-tag:hover {
	transform: rotate(360deg);
}

/* 响应式调整 */
@media (min-width: 768px) {
	.cascader-wrapper {
		flex-direction: row;
		gap: 15px;
	}
}