* {
  margin: 0;
  padding: 0;
}

body {
  background: #f1f2f3;
}

.container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1560px;
  min-width: 1240px;
  margin: 25px auto;
  color: #333;
}

.container * {
  box-sizing: border-box;
}

header {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

header h1 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 10px;
}

header p {
  font-size: 16px;
  color: #7f8c8d;
  max-width: 95%;
  margin: 0 auto;
}
.main{
  width: 100%;
  display: flex;
  gap: 25px;
  margin-bottom: 25px;
}
/* 控制面板样式 */
.control-panel , .result-panel{
  flex: 1;
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.control-group {
  margin-bottom: 25px;
}

.control-group h2{
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 10px;
}

.input-group {
  margin-bottom: 18px;
}

.input-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #34495e;
}

select,
input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  background: #f9f9f9;
  transition: all 0.2s;
}

select:focus,
input:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

/* 按钮区域 */
.button-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 30px;
}

button {
  padding: 14px 20px;
  border: none;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-generate {
  background: #3498db;
  color: white;
  grid-column: 1 / -1;
}

.btn-generate:hover {
  background: #2980b9;
}

.btn-copy {
  background: #2ecc71;
  color: white;
}

.btn-copy:hover {
  background: #27ae60;
}

.btn-download {
  background: #9b59b6;
  color: white;
}

.btn-download:hover {
  background: #8e44ad;
}

.btn-clear {
  background: #e74c3c;
  color: white;
  grid-column: 1 / -1;
}

.btn-clear:hover {
  background: #c0392b;
}

/* 结果展示区 */
.result-panel{
  flex: 2;
}
.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.result-header h2 {
  font-size: 1.4rem;
  color: #2c3e50;
}

.result-content {
  flex: 1;
  overflow-y: auto;
  height: 570px;
  padding: 10px;
  border: 1px solid #eee;
  border-radius: 8px;
  background: #fafafa;
  font-size: 15px;
}

.result-text {
  font-size: 1.1rem;
  line-height: 1.8;
  white-space: pre-line;
  /* 保留空格和换行 */
}

.result-text p {
  margin-bottom: 1.5em;
  text-indent: 2em;
}

.result-text.chinese-simplified {
  font-family: 'Noto Sans SC', sans-serif;
}

.result-text.chinese-traditional {
  font-family: 'Noto Sans TC', sans-serif;
}

/* 文档区域 */
.documentation {
  grid-column: 1 / -1;
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.doc-section {
  margin-bottom: 20px;
}

.doc-section:last-child{
  margin-bottom: 0;
}

.doc-section h2 {
  font-size: 1.4rem;
  color: #2c3e50;
  margin-bottom: 15px;

}

.doc-section h3 {
  font-size: 1.1rem;
  color: #34495e;
  margin: 12px 0 6px;
}

.doc-section p {
  margin-bottom: 15px;
  color: #555;
  line-height: 1.7;
}

.doc-section ul {
  padding-left: 25px;
  margin-bottom: 20px;
}

.doc-section li {
  margin-bottom: 10px;
  color: #555;
}
