/*
 * 加载动画来自 Uiverse.io（https://uiverse.io/loaders，仓库 uiverse-io/galaxy，MIT License）。
 * 在原作基础上改为深蓝金色配色，并调整类名避免冲突。
 */

/* ---------- 尺寸档位（用 zoom 等比缩放原作，不改动画本身） ---------- */
.ld { display: inline-grid; place-items: center; line-height: 0; }
.ld .spinner-container, .ld .loader-bars { margin: 0; }
.ld .text-loader { line-height: normal; }
.ld-xs { zoom: 0.3; }   /* 按钮内 */
.ld-sm { zoom: 0.5; }   /* 缩略图、校验提示 */
.ld-lg { zoom: 1; }     /* 图片加载 */
.ld-xl { zoom: 1.35; }  /* 遮罩与首屏 */
.ld-glow { filter: drop-shadow(0 0 14px rgba(232, 199, 124, 0.55)); }
button.gold .lds-ellipsis div { background: #10223a; }

/* From Uiverse.io by Codecite - Tags: animation, loading, loader, animated（上传中） */
.spinner-container {
  width: 150px;
  height: 150px;
  position: relative;
  margin: 10px auto;
  overflow: hidden;
}

.spinner {
  position: absolute;
  width: calc(100% - 9.9px);
  height: calc(100% - 9.9px);
  border: 5px solid transparent;
  border-radius: 50%;
  border-top-color: #e8c77c;
  animation: spin 5s cubic-bezier(0.17, 0.49, 0.96, 0.79) infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* From Uiverse.io by ClawHack1 - Tags: loader（重新生成排行榜中） */
.loader-bars {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 150px;
  height: 150px;
  margin: 10px auto;
  position: relative;
}

.loader-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.loader-block {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 2px;
  background-color: #e8c77c;
  box-shadow: 0 0 20px #e8c77c;
  animation: loader_562 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.loader-block:nth-child(1) { animation-delay: 0.1s; }
.loader-block:nth-child(2) { animation-delay: 0.2s; }
.loader-block:nth-child(3) { animation-delay: 0.3s; }
.loader-block:nth-child(4) { animation-delay: 0.4s; }
.loader-block:nth-child(5) { animation-delay: 0.5s; }
.loader-block:nth-child(6) { animation-delay: 0.6s; }
.loader-block:nth-child(7) { animation-delay: 0.7s; }
.loader-block:nth-child(8) { animation-delay: 0.8s; }

@keyframes loader_562 {
  0% { transform: scale(1); box-shadow: 0 0 20px rgba(232, 199, 124, 0.5); }
  20% { transform: scale(1, 2.5); box-shadow: 0 0 50px rgba(232, 199, 124, 0.7); }
  40% { transform: scale(1); box-shadow: 0 0 20px rgba(232, 199, 124, 0.5); }
}

/* From Uiverse.io by Shoh2008 - Tags: loader（排行榜图片加载中） */
.lds-ellipsis {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}

.lds-ellipsis div {
  position: absolute;
  top: 33px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #e8c77c;
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.lds-ellipsis div:nth-child(1) { left: 8px; animation: lds-ellipsis1 0.6s infinite; }
.lds-ellipsis div:nth-child(2) { left: 8px; animation: lds-ellipsis2 0.6s infinite; }
.lds-ellipsis div:nth-child(3) { left: 32px; animation: lds-ellipsis2 0.6s infinite; }
.lds-ellipsis div:nth-child(4) { left: 56px; animation: lds-ellipsis3 0.6s infinite; }

@keyframes lds-ellipsis1 { 0% { transform: scale(0); } 100% { transform: scale(1); } }
@keyframes lds-ellipsis3 { 0% { transform: scale(1); } 100% { transform: scale(0); } }
@keyframes lds-ellipsis2 { 0% { transform: translate(0, 0); } 100% { transform: translate(24px, 0); } }

/* From Uiverse.io by omar-alghaish - Tags: loader（首屏加载） */
@keyframes animate8345 {
  0%, 100% { filter: hue-rotate(0deg); }
  50% { filter: hue-rotate(40deg); }
}

.text-loader {
  background: linear-gradient(to right, #b8893a, #f5e2a8, #e8c77c);
  font-size: 30px;
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: animate8345 3s linear infinite;
  font-weight: bold;
  letter-spacing: 2px;
}
