* {
  margin: 0;
  padding: 0;
}

body {
  background-color: #f1f2f3;
}

.container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1540px;
  min-width: 1240px;
  margin: 25px auto;
  color: #333;
  display: flex;
  flex-direction: column;
}

.container * {
  box-sizing: border-box;
}

/* 头部样式 */
header {
  position: relative;
  margin-bottom: 20px;
  text-align: center;
}

header h1 {
  font-size: 32px;
  margin-bottom: 5px;
}

header p {
  font-size: 16px;
  line-height: 1.6;
}

.main-content {
	display: flex;
	gap: 20px;
	margin-bottom: 25px;
}

.input-section,
.output-section {
	flex: 1;
	background: white;
	border-radius: 10px;
	padding: 20px;
	box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.section-title {
	font-size: 1.3rem;
	font-weight: 600;
	margin-bottom: 20px;
	color: #444;
}

textarea {
	width: 100%;
	height: 400px;
	padding: 15px;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
	font-size: 14px;
	line-height: 1.5;
	resize: none;
	transition: border-color 0.3s ease;
}
/*textarea[data-input="main"] {
	height: 505px;
}*/
textarea:focus {
	outline: none;
	border-color: #667eea;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.buttons {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 20px;
}

button {
	padding: 12px 24px;
	border: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	gap: 8px;
}

button:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

button:active {
	transform: translateY(0);
}

.btn-primary {
	background-color: #667eea;
	color: white;
}

.btn-primary:hover {
	background-color: #5a67d8;
}

.btn-secondary {
	background-color: #48bb78;
	color: white;
}

.btn-secondary:hover {
	background-color: #38a169;
}

.btn-outline {
	background-color: white;
	color: #666;
	border: 2px solid #e0e0e0;
}

.btn-outline:hover {
	background-color: #f8f9fa;
	border-color: #667eea;
	color: #667eea;
}

.btn-danger {
	background-color: #f56565;
	color: white;
}

.btn-danger:hover {
	background-color: #e53e3e;
}

footer {
	background: white;
	border-radius: 10px;
	padding: 30px 20px;
	text-align: center;
	box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.footer-content {
	width: 100%;
	margin: 0 auto;
}

.footer-title {
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 20px;
	color: #444;
}

.footer-description {
	margin-bottom: 25px;
	color: #666;
	line-height: 1.8;
}

.features {
	display: flex;
	justify-content: space-around;
	margin-bottom: 30px;
	gap: 20px;
}

.feature {
	flex: 1;
	padding: 20px;
	background: #f8f9fa;
	border-radius: 8px;
	transition: transform 0.3s ease;
}

.feature:hover {
	background: #667eea;
	color: white;
}

.feature-icon {
	font-size: 2rem;
	margin-bottom: 10px;
}

.feature-title {
	font-weight: 600;
	margin-bottom: 8px;
}

.copyright {
	color: #999;
	font-size: 14px;
	padding-top: 20px;
	border-top: 1px solid #eee;
}

/* Toast提示样式 */
.toast {
	position: fixed;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%);
	background: #333;
	color: white;
	padding: 15px 30px;
	border-radius: 25px;
	font-size: 14px;
	font-weight: 500;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
	z-index: 1000;
}

.toast.show {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(-10px);
}

/* 错误显示样式 */
.error-display {
	color: #e53e3e;
	font-size: 14px;
	margin-top: 10px;
	padding: 10px;
	background: #fed7d7;
	border-radius: 6px;
	border-left: 4px solid #e53e3e;
	display: none;
}

.error-display:not(:empty) {
	display: block;
}

/* 选项区域样式 */
.options-section {
	background: white;
	border-radius: 10px;
	padding: 20px;
	margin-bottom: 25px;
	box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.options-title {
	font-size: 1.2rem;
	font-weight: 600;
	margin-bottom: 15px;
	color: #444;
}

.option-group {
	display: flex;
	gap: 30px;
	align-items: center;
	flex-wrap: wrap;
}

.option-item {
	display: flex;
	align-items: center;
	gap: 10px;
}

.option-item label {
	font-weight: 500;
	color: #555;
	font-size: 14px;
}

.option-item select,
.option-item input[type="number"] {
	padding: 8px 12px;
	min-width: 150px;
	border: 2px solid #e0e0e0;
	border-radius: 6px;
	font-size: 14px;
	background: white;
	cursor: pointer;
	transition: border-color 0.3s ease;
}

.option-item select:focus,
.option-item input[type="number"]:focus {
	outline: none;
	border-color: #667eea;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.option-item input[type="checkbox"] {
	width: 18px;
	height: 18px;
	cursor: pointer;
}

/* 统计信息样式 */
.stats-section {
	display: flex;
	gap: 20px;
	margin-top: 20px;
	background: #f8f9fa;
	padding: 15px;
	border-radius: 8px;
}

.stat-item {
	flex: 1;
	text-align: center;
}

.stat-value {
	font-size: 1.5rem;
	font-weight: 700;
	color: #667eea;
	margin-bottom: 5px;
}

.stat-label {
	font-size: 14px;
	color: #666;
}