/* VR 预览 · AI 问答浮层（入口按钮样式由 vr-bottom-dock.css 统一接管） */

.vrshow_ai_btn {
  display: none;
  border: none;
  cursor: pointer;
  outline: none;
  color: #fff;
  background: transparent;
}
.vrshow_ai_btn.is-active,
.vrshow_ai_btn:hover {
  filter: brightness(1.08);
}

#ai_qa_panel {
  position: absolute;
  left: 12px;
  right: auto;
  bottom: 92px;
  width: min(360px, calc(100vw - 24px));
  max-height: min(480px, calc(100vh - 140px));
  z-index: 1310;
  display: none;
  flex-direction: column;
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  color: #e2e8f0;
  font-size: 13px;
}
#ai_qa_panel.is-open {
  display: flex;
}
.ai-qa-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: rgba(2, 132, 199, 0.25);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}
.ai-qa-panel__title {
  font-weight: 700;
  font-size: 14px;
}
.ai-qa-panel__actions button {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 14px;
  margin-left: 8px;
}
.ai-qa-panel__actions button:hover {
  color: #e2e8f0;
}
#ai_qa_messages {
  flex: 1;
  overflow: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 120px;
}
.ai-qa-msg {
  max-width: 92%;
  padding: 8px 10px;
  border-radius: 10px;
  line-height: 1.45;
  word-break: break-word;
}
.ai-qa-msg--user {
  align-self: flex-end;
  background: rgba(14, 165, 233, 0.35);
  color: #f0f9ff;
}
.ai-qa-msg--bot {
  align-self: flex-start;
  background: rgba(51, 65, 85, 0.85);
  color: #e2e8f0;
}
.ai-qa-msg--err {
  align-self: stretch;
  background: rgba(220, 38, 38, 0.2);
  color: #fecaca;
  font-size: 12px;
}
.ai-qa-panel__foot {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.6);
  align-items: flex-end;
}
#ai_qa_input {
  flex: 1;
  resize: none;
  min-height: 36px;
  max-height: 88px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(30, 41, 59, 0.9);
  color: #f1f5f9;
  padding: 8px 10px;
  font-size: 13px;
  outline: none;
}
#ai_qa_send,
#ai_qa_voice {
  height: 36px;
  padding: 0 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  color: #fff;
  font-size: 13px;
}
#ai_qa_send {
  background: #0369a1;
}
#ai_qa_send:hover {
  background: #0284c7;
}
#ai_qa_voice {
  background: #334155;
  min-width: 40px;
}
#ai_qa_voice.is-listening {
  background: #dc2626;
  animation: ai-qa-pulse 1s infinite;
}
@keyframes ai-qa-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}

@media (max-width: 640px) {
  #ai_qa_panel {
    left: 8px;
    right: 8px;
    width: auto;
    bottom: 86px;
    max-height: 48vh;
  }
}

/* ========== AI 问答面板 · 跟随分组样式 ========== */
#fullscreenid[data-group-style="gov"] #ai_qa_panel {
  background: rgba(18, 36, 28, 0.96);
  border-color: rgba(78, 174, 104, 0.4);
  box-shadow: 0 16px 40px rgba(30, 90, 50, 0.45);
  color: #e8f5ec;
}
#fullscreenid[data-group-style="gov"] #ai_qa_panel .ai-qa-panel__head {
  background: linear-gradient(180deg, rgba(143, 211, 154, 0.55), rgba(78, 174, 104, 0.45));
  border-bottom-color: rgba(78, 174, 104, 0.35);
}
#fullscreenid[data-group-style="gov"] #ai_qa_panel .ai-qa-panel__actions button {
  color: rgba(232, 245, 236, 0.85);
}
#fullscreenid[data-group-style="gov"] #ai_qa_panel .ai-qa-panel__actions button:hover {
  color: #fff;
}
#fullscreenid[data-group-style="gov"] #ai_qa_panel .ai-qa-msg--user {
  background: rgba(78, 174, 104, 0.45);
  color: #f0fdf4;
}
#fullscreenid[data-group-style="gov"] #ai_qa_panel .ai-qa-msg--bot {
  background: rgba(40, 70, 52, 0.9);
  color: #e8f5ec;
}
#fullscreenid[data-group-style="gov"] #ai_qa_panel .ai-qa-panel__foot {
  border-top-color: rgba(78, 174, 104, 0.3);
  background: rgba(14, 32, 24, 0.75);
}
#fullscreenid[data-group-style="gov"] #ai_qa_panel #ai_qa_input {
  border-color: rgba(78, 174, 104, 0.4);
  background: rgba(28, 52, 38, 0.95);
  color: #f0fdf4;
}
#fullscreenid[data-group-style="gov"] #ai_qa_panel #ai_qa_input:focus {
  border-color: rgba(143, 211, 154, 0.85);
  box-shadow: 0 0 0 2px rgba(78, 174, 104, 0.25);
}
#fullscreenid[data-group-style="gov"] #ai_qa_panel #ai_qa_send {
  background: linear-gradient(180deg, #8fd39a, #4eae68);
  border-radius: 999px;
}
#fullscreenid[data-group-style="gov"] #ai_qa_panel #ai_qa_send:hover {
  filter: brightness(1.08);
  background: linear-gradient(180deg, #8fd39a, #4eae68);
}
#fullscreenid[data-group-style="gov"] #ai_qa_panel #ai_qa_voice {
  background: rgba(52, 90, 64, 0.95);
  border-radius: 999px;
}
#fullscreenid[data-group-style="gov"] #ai_qa_panel #ai_qa_input {
  border-radius: 12px;
}
#fullscreenid[data-group-style="gov"] #ai_qa_panel {
  border-radius: 16px;
}
#fullscreenid[data-group-style="gov"] #ai_qa_panel #ai_qa_voice.is-listening {
  background: #dc2626;
}

