html,
body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none !important;
  background-color: rgba(243, 245, 248, 1);
}

a {
  text-decoration: none;
}

UL,
LI {
  list-style: none;
  margin: 0;
  padding: 0;
}

.element-scrollbar {
  overflow-x: auto;
  -webkit-overflow-scrolling: auto;
  /* Firefox 细滚动条 */
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
  /* 默认隐藏 */
  overflow: auto;
}

/* 悬停时显示（Firefox）*/
.element-scrollbar:hover {
  scrollbar-color: #bdc4cd transparent;
}

/* WebKit 滚动条 */
.element-scrollbar::-webkit-scrollbar {
  width: 3px;
  /* 纵向 */
  height: 3px;
  /* 横向 */
}

/* 轨道：完全透明 */
.element-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

/* 滑块：胶囊形 + 默认隐藏 */
.element-scrollbar::-webkit-scrollbar-thumb {
  background: #ff6b6b;
  /* 改为红色，便于观察变化 */
  border-radius: 0;
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* 悬停时显示 */
.element-scrollbar:hover::-webkit-scrollbar-thumb {
  opacity: 1;
}

.notification {
  background: #ffffff;
}

.toast-notification {
  display: flex;
}

.toast-notification i {
  margin-right: 10px;
}

.toast-notification .toast-notification-content .title h2 {
  color: #303133;
  font-size: 18px;
  line-height: 24px;
  font-weight: bold;
}

.toast-notification .toast-notification-content .message {
  color: #606266;
  font-size: 14px;
  line-height: 24px;
  margin: 6px 0 0;
}

/* Element UI 风格的 MessageBox */
.messagebox-modal {
  --bs-modal-content-bg: #fff;
  --bs-modal-content-border-color: #e4e7ed;
  --bs-modal-content-box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  --bs-modal-header-padding: 5px 20px;
  --bs-modal-body-padding: 5px 20px;
  --bs-modal-footer-padding: 5px 20px;
}

.modal-dialog {
  max-width: 400px;
}

.messagebox-modal .modal-content {
  border-radius: 8px;
  box-shadow: var(--bs-modal-content-box-shadow);
  background: var(--bs-modal-content-bg);
  border: 1px solid var(--bs-modal-content-border-color);
}

.messagebox-modal .modal-header {
  padding: var(--bs-modal-header-padding);
  border-bottom: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.messagebox-modal .modal-title {
  font-size: 20px;
  font-weight: bold;
  color: #303133;
  margin: 0;
}

.messagebox-modal .btn-close {
  width: 32px;
  height: 32px;
  padding: 0;
  opacity: 0.7;
  border-radius: 50%;
  transition: opacity 0.2s ease;
}

.messagebox-modal .btn-close:hover {
  opacity: 1;
}

.messagebox-modal .modal-body {
  padding: var(--bs-modal-body-padding);
  font-size: 14px;
  color: #606266;
  line-height: 1.6;
}

.messagebox-modal .modal-footer {
  padding: var(--bs-modal-footer-padding);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: none;
}

.messagebox-modal .btn-primary {
  background-color: #409eff;
  border-color: #409eff;
  color: white;
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 14px;
  min-width: 80px;
  transition: background-color 0.2s ease;
}

.messagebox-modal .btn-primary:hover {
  background-color: #66b1ff;
}

.messagebox-modal .btn-secondary {
  background-color: #f5f7fa;
  border-color: #dcdfe6;
  color: #606266;
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 14px;
  min-width: 80px;
  transition: background-color 0.2s ease;
}

.messagebox-modal .btn-secondary:hover {
  background-color: #ebeef5;
}

.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 100px;
  position: relative;
}

.empty .img {
  width: 200px;
  height: 200px;

  img {
    width: 100%;
    height: 100%;
  }
}

.empty span {
  color: #909399;
  font-size: 14px;
  position: absolute;
  top: 290px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  margin: 15px 0;
  color: #606266;
}

.pagination span {
  display: flex;
  align-items: center;
}

.pagination span .form-select {
  width: 90px;
  margin: 0 2px;
  color: #606266;
}

.pagination a {
  text-decoration: none;
  padding: 4px 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  color: #007bff;
}

.pagination a:hover {
  background-color: #f0f0f0;
}

.pagination .current {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
  padding: 4px 8px;
  border-radius: 4px;
}

.pagination .disabled {
  color: #999;
  cursor: not-allowed;
}

.pagination input[type="number"] {
  width: 50px;
  padding: 4px;
  border-radius: 4px;
  margin: 0 2px;
}

.upload-box {
  width: 180px;
  height: 180px;
  border: 2px dashed #ccc;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.upload-box:hover {
  background-color: #f9f9f9;
}

.upload-box .plus-icon {
  font-size: 48px;
  color: #aaa;
  opacity: 0.7;
}

.upload-box input[type="file"] {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}

.upload-box .delete-btn {
  position: absolute;
  top: 50%;
  right: 50%;
  transform: translate(-50%, -50%);
  color: #f56c6c;
  border: none;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  z-index: 1000;
  /* 确保在其他元素之上 */
}

.upload-box .preview-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
}

.upload-box .preview-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.avatar-upload {
  display: inline-block;
  position: relative;
  cursor: pointer;
}

.avatar-upload:hover .upload-icon {
  opacity: 1;
}

.avatar-upload .upload-icon {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 11px;
  opacity: 0;
  transition: opacity 0.2s;
}

.avatar-upload .avatar-preview {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e9ecef;
}

.avatar-upload .file-input {
  display: none;
}

.partners-list-container {
  overflow: hidden;
  width: 100%;
  margin: 0 auto;
  border-radius: 8px;
  padding: 10px 0;
}

.partners-item-row {
  display: inline-flex;
  white-space: nowrap;
  gap: 24px;
  transform: translateZ(0);
  will-change: transform;
  
  /* animation 将由 JS 动态设置 */
}

/* 鼠标悬停暂停 */
.partners-list-container:hover .partners-item-row {
  animation-play-state: paused !important;
}

.partner-item {
  width: 200px;
  height: 70px;
  margin: 0;
}
.partner-item img {
  width: 100%;
  height: 100%;
  border-radius: 2px;
  -o-object-fit: cover;
  object-fit: cover;
}