/* 基础重置与主题变量 */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: #e7ecff;
  background: #0b0f1a;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
}

:root {
  --surface: rgba(255,255,255,0.08);
  --surface-strong: rgba(255,255,255,0.12);
  --border: rgba(255,255,255,0.18);
  --glow-1: #00e0ff;
  --glow-2: #7f00ff;
  --glow-3: #00ffa3;
  --accent: #77d1ff;
}

/* 动态背景：多层渐变流动与柔光效果 */
.background {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.background::before,
.background::after {
  content: "";
  position: absolute;
  inset: -20%;
  filter: blur(60px);
  opacity: 0.6;
}
.background::before {
  background: radial-gradient(40% 60% at 20% 30%, rgba(0,224,255,0.22), transparent 60%),
              radial-gradient(30% 40% at 80% 20%, rgba(127,0,255,0.25), transparent 65%),
              radial-gradient(50% 50% at 50% 80%, rgba(0,255,163,0.18), transparent 70%);
  animation: driftA 24s ease-in-out infinite;
}
.background::after {
  background: radial-gradient(30% 45% at 15% 80%, rgba(127,0,255,0.22), transparent 60%),
              radial-gradient(45% 50% at 85% 60%, rgba(0,224,255,0.18), transparent 70%);
  mix-blend-mode: screen;
  animation: driftB 32s ease-in-out infinite;
}

@keyframes driftA {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  25% { transform: translate3d(-2%, 1%, 0) scale(1.02); }
  50% { transform: translate3d(2%, -1%, 0) scale(1.04); }
  75% { transform: translate3d(-1%, 2%, 0) scale(1.01); }
}
@keyframes driftB {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  33% { transform: translate3d(2%, -2%, 0) scale(1.03); }
  66% { transform: translate3d(-2%, 1%, 0) scale(1.02); }
}

/* 中心卡片容器（玻璃拟态） */
.card {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 40px);
}
.card > * {
  width: min(980px, 92vw);
}
.header, .progress-section, .currency-section, .footer {
  background: linear-gradient(180deg, var(--surface), rgba(255,255,255,0.06));
  border: 1px solid var(--border);
  border-radius: 24px;
  backdrop-filter: blur(12px) saturate(1.1);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35), inset 0 0 40px rgba(255,255,255,0.06);
}

.header { padding: clamp(16px, 3.5vw, 28px) clamp(18px, 4vw, 32px); }
.title {
  margin: 0;
  font-size: clamp(22px, 3.2vw, 36px);
  letter-spacing: 0.5px;
}
.subtitle {
  margin: 6px 0 0;
  color: #b8c6e3;
  font-size: clamp(12px, 1.8vw, 16px);
}

.progress-section { padding: clamp(18px, 4vw, 32px); margin-top: 16px; }
.progress-wrap { display: grid; gap: 14px; }

.progress-bar {
  position: relative;
  height: clamp(14px, 2.5vw, 22px);
  border-radius: 999px;
  background: rgba(255,255,255,0.09);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
}
.progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background-image: linear-gradient(90deg, #00e0ff, #7f00ff);
  box-shadow: 0 0 30px rgba(127,0,255,0.35);
  overflow: hidden;
}
.progress-fill::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    120deg,
    rgba(255,255,255,0.22) 25%,
    rgba(255,255,255,0.05) 25%,
    rgba(255,255,255,0.05) 50%,
    rgba(255,255,255,0.22) 50%,
    rgba(255,255,255,0.22) 75%,
    rgba(255,255,255,0.05) 75%
  );
  background-size: 36px 36px;
  animation: flow 2.6s linear infinite;
  mix-blend-mode: overlay;
}
@keyframes flow {
  0% { background-position: 0 0; }
  100% { background-position: 180px 0; }
}

.progress-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: clamp(16px, 2.4vw, 22px);
  color: #dfe8ff;
}
.percent {
  font-weight: 700;
  color: #bfe5ff;
  text-shadow: 0 0 12px rgba(0,224,255,0.35);
}
.legend { display: flex; gap: 18px; flex-wrap: wrap; color: #b9c5de; }
.legend-item { display: inline-flex; gap: 8px; align-items: center; }
.legend-item .goal-rmb, .legend-item .acq-rmb,
.legend-item .goal-mlgb, .legend-item .acq-mlgb { color: #e7ecff; }

.currency-section { padding: clamp(18px, 4vw, 28px); margin-top: 16px; display: grid; gap: 18px; }
.stat { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; }
.stat-label { color: #c7d3ec; font-size: clamp(14px, 2.2vw, 18px); display: flex; align-items: center; gap: 10px; }
.stat-label.with-icon { align-items: center; }
.stat-value { font-size: clamp(18px, 3vw, 28px); font-weight: 700; color: #e7ecff; text-shadow: 0 0 14px rgba(0,224,255,0.18); }

.gem-icon {
  width: clamp(20px, 4vw, 32px);
  height: clamp(20px, 4vw, 32px);
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(127,0,255,0.3));
}

.footer { padding: clamp(14px, 3vw, 20px); margin-top: 16px; display: grid; gap: 8px; }
.note { color: #b3c0d8; }
.hint { color: #94a3bd; font-size: clamp(12px, 1.8vw, 14px); }

/* 交互与动画细节 */
.progress-fill { transition: width 1.6s cubic-bezier(.2,.8,.2,1); }
.progress-bar:hover .progress-fill { box-shadow: 0 0 36px rgba(127,0,255,0.5); }

/* 响应式细节：小屏加强紧凑布局 */
@media (max-width: 520px) {
  .legend { gap: 10px; }
  .stat { grid-template-columns: 1fr; }
  .stat-value { justify-self: start; }
}