/* Oral conversation: a single surface with a fixed partner on the left. */
#talkView .talk-panel > .friend-strip { display: none; }
#talkView .oral-conversation-stage {
  --partner-width: clamp(180px, 27%, 270px);
  position: relative;
  isolation: isolate;
  height: clamp(480px, 67vh, 660px);
  margin-top: 20px;
  overflow: hidden;
  background: linear-gradient(120deg, #edf6ed 0%, #f7faf5 38%, #fcfdfb 100%);
  border: 1px solid #d6e5d6;
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(49, 87, 61, .06);
}
#talkView .oral-conversation-stage::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--partner-width);
  background: radial-gradient(ellipse at 45% 60%, rgba(173, 210, 175, .24), transparent 70%);
  pointer-events: none;
}
#talkView .oral-conversation-stage #xiaoyaAvatarCard {
  position: absolute;
  z-index: 2;
  inset: 24px auto 22px 0;
  width: var(--partner-width);
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0 8px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  pointer-events: none;
}
#talkView .oral-conversation-stage .xiaoya-avatar-frame {
  flex: 1;
  width: 100%;
  min-height: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: hidden;
}
#talkView .oral-conversation-stage .xiaoya-avatar-copy {
  width: 100%;
  padding: 12px 14px 0;
  text-align: center;
}
#talkView .oral-conversation-stage .xiaoya-avatar-copy .eyebrow { display: none; }
#talkView .oral-conversation-stage .xiaoya-avatar-copy h2 {
  margin: 0 0 7px;
  font-size: 18px;
}
#talkView .oral-conversation-stage #xiaoyaAvatarHint {
  color: #698174;
  font-size: 12px;
  line-height: 1.65;
}
#talkView .oral-conversation-stage #chatWindow {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
  min-height: 0;
  max-height: none;
  margin: 0;
  padding: 28px 26px 32px calc(var(--partner-width) + 12px);
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #bdcfbf transparent;
  background: transparent;
  border: 0;
  border-radius: 0;
  scroll-padding: 22px;
}
#talkView .oral-conversation-stage #chatWindow .message {
  flex: 0 0 auto;
  width: fit-content;
  max-width: 94%;
  min-width: 0;
}
#talkView .oral-conversation-stage #chatWindow .message.student { align-self: flex-end; }
#talkView .oral-conversation-stage #chatWindow .message.agent { align-self: flex-start; }
#talkView .oral-conversation-stage #chatWindow .bubble {
  padding: 15px 18px;
  border-radius: 14px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
#talkView .oral-conversation-stage #chatWindow .message.agent .bubble {
  background: rgba(255,255,255,.94);
  border-color: #dce8db;
  box-shadow: 0 3px 10px rgba(42,74,50,.025);
}
#talkView .oral-conversation-stage #chatWindow:empty::before {
  content: "点击下方按钮，开始和阿禾聊天。";
  margin: auto 0;
  padding: 20px;
  color: #6f8476;
  line-height: 1.7;
  text-align: center;
}
@media (max-width: 640px) {
  #talkView .oral-conversation-stage {
    --partner-width: 108px;
    height: clamp(460px, 66vh, 600px);
    margin-top: 14px;
    border-radius: 14px;
  }
  #talkView .oral-conversation-stage #xiaoyaAvatarCard { inset: 48px auto 18px 0; padding: 0; }
  #talkView .oral-conversation-stage .xiaoya-avatar-copy { padding: 10px 4px 0; }
  #talkView .oral-conversation-stage .xiaoya-avatar-copy h2 { font-size: 13px; }
  #talkView .oral-conversation-stage #xiaoyaAvatarHint { font-size: 10px; }
  #talkView .oral-conversation-stage #chatWindow {
    padding: 18px 12px 22px calc(var(--partner-width) + 3px);
    gap: 14px;
  }
  #talkView .oral-conversation-stage #chatWindow .message { max-width: 100%; }
  #talkView .oral-conversation-stage #chatWindow .bubble { padding: 11px 12px; font-size: 13px; }
}
