/* 创作中心 · 配音服务（对齐工作中心全宽风格） */
#bdCreateVoice {
  width: 100%;
  min-height: calc(100vh - var(--bd-topbar-h, 56px));
}

html.bd-view-create-voice .bd-main {
  padding: 16px 20px 32px;
  overflow: auto;
  max-height: calc(100vh - var(--bd-topbar-h, 56px));
}

.cv-page {
  width: 100%;
  padding: 0 0 32px;
  color: #333;
  box-sizing: border-box;
}

.cv-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.cv-head h1 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a2e;
}

.cv-head p {
  margin: 6px 0 0;
  color: #888;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.cv-quota {
  font-size: 0.8125rem;
  color: #666;
  white-space: nowrap;
  flex-shrink: 0;
}

.cv-quota strong {
  color: #3c66ff;
  font-weight: 600;
}

.cv-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #eee;
  margin-bottom: 16px;
}

.cv-tab {
  border: none;
  background: none;
  padding: 10px 18px;
  font-size: 0.875rem;
  color: #666;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.cv-tab.is-active {
  color: #3c66ff;
  border-bottom-color: #3c66ff;
  font-weight: 600;
}

.cv-body {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 16px;
  align-items: start;
}

@media (max-width: 960px) {
  .cv-body {
    grid-template-columns: 1fr;
  }
}

.cv-panel {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 20px 24px;
  min-height: 320px;
}

.cv-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

.cv-label + .cv-label {
  margin-top: 14px;
}

.cv-input,
.cv-textarea,
.cv-select {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.8125rem;
  box-sizing: border-box;
  font-family: inherit;
  color: #333;
  background: #fff;
}

.cv-textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

.cv-input:focus,
.cv-textarea:focus,
.cv-select:focus {
  outline: none;
  border-color: #3c66ff;
  box-shadow: 0 0 0 2px rgba(124, 92, 252, 0.12);
}

.cv-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 12px;
  margin-top: 12px;
}

@media (max-width: 720px) {
  .cv-row {
    grid-template-columns: 1fr;
  }
}

.cv-source-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.cv-chip {
  border: 1px solid #e8e8e8;
  background: #fff;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.75rem;
  cursor: pointer;
  color: #666;
}

.cv-chip.is-active {
  border-color: var(--bd-accent-border, #a5b4fc);
  background: #eef2ff;
  color: var(--bd-accent-text, #2952e6);
  font-weight: 600;
}

.cv-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.cv-hint {
  font-size: 0.75rem;
  color: #999;
}

.cv-btn {
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 0.8125rem;
  cursor: pointer;
  white-space: nowrap;
}

.cv-btn-primary {
  background: #3c66ff;
  border: 1px solid #3c66ff;
  color: #fff;
}

.cv-btn-primary:hover:not(:disabled) {
  background: #6a4ae8;
}

.cv-btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.cv-btn-ghost {
  background: #fff;
  border: 1px solid #ddd;
  color: #666;
}

.cv-consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.75rem;
  color: #888;
  margin-top: 12px;
  line-height: 1.5;
}

.cv-list-title {
  margin: 0 0 14px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #333;
}

.cv-task {
  border-top: 1px solid #f0f0f0;
  padding: 14px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.cv-task:first-of-type {
  border-top: none;
  padding-top: 0;
}

.cv-task-text {
  font-size: 0.875rem;
  line-height: 1.55;
  margin: 0 0 6px;
  color: #333;
}

.cv-task-meta {
  font-size: 0.75rem;
  color: #999;
  line-height: 1.5;
}

.cv-status {
  display: inline-block;
  font-size: 0.6875rem;
  border-radius: 4px;
  padding: 2px 8px;
  margin-right: 6px;
  background: #f0f0f0;
  color: #666;
}

.cv-status.is-running {
  background: #eef2ff;
  color: var(--bd-accent-text, #2952e6);
}

.cv-status.is-success {
  background: #e8f8ef;
  color: #2d9f6f;
}

.cv-status.is-failed {
  background: #fff0f0;
  color: #3c66ff;
}

.cv-empty {
  color: #999;
  font-size: 0.8125rem;
  padding: 24px 0;
  text-align: center;
}

.cv-error {
  color: #3c66ff;
  background: #fff0f0;
  border: 1px solid #a5b4fc;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 0.8125rem;
}

.cv-audio {
  width: 240px;
  max-width: 100%;
  height: 32px;
}

@media (max-width: 720px) {
  .cv-task {
    grid-template-columns: 1fr;
  }

  .cv-audio {
    width: 100%;
  }
}