#fullscreenid[data-group-style="blue_pill"] #ai_qa_panel {
  background: rgba(15, 28, 52, 0.96);
  border-color: rgba(47, 123, 255, 0.4);
  box-shadow: 0 16px 40px rgba(20, 60, 140, 0.45);
  color: #e2e8f0;
}
#fullscreenid[data-group-style="blue_pill"] #ai_qa_panel .ai-qa-panel__head {
  background: linear-gradient(180deg, rgba(90, 163, 255, 0.5), rgba(47, 123, 255, 0.4));
  border-bottom-color: rgba(47, 123, 255, 0.35);
}
#fullscreenid[data-group-style="blue_pill"] #ai_qa_panel .ai-qa-msg--user {
  background: rgba(47, 123, 255, 0.42);
  color: #f0f9ff;
}
#fullscreenid[data-group-style="blue_pill"] #ai_qa_panel .ai-qa-msg--bot {
  background: rgba(30, 48, 82, 0.9);
}
#fullscreenid[data-group-style="blue_pill"] #ai_qa_panel .ai-qa-panel__foot {
  border-top-color: rgba(47, 123, 255, 0.3);
  background: rgba(12, 24, 48, 0.75);
}
#fullscreenid[data-group-style="blue_pill"] #ai_qa_panel #ai_qa_input {
  border-color: rgba(47, 123, 255, 0.4);
  background: rgba(24, 40, 72, 0.95);
}
#fullscreenid[data-group-style="blue_pill"] #ai_qa_panel #ai_qa_input:focus {
  border-color: rgba(90, 163, 255, 0.85);
  box-shadow: 0 0 0 2px rgba(47, 123, 255, 0.25);
}
#fullscreenid[data-group-style="blue_pill"] #ai_qa_panel #ai_qa_send {
  background: linear-gradient(180deg, #5aa3ff, #2f7bff);
}
#fullscreenid[data-group-style="blue_pill"] #ai_qa_panel #ai_qa_send:hover {
  filter: brightness(1.08);
  background: linear-gradient(180deg, #5aa3ff, #2f7bff);
}
#fullscreenid[data-group-style="blue_pill"] #ai_qa_panel #ai_qa_voice {
  background: rgba(40, 60, 100, 0.95);
}

