:root {
  /* 基础颜色 - 更新为n8n风格 */
  --primary-color: #3670fe;
  --primary-dark: #2255d9;
  --secondary-color: #333437;
  --accent-color: #ff9c41;
  
  /* GitHub风格颜色 */
  --github-blue: #0366d6;
  --github-hover-blue: #0679fc;
  --github-bg-dark: #24292e;
  
  /* 浅色主题 */
  --bg-color: #fafbfc;
  --card-bg: #fdfdfd;
  --text-color: #202124;
  --text-secondary: #5f6368;
  --border-color: #e8eaed;
  --input-bg: #ffffff;
  --shadow-color: rgba(9, 30, 66, 0.08);
  --hover-color: #f1f3f4;
  
  /* 固定颜色 */
  --success-color: #36b37e;
  --warning-color: #ffab00;
  --error-color: #ff5630;
  --info-color: #3670fe;
}

.dark-theme {
  --bg-color: #0f172a;
  --card-bg: #1e293b;
  --text-color: #e9edf1;
  --text-secondary: #94a3b8;
  --border-color: #334155;
  --input-bg: #1e293b;
  --shadow-color: rgba(0, 0, 0, 0.3);
  --hover-color: #334155;
  --accent-color: #ff9c41;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Noto Sans', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  transition: background-color 0.3s, color 0.3s;
}

/* App Container */
.app-container {
  display: flex;
  flex-direction: row; /* 左右布局 */
  min-height: calc(100vh - 70px);
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  gap: 24px;
}

/* Header - 现代化样式 */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 0;
  background-color: var(--card-bg);
  box-shadow: 0 1px 3px var(--shadow-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo i {
  font-size: 24px;
  color: var(--accent-color);
}

.logo h1 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-color);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-button {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.icon-button:hover {
  color: var(--primary-color);
  background-color: var(--hover-color);
}

/* Control Panel - 左侧控制面板 */
.control-panel {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 10px var(--shadow-color);
  display: flex;
  flex-direction: column;
  gap: 25px;
  width: 350px;
  flex-shrink: 0;
  height: auto;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  transition: box-shadow 0.3s ease;
}

.control-panel:hover {
  box-shadow: 0 4px 20px var(--shadow-color);
}

.key-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group label {
  font-size: 14px;
  color: var(--text-color);
  font-weight: 500;
}

.input-group input[type="text"],
.input-group input[type="password"] {
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--input-bg);
  color: var(--text-color);
  font-size: 14px;
  transition: all 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05) inset;
}

.input-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(54, 112, 254, 0.2);
}

.password-input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-container input {
  flex: 1;
  padding-right: 40px;
}

.password-input-container button {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: var(--text-secondary);
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-group label {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Template Section - n8n风格 */
.template-section h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-color);
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.template-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 12px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--card-bg);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.template-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background-color: var(--accent-color);
  transition: height 0.3s ease;
}

.template-card i {
  font-size: 26px;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.template-card h4 {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-color);
  transition: color 0.2s;
}

.template-card p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}

.template-card:hover {
  border-color: var(--primary-color);
}

.template-card:hover::before {
  height: 100%;
}

.template-card.selected {
  border-color: var(--primary-color);
  background-color: rgba(54, 112, 254, 0.05);
}

.template-card.selected::before {
  height: 100%;
}

/* Workflow Selector Styles */
.workflow-selector-section {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px var(--shadow-color);
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.workflow-card {
  display: flex;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--card-bg);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.workflow-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background-color: var(--accent-color);
  transition: height 0.3s ease;
}

.workflow-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow-color);
}

.workflow-card:hover::before {
  height: 100%;
}

.workflow-card.active {
  border-color: var(--primary-color);
  background-color: rgba(54, 112, 254, 0.05);
}

.workflow-card.active::before {
  height: 100%;
}

.workflow-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  margin-right: 16px;
  flex-shrink: 0;
}

.workflow-icon i {
  font-size: 24px;
}

.workflow-info {
  flex: 1;
}

.workflow-info h4 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--text-color);
  transition: color 0.2s;
}

.workflow-info p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0 0 8px 0;
}

