    <style>
        * { box-sizing: border-box; }
        body {
            font-family: 'Microsoft YaHei', Arial, sans-serif;
            margin: 0; padding: 0; overflow: hidden; height: 100vh;
            background: #1a1a2e;
        }
        /* top bar */
        #topbar {
            height: 44px; background: linear-gradient(135deg, #16213e 0%, #1a1a2e 100%);
            display: flex; align-items: center; padding: 0 12px;
            color: #e0e0e0; font-size: 14px; z-index: 2000; position: relative;
            box-shadow: 0 1px 3px rgba(0,0,0,.4);
        }
        #topbar h1 { font-size: 16px; margin: 0 16px 0 0; font-weight: 400; letter-spacing: 2px; color: #a4bfef; }
        #topbar .sep { flex: 1; }
        #topbar button, #topbar .btn-sm {
            padding: 4px 10px; font-size: 12px; margin-left: 4px;
            background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
            color: #ccc; border-radius: 3px; cursor: pointer;
        }
        #topbar button:hover { background: rgba(255,255,255,.18); color: #fff; }
        #topbar select { font-size: 12px; padding: 3px 6px; margin-left: 4px; background: rgba(255,255,255,.08); color: #ccc; border: 1px solid rgba(255,255,255,.15); border-radius: 3px; }
        #topbar select option { color: #000; }
        /* map area */
        #mapwrap { position: absolute; top: 44px; left: 0; right: 0; bottom: 0; }
        #leafletContainer, #cesiumContainer { width: 100%; height: 100%; }
        #cesiumContainer { display: none; }
        /* floating panels */
        .float-panel {
            position: absolute; z-index: 1500; background: rgba(30,30,50,.92);
            border: 1px solid rgba(255,255,255,.12); border-radius: 4px;
            color: #d0d0d0; font-size: 12px; backdrop-filter: blur(8px);
            box-shadow: 0 2px 12px rgba(0,0,0,.5);
        }
        #ctrlPanel { top: 8px; left: 8px; width: 210px; padding: 8px; }
        #infoPanel { top: 8px; right: 8px; width: 260px; max-height: calc(100vh - 100px); overflow-y: auto; padding: 8px; display: none; }
        #infoPanel.visible { display: block; }
        .panel-section { margin-bottom: 6px; }
        .panel-section h6 {
            font-size: 11px; color: #8ab4f8; margin: 0 0 4px 0; padding-bottom: 2px;
            border-bottom: 1px solid rgba(255,255,255,.1); text-transform: uppercase; letter-spacing: 1px;
            cursor: pointer; user-select: none;
        }
        .panel-section h6 .arrow { float: right; transition: transform .2s; }
        .panel-section.collapsed .section-body { display: none; }
        .panel-section.collapsed h6 .arrow { transform: rotate(-90deg); }
        .ctrl-row { display: flex; align-items: center; gap: 4px; margin: 2px 0; }
        .ctrl-row label { margin: 0; cursor: pointer; font-size: 11px; flex: 1; user-select: none; }
        .ctrl-row input[type=checkbox] { margin: 0; cursor: pointer; }
        #zoomLabel { background: rgba(255,255,255,.1); padding: 2px 8px; border-radius: 3px; font-weight: bold; min-width: 28px; text-align: center; }
        /* mode color dots */
        .mode-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; vertical-align: middle; position: relative; top: -1px; }
        /* pavilion info card */
        #pavDetail { font-size: 11px; }
        #pavDetail .card-title { font-size: 14px; margin: 0 0 4px; }
        #selList { font-size: 11px; }
        #selList .sel-item { padding: 3px 6px; background: rgba(255,255,255,.05); border-radius: 3px; margin: 2px 0; display: flex; justify-content: space-between; }
        #selList .sel-item .rm { cursor: pointer; color: #e74c3c; font-weight: bold; }
        .legend-row { display: flex; align-items: center; gap: 6px; margin: 2px 0; }
        .legend-row i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
        /* toast */
        #toastBox { position: fixed; top: 52px; right: 12px; z-index: 3000; pointer-events: none; }
        #toastBox .toast-msg {
            background: rgba(30,30,50,.92); color: #d0d0d0; padding: 8px 14px;
            border-radius: 4px; margin-bottom: 4px; font-size: 12px; pointer-events: auto;
            border-left: 3px solid #4a86e8; animation: fadeIn .3s;
        }
        @keyframes fadeIn { from {opacity:0; transform:translateY(-8px);} to {opacity:1; transform:translateY(0);} }
        @keyframes tspPulse { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(1.8);opacity:.6} }
        /* marker */
        .pav-marker { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: bold; font-size: 11px; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
        .pav-marker.h { background: #e74c3c; }
        .pav-marker.m { background: #3498db; }
        .pav-marker.c { background: #2ecc71; }
        /* modal dark */
        .modal-content { background: #1e1e32; color: #ccc; border: 1px solid rgba(255,255,255,.1); }
        .modal-header { border-bottom: 1px solid rgba(255,255,255,.1); }
        .modal-footer { border-top: 1px solid rgba(255,255,255,.1); }
        /* tabs */
        #tabBar { display: flex; gap: 2px; margin: 0 8px; }
        #tabBar .tab-btn {
            padding: 5px 14px; font-size: 12px; cursor: pointer; border-radius: 3px 3px 0 0;
            background: rgba(255,255,255,.05); color: #aaa; border: 1px solid transparent;
            transition: .2s;
        }
        #tabBar .tab-btn:hover { background: rgba(255,255,255,.1); color: #ddd; }
        #tabBar .tab-btn.active { background: rgba(74,134,232,.25); color: #a4bfef; border-color: rgba(74,134,232,.4); font-weight: bold; }
        #geofencePanel { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); z-index: 1500; display: none; padding: 8px 20px; font-size: 13px; text-align: center; background: rgba(30,30,50,.95); border: 1px solid rgba(255,255,255,.15); border-radius: 20px; backdrop-filter: blur(8px); color: #ddd; box-shadow: 0 2px 12px rgba(0,0,0,.5); }
        /* data view */
        #dataView { position: absolute; top: 44px; left: 0; right: 0; bottom: 0; background: #1a1a2e; display: none; flex-direction: column; z-index: 1000; }
        #dataView.show { display: flex; }
        #s3DataView { position: absolute; top: 44px; left: 0; right: 0; bottom: 0; background: #1a1a2e; display: none; flex-direction: column; z-index: 1000; }
        #s3DataView.show { display: flex; }
        #s3Toolbar { display: flex; gap: 8px; align-items: center; padding: 8px 12px; background: rgba(0,0,0,.25); border-bottom: 1px solid rgba(255,255,255,.08); flex-shrink: 0; flex-wrap: wrap; }
        #s3Toolbar input { font-size: 12px; padding: 4px 10px; background: rgba(255,255,255,.08); color: #ccc; border: 1px solid rgba(255,255,255,.15); border-radius: 3px; width: 220px; }
        #s3Toolbar input::placeholder { color: #666; }
        #s3Toolbar .info { font-size: 11px; color: #888; }
        #s3TableWrap { flex: 1; overflow: auto; padding: 0 12px 12px; }
        #s3Table { width: 100%; border-collapse: collapse; font-size: 12px; color: #ccc; }
        #s3Table thead { position: sticky; top: 0; z-index: 10; }
        #s3Table thead th { background: #1a1a2e; padding: 8px 10px; text-align: left; font-weight: 600; border-bottom: 2px solid rgba(255,255,255,.15); color: #a4bfef; font-size: 11px; white-space: nowrap; cursor: pointer; user-select: none; }
        #s3Table tbody td { padding: 6px 10px; border-bottom: 1px solid rgba(255,255,255,.05); max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        #s3Table tbody tr:hover { background: rgba(255,255,255,.06); }
        #dataToolbar { display: flex; gap: 8px; align-items: center; padding: 8px 12px; background: rgba(0,0,0,.25); border-bottom: 1px solid rgba(255,255,255,.08); flex-shrink: 0; flex-wrap: wrap; }
        #dataToolbar input { font-size: 12px; padding: 4px 10px; background: rgba(255,255,255,.08); color: #ccc; border: 1px solid rgba(255,255,255,.15); border-radius: 3px; width: 220px; }
        #dataToolbar input::placeholder { color: #666; }
        #dataToolbar .info { font-size: 11px; color: #888; }
        #dataTableWrap { flex: 1; overflow: auto; padding: 0 12px 12px; }
        #dataTable { width: 100%; border-collapse: collapse; font-size: 12px; color: #ccc; }
        #dataTable thead { position: sticky; top: 0; z-index: 10; }
        #dataTable thead th {
            background: #1a1a2e; padding: 8px 10px; text-align: left; font-weight: 600;
            border-bottom: 2px solid rgba(255,255,255,.15); color: #a4bfef; font-size: 11px;
            white-space: nowrap; cursor: pointer; user-select: none; position: relative;
        }
        #dataTable thead th:hover { color: #fff; }
        #dataTable thead th .sort-arrow { margin-left: 3px; opacity: .3; }
        #dataTable thead th.sorted .sort-arrow { opacity: 1; }
        #dataTable tbody td {
            padding: 6px 10px; border-bottom: 1px solid rgba(255,255,255,.05);
            max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
        }
        #dataTable tbody tr { cursor: pointer; transition: background .15s; }
        #dataTable tbody tr:hover { background: rgba(255,255,255,.06); }
        #dataTable tbody tr.active-row { background: rgba(74,134,232,.2); outline: 1px solid rgba(74,134,232,.35); }
        #dataTable tbody tr.sel-row { background: rgba(46,204,113,.15); }
        #scenicTable tbody tr, #adminTable tbody tr { cursor: pointer; transition: background .15s; }
        #scenicTable tbody tr:hover, #adminTable tbody tr:hover { background: rgba(255,255,255,.06); }
        #scenicTable tbody tr.row-sel, #adminTable tbody tr.row-sel { background: rgba(46,204,113,.15); outline: 1px solid rgba(46,204,113,.25); }
        .col-id { width: 50px; }
        .col-name { min-width: 110px; }
        .col-struct { width: 60px; }
        .col-style { min-width: 120px; }
        .col-loc { min-width: 140px; }
        .col-street { width: 100px; }
        .col-area { width: 70px; }
        .col-rating { width: 60px; text-align: center; }
        .col-type { width: 90px; }
        .type-badge {
            display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 10px;
            font-weight: bold;
        }
        .type-badge.h { background: rgba(231,76,60,.25); color: #e74c3c; }
        .type-badge.m { background: rgba(52,152,219,.25); color: #3498db; }
        .type-badge.c { background: rgba(46,204,113,.25); color: #2ecc71; }
        .col-collector { width: 56px; text-align: center; }
        .collector-badge {
            display: inline-block; padding: 1px 7px; border-radius: 8px;
            font-size: 10px; background: rgba(155,89,182,.2); color: #9b59b6;
            cursor: pointer; transition: background .15s; white-space: nowrap;
        }
        .collector-badge:hover { background: rgba(155,89,182,.4); }
        /* search panel */
        #searchResults .search-result:hover { background: rgba(255,255,255,.1) !important; }
        #searchInput:focus { border-color: rgba(138,180,248,.5); }
        .leaflet-tooltip.measure-label { background: rgba(243,156,18,.9); border: none; color: #fff; font-size: 10px; font-weight: bold; padding: 1px 5px; }
        /* voice search */
        #voiceBtn {
            background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
            color: #ccc; border-radius: 3px; cursor: pointer; padding: 4px 8px; font-size: 12px; margin-left: 4px;
        }
        #voiceBtn:hover { background: rgba(255,255,255,.18); }
        #voiceBtn.listening { background: rgba(231,76,60,.3); color: #e74c3c; animation: pulse 1s infinite; }
        @keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.5} }
        /* camera */
        #cameraPreview { width: 100%; max-height: 60vh; background: #000; border-radius: 4px; }
        #capturedPhoto { max-width: 100%; max-height: 40vh; border-radius: 4px; display: none; }
        /* travel map */
        #travelMapPreview {
            width: 100%; max-width: 800px; margin: 0 auto; background: #fff; color: #333;
            border-radius: 8px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,.3);
        }
        #travelMapPreview .map-header {
            background: linear-gradient(135deg, #1a5276, #2e86c1); color: #fff;
            padding: 20px 24px; text-align: center;
        }
        #travelMapPreview .map-header h3 { margin: 0 0 4px; font-size: 20px; font-weight: bold; }
        #travelMapPreview .map-header p { margin: 0; font-size: 12px; opacity: .8; }
        #travelMapPreview .map-body { padding: 0; }
        #travelMapPreview .map-body img { width: 100%; display: block; }
        #travelMapPreview .map-footer {
            padding: 12px 24px; font-size: 11px; color: #666;
            display: flex; justify-content: space-between; border-top: 1px solid #eee;
        }
        #travelMapPreview .map-footer .qr-placeholder {
            width: 60px; height: 60px; background: #f0f0f0; border-radius: 4px;
            display: flex; align-items: center; justify-content: center; font-size: 8px; color: #999;
        }
        .travel-map-btn {
            padding: 6px 14px; font-size: 11px; border-radius: 4px; border: none; cursor: pointer;
            margin: 2px; transition: opacity .15s;
        }
        .travel-map-btn:hover { opacity: .8; }
        .travel-map-btn.save { background: #27ae60; color: #fff; }
        .travel-map-btn.print { background: #3498db; color: #fff; }
        .travel-map-btn.share { background: #e67e22; color: #fff; }
        .travel-map-btn.close { background: rgba(255,255,255,.08); color: #aaa; }
        /* topbar category dropdowns */
        .tb-group { display: flex; gap: 2px; margin: 0 4px; align-items: center; }
        .tb-dropdown { position: relative; display: inline-block; }
        .tb-drop-btn {
            padding: 3px 8px; font-size: 11px; cursor: pointer; border-radius: 3px;
            background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); color: #ccc;
            transition: .15s; white-space: nowrap;
        }
        .tb-drop-btn:hover { background: rgba(255,255,255,.15); color: #fff; }
        .tb-drop-content {
            display: none; position: absolute; top: 100%; left: 0; z-index: 3000;
            background: #1e1e32; border: 1px solid rgba(255,255,255,.12); border-radius: 4px;
            min-width: 160px; box-shadow: 0 4px 16px rgba(0,0,0,.5); padding: 4px 0;
        }
        .tb-drop-content.show { display: block; }
        .tb-drop-item { padding: 0; }
        .tb-drop-item button, .tb-drop-item label {
            display: block; width: 100%; padding: 6px 14px; font-size: 11px; color: #ccc;
            background: none; border: none; text-align: left; cursor: pointer; white-space: nowrap;
        }
        .tb-drop-item button:hover, .tb-drop-item label:hover { background: rgba(255,255,255,.08); color: #fff; }
        .tb-drop-item label { padding: 4px 14px; }
        .tb-drop-item input[type=checkbox] { margin-right: 4px; vertical-align: middle; }
        /* panel hide */
        .panel-hidden { display: none !important; }
        /* stats dashboard */
        #statsDashboard { flex-shrink: 0; padding: 10px 14px; background: rgba(0,0,0,.12); border-bottom: 1px solid rgba(255,255,255,.06); }
        #statsOverview { display: flex; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
        .stat-card {
            background: rgba(255,255,255,.05); border-radius: 5px;
            padding: 8px 14px; min-width: 90px; text-align: center;
        }
        .stat-card .stat-num { font-size: 20px; font-weight: bold; color: #4a86e8; }
        .stat-card .stat-label { font-size: 10px; color: #888; margin-top: 1px; }
        #statsCharts { display: flex; gap: 12px; flex-wrap: wrap; }
        .stat-chart {
            flex: 1; min-width: 180px; max-width: 280px;
            background: rgba(255,255,255,.03); border-radius: 5px; padding: 8px 10px;
        }
        .stat-chart h6 { font-size: 11px; color: #8ab4f8; margin: 0 0 6px 0; }
        .stat-bar-row { display: flex; align-items: center; margin: 2px 0; font-size: 10px; }
        .stat-bar-row .bar-label { width: 50px; text-align: right; margin-right: 5px; color: #aaa; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .stat-bar-row .bar-track { flex: 1; height: 10px; background: rgba(255,255,255,.05); border-radius: 2px; overflow: hidden; }
        .stat-bar-row .bar-fill { height: 100%; background: linear-gradient(90deg, #4a86e8, #6fa3ef); border-radius: 2px; transition: width .3s; }
        .stat-bar-row .bar-cnt { width: 26px; text-align: right; color: #888; margin-left: 3px; font-size: 9px; }
        .stat-toggle { font-size: 9px; color: #4a86e8; cursor: pointer; display: inline-block; margin-top: 2px; }
        /* polygon layers */
        .scenic-fill { fill: #27ae60; fill-opacity: 0.25; stroke: #27ae60; stroke-width: 2; }
        .admin-fill { fill: #8e44ad; fill-opacity: 0.2; stroke: #8e44ad; stroke-width: 2; stroke-dasharray: 4,3; }
        /* tree table */
        .tree-indent { display: inline-block; width: 16px; }
        .tree-toggle { cursor: pointer; color: #8ab4f8; margin-right: 3px; user-select: none; }
        .tree-row-child { background: rgba(255,255,255,.02); }
        .col-level { width: 70px; }
        .level-badge {
            display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 10px; font-weight: bold;
        }
        .level-badge.CITY { background: rgba(231,76,60,.25); color: #e74c3c; }
        .level-badge.DISTRICT { background: rgba(52,152,219,.25); color: #3498db; }
        .level-badge.STREET { background: rgba(46,204,113,.25); color: #2ecc71; }
        .level-badge.COUNTY { background: rgba(243,156,18,.25); color: #f39c12; }
        .level-badge.TOWN { background: rgba(155,89,182,.25); color: #9b59b6; }

        /* TSP Animation Control Panel */
        #tspCtrl {
            position: fixed; bottom: 12px; left: 50%; transform: translateX(-50%);
            background: rgba(20,20,32,.96); color: #ddd; padding: 10px 16px;
            border-radius: 8px; box-shadow: 0 4px 18px rgba(0,0,0,.5);
            display: none; z-index: 2500; min-width: 480px;
            border: 1px solid rgba(255,152,0,.4);
        }
        #tspCtrl.show { display: block; }
        #tspCtrl .tspc-row { display: flex; align-items: center; gap: 8px; margin: 4px 0; }
        #tspCtrl .tspc-stat { font-size: 11px; color: #aaa; }
        #tspCtrl .tspc-stat b { color: #ff9800; }
        #tspCtrl .tspc-progress { flex: 1; height: 6px; background: rgba(255,255,255,.08); border-radius: 3px; cursor: pointer; position: relative; overflow: hidden; }
        #tspCtrl .tspc-fill { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg,#ff9800,#ffc107); width: 0%; transition: width .1s linear; }
        #tspCtrl button {
            background: rgba(255,255,255,.08); color: #ccc; border: 1px solid rgba(255,255,255,.15);
            padding: 3px 10px; font-size: 11px; border-radius: 3px; cursor: pointer;
        }
        #tspCtrl button:hover { background: rgba(255,255,255,.15); color: #fff; }
        #tspCtrl button.primary { background: rgba(255,152,0,.25); color: #ff9800; border-color: rgba(255,152,0,.4); }
        #tspCtrl select { background: rgba(255,255,255,.08); color: #ccc; border: 1px solid rgba(255,255,255,.15); padding: 2px 6px; font-size: 11px; border-radius: 3px; }

        /* TSP setup modal */
        .tsp-mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
        .tsp-mode-grid label {
            cursor: pointer; padding: 6px 10px; background: rgba(255,255,255,.05);
            border-radius: 4px; border: 1px solid transparent; font-size: 11px;
        }
        .tsp-mode-grid input:checked + label,
        .tsp-mode-grid label.checked { border-color: #ff9800; background: rgba(255,152,0,.15); }

        /* --- 防止任何子元素横向溢出撑大移动端 layout viewport（会触发整页自动缩小）--- */
        html { overflow-x: hidden; }

        /* --- 修复：景区 / 区划 / 路线三个数据视图缺少定位与隐藏样式 ---
           JS 侧用 classList.add('show') 控制显示，但这三个容器原本没有对应 CSS，
           于是它们始终留在文档流中，内部 760px 宽的表格会把页面撑宽（移动端表现最严重）。 --- */
        #scenicDataView, #adminDataView, #routeDataView {
            position: absolute; top: 44px; left: 0; right: 0; bottom: 0;
            background: #1a1a2e; display: none; flex-direction: column; z-index: 1000;
        }
        #scenicDataView.show, #adminDataView.show, #routeDataView.show { display: flex; }
        #scenicTableWrap, #adminTableWrap, #routeTableWrap { flex: 1; overflow: auto; }

        /* --- 弹窗层级：必须高于所有浮层面板，否则窄屏下面板会遮住弹窗按钮 --- */
        .modal { z-index: 2600 !important; }
        .modal-backdrop { z-index: 2550 !important; }

        /* ==================================================================
           多端响应式适配
           同源码三端复用：PC 浏览器 / 平板 / 手机浏览器（H5）
           策略：顶部栏可横向滚动 → 中屏面板收窄 → 窄屏面板降级为底部抽屉
           ================================================================== */

        /* --- 中屏（笔记本 / 平板横屏）：顶部栏横向滚动，面板收窄 --- */
        @media (max-width: 1180px) {
            #topbar { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; padding: 0 8px; }
            #topbar::-webkit-scrollbar { height: 0; display: none; }
            #topbar h1 { font-size: 14px; letter-spacing: 1px; margin-right: 10px; white-space: nowrap; flex-shrink: 0; }
            #topbar .sep { display: none; }
            #topbar > button, #topbar > span, #topbar > h1, #topbar > div { flex-shrink: 0; }
            #ctrlPanel { width: 188px; }
            #infoPanel { width: 230px; }
            #tspCtrl { min-width: auto; width: min(94vw, 560px); }
        }

        /* --- 平板竖屏 / 手机横屏 --- */
        @media (max-width: 900px) {
            #topbar h1 { font-size: 13px; letter-spacing: 0; }
            #ctrlPanel { width: 170px; padding: 6px; }
            #infoPanel { width: 210px; padding: 6px; }
            #searchPanel { width: 280px !important; }
            #dataToolbar input, #s3Toolbar input { width: 150px; }
        }

        /* --- 手机（H5）：地图优先，左右面板降级为底部抽屉 --- */
        @media (max-width: 768px) {
            /* 顶部栏：把「登录 / 面板 / 详情」前置到第一屏，其余横向滚动可达 */
            #topbar { padding: 0 6px; }
            #topbar > * { order: 5; }
            #topbar > h1 { order: 1; font-size: 12px; letter-spacing: 0; margin-right: 8px; }
            #authBox { order: 2; margin-left: 0 !important; }
            #toggleCtrlPanel { order: 3; }
            #toggleInfoPanel { order: 4; }
            #topbar button, #topbar .btn-sm, .tb-drop-btn { padding: 3px 7px; font-size: 11px; margin-left: 2px; }
            #tabBar { margin: 0 3px; }
            #tabBar .tab-btn { padding: 5px 8px; font-size: 11px; }
            #voiceBtn { display: none; }

            /* 面板 → 底部抽屉（圆角上沿，可滚动） */
            #ctrlPanel, #infoPanel {
                top: auto; left: 0; right: 0; bottom: 0;
                width: 100%; max-height: 46vh; overflow-y: auto;
                border-radius: 12px 12px 0 0;
                padding: 10px 12px 16px;
            }
            #infoPanel { max-height: 54vh; z-index: 1600; }

            /* 其它浮层 */
            #searchPanel { top: 50px !important; left: 6px !important; width: calc(100vw - 12px) !important; max-height: 60vh; }
            #measurePanel { top: auto; bottom: 10px; right: 6px; }
            #geofencePanel { bottom: 10px; width: calc(100vw - 20px); padding: 8px 12px; font-size: 12px; }
            #toastBox { top: 48px; left: 8px; right: 8px; }

            /* TSP 控制条占满屏宽 */
            #tspCtrl { width: calc(100vw - 12px); padding: 8px 10px; bottom: 6px; }
            #tspCtrl .tspc-row { flex-wrap: wrap; gap: 6px; }
            #tspCtrl .tspc-progress { flex: 1 1 100%; }

            /* 数据表横向滚动，避免列被压扁 */
            #dataTable, #s3Table, #scenicTable, #adminTable, #routeTable { min-width: 760px; }

            /* 顶部栏下拉改为固定浮层：避免被 topbar 的横向滚动裁剪掉 */
            .tb-drop-content {
                position: fixed; top: 46px; left: 6px; right: 6px;
                width: auto; min-width: 0; max-height: 62vh; overflow-y: auto;
            }
            /* 触摸目标放大到可点区域（移动端 44px 原则） */
            .tb-drop-item button, .tb-drop-item label { padding: 11px 16px; font-size: 13px; }
            #tabBar .tab-btn { padding: 8px 10px; }

            /* 弹窗：手机上更紧凑 + 内容区可滚动，避免按钮落到视口外 */
            .modal-dialog { margin: 6px; }
            .modal-content { max-height: calc(100vh - 12px); }
            .modal-body { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 12px 14px; }
            .modal-header, .modal-footer { padding: 10px 14px; }
            .tsp-mode-grid { grid-template-columns: 1fr; }
        }

        /* --- 小屏手机 --- */
        @media (max-width: 480px) {
            #ctrlPanel, #infoPanel { max-height: 52vh; }
            #langToggle { min-width: 30px; padding: 3px 6px; }
            #zoomLabel { min-width: 24px; padding: 2px 5px; }
        }
    </style>
