/* ===================== 西京学院校园导视图 样式 ===================== */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; background: #e9eef5; }

/* 顶部栏 */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; height: 48px; z-index: 1200;
  display: flex; align-items: center; gap: 8px; padding: 0 10px;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid #eef0f4; box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.topbar .icon-btn { width: 34px; height: 34px; border: none; background: transparent; color: #333; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.topbar .back-btn { color: var(--map-theme, #7c4db3); }
.topbar .title { font-size: 16px; font-weight: 700; color: #1f2733; white-space: nowrap; }
.topbar .search-wrap { position: relative; flex: 1; }
.topbar .search-ic { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: #9aa3b0; }
.topbar #mapSearch {
  width: 100%; height: 34px; border: 1px solid #e3e7ee; border-radius: 17px;
  padding: 0 12px 0 32px; font-size: 13px; background: #f5f7fa; outline: none; color: #222;
}
.topbar #mapSearch:focus { background: #fff; border-color: var(--map-theme, #7c4db3); }

/* 搜索下拉 */
.search-results {
  position: absolute; top: 40px; left: 0; right: 0; background: #fff; border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,.14); max-height: 60vh; overflow-y: auto; z-index: 1300; padding: 4px;
}
.search-results .sr-item { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 8px; cursor: pointer; }
.search-results .sr-item:active, .search-results .sr-item:hover { background: #f2f6fc; }
.search-results .sr-name { font-size: 14px; color: #1f2733; font-weight: 600; }
.search-results .sr-cat { font-size: 11px; color: #fff; background: var(--map-theme, #7c4db3); border-radius: 4px; padding: 1px 6px; }
.search-results .sr-type { font-size: 11px; color: #fff; background: #888; border-radius: 4px; padding: 1px 6px; }
.search-results .sr-empty { padding: 14px; text-align: center; color: #9aa3b0; font-size: 13px; }

/* 地图：与 52px 底部栏精确贴合，避免中间出现白缝 */
#map { position: absolute; top: 48px; left: 0; right: 0; bottom: 52px; background: #dfe6ef; }
.leaflet-container { background: #dfe6ef; }
/* 彻底隐藏 Leaflet 默认控件容器，防止残留黑条/文字 */
.leaflet-control-container { display: none !important; }

/* 建筑标记：实心紫圆点（中心）+ 名称（上方，透明背景），替代白色胶囊标签 */
.bld-marker {
  position: relative; width: 0; height: 0; transform: translate(-50%, -50%);
  cursor: pointer; pointer-events: auto;
}
.bld-marker .bld-marker-dot {
  position: absolute; left: -5px; top: -5px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--map-theme, #7c4db3);
  border: 1.5px solid #1f2733;
  box-shadow: 0 0 0 1px rgba(255,255,255,.72), 0 1px 3px rgba(0,0,0,.28);
}
.bld-marker .bld-name {
  position: absolute; left: 50%; bottom: 8px;
  transform: translateX(-50%);
  color: var(--map-label, #7c4db3);
  font-size: 11px; font-weight: 700; line-height: 1.2; white-space: nowrap;
  text-shadow:
    -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff,
    0 0 2px #fff, 0 0 3px #fff;
  padding: 1px 4px;
}
.bld-marker-no-poly .bld-name { color: var(--map-label, #7c4db3); opacity: .82; }
.bld-marker:active .bld-marker-dot { filter: brightness(.86); }
.bld-marker.hot .bld-marker-dot { background: #e0494a; }
.bld-marker.hot .bld-name { color: #e0494a; text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff, 0 0 2px #fff; }
/* 道路名称标签：Leaflet divIcon 容器被强制设为 0×0 并用 transform 定位，
   不能把 transform/尺寸写在容器上，否则会被 Leaflet 内联样式覆盖；
   改为让内部 span 绝对定位并自居中。 */
.road-label {
  background: transparent !important; border: none !important; box-shadow: none !important;
}
.road-label span {
  display: block; position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(var(--map-theme-rgb,124,77,179),.85); color: #fff; border-radius: 4px; padding: 2px 7px;
  font-size: 11px; line-height: 1.2; box-shadow: 0 1px 3px rgba(0,0,0,.2); white-space: nowrap; cursor: pointer;
}
.road-label.hot span { background: #e0494a; }

/* 聚合标签 */
.bld-cluster {
  display: flex; align-items: center; gap: 5px; transform: translate(-50%, -50%);
  background: rgba(31,39,51,.9); color: #fff; border-radius: 14px; padding: 4px 9px;
  font-size: 12px; white-space: nowrap; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.15);
}
.bld-cluster-num {
  width: 18px; height: 18px; border-radius: 50%; background: var(--map-theme, #7c4db3);
  display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700;
}
.bld-cluster-names { max-width: 120px; overflow: hidden; text-overflow: ellipsis; }

/* 选中建筑：持续红色外扩脉冲圈（搜索/分类选中后一直闪烁，直到重新搜索或退出选择） */
.sel-pulse { width: 0; height: 0; position: relative; }
.sel-pulse::before, .sel-pulse::after {
  content: ''; position: absolute; left: 0; top: 0; border: 3px solid #e0494a; border-radius: 50%;
  transform: translate(-50%, -50%); animation: selPulse 1.3s ease-out infinite;
}
.sel-pulse::after { animation-delay: .65s; }
@keyframes selPulse {
  0% { width: 14px; height: 14px; opacity: .95; }
  100% { width: 64px; height: 64px; opacity: 0; }
}

/* 底部浮动栏：统一亮紫 var(--map-theme, #7c4db3) + 磨砂玻璃，固定 52px 与 #map bottom 精确贴合 */
.bottombar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200;
  height: 52px; background: rgba(255,255,255,.97); backdrop-filter: blur(8px);
  border-top: 1px solid rgba(var(--map-theme-rgb,124,77,179),.12); padding: 0 14px;
  display: flex; align-items: center; gap: 12px; justify-content: space-between;
}
.bb-cat-btn {
  flex: 0 0 auto; display: flex; align-items: center; gap: 6px; padding: 8px 14px; border: none;
  border-radius: 18px; background: var(--map-theme, #7c4db3); color: #fff; font-size: 13px; font-weight: 600; cursor: pointer;
  box-shadow: 0 2px 8px rgba(var(--map-theme-rgb,124,77,179),.28);
}
.bb-cat-btn .bb-sub { font-size: 12px; opacity: .9; font-weight: 500; }
.bb-cat-btn:active { filter: brightness(.86); transform: scale(.98); }
/* 入口文案可由后台改（2~16 字）：一律单行，过长省略，不撑破底部栏 */
#emblemBtnLabel {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 42vw; display: block;
}
.bb-cat-btn svg { stroke: #fff; }
/* display:flex 会盖掉 hidden 属性的 UA 样式，需显式兜底（标识为空时整颗按钮隐藏） */
.bb-cat-btn[hidden] { display: none; }

/* 名称开关：iOS 风格 toggle，统一亮紫 */
.bb-name-toggle {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: #4a5160; font-weight: 600; cursor: pointer;
}
.bb-toggle-track {
  position: relative; width: 42px; height: 24px; border-radius: 12px;
  background: #d8dce6; transition: background .2s;
}
.bb-toggle-thumb {
  position: absolute; left: 2px; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s;
}
#lyrLabel:checked + .bb-toggle-track { background: var(--map-theme, #7c4db3); }
#lyrLabel:checked + .bb-toggle-track .bb-toggle-thumb { transform: translateX(18px); }
.bb-name-toggle:active .bb-toggle-thumb { transform: scale(.95); }

/* 分类选择弹窗 */
.catpick-mask { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 1600; opacity: 0; visibility: hidden; transition: opacity .25s; }
.catpick-mask.show { opacity: 1; visibility: visible; }
.catpick {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1700; background: #fff;
  border-radius: 16px 16px 0 0; transform: translateY(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1);
  max-height: 66vh; display: flex; flex-direction: column;
}
.catpick.show { transform: translateY(0); }
.catpick-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 10px; font-size: 15px; font-weight: 700; color: #1f2733; border-bottom: 1px solid #f0f2f6; }
.catpick-head .icon-btn { width: 32px; height: 32px; border: none; background: transparent; color: #888; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.catpick-body { padding: 4px 8px 18px; overflow-y: auto; }
.cp-cat, .cp-loc { display: flex; align-items: center; gap: 10px; padding: 13px 8px; border-bottom: 1px solid #f4f6fa; cursor: pointer; }
.cp-cat:active, .cp-loc:active { background: #f6f9fd; }
.cp-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
.cp-name { flex: 1; font-size: 15px; color: #1f2733; }
.cp-count { font-size: 12px; color: #9aa3b0; }
.cp-arrow { color: #c2c8d2; font-size: 18px; }
.cp-tip { font-size: 11px; color: #bbb; }
.cp-empty { padding: 30px; text-align: center; color: #9aa3b0; font-size: 14px; }
.cp-back { color: var(--map-theme, #7c4db3); font-size: 14px; font-weight: 600; cursor: pointer; }

/* 详情弹窗（屏幕正中：垂直 + 水平居中） */
.sheet-mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1400; opacity: 0; visibility: hidden; transition: opacity .25s; }
.sheet-mask.show { opacity: 1; visibility: visible; }
.sheet {
  position: fixed; left: 50%; top: 50%; z-index: 1500; background: #fff;
  border-radius: 16px; transform: translate(-50%, -50%) scale(.94);
  width: min(90vw, 420px); max-height: 78vh; display: flex; flex-direction: column;
  box-shadow: 0 16px 48px rgba(0,0,0,.28); opacity: 0; visibility: hidden;
  transition: opacity .25s ease, transform .25s cubic-bezier(.2,.8,.2,1);
}
.sheet.show { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
.sheet-handle { display: none; }
.sheet-body { padding: 22px; overflow-y: auto; flex: 1 1 auto; min-height: 0; }
.sheet-cover { width: 100%; height: 132px; object-fit: cover; border-radius: 12px; margin-bottom: 14px; background: #eef1f6; }
.sheet-title-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.sheet-title { font-size: 19px; font-weight: 800; color: #1f2733; letter-spacing: -0.2px; }
.sheet-cat { font-size: 11px; color: #fff; border-radius: 10px; padding: 3px 9px; font-weight: 600; }
.sheet-intro { font-size: 14px; line-height: 1.75; color: #4a5160; margin: 4px 0 2px; }
.sheet-intro-empty { color: #9aa3b0; font-size: 13px; }
.sheet-actions { display: flex; gap: 10px; margin-top: 20px; }
.sheet-btn {
  flex: 1; padding: 12px 8px; border: none; border-radius: 12px; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: transform .08s, filter .15s;
}
.sheet-btn:active { transform: scale(.97); }
.sheet-btn.primary { background: var(--map-theme, #7c4db3); color: #fff; box-shadow: 0 3px 8px rgba(var(--map-theme-rgb,124,77,179),.28); }
.sheet-btn.secondary { background: #f4f6fb; color: #5b6270; border: 1px solid #e3e7ee; }
.sheet-btn.secondary:active { background: #eef1f8; }

/* 导航面板（第二阶段占位，本阶段隐藏） */
.nav-panel { display: none; }

/* 导航状态栏：置于顶栏下方，展示 起点→终点 与「清除」 */
.nav-bar {
  position: fixed; left: 0; right: 0; top: 48px; z-index: 1300;
  display: flex; align-items: center; gap: 8px; padding: 8px 12px;
  background: rgba(255,255,255,.97); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(var(--map-theme-rgb,124,77,179),.14);
  box-shadow: 0 2px 8px rgba(0,0,0,.06); font-size: 13px; color: #1f2733;
}
.nav-bar[hidden] { display: none; }
.nav-bar-tag {
  flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff;
}
/* 起终点圈色与字色由后台「导航设置」下发（CSS 变量），字色按底色亮度自动取黑/白 */
.nav-bar-tag.start { background: var(--map-nav-start, #2e9e5b); color: var(--map-nav-start-ink, #fff); }
.nav-bar-tag.end { background: var(--map-nav-end, #e0494a); color: var(--map-nav-end-ink, #fff); }
.nav-bar-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 38vw; }
.nav-bar-wait { color: #9aa3b0; font-weight: 500; font-size: 12px; }
.nav-bar-arrow { color: #9aa3b0; }
.nav-bar-clear {
  margin-left: auto; flex: 0 0 auto; padding: 6px 14px; border: none; border-radius: 14px;
  background: #f4f6fb; color: #5b6270; border: 1px solid #e3e7ee; font-size: 13px; font-weight: 600; cursor: pointer;
}
.nav-bar-clear:active { background: #eef1f8; }

/* 起点 / 终点 标记（置顶，红/绿圆徽） */
.nav-pin { position: relative; width: 0; height: 0; }
.nav-pin .nav-pin-badge {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px;
  color: #fff; font-size: 12px; font-weight: 700; line-height: 22px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.3); cursor: pointer; white-space: nowrap;
}

/* 取消线路规划确认弹窗 */
.navcancel-mask {
  position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.45); padding: 24px; opacity: 0; visibility: hidden; transition: opacity .2s;
}
.navcancel-mask.show { opacity: 1; visibility: visible; }
.navcancel-card {
  width: 100%; max-width: 300px; background: #fff; border-radius: 14px; padding: 22px 20px 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,.28); text-align: center;
}
.navcancel-text { font-size: 15px; color: #1f2733; line-height: 1.6; margin-bottom: 18px; }
.navcancel-btns { display: flex; gap: 12px; }
.navcancel-btns button {
  flex: 1; padding: 11px 8px; border: none; border-radius: 11px; font-size: 14px; font-weight: 600; cursor: pointer;
}
.navcancel-cancel { background: #f4f6fb; color: #5b6270; border: 1px solid #e3e7ee; }
.navcancel-ok { background: var(--map-theme, #7c4db3); color: #fff; box-shadow: 0 3px 8px rgba(var(--map-theme-rgb,124,77,179),.28); }

/* 用法引导弹窗（进入地图页首先展示） */
.intro-mask {
  position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.45); padding: 24px; opacity: 0; visibility: hidden; transition: opacity .25s;
}
.intro-mask.show { opacity: 1; visibility: visible; }
.intro-card {
  width: 100%; max-width: 340px; background: #fff; border-radius: 16px; padding: 26px 22px 22px;
  box-shadow: 0 16px 48px rgba(0,0,0,.28); text-align: left;
}
.intro-title { font-size: 20px; font-weight: 800; color: #1f2733; text-align: center; margin-bottom: 16px; letter-spacing: .5px; }
.intro-body { margin: 0 0 14px; }
.intro-line { font-size: 14px; line-height: 1.75; color: #4a5160; margin: 0 0 8px; }
.intro-foot {
  font-size: 11px; color: #9aa3b0; line-height: 1.6; margin: 0 0 18px;
  border-top: 1px solid #f0f2f6; padding-top: 12px;
}
.intro-btn {
  width: 100%; padding: 13px; border: none; border-radius: 12px; background: var(--map-theme, #7c4db3); color: #fff;
  font-size: 15px; font-weight: 700; cursor: pointer; box-shadow: 0 3px 8px rgba(var(--map-theme-rgb,124,77,179),.28);
  transition: transform .08s, filter .15s;
}
.intro-btn:active { transform: scale(.98); filter: brightness(.96); }

/* ============================================================
   详情弹层：简介配图（固定尺寸，等比裁切）
   ============================================================ */
.sheet-figure {
  display: block;
  width: 100%;
  height: 178px;
  object-fit: cover;
  border-radius: 12px;
  margin: 0 0 14px;
  background: #eef1f6;
}
@media (max-width: 380px) {
  .sheet-figure { height: 150px; }
}

/* 前台页面背景色（由后台「页面配色」控制） */
html, body { background: var(--map-bg, #f2f6fc); }

/* ============================================================
   顶部栏「分类」按钮（搜索框右侧）
   - 点击弹出原有分类选择弹窗（.catpick）
   - 右侧显示当前所选分类，便于一眼看出筛选状态
   ============================================================ */
.top-cat-btn {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 4px;
  height: 34px; padding: 0 10px;
  border: 1px solid rgba(var(--map-theme-rgb,124,77,179),.28);
  border-radius: 17px;
  background: rgba(var(--map-theme-rgb,124,77,179),.08);
  color: var(--map-theme, #7c4db3);
  font-family: inherit; font-size: 12px; font-weight: 700;
  cursor: pointer; white-space: nowrap;
  max-width: 38vw; transition: transform .08s, filter .15s;
}
.top-cat-btn span { overflow: hidden; text-overflow: ellipsis; max-width: 22vw; }
.top-cat-btn:active { transform: scale(.96); filter: brightness(.94); }

/* ============================================================
   学校标识弹层（底部栏「西京学院标识」按钮打开）
   - 复用 .catpick 的底部抽屉外壳与遮罩
   - 三列网格列出全部标识，点任一条看内容
   ============================================================ */
.emblem-pick { max-height: 72vh; }
.emblem-pick-body {
  padding: 14px 16px;
  padding-bottom: calc(18px + env(safe-area-inset-bottom));
  overflow-y: auto;
}
.emblem-pick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
/* 标识格子：紫色「线框镂空」——不填色，只在最边沿走一圈主题色实线，中间留白。
   线框颜色永远跟随「页面配色 → 主色」（默认紫 #7c4db3），改主题即全站同步。
   文字默认深色，每一格可在后台「学校标识 → 编辑」里单独指定颜色（写入行内 style 覆盖）。 */
.emblem-cell {
  min-height: 44px; padding: 6px 5px;
  border: 1.6px solid var(--map-theme, #7c4db3);
  background: transparent;
  color: #1f2733;
  border-radius: 10px;
  font-family: inherit; font-size: 12px; font-weight: 700;
  line-height: 1.22; letter-spacing: .2px;
  display: flex; align-items: center; justify-content: center;
  text-align: center; word-break: break-all;
  cursor: pointer;
  transition: transform .08s, background .15s;
}
/* 按下才给一点点主题色淡底，平时保持镂空 */
.emblem-cell:active {
  transform: scale(.95);
  background: rgba(var(--map-theme-rgb,124,77,179),.10);
}

/* 从标识列表点开某一条时：列表「不收起」，详情叠在它上面
   - 层级：标识遮罩 1600 / 标识列表 1700 ＜ 详情遮罩 1800 / 详情 1850
   - 详情遮罩用很淡的压暗，让下面的列表依然清晰可见，避免「列表被关掉了」的错觉
   - 详情略微上移、压低最大高度，尽量少压住列表；关掉详情后可以接着点下一条 */
.sheet-mask.over-pick { z-index: 1800; background: rgba(12,16,24,.22); }
/* top 38%：让详情框底边刚好停在列表标题栏上方，列表的「×」始终露在外面可见可点 */
.sheet.over-pick { z-index: 1850; top: 38%; max-height: 60vh; }

/* 详情弹窗里的标识配图（校徽 / 照片 / 方图）：
   - 高度自适应，不再固定 178px —— 横版校徽、竖版照片都能原样完整显示
   - object-fit: contain 兜底，图片再大也只会等比缩放，绝不裁切、绝不拉伸
   - max-height 限制不超过弹窗可视高度的一半，超出时弹窗内可滚动
   - 左右 margin auto：极长的横图被 max-height 压窄后仍居中 */
.sheet-figure.is-contain {
  height: auto;
  max-height: 46vh;
  margin: 0 auto 14px;
  object-fit: contain;
  background: #f7f9fb;
  padding: 10px;
  box-sizing: border-box;
}

@media (max-width: 350px) {
  .top-cat-btn { padding: 0 8px; gap: 3px; font-size: 11.5px; }
  .emblem-pick-grid { gap: 6px; }
  .emblem-cell { font-size: 11px; padding: 6px 3px; }
}

/* ============================================================
   顶部公告条 + 纠错反馈（2026-11-11 新增）
   ============================================================ */

/* ---------- 顶部公告条 ---------- */
/* 固定贴在顶栏（48px）正下方，占 34px；z-index 略低于顶栏，避免盖住搜索下拉 */
.map-notice {
  position: fixed; left: 0; right: 0; top: 48px; z-index: 1250;
  height: 34px; display: flex; align-items: center; gap: 8px;
  padding: 0 10px 0 12px;
  background: rgba(var(--map-theme-rgb, 124, 77, 179), .10);
  border-bottom: 1px solid rgba(var(--map-theme-rgb, 124, 77, 179), .18);
  color: #4b2f76; font-size: 12.5px; line-height: 1.3;
  backdrop-filter: blur(6px);
}
.map-notice[hidden] { display: none; }
.map-notice.is-warn { background: #fff3e4; border-bottom-color: #f0cf9f; color: #9a5c11; }
.map-notice-ic {
  flex: 0 0 16px; width: 16px; height: 16px; border-radius: 50%;
  background: currentColor; color: #fff;
  font-size: 11px; font-weight: 700; line-height: 16px; text-align: center;
  opacity: .9;
}
.map-notice-tx { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-notice-x {
  flex: 0 0 auto; width: 24px; height: 24px; border: none; border-radius: 50%;
  background: transparent; color: currentColor; opacity: .55;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.map-notice-x:active { opacity: .9; }

/* 公告条出现时，导航状态栏整体下移 34px，避免被盖住。
   注意：搜索结果下拉是搜索框内的绝对定位（top:40px），不在此列——动它会把下拉推离输入框。 */
.has-notice .nav-bar { top: 82px; }

/* ---------- 纠错悬浮入口 ---------- */
/* 右下角、底部栏（52px）之上；z-index 低于顶栏与底部栏，不抢地图手势 */
.fb-float-btn {
  position: fixed; right: 14px; bottom: 66px; z-index: 1150;
  display: flex; align-items: center; gap: 5px;
  height: 34px; padding: 0 12px; border: none; border-radius: 17px;
  background: rgba(255, 255, 255, .97);
  color: var(--map-theme, #7c4db3);
  font-size: 12.5px; font-weight: 600; cursor: pointer;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .14);
  border: 1px solid rgba(var(--map-theme-rgb, 124, 77, 179), .18);
}
.fb-float-btn:active { transform: scale(.96); filter: brightness(.97); }

/* ---------- 纠错弹层 ---------- */
/* 复用 .catpick / .catpick-mask 的定位与动效，只是把内容区换成表单。
   .catpick 本身是 max-height:66vh 的 flex 列容器——表单比分类列表高得多，
   所以 .fb-body 必须显式 flex:1 + min-height:0 才能真正滚动，
   否则内容会把容器撑破、底部按钮溢出到屏幕外（实测 390×844 下会被切掉）。 */
.fb-pick { max-height: 86vh; }
.fb-pick .catpick-head { border-bottom: 1px solid #f0f2f6; }
.fb-body {
  flex: 1 1 auto; min-height: 0; overflow-y: auto;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  -webkit-overflow-scrolling: touch;
}
.fb-lead {
  margin: 0 0 14px; font-size: 13px; line-height: 1.65; color: #6b7381;
}
.fb-row { margin-bottom: 13px; }
.fb-row > label {
  display: block; margin-bottom: 6px;
  font-size: 13px; font-weight: 600; color: #1f2733;
}
.fb-opt { margin-left: 6px; font-weight: 400; font-size: 11.5px; color: #9aa3b0; }
.fb-input {
  width: 100%; box-sizing: border-box;
  padding: 10px 12px; border: 1px solid #e3e7ee; border-radius: 10px;
  background: #f8fafd; font-size: 14px; color: #1f2733;
  font-family: inherit; line-height: 1.6;
  -webkit-appearance: none; appearance: none;
}
.fb-input:focus { outline: none; border-color: var(--map-theme, #7c4db3); background: #fff; }
textarea.fb-input { resize: none; min-height: 92px; }
select.fb-input { height: 42px; }
.fb-tip {
  margin: 2px 0 16px; font-size: 11.5px; line-height: 1.6; color: #9aa3b0;
}
/* 提交按钮钉在滚动区底部：内容再长也不用滑到底才点得到 */
.fb-actions {
  display: flex; gap: 10px;
  position: sticky; bottom: 0;
  padding-top: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0), #fff 40%);
}
.fb-actions .sheet-btn { flex: 1; }
.fb-actions .sheet-btn[disabled] { opacity: .6; }