#fullscreenid[data-group-style="orange_pill"] #ai_qa_panel {
  background: rgba(42, 28, 12, 0.96);
  border-color: rgba(246, 166, 0, 0.4);
  box-shadow: 0 16px 40px rgba(120, 70, 10, 0.4);
  color: #fff7e8;
}
#fullscreenid[data-group-style="orange_pill"] #ai_qa_panel .ai-qa-panel__head {
  background: linear-gradient(180deg, rgba(255, 192, 77, 0.55), rgba(246, 166, 0, 0.45));
  border-bottom-color: rgba(246, 166, 0, 0.35);
}
#fullscreenid[data-group-style="orange_pill"] #ai_qa_panel .ai-qa-msg--user {
  background: rgba(246, 166, 0, 0.4);
  color: #fffbeb;
}
#fullscreenid[data-group-style="orange_pill"] #ai_qa_panel .ai-qa-msg--bot {
  background: rgba(72, 48, 20, 0.9);
  color: #fff7e8;
}
#fullscreenid[data-group-style="orange_pill"] #ai_qa_panel .ai-qa-panel__foot {
  border-top-color: rgba(246, 166, 0, 0.3);
  background: rgba(36, 24, 10, 0.75);
}
#fullscreenid[data-group-style="orange_pill"] #ai_qa_panel #ai_qa_input {
  border-color: rgba(246, 166, 0, 0.4);
  background: rgba(58, 40, 16, 0.95);
  color: #fffbeb;
}
#fullscreenid[data-group-style="orange_pill"] #ai_qa_panel #ai_qa_input:focus {
  border-color: rgba(255, 192, 77, 0.85);
  box-shadow: 0 0 0 2px rgba(246, 166, 0, 0.25);
}
#fullscreenid[data-group-style="orange_pill"] #ai_qa_panel #ai_qa_send {
  background: linear-gradient(180deg, #ffc04d, #f6a600);
  color: #fff;
}
#fullscreenid[data-group-style="orange_pill"] #ai_qa_panel #ai_qa_send:hover {
  filter: brightness(1.08);
  background: linear-gradient(180deg, #ffc04d, #f6a600);
}
#fullscreenid[data-group-style="orange_pill"] #ai_qa_panel #ai_qa_voice {
  background: rgba(90, 60, 20, 0.95);
}

#fullscreenid[data-group-style="classic"] #ai_qa_panel,
#fullscreenid[data-group-style="wheel"] #ai_qa_panel {
  background: rgba(16, 28, 52, 0.96);
  border-color: rgba(61, 126, 245, 0.4);
  box-shadow: 0 16px 40px rgba(30, 70, 150, 0.42);
}
#fullscreenid[data-group-style="classic"] #ai_qa_panel .ai-qa-panel__head,
#fullscreenid[data-group-style="wheel"] #ai_qa_panel .ai-qa-panel__head {
  background: linear-gradient(180deg, rgba(91, 147, 247, 0.5), rgba(61, 126, 245, 0.4));
  border-bottom-color: rgba(61, 126, 245, 0.35);
}
#fullscreenid[data-group-style="classic"] #ai_qa_panel .ai-qa-msg--user,
#fullscreenid[data-group-style="wheel"] #ai_qa_panel .ai-qa-msg--user {
  background: rgba(61, 126, 245, 0.42);
}
#fullscreenid[data-group-style="classic"] #ai_qa_panel .ai-qa-msg--bot,
#fullscreenid[data-group-style="wheel"] #ai_qa_panel .ai-qa-msg--bot {
  background: rgba(32, 48, 82, 0.9);
}
#fullscreenid[data-group-style="classic"] #ai_qa_panel .ai-qa-panel__foot,
#fullscreenid[data-group-style="wheel"] #ai_qa_panel .ai-qa-panel__foot {
  border-top-color: rgba(61, 126, 245, 0.3);
  background: rgba(14, 24, 48, 0.75);
}
#fullscreenid[data-group-style="classic"] #ai_qa_panel #ai_qa_input,
#fullscreenid[data-group-style="wheel"] #ai_qa_panel #ai_qa_input {
  border-color: rgba(61, 126, 245, 0.4);
  background: rgba(26, 40, 72, 0.95);
}
#fullscreenid[data-group-style="classic"] #ai_qa_panel #ai_qa_send,
#fullscreenid[data-group-style="wheel"] #ai_qa_panel #ai_qa_send {
  background: linear-gradient(180deg, #5b93f7, #3d7ef5);
}
#fullscreenid[data-group-style="classic"] #ai_qa_panel #ai_qa_send:hover,
#fullscreenid[data-group-style="wheel"] #ai_qa_panel #ai_qa_send:hover {
  filter: brightness(1.08);
  background: linear-gradient(180deg, #5b93f7, #3d7ef5);
}
#fullscreenid[data-group-style="classic"] #ai_qa_panel #ai_qa_voice,
#fullscreenid[data-group-style="wheel"] #ai_qa_panel #ai_qa_voice {
  background: rgba(40, 58, 100, 0.95);
}

#fullscreenid[data-group-style="glass_pill"] #ai_qa_panel {
  background: rgba(28, 32, 40, 0.72);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
