* {
  transition: all 0.3s ease;  /* 将所有属性都应用缓动效果 */
}

html,
body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: "Noto Sans SC";
  background: #D9D9D9;
}

button {
  background: none;       /* 去除背景 */
  border: none;           /* 去除边框 */
  padding: 0;             /* 去除内边距 */
  margin: 0;              /* 去除外边距 */
  font: inherit;          /* 继承父元素的字体样式 */
  color: inherit;         /* 继承父元素的文字颜色 */
  cursor: pointer;        /* 设置鼠标为指针 */
  outline: none;          /* 去除聚焦时的轮廓（focus 样式） */
}

.control-button,
.control-button:hover,
.control-button:active {
  cursor: pointer;
}

#mainArea {
  display: flex;
  padding: 24px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: 32px;
  border: 1px solid #FFF;
  background: #F5F6F7;
}

#uploadArea {
  display: flex;
  padding: 48px;
  width: 612px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  border-radius: 16px;
  position: relative;
  cursor: pointer; /* 添加这一行 */
  transition: background 0.3s ease; /* 添加这一行，使背景色变化更平滑 */
}

#uploadArea:hover {
  background: #EEEEEE;
}

#uploadArea.drag-over {
  background: #EEEEEE;
}

#result {
  margin-top: 20px;
}

.drop-zone {
  cursor: poinrgba(89, 108, 143, 0.04);
  transition: all 0.3s ease;
  border-radius: 8px;
  padding: 20px;
}

.drop-zone:hover {
  background: #EEEEEE;
}

.drop-zone--over {
  background: #EEEEEE;
}

.drop-zone svg,
.drop-zone h2,
.drop-zone h3,
.drop-zone p {
  transition: all 0.3s ease;
  margin: 0;
  margin-top: 4px;
  color: #000;
  font-weight: 400;
}

.drop-zone h2{
  font-size: 20px;
  font-weight: 600;
}

.drop-zone h3{
  font-size: 16px;
}

.drop-zone p{
  font-size: 14px;
  color: rgba(0, 0, 0, 0.30);
}

.upload-status {
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  transition: opacity 0.3s ease;
}

.file-name {
  margin-bottom: 10px;
}

.progress-bar {
  width: 100%;
  height: 12px;
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
}

.progress {
  width: 0;
  height: 100%;
  background-color: #FF0000;
  transition: width 0.3s ease;
}

/* .cancel-button {
  margin-top: 10px;
  padding: 5px 10px;
  background-color: #ff3f3f;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.cancel-button:hover {
  background-color: #e63636;
} */

.controlsTitle {
  display: flex;
  width: 100%;
  justify-content: space-between;
}

#audioPlayerArea {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  align-items: flex-start;
  width: 800px;
  gap: 16px;
}

.audio-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.control-button {
  position: relative;
  display: flex;
  width: 64px;
  height: 64px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  border-radius: 16px;
  border: none;
  background: #FAFAFA;
  box-shadow: 0px -2px 0px 0px rgba(0, 0, 0, 0.08) inset, 0px 1px 1px 1px rgba(0, 0, 0, 0.08), 0px 8px 8px -4px rgba(0, 0, 0, 0.16), 0px 16px 16px -8px rgba(0, 0, 0, 0.16);
  transition: all 0.1s ease;
  top: 0;
  z-index: 3;
}

.control-button img {
  width: 24px;
  height: 24px;
}

.control-button:hover {
  background-color: #fff;
}

.control-button:active {
  top: 1px;
}

.waveformAll{
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 8px;
}

.waveform-container {
  flex-grow: 1;
  overflow: hidden;
}

.time-display {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #666;
  white-space: nowrap;
}

#resultArea {
  margin-top: 20px;
}

.upload-content,
.upload-status {
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.upload-content p{
  margin: 0;
}

.upload-status {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  text-align: center;
  gap: 16px;
}

.upload-status p{
  font-size: 14px;
  color: #000;
}

/* 在文件末尾添加以下代码 */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.4);
  justify-content: center; /* 水平居中 */
  align-items: center;    /* 垂直居中 */
}

.modal-content {
  display: inline-flex;
  padding: 32px;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  border-radius: 32px;
  background: #FFF;
}

.modal-content h1{
  font-size: 80px;
  margin: 0;
  line-height: 100%;
}

.modal-content p{
  margin: 0;
  font-size: 16px;
  color: #000;
}

.modal-buttons {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  align-self: stretch;
}

.modal-button {
  display: flex;
  height: 40px;
  padding: 8px 40px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  align-self: stretch;
  border-radius: 16px;
  color: #FFF;
  text-align: center;
  font-size: 14px;
}

#confirmYes {
  background: #0D0C22;
  color: white;
}

#confirmNo {
  border: 1px #DDD;
  color: #000;
  background: #EEE;
}

#confirmYes:hover {
  background-color: #565564;
}

#confirmNo:hover {
  background-color: #ddd;
}
