/* 加载层容器：覆盖在内容上方 */
.custom-loader-overlay {
  position: absolute;
  /* 需确保父级 .product-info 是 relative */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* 深色磨砂玻璃背景，防止透出下方未加载的数据 */
  background: rgba(10, 15, 30, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 99;
  /* 确保在内容上方 */
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  /* 适配父容器的圆角 */
}
/* 内容居中 */
.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
/* 霓虹光环动画 */
.loader-ring {
  width: 50px;
  height: 50px;
  border: 3px solid transparent;
  /* 蓝紫渐变色，呼应您图片中的按钮颜色 */
  border-top-color: #3b82f6;
  /* 蓝色 */
  border-right-color: #8b5cf6;
  /* 紫色 */
  border-radius: 50%;
  animation: spin-neon 1.2s linear infinite;
  /* 添加发光效果 */
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
}
/* 文字样式 */
.loader-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 1px;
  /* 文字微光 */
  text-shadow: 0 0 8px rgba(59, 130, 246, 0.6);
  animation: pulse-text 1.5s ease-in-out infinite alternate;
}
/* 旋转动画 */
@keyframes spin-neon {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/* 文字呼吸动画 */
@keyframes pulse-text {
  from {
    opacity: 0.6;
    transform: translateY(0);
  }
  to {
    opacity: 1;
    transform: translateY(-2px);
    text-shadow: 0 0 12px rgba(59, 130, 246, 0.9);
  }
}
.relative {
  position: relative;
}
/* 遮罩层：全屏固定、居中布局 */
.loading-mask {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  /* 半透明黑色背景 */
  z-index: 3001;
  display: flex;
  /* 使用 flex 轻松实现居中 */
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s;
  /* 可选：增加淡入淡出效果 */
}
/* 隐藏状态 */
.loading-mask.hidden {
  display: none;
}
/* 内容容器：白色卡片背景 */
.loading-content {
  background-color: #fff;
  padding: 20px 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 120px;
}
/* 纯CSS绘制的旋转圆圈 */
.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #f3f3f3;
  /* 浅灰色底圈 */
  border-top: 3px solid #3498db;
  /* 蓝色转动部分 */
  border-radius: 50%;
  margin-bottom: 10px;
  animation: spin 1s linear infinite;
  /* 绑定旋转动画 */
}
/* 文字样式 */
.loading-text {
  margin: 0;
  color: #666;
  font-size: 14px;
}
/* 定义旋转动画的关键帧 */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.loading-mask {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.45);
  z-index: 3001;
  display: flex;
  justify-content: center;
  align-items: center;
}
.loading-mask.hidden {
  display: none;
}
.loading-content {
  background: rgba(255, 255, 255, 0.9);
  padding: 16px 24px;
  border-radius: 4px;
  box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* Ant Design 风格的四点旋转器 */
.ant-loading-spinner {
  width: 30px;
  height: 30px;
  position: relative;
  animation: antRotate 1.2s infinite linear;
  margin-bottom: 8px;
}
.ant-loading-spinner span {
  position: absolute;
  display: block;
  width: 12px;
  height: 12px;
  background-color: #1890ff;
  /* 主题色 */
  border-radius: 100%;
  opacity: 0.3;
  transform: scale(0.75);
  transform-origin: 50% 50%;
  animation: antSpinMove 1s infinite linear alternate;
}
.ant-loading-spinner span:nth-child(1) {
  top: 0;
  left: 0;
}
.ant-loading-spinner span:nth-child(2) {
  top: 0;
  right: 0;
  animation-delay: 0.4s;
}
.ant-loading-spinner span:nth-child(3) {
  right: 0;
  bottom: 0;
  animation-delay: 0.8s;
}
.ant-loading-spinner span:nth-child(4) {
  bottom: 0;
  left: 0;
  animation-delay: 1.2s;
}
.loading-text {
  margin: 0;
  color: rgba(0, 0, 0, 0.65);
  font-size: 14px;
}
@keyframes antRotate {
  to {
    transform: rotate(360deg);
  }
}
@keyframes antSpinMove {
  to {
    opacity: 1;
  }
}
#captcha-box {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.user_info {
  display: flex;
  align-items: center;
}
.user_info .user_name {
  font-size: 14px;
  color: #fff;
}
.user_info .tx {
  font-size: 14px;
  width: 40px;
  height: 40px;
  line-height: 40px;
  border-radius: 20px;
  text-align: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
}
.red_text {
  color: red;
  font-size: 14px;
}
.mar10 {
  margin: 0 10px;
}
.my-confirm-layer {
  color: #000 !important;
  /* 红色字体，按需替换 */
}
