/* A5 不需登入的物件提問（我想提問）。桌機 object_page 與 mo 物件頁共用；.quick-ask-mo 為手機版微調 */
.quick-ask { margin: 24px 0 28px; padding: 18px 18px 14px; border: 1px solid #e3e6ea; border-radius: 10px; background: #fafbfc; }
.quick-ask .qa-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 12px; }
.quick-ask .qa-title { margin: 0; font-size: 18px; font-weight: 700; color: #222; line-height: 1.3; }
.quick-ask .qa-sub { margin: 0; font-size: 13px; color: #777; }

.quick-ask .qa-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.quick-ask .qa-chip {
    appearance: none; -webkit-appearance: none;
    border: 1px solid #c9d6e3; background: #fff; color: #1f4e79;
    border-radius: 999px; padding: 8px 14px; font-size: 14px; line-height: 1.3; cursor: pointer;
    text-align: left; max-width: 100%;
    transition: background .15s, border-color .15s;
}
.quick-ask .qa-chip:hover { background: #eef4fa; border-color: #8fb0d1; }
.quick-ask .qa-chip-human { border-style: dashed; color: #444; }
.quick-ask .qa-tools { margin-top: 10px; }
.quick-ask .qa-shuffle {
    appearance: none; -webkit-appearance: none; border: 0; background: none; padding: 4px 0;
    color: #1f6fb2; font-size: 13px; cursor: pointer; text-decoration: underline;
}

.quick-ask .qa-panel { margin-top: 14px; padding: 14px 16px; background: #fff; border: 1px solid #e3e6ea; border-radius: 8px; }
.quick-ask .qa-q { font-weight: 700; color: #222; font-size: 15px; margin-bottom: 8px; }
.quick-ask .qa-q::before { content: "問："; color: #1f6fb2; margin-right: 4px; }
.quick-ask .qa-a { font-size: 15px; line-height: 1.75; color: #333; white-space: pre-wrap; word-break: break-word; min-height: 1.75em; }
.quick-ask .qa-a::before { content: "答："; color: #2a8a5c; margin-right: 4px; }
.quick-ask .qa-a-loading { color: #888; }
.quick-ask .qa-a-loading::before { content: ""; margin: 0; }
/* 等待 AI 首包時的三點跳動動畫（純 CSS，不載圖） */
.quick-ask .qa-dots { display: inline-block; margin-left: 6px; vertical-align: baseline; }
.quick-ask .qa-dots i { display: inline-block; width: 6px; height: 6px; margin: 0 2px; border-radius: 50%; background: #1f6fb2; opacity: .35;
    animation: qa-bounce 1.2s infinite ease-in-out; }
.quick-ask .qa-dots i:nth-child(2) { animation-delay: .2s; }
.quick-ask .qa-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes qa-bounce { 0%, 80%, 100% { transform: translateY(0); opacity: .35; } 40% { transform: translateY(-5px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .quick-ask .qa-dots i { animation: none; opacity: .7; } }

.quick-ask .qa-followup { margin-top: 12px; padding-top: 12px; border-top: 1px dashed #e3e6ea; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.quick-ask .qa-followup-text { margin: 0; font-size: 14px; color: #555; }
/* 按「留下電話」後：答案留著，表單接在答案下方 */
.quick-ask .qa-followup-form { display: block; }
.quick-ask .qa-followup-form .qa-notice { margin-bottom: 8px; }

.quick-ask .qa-notice { margin: 0 0 10px; font-size: 14px; color: #555; }
.quick-ask .qa-lead { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.quick-ask .qa-input {
    flex: 1 1 160px; min-width: 0; height: 40px; padding: 0 12px; font-size: 15px;
    border: 1px solid #c9d6e3; border-radius: 6px; background: #fff; color: #222;
}
.quick-ask .qa-input:focus { outline: none; border-color: #1f6fb2; }
.quick-ask .qa-btn {
    appearance: none; -webkit-appearance: none; height: 40px; padding: 0 18px; font-size: 15px; font-weight: 700;
    border: 1px solid #1f6fb2; border-radius: 6px; background: #1f6fb2; color: #fff; cursor: pointer; white-space: nowrap;
}
.quick-ask .qa-btn:disabled { opacity: .6; cursor: default; }
.quick-ask .qa-btn-outline { background: #fff; color: #1f6fb2; height: 34px; font-size: 14px; font-weight: 600; }
.quick-ask .qa-msg { flex-basis: 100%; margin: 0; font-size: 13px; color: #777; min-height: 1em; }
.quick-ask .qa-msg-err { color: #c0392b; }
.quick-ask .qa-fine { flex-basis: 100%; margin: 2px 0 0; font-size: 12px; color: #999; }
.quick-ask .qa-done { margin: 0; font-size: 15px; color: #2a8a5c; font-weight: 600; }
.quick-ask .qa-turnstile { position: absolute; left: -9999px; top: 0; width: 1px; height: 1px; overflow: hidden; }

/* 手機版 */
.quick-ask-mo { margin: 12px 0 8px; padding: 14px 12px 10px; border-radius: 8px; }
.quick-ask-mo .qa-title { font-size: 17px; }
.quick-ask-mo .qa-chip { font-size: 14px; padding: 8px 12px; }
.quick-ask-mo .qa-input { flex-basis: 100%; }
.quick-ask-mo .qa-btn { width: 100%; }
@media (max-width: 480px) {
    .quick-ask .qa-input { flex-basis: 100%; }
    .quick-ask .qa-btn { width: 100%; }
}
