/* QA 回归 2026-10-22 修复（fix/regression-1022） */
/* #13 地图缩放按钮被底部卡片/Tab 栏挡住：抬到 Tab 栏上方；手机上隐藏（双指缩放即可） */
#view-map .maplibregl-ctrl-bottom-right { bottom: calc(var(--tabbar-h, 84px) + 96px + env(safe-area-inset-bottom)); z-index: 510; }
@media (max-width: 760px) { #view-map .maplibregl-ctrl-bottom-right .maplibregl-ctrl-group { display: none; } }
/* #18 「附近 N 条」药丸和分类 chips 重叠：放到 chips 下方 */
html body #view-map .map-pill { top: calc(env(safe-area-inset-top, 0px) + 108px) !important; }
/* #14 中文协议链接加书名号；#23 点按区域 ≥ 32px */
html[lang^="zh"] .oauth-terms a::before { content: '《'; }
html[lang^="zh"] .oauth-terms a::after { content: '》'; }
html[lang^="zh"] .oauth-terms a { text-decoration: none; }
.oauth-terms a { display: inline-block; padding: 8px 6px; margin: -8px -2px; min-height: 32px; line-height: 16px; }
/* #22 底部注册条：按钮不换行，说明文字换行而不是截断 */
.join-cta-btns .btn-primary, .join-cta-btns button { white-space: nowrap; }
.join-cta-txt b { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.3; }
/* #19 桌面端发现页：列表区最宽 560px，但格子按 100vw 算导致方块巨大、错位；改按实际宽度算，保持 3 列 bento */
@media (min-width: 560px) { html body .bento { --cell: calc((min(100vw, 560px) - 32px - 16px) / 3); } }
/* #26 红色只给热门和未读：区域标签改中性色，「热门」单独一个小标 */
.gf-area { color: var(--v3-mute, #8A8A8A) !important; }
.gf-hot { display: inline-block; margin-left: 6px; font-size: 12px; font-weight: 600; color: #E5484D; }
/* #7 注册成功提示 */
.form-msg-ok { color: #1F9D55 !important; background: rgba(31,157,85,.08); border-radius: 10px; padding: 10px 12px; line-height: 1.45; }
/* #15 地图搜索（地点 + 帖子） */
.msr-open { position: relative; z-index: 2600; }
.msr-box { position: absolute; left: 0; right: 0; top: 0; background: #fff; border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,.2); overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; }
.msr-box .msr-in { flex: 1; border: 0; outline: 0; font-size: 16px; padding: 12px 14px; background: transparent; min-width: 0; }
.msr-box .msr-x { border: 0; background: none; color: #666; font-size: 16px; padding: 0 14px; height: 44px; }
.msr-list { flex-basis: 100%; max-height: 55vh; overflow-y: auto; border-top: 1px solid #F0F0F0; }
.msr-list:empty { display: none; }
.msr-row { display: block; width: 100%; text-align: left; border: 0; background: #fff; padding: 12px 14px; font-size: 15px; color: #111; border-bottom: 1px solid #F5F5F5; cursor: pointer; }
.msr-row small { color: #999; font-size: 12px; margin-left: 4px; }
.msr-row:hover { background: #FAFAFA; }
/* #17 地图加载前的骨架，避免 2–4 秒灰屏 */
#view-map.map-loading::after { content: ''; position: absolute; inset: 0; z-index: 400; pointer-events: none;
  background: linear-gradient(100deg, #EEF0F2 30%, #F7F8F9 50%, #EEF0F2 70%); background-size: 300% 100%; animation: mapSk 1.2s linear infinite; }
@keyframes mapSk { from { background-position: 100% 0; } to { background-position: 0 0; } }
.msr-box .msr-in::-webkit-search-cancel-button { display: none; }
body.msr-active #view-map .map-chips, body.msr-active #view-map .map-pill { visibility: hidden; }
body.msr-active #view-map .gf-card, body.msr-active #view-map .rp-entry { visibility: hidden; }
