/* ============================================
   注意力工程 SaaS - 工作台样式
   ============================================ */

/* 工作台主体 */
.workbench {
  padding: 100px 40px 80px;
  background: #faf9f8;
  min-height: calc(100vh - 60px);
}

.workbench-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* 页面标题 */
.workbench-header {
  text-align: center;
  margin-bottom: 48px;
}

.workbench-header h1 {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.workbench-subtitle {
  font-size: 16px;
  color: #666;
  font-weight: 300;
}

/* 引擎切换 Tab */
.engine-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

.engine-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 28px 24px;
  background: #fff;
  border: 2px solid rgba(0,0,0,0.06);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}

.engine-tab:hover {
  border-color: rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.engine-tab.active {
  border-color: #c45a3d;
  background: rgba(196, 90, 61, 0.04);
}

.tab-icon {
  font-size: 32px;
  margin-bottom: 4px;
}

.tab-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
}

.tab-desc {
  font-size: 13px;
  color: #666;
}

/* 引擎面板 */
.engine-panel {
  display: none;
}

.engine-panel.active {
  display: block;
}

/* 面板网格 */
.panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 60px;
}

/* 输入区 */
.input-section {
  background: #fff;
  padding: 32px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.section-heading {
  font-family: 'Noto Serif SC', serif;
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 24px;
}

.required {
  color: #c45a3d;
}

/* 表单元素 */
.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  font-family: inherit;
  color: #333;
  background: #faf9f8;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 4px;
  transition: all 0.3s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: #c45a3d;
  background: #fff;
}

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

/* 单选/复选组 */
.radio-group,
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.radio-option,
.checkbox-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #faf9f8;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 4px;
  font-size: 14px;
  color: #555;
  cursor: pointer;
  transition: all 0.3s;
}

.radio-option:hover,
.checkbox-option:hover {
  background: #f5f3f0;
  border-color: rgba(0,0,0,0.12);
}

.radio-option input:checked,
.checkbox-option input:checked {
  accent-color: #c45a3d;
}

/* 生成按钮 */
.btn-generate {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  background: #c45a3d;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-generate:hover {
  background: #a84a32;
  transform: translateY(-1px);
}

.btn-icon {
  font-size: 18px;
}

/* 输出区 */
.output-section {
  background: #fff;
  padding: 32px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  min-height: 500px;
}

/* 占位符 */
.output-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 400px;
  text-align: center;
}

.placeholder-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.placeholder-text {
  font-size: 16px;
  color: #666;
  margin-bottom: 8px;
}

.placeholder-hint {
  font-size: 14px;
  color: #999;
}

/* 输出内容 */
.output-content {
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 输出卡片 */
.output-card {
  margin-bottom: 24px;
}

.output-card-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #c45a3d;
}

.output-card-content {
  font-size: 14px;
  color: #555;
  line-height: 1.8;
}

.output-card-content ul {
  list-style: none;
  padding-left: 0;
}

.output-card-content li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.output-card-content li:last-child {
  border-bottom: none;
}

.output-card-content strong {
  color: #1a1a1a;
  font-weight: 500;
}

/* 输出操作按钮 */
.output-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.btn-action {
  flex: 1;
  padding: 10px 16px;
  background: #faf9f8;
  color: #555;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 4px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-action:hover {
  background: #f5f3f0;
  border-color: rgba(0,0,0,0.12);
}

/* 历史方案 */
.history-section {
  background: #fff;
  padding: 32px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.history-list {
  margin-top: 20px;
}

.history-empty {
  text-align: center;
  padding: 40px;
  color: #999;
  font-size: 14px;
}

.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: #faf9f8;
  border-radius: 4px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.3s;
}

.history-item:hover {
  background: #f5f3f0;
  transform: translateX(4px);
}

.history-item-title {
  font-size: 14px;
  color: #333;
  font-weight: 500;
}

.history-item-date {
  font-size: 13px;
  color: #999;
}

/* 响应式 */
@media (max-width: 768px) {
  .workbench {
    padding: 80px 20px 60px;
  }
  
  .engine-tabs {
    grid-template-columns: 1fr;
  }
  
  .panel-grid {
    grid-template-columns: 1fr;
  }
  
  .output-actions {
    flex-direction: column;
  }
}
