/* ===== digital-human.css —— 数字人舞台（占位实现，可替换为百度 livec SDK） ===== */

.dh-stage {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 200px;
  height: 280px;
  z-index: 9999;
  border-radius: 20px;
  overflow: hidden;
  pointer-events: auto;
  cursor: pointer;
  border: 1px solid var(--accent-soft);
  background: linear-gradient(180deg, rgba(0, 30, 70, 0.85), rgba(0, 12, 30, 0.95));
  box-shadow: 0 0 24px rgba(0, 243, 255, 0.25), inset 0 0 30px var(--accent-faint);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  transition: transform 0.3s var(--ease-smooth), box-shadow 0.3s ease;
}
.dh-stage:hover { transform: translateY(-4px); box-shadow: 0 0 34px rgba(0, 243, 255, 0.4); }
.dh-stage[hidden] { display: none; }

.dh-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 1px;
  background: radial-gradient(circle at 50% 40%, rgba(0, 243, 255, 0.25), transparent 70%);
  box-shadow: 0 0 18px rgba(0, 243, 255, 0.5);
  animation: dhPulse 2.4s ease-in-out infinite;
}
@keyframes dhPulse {
  0%, 100% { box-shadow: 0 0 14px rgba(0, 243, 255, 0.35); }
  50% { box-shadow: 0 0 26px rgba(0, 243, 255, 0.65); }
}

.dh-name { color: var(--text-strong); font-family: var(--font-cn); font-size: 14px; letter-spacing: 2px; }
.dh-tip { color: var(--text-dim); font-size: 11px; letter-spacing: 1px; }

.dh-caption {
  position: absolute;
  left: 8px; right: 8px; bottom: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(0, 10, 25, 0.8);
  border: 1px solid var(--accent-soft);
  color: var(--text-strong);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s ease;
}
.dh-stage.is-speaking .dh-caption { opacity: 1; transform: translateY(0); }
