    <style>
        /* 响应式设计CSS变量系统 */
        :root {
            /* 基础颜色变量 */
            --primary-color: #667eea;
            --secondary-color: #764ba2;
            --accent-color: #4CAF50;
            --background-color: #f8fafc;
            --surface-color: #ffffff;
            --text-primary: #1a202c;
            --text-secondary: #4a5568;
            --border-color: #e2e8f0;
            --shadow-light: rgba(0, 0, 0, 0.05);
            --shadow-medium: rgba(0, 0, 0, 0.1);
            --shadow-heavy: rgba(0, 0, 0, 0.15);
            
            /* 间距变量 */
            --spacing-xs: 4px;
            --spacing-sm: 8px;
            --spacing-md: 16px;
            --spacing-lg: 24px;
            --spacing-xl: 32px;
            --spacing-xxl: 48px;
            
            /* 字体大小变量 */
            --font-size-xs: 0.75rem;
            --font-size-sm: 0.875rem;
            --font-size-base: 1rem;
            --font-size-lg: 1.125rem;
            --font-size-xl: 1.25rem;
            --font-size-2xl: 1.5rem;
            --font-size-3xl: 1.875rem;
            
            /* 断点变量 */
            --breakpoint-sm: 640px;
            --breakpoint-md: 768px;
            --breakpoint-lg: 1024px;
            --breakpoint-xl: 1280px;
            
            /* 动画变量 */
            --transition-fast: 150ms ease-in-out;
            --transition-normal: 300ms ease-in-out;
            --transition-slow: 500ms ease-in-out;
            
            /* Z-index层级 */
            --z-dropdown: 1000;
            --z-sticky: 1020;
            --z-fixed: 1030;
            --z-modal: 1040;
            --z-popover: 1050;
            --z-tooltip: 1060;
        }
        
        /* 重置样式和基础设置 */
        * {
            box-sizing: border-box;
        }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', Arial, sans-serif;
            margin: 0;
            padding: 0;
            background: var(--background-color);
            color: var(--text-primary);
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            text-rendering: optimizeLegibility;
            overflow: hidden;
            height: 100vh;
            width: 100vw;
        }

        html {
            height: 100%;
            width: 100%;
            overflow: hidden;
        }
        
        /* 现代化响应式容器 - 100%视窗高度 */
        .app-container {
            height: 100vh;
            min-height: 100vh;
            max-height: 100vh;
            display: flex;
            flex-direction: column;
            background: var(--background-color);
            overflow: hidden;
        }

        .main-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            position: relative;
            overflow: hidden;
        }
        
        /* 响应式网格系统 */
        .grid {
            display: grid;
            gap: var(--spacing-md);
            padding: var(--spacing-md);
            max-width: 100%;
            margin: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;
        }

        @media (min-width: 768px) {
            .grid {
                padding-left: var(--spacing-md);
                padding-right: var(--spacing-md);
            }
        }

        @media (min-width: 768px) {
            .grid--desktop {
                grid-template-columns: 260px 1fr;
                align-items: stretch;
                height: 100%;
                overflow: hidden;
            }
        }

        @media (min-width: 1024px) {
            .grid--desktop {
                grid-template-columns: 280px 1fr;
                align-items: stretch;
            }
        }

        @media (min-width: 1440px) {
            .grid--desktop {
                grid-template-columns: 300px 1fr;
                align-items: stretch;
            }
        }
        
        /* 现代化响应式头部 */
        .app-header {
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
            color: white;
            padding: 0;
            position: relative;
            box-shadow: 0 2px 12px var(--shadow-medium);
            z-index: var(--z-sticky);
            transition: all var(--transition-normal);
        }
        
        .app-header__content {
            display: flex;
            flex-direction: column;
            padding-left: var(--spacing-md);
            padding-right: var(--spacing-md);
        }

        @media (min-width: 768px) {
            .app-header__content {
                display: grid;
                grid-template-columns: 260px 1fr;
                align-items: end;
                padding-left: var(--spacing-md);
                padding-right: var(--spacing-md);
            }

            .app-header__actions {
                text-align: right;
                width: auto;
                flex-direction: column;
                gap: var(--spacing-sm);
                align-items: flex-end;
                justify-self: end;
                padding-right: 48px;
            }

            .nav-links {
                margin-bottom: 0;
            }
        }

        @media (min-width: 1024px) {
            .app-header__content {
                grid-template-columns: 280px 1fr;
            }
        }

        @media (min-width: 1440px) {
            .app-header__content {
                grid-template-columns: 300px 1fr;
            }
        }
        
        .app-header__brand {
            padding: calc(var(--spacing-md) * 0.85) 0;
        }

        @media (min-width: 768px) {
            .app-header__brand {
                padding: calc(var(--spacing-lg) * 0.85) 0;
                padding-left: 48px;
                display: flex;
                flex-direction: column;
                justify-content: space-between;
            }
        }
        
        .app-header__title {
            margin: 0;
            font-size: var(--font-size-2xl);
            font-weight: 700;
            line-height: 1.2;
            letter-spacing: -0.025em;
        }
        
        @media (min-width: 768px) {
            .app-header__title {
                font-size: var(--font-size-3xl);
            }
        }
        
        .app-header__subtitle {
            margin: var(--spacing-xs) 0 0 0;
            font-size: var(--font-size-base);
            opacity: 0.9;
            font-weight: 400;
        }
        
        /* 导航链接样式 */
        .nav-links {
            display: flex;
            justify-content: flex-end;
            align-items: center;
            gap: var(--spacing-sm);
            padding: 0;
        }
        
        .nav-link {
            color: rgba(255, 255, 255, 0.8);
            text-decoration: none;
            font-size: 0.8rem;
            transition: color var(--transition-fast);
            cursor: pointer;
        }
        
        .nav-link:hover {
            color: white;
        }
        
        .nav-separator {
            color: rgba(255, 255, 255, 0.5);
            font-size: 0.7rem;
        }
        
        @media (min-width: 768px) {
            .nav-link {
                font-size: 0.85rem;
            }
            
            .nav-separator {
                font-size: 0.75rem;
            }
        }
        
        .app-header__actions {
            flex-shrink: 0;
            padding: 0;
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: var(--spacing-sm);
        }

        @media (min-width: 768px) {
            .app-header__actions {
                padding-bottom: 4px;
                padding-right: 48px;
            }
        }
        
        /* 现代化搜索组件 */
        .search-component {
            position: relative;
            width: 100%;
            max-width: 280px;
        }
        
        @media (min-width: 768px) {
            .search-component {
                max-width: 320px;
            }
        }
        
        .search-input-wrapper {
            position: relative;
            display: flex;
            align-items: center;
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 10px;
            backdrop-filter: blur(15px);
            -webkit-backdrop-filter: blur(15px);
            transition: all var(--transition-normal);
        }
        
        .search-input-wrapper:hover {
            background: rgba(255, 255, 255, 0.12);
            border-color: rgba(255, 255, 255, 0.25);
            transform: translateY(-1px);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
        }
        
        .search-input-wrapper:focus-within {
            background: rgba(255, 255, 255, 0.85);
            border-color: rgba(255, 255, 255, 0.9);
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
        }
        
        .search-input {
            flex: 1;
            background: transparent;
            border: none;
            padding: var(--spacing-sm) var(--spacing-md);
            font-size: 0.9rem;
            color: white;
            outline: none;
            placeholder-color: rgba(255, 255, 255, 0.7);
        }
        
        .search-input-wrapper:focus-within .search-input {
            color: var(--text-primary);
        }
        
        .search-input::placeholder {
            color: rgba(255, 255, 255, 0.7);
        }
        
        .search-input-wrapper:focus-within .search-input::placeholder {
            color: var(--text-secondary);
        }
        
        .search-button {
            background: transparent;
            border: none;
            padding: var(--spacing-sm);
            color: rgba(255, 255, 255, 0.8);
            cursor: pointer;
            font-size: 1rem;
            transition: all var(--transition-fast);
            border-radius: 0 10px 10px 0;
            margin-left: var(--spacing-xs);
        }
        
        .search-button:hover {
            background: rgba(255, 255, 255, 0.08);
            color: white;
            transform: scale(1.05);
        }
        
        .search-input-wrapper:focus-within .search-button {
            color: var(--primary-color);
        }
        
        /* 现代化侧边栏 - 滚动优化 */
        .sidebar {
            background: var(--surface-color);
            border-radius: 12px;
            box-shadow: 0 4px 20px var(--shadow-light);
            overflow-y: auto;
            overflow-x: hidden;
            height: 100%;
            min-height: 0;
            align-self: stretch;
            position: relative;
            top: 0;
            scrollbar-width: thin;
            scrollbar-color: var(--border-color) transparent;
        }

        /* 侧边栏滚动条样式 */
        .sidebar::-webkit-scrollbar {
            width: 6px;
        }

        .sidebar::-webkit-scrollbar-track {
            background: transparent;
        }

        .sidebar::-webkit-scrollbar-thumb {
            background: var(--border-color);
            border-radius: 3px;
            transition: background var(--transition-fast);
        }

        .sidebar::-webkit-scrollbar-thumb:hover {
            background: var(--primary-color);
        }
        
        .sidebar__section {
            padding: var(--spacing-md);
            border-bottom: 1px solid var(--border-color);
        }

        .sidebar__section:last-child {
            border-bottom: none;
        }

        .sidebar__title {
            font-size: var(--font-size-base);
            font-weight: 600;
            color: var(--text-primary);
            margin: 0 0 var(--spacing-sm) 0;
            display: flex;
            align-items: center;
            gap: var(--spacing-xs);
        }

        .sidebar__control {
            margin-bottom: var(--spacing-sm);
        }

        .sidebar__control:last-child {
            margin-bottom: 0;
        }

        .sidebar__label {
            display: block;
            font-size: var(--font-size-xs);
            font-weight: 500;
            color: var(--text-secondary);
            margin-bottom: var(--spacing-xs);
        }
        
        .sidebar__select,
        .sidebar__button {
            width: 100%;
            padding: 8px 12px;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            font-size: var(--font-size-sm);
            transition: all var(--transition-fast);
            background: var(--surface-color);
        }

        .sidebar__select:hover,
        .sidebar__button:hover {
            border-color: var(--primary-color);
            box-shadow: 0 2px 8px var(--shadow-light);
        }

        .sidebar__select:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }

        .sidebar__button {
            background: var(--primary-color);
            color: white;
            font-weight: 500;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            border: 1px solid transparent;
        }

        .sidebar__button:hover {
            background: var(--secondary-color);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px var(--shadow-medium);
        }

        .sidebar__button:active {
            transform: translateY(0);
        }

        .sidebar__button--secondary {
            background: var(--surface-color) !important;
            color: var(--text-primary) !important;
            border: 1px solid var(--border-color) !important;
        }

        .sidebar__button--secondary:hover {
            background: var(--background-color) !important;
            border-color: var(--primary-color) !important;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px var(--shadow-medium);
        }

        .sidebar__button--annotation {
            background: var(--surface-color) !important;
            color: var(--text-primary) !important;
            border: 1px solid var(--border-color) !important;
        }

        .sidebar__button--annotation:hover {
            background: var(--background-color) !important;
            border-color: var(--primary-color) !important;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px var(--shadow-medium);
        }

        .sidebar__button.active {
            background: var(--primary-color) !important;
            color: white !important;
            border: 1px solid var(--primary-color) !important;
        }

        .sidebar__button.active:hover {
            background: var(--secondary-color) !important;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px var(--shadow-medium);
        }

        .sidebar__button--small {
            padding: var(--spacing-sm) var(--spacing-md);
            font-size: var(--font-size-sm);
        }

        /* 现代化地图容器 - 参考天地图设计 */
        .map-container {
            background: var(--surface-color);
            border-radius: 12px;
            box-shadow: 0 4px 20px var(--shadow-light);
            overflow: hidden;
            position: relative;
            height: 100%;
            width: 100%;
            min-height: 0;
        }

        /* 移动端优化 */
        @media (max-width: 640px) {
            .map-container {
                min-height: 400px;
                border-radius: 8px;
            }
        }

        /* 平板设备 */
        @media (min-width: 641px) and (max-width: 1023px) {
            .map-container {
                min-height: 500px;
            }
        }

        /* 桌面设备 */
        @media (min-width: 1024px) {
            .map-container {
                min-height: 0;
                height: 100%;
            }
        }

        /* 地图来源说明 */
        .map-attribution {
            position: absolute;
            bottom: 10px;
            right: 10px;
            background: rgba(255, 255, 255, 0.85);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            padding: 6px 12px;
            border-radius: 6px;
            font-size: 11px;
            color: var(--text-secondary);
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
            line-height: 1.4;
            z-index: 1000;
            pointer-events: none;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            border: 1px solid rgba(0, 0, 0, 0.08);
            white-space: nowrap;
        }

        /* 移动端地图来源说明 */
        @media (max-width: 640px) {
            .map-attribution {
                bottom: 8px;
                right: 8px;
                padding: 5px 10px;
                font-size: 10px;
                border-radius: 4px;
            }
        }
        #map {
            width: 100%;
            height: 100%;
            border-radius: 12px;
            cursor: crosshair;
            min-height: 0;
        }

        /* 移动端地图圆角优化 */
        @media (max-width: 640px) {
            #map {
                border-radius: 8px;
                height: 400px;
            }

            /* 移动端全宽显示 */
            .grid--desktop {
                grid-template-columns: 1fr;
                overflow-y: auto;
            }

            .app-container {
                overflow-y: auto;
                height: auto;
                min-height: 100vh;
                max-height: none;
            }

            .main-content {
                overflow: visible;
            }

            .sidebar {
                position: relative;
                top: 0;
                margin-bottom: var(--spacing-md);
                height: auto;
                min-height: auto;
                overflow: visible;
            }

            .map-container {
                height: 400px;
                min-height: 400px;
            }
        }

        /* 平板设备 */
        @media (min-width: 641px) and (max-width: 1023px) {
            .grid--desktop {
                grid-template-columns: 200px 1fr;
            }

            .sidebar__section {
                padding: var(--spacing-sm);
            }

            .sidebar__title {
                font-size: var(--font-size-sm);
            }

            .sidebar__button {
                padding: 6px 10px;
                font-size: var(--font-size-xs);
            }

            .map-container {
                min-height: 500px;
            }
        }

        /* 地图加载动画 */
        .map-loading {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 1000;
            background: rgba(255, 255, 255, 0.95);
            padding: 20px 40px;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            font-size: 14px;
            color: var(--text-primary);
        }

        .map-loading::after {
            content: '';
            display: inline-block;
            width: 16px;
            height: 16px;
            margin-left: 10px;
            border: 2px solid var(--primary-color);
            border-radius: 50%;
            border-top-color: transparent;
            animation: mapSpin 0.8s linear infinite;
        }

        @keyframes mapSpin {
            to { transform: rotate(360deg); }
        }

        /* 数据统计面板样式 */
        .stats-container {
            display: flex;
            flex-direction: column;
            gap: var(--spacing-md);
        }

        .stat-item {
            display: flex;
            align-items: center;
            padding: var(--spacing-sm) var(--spacing-md);
            border-radius: 8px;
            background: var(--background-color);
        }

        .stat-content {
            flex: 1;
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
        }

        .stat-label {
            font-size: var(--font-size-sm);
            color: var(--text-secondary);
            font-weight: 500;
        }

        .stat-value {
            font-size: var(--font-size-xl);
            font-weight: 700;
            color: var(--text-primary);
            line-height: 1.2;
        }

        .stat-item--online .stat-value {
            color: #4CAF50;
        }

        .stat-item--total .stat-value {
            color: var(--primary-color);
        }

        .stat-item--users .stat-value {
            color: #FF9800;
        }

        /* 移动端适配 */
        @media (max-width: 640px) {
            .stat-content {
                flex-direction: column;
                align-items: flex-start;
                gap: 4px;
            }

            .stat-value {
                font-size: var(--font-size-lg);
            }
        }

        /* 地图控制按钮样式优化 */
        .leaflet-control-zoom {
            border: 2px solid #fff;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
            border-radius: 6px !important;
            transition: all 0.2s ease-in-out;
        }

        .leaflet-control-zoom a {
            background-color: #fff !important;
            color: #333 !important;
            border: none !important;
            width: 32px !important;
            height: 32px !important;
            line-height: 32px !important;
            font-size: 18px !important;
            cursor: pointer;
            transition: all 0.2s ease-in-out;
        }

        .leaflet-control-zoom a:hover {
            background-color: var(--primary-color) !important;
            color: #fff !important;
            transform: scale(1.05);
        }

        .leaflet-control-zoom a:active {
            transform: scale(0.95);
        }

        /* 优化地图容器，提升交互流畅度 */
        .leaflet-container {
            cursor: grab;
            -webkit-touch-callout: none;
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
        }

        .leaflet-container:active {
            cursor: grabbing;
        }

        /* 优化地图图层的加载性能 */
        .leaflet-tile-container {
            will-change: transform;
        }

        /* 比例尺样式优化 */
        .leaflet-control-scale {
            background: rgba(255, 255, 255, 0.9);
            padding: 4px 8px;
            border-radius: 4px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        /* 自定义缩放控制按钮样式 */
        .custom-zoom-control {
            display: flex;
            flex-direction: column;
            gap: 2px;
            background: white;
            border: 2px solid #fff;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
            overflow: hidden;
        }

        .custom-zoom-control button {
            width: 36px;
            height: 36px;
            background: white;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            font-weight: bold;
            color: #333;
            transition: all 0.2s ease-in-out;
            outline: none;
            padding: 0;
            margin: 0;
            line-height: 1;
        }

        .custom-zoom-control button:hover:not(.disabled) {
            background-color: var(--primary-color);
            color: white;
            transform: scale(1.05);
        }

        .custom-zoom-control button:active:not(.disabled) {
            background-color: var(--secondary-color);
            color: white;
            transform: scale(0.95);
        }

        .custom-zoom-control button.disabled {
            opacity: 0.4;
            cursor: not-allowed;
            background-color: #f5f5f5;
            color: #999;
        }

        .custom-zoom-control button.disabled:hover {
            background-color: #f5f5f5;
            color: #999;
            transform: none;
        }

        .custom-zoom-control .zoom-in-button {
            border-bottom: 1px solid #e0e0e0;
            border-radius: 6px 6px 0 0;
        }

        .custom-zoom-control .zoom-out-button {
            border-radius: 0 0 6px 6px;
        }

        /* 移动端适配 */
        @media (max-width: 640px) {
            .custom-zoom-control button {
                width: 32px;
                height: 32px;
                font-size: 18px;
            }
        }

        /* 地图右上角功能按钮组 - 参考天地图设计 */
        .map-toolbar {
            position: absolute;
            top: 20px;
            right: 20px;
            z-index: 1000;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .map-toolbar-button {
            width: 40px;
            height: 40px;
            background: white;
            border: 1px solid #d0d7de;
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
            transition: all 0.2s ease;
            font-size: 18px;
            color: #333;
        }

        .map-toolbar-button:hover {
            background: #f5f7fa;
            border-color: #667eea;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
        }

        .map-toolbar-button:active {
            background: #e8ecf3;
            transform: translateY(1px);
        }

        .map-toolbar-button.active {
            background: #667eea;
            border-color: #667eea;
            color: white;
        }

        .map-toolbar-button.active svg {
            fill: white;
        }

        .map-toolbar-button svg {
            width: 20px;
            height: 20px;
            fill: currentColor;
        }

        /* 全屏模式 */
        .map-container.fullscreen {
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            width: 100vw !important;
            height: 100vh !important;
            z-index: 9999 !important;
            border-radius: 0 !important;
            margin: 0 !important;
        }

        .map-container.fullscreen #map {
            border-radius: 0 !important;
        }
        
        /* 搜索建议 */
        .search-suggestions {
            position: absolute;
            top: calc(100% + var(--spacing-sm));
            left: 0;
            right: 0;
            background: #ffffff;
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            max-height: 300px;
            overflow-y: auto;
            z-index: var(--z-dropdown);
            opacity: 0;
            transform: translateY(-10px);
            transition: all var(--transition-normal);
            display: none;
        }
        
        .search-suggestions--visible {
            opacity: 1;
            transform: translateY(0);
            display: block;
        }
        
        .search-suggestion-item {
            padding: var(--spacing-md);
            border-bottom: 1px solid #f0f0f0;
            cursor: pointer;
            transition: all var(--transition-fast);
            display: flex;
            align-items: center;
            gap: var(--spacing-md);
            color: #1a202c;
            background: #ffffff;
        }
        
        .search-suggestion-item:hover {
            background: #f8fafc;
            transform: translateX(var(--spacing-xs));
        }
        
        /* 模态框样式 */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: var(--z-modal);
            justify-content: center;
            align-items: center;
        }

        .modal--visible {
            display: flex;
        }

        .modal__content {
            background: var(--surface-color);
            padding: var(--spacing-xl);
            border-radius: var(--border-radius-lg, 12px);
            width: 90%;
            max-width: 600px;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: var(--shadow-heavy);
        }

        .modal__header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: var(--spacing-lg);
            padding-bottom: var(--spacing-md);
            border-bottom: 1px solid var(--border-color);
        }

        .modal__title {
            margin: 0;
            font-size: var(--font-size-xl);
            font-weight: 600;
            color: var(--text-primary);
        }

        .modal__close {
            background: none;
            border: none;
            font-size: var(--font-size-2xl);
            color: var(--text-secondary);
            cursor: pointer;
            padding: var(--spacing-xs);
            line-height: 1;
            transition: color var(--transition-fast);
        }

        .modal__close:hover {
            color: var(--text-primary);
        }
        
        /* 表单样式 */
        .form-group {
            margin-bottom: 20px;
        }

        .form-section {
            margin-bottom: 28px;
        }

        /* 自定义标记样式 */
        .custom-marker-icon {
            background: transparent;
            border: none;
        }

        /* 标记悬停tooltip样式 */
        .marker-tooltip {
            background: white;
            color: #333;
            padding: 10px 14px;
            border-radius: 8px;
            font-size: 12px;
            font-weight: 500;
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
            max-width: 220px;
            border: 1px solid rgba(0, 0, 0, 0.08);
            line-height: 1.5;
            animation: tooltipFadeIn 0.2s ease-out;
        }

        /* 自定义tooltip类 */
        .leaflet-tooltip.custom-tooltip {
            background: transparent;
            border: none;
            box-shadow: none;
        }

        /* 省份边界工具提示 */
        .leaflet-tooltip.province-boundary-tooltip {
            background: rgba(229, 57, 53, 0.95);
            border: 2px solid #E53935;
            border-radius: 4px;
            color: white;
            font-weight: 600;
            font-size: 14px;
            padding: 8px 12px;
            box-shadow: 0 4px 12px rgba(229, 57, 53, 0.4);
        }

        /* 城市边界工具提示 */
        .leaflet-tooltip.city-boundary-tooltip {
            background: rgba(33, 150, 243, 0.95);
            border: 2px solid #2196F3;
            border-radius: 4px;
            color: white;
            font-weight: 600;
            font-size: 14px;
            padding: 8px 12px;
            box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
        }

        /* 边界工具提示箭头颜色 */
        .leaflet-tooltip.province-boundary-tooltip:before {
            border-top-color: #E53935 !important;
        }
        .leaflet-tooltip.bottom.province-boundary-tooltip:before {
            border-bottom-color: #E53935 !important;
        }
        .leaflet-tooltip.left.province-boundary-tooltip:before {
            border-left-color: #E53935 !important;
        }
        .leaflet-tooltip.right.province-boundary-tooltip:before {
            border-right-color: #E53935 !important;
        }

        .leaflet-tooltip.city-boundary-tooltip:before {
            border-top-color: #2196F3 !important;
        }
        .leaflet-tooltip.bottom.city-boundary-tooltip:before {
            border-bottom-color: #2196F3 !important;
        }
        .leaflet-tooltip.left.city-boundary-tooltip:before {
            border-left-color: #2196F3 !important;
        }
        .leaflet-tooltip.right.city-boundary-tooltip:before {
            border-right-color: #2196F3 !important;
        }

        /* Tooltip动画 */
        @keyframes tooltipFadeIn {
            from {
                opacity: 0;
                transform: translateY(-8px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* popup按钮样式 */
        .popup-button {
            margin: 5px 3px;
            padding: 4px 10px;
            font-size: 11px;
            border: none;
            border-radius: 3px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .popup-button-edit {
            background: #667eea;
            color: white;
        }

        .popup-button-edit:hover {
            background: #5a6fd6;
        }

        .popup-button-delete {
            background: #e74c3c;
            color: white;
        }

        .popup-button-delete:hover {
            background: #c0392b;
        }

        .form-group__label {
            display: block;
            margin-bottom: var(--spacing-xs);
            font-weight: 500;
            font-size: var(--font-size-sm);
            color: var(--text-primary);
            line-height: 1.5;
        }

        .form-control {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid var(--border-color);
            border-radius: var(--border-radius-sm, 4px);
            font-size: var(--font-size-base);
            transition: all var(--transition-fast);
            background: var(--surface-color);
            line-height: 1.5;
        }

        .form-control:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }

        textarea.form-control {
            resize: vertical;
            min-height: 100px;
            font-family: inherit;
        }

        /* 景点信息卡片 */
        .spot-info {
            padding: var(--spacing-md);
            border-left: 4px solid var(--primary-color);
            margin-bottom: var(--spacing-md);
            background: var(--background-color);
            border-radius: var(--border-radius-sm, 4px);
            transition: transform var(--transition-fast);
        }

        .spot-info:hover {
            transform: translateX(4px);
        }

        .spot-info__title {
            margin: 0 0 var(--spacing-xs) 0;
            font-size: var(--font-size-lg);
            font-weight: 600;
            color: var(--text-primary);
        }

        .spot-info__detail {
            margin: var(--spacing-xs) 0;
            font-size: var(--font-size-sm);
            color: var(--text-secondary);
            line-height: 1.5;
        }

        /* Toast 通知 */
        .toast-notification {
            position: fixed;
            top: 20px;
            right: 20px;
            padding: 16px 24px;
            border-radius: 8px;
            background: white;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            display: flex;
            align-items: center;
            gap: 12px;
            z-index: 10000;
            animation: slideInRight 0.3s ease;
            max-width: 400px;
        }

        .toast-notification.toast-success {
            border-left: 4px solid #27ae60;
        }

        .toast-notification.toast-error {
            border-left: 4px solid #e74c3c;
        }

        .toast-notification.toast-warning {
            border-left: 4px solid #f39c12;
        }

        .toast-notification.toast-info {
            border-left: 4px solid #3498db;
        }

        @keyframes slideInRight {
            from {
                transform: translateX(400px);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

        /* 响应式设计 */
        @media (max-width: 768px) {
            html, body {
                overflow: auto;
                height: auto;
                min-height: 100vh;
            }

            .app-container {
                height: auto;
                min-height: 100vh;
                max-height: none;
                overflow: visible;
            }

            .main-content {
                overflow: visible;
            }

            .header-content {
                flex-direction: column;
                align-items: center;
            }

            .header-text {
                text-align: center;
                padding-right: 0;
                margin-bottom: 10px;
            }

            .app-header__actions {
                align-items: center;
                width: 100%;
            }

            .nav-links {
                justify-content: center;
                width: 100%;
                margin-bottom: var(--spacing-sm);
            }

            .search-component {
                width: 100%;
                max-width: 100%;
            }

            .app-header__title {
                font-size: 1.4em;
            }
        }

        /* 高级搜索样式 */
        .modal__content--large {
            max-width: 520px; /* 原尺寸800px的65% */
        }

        /* 行政区划选择弹窗样式 */
        .modal__content--medium {
            max-width: 390px; /* 原尺寸600px的65% */
        }

        /* 桌面端弹窗位置调整 - 与侧边栏对齐 */
        @media (min-width: 1024px) {
            .modal__content--large,
            .modal__content--medium {
                position: fixed;
                left: 280px; /* 与侧边栏相邻 */
                top: 64px; /* 与头部对齐 */
                transform: none;
                width: auto;
            }
        }

        @media (min-width: 1440px) {
            .modal__content--large,
            .modal__content--medium {
                left: 300px; /* 与更宽的侧边栏相邻 */
            }
        }

        .search-condition {
            margin-bottom: 24px;
            padding-bottom: 24px;
            border-bottom: 1px solid var(--border-color);
        }

        .search-condition:last-child {
            border-bottom: none;
            margin-bottom: 0;
            padding-bottom: 0;
        }

        .condition-checkbox {
            display: flex;
            align-items: center;
            gap: 12px;
            cursor: pointer;
            padding: 12px;
            background: var(--background-color);
            border-radius: 8px;
            transition: all var(--transition-fast);
        }

        .condition-checkbox:hover {
            background: #e2e8f0;
        }

        .condition-checkbox input[type="checkbox"] {
            width: 20px;
            height: 20px;
            cursor: pointer;
        }

        .checkbox-label {
            font-weight: 600;
            font-size: 1.1em;
            color: var(--text-primary);
        }

        .condition-content {
            margin-top: 16px;
            padding-left: 32px;
        }

        /* 行政区划选择器 */
        .region-selector {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;
            margin-bottom: 12px;
        }

        @media (max-width: 600px) {
            .region-selector {
                grid-template-columns: 1fr;
            }
        }

        .selected-regions {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 12px;
        }

        .region-tag {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 12px;
            background: var(--primary-color);
            color: white;
            border-radius: 20px;
            font-size: 0.85em;
        }

        .region-tag .remove-tag {
            cursor: pointer;
            font-weight: bold;
        }

        .region-tag .remove-tag:hover {
            color: #ffebee;
        }

        /* 逻辑选择器 */
        .logic-selector {
            display: flex;
            gap: 16px;
            margin-bottom: 16px;
            padding: 12px;
            background: var(--background-color);
            border-radius: 8px;
        }

        .radio-label {
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
        }

        .radio-label input[type="radio"] {
            cursor: pointer;
        }

        /* 复选框网格 */
        .checkbox-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
            gap: 10px;
        }

        .checkbox-grid label {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px 14px;
            background: white;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            cursor: pointer;
            transition: all var(--transition-fast);
            font-size: var(--font-size-sm);
            line-height: 1.5;
        }

        .checkbox-grid label:hover {
            border-color: var(--primary-color);
            background: var(--background-color);
        }

        .checkbox-grid label input[type="checkbox"] {
            cursor: pointer;
            width: 18px;
            height: 18px;
            flex-shrink: 0;
        }

        .help-text {
            font-size: 0.85em;
            color: var(--text-secondary);
            margin-top: 8px;
            margin-bottom: 0;
        }

        /* 表单区块样式 */
        .form-section {
            padding: 16px 0;
            border-bottom: 1px solid var(--border-color);
        }

        .form-section:last-child {
            border-bottom: none;
        }

        .form-section__title {
            font-size: 1em;
            font-weight: 600;
            color: var(--text-primary);
            margin: 0 0 16px 0;
            padding-bottom: 8px;
            border-bottom: 2px solid var(--border-color);
            letter-spacing: 0.5px;
        }

        /* 图片上传区域 */
        .photo-upload-area {
            position: relative;
            border: 2px dashed var(--border-color);
            border-radius: 8px;
            padding: 40px 20px;
            text-align: center;
            cursor: pointer;
            transition: all var(--transition-fast);
            background: var(--background-color);
        }

        .photo-upload-area:hover {
            border-color: var(--primary-color);
            background: rgba(102, 126, 234, 0.05);
        }

        .photo-input {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            cursor: pointer;
        }

        .photo-upload-label {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 12px;
            pointer-events: none;
        }

        .photo-upload-icon {
            font-size: 48px;
            color: var(--primary-color);
            font-weight: 300;
        }

        .photo-upload-text {
            font-size: 0.9em;
            color: var(--text-secondary);
        }

        /* 错误提示样式 */
        .error-message {
            color: #dc3545;
            font-size: 0.85rem;
            margin-top: 6px;
            display: none;
            font-weight: 500;
        }

        .error-message.show {
            display: block;
            animation: slideDown 0.2s ease-out;
        }

        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-5px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .form-control.error {
            border-color: #dc3545 !important;
            box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15) !important;
        }

        .photo-upload-area.error {
            border-color: #dc3545 !important;
            background: rgba(220, 53, 69, 0.05) !important;
        }

        .checkbox-grid.error {
            border: 2px solid #dc3545;
            padding: 14px;
            border-radius: 6px;
            background: rgba(220, 53, 69, 0.05);
        }

        /* 红色闪烁动画 */
        @keyframes flashRed {
            0%, 100% {
                border-color: #dc3545 !important;
                background: rgba(220, 53, 69, 0.05) !important;
            }
            50% {
                border-color: #ff6b6b !important;
                background: rgba(220, 53, 69, 0.15) !important;
            }
        }

        button:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .photo-preview {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
            gap: 12px;
            margin-top: 16px;
        }

        .photo-preview-item {
            position: relative;
            aspect-ratio: 1;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 8px var(--shadow-light);
        }

        .photo-preview-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .photo-preview-item .remove-photo {
            position: absolute;
            top: 4px;
            right: 4px;
            width: 24px;
            height: 24px;
            background: rgba(220, 53, 69, 0.9);
            color: white;
            border: none;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            opacity: 0;
            transition: opacity var(--transition-fast);
        }

        .photo-preview-item:hover .remove-photo {
            opacity: 1;
        }

        .form-footer {
            margin-top: 24px;
            padding-top: 24px;
            border-top: 1px solid var(--border-color);
        }

        .modal--large .modal__content {
            max-width: 900px;
        }

        .modal__content--large {
            max-width: 900px;
        }

        .modal__footer {
            display: flex;
            justify-content: flex-end;
            gap: 12px;
            margin-top: 24px;
            padding-top: 24px;
            border-top: 1px solid var(--border-color);
        }

        /* 旋转加载动画 */
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* 自定义红色标记样式 */
        .custom-red-marker {
            filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
            cursor: move;
            transition: transform 0.2s ease;
        }

        .custom-red-marker:hover {
            transform: scale(1.1);
            filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
        }

        .custom-red-marker:active {
            transform: scale(0.95);
        }

        /* 自定义景点弹窗样式 */
        .custom-popup .leaflet-popup-content-wrapper {
            border-radius: 12px;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
            overflow: hidden;
        }

        .custom-popup .leaflet-popup-content {
            margin: 0;
            padding: 0;
            min-width: 280px;
            max-width: 400px;
            max-height: 400px;
            overflow-y: auto;
            overflow-x: hidden;
            /* 平滑滚动 */
            scroll-behavior: smooth;
            /* 触摸设备优化 */
            -webkit-overflow-scrolling: touch;
            /* 防止iOS橡皮筋效果 */
            overscroll-behavior: contain;
        }

        /* 自定义滚动条样式 */
        .custom-popup .leaflet-popup-content::-webkit-scrollbar {
            width: 8px;
        }

        .custom-popup .leaflet-popup-content::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 4px;
        }

        .custom-popup .leaflet-popup-content::-webkit-scrollbar-thumb {
            background: #c1c1c1;
            border-radius: 4px;
            transition: background 0.3s ease;
        }

        .custom-popup .leaflet-popup-content::-webkit-scrollbar-thumb:hover {
            background: #a1a1a1;
        }

        .custom-popup .leaflet-popup-content::-webkit-scrollbar-thumb:active {
            background: #818181;
        }

        /* Firefox滚动条样式 */
        .custom-popup .leaflet-popup-content {
            scrollbar-width: thin;
            scrollbar-color: #c1c1c1 #f1f1f1;
        }

        /* 移动端优化：隐藏滚动条但保持可滚动 */
        @media (max-width: 768px) {
            .custom-popup .leaflet-popup-content::-webkit-scrollbar {
                width: 4px;
            }
        }

        .spot-popup {
            padding: 16px;
            font-size: 14px;
            line-height: 1.6;
        }

        .spot-popup__title {
            margin: 0 0 10px 0;
            padding: 0;
            font-size: 16px;
            font-weight: 600;
            color: #667eea;
            line-height: 1.4;
            word-wrap: break-word;
            word-break: break-word;
        }

        .spot-popup__type {
            margin: 6px 0;
            padding: 0;
            font-size: 13px;
            color: #666;
            line-height: 1.5;
            word-wrap: break-word;
            word-break: break-word;
        }

        .spot-popup__desc {
            margin: 10px 0;
            padding: 0;
            font-size: 13px;
            color: #555;
            line-height: 1.6;
            word-wrap: break-word;
            word-break: break-word;
            max-width: 100%;
            overflow-wrap: break-word;
        }

        .leaflet-popup-close-button {
            top: 8px;
            right: 8px;
            font-size: 20px;
            color: #666;
        }

        .leaflet-popup-close-button:hover {
            color: #333;
        }

        /* 弹窗照片样式 */
        .spot-popup img {
            max-width: 100%;
            height: auto;
            display: block;
            margin-top: 8px;
            border-radius: 6px;
            cursor: pointer;
            transition: transform 0.2s ease;
        }

        .spot-popup img:hover {
            transform: scale(1.02);
        }

        /* Leaflet popup关闭按钮优化 */
        .leaflet-popup-close-button {
            top: 10px !important;
            right: 10px !important;
            width: 28px !important;
            height: 28px !important;
            line-height: 28px !important;
            font-size: 22px !important;
            color: #666 !important;
            transition: all 0.2s ease;
        }

        .leaflet-popup-close-button:hover {
            color: #333 !important;
            transform: rotate(90deg);
        }

        /* 搜索结果弹窗样式 */
        .search-results-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: var(--z-modal);
            display: none;
            justify-content: center;
            align-items: center;
            animation: fadeIn 0.3s ease;
        }

        .search-results-modal--visible {
            display: flex;
        }

        .search-results-modal__content {
            background: var(--surface-color);
            border-radius: var(--border-radius-lg, 12px);
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
            width: 90%;
            max-width: 600px;
            max-height: 80vh;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            transition: transform 0.1s ease-out;
        }

        .search-results-modal__header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: var(--spacing-lg);
            border-bottom: 1px solid var(--border-color);
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
            color: white;
            user-select: none;
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
        }

        .search-results-modal__title {
            margin: 0;
            font-size: var(--font-size-lg);
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: var(--spacing-md);
        }

        .search-results-modal__count {
            background: rgba(255, 255, 255, 0.2);
            padding: 2px 12px;
            border-radius: 12px;
            font-size: 0.85em;
        }

        .search-results-modal__close {
            background: none;
            border: none;
            color: white;
            font-size: 28px;
            cursor: pointer;
            padding: var(--spacing-xs);
            line-height: 1;
            transition: transform var(--transition-fast);
        }

        .search-results-modal__close:hover {
            transform: rotate(90deg);
        }

        .search-results-modal__list {
            padding: var(--spacing-md);
            overflow-y: auto;
            flex: 1;
            max-height: calc(80vh - 80px);
        }

        .search-result-item {
            padding: var(--spacing-md);
            border: 1px solid var(--border-color);
            border-radius: var(--border-radius-md, 6px);
            margin-bottom: var(--spacing-md);
            cursor: pointer;
            transition: all var(--transition-fast);
            background: var(--surface-color);
        }

        .search-result-item:hover {
            background: var(--background-color);
            border-color: var(--primary-color);
            box-shadow: 0 4px 12px var(--shadow-light);
            transform: translateY(-2px);
        }

        .search-result-item__header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: var(--spacing-sm);
        }

        .search-result-item__name {
            font-size: var(--font-size-base);
            font-weight: 600;
            color: var(--text-primary);
        }

        .search-result-item__index {
            background: var(--primary-color);
            color: white;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: 600;
        }

        .search-result-item__location {
            font-size: var(--font-size-sm);
            color: var(--text-secondary);
            margin-bottom: var(--spacing-sm);
        }

        .search-result-item__owner {
            font-size: var(--font-size-sm);
            color: var(--text-secondary);
            margin-bottom: var(--spacing-sm);
            display: flex;
            align-items: center;
        }

        .search-result-item__desc {
            font-size: var(--font-size-sm);
            color: var(--text-secondary);
            line-height: 1.6;
            margin-bottom: var(--spacing-sm);
        }

        .search-result-item__badges {
            display: flex;
            gap: var(--spacing-sm);
            flex-wrap: wrap;
        }

        .search-result-item__badge {
            padding: 4px 10px;
            border-radius: 12px;
            font-size: var(--font-size-xs);
            font-weight: 500;
            background: var(--background-color);
            color: var(--text-secondary);
        }

        .search-result-item__badge--level {
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
            color: white;
        }

        /* 搜索标记样式 */
        .custom-search-marker {
            filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
            cursor: pointer;
        }

        .search-marker-icon {
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--primary-color);
            color: white;
            border-radius: 50%;
            font-size: 16px;
            box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
        }

        /* 搜索结果弹窗内容样式 */
        .search-popup {
            padding: var(--spacing-md);
        }

        .search-popup__title {
            font-size: var(--font-size-base);
            font-weight: 600;
            color: var(--primary-color);
            margin-bottom: var(--spacing-sm);
        }

        .search-popup__location {
            font-size: var(--font-size-sm);
            color: var(--text-secondary);
            margin-bottom: var(--spacing-sm);
        }

        .search-popup__owner {
            font-size: var(--font-size-sm);
            color: var(--text-secondary);
            margin-bottom: var(--spacing-sm);
            display: flex;
            align-items: center;
        }

        .search-popup__desc {
            font-size: var(--font-size-sm);
            color: var(--text-secondary);
            line-height: 1.6;
            margin-bottom: var(--spacing-sm);
        }

        .search-popup__meta {
            display: flex;
            gap: var(--spacing-sm);
            flex-wrap: wrap;
        }

        .search-popup__badge {
            padding: 4px 10px;
            border-radius: 12px;
            font-size: var(--font-size-xs);
            font-weight: 500;
        }

        .search-popup__badge--level {
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
            color: white;
        }

        /* 响应式设计 - 搜索结果弹窗 */
        @media (max-width: 768px) {
            .search-results-modal__content {
                width: 95%;
                max-height: 85vh;
            }

            .search-results-modal__list {
                max-height: calc(85vh - 80px);
            }

            .search-result-item {
                padding: var(--spacing-sm);
            }
        }
    </style>
