/* ui_ux_patch_h — 界面整体优化：步骤标题、审核进度、省钱入口、移动端 */

/* ── 步骤页标题 + 审核进度芯片 ── */
body.drama-premium .card-title-row .step-review-chip {
  margin-left: auto;
  padding: 3px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
  border-radius: 999px;
  background: rgba(55, 65, 81, 0.55);
  color: #d1d5db;
  white-space: nowrap;
}

body.drama-premium .card-title-row .step-review-chip.is-done {
  background: rgba(6, 95, 70, 0.35);
  color: #a7f3d0;
}

body.drama-premium .card-title-row .step-review-chip.hidden {
  display: none;
}

/* ── 多集分镜区标题 ── */
.episode-row-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  padding: 0 2px;
}

.episode-row-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text, #e5e7eb);
}

.episode-row-shots + .episode-row-shots {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border, #2a2a2e);
}

.episode-row-shots[data-episode] .episode-row-head .episode-row-title::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 0.9em;
  margin-right: 8px;
  vertical-align: -0.1em;
  border-radius: 2px;
  background: #f59e0b;
}

/* ── 0 需求 · 省钱入口 callout ── */
.cost-save-callout {
  margin-top: 10px;
}

.pricing-estimate-line {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(52, 211, 153, 0.25);
  background: rgba(6, 95, 70, 0.1);
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-muted, #9ca3af);
}

.pricing-estimate-line strong {
  color: #6ee7b7;
  font-weight: 600;
}

.pricing-unit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  margin: 8px 0 6px;
}

.pricing-unit-table th,
.pricing-unit-table td {
  padding: 8px 10px;
  border: 1px solid var(--border, #2a2a2e);
  text-align: left;
}

.pricing-unit-table th {
  font-weight: 600;
  color: var(--text, #e5e7eb);
  background: rgba(55, 65, 81, 0.35);
}

.pricing-unit-table td strong {
  color: #93c5fd;
  font-weight: 600;
}

.pricing-unit-foot {
  margin: 0 0 12px;
  font-size: 0.82rem;
  color: var(--text-muted, #9ca3af);
  line-height: 1.45;
}

.cost-save-pricing-block {
  margin-bottom: 12px;
}

/* 办公室群聊 · 按住说话 */
body.drama-premium .agent-voice-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

body.drama-premium .agent-voice-btn.is-recording {
  background: #ef4444 !important;
  border-color: #ef4444 !important;
  color: #fff !important;
  animation: agent-voice-pulse 0.9s ease-in-out infinite;
}

@keyframes agent-voice-pulse {
  50% { transform: scale(1.06); }
}

body.drama-premium .agent-dock-composer-row .agent-voice-btn + .chat-send-btn {
  margin-left: 0;
}

/* ── 0 需求 · 省钱入口 callout ── */
.cost-save-callout {
  margin-top: 16px;
}

.cost-save-callout-btn {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(147, 197, 253, 0.35);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.18), rgba(20, 20, 22, 0.9));
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.cost-save-callout-btn:hover,
.cost-save-callout-btn:focus-visible {
  border-color: rgba(147, 197, 253, 0.65);
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.28), rgba(20, 20, 22, 0.95));
  outline: none;
}

.cost-save-callout-icon {
  flex-shrink: 0;
  font-size: 1.1rem;
  line-height: 1.4;
}

.cost-save-callout-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--text-muted, #9ca3af);
}

.cost-save-callout-text strong {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary-light, #93c5fd);
}

/* 兼容旧 hint-line 样式（弹框内仍用） */
.cost-save-hint-line {
  margin-top: 14px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-muted, #9ca3af);
}

/* ── 底部审核模式提示 ── */
.drama-review-mode-hint {
  cursor: pointer;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  transition: color 0.15s;
}

.drama-review-mode-hint:hover {
  color: var(--primary-light, #93c5fd);
}

.drama-review-mode-hint.is-auto {
  color: #fbbf24;
}

.drama-review-mode-hint.is-manual {
  color: #6ee7b7;
}

/* ── 下载页标题行 ── */
.page-download-card .card-title {
  margin-bottom: 8px;
}

.page-download-card .download-hint {
  margin-bottom: 12px;
}

.page-download-card .download-zip-btn {
  margin-bottom: 16px;
}

/* ── 参数表单间距 ── */
.idea-params-page .form-params-head {
  margin-bottom: 4px;
}

.idea-params-page .subtitle-lang-field {
  margin-top: 12px;
}

/* ── 移动端：底部栏 + 聊天发送键 ── */
@media (max-width: 720px) {
  body.drama-premium .drama-force-next-right {
    flex-wrap: wrap;
    justify-content: flex-end;
    row-gap: 6px;
  }

  body.drama-premium .drama-review-mode-hint {
    flex: 1 1 100%;
    max-width: none;
    text-align: left;
    margin-right: 0;
    order: -1;
  }

  body.drama-premium .drama-review-mode-switch {
    flex: 1 1 auto;
  }
}

@media (max-width: 640px) {
  body.drama-premium .drama-agent-dock .chat-send-btn.btn-primary {
    min-height: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    width: 44px !important;
    align-self: flex-end;
    touch-action: manipulation;
    position: relative;
    z-index: 3;
  }

  body.drama-premium .agent-dock-input-col {
    min-height: auto !important;
  }

  body.drama-premium .drama-agent-dock #agentChatInput.agent-dock-input,
  body.drama-premium .drama-agent-dock textarea#agentChatInput {
    white-space: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
  }

  body.drama-premium .drama-agent-dock .agent-dock-composer-row {
    align-items: flex-end;
  }

  body.drama-premium .agent-dock-head {
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
  }

  body.drama-premium .agent-dock-chat-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    flex: 0 0 auto;
  }

  body.drama-premium .agent-dock-chat-actions .chat-tool-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    touch-action: manipulation;
  }

  body.drama-premium .agent-dock-tools {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    overflow: visible !important;
    max-width: 100%;
  }

  body.drama-premium .agent-dock-tools .chat-tool-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    touch-action: manipulation;
    flex: 0 0 auto;
  }

  body.drama-premium .agent-tts-lab-toggle {
    display: none !important;
  }

  body.drama-premium .agent-tts-lab-backdrop.hidden {
    display: none !important;
    pointer-events: none !important;
  }
}

body.drama-premium:not(.drama-mobile) .drama-surface-badge--pc {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #eff6ff;
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  border: 1px solid rgba(59, 130, 246, 0.55);
}

body.drama-premium:not(.drama-mobile) .drama-header-titles {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

body.drama-premium:not(.drama-mobile) .drama-mobile-link {
  color: #6ee7b7;
}

/* 电脑版：墨蓝底色，与手机版墨绿区分 */
body.drama-premium:not(.drama-mobile) {
  background: #0a1020 !important;
}

body.drama-premium:not(.drama-mobile)::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1d4ed8, #60a5fa, #1d4ed8);
  z-index: 10000;
  pointer-events: none;
}

body.drama-premium:not(.drama-mobile) .drama-shell {
  background: #0a1020;
}

body.drama-premium:not(.drama-mobile) .drama-header,
body.drama-premium:not(.drama-mobile) .drama-tabs {
  background: #0f172a !important;
  border-bottom-color: rgba(59, 130, 246, 0.35);
}
