:root #tool-body {
  --bg-color: #f5f7fa;
  --card-bg: #ffffff;
  --primary: #1e9fff;
  --dark-item: #2b2d36;
}

#tool-body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

#tool-body .upload-area {
  padding: 40px;
  text-align: center;
  border-radius: 8px;
  border-width: 2px;
  cursor: pointer;
  transition: .3s;
  display: block;
  color: inherit;
}

#tool-body .layui-form-select input {
  height: 44px;
}

#tool-body .upload-area:hover {
  border-color: var(--primary);
}

#tool-body .upload-icon {
  font-size: 48px;
  color: var(--primary);
  margin-bottom: 10px;
}

#tool-body .upload-area h3 {
  font-size: 18px;
  font-weight: normal;
  margin-bottom: 5px;
}

#tool-body .upload-area p {
  color: #999;
  font-size: 14px;
}

#tool-body .section-title {
  margin: 25px 0 15px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#tool-body .clear-btn {
  font-size: 14px;
  color: #ff5722;
  cursor: pointer;
  font-weight: normal;
}

#tool-body .audio-item {
  background: var(--dark-item);
  color: #fff;
  border-radius: 8px;
  margin-bottom: 15px;
  padding: 15px;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

#tool-body .play-btn {
  z-index: 1;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-right: 15px;
  flex-shrink: 0;
  transition: 0.2s;
}

#tool-body .play-btn:hover {
  background: var(--primary);
  transform: scale(1.1);
}

#tool-body .play-btn i {
  font-size: 20px;
  color: #fff;
}

#tool-body .audio-info {
  flex: 1;
  min-width: 0;
  margin-right: 20px;
  pointer-events: none;
}

#tool-body .file-name {
  font-size: 14px;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#tool-body .file-meta {
  font-size: 12px;
  color: #bbb;
  margin-bottom: 5px;
}

#tool-body .badge-wav {
  background: #16baaa;
  color: #fff;
  padding: 0 4px;
  border-radius: 2px;
  font-size: 10px;
  margin-left: 5px;
}

#tool-body .del-btn {
  z-index: 1;
  margin-left: 15px;
  color: #ff5722;
  cursor: pointer;
  font-size: 20px;
  opacity: 0.6;
  transition: 0.2s;
  padding: 10px;
}

#tool-body .del-btn:hover {
  opacity: 1;
  transform: scale(1.1);
}

#tool-body .waveform-box {
  height: 50px;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0.4;
  cursor: text;
}

#tool-body .footer-bar {
  width: 100%;
  padding: 25px 0;
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

#tool-body .format-select-wrapper {
  width: 120px;
  text-align: left;
}

html[lang=en] #tool-body .format-select-wrapper {
  width: auto;
  text-align: left;
}

#processBtn {
  min-width: 180px;
  transition: 0.3s;
}

#tool-body .output-area {
  display: none;
  margin-top: 40px;
  border-top: 1px solid #eee;
  padding-top: 20px;
}

#tool-body .output-item {
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 12px 15px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  flex-wrap: wrap;
  gap: 10px;
}

#tool-body .output-left {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
  min-width: 0;
}

#tool-body .output-name {
  font-weight: bold;
  font-size: 14px;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#tool-body .tag-dest {
  background: #fff8e1;
  color: #d6a306;
  border: 1px solid #ffeebb;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
}

#tool-body .output-player-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

#tool-body audio {
  height: 32px;
  outline: none;
  max-width: 300px;
  border-radius: 20px;
}

#tool-body audio::-webkit-media-controls-enclosure {
  background-color: #f5f7fa;
}

@media screen and (max-width: 1000px) {
  #tool-body .upload-area {
    padding: 20px;
  }

  #tool-body .output-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
  }

  #tool-body .output-left {
    width: 100%;
    margin-bottom: 8px;
    justify-content: space-between;
  }

  #tool-body .output-name {
    max-width: 60vw;
  }

  #tool-body .output-player-wrap {
    width: 100%;
    flex-direction: column;
    gap: 12px;
  }

  #tool-body audio {
    width: 100%;
    max-width: none;
    height: 40px;
  }

  #tool-body .download-btn-group {
    width: 100%;
    display: flex;
    justify-content: flex-end;
  }
}

#tool-body .convert-progress {
  width: 100%;
  height: 3px;
  background: #555;
  margin-top: 8px;
  border-radius: 2px;
  overflow: hidden;
  display: none;
}

#tool-body .convert-progress-bar {
  height: 100%;
  background: #1e9fff;
  width: 0%;
  transition: width 0.2s;
}

.theme-dark-mode #tool-body .output-item {
  background: #2b2b2b;
  border-color: #444;
}

.theme-dark-mode #tool-body .output-name {
  color: #ddd;
}

.theme-dark-mode #tool-body audio {
  filter: invert(0.85);
}

.theme-dark-mode #tool-body .output-area,
.theme-dark-mode #tool-body .output-item {
  border-color: #444;
}

.theme-dark-mode #tool-body .tag-dest {
  background: #ffefb9;
  color: #d6a306;
  border: 0;
}