/* ==================== DC 充电动画 v4 - 侧视 X-ray 透明车身 ==================== */

/* 电池单元格脉冲 */
@keyframes dc-cell-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

/* 充电口呼吸 */
@keyframes dc-port-breathe {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* 百分比数字呼吸光 */
@keyframes dc-pct-glow {
  0%, 100% {
    text-shadow: 0 0 6px rgba(60,210,190,0.4), 0 0 14px rgba(60,210,190,0.15);
  }
  50% {
    text-shadow: 0 0 10px rgba(60,210,190,0.7), 0 0 22px rgba(60,210,190,0.3), 0 0 34px rgba(60,180,240,0.1);
  }
}

/* 电池包呼吸光晕 */
@keyframes dc-bat-breathe {
  0%, 100% { filter: drop-shadow(0 0 3px rgba(50,180,200,0.25)); }
  50% { filter: drop-shadow(0 0 9px rgba(50,180,200,0.45)); }
}

/* ===== 容器 ===== */
.dc-anim-v4 {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.25rem 0;
}

.dc-anim-v4 .car-svg-xray {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,0.5));
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.dc-anim-v4:hover .car-svg-xray {
  transform: scale(1.02);
}

/* 电池包呼吸 */
.dc-anim-v4 .battery-pack {
  animation: dc-bat-breathe 3s ease-in-out infinite;
}

/* 正在充电的单元格脉冲 */
.dc-anim-v4 .dc-cell-charging {
  animation: dc-cell-pulse 1.2s ease-in-out infinite;
}

/* 充电口呼吸 */
.dc-anim-v4 .dc-port-dot {
  animation: dc-port-breathe 2s ease-in-out infinite;
}

/* ===== 底部信息栏 ===== */
.dc-anim-v4 .dc-info-bar {
  width: 100%;
  text-align: center;
  margin-top: 0.1rem;
  padding: 0 0.5rem;
}

.dc-anim-v4 .dc-progress-text {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.4rem;
}

.dc-anim-v4 .dc-pct-number {
  font-size: 1.2rem;
  font-weight: 800;
  color: #5eead4;
  font-family: 'SF Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: -0.02em;
  animation: dc-pct-glow 3s ease-in-out infinite;
}

.dc-anim-v4 .dc-remain-text {
  font-size: 0.72rem;
  color: var(--color-text-secondary, #94a3b8);
  font-weight: 500;
}

.dc-anim-v4 .dc-duration-text {
  font-size: 0.68rem;
  color: var(--color-text-tertiary, #8b929a);
  margin-top: 0.15rem;
}

/* ===== 响应式 ===== */
@media (max-width: 640px) {
  .dc-anim-v4 .dc-pct-number {
    font-size: 1.05rem;
  }
}

/* ===== 减少动效偏好 ===== */
@media (prefers-reduced-motion: reduce) {
  .dc-anim-v4 .battery-pack,
  .dc-anim-v4 .dc-cell-charging,
  .dc-anim-v4 .dc-port-dot,
  .dc-anim-v4 .dc-pct-number {
    animation: none;
  }
  .dc-anim-v4 circle[r="2.5"],
  .dc-anim-v4 circle[r="1.8"] {
    display: none;
  }
}
