/* 模态框样式 */
.modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 1000;
	justify-content: center;
	align-items: center;
}

.modal-content {
	background: white;
	border-radius: 15px;
	padding: 30px;
	max-width: 600px;
	width: 90%;
	max-height: 80vh;
	overflow-y: auto;
	position: relative;
}

.modal-close {
	position: absolute;
	top: 15px;
	right: 20px;
	font-size: 28px;
	font-weight: bold;
	color: #999;
	cursor: pointer;
	line-height: 1;
}

.modal-close:hover {
	color: #333;
}

.modal-body {
	min-height: 200px;
}

.modal-checkbar {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.checkbox-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 10px;
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.2s;
}

.checkbox-item:hover {
	background: #f5f5f5;
}

.checkbox-item input[type="checkbox"] {
	width: 18px;
	height: 18px;
	cursor: pointer;
}

.checkbox-item span {
	font-size: 0.95em;
	color: #333;
	user-select: none;
}

.modal-custom-input {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid #e0e0e0;
}

.modal-custom-input label {
	display: block;
	font-size: 0.9em;
	font-weight: 600;
	color: #333;
	margin-bottom: 8px;
}

.modal-custom-input textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 0.95em;
	line-height: 1.5;
	height: 3em;
	resize: vertical;
	font-family: inherit;
	transition: border-color 0.2s;
}

.modal-custom-input textarea:focus {
	outline: none;
	border-color: #666;
}

.modal-actions {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid #e0e0e0;
	display: flex;
	gap: 12px;
	justify-content: flex-end;
}

.modal-btn {
	padding: 10px 20px;
	border: none;
	border-radius: 8px;
	font-size: 0.95em;
	cursor: pointer;
	transition: all 0.2s;
	font-weight: 500;
}

.modal-btn-clear {
	background: #f5f5f5;
	color: #666;
}

.modal-btn-clear:hover {
	background: #e0e0e0;
	color: #333;
}

.modal-btn-save {
	background: #007bff;
	color: white;
}

.modal-btn-save:hover {
	background: #0056b3;
}
