/* 对话框样式 */
.dialogue-box {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(5,10,17,0.94) 0%, rgba(5,10,17,0.76) 82%, rgba(5,10,17,0) 100%);
  backdrop-filter: blur(8px);
  padding: 34px clamp(20px, 7vw, 96px) 22px;
  padding-top: 40px;
  z-index: 15;
  min-height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-top: 1px solid rgba(255,255,255,0.28);
}

.dialogue-name {
  position: absolute;
  top: 10px;
  left: clamp(20px, 7vw, 96px);
  background: transparent;
  border-left: 3px solid #74d9ad;
  color: white;
  padding: 2px 10px;
  border-radius: 0;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: none;
}

.dialogue-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.96);
  padding-right: 40px;
  min-height: 60px;
}

.dialogue-text .action-desc {
  color: rgba(255,255,255,0.68);
  font-style: italic;
}

.dialogue-narration {
  font-size: 0.9rem;
  color: var(--text-light);
  font-style: italic;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.16);
}

/* 选项 */
.choices-box {
  position: absolute;
  bottom: 186px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 16;
  width: 90%;
  max-width: 720px;
}

.choice-btn {
  background: rgba(8,14,23,0.82);
  border: 1px solid rgba(255,255,255,0.24);
  border-left: 3px solid rgba(116,217,173,0.78);
  color: rgba(255,255,255,0.92);
  padding: 12px 18px;
  font-size: 0.95rem;
  font-family: inherit;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  backdrop-filter: blur(12px);
}

.choice-btn:hover {
  background: rgba(116,217,173,0.2);
  color: white;
  border-color: rgba(116,217,173,0.9);
  transform: translateX(8px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.22);
}

.choice-btn:active {
  transform: translateX(4px);
}

/* 打字效果 */
.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--pink);
  margin-left: 2px;
  animation: blink 0.8s infinite;
  vertical-align: text-bottom;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* 对话框点击提示 */
.dialogue-box::after {
  content: '▼';
  position: absolute;
  bottom: 8px;
  right: 16px;
  color: #74d9ad;
  font-size: 0.8rem;
  animation: bounce 1.5s infinite;
  opacity: 0.6;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}
