/* 陪伴角落 / 小语相关样式占位 */

.dp-companion-panel {
  position: fixed;
  right: 16px;
  bottom: 80px;
  width: min(320px, 90vw);
  max-height: 60vh;
  border-radius: 22px;
  background: linear-gradient(170deg, #ffffff 0%, #fff4f8 100%);
  box-shadow: var(--dp-shadow-soft);
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 154, 158, 0.25);
}

.dp-companion-panel-header {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 154, 158, 0.15);
  font-size: 14px;
  font-weight: 600;
}

.dp-companion-panel-body {
  padding: 16px;
  font-size: 14px;
  color: var(--dp-text-main);
}

.dp-companion-tabs {
  display: flex;
  gap: 6px;
}

.dp-companion-tab {
  border: none;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  background: #ffe8f0;
  color: var(--dp-accent);
  cursor: pointer;
}

.dp-companion-tab--active {
  background: var(--dp-accent);
  color: #ffffff;
}

.dp-companion-moods {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.dp-mood-btn {
  border: none;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  background: #ffe8f0;
  color: var(--dp-accent);
  cursor: pointer;
}

.dp-mood-btn--active {
  background: var(--dp-accent);
  color: #ffffff;
}

.dp-companion-quote-text {
  font-size: 14px;
  line-height: 1.6;
}

.dp-companion-panel-footer {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
}

.dp-companion-next-btn {
  border-radius: 999px;
  border: none;
  padding: 6px 14px;
  font-size: 12px;
  background: linear-gradient(135deg, #ff9a9e, #fecfef);
  color: #ffffff;
  cursor: pointer;
}

.dp-companion-view {
  display: none;
}

.dp-companion-view--active {
  display: block;
}

.dp-chat-messages {
  margin-top: 8px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
}

.dp-chat-main {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dp-chat-main-messages {
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
  background-image: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.85),
      rgba(255, 255, 255, 0.95)
    ),
    url("../img/chat-bg.jpg");
  background-size: cover;
  background-position: center;
}

.dp-chat-bubble {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  margin-bottom: 10px;
  animation: bubbleSlideIn 0.3s ease-out;
}

@keyframes bubbleSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dp-chat-bubble--user {
  justify-content: flex-end;
}

.dp-chat-bubble--bot {
  justify-content: flex-start;
}

.dp-chat-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background-image: url("../img/avatar.png");
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.dp-chat-bubble-text {
  max-width: 70%;
  padding: 6px 10px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.5;
}

.dp-chat-bubble--user .dp-chat-bubble-text {
  background: linear-gradient(135deg, #ffebf2, #ffe8f0);
  color: var(--dp-text-main);
  border-bottom-right-radius: 4px;
  box-shadow: 0 2px 8px rgba(255, 154, 158, 0.15);
}

.dp-chat-bubble--bot .dp-chat-bubble-text {
  background: #ffffff;
  color: var(--dp-text-main);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border-bottom-left-radius: 4px;
  border: 1px solid rgba(255, 154, 158, 0.1);
}

/* 打字中动效 */
.dp-chat-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 12px;
  background: #ffffff;
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.dp-chat-typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dp-accent);
  animation: typingBounce 1.4s infinite;
}

.dp-chat-typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.dp-chat-typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingBounce {
  0%, 60%, 100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-8px);
  }
}

.dp-chat-input-row {
  margin-top: 10px;
  display: flex;
  gap: 6px;
}

.dp-chat-input {
  flex: 1;
  resize: none;
  border-radius: 12px;
  border: 1px solid #f0c6d6;
  padding: 6px 8px;
  font-size: 13px;
}

.dp-chat-send-btn {
  border-radius: 999px;
  border: none;
  padding: 6px 12px;
  font-size: 12px;
  background: linear-gradient(135deg, #ff9a9e, #fecfef);
  color: #ffffff;
  cursor: pointer;
}



