/* ===== 租房精准匹配平台 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; }

/* 物业类型区分（2026-10-14）：住宅保持原样，商铺/写字楼/厂房用色带 + 角标区分 */
.use-badge { display: inline-block; font-size: 11px; padding: 1px 6px; border-radius: 5px; background: #fff3e0; color: #e67e22; margin-right: 5px; vertical-align: 1px; font-weight: 600; }
.house-card.use-shop { box-shadow: inset 4px 0 0 #e67e22; }
.house-card.use-shop .house-thumb { background: linear-gradient(135deg,#ffd9c2,#ffb98f) !important; }
.house-card.use-office { box-shadow: inset 4px 0 0 #12a5a5; }
.house-card.use-office .house-thumb { background: linear-gradient(135deg,#c9f0ee,#9fe0dd) !important; }
.house-card.use-factory { box-shadow: inset 4px 0 0 #8a93a6; }
.house-card.use-factory .house-thumb { background: linear-gradient(135deg,#dfe3ea,#c2c9d6) !important; }

/* 筛选 */
.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; }
/* 品牌区窄屏防折行（2026-10-14）：窄屏下"住家户"被压成两行、定位按钮被挤得只剩图标，
   且原按钮是白字白底（rgba 白底 + 白字）叠在白色头部上 —— 文字完全不可见。
   原则：只有城市名允许收缩省略，品牌名/图标/按钮一律不收缩。 */
.home-header .brand-area { flex-wrap: nowrap; min-width: 0; }
.brand-area > * { flex-shrink: 0; }
.brand-area .brand-name { white-space: nowrap; }
.brand-area .loc { flex-shrink: 1; min-width: 0; max-width: 84px; }
.brand-area .loc-btn { margin-left: 6px; height: 26px; padding: 0 10px; background: #eef4ff; color: #4f8cff;
  border: 1px solid #d6e4ff; border-radius: 14px; font-size: 12px; cursor: pointer; white-space: nowrap; }
/* 页脚公司名 = 采集入口（员工点这里 + 输工作口令） */
.footer-co { cursor: pointer; -webkit-user-select: none; user-select: none; touch-action: manipulation; }
.footer-co:active { opacity: .55; }

/* ===== 私聊（租客 ↔ 带看中介） ===== */
.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-subtitle] 角标两行样式 */
/* 标题行：主标题，稍大稍粗 */
.carousel-cap .cap-t { font-size: 13px; font-weight: 600; line-height: 1.35; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
/* 副标题行：次要说明，稍小、半透明 */
.carousel-cap .cap-s { font-size: 11px; line-height: 1.35; opacity: .88; margin-top: 1px; }
.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; }

/* ============ 首页广告位（搜索结果第 3 条，与促销/零工地图同款） ============ */
.promo-card { position: relative; display: flex; align-items: center; gap: 12px; border: 1.5px dashed #f59e0b; background: #fffbeb; cursor: pointer; overflow: hidden; }
.promo-badge { position: absolute; top: 0; right: 0; background: #f59e0b; color: #fff; font-size: 10px; padding: 1px 7px; border-bottom-left-radius: 8px; }
.promo-ico { width: 52px; height: 52px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 26px; background: #fef3c7; border-radius: 10px; }
.promo-img { width: 52px; height: 52px; flex-shrink: 0; object-fit: cover; border-radius: 10px; }
.promo-info { flex: 1; min-width: 0; padding-right: 8px; }
.promo-title { font-size: 14px; font-weight: 600; color: #92400e; }
.promo-sub { font-size: 12px; color: #b45309; margin-top: 2px; }
.promo-cta { font-size: 12px; color: #d97706; font-weight: 600; margin-top: 4px; display: inline-block; }
.promo-dots { position: absolute; bottom: 7px; right: 10px; display: flex; gap: 4px; }
.promo-dot { width: 6px; height: 6px; border-radius: 50%; background: #fcd34d; cursor: pointer; }
.promo-dot.on { background: #f59e0b; }
@media (prefers-reduced-motion: reduce) { .promo-card { transition: none; } }

/* ===== 招商 · 新房（付费推广频道，2026-10-14）=====
   金色系与房源（蓝/橙）区分 —— 这是付费位，视觉上要"贵一点" */
.home-promo-entry { display: flex; align-items: center; gap: 10px; margin: 0 12px 8px;
  padding: 10px 12px; border-radius: 12px; cursor: pointer;
  background: linear-gradient(135deg,#fff7e6,#ffeccf); border: 1px solid #ffdca8; }
.home-promo-entry .pe-ic { font-size: 20px; flex-shrink: 0; }
.home-promo-entry .pe-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.home-promo-entry .pe-tx b { font-size: 14px; color: #a35b00; }
.home-promo-entry .pe-tx small { font-size: 11px; color: #c08435; }
.home-promo-entry .pe-ar { color: #d9a24a; font-size: 20px; flex-shrink: 0; }
.home-promo-entry:active { opacity: .7; }

.promo-tabs { display: flex; gap: 8px; padding: 10px 12px 4px; background: #fff; }
.promo-tabs .pt { flex: 1; text-align: center; height: 36px; line-height: 36px; border-radius: 10px;
  font-size: 13px; color: #5a6478; background: #f4f6fa; cursor: pointer; }
.promo-tabs .pt.on { background: #fff3e0; color: #c2410c; font-weight: 600; }
.promo-hint { font-size: 11px; color: #9aa7bd; padding: 6px 2px 0; }

.promo-card { display: flex; gap: 10px; margin: 10px 0 0; padding: 10px; background: #fff;
  border-radius: 12px; box-shadow: 0 1px 6px rgba(23,32,58,.06); cursor: pointer; }
.promo-card:active { background: #fafbfd; }
.pc-cover { width: 96px; height: 86px; border-radius: 10px; flex-shrink: 0; position: relative;
  display: flex; align-items: center; justify-content: center; }
.pc-cover .pc-ph { font-size: 26px; opacity: .5; }
.pc-cover .pc-kind { position: absolute; left: 4px; top: 4px; font-size: 10px; padding: 1px 6px;
  border-radius: 5px; background: rgba(0,0,0,.45); color: #fff; font-weight: 600; }
.pc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; }
.pc-body h3 { font-size: 15px; color: #17203a; margin: 0 0 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-sub { font-size: 12px; color: #8a93a6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-meta { font-size: 11px; color: #9aa7bd; margin-top: 3px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pc-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.pc-price { font-size: 14px; font-weight: 700; color: #e2571f; }
.pc-price.muted { font-weight: 400; color: #9aa7bd; font-size: 12px; }
.pc-bottom .btn { flex-shrink: 0; height: 30px; padding: 0 10px; font-size: 12px; text-decoration: none; }

/* ===== 页脚布局（2026-10-14 第四轮重做）=====
   页脚改为 .phone 的正常 flex 子项（不再 absolute/fixed 覆盖内容），
   上一轮的 margin/padding 让位空白随之删除 —— 那正是把底部双按钮
   推出小视口（375×667 / 390×780 实测不可见）的原因。 */

/* Vue 编译完成前藏起所有弹窗：实测禁用 JS 时 14 个 .modal-mask 全部渲染，
   员工口令弹窗因此"每次打开网站一闪而过"。booting 类由 Vue mounted 移除，
   另有 3 秒兜底（防 CDN 加载失败页面永久空白）。 */
body.booting .modal-mask { display: none; }

/* ===== 真机全屏适配 =====
   .phone 固定 820px 高 + body 24px padding 仅为 PC 预览设计；
   实测 375×667 / 390×780 视口下底部双按钮在视口外（需滚动网页才可见）。
   窄视口改全屏：双按钮永远贴底可见。100dvh 兼容手机地址栏收起/展开。 */
@media (max-width: 500px) {
  body { padding: 0; background: #f6f7fb; }
  .phone { width: 100%; height: 100vh; height: 100dvh; min-height: 100vh; min-height: 100dvh;
           border: none; border-radius: 0; box-shadow: none; }
  .status-bar { display: none; }
}
