/* ============================================================
   workbench.css — 单页创作工作台样式（叠加在 style.css 之上）
   ============================================================ */

/* 顶部：标题 + 自动演示按钮 横排 */
.wb-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.btn-auto {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: all 0.15s;
}
.btn-auto:hover { background: #fff; color: var(--primary); }

/* 真实生成按钮（紫色渐变，表示真实 API 链路） */
.btn-real {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.btn-real:hover { filter: brightness(1.12); transform: translateY(-1px); }
.btn-real:disabled { opacity: 0.5; cursor: not-allowed; }

/* 真实生成命令弹窗 */
.real-cmd-hint { font-size: 13px; color: #666; margin-bottom: 8px; line-height: 1.5; }
.real-cmd {
  background: #0f172a;
  color: #7dd3fc;
  padding: 12px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.5;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
  margin: 0 0 10px;
}

/* 4 阶段进度条 */
.wb-stages {
  display: flex;
  list-style: none;
  margin-top: 14px;
}
.wb-stage {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  opacity: 0.55;
  transition: opacity 0.2s;
  font-size: 12px;
  font-weight: 600;
}
.wb-stage .dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
}
.wb-stage.active { opacity: 1; }
.wb-stage.active .dot { background: #fff; color: var(--primary); }
.wb-stage.done { opacity: 0.8; }
.wb-stage.done .dot { background: rgba(255, 255, 255, 0.55); }
.wb-stage + .wb-stage::before {
  content: ""; flex: 1; height: 2px; background: rgba(255, 255, 255, 0.3);
  margin: 0 6px;
}

/* 工作台主体 */
.wb-main { max-width: 720px; margin: 0 auto; padding: 18px 16px 90px; }

.wb-section {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.wb-section-title {
  font-size: 16px; font-weight: 800;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

/* 竖向单列布局（参数从上到下依次排列） */
.wb-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

/* 素材区 */
.wb-assets { grid-template-columns: repeat(3, 1fr); margin-top: 4px; }

/* 大按钮 */
.btn-big { width: 100%; padding: 14px; font-size: 16px; }

/* 成品信息行 */
.deliver-info-line {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-sub);
  text-align: center;
  line-height: 1.6;
}

/* 完成通知开关 */
.push-bar {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-sub);
}
.push-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}
.push-toggle input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent, #6d28d9);
}
.push-note { color: var(--text-sub); opacity: 0.8; }
