/* 紫微助教聊天页面样式 */

#tutor-page-content {
  min-height: 100vh;
  background: linear-gradient(135deg, #1a2a4a 0%, #0d1525 100%);
  padding-top: 50px;
  padding-bottom: 70px;
  position: relative;
  overflow-y: auto;
}

/* ========== 顶部栏 ========== */
.tutor-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(26, 42, 74, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tutor-header-title {
  font-size: 16px;
  font-weight: 600;
  color: #e0e7ff;
}

.tutor-header-model {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 10px;
}

/* ========== 消息区域 ========== */
.tutor-messages {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: calc(100vh - 120px);
}

.tutor-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 12px;
}

.tutor-empty-icon {
  font-size: 48px;
}

.tutor-empty-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  line-height: 1.6;
}

/* ========== 消息气泡 ========== */
.tutor-msg {
  display: flex;
}

.tutor-msg-user {
  justify-content: flex-end;
}

.tutor-msg-assistant {
  justify-content: flex-start;
}

.tutor-msg-bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.6;
  word-break: break-word;
  white-space: pre-wrap;
}

.tutor-msg-user-bubble {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.tutor-msg-assistant-bubble {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  border-bottom-left-radius: 4px;
}

.tutor-refs {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.4;
}

.tutor-model {
  margin-top: 4px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
}

.tutor-typing-cursor {
  animation: tutor-blink 0.8s infinite;
  color: #667eea;
}

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

/* ========== 输入栏 ========== */
.tutor-input-bar {
  position: fixed;
  bottom: 60px;
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(26, 42, 74, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tutor-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 14px;
  color: #fff;
  resize: none;
  outline: none;
  max-height: 100px;
  line-height: 1.4;
}

.tutor-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.tutor-input:focus {
  border-color: rgba(102, 126, 234, 0.5);
}

.tutor-send-btn {
  padding: 8px 16px;
  border-radius: 20px;
  border: none;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  cursor: not-allowed;
  transition: all 0.2s;
  white-space: nowrap;
}

.tutor-send-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  cursor: pointer;
}

.tutor-send-btn:disabled {
  opacity: 0.6;
}

/* ========== 反馈按钮 ========== */
.tutor-feedback {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 8px;
}

.tutor-fb-btn {
  padding: 4px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.tutor-fb-btn:active {
  transform: scale(0.95);
}

.tutor-fb-active {
  border-color: rgba(102, 126, 234, 0.6);
  background: rgba(102, 126, 234, 0.15);
  color: #a5b4fc;
}