.workflow-type {
  display: inline-block;
  padding: 2px 8px;
  background-color: rgba(54, 112, 254, 0.1);
  color: var(--primary-color);
  font-size: 11px;
  font-weight: 500;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.workflow-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.workflow-card.custom {
  border-style: dashed;
}

.workflow-card.custom .workflow-icon {
  background-color: rgba(151, 71, 255, 0.1);
  color: #9747ff;
}

.workflow-card.custom .workflow-type {
  background-color: rgba(151, 71, 255, 0.1);
  color: #9747ff;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-button, .secondary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  outline: none;
}

.primary-button {
  background-color: var(--primary-color);
  color: white;
  flex: 1;
  min-width: 120px;
  box-shadow: 0 2px 5px rgba(54, 112, 254, 0.3);
  position: relative;
  overflow: hidden;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.5px;
}



.primary-button:hover {
  background-color: var(--primary-dark);
}

/* 确保生成中状态文字可见 */
.primary-button .animated-spin + {
  color: rgba(255, 255, 255, 0.98);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  letter-spacing: 0.4px;
  font-weight: 600;
}

.secondary-button {
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--border-color);
  font-weight: 600;
}

.secondary-button:hover {
  background-color: var(--hover-color);
}

.primary-button:disabled, .secondary-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Editor Panel - 现代风格 */
.editor-panel {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 10px var(--shadow-color);
  transition: box-shadow 0.3s ease;
}

.editor-panel:hover {
  box-shadow: 0 4px 20px var(--shadow-color);
}

.editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.editor-header h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
}

.editor-actions {
  display: flex;
  gap: 12px;
}

#markdown-editor {
  flex: 1;
  width: 100%;
  padding: 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--input-bg);
  color: var(--text-color);
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 14px;
  line-height: 1.6;
  resize: none;
  transition: all 0.2s;
}

#markdown-editor:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(54, 112, 254, 0.2);
}

/* Result Panel - 现代风格 */
.result-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--card-bg);
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  overflow: hidden;
  border: 1px solid var(--border-color);
  animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
  from { transform: translate(-50%, -45%); opacity: 0; }
  to { transform: translate(-50%, -50%); opacity: 1; }
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background-color: var(--primary-color);
  color: white;
}

.result-header h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.result-header .icon-button {
  color: white;
}

.result-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.result-url-container {
  background-color: var(--hover-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  word-break: break-all;
  overflow: hidden;
}

.result-url-container a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

/* 隐藏元素 */
.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s, visibility 0.3s;
}

/* 通知 - 现代风格 */
.notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: var(--card-bg);
  color: var(--text-color);
  padding: 12px 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.3s ease, opacity 0.3s ease;
  border-left: 4px solid var(--info-color);
}

.notification.hidden {
  transform: translateY(20px);
  opacity: 0;
}

.notification .icon {
  font-size: 20px;
}

.notification .icon.success {
  color: var(--success-color);
}

.notification .icon.error {
  color: var(--error-color);
}

.notification .icon.warning {
  color: var(--warning-color);
}

.notification .icon.info {
  color: var(--info-color);
}

/* 加载动画 - 现代风格 */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

.spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--accent-color);
  border-radius: 50%;
  animation: spin 1s ease-in-out infinite;
  margin-bottom: 24px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-overlay p {
  color: white;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
}

/* 模态框 - 现代风格 */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 1;
  transition: opacity 0.3s;
  backdrop-filter: blur(5px);
}

.modal.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-content {
  background-color: var(--card-bg);
  width: 90%;
  max-width: 600px;
  border-radius: 12px;
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  animation: modalFadeIn 0.3s;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--primary-color);
  color: white;
}

.modal-header h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: white;
}

.modal-header .icon-button {
  color: white;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
}

.modal-header .icon-button:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
}

.modal-body p {
  margin-bottom: 16px;
}

.modal-body ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.modal-body h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 20px 0 12px;
  color: var(--text-color);
}

.version-info {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
}

/* Responsive Design */
@media (max-width: 900px) {
  .app-container {
    flex-direction: column; /* 小屏幕上改为纵向排列 */
  }
  
  .control-panel {
    width: 100%; /* 小屏幕上占满宽度 */
  }

  .action-buttons {
    grid-template-columns: 1fr;
  }
  
  .primary-button {
    grid-column: span 1;
  }
}

/* 源代码模态框 */
.source-modal-content {
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
}

#source-code-display {
  background-color: var(--hover-color);
  padding: 16px;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 14px;
  line-height: 1.5;
  border-radius: 8px;
  overflow-x: auto;
  color: var(--text-color);
  border: 1px solid var(--border-color);
  max-height: 60vh;
  overflow-y: auto;
  white-space: pre-wrap;
}

