.app-layout {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-header {
  background: var(--background-color);
  border-bottom: 1px solid var(--border-color);
  padding: 0 var(--spacing-lg);
  box-shadow: var(--shadow-sm);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.app-title {
  color: var(--text-color);
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.app-title svg {
  margin-right: 8px;
}

.app-content {
  flex: 1;
  padding: 0;
  display: flex;
  flex-direction: column;
  background: var(--background-secondary);
}

.toolbar {
  padding: var(--spacing-md) var(--spacing-lg);
  border-bottom: 1px solid var(--border-color);
  background: var(--background-color);
}

.editor-container {
  flex: 1;
  display: flex;
  gap: 1px;
  background: var(--border-color);
}

.editor-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: white;
}

.editor-title {
  padding: 12px 24px;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid #f0f0f0;
  background: #fafafa;
  color: #333;
}

.editor-section .monaco-editor {
  flex: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .app-header {
    padding: 0 16px;
  }
  
  .app-title {
    font-size: 16px;
  }
  
  .toolbar {
    padding: 12px 16px;
  }
  
  .editor-title {
    padding: 8px 16px;
  }
  
  .editor-container {
    flex-direction: column;
  }
  
  .editor-section {
    height: 50vh;
  }
}

/* 按钮样式优化 */
.ant-btn {
  border-radius: 6px;
  font-weight: 500;
}

.ant-btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
}

.ant-btn-primary:hover {
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 工具栏按钮间距 */
.toolbar .ant-space {
  width: 100%;
  justify-content: center;
}

@media (max-width: 768px) {
  .toolbar .ant-space {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 8px;
  }
}