/* 基础样式 */
body {
  background-color: #f7f8fa;
  margin: 0;
  font-family: 'Microsoft YaHei', Arial, sans-serif;
}

/* 工具容器 */
.table-structure-compare-app {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  width: 100%;
  box-sizing: border-box;
}

/* 工具标题 */
.tool-title {
  text-align: center;
  color: #333;
  margin-bottom: 30px;
  font-size: 24px;
}

/* 编辑器容器 */
.editor-container {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  width: 100%;
  box-sizing: border-box;
}

/* 编辑器行 */
.editor-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  width: 100%;
}

/* 编辑器列 */
.editor-column {
  flex: 1;
  width: 50%;
}

/* 编辑器标题 */
.editor-title {
  color: #333;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 600;
}

/* 编辑器主体 */
.editor-main {
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  width: 100%;
}

/* CodeMirror编辑器 */
.CodeMirror {
  height: 300px; /* 调整为当前高度的一半 */
  border-radius: 4px;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.5;
  width: 100%;
}

/* 结果编辑器 */
.result-editor .CodeMirror {
  height: 200px;
  margin-top: 10px;
  width: 100%;
}

/* 工具栏 */
.editor-toolbar {
  margin: 20px 0;
  text-align: center;
  width: 100%;
}

/* 工具栏部分 */
.toolbar-section {
  display: inline-block;
}

/* 工具栏按钮 */
.toolbar-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  margin: 0 5px;
}

/* 主要按钮 */
.toolbar-btn.primary {
  background-color: #007bff;
  color: white;
}

.toolbar-btn.primary:hover {
  background-color: #0069d9;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

/* 次要按钮 */
.toolbar-btn.secondary {
  background-color: #6c757d;
  color: white;
}

.toolbar-btn.secondary:hover {
  background-color: #5a6268;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

/* 工具说明 */
.tool-description {
  margin-top: 30px;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 4px;
  border-left: 4px solid #007bff;
  width: 100%;
  box-sizing: border-box;
}

.tool-description h3 {
  color: #333;
  margin-top: 0;
  margin-bottom: 15px;
}

.tool-description ul {
  margin: 0;
  padding-left: 20px;
  color: #666;
}

.tool-description li {
  margin-bottom: 8px;
  line-height: 1.5;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
  .editor-row {
    flex-direction: column;
  }
  
  .editor-column {
    width: 100%;
  }
  
  .CodeMirror {
    height: 250px;
  }
  
  .result-editor .CodeMirror {
    height: 180px;
  }
  
  .table-structure-compare-app {
    padding: 10px;
  }
  
  .editor-container {
    padding: 15px;
  }
}