body {
  font-family: "Inter", sans-serif;
  background-color: #f8f9fa;
  color: #333333;
}
.dropzone {
  border: 2px dashed #e0e0e0;
  transition: border-color 0.3s ease;
}
.dropzone:hover {
  border-color: #4a6fb5;
}
.btn-primary {
  background-color: #5d87d8 !important;
  transition: background-color 0.3s ease;
  background-image: none !important;
}
.btn-primary:hover {
  background-color: #4a6fb5 !important;
}
.card {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  border-radius: 12px;
}
/* .nav-item {
  position: relative;
  font-size: larger;
} */
/* .nav-item::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #5d87d8;
  transition: width 0.3s ease;
}
.nav-item:hover::after {
  width: 100%;
} */
.file-item {
  transition: all 0.2s ease;
}
.nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(157, 141, 241, 0.2);
}
.thumbnail {
  width: 80px;
  height: 80px;
  object-fit: contain;
  background-color: #f8f9fa;
}
.color-picker {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 40px;
  height: 40px !important;
  border: none;
  cursor: pointer;
  background: transparent;
  border: none !important;
  background-color: transparent !important;
  -webkit-box-shadow: none !important;
}
.color-picker::-webkit-color-swatch {
  border-radius: 50%;
  border: 2px solid #9d8df1;
}
.color-picker::-moz-color-swatch {
  border-radius: 50%;
  border: 2px solid #9d8df1;
}
.color-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
}
.color-circle.selected {
  border: 2px solid #7b68ee;
  box-shadow: 0 0 0 2px white;
}
.clear-btn {
  background-color: #e0e0e0;
  color: #333333;
  transition: background-color 0.2s ease;
}
.clear-btn:hover {
  background-color: #d0d0d0;
}
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal-content {
  background-color: white;
  padding: 24px;
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}
@keyframes shake {
  0%,
  100% {
    transform: translateY(0);
  }
  25% {
    transform: translateY(-2px);
  }
  75% {
    transform: translateY(2px);
  }
}
.shake-animation {
  animation: shake 0.5s ease-in-out;
}
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  25% {
    transform: translateY(-2px);
  }
  50% {
    transform: translateY(0);
  }
  75% {
    transform: translateY(2px);
  }
}
.bounce-animation {
  animation: bounce 0.5s ease-in-out 2;
}
.thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
@media (max-width: 1024px) {
  .thumbnail-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .thumbnail-grid {
    grid-template-columns: 1fr;
  }
}
.thumbnail-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}
.thumbnail-img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  background-color: #f8f9fa;
}
.thumbnail-name {
  padding: 8px;
  font-size: 12px;
  text-align: center;
  background-color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.image-modal {
  max-width: 90%;
  max-height: 90%;
  position: relative;
}
.modal-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7b68ee;
  cursor: pointer;
}
.modal-prev {
  left: 20px;
}
.modal-next {
  right: 20px;
}
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7b68ee;
  cursor: pointer;
}
.modal-counter {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  text-align: center;
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 4px 8px;
  border-radius: 12px;
  margin: 0 auto;
  width: fit-content;
}
.file-count {
  color: #333333;
  font-size: 14px;
  margin-right: 8px;
}
.preview-container {
  max-height: 500px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #5d87d8 #f5f5f5;
}

.preview-container::-webkit-scrollbar {
  width: 8px;
}
.preview-container::-webkit-scrollbar-track {
  background: #000000;
  border-radius: 4px;
}
.preview-container::-webkit-scrollbar-thumb {
  background-color: #9d8df1;
  border-radius: 4px;
}
.preview-container::-webkit-scrollbar-thumb:hover {
  background-color: #6a5acd;
}
.thumbnail-buttons {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.thumbnail-btn {
  padding: 10px;
  background-color: #e0e0e0;
  color: #333333;
  border-radius: 8px;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}
.thumbnail-btn i {
  font-size: 16px;
  color: #333333;
}
.thumbnail-btn:hover {
  background-color: #d0d0d0;
}
.thumbnail-item:hover .thumbnail-buttons {
  opacity: 1;
  background-color: #ff0000;
}
.modal-download-btn {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #9d8df1;
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.modal-download-btn:hover {
  background-color: #f3f3f3;
}
.modal-download-btn i {
  margin-right: 8px;
}
.alert-modal {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  max-width: 400px;
  width: 90%;
}
.alert-header {
  background-color: #9d8df1;
  color: white;
  padding: 16px;
  font-weight: 600;
}
.alert-body {
  padding: 24px;
  text-align: center;
}
.alert-footer {
  padding: 16px;
  display: flex;
  justify-content: center;
}
.alert-btn {
  background-color: #9d8df1;
  color: white;
  padding: 8px 24px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.alert-btn:hover {
  background-color: #7b68ee;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
  margin-right: 8px;
}
.preview-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: 12px;
}
.preview-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(157, 141, 241, 0.2);
  border-top-color: #9d8df1;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 10px;
}
.download-btn-container {
  position: absolute;
  bottom: 15px;
  right: 15px;
}
.download-all-btn {
  background-color: #e0e0e0;
  color: #333333;
  padding: 8px 16px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}
.download-all-btn:hover {
  background-color: #d0d0d0;
}

.container:before,
.container:after {
  display: none !important; /* 直接隐藏伪元素 */
  content: none !important; /* 清除content */
}

.fa-upload::before,
.fa-sliders-h::before,
.fa-image::before,
.fa-cloud-upload-alt::before {
  color: #5d87d8;
}

.other_page_load {
  position: fixed;
  bottom: 0;
  height: 180px;
  width: 100%;
  background: #333;
  color: white;
  z-index: 100;
}

.left_file_list {
  scrollbar-width: thin;
  scrollbar-color: #5d87d8 #f5f5f5;
}
