:root {
  --energy-green: #10b981; /* 核心翠绿色 (Tailwind Emerald 500) */
  --light-green: #ecfdf5; /* 极浅绿色背景 */
  --text-gray: #374151; /* 深灰色文字，比纯黑更高级 */
}

#app-loading-mask {
  position: fixed;
  inset: 0;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 999999;
}

/* 能量容器 */
.mask-energy-wrapper {
  position: relative;
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 底部圆环阴影（增加立体感） */
.mask-energy-base {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid #f3f4f6;
}

/* 流动的绿色电流（两个交替旋转的半圆弧） */
.mask-current-arc {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid transparent;
  border-top: 4px solid var(--energy-green);
  filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.4));
  animation: rotate-current 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.mask-current-arc-inner {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-bottom: 3px solid var(--energy-green);
  opacity: 0.6;
  animation: rotate-current 0.8s linear infinite reverse;
}

/* 文字部分 */
.mask-loading-content {
  margin-top: 40px;
  text-align: center;
}

.mask-main-text {
  color: var(--text-gray);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 4px; /* 保持你要求的 4px 间距 */
  margin-bottom: 12px;
}

/* 充电百分比模拟 */
.mask-percent-text {
  font-family: monospace;
  color: var(--energy-green);
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 2px;
}

.mask-percent-text::after {
  content: ' ...';
  animation: blink 1s infinite;
}

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

@keyframes blink {
  50% {
    opacity: 0;
  }
}
