/**
 * 后台管理样式
 */

.naibabiji-gch-admin {
	max-width: 1200px;
}

.naibabiji-gch-admin-tabs .nav-tab-wrapper {
	margin-bottom: 1em;
}

.naibabiji-gch-admin-tabs .tab-content {
	display: none;
}

.naibabiji-gch-admin-tabs .tab-content.active {
	display: block;
}

.naibabiji-gch-contacts-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1em;
}

.naibabiji-gch-contacts-actions {
	display: flex;
	align-items: center;
	gap: 0.5em;
}

.naibabiji-gch-contacts-list {
	background: #fff;
	border: 1px solid #ccd0d4;
	border-radius: 4px;
}

.naibabiji-gch-contacts-sortable {
	list-style: none;
	margin: 0;
	padding: 0;
}

.naibabiji-gch-contact-row {
	display: flex;
	align-items: center;
	padding: 1em;
	border-bottom: 1px solid #eee;
	cursor: move;
}

.naibabiji-gch-contact-row:last-child {
	border-bottom: none;
}

.naibabiji-gch-contact-row.ui-sortable-helper {
	background: #f0f0f1;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.naibabiji-gch-contact-handle {
	margin-right: 1em;
	color: #787c82;
	cursor: move;
}

.naibabiji-gch-contact-icon {
	width: 32px;
	height: 32px;
	margin-right: 1em;
	display: flex;
	align-items: center;
	justify-content: center;
}

.naibabiji-gch-contact-icon svg {
	width: 24px;
	height: 24px;
	fill: currentColor;
}

.naibabiji-gch-contact-info {
	flex: 1;
}

.naibabiji-gch-contact-info strong {
	display: block;
	margin-bottom: 0.25em;
}

.naibabiji-gch-contact-type {
	color: #646970;
	font-size: 0.9em;
	margin-right: 0.5em;
}

.naibabiji-gch-contact-value {
	color: #646970;
	font-size: 0.9em;
}

.naibabiji-gch-contact-actions {
	display: flex;
	align-items: center;
	gap: 0.5em;
}

/* 模态框 */
.naibabiji-gch-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.naibabiji-gch-modal-content {
	background: #fff;
	border-radius: 4px;
	max-width: 600px;
	width: 90%;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.naibabiji-gch-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1em;
	border-bottom: 1px solid #eee;
}

.naibabiji-gch-modal-title {
	margin: 0;
}

.naibabiji-gch-modal-close {
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
	color: #646970;
	padding: 0;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.naibabiji-gch-modal-close:hover {
	color: #000;
}

.naibabiji-gch-contact-form {
	padding: 1em;
}

.naibabiji-gch-modal-footer {
	display: flex;
	justify-content: flex-end;
	gap: 0.5em;
	padding: 1em;
	border-top: 1px solid #eee;
}

.naibabiji-gch-empty {
	padding: 2em;
	text-align: center;
	color: #646970;
}

.required {
	color: #d63638;
}

