/* ═══════ AI Create — 聊天工作区，极简 ═══════ */
.chat-wrap { max-width: 760px; margin: 0 auto; }
.create-header { position: sticky; top: var(--nav-h); z-index: 10; background: var(--bg); padding: 8px 0 4px; margin-top: -8px; }
.mode-bar { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.mode-chip { flex: 1; min-width: 110px; padding: 14px 10px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); text-align: center; cursor: pointer; transition: all 0.3s var(--ease); }
.mode-chip:hover { border-color: var(--border-strong); }
.mode-chip.active { border-color: var(--accent); background: var(--accent-soft); }
.mode-chip__name { font-size: 0.85rem; font-weight: 500; }
.mode-chip__cost { font-size: 0.7rem; color: var(--fg-dim); margin-top: 2px; }
.mode-chip.active .mode-chip__cost { color: var(--accent); }
.cost-line { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--fg-muted); margin-bottom: 12px; }
.cost-line em { font-style: normal; color: var(--accent); font-weight: 500; }
.chat-msgs { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; min-height: 180px; }
.chat-msg { display: flex; gap: 8px; }
.chat-msg.user { flex-direction: row-reverse; }
.chat-msg .bubble { max-width: 78%; padding: 10px 16px; border-radius: var(--radius-lg); font-size: 0.88rem; line-height: 1.55; }
.chat-msg.user .bubble { background: var(--fg); color: var(--bg-card); border-bottom-right-radius: 2px; position: relative; padding-bottom: 26px; }
.copy-bubble-btn { position: absolute; bottom: 3px; right: 8px; background: none; border: none; color: rgba(255,255,255,0.5); font-size: 0.75rem; cursor: pointer; padding: 2px; }
.copy-bubble-btn:hover { color: rgba(255,255,255,0.8); }
.chat-msg.ai .bubble { background: var(--bg-card); border: 1px solid var(--border); border-bottom-left-radius: 2px; }
.input-row { display: flex; gap: 8px; }
.input-row textarea { flex: 1; padding: 12px 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); color: var(--fg); font-size: 0.88rem; resize: none; min-height: 46px; max-height: 120px; }
.input-row textarea:focus { outline: none; border-color: var(--fg); }
.input-row .send-btn { width: 46px; background: var(--fg); border-radius: var(--radius); color: var(--bg-card); font-size: 1.1rem; transition: all 0.25s; }
.input-row .send-btn:hover { background: var(--pop); }
.params-toggle { display: flex; align-items: center; gap: 6px; color: var(--fg-muted); font-size: 0.8rem; padding: 6px 0; margin-bottom: 8px; cursor: pointer; }
.params-panel { display: none; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
.params-panel.open { display: block; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .chat-wrap { max-width: 100%; padding: 0 16px; }
  .mode-chip { min-width: 90px; padding: 10px 6px; }
  .mode-chip__name { font-size: 0.78rem; }
}
@media (max-width: 500px) {
  .chat-wrap { padding: 0 12px; }
  .mode-chip { min-width: 70px; padding: 8px 4px; }
  .mode-chip__name { font-size: 0.72rem; }
  .chat-msg .bubble { max-width: 90%; font-size: 0.82rem; }
  .input-row textarea { font-size: 0.82rem; }
  .params-panel { padding: 12px; }
}
