/* 时间地点栏 */
.time-location-bar {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 12px 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9em;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* 聊天容器 */
.chat-container {
  background: transparent; /* 完全透明 */
  border-radius: 12px;
  padding: 15px 5px;
  margin-bottom: 15px;
}

.bubble-content {
  background: rgba(255, 255, 255, 0.95); /* 只有气泡有背景 */
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}
/* 气泡对话 */
.chat-bubble {
  display: flex;
  gap: 10px;
  margin: 15px 0;
  animation: bubbleIn 0.3s ease;
}

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

.ai-bubble {
  justify-content: flex-start;
}

.bubble-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.bubble-content {
  max-width: 75%;
  background: white;
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  position: relative;
}

.bubble-content::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 12px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 8px 8px 0;
  border-color: transparent white transparent transparent;
}

.bubble-name {
  font-weight: bold;
  color: #ff69b4;
  font-size: 0.85em;
  margin-bottom: 5px;
}

.bubble-text {
  color: #333;
  line-height: 1.6;
}

/* 剧情事件标签 */
.event-tag {
  display: inline-block;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: bold;
  margin: 10px 0;
  box-shadow: 0 2px 6px rgba(245, 87, 108, 0.3);
}

/* 内心独白框 */
.voice-box {
  background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
  border-left: 4px solid #e17055;
  padding: 12px 15px;
  border-radius: 8px;
  margin: 15px 0;
  font-size: 0.95em;
  color: #2d3436;
  box-shadow: 0 2px 6px rgba(253, 203, 110, 0.4);
}

.voice-box strong {
  color: #d63031;
}

/* 状态面板折叠 */
details {
  background: #fff;
  border: 2px solid #e1e8ed;
  border-radius: 10px;
  padding: 12px;
  margin: 15px 0;
  transition: all 0.3s ease;
}

details:hover {
  border-color: #667eea;
  box-shadow: 0 2px 10px rgba(102, 126, 234, 0.2);
}

details summary {
  cursor: pointer;
  font-weight: bold;
  color: #667eea;
  padding: 8px;
  border-radius: 6px;
  transition: background 0.2s;
  user-select: none;
}

details summary:hover {
  background: #f0f3ff;
}

details[open] summary {
  margin-bottom: 12px;
  border-bottom: 2px solid #e1e8ed;
  padding-bottom: 10px;
}

/* 代码块美化 */
details pre {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  color: #2c3e50;
  padding: 15px;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.85em;
  line-height: 1.6;
  margin: 8px 0;
  border-left: 4px solid #667eea;
}

/* 选项容器 */
.options-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px -15px 0 -15px; 
}

.option-item {
  background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
  color: #2d3436;
  padding: 12px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(142, 197, 252, 0.3);
  margin: 0 15px; 
}

.option-item:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(142, 197, 252, 0.5);
}

.option-item:active {
  transform: scale(0.98);
}

/* 移动端适配 */
@media (max-width: 768px) {
  .time-location-bar {
    flex-direction: column;
    gap: 5px;
    text-align: center;
  }
  
  .bubble-content {
    max-width: 85%;
  }
  
  .chat-container {
    padding: 10px;
  }
}