/**
 * 组件样式 - 扁平化设计
 * 完整移植自 wx-mini/pages/audio-conversion-standalone/convert
 */

/* ==================== 步骤指示器 ==================== */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xl) var(--spacing-lg);
  background-color: var(--bg-primary);
  margin: 0 auto var(--spacing-md);
  max-width: 1200px;
  width: calc(100% - var(--spacing-lg) * 2);
  box-sizing: border-box;
  border-bottom: 1px solid var(--border-light);
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
}

.step-circle {
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  border-radius: var(--border-radius-round);
  background-color: var(--bg-tertiary);
  color: var(--text-tertiary);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  border: 2px solid var(--border-color);
  transition: all var(--transition-base);
}

.step-item.active .step-circle {
  background-color: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

.step-item.completed .step-circle {
  background-color: var(--success-color);
  color: #fff;
  border-color: var(--success-color);
}

.step-label {
  font-size: var(--font-size-sm);
  color: var(--text-tertiary);
  transition: all var(--transition-base);
  font-weight: var(--font-weight-normal);
}

.step-item.active .step-label {
  color: var(--primary-color);
  font-weight: var(--font-weight-semibold);
}

.step-item.completed .step-label {
  color: var(--success-color);
}

.step-line {
  flex: 1;
  height: 2px;
  background-color: var(--border-color);
  margin: 0 var(--spacing-md);
  transition: all var(--transition-base);
}

.step-line.active {
  background-color: var(--success-color);
}

/* ==================== 通用卡片样式 ==================== */
.audio-select-card,
.selected-audio-card,
.material-library-card,
.selected-materials-card,
.my-dat-list-card,
.convert-status-card {
  background-color: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-xl);
  margin-bottom: var(--spacing-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  width: 100%;
  box-sizing: border-box;
}

.audio-select-card:hover,
.selected-audio-card:hover,
.material-library-card:hover,
.selected-materials-card:hover,
.my-dat-list-card:hover {
  box-shadow: var(--shadow-md);
}

.card-title {
  color: var(--text-primary);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  margin-bottom: var(--spacing-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dat-add-btn {
  margin-left: var(--spacing-sm);
  padding: 2px 10px;
  font-size: var(--font-size-xs);
  border-radius: 999px;
  border: 1px solid var(--primary-color);
  background-color: #fff;
  color: var(--primary-color);
  cursor: pointer;
}

.dat-add-btn:hover {
  background-color: rgba(37, 99, 235, 0.04);
}

/* ==================== 音频选择按钮 ==================== */
.select-button-large {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xxxl) var(--spacing-xl);
  background-color: var(--primary-color);
  border-radius: var(--border-radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  border: none;
}

.select-button-large:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.select-button-large:active {
  transform: translateY(0);
}

.button-icon {
  font-size: 40px;
  margin-bottom: var(--spacing-md);
  color: #fff;
}

.button-text {
  font-size: var(--font-size-lg);
  color: #fff;
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--spacing-sm);
}

.button-hint {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.85);
}

.button-sub-hint {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
}

/* ==================== 选择结果反馈 ==================== */
.select-result {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  margin-top: 12px;
  background-color: #f6ffed;
  border: 1px solid #b7eb8f;
  border-radius: 6px;
  animation: fadeIn 0.3s ease;
}

.select-result-icon {
  font-size: 16px;
}

.select-result-text {
  font-size: 13px;
  color: #52c41a;
  font-weight: 500;
}

/* ==================== Toast 通知 ==================== */
.toast-notification {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  z-index: 10000;
  animation: toastSlideIn 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-width: 80%;
}

.toast-notification.hidden {
  display: none;
}

.toast-notification.toast-hiding {
  animation: toastSlideOut 0.3s ease forwards;
}

.toast-success {
  background-color: #f6ffed;
  border: 1px solid #b7eb8f;
  color: #52c41a;
}

.toast-error {
  background-color: #fff2f0;
  border: 1px solid #ffccc7;
  color: #ff4d4f;
}

.toast-warning {
  background-color: #fffbe6;
  border: 1px solid #ffe58f;
  color: #faad14;
}

.toast-info {
  background-color: #e6f7ff;
  border: 1px solid #91d5ff;
  color: #1890ff;
}

.toast-icon {
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

.toast-text {
  font-size: 13px;
  line-height: 1.4;
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes toastSlideOut {
  from {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  to {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ==================== 本地曲目快捷选择 ==================== */
.local-tracks-quick-select {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 0.5px solid #f0f0f0;
}

.divider-with-text {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.divider-line {
  flex: 1;
  height: 0.5px;
  background-color: #e0e0e0;
}

.divider-text {
  font-size: 12px;
  color: #999;
  white-space: nowrap;
}

.local-tracks-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.local-tracks-title {
  font-size: 14px;
  color: #333;
  font-weight: 600;
}

.local-tracks-hint {
  font-size: 12px;
  color: #999;
}

.track-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.track-tag {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  background-color: #f0f7ff;
  border: 1px solid #1890ff;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.track-tag:hover {
  background-color: #e6f4ff;
  transform: scale(0.95);
}

.track-tag.selected {
  background-color: #e6f4ff;
  border-color: #07c160;
  border-width: 1px;
}

.track-tag.selected .tag-index {
  background-color: #07c160;
}

.track-tag.selected .tag-name {
  color: #07c160;
  font-weight: 600;
}

.tag-check {
  margin-left: 4px;
  color: #07c160;
  font-size: 12px;
  font-weight: 600;
}

.view-all-tracks {
  margin-top: 10px;
  text-align: center;
  padding: 8px;
  color: #3498db;
  font-size: 12px;
  cursor: pointer;
}

.view-all-tracks:hover {
  opacity: 0.7;
}

.tag-index {
  width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  background-color: #1890ff;
  color: #fff;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 600;
  margin-right: 6px;
}

.tag-name {
  font-size: 13px;
  color: #1890ff;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ==================== 标题左侧布局 ==================== */
.title-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.title-icon {
  font-size: 16px;
}

.title-icon.spinning {
  animation: spin 1s linear infinite;
}

.count-badge {
  display: inline-flex;
  align-items: center;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--border-radius-sm);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  line-height: 1;
  background-color: var(--primary-light);
  color: var(--primary-color);
  margin-left: var(--spacing-sm);
}

.clear-btn,
.refresh-btn {
  font-size: var(--font-size-sm);
  color: var(--primary-color);
  cursor: pointer;
  transition: all var(--transition-base);
}

.clear-btn {
  color: var(--error-color);
}

.clear-btn:hover,
.refresh-btn:hover {
  opacity: 0.8;
}

/* 默认隐藏素材库列表中的「添加」按钮，仅在新增产品素材二级页面显示 */
.audio-actions-bar .add-action {
  display: none !important;
}

body.dat-add-mode .audio-actions-bar .add-action {
  display: inline-flex !important;
}

/* ==================== 操作提示 ==================== */
.operation-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background-color: #f0f7ff;
  border-left: 2px solid #1890ff;
  border-radius: 4px;
  margin-bottom: 12px;
}

.operation-hint .hint-icon {
  font-size: 14px;
}

.operation-hint .hint-text {
  font-size: 12px;
  color: #1890ff;
  flex: 1;
}

.drag-hint {
  padding: 8px 10px;
  background-color: #fff7e6;
  border-left: 2px solid #faad14;
  border-radius: 4px;
  margin-bottom: 12px;
  font-size: 12px;
  color: #d48806;
}

/* ==================== 音频列表 ==================== */
.audio-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 15px;
}

/* ✅ 参考 standalone 两层卡片布局 */
.audio-item {
  background-color: #fff;
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid #e8e8e8;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.audio-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* 第一层：音频头部信息 */
.audio-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}

.audio-header-left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.audio-header-right {
  flex-shrink: 0;
}

.audio-name {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.audio-meta {
  font-size: 12px;
  color: #999;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* 已选音频项序号徽章（蓝色） */
.selected-audio-card .audio-order-badge {
  width: 26px;
  height: 26px;
  line-height: 26px;
  text-align: center;
  background-color: #1890ff;
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
}

/* 上传状态标签 */
.audio-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.audio-status-tag.uploading {
  background-color: #e6f7ff;
  color: #1890ff;
}

.audio-status-tag.completed {
  background-color: #f6ffed;
  color: #52c41a;
}

.audio-status-tag.failed {
  background-color: #fff2f0;
  color: #ff4d4f;
}

.status-spinner {
  display: inline-block;
  animation: spin 1s linear infinite;
}

/* 已选音频操作按钮增强样式 */
.audio-action-btn.move-up-action,
.audio-action-btn.move-down-action {
  background-color: #f0f7ff;
  border: 1px solid #bae0ff;
  color: #1890ff;
}

.audio-action-btn.move-up-action:hover,
.audio-action-btn.move-down-action:hover {
  background-color: #e6f4ff;
}

.audio-action-btn.source-action {
  cursor: default;
  pointer-events: none;
  border: 1px solid #e8e8e8;
}

.source-icon-file { color: #667eea; }
.source-icon-local { color: #07c160; }
.source-icon-material { color: #722ed1; }

/* 旧版兼容保留 */
.drag-handle {
  font-size: 16px;
  color: #999;
  margin-right: 8px;
  cursor: move;
}

.source-badge {
  font-size: 10px;
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 8px;
  flex-shrink: 0;
}

.source-badge.file {
  background-color: #667eea;
}

.source-badge.local {
  background-color: #07c160;
}

.source-badge.material {
  background-color: #722ed1;
}

.audio-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.item-actions {
  display: flex;
  gap: 6px;
  margin-left: 8px;
  flex-shrink: 0;
  min-width: 80px;
}

.action-btn {
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  border-radius: var(--border-radius-sm);
  font-size: var(--font-size-md);
  cursor: pointer;
  transition: all var(--transition-base);
  border: none;
}

.action-btn:hover {
  background-color: var(--bg-hover);
}

.action-btn:active {
  transform: scale(0.95);
}

.action-btn.delete {
  color: var(--error-color);
}

.action-btn.delete:hover {
  background-color: var(--error-light);
}

.action-btn.status-btn {
  font-size: 10px;
  width: auto;
  min-width: 40px;
  padding: 0 6px;
  text-align: center;
  border-radius: 3px;
  margin-right: 4px;
  white-space: nowrap;
}

.action-btn.status-btn.uploading {
  background-color: #1890ff;
  color: #fff;
}

.action-btn.status-btn.completed {
  background-color: #07c160;
  color: #fff;
}

.action-btn.status-btn.failed {
  background-color: #ff4d4f;
  color: #fff;
}

/* ==================== 素材库音频项样式（两层布局） ==================== */
.material-item {
  display: flex;
  flex-direction: column;
  padding: 12px;
  background-color: #fafafa;
  border-radius: 8px;
  border: 1px solid #f0f0f0;
  transition: all 0.2s;
  margin-bottom: 8px;
}

.material-item:hover {
  background-color: #f5f5f5;
  border-color: #e0e0e0;
}

.audio-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
}

.audio-header-left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.audio-header-right {
  flex-shrink: 0;
  margin-left: 10px;
}

.audio-source-badge {
  font-size: 10px;
  color: #fff;
  padding: 2px 8px;
  border-radius: 10px;
}

.audio-source-badge.material {
  background-color: #722ed1;
}

.audio-actions-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.audio-action-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background-color: #f5f5f5;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 12px;
}

.audio-action-btn:hover {
  background-color: #e8e8e8;
}

.audio-action-btn .action-icon {
  font-size: 14px;
}

.audio-action-btn .action-text {
  color: #666;
}

.audio-action-btn.add-action {
  background-color: #e6f7ff;
  color: #1890ff;
}

.audio-action-btn.add-action:hover {
  background-color: #bae7ff;
}

.audio-action-btn.add-action .action-text {
  color: #1890ff;
}

.audio-action-btn.share-action {
  background-color: #f6ffed;
}

.audio-action-btn.share-action:hover {
  background-color: #d9f7be;
}

.audio-action-btn.share-action .action-text {
  color: #52c41a;
}

.audio-action-btn.delete-action {
  background-color: #fff2f0;
  margin-left: auto;
}

.audio-action-btn.delete-action:hover {
  background-color: #ffccc7;
}

.audio-action-btn.delete-action .action-text {
  color: #ff4d4f;
}

.audio-action-btn.move-up-action,
.audio-action-btn.move-down-action {
  background-color: #fff7e6;
}

.audio-action-btn.move-up-action:hover,
.audio-action-btn.move-down-action:hover {
  background-color: #ffe7ba;
}

/* ==================== 已选素材项样式 ==================== */
.selected-material-item {
  display: flex;
  flex-direction: column;
  padding: 12px;
  background-color: #f6ffed;
  border-radius: 8px;
  border: 1px solid #b7eb8f;
  transition: all 0.2s;
  margin-bottom: 8px;
}

.selected-material-item:hover {
  background-color: #d9f7be;
}

.audio-order-badge {
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  background-color: #52c41a;
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
}

/* ==================== DAT列表样式 ==================== */
.dat-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* DAT 项目号筛选标签 */
.dat-project-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.dat-project-tab {
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 12px;
  cursor: pointer;
  border: 1px solid #e0e0e0;
  background-color: #fafafa;
  color: #555;
  transition: all 0.2s;
}

.dat-project-tab.active {
  background-color: #52c41a;
  border-color: #52c41a;
  color: #fff;
}

.dat-project-tab:hover:not(.active) {
  background-color: #f0f9eb;
}

.dat-item {
  display: flex;
  flex-direction: column;
  padding: 12px;
  background-color: #fafafa;
  border-radius: 8px;
  border: 1px solid #f0f0f0;
  transition: all 0.2s;
}

.dat-item:hover {
  background-color: #f5f5f5;
  border-color: #e0e0e0;
}

.dat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
}

.dat-header-left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dat-header-right {
  flex-shrink: 0;
  margin-left: 10px;
}

.dat-name {
  font-size: 14px;
  color: #333;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dat-meta {
  font-size: 12px;
  color: #999;
}

.dat-status-badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
}

.dat-status-badge.can-ota {
  background-color: #f6ffed;
  color: #52c41a;
  border: 1px solid #b7eb8f;
}

.dat-status-badge.cannot-ota {
  background-color: #fff2f0;
  color: #ff4d4f;
  border: 1px solid #ffa39e;
}

/* DAT歌曲列表 */
.dat-songs-section {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 10px;
}

.dat-song-item {
  display: flex;
  align-items: center;
  padding: 6px 8px;
  border-radius: 4px;
  transition: all 0.2s;
}

.dat-song-item:hover {
  background-color: #f0f0f0;
}

.dat-song-item.playing {
  background-color: #e6f7ff;
}

.dat-song-item.playing .dat-song-index {
  background-color: #1890ff;
  color: #fff;
}

.dat-song-item.playing .dat-song-name {
  color: #1890ff;
  font-weight: 500;
}

.dat-song-index {
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  background-color: #f0f0f0;
  color: #666;
  border-radius: 50%;
  font-size: 10px;
  margin-right: 8px;
  flex-shrink: 0;
}

.dat-song-name {
  flex: 1;
  font-size: 13px;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dat-song-play-btn {
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  background-color: #1890ff;
  color: #fff;
  border-radius: 50%;
  font-size: 10px;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.dat-song-play-btn:hover {
  background-color: #40a9ff;
  transform: scale(1.1);
}

.dat-song-play-btn.playing {
  background-color: #ff4d4f;
}

/* DAT操作按钮区 */
.dat-actions-bar {
  display: flex;
  gap: 8px;
}

.dat-action-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background-color: #f5f5f5;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 12px;
}

.dat-action-btn:hover {
  background-color: #e8e8e8;
}

.dat-action-btn .action-icon {
  font-size: 14px;
}

.dat-action-btn .action-text {
  color: #666;
}

.dat-action-btn.share-action {
  background-color: #f6ffed;
}

.dat-action-btn.share-action:hover {
  background-color: #d9f7be;
}

.dat-action-btn.share-action .action-text {
  color: #52c41a;
}

.dat-action-btn.ota-action {
  background-color: #e6f7ff;
}

.dat-action-btn.ota-action:hover {
  background-color: #bae7ff;
}

.dat-action-btn.ota-action .action-text {
  color: #1890ff;
}

/* ==================== 转换状态卡片 ==================== */
.convert-status-card {
  border-color: #1890ff;
  background-color: #e6f7ff;
}

.convert-progress {
  margin: 16px 0;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.current-file {
  font-size: 13px;
  color: #333;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.progress-text {
  font-size: 13px;
  color: #1890ff;
  font-weight: 600;
  margin-left: 10px;
}

.progress-bar {
  height: 8px;
  background-color: #e8e8e8;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #1890ff, #40a9ff);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.progress-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #666;
}

.progress-hint .hint-icon {
  font-size: 14px;
}

.cancel-convert-btn {
  text-align: center;
  padding: 10px;
  color: #ff4d4f;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.cancel-convert-btn:hover {
  opacity: 0.8;
}

/* ==================== 操作按钮 ==================== */
.action-buttons {
  margin-top: 15px;
}

.primary-button {
  border: none;
  border-radius: var(--border-radius-md);
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all var(--transition-base);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  background-color: var(--primary-color);
  color: #fff;
  width: 100%;
  font-size: var(--font-size-lg);
}

.primary-button:hover:not(:disabled) {
  background-color: var(--primary-hover);
}

.primary-button.processing {
  background-color: var(--primary-hover);
}

.primary-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ==================== 合并转换按钮 ==================== */
.merge-convert-section {
  margin-bottom: var(--spacing-lg);
}

.merge-convert-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, #52c41a, #73d13d);
  border: none;
  border-radius: var(--border-radius-lg);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(82, 196, 26, 0.3);
}

.merge-convert-btn:hover {
  background: linear-gradient(135deg, #389e0d, #52c41a);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(82, 196, 26, 0.4);
}

.merge-convert-btn:active {
  transform: translateY(0);
}

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

.merge-convert-btn .btn-count {
  font-size: 14px;
  opacity: 0.9;
}

/* ==================== 空状态 ==================== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  color: #999;
}

.empty-icon {
  font-size: 40px;
  margin-bottom: 10px;
}

.empty-text {
  font-size: 14px;
}

/* ==================== 加载更多 ==================== */
.load-more {
  text-align: center;
  padding: 12px;
  color: #1890ff;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.load-more:hover {
  opacity: 0.8;
}

/* ==================== 拖拽样式 ==================== */
.selected-material-item[draggable="true"] {
  cursor: grab;
  user-select: none;
}

.selected-material-item[draggable="true"]:active {
  cursor: grabbing;
}

.selected-material-item.drag-over {
  border-color: #1890ff;
  background-color: #e6f7ff;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

/* ==================== 播放中高亮 ==================== */
.audio-action-btn.playing-active {
  background-color: #fff1f0;
  color: #ff4d4f;
}

.audio-action-btn.playing-active .action-icon {
  color: #ff4d4f;
}

.audio-action-btn.playing-active .action-text {
  color: #ff4d4f;
}

/* 删除操作按钮（素材库和DAT列表通用） */
.audio-action-btn.delete-action,
.dat-action-btn.delete-action {
  background-color: #fff2f0;
}

.audio-action-btn.delete-action:hover,
.dat-action-btn.delete-action:hover {
  background-color: #ffccc7;
}

.audio-action-btn.delete-action .action-text,
.dat-action-btn.delete-action .action-text {
  color: #ff4d4f;
}

.audio-action-btn.delete-action .action-icon,
.dat-action-btn.delete-action .action-icon {
  color: #ff4d4f;
}

/* 下载按钮 */
.dat-action-btn.download-action {
  background-color: #e6f7ff;
}

.dat-action-btn.download-action:hover {
  background-color: #bae7ff;
}

.dat-action-btn.download-action .action-text {
  color: #1890ff;
}

/* ==================== 加载动画 ==================== */
.loading-spinner {
  display: inline-block;
  animation: spin 1s linear infinite;
  margin-right: 4px;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ==================== 主页面样式 ==================== */
.main-process {
  padding: 0;
  min-height: 100vh;
  background-color: var(--bg-secondary);
  width: 100%;
  box-sizing: border-box;
  display: block;
  position: relative;
}

.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-lg);
  width: 100%;
  box-sizing: border-box;
}

/* ==================== 移动端适配 ==================== */
@media (max-width: 768px) {
  .main-process {
    padding-top: 44px;
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 16px;
  }
  
  .main-content {
    padding: var(--spacing-md);
  }
  
  .audio-actions-bar,
  .dat-actions-bar {
    flex-wrap: wrap;
  }
  
  .audio-action-btn,
  .dat-action-btn {
    padding: 5px 8px;
    font-size: 11px;
  }
}
