* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #eef1f5;
  color: #1c2532;
  min-height: 100vh;
}
.stage { display: flex; min-height: 100vh; align-items: flex-start; justify-content: center; gap: 48px; padding: 40px 24px; }

.side { width: 300px; padding-top: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-dot { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg,#0f2540,#b08542); }
.brand-t { font-size: 16px; font-weight: 700; }
.brand-s { font-size: 12px; color: #8b96a6; }
.side-hint { font-size: 12.5px; line-height: 1.9; color: #5b6778; background: #fff; border-radius: 12px; padding: 16px; margin-top: 24px; }
.side-hint code { background: #f4f6f9; padding: 1px 5px; border-radius: 4px; font-size: 11.5px; color: #b08542; }
.side-link { display: block; font-size: 13px; color: #0f2540; text-decoration: none; background: #fff; border-radius: 10px; padding: 12px 16px; margin-top: 10px; border: 1px solid #e6eaf0; }
.side-link:hover { border-color: #b08542; color: #b08542; }
.side-sep { height: 1px; background: #dfe4ec; margin: 20px 0; }
.side-note { font-size: 11.5px; color: #8b96a6; line-height: 1.9; }

.phone-wrap { display: flex; flex-direction: column; align-items: center; }
.phone {
  width: 390px; height: 800px; background: #f4f6f9; border-radius: 38px;
  box-shadow: 0 24px 60px rgba(15,37,64,.18), 0 0 0 10px #10161f, 0 0 0 11px #2b3543;
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  /* 关键：让内部 position:fixed 相对手机屏定位，而不是相对浏览器视口 */
  transform: translateZ(0);
}
.phone-status { height: 34px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; font-size: 12px; font-weight: 600; color: #1c2532; flex-shrink: 0; }
.phone-status-r { font-size: 10px; letter-spacing: 1px; }
.phone-nav { height: 44px; display: flex; align-items: center; justify-content: center; position: relative; flex-shrink: 0; background: #0f2540; }
.phone-title { color: #fff; font-size: 15px; font-weight: 600; }
.phone-back { position: absolute; left: 16px; top: 0; height: 44px; display: flex; align-items: center; color: #fff; font-size: 24px; cursor: pointer; visibility: hidden; }
.phone-body { flex: 1; overflow-y: auto; overflow-x: hidden; background: #f4f6f9; }
.wx-page { min-height: 100%; padding-bottom: 8px; }
.phone-tip { font-size: 12px; color: #8b96a6; margin-top: 18px; }

.wx-tabbar {
  display: flex; border-top: 1px solid #eef1f5; background: #fff; flex-shrink: 0;
  padding-bottom: 6px;
}
.wx-tabbar-item {
  flex: 1; text-align: center; padding: 10px 0 6px; font-size: 11px; color: #8792a2; cursor: pointer;
}
.wx-tabbar-item.on { color: #0f2540; font-weight: 700; }
.wx-tabbar-item.on span::before { content: ''; display: block; width: 18px; height: 2px; background: #b08542; margin: -6px auto 4px; border-radius: 2px; }

.boot { position: absolute; inset: 78px 0 0 0; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; font-size: 12px; color: #8b96a6; }
.boot-spin { width: 26px; height: 26px; border: 3px solid #e6eaf0; border-top-color: #b08542; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

#wx-toast {
  position: absolute; left: 50%; bottom: 110px; transform: translateX(-50%) translateY(10px);
  background: rgba(28,37,50,.9); color: #fff; font-size: 12.5px; padding: 10px 18px; border-radius: 8px;
  opacity: 0; pointer-events: none; transition: all .2s; max-width: 80%; text-align: center; z-index: 100;
}
#wx-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.wx-modal-mask { position: absolute; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; z-index: 200; }
.wx-modal { width: 78%; background: #fff; border-radius: 14px; padding: 20px; }
.wx-modal-title { font-size: 15px; font-weight: 700; text-align: center; margin-bottom: 10px; }
.wx-modal-content { font-size: 12.5px; color: #5b6778; line-height: 1.8; white-space: pre-line; }
.wx-modal-input { width: 100%; height: 70px; background: #f4f6f9; border-radius: 8px; padding: 10px; font-size: 12.5px; margin-top: 12px; border: none; resize: none; }
.wx-modal-actions { display: flex; margin-top: 18px; gap: 10px; }
.wx-modal-btn { flex: 1; height: 38px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 13.5px; cursor: pointer; }
.wx-modal-btn.cancel { background: #f4f6f9; color: #5b6778; }
.wx-modal-btn.confirm { background: #0f2540; color: #fff; font-weight: 600; }

.wx-component { display: block; }

/* 小程序基础组件在浏览器里的等价样式 */
.wx-button { border: none; line-height: normal; }

@media (max-width: 1100px) {
  .stage { flex-direction: column; align-items: center; gap: 24px; }
  .side { width: 390px; padding-top: 0; }
}

/* fixed 元素收敛在手机屏内 */
.phone .fixed-bar { position: absolute; }
.phone.has-tab .fixed-bar { bottom: 46px !important; }
/**
 * 注意：.cmp-bar 不再需要 override
 *
 * 它早期是 position:fixed（会被 tabBar 盖住），这里加了 absolute + bottom 的 hack。
 * 后来业务代码改成文档流内的普通块（见 pages/house-list/house-list.wxss 的说明），
 * 这个 hack 反而把它拽出文档流、又被滚动容器裁掉，是「滑不下去 / 看不到对比条」的元凶。
 * 已删除，让业务样式自己说了算。
 */

/* 浏览器里 button/input 的默认样式与小程序差异较大，统一归一化，避免视觉走查误判 */
/* 注意：不要在这里设置 background —— .wx-page button 优先级(0,1,1) 会覆盖 .btn-gold(0,1,0) 的背景色 */
.wx-page button { border: none; outline: none; font-family: inherit; cursor: pointer; }
.wx-page button:focus-visible { outline: none; }
.wx-page input, .wx-page textarea { border: none; outline: none; font-family: inherit; }

/* 兜底：确保品牌色按钮不被浏览器默认样式吃掉（与小程序 .btn-gold 对齐） */
.wx-page .btn-gold { background: #b08542; color: #fff; }
.wx-page .btn-primary { background: #0f2540; color: #fff; }
.wx-page .btn-ghost { background: #fff; color: #0f2540; border: 1px solid #e6eaf0; }
