a,
a.link,
a.visited,
a.active {
	color: #585858;
	text-decoration: none;
}

body {
	font-family: "Microsoft YaHei", Arial, sans-serif;
	margin: 20px;
	background-color: #f5f5f5;
	color: #333;
}


.logo {
	top: 0;
	left: 0;
	position: fixed;
	margin: 50px;
}

.logo img {
	width: 52px;
}



.container {
	max-width: 1000px;
	margin: 0 auto;
	background-color: white;
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.footer {
	max-width: 1000px;
	margin: 0 auto;
text-align: center; 
font-size: 12px;
	padding: 20px;
}

h1 {
	text-align: center;
	color: #333;
	margin-bottom: 30px;
	margin-top: 60px;
}

.editor-controls {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-bottom: 20px;
}

button {
	padding: 10px 15px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	transition: background-color 0.3s;
}

button.primary {
	background-color: #4CAF50;
	color: white;
}

button.secondary {
	background-color: #FF9800;
	color: white;
}

button.danger {
	background-color: #f44336;
	color: white;
}

button.small {
	padding: 5px 10px;
	font-size: 20px;
}

.section {
	margin-bottom: 25px;
	padding: 20px;
	border: 1px solid #ddd;
	border-radius: 6px;
	background-color: #fafafa;
}

.section-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 15px;
	padding-bottom: 10px;
	border-bottom: 1px solid #eee;
}

.section-title {
	margin: 0;
	color: #444;
}

.global-status {
	display: flex;
	align-items: center;
	gap: 10px;
}

.switch {
	position: relative;
	display: inline-block;
	width: 60px;
	height: 34px;
}

.switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ccc;
	transition: .4s;
	border-radius: 34px;
}

.slider:before {
	position: absolute;
	content: "";
	height: 26px;
	width: 26px;
	left: 4px;
	bottom: 4px;
	background-color: white;
	transition: .4s;
	border-radius: 50%;
}

input:checked + .slider {
	background-color: #4CAF50;
}

input:checked + .slider:before {
	transform: translateX(26px);
}

.commands-container {
	margin-left: 20px;
	padding-left: 20px;
	border-left: 2px solid #ddd;
}

.command-item {
	display: flex;
	align-items: center;
	margin-bottom: 12px;
	padding: 12px;
	background-color: white;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
	position: relative;
}

.command-item:hover {
	border-color: #2196F3;
	box-shadow: 0 2px 8px rgba(33, 150, 243, 0.15);
}

.command-fields {
	flex: 1;
	display: flex;
	gap: 10px;
	align-items: center;
}

.field-group {
	display: flex;
	align-items: center;
	gap: 5px;
}

.field-group label {
	font-size: 14px;
	color: #555;
}

.field-group input {
	padding: 8px;
	border: 1px solid #ddd;
	border-radius: 4px;
	width: 160px;
	font-size: 14px;
}

.command-actions {
	display: flex;
	gap: 6px;
	margin-left: 10px;
}

.repeat-container {
	margin-top: 15px;
	padding: 15px;
	background-color: #f8f9fa;
	border: 1px dashed #2196F3;
	border-radius: 6px;
	width: 100%;
}

.repeat-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
	color: #1976D2;
}

.repeat-title {
	margin: 0;
	font-size: 16px;
	font-weight: bold;
}

.repeat-count {
	display: flex;
	align-items: center;
	gap: 5px;
}

.repeat-count input {
	width: 100px;
	padding: 6px;
	border: 1px solid #2196F3;
	border-radius: 4px;
	text-align: center;
}

.format-hint {
	font-size: 12px;
	color: #666;
	margin-left: 5px;
}

.json-output {
	margin-top: 30px;
	padding: 20px;
	background-color: #f0f0f0;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-family: 'Courier New', monospace;
	font-size: 14px;
	line-height: 1.5;
	white-space: pre-wrap;
	max-height: 400px;
	overflow-y: auto;
}

.error-message {
	color: #d32f2f;
	margin: 10px 0;
	padding: 10px;
	background-color: #ffebee;
	border-radius: 4px;
	border: 1px solid #ffcdd2;
}

.success-message {
	color: #388e3c;
	margin: 10px 0;
	padding: 10px;
	background-color: #e8f5e8;
	border-radius: 4px;
	border: 1px solid #c8e6c9;
}

.loading-message {
	color: #1976D2;
	margin: 10px 0;
	padding: 10px;
	background-color: #e3f2fd;
	border-radius: 4px;
	border: 1px solid #bbdefb;
}

.add-repeat-btn {
	background-color: #1976D2;
	color: white;
	border: none;
	padding: 8px 12px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 13px;
	margin-left: 10px;
}

.nested-commands {
	margin-left: 20px;
	padding-left: 20px;
	border-left: 2px solid #2196F3;
}

.insert-btn {
	background-color: #2196F3;
	color: white;
}

.section-add-btn {
	margin-top: 10px;
}

.spanshebei {
	display: inline-block;
	width: 26px;
	height: 26px;
	line-height: 26px;
	text-align: center;
	border: 1px solid #ccc;
	cursor: pointer;
	user-select: none;
	font-weight: bold;
	font-size: 18px;
	border-radius: 8px;
	background-color: #f9f9f9;
}

.spanshebei.active {
	background-color: #4CAF50;
	color: white;
	border-color: #4CAF50;
}
    
    


/* 固定在底部的消息区域 */
#messageContainer {
	position: fixed;
	bottom: 0;
	left: 0;
	padding: 15px;
	z-index: 1000;
	pointer-events: none;
 /* 允许点击穿透 */
	display: flex;
	justify-content: center;
}

#messageArea {
	pointer-events: auto;
 /* 恢复点击能力 */
	max-width: 300px;
	width: 100%;
	transition: all 0.3s ease;
}

.error-message, .success-message, .loading-message {
	padding: 12px 20px;
	border-radius: 4px;
	margin-bottom: 10px;
	color: white;
	box-shadow: 0 2px 10px rgba(0,0,0,0.2);
	animation: slideUp 0.3s ease-out forwards;
}

.error-message {
	background-color: #d32f2f;
	border-left: 4px solid #b71c1c;
}

.success-message {
	background-color: #388e3c;
	border-left: 4px solid #2e7d32;
}

.loading-message {
	background-color: #1976D2;
	border-left: 4px solid #0d47a1;
}

@keyframes slideUp {
	from {
		transform: translateY(100%);
		opacity: 0;
	}

	to {
		transform: translateY(0);
		opacity: 1;
	}
}

pre {
	background: #eeeeee82;
	white-space: pre-wrap;
	word-wrap: break-word;
	border: 1px solid #ccc;
	margin-top: 20px;
	font-family: monospace;
	font-size: 14px;
	margin: 0 auto;
	border-radius: 8px;
}
