/* 再平衡提醒弹窗样式 */
#rebalanceModal {
  z-index: 10001;
}

#rebalanceModal .strategy-modal-content {
  max-width: 860px;
  max-height: 88vh;
  overflow-y: auto;
}

/* 偏离度指示器动画 */
@keyframes pulse-warning {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.urgency-critical {
  animation: pulse-warning 1.5s ease-in-out infinite;
}

/* 配置对比条 - 当前值标记动画 */
@keyframes slide-in-marker {
  from {
    opacity: 0;
    transform: translateX(-50%) scaleX(0);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) scaleX(1);
  }
}

/* 操作建议卡片悬浮效果 */
.rebalance-suggestion-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rebalance-suggestion-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* 头部再平衡小图标/徽章 */
.rebalance-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rebalance-badge.normal {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.rebalance-badge.warning {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.rebalance-badge.danger {
  background: rgba(239, 68, 68, 0.1);
  color: #f43f5e;
  border: 1px solid rgba(239, 68, 68, 0.2);
  animation: pulse-warning 2s infinite;
}

.rebalance-badge:hover {
  transform: scale(1.05);
}