#copy-source-btn {
  margin-right: 10px;
  font-size: 14px;
  padding: 8px 16px;
}

/* URL 输入区域 */
.url-section {
  margin-bottom: 8px;
}

.url-input-container {
  display: flex;
  align-items: center;
  width: 100%;
  position: relative;
  gap: 10px;
}

.url-input-container input {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--input-bg);
  color: var(--text-color);
  font-size: 14px;
  transition: all 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05) inset;
}

.url-input-container input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(54, 112, 254, 0.2);
}

#generate-from-url {
  white-space: nowrap;
  padding: 10px 16px;
  border-radius: 8px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  box-shadow: 0 2px 5px rgba(54, 112, 254, 0.3);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  letter-spacing: 0.4px;
}

#generate-from-url:hover {
  background-color: var(--primary-dark);
}

#generate-from-url:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

#generate-from-url i {
  font-size: 16px;
}

/* 响应式设计优化 */
@media (max-width: 900px) {
  .app-container {
    flex-direction: column;
  }
  
  .control-panel {
    width: 100%;
  }
  
  .action-buttons {
    justify-content: space-between;
  }
  
  .primary-button, .secondary-button {
    flex: auto;
  }
}

@media (max-width: 600px) {
  .source-modal-content {
    width: 95%;
    max-height: 80vh;
  }
  
  #source-code-display {
    font-size: 12px;
  }
  
  #copy-source-btn {
  padding: 6px 10px;
  font-size: 12px;
  color: var(--text-color) !important;
  font-weight: 600;
}
  
  .template-grid {
    grid-template-columns: 1fr;
  }
}

/* Hero区域样式 */
.hero-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: white;
  padding: 80px 0;
  overflow: hidden;
}

.hero-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero-text {
  flex: 1;
  max-width: 600px;
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.2;
  color: white;
}

.hero-text h2 {
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--accent-color);
}

.hero-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.8);
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-btn {
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.hero-btn.primary {
  background: linear-gradient(135deg, #4285f4 0%, #3670fe 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(66, 133, 244, 0.4);
}

.hero-btn.primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #3367d6 0%, #2255d9 100%);
  box-shadow: 0 6px 20px rgba(66, 133, 244, 0.5);
}

.hero-btn.secondary {
  background-color: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-btn.secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.hero-image {
  flex: 1;
  max-width: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightning-icon {
  font-size: 8rem;
  transform: rotate(20deg);
  filter: drop-shadow(0 0 20px rgba(255, 156, 65, 0.6));
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: rotate(20deg) translateY(0); }
  50% { transform: rotate(20deg) translateY(-15px); }
}

/* Features区域样式 */
.features-section {
  padding: 80px 0;
  background-color: var(--bg-color);
}

.features-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.features-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 60px;
  color: var(--text-color);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.feature-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 12px var(--shadow-color);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--border-color);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px var(--shadow-color);
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-color);
}

.feature-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
}

/* 响应式设计 - Hero和Features */
@media (max-width: 1200px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-text {
    max-width: 100%;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-text h1 {
    font-size: 2.5rem;
  }
  
  .hero-text h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-text h1 {
    font-size: 2rem;
  }
  
  .hero-text h2 {
    font-size: 1.5rem;
  }
  
  .hero-section {
    padding: 50px 0;
  }
  
  .features-section {
    padding: 50px 0;
  }
}

/* 页脚样式 */
.app-footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding: 60px 0 30px;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

.footer-column h3 {
  color: white;
  font-size: 1rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li {
  margin-bottom: 12px;
}

.footer-column a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
  font-size: 0.9rem;
}

.footer-column a:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid #334155;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo i {
  font-size: 24px;
  color: var(--accent-color);
}

.footer-logo span {
  font-size: 18px;
  font-weight: 600;
  color: white;
}

.footer-copyright {
  font-size: 0.9rem;
}

/* 页脚响应式 */
@media (max-width: 900px) {
  .footer-columns {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 600px) {
  .footer-columns {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

/* GitHub链接样式 */
.github-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #4285f4;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.github-link i {
  font-size: 20px;
}

.github-link:hover {
  background-color: rgba(66, 133, 244, 0.1);
  transform: translateY(-1px);
}

.dark-theme .github-link {
  color: #6fa8ff;
}

/* 在小屏幕上隐藏GitHub链接文字，只显示图标 */
@media (max-width: 768px) {
  .github-link span {
    display: none;
  }
}

/* 工作流文章生成功能 */
.workflow-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 5px;
}

.workflow-section h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-color);
}

