body {
  font-family: Arial, sans-serif;
  margin: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.file-list {
  margin-top: 20px;
  display: flex;
  gap: 20px;
  justify-items: center;
  justify-content: flex-start;  /* 确保文件从左侧开始排列 */
  flex-wrap: wrap; /* 超出容器时自动换行 */
  width: 100%;
}


.file-item {
  width: auto;
  height: 180px; /* 增加高度以容纳输入框 */
  padding: 10px;
  border: 1px solid #ccc;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative; /* 为了定位删除按钮 */
}


.file-item label {
  font-size: 14px;
  margin-right: 5px;
}

.file-item input[type="number"] {
  width: 60px;
  padding: 5px;
  font-size: 14px;
  margin-left: 5px;
}

.file-item > div {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  position: relative; /* 为了定位删除按钮 */
}

.file-item img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin: 5px;
}

.delete-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  background-color: red;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  text-align: center;
  font-size: 14px;
  line-height: 20px;
  cursor: pointer;
  display: none; /* 默认隐藏 */
}

.file-item:hover .delete-btn {
  display: block; /* 鼠标悬停时显示删除按钮 */
}


/* 被拖拽的文件项 */
.file-item.dragging {
  opacity: 0.5;
}

/* 拖拽时显示的区域 */
.file-item.drag-over {
  border: 2px dashed #00f;  /* 设置拖拽区域的边框 */
  background-color: #f0f8ff;  /* 设置拖拽时的背景色 */
}


.drop-zone {
  width: 95%;
  min-height: 58vh;
  padding: 1rem;
  border: 2px dashed #ccc;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 20px;
  font-size: 16px;
  color: #666;
  border-radius: 10px;
  flex-direction: column;
  
}

.drop-zone.drag-over {
  background-color: #f0f8ff;
}

.progress-bar {
  margin-top: 20px;
  height: 20px;
  width: 100%;
  background-color: #f0f0f0;
  border-radius: 5px;
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  background-color: #4caf50;
  width: 0%;
  transition: width 0.5s;
}

.download-message {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #4caf50;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 16px;
  z-index: 1000;
  opacity: 1;
  transition: opacity 1s;
}


#processBtn {
  width: 15vw;
  height: 10vh;
  font-size: 1.5rem;
  background-color: #4caf50;
  color: white;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
}