/* 加载 / 提示 */
.loading-state {
  text-align: center;
  padding: 28px 16px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.spinner {
  border: 2px solid rgba(232, 137, 155, 0.18);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.error-toast {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-primary);
  color: white;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(28, 24, 34, 0.2);
  z-index: 3000;
  font-size: 0.88rem;
  max-width: 90%;
  display: none;
  animation: toastIn 0.25s ease;
  font-weight: 500;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.offline-banner {
  background: var(--text-primary);
  color: rgba(255, 255, 255, 0.95);
  text-align: center;
  padding: 10px 12px;
  font-size: 0.84rem;
  font-weight: 500;
  display: none;
  box-shadow: none;
  position: relative;
  z-index: 20;
}