.input-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.workflow-section textarea {
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--input-bg);
  color: var(--text-color);
  font-size: 14px;
  transition: all 0.2s;
  resize: vertical;
  min-height: 80px;
  width: 100%;
  font-family: inherit;
}

.workflow-section textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(54, 112, 254, 0.2);
}

.workflow-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 8px;
}

/* 为AI生成按钮添加特定样式 */
#generate-article-btn {
  width: auto;
  min-width: 100px;
  padding: 8px 15px;
  flex-shrink: 0;
  background-color: var(--github-blue);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  letter-spacing: 0.3px;
}

/* 优化按钮内图标显示 */
#generate-article-btn i,
#generate-from-url i,
.github-style-button i,
.primary-button i {
  color: white !important;
  font-size: 16px;
  opacity: 1;
}

/* 优化按钮文字显示 */
#generate-article-btn span,
#generate-from-url span,
.github-style-button span,
.primary-button span {
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  font-weight: 600;
  letter-spacing: 0.3px;
}

.workflow-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 14px;
  transition: opacity 0.3s ease;
  flex-grow: 1;
}

.workflow-status.hidden {
  opacity: 0;
  pointer-events: none;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--text-secondary);
  display: inline-block;
}

.status-dot.active {
  background-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(54, 112, 254, 0.2);
  animation: pulse 1.5s infinite;
}

.status-dot.completed {
  background-color: var(--success-color);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(54, 112, 254, 0.4);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(54, 112, 254, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(54, 112, 254, 0);
  }
}

.animated-spin {
  animation: spin 1s linear infinite;
  color: white !important;
  opacity: 1;
}

/* 为标题添加动画效果 */
.animated-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--github-blue);
  margin-bottom: 8px;
  transition: color 0.2s;
}

.animated-title:hover {
  color: var(--github-hover-blue);
}

/* URL部分的标题大小与文章生成一致 */
.url-section .animated-title {
  font-size: 16px;
}

@keyframes gradient-shift {
  0% {
    background-position: 0% center;
  }
  50% {
    background-position: 100% center;
  }
  100% {
    background-position: 0% center;
  }
}

/* 当鼠标悬停时添加微小的放大效果 */
.animated-title:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

/* GitHub风格的按钮 */
.github-style-button {
  background-color: var(--github-blue);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  letter-spacing: 0.3px;
}

.github-style-button:hover {
  background-color: var(--github-hover-blue);
}

/* 修改主按钮样式为GitHub风格 */
#generate-from-url,
#generate-article-btn {
  color: white;
}

#generate-from-url:hover,
#generate-article-btn:hover {
  background-color: var(--github-hover-blue);
  color: white;
}

.template-section .animated-title {
  color: var(--github-blue);
}
/* 模板选择标题 */
.template-section .animated-title {
  color: var(--github-blue);
}

/* 自定义工作流表单样式 */
#custom-workflow-modal .modal-content {
  max-width: 600px;
  width: 90%;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: var(--text-color);
  font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
  background-color: var(--input-bg);
  color: var(--text-color);
  transition: all 0.2s ease;
  box-sizing: border-box;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group small {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.form-actions button {
  min-width: 120px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  font-size: 14px;
}

.form-actions .secondary-button {
  background-color: var(--card-bg);
  color: var(--text-color);
  border: 2px solid var(--border-color);
}

.form-actions .secondary-button:hover {
  background-color: var(--hover-color);
  border-color: var(--text-secondary);
}

.form-actions .primary-button {
  background-color: var(--primary-color);
  color: white;
}

.form-actions .primary-button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.form-actions .primary-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* 表单验证样式 */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group .error-message {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: #ef4444;
  line-height: 1.4;
}

/* 自定义工作流卡片删除按钮 */
.workflow-card.custom .delete-workflow-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: rgba(239, 68, 68, 0.9);
  color: white;
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: all 0.2s ease;
  z-index: 10;
}

.workflow-card.custom:hover .delete-workflow-btn {
  display: flex;
}

.workflow-card.custom .delete-workflow-btn:hover {
  background-color: #dc2626;
  transform: scale(1.1);
}

/* 旋转动画 */
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.rotating {
  animation: rotate 1s linear infinite;
}
