/* =============================================================
 *  gb-ai.css —— AI 自动画图 界面样式（v2.4，暗色主题）
 * ============================================================= */
.gb-ai-panel {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 340px;
  max-height: 78vh;
  display: flex;
  flex-direction: column;
  background: #1e2330;
  border: 1px solid #2f3850;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .45);
  z-index: 9000;
  color: #dfe6f3;
  font: 13px/1.5 -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
  overflow: hidden;
}
.gb-ai-panel.gb-ai-hidden { display: none; }
.gb-ai-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; background: linear-gradient(90deg, #2a3350, #1e2330);
  border-bottom: 1px solid #2f3850; font-weight: 600; letter-spacing: .5px;
}
.gb-ai-hd .gb-ai-x {
  background: none; border: none; color: #9fb0cc; font-size: 20px; cursor: pointer; line-height: 1;
}
.gb-ai-hd .gb-ai-x:hover { color: #fff; }
.gb-ai-log {
  flex: 1; min-height: 80px; max-height: 240px; overflow-y: auto;
  padding: 10px 12px; background: #161a25;
}
.gb-ai-line { margin: 4px 0; padding: 6px 9px; border-radius: 8px; word-break: break-word; }
.gb-ai-user { background: #29407a; color: #eaf1ff; align-self: flex-end; }
.gb-ai-ai { background: #233; color: #cfe9d8; background: #1f3326; }
.gb-ai-row { padding: 6px 12px; }
.gb-ai-model {
  width: 100%; background: #11151f; color: #cfe; border: 1px solid #2f3850;
  border-radius: 7px; padding: 6px 8px; font-size: 12px;
}
.gb-ai-input-row { padding-top: 0; }
.gb-ai-input {
  width: 100%; resize: none; box-sizing: border-box;
  background: #11151f; color: #e8eefb; border: 1px solid #2f3850;
  border-radius: 8px; padding: 8px 10px; font-size: 13px; outline: none;
}
.gb-ai-input:focus { border-color: #4d6bfe; }
.gb-ai-btns { display: flex; gap: 8px; align-items: center; padding-top: 0; }
.gb-ai-mic {
  flex: 0 0 auto; width: 40px; height: 36px; border-radius: 8px; cursor: pointer;
  background: #2a3350; border: 1px solid #3a466a; color: #fff; font-size: 18px;
}
.gb-ai-mic:hover { background: #34406a; }
.gb-ai-mic-on { background: #c0392b !important; animation: gbAiPulse 1s infinite; }
.gb-ai-mic-off { opacity: .45; cursor: not-allowed; }
@keyframes gbAiPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(192,57,43,.6); } 50% { box-shadow: 0 0 0 8px rgba(192,57,43,0); } }
.gb-ai-send {
  flex: 1; height: 36px; border-radius: 8px; cursor: pointer; border: none;
  background: linear-gradient(90deg, #4d6bfe, #6a4dfe); color: #fff; font-weight: 600; font-size: 14px;
}
.gb-ai-send:hover { filter: brightness(1.08); }
.gb-ai-send:disabled { opacity: .5; cursor: default; }
.gb-ai-status { padding: 6px 12px; font-size: 12px; color: #9fb0cc; border-top: 1px solid #2f3850; }
.gb-ai-status.gb-ai-warn { color: #ffb86b; }
.gb-ai-tip { padding: 6px 12px 12px; font-size: 11px; color: #6f7e9c; line-height: 1.5; }

/* 功能区按钮沿用 .rbtn 体系 */
.gbai-rgroup .rbtn svg.ic { width: 22px; height: 22px; }
.gbai-rgroup .rbtn svg.ic path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
