/* DCR AI Experience — property page Q&A, AI 找房 bar on the search page, request sheet. Follows the "DCR AI 找房交互方案" boards 2–5 and 8. */
.dcrx{--navy:#0B1E33;--blue:#004274;--gold:#E7C788;--ink:#172536;--grey:#4A5A6A;--mist:#F6F7F5;--line:#E1E5EA;
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;color:var(--ink);line-height:1.5;text-align:left;-webkit-font-smoothing:antialiased}
.dcrx,.dcrx *,.dcrx *::before,.dcrx *::after{box-sizing:border-box}
.dcrx h2,.dcrx h3,.dcrx p,.dcrx ul,.dcrx dl,.dcrx dd,.dcrx fieldset,.dcrx legend{margin:0;padding:0;border:0;font-family:inherit;letter-spacing:0;text-transform:none}
.dcrx ul{list-style:none}
.dcrx a,.dcrx a:hover,.dcrx a:focus{text-decoration:none}
.dcrx button,.dcrx input,.dcrx textarea{font-family:inherit;margin:0}
.dcrx button{cursor:pointer}
.dcrx-sr,.dcrx-hp{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;padding:0;opacity:0}
@keyframes dcrxUp{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes dcrxDot{0%,80%,100%{opacity:.25}40%{opacity:1}}

/* ---------- property page panel ---------- */
.dcrq{margin:0 0 30px;display:flex;flex-direction:column;gap:16px}
.dcrq-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.dcrq-facts>div{padding:10px 12px;background:#fff;border:1px solid var(--line);border-radius:8px;display:flex;flex-direction:column-reverse;gap:2px;min-width:0}
.dcrq-facts dt{font-size:12px;line-height:1.4;font-weight:400;color:var(--grey)}
.dcrq-facts dd{font-size:15px;line-height:1.4;font-weight:700;color:var(--ink);overflow-wrap:anywhere}
.dcrq-main{display:flex;flex-direction:column;gap:16px}
.dcrq-chat{background:#fff;border:1.5px solid var(--blue);border-radius:10px;overflow:hidden;display:flex;flex-direction:column}
.dcrq-chat__top{padding:12px 14px;background:var(--blue);color:#fff;display:flex;gap:10px;align-items:center}
.dcrq-chat__top img{width:40px;height:40px;border-radius:50%;object-fit:cover;flex-shrink:0}
.dcrq-chat__top div{display:flex;flex-direction:column;gap:1px}
.dcrx .dcrq-chat__top h2{font-size:16px;line-height:1.4;font-weight:700;color:#fff}
.dcrq-chat__top span{font-size:12.5px;line-height:1.4;color:#E8EEF3}
.dcrq-chat__log{min-height:120px;max-height:360px;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:10px;overscroll-behavior:contain}
.dcrq-msg{display:flex}
.dcrq-msg--me{justify-content:flex-end}
.dcrq-msg>div{max-width:88%;padding:10px 14px;font-size:15px;line-height:1.6;border-radius:14px;overflow-wrap:anywhere}
.dcrq-msg--ai>div{background:var(--mist);color:var(--ink);border-top-left-radius:4px}
.dcrq-msg--me>div{background:var(--blue);color:#fff;border-top-right-radius:4px}
.dcrq-msg--new{animation:dcrxUp .3s ease both}
.dcrq-msg>.dcrq-typing{padding:14px 16px;display:flex;gap:6px}
.dcrq-typing span{width:8px;height:8px;border-radius:50%;background:var(--blue);animation:dcrxDot 1.2s infinite}
.dcrq-typing span:nth-child(2){animation-delay:.2s}.dcrq-typing span:nth-child(3){animation-delay:.4s}
.dcrq-msg>.dcrq-ans{display:flex;flex-direction:column;gap:8px}
.dcrq-ans__lead{font-size:15px;line-height:1.5}
.dcrq-ans dl{display:grid;grid-template-columns:minmax(64px,max-content) minmax(0,1fr);gap:6px 12px;font-size:14px;line-height:1.5}
.dcrq-ans dt{color:var(--grey);font-weight:400}
.dcrq-ans dd{font-weight:600;color:var(--ink);overflow-wrap:anywhere}
.dcrq-ans__note{font-size:13px;line-height:1.5}
.dcrq-ans__src{font-size:12px;color:var(--grey)}
.dcrq-ans__unknown{margin:0 -14px -10px;padding:10px 14px;background:#FBF3DC;border-radius:0 0 14px 14px;display:flex;flex-direction:column;gap:2px;font-size:14px;line-height:1.5}
.dcrq-ans__lead+.dcrq-ans__unknown,.dcrq-ans>.dcrq-ans__unknown:first-child{margin:-10px -14px;border-radius:4px 14px 14px 14px}
.dcrq-ans__unknown strong{font-size:13px}
.dcrq-msg>.dcrq-offer{background:#E8EEF3;display:flex;flex-direction:column;gap:8px}
.dcrq-offer label{font-size:14px;line-height:1.5;font-weight:600}
.dcrq-offer div{display:flex;gap:8px}
.dcrx .dcrq-offer input{flex:1 1 auto;min-width:0;height:44px;padding:0 12px;background:#fff;border:1px solid #9AA9B8;border-radius:6px;font-size:16px;color:var(--ink);box-shadow:none}
.dcrx .dcrq-offer button{height:44px;padding:0 16px;border:0;border-radius:6px;background:var(--blue);color:#fff;font-size:15px;font-weight:700}
.dcrq-msg>.dcrq-offer--ok{background:#E3F1EC;color:#0B4F3B;font-size:14px;font-weight:600}
.dcrq-chips{padding:0 14px;display:flex;flex-wrap:wrap;gap:8px}
.dcrx .dcrq-chips button{min-height:40px;padding:6px 12px;background:#fff;border:1px solid var(--blue);border-radius:6px;font-size:14px;line-height:1.3;color:var(--blue);transition:background .15s ease,transform .15s ease}
.dcrx .dcrq-chips button:hover{background:#E8EEF3;transform:translateY(-1px)}
.dcrx form.dcrq-ask{margin:12px 14px 14px;height:52px;padding:0 4px 0 14px;background:#fff;border:1px solid #9AA9B8;border-radius:6px;display:flex;align-items:center;gap:6px}
.dcrx form.dcrq-ask:focus-within{border-color:var(--blue)}
.dcrx .dcrq-ask input{flex:1 1 auto;min-width:0;height:44px;padding:0;border:0;outline:none;background:transparent;box-shadow:none;font-size:16px;color:var(--ink)}
.dcrx .dcrq-ask input::placeholder{color:#6B7A89;opacity:1}
.dcrx .dcrq-ask button{width:44px;height:44px;flex-shrink:0;padding:0;border:0;border-radius:6px;background:var(--blue);color:#fff;display:flex;align-items:center;justify-content:center}
.dcrq-noted{margin:0 14px 14px;padding:10px 12px;background:#FBF3DC;border-radius:6px;font-size:13px;line-height:1.5}
.dcrq-noted li::before{content:"· "}
.dcrq-agent{padding:16px;background:#fff;border:1px solid var(--line);border-radius:10px;display:flex;flex-direction:column;gap:12px}
.dcrq-agent__who{display:flex;flex-direction:column;gap:2px;font-size:12.5px;line-height:1.5;color:var(--grey)}
.dcrq-agent__name{font-size:17px;font-weight:700;color:var(--ink)}
.dcrq-agent p{font-size:13px;line-height:1.6;color:var(--grey)}
.dcrq-agent__btns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.dcrx .dcrq-btn{height:48px;padding:0 10px;border-radius:6px;display:flex;align-items:center;justify-content:center;font-size:15px;font-weight:700;white-space:nowrap}
.dcrx .dcrq-btn--gold{border:0;background:var(--gold);color:var(--navy)}
.dcrx a.dcrq-btn--line{border:1.5px solid var(--blue);color:var(--blue)}
.dcrq-agent__wx{font-size:13px;color:var(--grey)}
.dcrq-faq{display:flex;flex-direction:column;gap:8px}
.dcrx .dcrq-faq h2{font-size:18px;line-height:1.4;font-weight:700;color:var(--ink)}
.dcrq-faq>div{padding:12px 14px;background:#fff;border:1px solid var(--line);border-radius:8px}
.dcrx .dcrq-faq h3{margin:0 0 2px;font-size:14px;line-height:1.5;font-weight:700;color:var(--ink)}
.dcrq-faq p{font-size:14px;line-height:1.6;color:var(--grey)}
.dcrx p.dcrq-note{font-size:12px;line-height:1.6;color:var(--grey)}

/* thumb-reach bar on phones */
.dcrq-bar{position:fixed;left:0;right:0;bottom:0;z-index:999;padding:10px 16px calc(10px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--line);display:flex;gap:10px;box-shadow:0 -4px 16px rgba(11,30,51,.08)}
.dcrq-bar a,.dcrq-bar button{height:48px;border-radius:6px;display:flex;align-items:center;justify-content:center;font-size:15px;font-weight:700}
.dcrx.dcrq-bar a{padding:0 16px;border:1.5px solid var(--blue);color:var(--blue)}
.dcrq-bar button{flex:1 1 auto;border:0;background:var(--gold);color:var(--navy);font-size:16px}
body.single-property{padding-bottom:72px}

/* ---------- AI 找房 bar (search page) ---------- */
.dcrx-findbar{padding:20px 15px 4px}
.dcrx-findbar__in{max-width:1140px;margin:0 auto;display:flex;flex-direction:column;gap:12px}
.dcrx form.dcrx-find{height:54px;margin:0;padding:0 5px 0 10px;background:#fff;border:1px solid #D5DBE1;border-radius:6px;display:flex;align-items:center;gap:8px}
.dcrx-find__bot{width:32px;height:32px;border-radius:50%;object-fit:cover;flex-shrink:0}
.dcrx form.dcrx-find input[type=search]{flex:1 1 auto;min-width:0;height:44px;padding:0;border:0;outline:none;background:transparent;box-shadow:none;font-size:16px;color:var(--ink);-webkit-appearance:none;appearance:none}
.dcrx form.dcrx-find input::placeholder{color:#6B7A89;opacity:1}
.dcrx form.dcrx-find button{height:44px;padding:0 18px;border:0;background:var(--blue);color:#fff;border-radius:4px;font-size:15px;font-weight:700;white-space:nowrap;flex-shrink:0}
.dcrx-findbar__conds{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:13px;color:var(--grey)}
.dcrx-findbar__conds span{margin-right:2px}
.dcrx-findbar__conds em{padding:3px 10px;background:#E8EEF3;border-radius:14px;font-style:normal;font-weight:600;color:var(--blue)}
.dcrx .dcrx-findbar__link{min-height:32px;padding:0;border:0;background:transparent;font-size:13px;font-weight:700;color:var(--blue);text-decoration:underline}
.dcrx-findneed{padding:28px 15px;background:#FBF3DC}
.dcrx-findneed__in{max-width:1140px;margin:0 auto;display:flex;flex-direction:column;gap:14px}
.dcrx-findneed p{font-size:15px;line-height:1.7;color:var(--ink)}
.dcrx-findneed strong{margin-right:6px}
.dcrx-findneed__btns{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px}
.dcrx-findneed__btns a,.dcrx-findneed__btns button{height:48px;padding:0 16px;border-radius:6px;display:flex;align-items:center;justify-content:center;font-size:15px;font-weight:700}
.dcrx .dcrx-findneed__btns a{border:1.5px solid var(--blue);color:var(--blue)}
.dcrx .dcrx-findneed__btns button{border:0;background:var(--blue);color:#fff}

/* ---------- request sheet ---------- */
html.dcrx-lock,html.dcrx-lock body{overflow:hidden}
.dcrx-sheet[hidden]{display:none}
.dcrx-sheet{position:fixed;inset:0;z-index:100000;display:flex;align-items:flex-end;justify-content:center}
.dcrx-sheet__shade{position:absolute;inset:0;background:rgba(6,20,36,.55);animation:dcrxFade .2s ease both}
@keyframes dcrxFade{from{opacity:0}to{opacity:1}}
.dcrx-sheet__box{position:relative;width:100%;max-width:520px;max-height:92vh;overflow-y:auto;background:#fff;border-radius:14px 14px 0 0;animation:dcrxUp .28s ease both;overscroll-behavior:contain}
.dcrx-sheet__form,.dcrx-sheet__done{padding:18px 18px calc(18px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:16px}
.dcrx-sheet__form[hidden],.dcrx-sheet__done[hidden]{display:none}
.dcrx-sheet__head{display:flex;align-items:center;justify-content:space-between}
.dcrx .dcrx-sheet__head h2,.dcrx .dcrx-sheet__done h2{font-size:20px;line-height:1.3;font-weight:800;color:var(--ink)}
.dcrx .dcrx-sheet__x{width:44px;height:44px;margin-right:-10px;border:0;background:transparent;font-size:28px;line-height:1;color:var(--grey)}
.dcrx-sheet__home{padding:12px 14px;background:var(--mist);border-radius:8px;display:flex;flex-direction:column;gap:2px;font-size:13px;color:var(--grey)}
.dcrx-sheet__home strong{font-size:15px;color:var(--ink)}
.dcrx-sheet__qs{padding:10px 12px;background:#FBF3DC;border-radius:8px;font-size:13px;line-height:1.5}
.dcrx-sheet__qs li::before{content:"· "}
.dcrx-sheet__set{display:flex;flex-direction:column;gap:8px}
.dcrx .dcrx-sheet__set legend,.dcrx-sheet__legend{margin-bottom:8px;font-size:14px;font-weight:700;color:var(--ink)}
.dcrx .dcrx-sheet__set legend{float:left;width:100%}
.dcrx-sheet__chips{clear:both;display:flex;flex-wrap:wrap;gap:8px}
.dcrx .dcrx-sheet__chips button{height:42px;padding:0 14px;border-radius:21px;border:1px solid #9AA6B8;background:#fff;font-size:14px;color:var(--blue)}
.dcrx .dcrx-sheet__chips button[aria-pressed=true]{background:var(--blue);border-color:var(--blue);color:#fff;font-weight:700}
.dcrx.dcrx-sheet input[type=text],.dcrx.dcrx-sheet input[type=tel],.dcrx.dcrx-sheet input[type=email],.dcrx.dcrx-sheet textarea{width:100%;min-height:48px;padding:10px 12px;background:#fff;border:1px solid #9AA9B8;border-radius:6px;font-size:16px;line-height:1.5;color:var(--ink);box-shadow:none;outline:none}
.dcrx.dcrx-sheet input:focus,.dcrx.dcrx-sheet textarea:focus{border-color:var(--blue)}
.dcrx.dcrx-sheet textarea{resize:vertical}
.dcrx p.dcrx-sheet__err{padding:10px 12px;background:#FDECEC;border-radius:6px;font-size:14px;line-height:1.5;color:#8A1C1C}
.dcrx p.dcrx-sheet__err[hidden]{display:none}
.dcrx .dcrx-sheet__go{height:52px;border:0;border-radius:6px;background:var(--gold);color:var(--navy);font-size:17px;font-weight:800}
.dcrx .dcrx-sheet__go:disabled{opacity:.6}
.dcrx p.dcrx-sheet__fine{font-size:12px;line-height:1.6;color:var(--grey)}
.dcrx-sheet__fine a{color:var(--blue);font-weight:600}
.dcrx-sheet__done{align-items:stretch;text-align:center;outline:none}
.dcrx-sheet__ok{width:56px;height:56px;margin:4px auto 0;border-radius:50%;background:#E3F1EC;color:#0B6B4F;display:flex;align-items:center;justify-content:center;font-size:28px;font-weight:800}
.dcrx-sheet__done>p{font-size:15px;line-height:1.6;color:var(--grey)}
.dcrx .dcrx-sheet__sum{padding:12px 14px;background:var(--mist);border-radius:8px;display:grid;grid-template-columns:max-content minmax(0,1fr);gap:6px 14px;text-align:left;font-size:14px;line-height:1.5}
.dcrx-sheet__sum dt{color:var(--grey)}
.dcrx-sheet__sum dd{font-weight:600;overflow-wrap:anywhere}
.dcrx-sheet__more{display:flex;flex-direction:column;gap:6px;font-size:14px;color:var(--grey)}
.dcrx-sheet__more a{font-weight:700;color:var(--blue)}

@media (min-width:768px){
  .dcrq-facts{grid-template-columns:repeat(3,minmax(0,1fr))}
  .dcrx-findneed__in{flex-direction:row;align-items:center;justify-content:space-between;gap:24px}
  .dcrx-findneed__btns{flex-shrink:0;grid-template-columns:auto 160px}
  .dcrx-sheet{align-items:center}
  .dcrx-sheet__box{border-radius:14px;max-height:88vh}
}
@media (min-width:992px){
  .dcrq-bar{display:none}
  body.single-property{padding-bottom:0}
  .dcrq-facts{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
  .dcrq-main{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:20px;align-items:start}
  .dcrq-agent{position:sticky;top:90px}
  .dcrq-faq{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:12px}
  .dcrq-faq h2{grid-column:1/-1}
  .dcrx-findbar{padding-top:28px}
}
@media (prefers-reduced-motion:reduce){.dcrx *,.dcrx-sheet *{animation:none!important;transition:none!important}}
@media (max-width:991px){body.single-property .back-to-top-wrap{bottom:80px}}