#fullscreenid[data-group-style="glass_pill"] #ai_qa_panel .ai-qa-panel__head {
  background: rgba(255, 255, 255, 0.1);
  border-bottom-color: rgba(255, 255, 255, 0.16);
}
#fullscreenid[data-group-style="glass_pill"] #ai_qa_panel .ai-qa-msg--user {
  background: rgba(255, 255, 255, 0.18);
}
#fullscreenid[data-group-style="glass_pill"] #ai_qa_panel .ai-qa-msg--bot {
  background: rgba(0, 0, 0, 0.35);
}
#fullscreenid[data-group-style="glass_pill"] #ai_qa_panel .ai-qa-panel__foot {
  border-top-color: rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.28);
}
#fullscreenid[data-group-style="glass_pill"] #ai_qa_panel #ai_qa_input {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.35);
}
#fullscreenid[data-group-style="glass_pill"] #ai_qa_panel #ai_qa_send {
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.28);
}
#fullscreenid[data-group-style="glass_pill"] #ai_qa_panel #ai_qa_send:hover {
  background: rgba(255, 255, 255, 0.3);
}
#fullscreenid[data-group-style="glass_pill"] #ai_qa_panel #ai_qa_voice {
  background: rgba(255, 255, 255, 0.12);
}

#fullscreenid[data-group-style="tabs"] #ai_qa_panel {
  background: rgba(22, 16, 32, 0.96);
  border-color: rgba(255, 138, 31, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
#fullscreenid[data-group-style="tabs"] #ai_qa_panel .ai-qa-panel__head {
  background: linear-gradient(180deg, rgba(58, 51, 72, 0.95), rgba(28, 22, 40, 0.95));
  border-bottom: 2px solid #ff8a1f;
}
#fullscreenid[data-group-style="tabs"] #ai_qa_panel .ai-qa-msg--user {
  background: rgba(255, 138, 31, 0.35);
  color: #fff7ed;
}
#fullscreenid[data-group-style="tabs"] #ai_qa_panel .ai-qa-msg--bot {
  background: rgba(42, 34, 58, 0.95);
}
#fullscreenid[data-group-style="tabs"] #ai_qa_panel .ai-qa-panel__foot {
  border-top-color: rgba(255, 138, 31, 0.3);
  background: rgba(16, 12, 24, 0.8);
}
#fullscreenid[data-group-style="tabs"] #ai_qa_panel #ai_qa_input {
  border-color: rgba(255, 138, 31, 0.35);
  background: rgba(36, 28, 52, 0.95);
}
#fullscreenid[data-group-style="tabs"] #ai_qa_panel #ai_qa_send {
  background: linear-gradient(180deg, #ff9f3d, #ff8a1f);
}
#fullscreenid[data-group-style="tabs"] #ai_qa_panel #ai_qa_send:hover {
  filter: brightness(1.08);
  background: linear-gradient(180deg, #ff9f3d, #ff8a1f);
}
#fullscreenid[data-group-style="tabs"] #ai_qa_panel #ai_qa_voice {
  background: rgba(48, 40, 64, 0.95);
}

#fullscreenid[data-group-style="estate"] #ai_qa_panel {
  background: rgba(14, 20, 48, 0.96);
  border-color: rgba(42, 63, 212, 0.45);
  box-shadow: 0 16px 40px rgba(30, 40, 120, 0.45);
}
#fullscreenid[data-group-style="estate"] #ai_qa_panel .ai-qa-panel__head {
  background: linear-gradient(135deg, rgba(75, 108, 255, 0.55), rgba(42, 63, 212, 0.45));
  border-bottom-color: rgba(42, 63, 212, 0.4);
}
#fullscreenid[data-group-style="estate"] #ai_qa_panel .ai-qa-msg--user {
  background: rgba(42, 63, 212, 0.45);
}
#fullscreenid[data-group-style="estate"] #ai_qa_panel .ai-qa-msg--bot {
  background: rgba(28, 36, 72, 0.95);
}
#fullscreenid[data-group-style="estate"] #ai_qa_panel .ai-qa-panel__foot {
  border-top-color: rgba(42, 63, 212, 0.3);
  background: rgba(12, 16, 40, 0.8);
}
#fullscreenid[data-group-style="estate"] #ai_qa_panel #ai_qa_input {
  border-color: rgba(75, 108, 255, 0.4);
  background: rgba(24, 32, 68, 0.95);
}
#fullscreenid[data-group-style="estate"] #ai_qa_panel #ai_qa_send {
  background: linear-gradient(135deg, #4b6cff, #2a3fd4);
}
#fullscreenid[data-group-style="estate"] #ai_qa_panel #ai_qa_send:hover {
  filter: brightness(1.08);
  background: linear-gradient(135deg, #4b6cff, #2a3fd4);
}
#fullscreenid[data-group-style="estate"] #ai_qa_panel #ai_qa_voice {
  background: rgba(36, 44, 88, 0.95);
}

