/* AI 购房顾问 H5 独立入口 */
*{box-sizing:border-box;margin:0;padding:0}
body{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;background:#f2f5f8;height:100vh;display:flex;flex-direction:column;overflow:hidden}
.ai-head{background:linear-gradient(135deg,#0a7abf,#0e9bd8);color:#fff;padding:16px 18px 14px;flex-shrink:0}
.ai-head-title{font-size:19px;font-weight:800;letter-spacing:.5px}
.ai-head-sub{font-size:12px;opacity:.85;margin-top:3px}
.ai-body{flex:1;overflow-y:auto;padding:16px 14px;display:flex;flex-direction:column;gap:12px}
.ai-msg{max-width:88%;padding:11px 14px;border-radius:16px;font-size:14px;line-height:1.7;white-space:pre-wrap;word-break:break-word}
.ai-msg.user{align-self:flex-end;background:#0a7abf;color:#fff;border-bottom-right-radius:5px}
.ai-msg.bot{align-self:flex-start;background:#fff;color:#333;border:1px solid #e5e7eb;border-bottom-left-radius:5px;box-shadow:0 1px 4px rgba(0,0,0,.04)}
.ai-msg.bot b{color:#0a7abf}
.ai-msg.bot h3{font-size:14.5px;margin:8px 0 4px;color:#0a7abf}
.ai-msg.bot ul,.ai-msg.bot ol{margin:4px 0;padding-left:20px}
.ai-msg.bot li{margin:3px 0}
.ai-msg.bot hr{border:none;border-top:1px dashed #d1d5db;margin:10px 0}
/* 房源卡片 */
.prop-card{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:12px;margin-top:10px;box-shadow:0 1px 6px rgba(0,0,0,.05)}
.prop-card .pc-top{display:flex;gap:10px}
.prop-card img.pc-img{width:76px;height:60px;object-fit:cover;border-radius:8px;flex-shrink:0;background:#eef2f6}
.prop-card .pc-info{flex:1;min-width:0}
.prop-card .pc-title{font-size:13.5px;font-weight:700;color:#111;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.prop-card .pc-meta{font-size:12px;color:#6b7280;margin-top:4px}
.prop-card .pc-price{font-size:15px;font-weight:800;color:#e11d48;margin-top:4px}
.prop-card .pc-price small{font-size:11px;color:#9ca3af;font-weight:400}
.prop-card .pc-score{display:inline-block;background:#0a7abf;color:#fff;font-size:11px;padding:2px 8px;border-radius:10px;margin-top:6px}
.prop-card .pc-steal{display:inline-block;background:#f59e0b;color:#fff;font-size:11px;padding:2px 8px;border-radius:10px;margin-top:6px;margin-left:6px}
.prop-card .pc-reasons{font-size:12px;color:#374151;margin-top:8px;border-top:1px dashed #e5e7eb;padding-top:8px}
.prop-card .pc-reasons div{margin:3px 0;padding-left:14px;position:relative}
.prop-card .pc-reasons div::before{content:"✓";position:absolute;left:0;color:#0a7abf;font-weight:700}
.prop-card .pc-link{display:block;text-align:center;font-size:12.5px;color:#0a7abf;margin-top:10px;text-decoration:none;font-weight:600;border:1px solid #0a7abf;border-radius:8px;padding:6px;background:#f0f8ff}
.ai-typing{display:inline-block;width:8px;height:8px;border-radius:50%;background:#9ca3af;margin-right:4px;animation:ai-blink 1s infinite}
.ai-typing:nth-child(2){animation-delay:.2s}
.ai-typing:nth-child(3){animation-delay:.4s}
@keyframes ai-blink{0%,80%,100%{opacity:.2}40%{opacity:1}}
.ai-inputbar{display:flex;gap:8px;padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #e5e7eb;flex-shrink:0}
.ai-inputbar textarea{flex:1;border:1px solid #d1d5db;border-radius:20px;padding:10px 14px;font-size:14px;resize:none;outline:none;min-height:40px;max-height:100px;font-family:inherit;background:#f7f9fb}
.ai-inputbar textarea:focus{border-color:#0a7abf;background:#fff}
.ai-inputbar button{background:#0a7abf;color:#fff;border:none;border-radius:20px;padding:0 22px;font-size:14px;font-weight:700;cursor:pointer}
.ai-inputbar button:disabled{opacity:.5}
.ai-quick{display:flex;gap:8px;padding:8px 12px;overflow-x:auto;flex-shrink:0;background:#fff;border-top:1px solid #f0f0f0;-webkit-overflow-scrolling:touch}
.ai-quick span{flex:0 0 auto;background:#eef4fb;color:#0a7abf;font-size:12.5px;padding:6px 12px;border-radius:16px;cursor:pointer;white-space:nowrap}
