body {
  font-family: Arial, sans-serif;
  padding: 20px;
  color: #333;
  background-color: #fff;
  max-width: 1080px;
  margin: 0 auto;
}

@keyframes gradientAnimation {
  0% {
    background-position: 300% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.colorfulText {
  background: linear-gradient(90deg, red, orange, green, blue, indigo, violet, red, orange, green, blue, indigo, violet, red, orange, green, blue, indigo, violet);
  background-size: 300% 100%;
  background-clip: text;
  color: transparent;
  -webkit-background-clip: text;
  animation: gradientAnimation 30s infinite linear;
}

.header {
  /* text-align: center; */
  font-size: 20px;
  display: block;
  height: 40px;

}

#tag {
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  margin-top: 20px;
  margin-bottom: 10px;
}

#tag-value {
  color: green;
  padding-left: 10px;
}

.upload-container {
  position: relative;
  border: 1px solid #ddd;
  border-radius: 15px;
  background-color: #f4f4f4;
  width: 100%;
  padding-bottom: 35px;
}


.file-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-left: 30px;
}

.button-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin-top: 10px;
  transition: all 0.5s ease;
}

.large-button {
  width: 200px;
  height: 50px;
}

.button-container .button {
  background-color: #ddd;
  border-radius: 5px;
  /* background-color: #fff; */
  /* color: #333; */
  border: 1px solid #333;
}

.small-button {
  width: 90px;
  height: 30px;
  line-height: 28px;
}

.alert {
  padding: 10px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  margin-bottom: 20px;
  color: #333;
  border-radius: 15px;
}

.alert ul {
  list-style: none;
}

.alert h3 {
  text-align: center;
  color: rgb(47, 151, 255)
}

.ad {
  padding: 20px;
  background-color: #e9ecef;
  text-align: center;
  border: 1px solid #ddd;
}

.fileStatus {
  font-size: larger;
  font-weight: bold;
  color: green;
}

.fileFail {
  color: red;
}

.hidden {
  display: none;
}

.custom-confirm-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.5);
}

#custom-confirm {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 20px;
  background-color: white;
  border: 1px solid black;
  z-index: 1000;
  max-width: 300px;
  /* 设置一个最大宽度 */
  padding: 20px;
  background-color: white;
  border-radius: 8px;
  /* 圆角 */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  /* 添加阴影效果 */

}

#custom-confirm p {
  margin-bottom: 20px;
  text-align: center;
}

#custom-confirm .button-parts {
  display: flex;
  align-items: center;
}

#custom-confirm button {
  padding: 8px 16px;
  margin: 5px;
  /* 确保按钮之间有间距 */
  border: none;
  border-radius: 4px;
  background-color: #007BFF;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s;
  /* 平滑的颜色转换效果 */
}

#custom-confirm button:hover {
  background-color: #0056b3;
}

#custom-confirm #confirm-no {
  background-color: #6c757d;
}

#custom-confirm #confirm-no:hover {
  background-color: #4e555b;
}

.download-container {
  font-family: 'Arial', sans-serif;
  /* 使用Arial或系统默认的sans-serif字体 */
  padding: 20px;
  background-color: #f7f7f9;
  /* 轻微的灰色背景以凸显下载条目 */
  border-radius: 5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  /* 轻微的阴影效果 */
}

.download-container-ul {
  background-color: #fff;
  list-style-type: none;
  /* 移除默认的项目符号 */
  margin: 0;
  padding: 0;
}

.download-container-ul .fileName {
  width: 900px;
}

.download-container-ul .timer {
  margin: 0;
  width: 200px;
}

.download-container-ul li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  margin-bottom: 10px;
  background-color: white;
  /* 条目背景 */
  border-radius: 5px;
  transition: background-color 0.3s;
  /* 平滑的背景色转换效果 */
}

.download-container-ul li:hover {
  background-color: #f1f1f3;
  /* 当鼠标悬停时，条目背景颜色会轻微变化 */
}

.download-container-ul .button-container {
  margin-top: 0;
  display: flex;
  gap: 5px;
}

.download-container-ul button {

  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  background-color: #007BFF;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.download-container-ul button:hover {
  background-color: #0056b3;
  transform: scale(1.05);
  /* 使按钮在悬停时稍微放大 */
}

/* fileList */

#fileList .fileName {
  color: rgb(47, 151, 255)
}

#fileList .uploadTime {
  margin: 0 10px;
}

.space-1 {
  display: inline-block;
  width: 10px;
}


/* h5 --------------------------------------------------------------- */

@media (max-width: 600px) {

  body {
    padding: 5px;
    font-size: 15px;
  }

  /* 优化头部 */
  .header {
    font-size: 18px;
    height: 30px;
    text-align: center;
    padding: 5px;
    margin-bottom: 10px;
  }

  /* 优化标签 */
  #tag {
    font-size: 15px;
    margin-top: 10px;
    margin-bottom: 5px;
  }

  /* 优化按钮容器 */
  .button-container {
    flex-direction: column;
    gap: 5px;
  }

  /* 调整大按钮尺寸 */
  .large-button {
    width: 100%;
    /* 利用整个宽度 */
    height: 40px;
    font-size: 16px;
  }

  /* 优化警报信息 */
  .alert {
    font-size: 14px;
    padding: 5px;
  }

  .alert h3 {
    font-size: 16px;
  }

  /* 优化文件列表 */
  .file-list,
  .download-container-ul {
    margin-left: 5px;
  }

  #fileList .fileName,
  .download-container-ul .fileName {
    font-size: 15px;
  }

  .download-container-ul .timer {
    font-size: 14px;
  }

  /* 优化按钮 */
  .button,
  .download-container-ul button {
    font-size: 15px;
  }

}

/* 媒体查询 - 针对不超过768px的设备 */
@media (max-width: 768px) {

  /* 适应小屏幕的整体布局 */
  body {
    padding: 10px;
  }

  /* 头部和标签调整 */
  .header {
    font-size: 18px;
    text-align: center;
    margin-bottom: 10px;
  }

  #tag {
    font-size: 15px;
    margin-top: 10px;
  }

  /* 优化上传容器 */
  .upload-container {
    padding-bottom: 20px;
  }

  /* 按钮调整 */
  .button,
  .large-button,
  .small-button,
  .download-container-ul button {
    font-size: 14px;
  }

  .large-button {
    width: 100%;
    /* 利用全部宽度 */
    margin-bottom: 10px;
    /* 增加垂直间距 */
  }

  .button-container {
    flex-direction: column;
    /* 垂直排列按钮 */
    gap: 10px;
  }

  /* 优化警报信息 */
  .alert {
    font-size: 14px;
  }

  .alert h3 {
    font-size: 16px;
  }

  /* 优化文件列表 */
  .file-list,
  .download-container-ul {
    margin-left: 10px;
  }

  #fileList .fileName,
  .download-container-ul .fileName {
    font-size: 14px;
  }


  /* 优化其他元素 */
  .download-container,
  .alert,
  .ad {
    margin-bottom: 15px;
    /* 增加垂直间距 */
  }

  /* ... 可以继续添加更多针对中小屏幕的优化 ... */
}

/* 媒体查询 - 针对不超过400px的设备 */
@media (max-width: 400px) {

  /* 为非常小的屏幕进一步优化 */
  body {
    padding: 5px;
  }

  .header,
  #tag {
    text-align: center;
    /* 居中头部和标签 */
  }

  /* ... 其他特定于非常小屏幕的优化 ... */
}