/* ===== 租房精准匹配平台 C端样式（手机壳小程序版） ===== */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { background: #1c2230; font-family: "PingFang SC", "Microsoft YaHei", sans-serif; display: flex; justify-content: center; align-items: flex-start; min-height: 100vh; padding: 24px 0; }

/* 手机壳 */
.phone { width: 400px; height: 820px; background: #f6f7fb; border-radius: 44px; border: 10px solid #0e1118; box-shadow: 0 24px 60px rgba(0,0,0,.5); overflow: hidden; position: relative; display: flex; flex-direction: column; }
.status-bar { height: 34px; background: #fff; display: flex; justify-content: space-between; align-items: center; padding: 0 24px; font-size: 12px; color: #333; flex-shrink: 0; }
.app-header { background: #fff; padding: 10px 16px 12px; border-bottom: 1px solid #eef0f4; flex-shrink: 0; }
.app-header h1 { font-size: 17px; color: #17203a; display: flex; align-items: center; gap: 8px; }
.app-header h1 .logo { width: 22px; height: 22px; border-radius: 6px; object-fit: contain; }
.screen { flex: 1; overflow-y: auto; padding: 12px 12px 20px; scrollbar-width: none; }
.screen::-webkit-scrollbar { display: none; }
.tabbar { height: 58px; background: #fff; border-top: 1px solid #eef0f4; display: flex; flex-shrink: 0; }
.tabbar .tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; color: #98a0b3; cursor: pointer; }
.tabbar .tab .ico { font-size: 19px; }
.tabbar .tab.on { color: #4f8cff; font-weight: 600; }

/* 通用 */
.card { background: #fff; border-radius: 14px; padding: 14px; margin-bottom: 10px; box-shadow: 0 1px 4px rgba(23,32,58,.04); }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 18px; border-radius: 10px; border: none; font-size: 14px; cursor: pointer; background: #eef1f6; color: #4a5568; }
.btn.primary { background: linear-gradient(135deg,#4f8cff,#6a78ff); color: #fff; font-weight: 600; }
.btn.green { background: #34c9a3; color: #fff; }
.btn.warn { background: #fff3e0; color: #e67e22; }
.btn.block { width: 100%; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 11px; background: #eef4ff; color: #4f8cff; margin: 2px 4px 2px 0; }
.tag.gray { background: #f0f2f5; color: #8a93a6; }
.tag.green { background: #e6f9f3; color: #18a37d; }
.tag.orange { background: #fff3e0; color: #e67e22; }
.muted { color: #98a0b3; font-size: 12px; }
.price { color: #ff6b35; font-weight: 700; font-size: 18px; }
.price small { font-size: 12px; font-weight: 400; color: #98a0b3; }
.row { display: flex; align-items: center; gap: 8px; }
.spread { display: flex; justify-content: space-between; align-items: center; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 13px; color: #5a6478; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; height: 42px; border: 1px solid #e3e7ee; border-radius: 10px; padding: 0 12px; font-size: 14px; background: #fff; outline: none; }
.field textarea { height: 70px; padding: 10px 12px; resize: none; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #4f8cff; }
.notice { background: #f0f6ff; border: 1px solid #d8e6ff; color: #3567c4; font-size: 12px; border-radius: 10px; padding: 8px 10px; margin-bottom: 10px; line-height: 1.6; }
.notice.warn { background: #fff8ec; border-color: #ffe3b8; color: #b06f1a; }
.section-title { font-size: 15px; font-weight: 700; color: #17203a; margin: 14px 2px 8px; }
.empty { text-align: center; color: #98a0b3; padding: 40px 0; font-size: 13px; }
.empty .big { font-size: 34px; margin-bottom: 8px; }

/* 房源卡片 */
.house-card { display: flex; gap: 12px; cursor: pointer; }
.house-thumb { width: 96px; height: 96px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 26px; }
.house-info { flex: 1; min-width: 0; }
.house-info h3 { font-size: 15px; color: #17203a; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.house-sub { font-size: 12px; color: #8a93a6; margin-bottom: 5px; }
.score-badge { background: linear-gradient(135deg,#ff8f3c,#ff6b35); color: #fff; font-size: 11px; padding: 2px 7px; border-radius: 20px; }
.src-badge { font-size: 11px; padding: 2px 7px; border-radius: 6px; }
.src-collect { background: #f0f2f5; color: #8a93a6; }
.src-owner { background: #e6f9f3; color: #18a37d; }
.src-broker { background: #f0e9ff; color: #7c5cff; }

/* 筛选 */
.filters { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 10px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; padding: 7px 14px; background: #fff; border-radius: 20px; font-size: 13px; color: #5a6478; cursor: pointer; border: 1px solid transparent; }
.chip.on { background: #eef4ff; color: #4f8cff; border-color: #cfe0ff; font-weight: 600; }

/* 详情页 */
.hero { height: 190px; border-radius: 14px; margin-bottom: 12px; display: flex; align-items: flex-end; padding: 12px; color: #fff; font-size: 12px; background-size: cover; }
.dot-row { display: flex; gap: 6px; margin-top: 8px; }
.dot-row span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.5); }
.dot-row span.on { background: #fff; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; font-size: 13px; color: #5a6478; }
.info-grid b { color: #17203a; font-weight: 600; }
.bottom-actions { display: flex; gap: 8px; padding: 10px 12px; background: #fff; border-top: 1px solid #eef0f4; flex-shrink: 0; }
.bottom-actions .btn { flex: 1; }

/* 登录 */
.login-wrap { padding: 30px 6px; }
.login-logo { width: 68px; height: 68px; border-radius: 18px; object-fit: contain; display: block; margin: 10px auto 14px; }

/* 估值看板 */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stat { background: linear-gradient(160deg,#f4f8ff,#eef4ff); border-radius: 12px; padding: 12px; }
.stat .v { font-size: 19px; font-weight: 700; color: #2f5fd0; margin-top: 2px; }
.stat .k { font-size: 12px; color: #7c88a0; }
.conf-high { color: #18a37d; } .conf-medium { color: #e67e22; } .conf-low { color: #98a0b3; }

/* toast & modal */
.toast { position: absolute; left: 50%; top: 46%; transform: translate(-50%,-50%); background: rgba(20,25,40,.86); color: #fff; padding: 10px 18px; border-radius: 10px; font-size: 13px; z-index: 99; max-width: 300px; text-align: center; }
.modal-mask { position: absolute; inset: 0; background: rgba(15,20,35,.5); z-index: 90; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal-mask.lg { padding: 0; align-items: stretch; }
.modal-mask.lg .modal { width: 100%; max-width: 100%; max-height: 100%; border-radius: 0; padding: 14px 14px 18px; }
.modal { background: #fff; border-radius: 16px; width: 100%; max-height: 78%; overflow-y: auto; padding: 18px 16px; position: relative; }
.modal h3 { font-size: 16px; margin-bottom: 12px; color: #17203a; }
.modal .close-btn { position: absolute; top: 10px; right: 12px; width: 28px; height: 28px; border-radius: 50%; background: #f0f2f5; color: #5a6478; border: none; font-size: 18px; line-height: 26px; padding: 0; cursor: pointer; z-index: 5; }
.modal .close-btn:hover { background: #e3e7ee; color: #17203a; }
.modal-mask.lg .close-btn { top: 14px; right: 14px; }

/* ====== 单页搜索引擎布局 ====== */
/* 顶部 home-header：左上角品牌+地理位置，右上角我的 */
.home-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; }
.brand-area { display: flex; align-items: center; gap: 5px; cursor: pointer; }
.brand-area .logo { width: 26px; height: 26px; border-radius: 7px; object-fit: contain; }
.brand-area .brand-name { font-size: 16px; font-weight: 700; color: #17203a; margin-left: 4px; }
.brand-area .loc-divider { color: #c3c9d6; font-size: 13px; margin: 0 2px; }
.brand-area .loc { font-size: 13px; color: #4f8cff; font-weight: 600; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-area .loc-arrow { font-size: 10px; color: #98a0b3; }

/* ===== 私聊（租客 ↔ 带看中介） ===== */
.chat-box { flex: 1; overflow-y: auto; background: #f4f6fa; border-radius: 10px; padding: 10px; min-height: 200px; }
.chat-row { margin-bottom: 10px; display: flex; flex-direction: column; align-items: flex-start; }
.chat-row.me { align-items: flex-end; }
.chat-row .bubble { max-width: 78%; padding: 8px 12px; border-radius: 12px; font-size: 14px; line-height: 1.5; background: #fff; color: #17203a; border: 1px solid #e8ecf3; word-break: break-all; }
.chat-row.me .bubble { background: #4f8cff; color: #fff; border-color: #4f8cff; }
.chat-row .chat-time { font-size: 10px; color: #9aa7bd; margin-top: 3px; }
.mine-btn { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; border: none; background: #eef4ff; cursor: pointer; padding: 0; display: flex; align-items: center; justify-content: center; }
.mine-btn .avatar { font-size: 16px; line-height: 1; }

/* 搜索模块（轮播图下方） */
.search-panel { background: #fff; border-radius: 14px; padding: 14px; margin-bottom: 14px; box-shadow: 0 2px 8px rgba(23,32,58,.05); }
.search-box-lg { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; background: #f4f6fb; border-radius: 21px; border: 1px solid #e7ebf3; margin-bottom: 12px; }
.search-box-lg .ico { font-size: 14px; color: #98a0b3; }
.search-box-lg input { flex: 1; border: none; background: transparent; outline: none; font-size: 14px; color: #17203a; height: 100%; }
.search-box-lg input::placeholder { color: #98a0b3; }
.search-box-lg .clear { width: 20px; height: 20px; border-radius: 50%; background: #cdd3df; color: #fff; border: none; font-size: 14px; line-height: 18px; padding: 0; cursor: pointer; flex-shrink: 0; }
.search-btn { height: 44px; font-size: 15px; margin-top: 4px; }

/* 搜索结果头 */
.search-result-head { display: flex; justify-content: space-between; align-items: center; padding: 0 2px 8px; }

/* 欢迎引导区 */
.welcome-guide { text-align: center; padding: 30px 20px; color: #98a0b3; }
.welcome-guide .guide-emoji { font-size: 48px; margin-bottom: 12px; }
.welcome-guide .guide-title { font-size: 16px; color: #4a5568; font-weight: 600; margin-bottom: 6px; }
.welcome-guide .guide-desc { font-size: 13px; color: #98a0b3; line-height: 1.7; }

/* 区域选择弹窗 */
.area-modal { padding-top: 14px; max-height: 80vh; overflow-y: auto; }
.area-breadcrumb { display: flex; align-items: center; gap: 6px; padding: 8px 4px 12px; flex-wrap: wrap; border-bottom: 1px solid #f0f2f7; margin-bottom: 8px; }
.area-breadcrumb .crumb { font-size: 13px; color: #98a0b3; cursor: pointer; padding: 4px 8px; border-radius: 6px; }
.area-breadcrumb .crumb.on { color: #4f8cff; font-weight: 600; background: #eef4ff; }
.area-breadcrumb .sep { color: #c3c9d6; font-size: 12px; }
.area-breadcrumb .reset-link { margin-left: auto; background: none; border: none; color: #98a0b3; font-size: 12px; cursor: pointer; padding: 4px; }
.area-list { display: flex; flex-direction: column; gap: 4px; }
.area-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 10px; font-size: 14px; color: #4a5568; cursor: pointer; transition: background .15s; }
.area-item:hover { background: #f4f6fb; }
.area-item.on { background: #eef4ff; color: #4f8cff; font-weight: 600; }
.area-item .check { color: #4f8cff; font-weight: 700; }
.area-tip { text-align: center; padding: 16px; color: #4f8cff; font-size: 13px; }

/* 轮播图 */
.carousel { position: relative; width: 100%; height: 150px; border-radius: 12px; overflow: hidden; margin-bottom: 12px; background: #e7ebf3; flex-shrink: 0; }
.carousel .slides { display: flex; height: 100%; transition: transform .5s ease; }
.carousel .slides img { width: 100%; height: 100%; object-fit: cover; flex-shrink: 0; }
.carousel-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 12px; background: linear-gradient(transparent, rgba(0,0,0,.55)); color: #fff; font-size: 12px; letter-spacing: .5px; }
.carousel .dots { position: absolute; bottom: 8px; right: 10px; display: flex; gap: 5px; }
.carousel .dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.55); cursor: pointer; }
.carousel .dots span.on { background: #fff; width: 16px; border-radius: 3px; }

/* 预算筛选行 */
.rent-filter { align-items: center; gap: 8px; }
.rent-filter select { flex: 1; height: 32px; padding: 0 8px; border: 1px solid #e3e7ee; border-radius: 16px; font-size: 12px; color: #5a6478; background: #fff; outline: none; }
.rent-filter select:focus { border-color: #4f8cff; }
.rent-filter .dash { color: #98a0b3; font-size: 12px; }

/* 列表 meta */
.list-meta { font-size: 12px; color: #8a93a6; padding: 4px 2px 8px; }
.list-meta b { color: #4f8cff; font-weight: 600; }

/* 底部双入口按钮 */
.home-actions { display: flex; gap: 10px; padding: 10px 12px; background: #fff; border-top: 1px solid #eef0f4; flex-shrink: 0; }
.home-actions .btn { flex: 1; height: 44px; font-size: 14px; }

/* 详情弹窗 */
.detail-modal { padding-top: 0; }
.detail-modal .hero { height: 170px; border-radius: 0; margin: 0 -14px 12px; padding: 12px 14px; display: flex; align-items: flex-end; }
.detail-modal .bottom-actions { padding: 12px 0 0; background: transparent; border-top: none; }

/* 我的页头像 */
.avatar-lg { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg,#4f8cff,#7c5cff); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.avatar-lg.landlord { background: linear-gradient(135deg,#34c9a3,#18a37d); }

/* 发布表单 2 列 */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid2 .field { margin-bottom: 10px; }
