/* 业务流程专用样式 */

.stepper {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
}

.stepper-dot {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: #e2e8f0;
  transition: background 0.2s;
}

.stepper-dot.done {
  background: var(--primary);
}

.stepper-dot.active {
  background: var(--accent);
}

.stepper-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: -12px;
  margin-bottom: 16px;
}

.outlet-grid {
  display: grid;
  gap: 12px;
}

.outlet-card {
  display: block;
  padding: 18px;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-lg);
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.outlet-card.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.outlet-card-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
}

.outlet-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.outlet-card-hint {
  font-size: 12px;
  color: var(--accent);
}

.upload-grid {
  display: grid;
  gap: 10px;
}

.upload-slot {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1.5px dashed #cbd5e1;
  border-radius: var(--radius-md);
  background: var(--surface-muted);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.upload-slot.has-file {
  border-style: solid;
  border-color: var(--primary);
  background: var(--primary-soft);
}

.upload-slot.required:not(.has-file) {
  border-color: #fca5a5;
}

.upload-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.upload-meta {
  flex: 1;
  min-width: 0;
}

.upload-label {
  font-size: 14px;
  font-weight: 600;
}

.upload-file {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.upload-tag {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #fee2e2;
  color: #b91c1c;
  font-weight: 600;
}

.txt-preview {
  margin-top: 12px;
  padding: 14px;
  background: #f8fafc;
  border-radius: var(--radius-md);
  font-size: 13px;
}

.field-grid {
  display: grid;
  gap: 8px;
}

.field-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid #f1f5f9;
}

.field-row:last-child {
  border-bottom: none;
}

.field-key {
  color: var(--text-muted);
  flex-shrink: 0;
}

.field-val {
  text-align: right;
  word-break: break-all;
  font-weight: 500;
}

.field-val.missing {
  color: var(--danger);
}

.issue-list {
  display: grid;
  gap: 8px;
}

.issue-item {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  line-height: 1.5;
  border-left: 3px solid;
}

.issue-item.error {
  background: var(--danger-soft);
  border-color: var(--danger);
}

.issue-item.warn {
  background: var(--warn-soft);
  border-color: var(--warn);
}

.issue-item.info {
  background: var(--info-soft);
  border-color: var(--info);
}

.issue-code {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.artist-search-box {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.artist-results {
  display: grid;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
}

.artist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  cursor: pointer;
  background: #fff;
}

.artist-item.selected {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.artist-name {
  font-weight: 600;
  font-size: 15px;
}

.artist-platform {
  font-size: 12px;
  color: var(--text-muted);
}

.task-list {
  display: grid;
  gap: 10px;
}

.task-card {
  display: block;
  padding: 16px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.task-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.task-title {
  font-size: 16px;
  font-weight: 700;
}

.task-meta {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

.outlet-hint-banner {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}

.pipeline {
  margin-top: 16px;
}

.pipeline-5 .pipeline-track {
  margin-top: 8px;
}

.pipeline-track-5 {
  position: relative;
  padding-left: 24px;
}

.pipeline-track-compact {
  display: flex;
  gap: 3px;
  margin-top: 10px;
  padding-left: 0;
}

.pipeline-track-compact .pipeline-step {
  flex: 1;
  padding-bottom: 0;
  text-align: center;
}

.pipeline-track-compact .pipeline-step::before {
  left: 50%;
  transform: translateX(-50%);
  top: 0;
}

.pipeline-track-compact .pipeline-step::after {
  display: none;
}

.pipeline-track-compact .pipeline-label {
  font-size: 0;
  margin-top: 14px;
  height: 4px;
  border-radius: 2px;
  background: #e2e8f0;
}

.pipeline-track-compact .pipeline-step.done .pipeline-label {
  background: var(--primary);
}

.pipeline-track-compact .pipeline-step.current .pipeline-label {
  background: var(--accent);
}

.pipeline-track-compact .pipeline-step.failed .pipeline-label {
  background: var(--danger);
}

.pipeline-step.failed::before {
  background: var(--danger);
  box-shadow: 0 0 0 2px var(--danger);
}

.pipeline-internal {
  margin-top: 16px;
  border-top: 1px solid #f1f5f9;
  padding-top: 12px;
}

.pipeline-internal-summary {
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}

.pipeline-internal-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.pipeline-internal-item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px 12px;
  font-size: 12px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  background: #f8fafc;
}

.pipeline-internal-open {
  margin-top: 16px;
  border-top: 1px solid #f1f5f9;
  padding-top: 12px;
}

.pipeline-internal-heading {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.pipeline-internal-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.pipeline-internal-step-key {
  font-size: 10px;
  color: var(--text-muted);
  font-family: ui-monospace, monospace;
}

.pipeline-internal-error {
  flex-basis: 100%;
  margin: 4px 0 0;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  background: var(--danger-soft);
  color: #991b1b;
  font-size: 12px;
  line-height: 1.45;
}

.wav-size-hint {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: var(--warn-soft);
  color: #92400e;
  font-size: 12px;
  line-height: 1.5;
}

.submit-error-panel {
  margin-top: 12px;
  border-color: var(--danger);
}

.pipeline-internal-item.status-done {
  border-left: 3px solid var(--primary);
}

.pipeline-internal-item.status-running {
  border-left: 3px solid var(--accent);
}

.pipeline-internal-item.status-failed {
  border-left: 3px solid var(--danger);
}

.pipeline-internal-status {
  color: var(--text-muted);
  flex-shrink: 0;
}

.issue-list-grouped {
  gap: 12px;
}

.issue-group {
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.issue-group-title {
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.issue-group-error .issue-group-title {
  background: var(--danger-soft);
  color: #991b1b;
}

.issue-group-warn .issue-group-title {
  background: var(--warn-soft);
  color: #92400e;
}

.issue-group .issue-item {
  border-left: none;
  border-radius: 0;
  margin: 0;
}

.issue-group .issue-item + .issue-item {
  border-top: 1px solid #f1f5f9;
}

.pipeline-track {
  position: relative;
  padding-left: 24px;
}

.pipeline-step {
  position: relative;
  padding-bottom: 20px;
}

.pipeline-step:last-child {
  padding-bottom: 0;
}

.pipeline-step::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #cbd5e1;
  z-index: 1;
}

.pipeline-step.done::before {
  background: var(--primary);
  box-shadow: 0 0 0 2px var(--primary);
}

.pipeline-step.current::before {
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--accent);
}

.pipeline-step::after {
  content: "";
  position: absolute;
  left: -14px;
  top: 18px;
  width: 2px;
  height: calc(100% - 12px);
  background: #e2e8f0;
}

.pipeline-step:last-child::after {
  display: none;
}

.pipeline-step.done::after {
  background: var(--primary);
}

.pipeline-label {
  font-size: 14px;
  font-weight: 600;
}

.pipeline-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.home-hero {
  background: linear-gradient(145deg, #0f172a 0%, #1e3a5f 100%);
  color: var(--text-on-dark);
  border-radius: var(--radius-xl);
  padding: 24px 20px;
  margin-bottom: 16px;
}

.home-hero .hero-sub {
  color: rgba(241, 245, 249, 0.75);
  margin-bottom: 0;
}

.home-user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.home-user-name {
  font-size: 18px;
  font-weight: 700;
}

.home-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.action-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  border: none;
  width: 100%;
  text-align: left;
}

.action-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.action-icon.upload { background: var(--primary-soft); }
.action-icon.tasks { background: var(--accent-soft); }
.action-icon.outlet { background: var(--warn-soft); }

.action-text strong {
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
}

.action-text span {
  font-size: 12px;
  color: var(--text-muted);
}

.success-panel {
  text-align: center;
  padding: 32px 16px;
}

.success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto 16px;
}

.summary-card {
  text-align: left;
  margin-top: 20px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.chip {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: #f1f5f9;
  color: var(--text-muted);
}

.dev-banner {
  background: #fef3c7;
  color: #92400e;
  padding: 8px 16px;
  font-size: 12px;
  text-align: center;
}

/* 拖拽上传 + 批量校验 */

.file-drop-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 120px;
  padding: 20px 16px;
  margin-bottom: 14px;
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-lg);
  background: #f8fafc;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
}

.file-drop-zone:hover,
.file-drop-zone.drag-over {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.file-drop-zone-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.file-drop-zone-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 320px;
}

.file-drop-zone-kbd {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.batch-check-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.batch-check-empty {
  margin: 0;
  padding: 8px 0;
}

.batch-check-item {
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
}

.batch-check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: background 0.12s;
}

.batch-check-row:hover {
  background: #f8fafc;
}

.batch-check-row.active {
  background: var(--primary-soft);
}

.batch-check-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.batch-check-row.pass .batch-check-dot {
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.batch-check-row.fail .batch-check-dot {
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
}

.batch-check-main {
  flex: 1;
  min-width: 0;
}

.batch-check-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  word-break: break-all;
}

.batch-check-sub {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  word-break: break-all;
}

.batch-check-hint {
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.batch-check-row.pass .batch-check-hint {
  color: #047857;
}

.batch-check-row.fail .batch-check-hint {
  color: #b91c1c;
}

.batch-check-detail {
  padding: 0 14px 12px 34px;
  border-top: 1px solid #f1f5f9;
}

.batch-check-detail.hidden {
  display: none;
}

.batch-check-issues {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.batch-check-issue {
  font-size: 13px;
  line-height: 1.45;
  padding: 8px 10px;
  border-radius: var(--radius-md);
}

.batch-check-issue.error {
  background: var(--danger-soft);
  color: #991b1b;
}

.batch-check-issue.warn {
  background: var(--warn-soft);
  color: #92400e;
}

.batch-unmatched {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: var(--danger-soft);
  font-size: 12px;
  color: #991b1b;
  line-height: 1.5;
}

.batch-unmatched ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

.lyrics-panel {
  margin-top: 12px;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
}

.lyrics-panel-empty .section-desc {
  margin: 4px 0 0;
}

.lyrics-panel-body {
  margin: 8px 0 0;
  padding: 12px;
  background: #fff;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 240px;
  overflow-y: auto;
}
