/* 地图模块（导航 + 编辑），所有样式限定在 .cm 内 */
.cm { position: absolute; inset: 0; overflow: hidden; --map-bg: #E8E6E0; }
.cm .viewport { position: absolute; inset: 0; overflow: hidden; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; background: var(--map-bg); }
.cm .viewport.panning { cursor: grabbing; }
.cm[data-mode="edit"] .viewport { cursor: default; }
.cm[data-mode="edit"] .viewport.hit { cursor: pointer; }
.cm[data-mode="edit"][data-tool="road"] .viewport,
.cm[data-mode="edit"][data-tool="scale"] .viewport,
.cm[data-mode="edit"][data-tool="geo"] .viewport,
.cm[data-mode="edit"][data-tool="entry"] .viewport,
.cm[data-mode="edit"][data-tool="poi"] .viewport,
.cm.picking .viewport { cursor: crosshair; }
.cm[data-mode="edit"] .viewport.panning { cursor: grabbing; }
.cm .world { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.cm .world img { display: block; max-width: none; pointer-events: none; -webkit-user-drag: none; }
/* 底图瓦片：叠在预览图上，加载好淡入 */
.cm .world .tiles { position: absolute; left: 0; top: 0; }
.cm .world .tiles img { position: absolute; opacity: 0; transition: opacity .25s ease; }
.cm .world .tiles img.on { opacity: 1; }
.cm .overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.cm .overlay * { vector-effect: non-scaling-stroke; }
.cm .markers { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

/* 地点标记 */
.cm .poi { position: absolute; left: 0; top: 0; pointer-events: auto; cursor: pointer; }
.cm .poi .pin { position: absolute; left: -14px; top: -14px; width: 28px; height: 28px; border-radius: 9px; background: #fff; color: var(--c); display: grid; place-items: center; border: 1.5px solid color-mix(in srgb, var(--c) 30%, #fff); box-shadow: 0 3px 8px rgba(20, 30, 50, .18); box-sizing: border-box; transition: transform .15s ease; }
.cm .poi .pin .ic { width: 15px; height: 15px; stroke-width: 2.2; }
.cm .poi .lbl { position: absolute; left: 0; top: 17px; transform: translateX(-50%); height: 20px; line-height: 20px; padding: 0 7px; white-space: nowrap; font-size: 12px; font-weight: 600; color: #1B2430; background: rgba(255, 255, 255, .96); border-radius: 6px; box-shadow: 0 2px 6px rgba(20, 30, 50, .14); }
.cm .poi .lbl.right { left: 18px; top: -10px; transform: none; }
.cm .poi .lbl.left { left: auto; right: 18px; top: -10px; transform: none; }
.cm .poi .lbl.hide { display: none; }
.cm .poi.mini .pin { left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 5px; border-width: 1.5px; background: color-mix(in srgb, var(--c) 18%, #fff); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.cm .poi.mini .pin .ic, .cm .poi.mini .lbl { display: none; }
.cm .poi.off { display: none; }
.cm .poi:hover { z-index: 2; }
.cm .poi:hover .pin { transform: translateY(-2px); }
.cm .poi.sel { z-index: 3; }
.cm .poi.sel .pin { left: -19px; top: -19px; width: 38px; height: 38px; border-radius: 12px; background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 0 0 5px color-mix(in srgb, var(--primary) 18%, transparent), 0 6px 14px color-mix(in srgb, var(--primary) 40%, transparent); animation: cm-pop .3s ease-out; }
.cm .poi.sel .pin .ic { width: 19px; height: 19px; }
.cm .poi.sel .lbl { top: 23px; font-size: 13px; font-weight: 700; color: var(--primary); }
.cm .poi.sel .lbl.right { left: 24px; top: -10px; }
.cm .poi.sel .lbl.left { right: 24px; top: -10px; }
@keyframes cm-pop { 0% { transform: scale(.6); } 70% { transform: scale(1.12); } 100% { transform: scale(1); } }
.cm[data-mode="edit"][data-tool="road"] .poi,
.cm[data-mode="edit"][data-tool="scale"] .poi,
.cm[data-mode="edit"][data-tool="geo"] .poi,
.cm[data-mode="edit"][data-tool="entry"] .poi { pointer-events: none; opacity: .5; }

.cm .rt-pin { position: absolute; left: 0; top: 0; z-index: 4; pointer-events: none; }
.cm .rt-pin b { position: absolute; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 700; }
.cm .rt-pin.start b { left: -12px; top: -12px; width: 24px; height: 24px; border-radius: 50%; background: var(--start); box-shadow: 0 0 0 2.5px #fff, 0 2px 6px rgba(0, 0, 0, .3); }
.cm .rt-pin.end b { left: -15px; top: -37px; width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--end); border: 2.5px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.cm .rt-pin.end b i { transform: rotate(45deg); font-style: normal; }
.cm .me { position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none; }
.cm .me-acc { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); border-radius: 50%; background: color-mix(in srgb, var(--me) 14%, transparent); border: 1px solid color-mix(in srgb, var(--me) 40%, transparent); }
.cm .me-dot { position: absolute; left: -8px; top: -8px; width: 16px; height: 16px; border-radius: 50%; background: var(--me); box-shadow: 0 0 0 3px #fff, 0 1px 6px rgba(0, 0, 0, .35); }
.cm .gcp { position: absolute; left: 0; top: 0; z-index: 4; pointer-events: none; }
.cm .gcp b { position: absolute; left: -11px; top: -11px; width: 22px; height: 22px; border-radius: 50%; background: #E8930C; color: #fff; font-size: 11px; display: grid; place-items: center; box-shadow: 0 0 0 2px #fff, 0 1px 4px rgba(0, 0, 0, .3); }
.cm .gcp.tmp b { background: #fff; color: #E8930C; box-shadow: 0 0 0 2px #E8930C, 0 1px 4px rgba(0, 0, 0, .3); }
.cm .entry-h { position: absolute; left: -8px; top: -8px; width: 16px; height: 16px; z-index: 6; pointer-events: auto; cursor: move; background: #fff; border: 3px solid var(--primary); border-radius: 4px; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); }

.cm .rt-casing { fill: none; stroke: #fff; stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; }
.cm .rt-line { fill: none; stroke: var(--primary); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.cm .rt-flow { fill: none; stroke: rgba(255, 255, 255, .95); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 0.1 16; animation: cm-flow 1.1s linear infinite; }
.cm .rt-leg { fill: none; stroke: var(--primary); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1 7; opacity: .85; }
@keyframes cm-flow { to { stroke-dashoffset: -16.1; } }
@media (prefers-reduced-motion: reduce) { .cm .rt-flow { animation: none; } }
.cm .ed-edge { stroke: #2B6CF0; stroke-width: 4; stroke-linecap: round; opacity: .9; }
.cm .ed-edge.walk { stroke: #E08A2E; stroke-dasharray: 7 5; }
.cm .ed-edge.sel { stroke: #F03D6A; stroke-width: 6; opacity: 1; }
.cm .ed-node { fill: #fff; stroke: #2B6CF0; stroke-width: 2; }
.cm .ed-node.from { fill: #2B6CF0; }
.cm .ed-node.sel { fill: #F03D6A; stroke: #fff; }
.cm .ed-node.iso { fill: #FFE0E0; stroke: #E5484D; stroke-width: 2.5; }
.cm .ed-entry { stroke: var(--primary); stroke-width: 1.5; stroke-dasharray: 3 3; opacity: .7; }
.cm .ed-entry.sel { opacity: 1; stroke-width: 2; }
.cm .ed-preview { stroke: #2B6CF0; stroke-width: 2.5; stroke-dasharray: 6 5; }
.cm .ed-snap { fill: none; stroke: #F03D6A; stroke-width: 2.5; }
.cm .ed-measure { stroke: #E8930C; stroke-width: 3; stroke-dasharray: 8 5; }
.cm .ed-mpt { fill: #E8930C; stroke: #fff; stroke-width: 2; }

/* 面板 */
.cm .panel { position: absolute; left: 16px; top: 16px; width: 372px; max-height: calc(100% - 32px); background: var(--bg); border-radius: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; z-index: 10; }
.cm[data-mode="edit"] .panel { width: 384px; }
.cm .p-head { display: flex; align-items: center; gap: 10px; padding: 14px 12px 10px 16px; flex: none; }
.cm .brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.cm .brand-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--primary); color: #fff; display: grid; place-items: center; flex: none; }
.cm .brand-mark .ic { width: 20px; height: 20px; }
.cm .brand-text { min-width: 0; }
.cm .brand-text h1 { margin: 0; font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm .brand-text p { margin: 1px 0 0; font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm .campus-pick { position: relative; display: inline-flex; align-items: center; margin-top: 2px; }
.cm .campus-pick select { appearance: none; -webkit-appearance: none; border: 0; background: var(--primary-soft); color: var(--primary); font-size: 12.5px; font-weight: 600; height: 24px; padding: 0 24px 0 9px; border-radius: 12px; cursor: pointer; outline: 0; max-width: 200px; }
.cm .campus-pick .ic { position: absolute; right: 6px; width: 13px; height: 13px; color: var(--primary); pointer-events: none; }
.cm .p-body { overflow: auto; padding: 4px 16px 16px; overscroll-behavior: contain; }
.cm .sheet-toggle { display: none; }
.cm .home-actions { margin-top: 10px; }
.cm .chips { margin: 14px 0 6px; }
.cm .list { margin: 4px -8px 0; }
.cm .list.compact .li { padding: 6px 8px; gap: 10px; }
.cm .list.compact .li-ic { width: 24px; height: 24px; border-radius: 7px; }
.cm .list.compact .li-ic .ic { width: 14px; height: 14px; }
.cm .list.compact .li-name { font-size: 13.5px; font-weight: 500; }

.cm .card-top { display: flex; align-items: center; gap: 6px; margin: 0 -6px 6px; }
.cm .card-top .grow { flex: 1; }
.cm .card-title { font-size: 21px; margin: 6px 0 4px; font-weight: 700; line-height: 1.3; }
.cm .card-alias { margin: 0 0 6px; color: var(--ink-3); font-size: 12.5px; }
.cm .card-desc { margin: 10px 0 0; color: var(--ink-2); line-height: 1.7; white-space: pre-line; }
.cm .card-photo { display: block; width: 100%; border-radius: 12px; margin-top: 12px; aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg-soft); }
.cm .card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }

.cm .rt-title { margin: 0; font-size: 16px; font-weight: 700; }
.cm .rt-box { display: flex; align-items: center; gap: 4px; background: var(--bg-soft); border-radius: 12px; padding: 4px 4px 4px 14px; }
.cm .rt-fields { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.cm .rt-field { display: flex; align-items: center; gap: 12px; height: 42px; cursor: text; }
.cm .rt-field + .rt-field { border-top: 1px solid var(--line-2); }
.cm .rt-field input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 14.5px; min-width: 0; height: 100%; }
.cm .rt-field input::placeholder { color: var(--ink-3); }
.cm .rt-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.cm .rt-dot.start { background: var(--start); box-shadow: 0 0 0 3px color-mix(in srgb, var(--start) 22%, transparent); }
.cm .rt-dot.end { background: var(--end); box-shadow: 0 0 0 3px color-mix(in srgb, var(--end) 22%, transparent); }
.cm .travel-seg { display: flex; margin-top: 10px; }
.cm .travel-seg button { flex: 1; }
.cm .rt-suggest { margin-top: 8px; max-height: 340px; overflow: auto; }
.cm .rt-summary { margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: var(--primary-soft); display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.cm .rt-time { font-size: 24px; font-weight: 750; color: var(--primary); letter-spacing: .3px; }
.cm .rt-meta { color: var(--ink-2); font-size: 13px; }
.cm .steps { list-style: none; margin: 10px -6px 10px; padding: 0; }
.cm .steps li { display: flex; gap: 12px; padding: 8px 6px; border-radius: 10px; cursor: pointer; align-items: flex-start; }
.cm .steps li:hover { background: var(--bg-soft); }
.cm .st-ic { width: 28px; height: 28px; border-radius: 50%; background: var(--bg-soft); display: grid; place-items: center; color: var(--ink-2); flex: none; }
.cm .st-ic .ic { width: 16px; height: 16px; }
.cm .steps li:hover .st-ic { background: #fff; }
.cm .steps li:first-child .st-ic { background: var(--start); color: #fff; }
.cm .steps li:last-child .st-ic { background: var(--end); color: #fff; }
.cm .st-text { padding-top: 4px; line-height: 1.55; }
.cm .rt-hint { margin: 14px 0 0; color: var(--ink-3); font-size: 13px; line-height: 1.7; }
.cm .rt-error { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: #FDEDED; color: #B42318; font-size: 13.5px; display: flex; gap: 8px; line-height: 1.55; }
.cm .rt-error .ic { margin-top: 1px; }

/* 地图控件 */
.cm .map-ctrl { position: absolute; right: 16px; bottom: 24px; display: flex; flex-direction: column; gap: 10px; z-index: 9; }
.cm .map-ctrl > button, .cm .ctrl-group { box-shadow: var(--shadow-sm); border-radius: 12px; }
.cm .map-ctrl button { width: 42px; height: 42px; border: 0; background: #fff; display: grid; place-items: center; color: var(--ink-2); border-radius: 12px; }
.cm .map-ctrl button:hover { color: var(--ink); background: #FAFAFB; }
.cm .ctrl-group { display: flex; flex-direction: column; overflow: hidden; }
.cm .ctrl-group button { border-radius: 0; }
.cm .ctrl-group button + button { border-top: 1px solid var(--line); }
.cm .btn-locate.on { color: var(--me); }
.cm .scalebar { position: absolute; right: 74px; bottom: 28px; z-index: 9; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; pointer-events: none; }
.cm .scalebar span { font-size: 11.5px; font-weight: 600; color: #39404B; text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 2px #fff; }
.cm .sb-bar { height: 6px; border: 2px solid #39404B; border-top: 0; box-shadow: 0 1px 0 rgba(255, 255, 255, .7); }
.cm .toast { position: absolute; z-index: 50; }
.cm .ctx { position: absolute; z-index: 40; background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 6px; min-width: 164px; }
.cm .ctx button { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: transparent; padding: 9px 10px; border-radius: 8px; text-align: left; font-size: 14px; }
.cm .ctx button:hover { background: var(--bg-soft); }
.cm .ctx button .ic { color: var(--ink-3); }
.cm .loading { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: #fff; padding: 10px 16px; border-radius: 10px; box-shadow: var(--shadow); font-size: 13px; color: var(--ink-2); z-index: 20; }
.cm .empty { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; z-index: 5; }
.cm .empty-card { text-align: center; max-width: 380px; background: #fff; border-radius: 18px; padding: 28px; box-shadow: var(--shadow); }
.cm .empty-ic { width: 56px; height: 56px; border-radius: 16px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; margin: 0 auto 14px; }
.cm .empty-ic .ic { width: 28px; height: 28px; }
.cm .empty-card h2 { margin: 0 0 8px; font-size: 18px; }
.cm .empty-card p { margin: 0 0 18px; color: var(--ink-2); line-height: 1.65; font-size: 13.5px; }
.cm.dragover .viewport::after { content: "松开鼠标，更换为这张底图"; position: absolute; inset: 16px; border: 3px dashed var(--primary); border-radius: 18px; background: color-mix(in srgb, var(--primary) 8%, transparent); display: grid; place-items: center; font-size: 18px; font-weight: 700; color: var(--primary); z-index: 30; }

/* 编辑器 */
.cm .tools { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; background: var(--bg-soft); padding: 4px; border-radius: 12px; }
.cm .tool { display: flex; flex-direction: column; align-items: center; gap: 3px; border: 0; background: transparent; padding: 7px 0 6px; border-radius: 9px; font-size: 11.5px; color: var(--ink-2); }
.cm .tool:hover { color: var(--ink); }
.cm .tool.on { background: #fff; color: var(--primary); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); font-weight: 600; }
.cm .tool-sub { display: flex; align-items: center; gap: 2px; margin: 6px 0 6px; }
.cm .save-state { margin-left: auto; font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.cm .save-state i, .cm .pub-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; }
.cm .save-state.unpub i, .cm .pub-state.unpub i { background: var(--warn); }
.cm .save-state.err i { background: var(--danger); }
.cm .pub-state { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); margin-bottom: 10px; }
.cm .ctx-area { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 8px; }
.cm .hint + .hint { margin-top: 6px; }
.cm .guide { margin: 0; padding-left: 18px; font-size: 13px; color: var(--ink-2); line-height: 1.8; }
.cm .guide b { color: var(--ink); }
.cm .ctx-title { font-size: 13px; font-weight: 700; margin: 0 0 6px; display: flex; align-items: center; gap: 6px; }
.cm .fld { margin-bottom: 10px; }
.cm .fld > span { font-size: 12px; color: var(--ink-3); }
.cm .fld input:not([type="checkbox"]):not([type="color"]), .cm .fld select { height: 36px; }
.cm .chk { margin-bottom: 10px; }
.cm .form-head { display: flex; align-items: center; gap: 2px; margin: -2px -4px 10px 0; }
.cm .form-head .tag { margin-right: auto; height: 26px; }
.cm .row { gap: 6px; }
.cm .row + .row, .cm .row + .hint, .cm .hint + .row { margin-top: 8px; }
.cm .kv + .btn, .cm .kv + .row { margin-top: 10px; }
.cm .acc details { border-top: 1px solid var(--line); }
.cm .acc summary { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 12px 2px; font-weight: 600; cursor: pointer; font-size: 14px; user-select: none; }
.cm .acc summary::-webkit-details-marker { display: none; }
.cm .acc summary .ic { color: var(--ink-3); transition: transform .2s; width: 16px; height: 16px; }
.cm .acc details[open] summary .ic { transform: rotate(180deg); }
.cm .acc summary small { font-weight: 400; color: var(--ink-3); margin-left: 6px; font-size: 12.5px; }
.cm .acc-body { padding: 0 2px 14px; }
.cm .acc-body .btn.block + .hint { margin-top: 8px; }
.cm .acc-body .list { max-height: 300px; overflow: auto; margin-top: 6px; }
.cm .cat-row { display: grid; grid-template-columns: 36px 1fr 104px 28px; gap: 6px; align-items: center; margin-bottom: 6px; }
.cm .cat-row .inp { height: 36px; }
.cm .cat-row select.inp { padding: 0 6px; }
.cm .gp-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; padding: 4px 0; color: var(--ink-2); }
.cm .gp-row .gp-n { width: 20px; height: 20px; border-radius: 50%; background: #E8930C; color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; flex: none; }
.cm .gp-row .grow { flex: 1; font-variant-numeric: tabular-nums; }
.cm .gp-row small { color: var(--ink-3); }

@media (max-width: 720px) {
  .cm .panel, .cm[data-mode="edit"] .panel { left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: 58%; border-radius: 18px 18px 0 0; }
  .cm .panel::before { content: ""; position: absolute; top: 6px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: var(--line-2); }
  .cm .p-head { padding: 14px 8px 8px 14px; }
  .cm .brand-mark { width: 32px; height: 32px; border-radius: 9px; }
  .cm .sheet-toggle { display: grid; transition: transform .2s; }
  .cm .panel.collapsed .sheet-toggle { transform: rotate(180deg); }
  .cm .panel.collapsed .p-body > :not(.keep) { display: none; }
  .cm .panel.collapsed .p-body { padding-bottom: 12px; }
  .cm .map-ctrl { top: 12px; bottom: auto; right: 12px; }
  .cm .scalebar { top: 14px; left: 14px; right: auto; bottom: auto; align-items: flex-start; }
  .cm .chips { flex-wrap: nowrap; overflow-x: auto; margin-left: -16px; margin-right: -16px; padding: 0 16px; scrollbar-width: none; }
  .cm .chips::-webkit-scrollbar { display: none; }
  .cm .card-title { font-size: 19px; }
}

/* 已点亮的地点 */
.cm .poi .glow { position: absolute; left: -24px; top: -24px; width: 48px; height: 48px; border-radius: 50%; background: radial-gradient(circle, rgba(30, 158, 90, .32) 0%, rgba(30, 158, 90, 0) 70%); display: none; pointer-events: none; }
.cm .poi .lit-ok { position: absolute; left: 6px; top: -21px; width: 16px; height: 16px; border-radius: 50%; background: #1E9E5A; border: 2px solid #fff; color: #fff; display: none; place-items: center; box-sizing: border-box; z-index: 2; }
.cm .poi .lit-ok .ic { width: 9px; height: 9px; stroke-width: 3.5; }
.cm .poi.lit .glow { display: block; }
.cm .poi.lit .lit-ok { display: grid; }
.cm .poi.mini .lit-ok, .cm .poi.mini .glow { display: none; }
.cm .lit-box { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px; border-radius: 12px; background: var(--bg-soft); }
.cm .lit-box.on { background: #EAF6EF; }
.cm .lit-box .lit-ic { color: var(--ink-3); display: flex; }
.cm .lit-box.on .lit-ic { color: var(--ok); }
.cm .lit-box b { display: block; font-size: 13.5px; }
.cm .lit-box small { display: block; color: var(--ink-3); font-size: 12px; margin-top: 2px; }
.cm .lit-box .grow { flex: 1; min-width: 0; }

/* =====================================================================
   导航模式（师生端新版，与小程序 pages/nav 同风格）
   天蓝渐变浮层 · 深蓝渐变胶囊主按钮 · 白色玻璃卡片 · 黄色闪光 · 小狮子
   只作用于 data-mode="nav"；后台编辑模式（data-mode="edit"）保持原样
   ===================================================================== */
.cm[data-mode="nav"] {
  --start: #2A78D6; --end: #E2443F; --me: #2A78D6; --map-bg: #E3EEF8;
  --nv-grad: linear-gradient(180deg, color-mix(in srgb, var(--primary) 72%, #6DB4FF) 0%, var(--primary) 62%, color-mix(in srgb, var(--primary) 84%, #000) 100%);
  --nv-soft: color-mix(in srgb, var(--primary) 10%, #fff);
  --nv-line: color-mix(in srgb, var(--primary) 16%, #fff);
  --nv-card: rgba(255, 255, 255, .92);
  --nv-shadow: 0 5px 15px rgba(36, 98, 178, .10);
  --nv-band: #E2EFFF;
  color: var(--ink);
}
.cm[data-mode="edit"] .fab-t, .cm[data-mode="edit"] .btn-layer, .cm .sheet-grip { display: none; }
.cm[data-mode="edit"] .btn-fit { order: 3; }
.cm.navi-on .side, .cm.navi-on .panel { display: none; }
.cm .nv-top[hidden] { display: none !important; }

/* ---------- 动效 ---------- */
@keyframes nv-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes nv-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes nv-sheet { from { transform: translateY(100%); } to { transform: none; } }
@keyframes nv-bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-6px) rotate(-1.5deg); } }
@keyframes nv-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes nv-twinkle { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.8); } }
@keyframes nv-shine { 0%, 55% { left: -60%; } 85%, 100% { left: 130%; } }
@keyframes nv-pin { 0% { transform: scale(.5) translateY(10px); } 60% { transform: scale(1.15) translateY(-4px); } 100% { transform: none; } }
@keyframes nv-drop { from { opacity: 0; margin-top: -20px; } to { opacity: 1; margin-top: 0; } }
@keyframes nv-ring { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes nv-pulse { 0% { transform: scale(.96); } 50% { transform: scale(1.03); } 100% { transform: scale(1); } }
.cm .rise { animation: nv-rise .5s cubic-bezier(.2, .8, .2, 1) both; }
.cm .d1 { animation-delay: .04s; } .cm .d2 { animation-delay: .1s; } .cm .d3 { animation-delay: .16s; } .cm .d4 { animation-delay: .22s; }
.cm .d5 { animation-delay: .28s; } .cm .d6 { animation-delay: .34s; } .cm .d7 { animation-delay: .4s; } .cm .d8 { animation-delay: .46s; }
.cm .bob { animation: nv-bob 3s ease-in-out infinite; }
.cm .nv-top.still .rise { animation: none; }
.cm[data-mode="nav"] .p-body > * { animation: nv-rise .42s cubic-bezier(.2, .8, .2, 1) both; }
.cm[data-mode="nav"] .p-body > :nth-child(2) { animation-delay: .05s; }
.cm[data-mode="nav"] .p-body > :nth-child(3) { animation-delay: .1s; }
.cm[data-mode="nav"] .p-body > :nth-child(n+4) { animation-delay: .15s; }
.cm .spark { position: absolute; width: 20px; height: 20px; pointer-events: none; animation: nv-twinkle 2.4s ease-in-out infinite; }

/* ---------- 通用小部件（只在导航模式） ---------- */
.cm[data-mode="nav"] .btn { position: relative; overflow: hidden; height: 40px; padding: 0 18px; gap: 5px; border-radius: 20px; background: #fff; border: 1px solid var(--nv-line); color: var(--primary); font-weight: 700; font-size: 14px; box-shadow: 0 3px 8px rgba(36, 98, 178, .08); transition: transform .15s, background .2s, box-shadow .2s; }
.cm[data-mode="nav"] .btn:hover { background: #F6FAFF; }
.cm[data-mode="nav"] .btn:active:not(:disabled) { transform: scale(.96); }
.cm[data-mode="nav"] .btn .ic { width: 16px; height: 16px; stroke-width: 2.4; }
.cm[data-mode="nav"] .btn.primary { background: var(--nv-grad); border: 0; color: #fff; box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .28), 0 5px 11px color-mix(in srgb, var(--primary) 30%, transparent); }
.cm[data-mode="nav"] .btn.primary:hover { filter: brightness(1.05); }
.cm[data-mode="nav"] .btn.primary::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .35), rgba(255, 255, 255, 0)); transform: skewX(-18deg); animation: nv-shine 3.6s ease-in-out infinite; pointer-events: none; }
.cm[data-mode="nav"] .btn.sm { height: 30px; padding: 0 12px; font-size: 12.5px; border-radius: 15px; }
.cm[data-mode="nav"] .btn.sm .ic { width: 14px; height: 14px; }
.cm[data-mode="nav"] .btn.lg { height: 48px; font-size: 16px; border-radius: 24px; }
.cm[data-mode="nav"] .btn.lg .ic { width: 19px; height: 19px; }
.cm[data-mode="nav"] .btn.done { background: #EAF3FE; color: var(--primary); border: 1px solid #CFE1F7; box-shadow: none; }
.cm[data-mode="nav"] .btn.done::after { display: none; }
.cm[data-mode="nav"] .btn:disabled { opacity: .45; }
.cm[data-mode="nav"] .btn.done:disabled { opacity: 1; }
.cm .tg { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 10px; font-size: 11px; font-weight: 700; background: var(--nv-soft, var(--primary-soft)); color: var(--primary); white-space: nowrap; flex: none; }
.cm .tg.ok { background: #E3F6EA; color: var(--ok); }
.cm .tg .ic { width: 12px; height: 12px; stroke-width: 2.6; margin-right: 3px; flex: none; }
.cm .lk { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 4px 2px; color: var(--ink-2); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.cm .lk .ic { width: 14px; height: 14px; }
.cm .lk:hover { color: var(--primary); }
.cm .thumb { display: block; flex: none; object-fit: cover; background: #DCEBFB; box-shadow: 0 2px 5px rgba(36, 98, 178, .12); }

/* 搜索框（按钮 / 输入框共用外观） */
.cm .nsearch { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-radius: 20px; background: rgba(255, 255, 255, .96); border: 1px solid #fff; box-shadow: var(--nv-shadow); color: var(--ink-3); font-size: 13.5px; text-align: left; cursor: pointer; min-width: 0; transition: transform .15s; }
.cm .nsearch > .ic { width: 17px; height: 17px; color: var(--ink-2); stroke-width: 2.4; }
.cm button.nsearch:active { transform: scale(.98); }
.cm .sbar-ph { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm .sbar { display: flex; align-items: center; gap: 7px; }
/* 校区胶囊（原生下拉叠在上面，手机上弹系统选择器） */
.cm .cpill { position: relative; display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 11px 0 13px; border-radius: 18px; max-width: 132px; flex: none; background: var(--nv-grad); color: #fff; font-size: 13px; font-weight: 800; box-shadow: 0 4px 9px color-mix(in srgb, var(--primary) 30%, transparent); cursor: pointer; transition: transform .15s; }
.cm .cpill:active { transform: scale(.96); }
.cm .cp-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm .tri { width: 0; height: 0; border-left: 4.5px solid transparent; border-right: 4.5px solid transparent; border-top: 5.5px solid #fff; flex: none; }
.cm .cpill select { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; font-size: 16px; border: 0; }
.cm .cpill:focus-within { outline: 2px solid color-mix(in srgb, var(--primary) 40%, #fff); outline-offset: 2px; }
/* 分类胶囊 */
.cm .fchips { display: flex; flex-wrap: nowrap; gap: 7px; margin: 8px 0 0; overflow-x: auto; scrollbar-width: none; padding: 2px 1px 4px; }
.cm .fchips::-webkit-scrollbar { display: none; }
.cm .fchips .chip { height: 30px; padding: 0 14px; border-radius: 15px; flex: none; background: rgba(255, 255, 255, .92); border: 1px solid #fff; color: var(--ink-2); font-size: 13px; font-weight: 600; box-shadow: 0 2px 6px rgba(36, 98, 178, .08); transition: background .2s, color .2s, box-shadow .2s, transform .15s; }
.cm .fchips .chip { display: inline-flex; align-items: center; gap: 4px; padding: 0 13px 0 10px; }
.cm .fchips .chip .ic { width: 13px; height: 13px; stroke-width: 2.4; color: var(--c, var(--primary)); flex: none; }
.cm .fchips .chip.on .ic { color: #fff; }
.cm .fchips .chip:hover { border-color: #fff; color: var(--ink); }
.cm .fchips .chip:active { transform: scale(.95); }
.cm .fchips .chip.on { background: var(--nv-grad); color: #fff; border-color: transparent; box-shadow: 0 3px 8px color-mix(in srgb, var(--primary) 30%, transparent); }

/* ---------- 地图右侧圆形按钮（全览 / 定位 / 图层） ---------- */
.cm[data-mode="nav"] .map-ctrl { gap: 9px; align-items: center; }
.cm[data-mode="nav"] .map-ctrl > button { box-shadow: none; }
.cm[data-mode="nav"] .map-ctrl .fab { width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .97); border: 1px solid #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; color: var(--primary); box-shadow: 0 4px 10px rgba(15, 76, 156, .18); transition: transform .15s, background .2s; }
.cm[data-mode="nav"] .map-ctrl .fab:hover { background: #fff; color: var(--primary); }
.cm[data-mode="nav"] .map-ctrl .fab:active { transform: scale(.92); }
.cm[data-mode="nav"] .map-ctrl .fab .ic { width: 18px; height: 18px; stroke-width: 2.4; }
.cm[data-mode="nav"] .map-ctrl .fab[hidden] { display: none; }
.cm .fab-t { font-size: 9.5px; font-weight: 700; line-height: 1.2; margin-top: 1px; }
.cm[data-mode="nav"] .btn-layer.on, .cm[data-mode="nav"] .btn-locate.on { background: var(--nv-soft); }
.cm[data-mode="nav"] .ctrl-group { border-radius: 23px; box-shadow: 0 4px 10px rgba(15, 76, 156, .14); border: 1px solid #fff; }
.cm[data-mode="nav"] .ctrl-group button { width: 44px; height: 40px; color: var(--primary); }

/* ---------- 地图标记：白色圆角图标块 + 名称胶囊；选中变深蓝并弹一下 ---------- */
.cm[data-mode="nav"] .poi .pin { border-radius: 9px; border: 1.5px solid color-mix(in srgb, var(--c) 28%, #D6E5F7); box-shadow: 0 3px 7px rgba(15, 76, 156, .2); transition: transform .2s; }
.cm[data-mode="nav"] .poi .lbl { height: 19px; line-height: 19px; padding: 0 8px; border-radius: 10px; font-size: 11.5px; font-weight: 700; color: var(--ink); background: rgba(255, 255, 255, .97); box-shadow: 0 2px 5px rgba(15, 76, 156, .16); }
.cm[data-mode="nav"] .poi.mini .pin { border-radius: 50%; }
.cm[data-mode="nav"] .poi.sel .pin { border-radius: 50% 50% 50% 7px; background: var(--nv-grad); border-color: #fff; border-width: 2px; box-shadow: 0 0 0 5px color-mix(in srgb, var(--primary) 16%, transparent), 0 5px 11px color-mix(in srgb, var(--primary) 38%, transparent); animation: nv-pin .45s cubic-bezier(.2, .9, .3, 1.4); }
.cm[data-mode="nav"] .poi.sel .lbl { color: #fff; background: var(--primary); font-size: 12.5px; }
.cm[data-mode="nav"] .poi .glow { left: -26px; top: -26px; width: 52px; height: 52px; background: radial-gradient(circle, rgba(255, 194, 26, .45) 0%, rgba(255, 194, 26, 0) 70%); animation: nv-twinkle 2.4s ease-in-out infinite; }
.cm[data-mode="nav"] .poi .lit-ok { background: var(--ok); }
/* 起终点 / 我的位置 / 路线 */
.cm[data-mode="nav"] .rt-pin.start b { left: -13px; top: -13px; width: 26px; height: 26px; font-weight: 800; background: var(--start); box-shadow: 0 0 0 3px #fff, 0 0 0 7px rgba(42, 120, 214, .2), 0 2px 5px rgba(15, 76, 156, .35); }
.cm[data-mode="nav"] .rt-pin.end b { left: -16px; top: -40px; width: 32px; height: 32px; background: var(--end); font-weight: 800; animation: nv-drop .5s cubic-bezier(.2, .9, .3, 1.4); }
.cm .me-halo { position: absolute; left: -20px; top: -20px; width: 40px; height: 40px; border-radius: 50%; background: rgba(42, 120, 214, .25); animation: nv-ring 2s ease-out infinite; pointer-events: none; }
.cm[data-mode="nav"] .me-dot { background: #2A78D6; box-shadow: 0 0 0 3px #fff, 0 2px 5px rgba(15, 76, 156, .4); }
.cm .me.sim { z-index: 6; }
.cm .sim-dot { position: absolute; left: -16px; top: -16px; width: 32px; height: 32px; border-radius: 50%; background: var(--nv-grad, var(--primary)); box-shadow: 0 0 0 3px #fff, 0 4px 10px rgba(15, 76, 156, .4); }
.cm .sim-dot i { position: absolute; left: 50%; top: 50%; width: 0; height: 0; margin: -6px 0 0 -4px; border-left: 10px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; transform-origin: 4px 6px; transition: transform .3s; }
.cm[data-mode="nav"] .rt-casing { stroke-width: 11; }
.cm[data-mode="nav"] .rt-line { stroke: #2A78D6; stroke-width: 7; }
.cm[data-mode="nav"] .rt-flow { stroke: #9CCBFA; stroke-width: 3; stroke-dasharray: 9 7; animation-duration: 1.4s; }
.cm[data-mode="nav"] .rt-leg { stroke: #2A78D6; }

/* ---------- 底部抽屉 / 侧边卡片 ---------- */
.cm[data-mode="nav"] .panel { background: linear-gradient(180deg, #F7FBFF, #EEF5FE); border: 1px solid #fff; box-shadow: 0 -6px 18px rgba(15, 76, 156, .14); }
.cm.portal[data-mode="nav"] .p-head { display: none; }
.cm.portal.no-map .panel, .cm.portal.no-map .map-ctrl { display: none; }
.cm[data-mode="nav"] .p-body { padding: 4px 14px 14px; }
.cm[data-mode="nav"] .panel.collapsed .rt-result > :not(.keep) { display: none; }
.cm[data-mode="nav"] .rt-result { display: block; }

/* 附近 / 常去地点 */
.cm .ns-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 2px 10px; }
.cm .ns-t { position: relative; font-size: 18px; font-weight: 800; color: var(--ink); }
.cm .ns-t .spark { right: -22px; top: -7px; }
.cm .ns-t { display: flex; align-items: center; gap: 7px; }
.cm .ns-t.filtered .spark { display: none; }
.cm .ns-n { height: 20px; line-height: 20px; padding: 0 7px; border-radius: 10px; background: var(--nv-soft, var(--primary-soft)); color: var(--primary); font-size: 11px; font-weight: 700; }
.cm .ns-n[hidden] { display: none; }
.cm .ns-list { margin: 0 -2px; padding: 0 2px; }
.cm .ncard { display: flex; align-items: center; gap: 10px; padding: 9px; margin-bottom: 8px; border-radius: 14px; background: var(--nv-card); border: 1px solid #fff; box-shadow: var(--nv-shadow); cursor: pointer; transition: transform .15s, box-shadow .2s; outline: 0; }
.cm .ncard:hover { box-shadow: 0 7px 18px rgba(36, 98, 178, .14); }
.cm .ncard:active { transform: scale(.98); }
.cm .ncard:focus-visible { box-shadow: 0 0 0 2px var(--primary); }
.cm .nc-img, .cm .res-th { width: 75px; height: 56px; border-radius: 10px; }
.cm .nc-main, .cm .res-m { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cm .nc-n, .cm .res-n { font-size: 15.5px; font-weight: 800; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm .res-n mark { background: none; color: var(--primary); }
.cm .nc-s, .cm .res-s { display: flex; align-items: center; gap: 2px; font-size: 11.5px; color: var(--ink-2); min-width: 0; }
.cm .nc-s span, .cm .res-s span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm .nc-s .ic, .cm .res-s .ic { width: 12px; height: 12px; color: var(--ink-2); }
.cm .nc-d { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--ink-3); min-width: 0; white-space: nowrap; overflow: hidden; }
.cm[data-mode="nav"] .nc-go { flex: none; padding: 0 11px; }

/* 地点卡片 */
.cm .pc-top { display: flex; align-items: center; gap: 11px; }
.cm .pc-img { position: relative; flex: none; }
.cm .pc-th { width: 85px; height: 64px; border-radius: 11px; }
.cm .pc-seed { position: absolute; left: -7px; bottom: -7px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, #7FD77A, #3FAF52); color: #fff; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(47, 122, 42, .35); animation: nv-seed 1.4s ease-in-out infinite; pointer-events: none; }
.cm .pc-seed .ic { width: 14px; height: 14px; stroke-width: 2.6; }
/* 地点卡片里的种子（同小程序 .seed-row） */
.cm .seed-row { position: relative; display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 8px 9px 8px 10px; border-radius: 12px; background: linear-gradient(135deg, #FFF9E6, #FFF0C2); border: 1px solid #FFE39A; animation: nv-pop .45s cubic-bezier(.2, .9, .3, 1.4) both; }
.cm .seed-ic { position: relative; width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 10px; background: #fff; color: #3E9A3A; animation: nv-seed 1.6s ease-in-out infinite; }
.cm .seed-ic .ic { width: 18px; height: 18px; stroke-width: 2.4; }
.cm .seed-ic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; border-radius: 10px; }
.cm .seed-t { display: block; font-size: 13px; font-weight: 800; color: #8A5A0E; line-height: 1.35; }
.cm .seed-s { display: block; font-size: 11px; color: #A88444; margin-top: 1px; }
.cm[data-mode="nav"] .seed-btn { flex: none; }
.cm .seed-row .spark { right: 4px; top: -9px; }
/* 地图上的种子点 */
.cm .seed { position: absolute; left: 0; top: 0; z-index: 3; pointer-events: auto; cursor: pointer; }
.cm .seed[hidden] { display: none; }
.cm .seed .sd-halo { position: absolute; left: -15px; top: -7px; width: 30px; height: 12px; border-radius: 50%; background: rgba(255, 194, 26, .45); animation: nv-twinkle 1.4s ease-in-out infinite; }
.cm .seed .sd-bg { position: absolute; left: -15px; top: -35px; width: 30px; height: 35px; animation: nv-seed 1.4s ease-in-out infinite; pointer-events: none; }
.cm .seed .sd-ic { position: absolute; left: -8.5px; top: -30.5px; width: 17px; height: 17px; animation: nv-seed 1.4s ease-in-out infinite; pointer-events: none; }
.cm .seed:not(.noimg) .sd-pin { display: none; }
.cm .seed.noimg .sd-bg, .cm .seed.noimg .sd-ic { display: none; }
.cm .seed .sd-pin { position: absolute; left: -15px; top: -38px; width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: linear-gradient(180deg, #7FD77A, #3FAF52); border: 2px solid #fff; box-shadow: 0 4px 9px rgba(47, 122, 42, .35); display: grid; place-items: center; color: #fff; animation: nv-seed-pin 1.4s ease-in-out infinite; }
.cm .seed .sd-pin .ic { width: 15px; height: 15px; stroke-width: 2.6; transform: rotate(45deg); }
.cm .seed.dim { opacity: .45; }
.cm .seed:hover { z-index: 6; }
@keyframes nv-seed { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes nv-seed-pin { 0%, 100% { transform: rotate(-45deg) translate(0, 0); } 50% { transform: rotate(-45deg) translate(3px, -3px); } }
@keyframes nv-pop { 0% { opacity: 0; transform: scale(.6); } 100% { opacity: 1; transform: scale(1); } }
.cm .pc-main { min-width: 0; }
.cm .pn { margin: 0; font-size: 19px; font-weight: 800; color: var(--ink); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm .pc-main .nc-s { margin-top: 2px; }
.cm .pmeta { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-top: 5px; font-size: 12px; }
.cm .pm-more { display: inline-flex; align-items: center; color: var(--primary); font-weight: 700; }
.cm .pm-more .ic { width: 12px; height: 12px; stroke-width: 2.6; }
.cm .pc-top.link { cursor: pointer; }
.cm .x-b { width: 30px; height: 30px; border-radius: 50%; border: 0; background: #EEF4FB; color: var(--ink-2); display: grid; place-items: center; flex: none; align-self: flex-start; cursor: pointer; transition: transform .15s; }
.cm .x-b .ic { width: 15px; height: 15px; stroke-width: 2.4; }
.cm .x-b:active { transform: scale(.9); }
.cm[data-mode="nav"] .card-alias { margin: 9px 0 0; font-size: 12px; color: var(--ink-3); }
.cm .pdesc { margin: 8px 0 0; color: var(--ink-2); line-height: 1.7; font-size: 13px; white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cm .pc-hint { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; padding: 8px 11px; border-radius: 12px; background: linear-gradient(135deg, #FFF9E6, #FFF0C2); border: 1px solid #FFE39A; color: #8A5A0E; font-size: 12px; font-weight: 600; }
.cm .pc-hint .ic { width: 15px; height: 15px; color: #E3A008; }
.cm .pacts { display: flex; align-items: center; gap: 8px; margin-top: 13px; }
.cm[data-mode="nav"] .pacts .pa { flex: none; height: 42px; padding: 0 14px; }
.cm[data-mode="nav"] .pacts .go { flex: 1; height: 44px; font-size: 15.5px; border-radius: 22px; }
.cm .pc-sub { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.cm .pc-sub .card-more { margin: 0; padding: 4px 2px; background: none; border-radius: 0; }

/* ---------- 顶部：路线规划 ---------- */
.cm .nt-head { display: flex; align-items: center; gap: 2px; height: 34px; margin: -2px 0 4px -6px; }
.cm .nt-head b { font-size: 17px; font-weight: 800; color: var(--ink); }
.cm .nt-back { width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.cm .nt-back .ic { width: 21px; height: 21px; stroke-width: 2.6; }
.cm .nt-back:hover { background: rgba(255, 255, 255, .7); }
.cm .rcard-top { display: flex; align-items: center; gap: 9px; padding: 8px 10px 8px 13px; margin-bottom: 8px; border-radius: 15px; background: var(--nv-card); border: 1px solid #fff; box-shadow: var(--nv-shadow); }
.cm .rf-dots { display: flex; flex-direction: column; align-items: center; flex: none; width: 17px; }
.cm .rd { flex: none; display: block; }
.cm .rd.start { width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--start); background: #fff; }
.cm .rd-line { width: 0; height: 24px; border-left: 2px dotted #A9C3E4; margin: 3px 0; }
.cm .rd.end { display: flex; color: #F5A623; }
.cm .rd.end .ic { width: 16px; height: 16px; stroke-width: 2.6; }
.cm .rfields { display: flex; flex-direction: column; min-width: 0; }
.cm .rf { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; height: 42px; padding: 0 4px; border: 0; background: transparent; border-radius: 8px; text-align: left; cursor: pointer; min-width: 0; width: 100%; transition: background .15s; }
.cm .rf:hover { background: rgba(230, 240, 252, .6); }
.cm .rf + .rf { border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; }
.cm .rf-k { font-size: 10.5px; color: var(--ink-3); line-height: 1.3; }
.cm .rf-v { max-width: 100%; font-size: 15px; font-weight: 800; color: var(--ink); line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm .rf-v.muted { color: var(--ink-3); font-weight: 600; }
.cm .swap-b { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--nv-soft); color: var(--primary); display: grid; place-items: center; flex: none; cursor: pointer; transition: transform .25s; }
.cm .swap-b .ic { width: 18px; height: 18px; stroke-width: 2.4; }
.cm .swap-b:active { transform: rotate(180deg) scale(.92); }
.cm .tmodes { display: flex; padding: 3px; border-radius: 20px; background: rgba(255, 255, 255, .88); box-shadow: var(--nv-shadow); }
.cm .tmodes button { flex: 1; height: 33px; border: 0; border-radius: 17px; background: transparent; display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); cursor: pointer; transition: background .25s, color .25s, box-shadow .25s; }
.cm .tmodes button .ic { width: 17px; height: 17px; stroke-width: 2.4; color: var(--primary); transition: color .25s; }
.cm .tmodes button.on { background: var(--nv-grad); color: #fff; box-shadow: 0 3px 7px color-mix(in srgb, var(--primary) 30%, transparent); }
.cm .tmodes button.on .ic { color: #fff; }

.cm .nt-title { display: none; }
/* 地图选点 */
.cm .pick-tip { position: relative; display: flex; align-items: center; gap: 9px; height: 48px; padding: 0 8px 0 9px; border-radius: 24px; background: rgba(255, 255, 255, .97); border: 1px solid #fff; box-shadow: 0 5px 14px rgba(15, 76, 156, .18); font-size: 15.5px; font-weight: 800; color: var(--ink); }
.cm .pt-ic { width: 32px; height: 32px; border-radius: 50%; background: var(--nv-grad); color: #fff; display: grid; place-items: center; flex: none; animation: nv-float 1.8s ease-in-out infinite; }
.cm .pt-ic .ic { width: 17px; height: 17px; stroke-width: 2.4; }
.cm .pick-tip .spark { right: 64px; top: -7px; }
.cm .pick-x { height: 32px; padding: 0 14px; border-radius: 16px; border: 0; background: var(--nv-soft); color: var(--primary); font-size: 13px; font-weight: 800; cursor: pointer; transition: transform .15s; }
.cm .pick-x:active { transform: scale(.95); }
.cm .pk-t { display: flex; align-items: center; gap: 6px; margin: 2px 0 10px; font-size: 12.5px; color: var(--ink-2); }
.cm .pk-t .ic { width: 16px; height: 16px; color: var(--primary); }

/* 路线结果 */
.cm .r-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cm .r-sum { position: relative; display: flex; align-items: center; gap: 5px; min-width: 0; }
.cm .r-sum > .ic { width: 21px; height: 21px; color: var(--primary); stroke-width: 2.4; }
.cm .r-sum .rt-time { font-size: 22px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.cm .r-sum i { font-style: normal; font-size: 18px; font-weight: 800; color: var(--ink-3); }
.cm .r-sum .rt-dist { font-size: 20px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.cm .r-sum .spark { right: -24px; top: -7px; }
.cm .r-sub { font-size: 12px; color: var(--ink-2); margin: 3px 0 0 26px; }
.cm .steps-tog { display: flex; align-items: center; gap: 4px; width: 100%; margin-top: 9px; padding: 9px 2px; border: 0; border-top: 1px solid var(--line); background: none; font-size: 14px; font-weight: 800; color: var(--ink); cursor: pointer; text-align: left; }
.cm .steps-tog .ic { width: 15px; height: 15px; color: var(--primary); stroke-width: 2.6; }
.cm[data-mode="nav"] .steps { margin: 0 0 4px; }
.cm[data-mode="nav"] .steps[hidden] { display: none; }
.cm[data-mode="nav"] .steps li { gap: 9px; padding: 5px 4px; border-radius: 10px; }
.cm[data-mode="nav"] .steps li:hover { background: rgba(230, 240, 252, .7); }
.cm[data-mode="nav"] .st-ic { width: 24px; height: 24px; background: var(--nv-soft); color: var(--primary); }
.cm[data-mode="nav"] .st-ic .ic { width: 13px; height: 13px; stroke-width: 2.4; }
.cm[data-mode="nav"] .steps li:first-child .st-ic { background: var(--start); color: #fff; box-shadow: 0 0 0 3px rgba(42, 120, 214, .18); }
.cm[data-mode="nav"] .steps li:last-child .st-ic { background: var(--end); color: #fff; box-shadow: 0 0 0 3px rgba(226, 68, 63, .16); }
.cm[data-mode="nav"] .steps li:hover .st-ic { background: var(--nv-soft); }
.cm[data-mode="nav"] .steps li:first-child:hover .st-ic { background: var(--start); }
.cm[data-mode="nav"] .steps li:last-child:hover .st-ic { background: var(--end); }
.cm[data-mode="nav"] .st-text { padding-top: 2px; font-size: 13px; line-height: 1.55; color: var(--ink); }
.cm[data-mode="nav"] .rt-go { margin-top: 10px; }
.cm .rt-more { display: flex; justify-content: center; gap: 16px; margin-top: 6px; }
.cm[data-mode="nav"] .rt-error { margin-top: 0; padding: 12px; border-radius: 12px; background: #FFF0EF; border: 1px solid #FBD0CD; color: var(--danger); font-size: 13px; }
.cm .r-empty { display: flex; align-items: center; gap: 10px; padding: 2px 0 4px; }
.cm .r-ill { width: 80px; height: 64px; object-fit: contain; flex: none; animation: nv-float 4s ease-in-out infinite; }
.cm .r-et { font-size: 15px; font-weight: 800; color: var(--ink); }
.cm .r-empty p { margin: 2px 0 0; font-size: 12px; color: var(--ink-3); line-height: 1.6; }
.cm[data-mode="nav"] .r-pick { margin-top: 7px; gap: 4px; }
/* 搜索时：正在选起点还是终点（同小程序 .pk-steps） */
.cm .pk-steps { display: flex; align-items: center; gap: 5px; margin: 2px 0 9px; }
.cm .pk-steps > .ic { width: 14px; height: 14px; color: var(--ink-3); flex: none; stroke-width: 2.4; }
.cm .pk { flex: 1; min-width: 0; display: flex; align-items: center; gap: 7px; height: 44px; padding: 0 10px; border-radius: 13px; background: rgba(255, 255, 255, .7); border: 1px solid #fff; text-align: left; cursor: pointer; transition: background .2s, border-color .2s, box-shadow .2s; }
.cm .pk.on { background: #fff; border-color: var(--primary); box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 10%, transparent), 0 4px 9px color-mix(in srgb, var(--primary) 12%, transparent); }
.cm .pk-dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.cm .pk-dot.start { border: 3px solid var(--start); background: #fff; }
.cm .pk-dot.end { background: var(--end); box-shadow: 0 0 0 2.5px rgba(226, 68, 63, .18); }
.cm .pk-tx { display: flex; flex-direction: column; min-width: 0; }
.cm .pk-k { font-size: 10px; color: var(--ink-3); line-height: 1.3; }
.cm .pk-v { font-size: 13px; font-weight: 800; color: var(--ink); line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm .pk:not(.on) .pk-v { color: var(--ink-2); font-weight: 700; }

/* ---------- 搜索面板 ---------- */
.cm .sp-top { position: sticky; top: -4px; z-index: 3; display: flex; align-items: center; gap: 4px; margin: 0 -14px; padding: 6px 14px 10px 6px; background: var(--nv-band); }
.cm .sp-back { width: 34px; height: 34px; border-radius: 50%; border: 0; background: transparent; color: var(--ink); display: grid; place-items: center; flex: none; cursor: pointer; }
.cm .sp-back .ic { width: 22px; height: 22px; stroke-width: 2.8; }
.cm .sp-back:hover { background: rgba(255, 255, 255, .7); }
.cm .sp-in { padding: 0 4px 0 13px; cursor: text; }
.cm .sp-in input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: 14.5px; color: var(--ink); }
.cm .sp-in input::placeholder { color: var(--ink-3); }
.cm .sp-in input::-webkit-search-cancel-button { display: none; }
.cm .clr { width: 18px; height: 18px; border-radius: 50%; border: 0; padding: 0; background: #A4B2C6; color: #fff; display: grid; place-items: center; flex: none; margin-right: 3px; cursor: pointer; }
.cm .clr[hidden] { display: none; }
.cm .clr .ic { width: 11px; height: 11px; stroke-width: 3; }
.cm .s-btn { height: 32px; padding: 0 15px; border-radius: 16px; border: 0; background: var(--nv-grad); color: #fff; font-size: 13.5px; font-weight: 700; flex: none; cursor: pointer; }
.cm .sp-quick { position: relative; margin: 2px 0 12px; border-radius: 15px; background: var(--nv-card); border: 1px solid #fff; box-shadow: var(--nv-shadow); }
.cm .sp-quick .spark { right: 45px; top: -6px; }
.cm .sp-row { display: flex; align-items: center; gap: 11px; width: 100%; padding: 12px 13px; border: 0; background: none; text-align: left; cursor: pointer; border-radius: 15px; }
.cm .sp-row + .sp-row { border-top: 1px solid var(--line); border-radius: 0 0 15px 15px; }
.cm .sp-row:hover { background: rgba(230, 240, 252, .5); }
.cm .sp-row > .ic:first-child { width: 20px; height: 20px; color: var(--primary); stroke-width: 2.4; }
.cm .sp-row > .ic:last-child { width: 15px; height: 15px; color: var(--ink-2); }
.cm .sp-row b { font-size: 14.5px; font-weight: 800; color: var(--ink); }
.cm .sp-row small { font-size: 12px; color: var(--ink-2); }
.cm .sp-cats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; padding: 3px 0 5px; }
.cm .sp-cat { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 66px; padding: 0 3px; border-radius: 12px; border: 1px solid #fff; background: var(--nv-card); box-shadow: var(--nv-shadow); font-size: 11px; font-weight: 700; color: var(--ink); cursor: pointer; transition: transform .15s, background .2s, color .2s; }
.cm .sp-cat .ic { width: 23px; height: 23px; color: var(--primary); stroke-width: 2.1; }
.cm .sp-cat span { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm .sp-cat:active { transform: scale(.95); }
.cm .sp-cat.on { background: var(--nv-grad); color: #fff; border-color: transparent; }
.cm .sp-cat.on .ic { color: #fff; }
.cm .sec-t { display: flex; align-items: center; justify-content: space-between; margin: 14px 2px 9px; }
.cm .sec-t b { display: inline-flex; align-items: center; gap: 6px; font-size: 16.5px; font-weight: 800; color: var(--ink); }
.cm .sec-t b .ic { width: 17px; height: 17px; color: var(--primary); stroke-width: 2.4; }
.cm .sec-t .more { display: inline-flex; align-items: center; gap: 2px; border: 0; background: none; padding: 0; font-size: 12px; color: var(--ink-2); cursor: pointer; }
.cm .sec-t .more .ic { width: 14px; height: 14px; }
.cm .hist { display: flex; flex-wrap: wrap; gap: 7px; }
.cm .hchip { display: inline-flex; align-items: center; height: 29px; border-radius: 15px; background: rgba(255, 255, 255, .92); border: 1px solid #fff; box-shadow: 0 2px 6px rgba(36, 98, 178, .08); }
.cm .hchip button { height: 100%; border: 0; background: none; padding: 0 4px 0 12px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; max-width: 140px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm .hchip .hx { padding: 0 9px 0 3px; display: grid; place-items: center; color: var(--ink-3); }
.cm .hchip .hx .ic { width: 12px; height: 12px; }
.cm .res { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 11px 9px 9px; margin-bottom: 9px; border-radius: 15px; background: var(--nv-card); border: 1px solid #fff; box-shadow: var(--nv-shadow); text-align: left; cursor: pointer; transition: transform .15s, box-shadow .2s; }
.cm .res:hover { box-shadow: 0 7px 18px rgba(36, 98, 178, .14); }
.cm .res:active { transform: scale(.98); }
.cm .res > .ic { width: 16px; height: 16px; color: var(--ink); stroke-width: 2.4; }
.cm .res.first { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), 0 6px 14px color-mix(in srgb, var(--primary) 16%, transparent); }
.cm .res .spark { left: 145px; top: 2px; }
/* 空状态（插画） */
.cm .nv-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 18px 10px 10px; }
.cm .nv-empty .ill { width: 150px; height: 120px; object-fit: contain; animation: nv-float 4s ease-in-out infinite; }
.cm .nv-empty b { margin-top: 8px; font-size: 16px; font-weight: 800; color: var(--ink); }
.cm .nv-empty p { margin: 4px 0 0; font-size: 13px; color: var(--ink-2); }
.cm[data-mode="nav"] .nv-empty .sp-clear { margin-top: 12px; }
.cm .nv-empty.sm { padding: 6px 10px; }
.cm .nv-empty.sm .ill { width: 90px; height: 72px; }
.cm .nv-empty.sm b { font-size: 13.5px; }

/* 校区无地图 / 底图加载失败 */
.cm.portal .empty { background: linear-gradient(180deg, #E2EFFF 0, #EFF6FF 60%); padding-top: calc(var(--top-h, 0px) + 16px); }
.cm .nv-state { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 10px 24px 80px; max-width: 420px; }
.cm .nv-state .ill { width: 190px; height: 152px; object-fit: contain; animation: nv-float 4s ease-in-out infinite; }
.cm .nv-state .st { margin-top: 10px; font-size: 19px; font-weight: 800; color: var(--ink); }
.cm .nv-state .sd { margin: 6px 0 18px; font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.cm .nv-state .btn { min-width: 180px; }
.cm .big-t { position: relative; display: inline-block; z-index: 0; font-size: 21px; }
.cm .big-t .swoosh { position: absolute; left: -3px; right: -5px; bottom: -3px; width: calc(100% + 8px); height: 10px; z-index: -1; }

/* 提示、加载 */
.cm[data-mode="nav"] .toast { position: absolute; left: 50%; top: calc(var(--top-h, 0px) + 12px); bottom: auto; transform: translate(-50%, -8px); max-width: calc(100% - 40px); padding: 8px 16px; border-radius: 18px; background: color-mix(in srgb, var(--primary) 94%, transparent); color: #fff; font-size: 13px; font-weight: 600; text-align: center; box-shadow: 0 5px 12px color-mix(in srgb, var(--primary) 30%, transparent); }
.cm[data-mode="nav"] .toast.show { transform: translate(-50%, 0); }
.cm[data-mode="nav"] .loading { border-radius: 18px; background: color-mix(in srgb, var(--primary) 92%, transparent); color: #fff; font-weight: 600; box-shadow: 0 5px 12px color-mix(in srgb, var(--primary) 30%, transparent); }
.cm[data-mode="nav"] .ctx { border-radius: 14px; border: 1px solid #fff; box-shadow: 0 8px 22px rgba(15, 76, 156, .18); }
.cm[data-mode="nav"] .ctx button { font-weight: 600; }
.cm[data-mode="nav"] .ctx button .ic { color: var(--primary); }
.cm[data-mode="nav"] .modal-card { border-radius: 20px; }

/* ---------- 导航中 ---------- */
.cm .navi-top { position: absolute; z-index: 25; left: 16px; top: 16px; width: 400px; max-width: calc(100% - 32px); animation: nv-rise .45s cubic-bezier(.2, .8, .2, 1) both; }
.cm .navi-bar { position: absolute; z-index: 25; left: 16px; bottom: 16px; width: 400px; max-width: calc(100% - 32px); padding: 11px 12px 12px; border-radius: 20px; background: linear-gradient(180deg, rgba(247, 251, 255, .97), #EEF5FE); border: 1px solid #fff; box-shadow: 0 -6px 18px rgba(15, 76, 156, .12), 0 8px 24px rgba(15, 76, 156, .12); animation: nv-rise .45s cubic-bezier(.2, .8, .2, 1) both; }
.cm .navi-top[hidden], .cm .navi-bar[hidden] { display: none; }
.cm .nfrom { display: flex; align-items: center; gap: 7px; height: 42px; padding: 0 6px 0 13px; border-radius: 21px; background: rgba(255, 255, 255, .97); border: 1px solid #fff; box-shadow: var(--nv-shadow); font-size: 13.5px; font-weight: 700; color: var(--ink); }
.cm .nfrom > .ic { width: 17px; height: 17px; color: var(--primary); stroke-width: 2.4; }
.cm .nfrom > .ic:nth-of-type(2) { width: 14px; height: 14px; color: var(--ink-2); }
.cm .nf-a { max-width: 40%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm .nf-b { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm .demo-tag { display: inline-flex; align-items: center; gap: 3px; height: 24px; padding: 0 9px; border-radius: 12px; background: linear-gradient(180deg, #FFE38A, #FFC94A); color: #6B4500; font-size: 11.5px; font-weight: 800; flex: none; box-shadow: 0 2px 5px rgba(255, 194, 26, .35); animation: nv-pin .4s cubic-bezier(.2, .9, .3, 1.4); }
.cm .demo-tag .ic { width: 11px; height: 11px; stroke-width: 2.6; }
.cm .nf-sw { width: 31px; height: 31px; border-radius: 50%; border: 0; background: var(--nv-soft); color: var(--primary); display: grid; place-items: center; flex: none; cursor: pointer; transition: transform .15s; }
.cm .nf-sw:active { transform: scale(.9); }
.cm .nf-sw .ic { width: 16px; height: 16px; stroke-width: 2.4; }
.cm .nbanner { position: relative; display: flex; align-items: center; gap: 12px; margin-top: 8px; padding: 13px 15px; border-radius: 15px; background: var(--nv-grad); color: #fff; box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .22), 0 7px 15px color-mix(in srgb, var(--primary) 35%, transparent); transition: background .3s; }
.cm .nbanner.turn-now { background: linear-gradient(180deg, #F7A046, #E0702E); box-shadow: 0 7px 15px rgba(224, 112, 46, .35); animation: nv-pulse .6s ease; }
.cm .nbanner.arrive { background: linear-gradient(180deg, #34B873, #1E8E52); box-shadow: 0 7px 15px rgba(30, 142, 82, .32); }
.cm .nb-ic { width: 48px; height: 48px; display: grid; place-items: center; flex: none; }
.cm .nb-ic .ic { width: 42px; height: 42px; stroke-width: 2.6; }
.cm .nb-d { display: block; font-size: 21px; font-weight: 900; line-height: 1.25; letter-spacing: .5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm .nb-w { display: block; font-size: 12px; opacity: .88; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm .nbanner .spark { right: 7px; top: -8px; }
.cm .eta { position: relative; padding: 12px 14px 11px; margin-bottom: 9px; border-radius: 15px; background: var(--nv-card); border: 1px solid #fff; box-shadow: var(--nv-shadow); }
.cm .eta-r { position: relative; display: flex; align-items: center; gap: 6px; }
.cm .eta-r > .ic { width: 20px; height: 20px; color: var(--primary); stroke-width: 2.4; }
.cm .eta-r b { font-size: 17px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.cm .eta-r i { font-style: normal; font-size: 15px; font-weight: 800; color: var(--ink-3); }
.cm .eta-r .spark { right: 8px; top: 2px; }
.cm .nprog { height: 8px; margin-top: 8px; border-radius: 4px; background: #E1ECF9; overflow: hidden; }
.cm .nprog i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #4A9BF0, var(--primary)); transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.cm .eta-s { margin-top: 7px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm .eta-n { margin-top: 2px; font-size: 11px; color: var(--ink-3); }
.cm .eta-steps { display: flex; gap: 7px; margin-bottom: 8px; }
.cm[data-mode="nav"] .eta-steps .btn { flex: 1; height: 35px; padding: 0 8px; border-radius: 18px; }
.cm[data-mode="nav"] .eta-steps .nv-sim { flex: 1.3; }
.cm[data-mode="nav"] .eta-steps .nv-next { background: var(--nv-soft); border-color: transparent; }
.cm .nv-acts { display: flex; gap: 8px; }
.cm[data-mode="nav"] .nv-acts .btn { flex: 1; height: 42px; }

/* ---------- 桌面：左侧卡片栏 ---------- */
@media (min-width: 721px) {
  .cm[data-mode="nav"] .side { position: absolute; left: 16px; top: 16px; width: 384px; max-height: calc(100% - 32px); display: flex; flex-direction: column; gap: 10px; z-index: 10; pointer-events: none; }
  .cm[data-mode="nav"] .side > * { pointer-events: auto; }
  .cm[data-mode="nav"] .nv-top { flex: none; padding: 10px; border-radius: 16px; background: linear-gradient(180deg, #E4F0FF, #F1F7FF); border: 1px solid #fff; box-shadow: 0 8px 22px rgba(36, 98, 178, .14); }
  .cm[data-mode="nav"] .nv-top[data-k="pick"] { padding: 0; background: none; border: 0; box-shadow: none; }
  .cm[data-mode="nav"] .fchips { flex-wrap: wrap; overflow: visible; }
  .cm[data-mode="nav"] .panel { position: relative; left: auto; top: auto; width: auto; max-height: none; flex: 0 1 auto; min-height: 0; border-radius: 16px; background: linear-gradient(180deg, rgba(247, 251, 255, .97), rgba(238, 245, 254, .97)); box-shadow: 0 8px 24px rgba(36, 98, 178, .14); }
  .cm[data-mode="nav"][data-panel="search"] .panel { flex: 1 1 auto; }
  .cm[data-mode="nav"] .p-body { padding: 12px 14px 14px; }
  .cm[data-mode="nav"] .sp-top { background: #F5F9FF; top: -12px; margin-top: -12px; padding-top: 12px; }
  .cm[data-mode="nav"] .ns-list { max-height: none; }
  .cm[data-mode="nav"] .map-ctrl { right: 16px; bottom: 24px; }
}

/* ---------- 手机：顶部渐变带 + 底部抽屉 ---------- */
@media (max-width: 720px) {
  .cm[data-mode="nav"] .side { display: contents; }
  .cm[data-mode="nav"] .nv-top { position: absolute; left: 0; right: 0; top: 0; z-index: 12; padding: 8px 12px 16px; background: linear-gradient(180deg, var(--nv-band) 0%, rgba(226, 239, 255, .92) 70%, rgba(226, 239, 255, 0) 100%); pointer-events: none; }
  .cm[data-mode="nav"] .nv-top > * { pointer-events: auto; }
  .cm[data-mode="nav"] .nv-top[data-k="pick"] { background: none; padding-top: 10px; }
  .cm[data-mode="nav"] .nv-top { padding-top: max(8px, env(safe-area-inset-top)); }
  .cm[data-mode="nav"] .nv-top[data-k="home"] { background: linear-gradient(180deg, #D3E8FF 0%, var(--nv-band) 45%, rgba(226, 239, 255, .92) 80%, rgba(226, 239, 255, 0) 100%); }
  .cm .nt-title { position: relative; display: flex; align-items: center; height: 46px; margin: 0 -12px 4px; padding: 0 12px 0 16px; overflow: hidden; pointer-events: none; }
  .cm .nt-title b { display: block; font-size: 21px; font-weight: 800; color: var(--ink); letter-spacing: .5px; line-height: 1.2; }
  .cm .nt-title small { display: block; font-size: 11px; font-weight: 600; color: #3F587E; }
  .cm .nt-sky { position: absolute; right: 0; bottom: -4px; height: 46px; width: auto; opacity: .9; }
  .cm[data-mode="nav"] .panel { border-radius: 20px 20px 0 0; border-width: 1px 0 0; max-height: 58%; animation: nv-sheet .42s cubic-bezier(.2, .9, .3, 1.05); }
  .cm[data-mode="nav"][data-panel="route"] .panel { max-height: max(180px, min(58%, calc(100% - var(--top-h, 0px) - 70px))); }
  .cm[data-mode="nav"][data-panel="poi"] .panel { max-height: 72%; }
  .cm[data-mode="nav"] .panel::before { display: none; }
  .cm[data-mode="nav"] .sheet-grip { display: block; flex: none; width: 100%; padding: 8px 0 6px; border: 0; background: none; cursor: pointer; }
  .cm[data-mode="nav"] .sheet-grip i { display: block; width: 38px; height: 4.5px; border-radius: 3px; background: #C9D8EC; margin: 0 auto; }
  .cm[data-mode="nav"] .p-body { padding: 0 14px calc(14px + env(safe-area-inset-bottom)); }
  .cm[data-mode="nav"] .ns-list { max-height: 140px; overflow: auto; overscroll-behavior: contain; transition: max-height .3s cubic-bezier(.2, .8, .2, 1); }
  .cm[data-mode="nav"] .panel.expanded .ns-list { max-height: 46vh; }
  /* 搜索：铺满整个地图区域 */
  .cm[data-mode="nav"][data-panel="search"] .panel { top: 0; max-height: none; border-radius: 0; border: 0; background: linear-gradient(180deg, #E2EFFF 0, #EAF3FF 150px, #EFF6FF 350px); box-shadow: none; animation: nv-fade .2s ease; }
  .cm[data-mode="nav"][data-panel="search"] .sheet-grip, .cm[data-mode="nav"][data-panel="search"] .map-ctrl, .cm[data-mode="nav"][data-panel="search"] .scalebar { display: none; }
  .cm[data-mode="nav"][data-panel="search"] .p-body { padding-top: 4px; }
  .cm[data-mode="nav"] .map-ctrl { top: auto; right: 12px; bottom: calc(var(--sheet-h, 0px) + 12px); transition: bottom .3s cubic-bezier(.2, .8, .2, 1); }
  .cm[data-mode="nav"] .ctrl-group { display: none; }
  .cm[data-mode="nav"] .scalebar { top: calc(var(--top-h, 0px) + 4px); }
  .cm .navi-top { left: 12px; right: 12px; top: max(8px, env(safe-area-inset-top)); width: auto; max-width: none; }
  .cm .navi-bar { left: 0; right: 0; bottom: 0; width: auto; max-width: none; border-radius: 20px 20px 0 0; border-width: 1px 0 0; padding-bottom: calc(12px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 18px rgba(15, 76, 156, .12); animation: nv-sheet .42s cubic-bezier(.2, .9, .3, 1.05); }
  .cm .nb-d { font-size: 19px; }
  .cm .sp-cats { gap: 6px; }
}
@media (max-width: 360px) {
  .cm .pacts .pa { padding: 0 10px; }
  .cm .sp-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .cm .rise, .cm .bob, .cm .spark, .cm .me-halo, .cm .pt-ic, .cm .ill, .cm .r-ill, .cm .seed *, .cm .seed-ic, .cm .pc-seed, .cm[data-mode="nav"] .p-body > *, .cm[data-mode="nav"] .panel, .cm .navi-top, .cm .navi-bar, .cm[data-mode="nav"] .btn.primary::after, .cm[data-mode="nav"] .steps li { animation: none !important; }
}
.cm.navi-on .travel-seg { display: none !important; }
