/* 混合模糊搜索卖点（2026-12-03）· 只给 4 篇「按关键词搜商品」文章页的对比演示用；类名 bq- 前缀。
   纯 CSS 动画：9 秒一轮——打字「caja oro 4」→ 左边（要一字不差）全部消失、0 结果；右边（华速）只留 CAJA N4 25L ORO 并标亮。
   系统设了「减少动画」时直接显示结果画面。商品名都是编的演示数据。 */
.bq-fig { margin: 0; }
.bq-demo { --bq-d: 9s; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 14px; align-items: stretch; font-size: 15px; line-height: 1.4; }
.bq-pan { background: #fff; border: 1px solid #dbe5f5; border-radius: 16px; box-shadow: 0 10px 30px -18px rgba(20, 45, 100, .35); padding: 14px 14px 16px; min-width: 0; display: flex; flex-direction: column; }
.bq-good { border-color: #9cc0ff; box-shadow: 0 14px 36px -18px rgba(31, 107, 255, .55); }
.bq-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.bq-head b { display: block; font-size: 16px; color: #11203f; }
.bq-head small { display: block; font-size: 13px; color: #5d6b86; line-height: 1.3; }
.bq-ico { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 16px; }
.bq-bad .bq-ico { background: #d94141; }
.bq-good .bq-ico { background: #12a150; }
.bq-box { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border: 2px solid #c9d6ee; border-radius: 10px; background: #f7faff; position: relative; overflow: hidden; }
.bq-good .bq-box { border-color: #1f6bff; }
.bq-box svg { flex: 0 0 18px; width: 18px; height: 18px; color: #7c8aa5; }
.bq-q { display: inline-flex; align-items: center; font-family: ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace; font-size: 16px; color: #11203f; white-space: nowrap; }
.bq-ty { display: inline-block; overflow: hidden; white-space: nowrap; width: 0; animation: bq-type var(--bq-d) infinite; }
.bq-q::after { content: ""; width: 2px; height: 20px; margin-left: 1px; background: #1f6bff; animation: bq-caret 1s steps(1) infinite; }
.bq-ph { position: absolute; left: 40px; top: 50%; transform: translateY(-50%); color: #96a3bb; font-size: 15px; white-space: nowrap; pointer-events: none; animation: bq-ph var(--bq-d) infinite; }
.bq-body { position: relative; margin-top: 10px; flex: 1; min-height: 176px; }
.bq-demo .bq-list { list-style: none; margin: 0; padding: 0; }
.bq-demo .bq-list li { margin: 0; }
.bq-r { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; font-family: ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace; font-size: 14px; color: #24324f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bq-demo .bq-list li + li { margin-top: 4px; }
.bq-r::before { content: ""; flex: 0 0 26px; height: 26px; border-radius: 6px; background: linear-gradient(135deg, #e6ecf7, #cfd9ec); }
.bq-n { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.bq-r.bq-hit::before { background: linear-gradient(135deg, #ffe48a, #e2b13c); }
.bq-bad .bq-r, .bq-good .bq-miss { animation: bq-out var(--bq-d) infinite; }
.bq-good .bq-hit { animation: bq-hit var(--bq-d) infinite; }
.bq-r mark { background: transparent; color: inherit; border-radius: 3px; padding: 0 1px; animation: bq-mark var(--bq-d) infinite; }
.bq-res { position: absolute; left: 0; right: 0; opacity: 0; animation: bq-in var(--bq-d) infinite; text-align: center; }
.bq-none { top: 36px; }
.bq-none b { display: block; font-size: 18px; color: #c23232; }
.bq-none small { display: block; margin-top: 4px; font-size: 13px; color: #5d6b86; white-space: normal; }
.bq-one { bottom: 0; }
.bq-one b { display: inline-block; font-size: 14px; color: #0d7a3c; background: #e3f6ea; border-radius: 999px; padding: 4px 12px; }
.bq-vs { align-self: center; justify-self: center; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #5d6b86; background: #eef3fc; border: 1px solid #dbe5f5; border-radius: 999px; padding: 6px 10px; white-space: nowrap; }
.bq-cap { font-size: 13.5px; color: var(--muted, #5d6b86); margin-top: 10px; }
/* 时间轴（9 秒）：0–10% 空框 → 10–38% 打字 → 42% 出结果 → 停到 92% → 回到开头 */
@keyframes bq-type { 0%, 10% { width: 0; animation-timing-function: steps(10, end); } 38%, 92% { width: 10ch; } 96%, 100% { width: 0; } }
@keyframes bq-ph { 0%, 9% { opacity: 1; } 10%, 95% { opacity: 0; } 97%, 100% { opacity: 1; } }
@keyframes bq-caret { 0% { opacity: 1; } 50% { opacity: 0; } }
@keyframes bq-out { 0%, 40% { opacity: 1; transform: none; } 45%, 92% { opacity: 0; transform: translateX(10px); } 97%, 100% { opacity: 1; transform: none; } }
@keyframes bq-hit { 0%, 40% { background: transparent; } 45%, 92% { background: #fff6d6; box-shadow: inset 0 0 0 1px #f0d36b; } 97%, 100% { background: transparent; } }
@keyframes bq-mark { 0%, 42% { background: transparent; } 47%, 92% { background: #ffd84d; } 97%, 100% { background: transparent; } }
@keyframes bq-in { 0%, 42% { opacity: 0; transform: translateY(6px); } 47%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@media (max-width: 720px) {
  .bq-demo { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .bq-body { min-height: 150px; }
}
@media (prefers-reduced-motion: reduce) {
  .bq-ty, .bq-q::after, .bq-ph, .bq-r, .bq-r mark, .bq-res { animation: none !important; }
  .bq-ty { width: 10ch; }
  .bq-ph { opacity: 0; }
  .bq-bad .bq-r, .bq-good .bq-miss { opacity: 0; }
  .bq-good .bq-hit { background: #fff6d6; box-shadow: inset 0 0 0 1px #f0d36b; }
  .bq-r mark { background: #ffd84d; }
  .bq-res { opacity: 1; }
}
