.workflow-list {
  padding: 20px;
}

.workflow-list .header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.workflow-list .header h1 {
  margin: 0;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.workflow-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
  transition: box-shadow 0.2s;
}

.workflow-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.workflow-card h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
  color: #333;
}

.workflow-card p {
  margin: 0 0 16px 0;
  color: #666;
  font-size: 14px;
  min-height: 40px;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #eee;
  padding-top: 12px;
}

.updated-at {
  font-size: 12px;
  color: #999;
}

.btn-primary, .btn-secondary, .btn-danger {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.btn-primary {
  background-color: #409eff;
  color: white;
}

.btn-secondary {
  background-color: #f5f5f5;
  color: #666;
}

.btn-danger {
  background-color: #f56c6c;
  color: white;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

.workflow-editor {
  height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.editor-header {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid #e0e0e0;
  background: white;
  z-index: 10;
}

.editor-header h2 {
  margin: 0 20px;
}

.editor-header .spacer {
  flex: 1;
}

.editor-container {
  flex: 1;
  overflow: hidden;
  position: relative;
  width: 100%;
  height: calc(100% - 57px); /* 减去header的高度 */
}

.workflow-editor-frame {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-color: #f0f0f0;
}

.workflow-editor-frame .wujie-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.workflow-editor-frame .loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  font-size: 18px;
  color: #999;
  background-color: white;
}