/* CSS变量定义 */
:root {
    /* 浅色模式 */
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --navbar-bg: rgba(255, 255, 255, 0.1);
    --sidebar-bg: rgba(255, 255, 255, 0.1);
    --text-color: white;
    --border-color: rgba(255, 255, 255, 0.2);
    --item-bg: rgba(255, 255, 255, 0.1);
    --item-hover-bg: rgba(255, 255, 255, 0.15);
    --item-selected-bg: rgba(255, 255, 255, 0.2);
    --map-bg: rgba(255, 255, 255, 0.05);
    --map-container-bg: linear-gradient(45deg, rgba(255, 255, 255, 0.02) 25%, transparent 25%), linear-gradient(-45deg, rgba(255, 255, 255, 0.02) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.02) 75%), linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.02) 75%);
    --map-canvas-bg: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    --point-bg: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    --modal-bg: rgba(255, 255, 255, 0.95);
    --modal-text: #374151;
    --input-bg: rgba(255, 255, 255, 0.8);
    --input-border: #e5e7eb;
    --input-focus-border: #3b82f6;
}

/* 深色模式 */
body.dark-mode {
    --bg-gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --navbar-bg: rgba(0, 0, 0, 0.3);
    --sidebar-bg: rgba(0, 0, 0, 0.3);
    --text-color: #e2e8f0;
    --border-color: rgba(255, 255, 255, 0.1);
    --item-bg: rgba(255, 255, 255, 0.05);
    --item-hover-bg: rgba(255, 255, 255, 0.1);
    --item-selected-bg: rgba(255, 255, 255, 0.15);
    --map-bg: rgba(0, 0, 0, 0.2);
    --map-container-bg: linear-gradient(45deg, rgba(255, 255, 255, 0.01) 25%, transparent 25%), linear-gradient(-45deg, rgba(255, 255, 255, 0.01) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.01) 75%), linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.01) 75%);
    --map-canvas-bg: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    --point-bg: linear-gradient(135deg, #334155 0%, #1e293b 100%);
    --modal-bg: rgba(30, 41, 59, 0.95);
    --modal-text: #e2e8f0;
    --input-bg: rgba(51, 65, 85, 0.8);
    --input-border: #475569;
    --input-focus-border: #60a5fa;
}

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-gradient);
    height: 100vh;
    overflow: hidden;
    display: grid;
    grid-template-areas: 
        "navbar navbar"
        "sidebar main";
    grid-template-rows: 70px 1fr;
    grid-template-columns: 300px 1fr;
    transition: all 0.3s ease;
}

body.sidebar-collapsed {
    grid-template-columns: 60px 1fr;
}

/* 顶部导航栏样式 */
.top-navbar {
    grid-area: navbar;
    background: var(--navbar-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 6px 16px;
    color: var(--text-color);
    z-index: 1000;
    min-height: 56px;
}

/* 大屏幕到中等屏幕的过渡优化 */
@media (max-width: 1200px) {
    .navbar-brand h1 {
        font-size: 18px;
    }
    
    .navbar-map-selector {
        margin-left: 16px;
    }
    
    .navbar-toolbar {
        gap: 6px 8px;
        margin-right: 16px;
    }
    
    .navbar-toolbar .btn {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .map-selector {
        min-width: 110px;
        padding: 6px 10px;
        font-size: 13px;
    }
}

/* 中等屏幕优化 */
@media (max-width: 1024px) {
    .top-navbar {
        min-height: 60px;
        padding: 6px 12px;
        flex-wrap: wrap;
    }
    
    .navbar-brand h1 {
        font-size: 16px;
    }
    
    .navbar-map-selector {
        margin-left: 12px;
    }
    
    .navbar-toolbar {
        gap: 4px 6px;
        margin-right: 12px;
        flex-wrap: wrap;
    }
    
    .navbar-toolbar .btn {
        padding: 5px 8px;
        font-size: 10px;
        height: 32px;
        max-height: 32px;
    }
    
    .navbar-toolbar .btn span {
        font-size: 12px;
    }
    
    .map-selector {
        min-width: 100px;
        padding: 5px 8px;
        font-size: 12px;
    }
    
    .map-selector-label {
        font-size: 12px;
    }
}

/* 小平板和大手机横屏优化 */
@media (max-width: 900px) {
    .top-navbar {
        min-height: 70px;
        padding: 4px 8px;
    }
    
    .navbar-brand h1 {
        font-size: 14px;
    }
    
    .navbar-map-selector {
        margin-left: 8px;
        order: 3;
        margin-top: 4px;
    }
    
    .navbar-toolbar {
        order: 2;
        margin-right: 8px;
        margin-left: auto;
        gap: 3px 4px;
    }
    
    .navbar-toolbar .btn {
        padding: 4px 6px;
        font-size: 9px;
        height: 28px;
        max-height: 28px;
    }
    
    .navbar-toolbar .btn span {
        font-size: 11px;
    }
    
    .map-selector {
        min-width: 90px;
        padding: 4px 6px;
        font-size: 11px;
    }
    
    .map-selector-label {
        font-size: 11px;
    }
    
    /* 简化下拉菜单文本 */
    .dropdown-item {
        padding: 8px 12px;
        font-size: 11px;
    }
}

.navbar-brand h1 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 桌面端控制行容器样式 */
.navbar-controls-row {
    display: contents; /* 在桌面端保持原有布局 */
}

.navbar-map-selector {
    display: flex;
    align-items: center;
    margin-left: 24px;
}

.map-selector-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-selector-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    white-space: nowrap;
}

/* 自定义地图选择器 */
.custom-map-selector {
    position: relative;
    min-width: 120px;
}

.map-selector-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-color);
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    gap: 8px;
}

.map-selector-button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.map-selector-button:active {
    transform: translateY(0);
}

.map-selector-text {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.map-selector-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
    color: rgba(255, 255, 255, 0.7);
}

.custom-map-selector.active .map-selector-arrow {
    transform: rotate(180deg);
}

.map-selector-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(20px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 4px;
    overflow: hidden;
}

.custom-map-selector.active .map-selector-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.map-selector-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #1f2937;
    font-weight: 500;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.map-selector-option:last-child {
    border-bottom: none;
}

.map-selector-option:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #1f2937;
}

.map-selector-option.selected {
    background: rgba(59, 130, 246, 0.15);
    color: #1f2937;
    font-weight: 600;
}

.map-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.map-name {
    font-size: 14px;
}

/* 深色模式下的自定义地图选择器样式 */
body.dark-mode .map-selector-button {
    background: rgba(51, 65, 85, 0.6);
    border-color: rgba(148, 163, 184, 0.3);
}

body.dark-mode .map-selector-button:hover {
    background: rgba(51, 65, 85, 0.8);
    border-color: rgba(148, 163, 184, 0.4);
}

body.dark-mode .map-selector-arrow {
    color: rgba(148, 163, 184, 0.7);
}

body.dark-mode .map-selector-dropdown {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(148, 163, 184, 0.2);
}

body.dark-mode .map-selector-option {
    color: #e2e8f0;
    border-bottom-color: rgba(148, 163, 184, 0.1);
}

body.dark-mode .map-selector-option:hover {
    background: rgba(96, 165, 250, 0.15);
    color: #e2e8f0;
}

body.dark-mode .map-selector-option.selected {
    background: rgba(96, 165, 250, 0.2);
    color: #e2e8f0;
}

.navbar-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin-left: auto;
    margin-right: 24px;
    align-items: center;
}

/* 让按钮在工具栏内可缩放，避免溢出 */
.navbar-toolbar .btn {
    height: 36px;
    max-height: 36px;
    padding: 6px 12px;
    font-size: 12px;
}

/* 保持图标尺寸一致 */
.navbar-toolbar .btn span {
    font-size: 14px;
}

/* 工具组样式 */
.toolbar-group {
    display: flex;
    align-items: center;
    position: relative;
}

.toolbar-group .btn {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}

.toolbar-group .dropdown .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 8px;
    min-width: auto;
}

/* 下拉菜单样式 */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    position: relative;
}

.dropdown-arrow {
    font-size: 10px;
    margin-left: 4px;
    transition: transform 0.2s ease;
}

.dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(20px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 180px;
    margin-top: 4px;
}

.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: transparent;
    color: #1f2937;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    border-radius: 0;
}

.dropdown-item:first-child {
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
}

.dropdown-item:last-child {
    border-bottom-left-radius: 7px;
    border-bottom-right-radius: 7px;
}

.dropdown-item:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #1f2937;
    transform: none;
    box-shadow: none;
}

.dropdown-item span {
    font-size: 14px;
}

/* 深色模式下的下拉菜单 */
body.dark-mode .dropdown-menu {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(148, 163, 184, 0.2);
}

body.dark-mode .dropdown-item {
    color: #e2e8f0;
}

body.dark-mode .dropdown-item:hover {
    background: rgba(51, 65, 85, 0.6);
    color: #e2e8f0;
}

.navbar-status {
    font-size: 14px;
    font-weight: 500;
}

/* 按钮样式 */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    min-width: 80px;
    max-height: 40px;
    box-sizing: border-box;
}

.btn span {
    font-size: 16px;
}

.btn.active {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
    transform: translateY(-2px);
}

/* 左侧边栏样式 */
.left-sidebar {
    grid-area: sidebar;
    background: var(--sidebar-bg);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    color: var(--text-color);
    transition: all 0.3s ease;
    overflow: hidden;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.sidebar-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.sidebar-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 搜索容器样式 */
.search-container {
    padding: 12px 10px 8px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.search-input-wrapper:focus-within {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.search-icon {
    padding: 8px 0 8px 12px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    pointer-events: none;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 8px 8px 8px 4px;
    color: var(--text-color);
    font-size: 13px;
    font-family: inherit;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.search-clear {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 8px 12px 8px 4px;
    font-size: 12px;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.search-clear:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
}

/* 深色模式下的搜索框样式 */
body.dark-mode .search-input-wrapper {
    background: rgba(51, 65, 85, 0.6);
    border-color: rgba(148, 163, 184, 0.3);
}

body.dark-mode .search-input-wrapper:focus-within {
    background: rgba(51, 65, 85, 0.8);
    border-color: rgba(96, 165, 250, 0.5);
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.1);
}

body.dark-mode .search-icon {
    color: rgba(148, 163, 184, 0.7);
}

body.dark-mode .search-input::placeholder {
    color: rgba(148, 163, 184, 0.6);
}

body.dark-mode .search-clear {
    color: rgba(148, 163, 184, 0.7);
}

body.dark-mode .search-clear:hover {
    color: rgba(148, 163, 184, 1);
    background: rgba(148, 163, 184, 0.1);
}

.coordinates-list {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
}

.empty-state {
    text-align: center;
    padding: 20px 10px;
    color: rgba(255, 255, 255, 0.7);
}

.empty-state span {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
    margin-bottom: 4px;
}

.empty-state small {
    font-size: 11px;
    opacity: 0.8;
}

.coordinate-item {
    background: var(--item-bg);
    border-radius: 6px;
    padding: 8px;
    margin-bottom: 4px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.coordinate-item:hover {
    background: var(--item-hover-bg);
    transform: translateX(2px);
}

.coordinate-item.selected {
    background: var(--item-selected-bg);
    border-color: var(--border-color);
}

.coordinate-title {
    font-weight: 600;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
}

.coordinate-position {
    font-size: 10px;
    opacity: 0.8;
    margin-bottom: 2px;
}

.coordinate-type {
    font-size: 9px;
    padding: 1px 4px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.2);
    display: inline-block;
}

.coordinate-description {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 2px;
    font-style: italic;
    line-height: 1.3;
}

/* 搜索高亮样式 */
.coordinate-item mark {
    background: rgba(255, 235, 59, 0.3);
    color: #fff;
    padding: 1px 2px;
    border-radius: 2px;
    font-weight: 500;
}

/* 深色模式下的搜索高亮 */
body.dark-mode .coordinate-item mark {
    background: rgba(255, 193, 7, 0.4);
    color: #fff;
}

/* 深色模式下的描述文字 */
body.dark-mode .coordinate-description {
    color: rgba(148, 163, 184, 0.7);
}

.sidebar-stats {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.1);
}

.stat-item {
    padding: 8px 0;
    font-size: 14px;
    font-weight: 500;
}

/* 折叠状态 */
body.sidebar-collapsed .left-sidebar {
    width: 60px;
}

body.sidebar-collapsed .sidebar-header h3,
body.sidebar-collapsed .coordinates-list,
body.sidebar-collapsed .sidebar-stats {
    display: none;
}

body.sidebar-collapsed .sidebar-toggle span {
    transform: rotate(180deg);
}

/* 主地图区域样式 */
.main-map {
    grid-area: main;
    position: relative;
    overflow: hidden;
    background: var(--map-bg);
}

.map-container {
    width: 100%;
    height: 100%;
    position: relative;
    background: var(--map-container-bg);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

#mapCanvas {
    width: 100%;
    height: 100%;
    cursor: crosshair;
    transition: all 0.3s ease;
}

#mapCanvas.connect-mode {
    cursor: pointer;
}

#mapCanvas.delete-mode {
    cursor: not-allowed;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(100, 116, 139, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    box-shadow: 0 8px 25px rgba(100, 116, 139, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-info {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.btn-info:hover {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.btn.active {
    transform: translateY(0);
    box-shadow: inset 0 4px 8px rgba(0,0,0,0.2), 0 4px 15px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: #f3f4f6;
}

/* 主内容区域 */
.main-content {
    padding: 30px;
}

.canvas-container {
    position: relative;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.06), 0 4px 6px rgba(0,0,0,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

#mapCanvas {
    display: block;
    background: var(--map-canvas-bg);
    cursor: crosshair;
    border-radius: 16px;
}

/* 点位样式 */
.map-point {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid #3b82f6;
    background: var(--point-bg);
    cursor: pointer;
    /* transition动画已移除 */
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
    backdrop-filter: blur(10px);
}

.map-point::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(29, 78, 216, 0.1) 100%);
    z-index: -1;
    opacity: 0;
}

/* 地图点位悬停动画已移除 */

.map-point.selected {
    border-color: #10b981;
}

/* 地图点位高亮动画（用于列表悬停） */
.map-point-highlight {
    animation: pointPulse 0.6s ease-in-out infinite alternate;
}

@keyframes pointPulse {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0.7;
    }
}
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.map-point.tool {
    border-color: #ff6b35;
    color: #ff6b35;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2);
}

.map-point.building {
    border-color: #4a90e2;
    color: #4a90e2;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.2);
}

.map-point.terrain {
    border-color: #7ed321;
    color: #7ed321;
    box-shadow: 0 4px 12px rgba(126, 211, 33, 0.2);
}

.map-point.station {
    border-color: #9013fe;
    color: #9013fe;
    box-shadow: 0 4px 12px rgba(144, 19, 254, 0.2);
}

.map-point.base {
    border-color: #f5a623;
    color: #f5a623;
    box-shadow: 0 4px 12px rgba(245, 166, 35, 0.2);
}

.map-point.other {
    border-color: #50e3c2;
    color: #50e3c2;
    box-shadow: 0 4px 12px rgba(80, 227, 194, 0.2);
}

/* 点位标签 */
.point-label {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 12px;
    font-weight: 600;
    fill: black;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    pointer-events: none;
    user-select: none;
    transition: all 0.3s ease;
}

/* 标签连接线 */
.label-connector {
    pointer-events: none;
    user-select: none;
    transition: all 0.3s ease;
    opacity: 0.8;
    stroke: rgba(0, 0, 0, 0.6);
}

/* 悬停效果 */
.map-point:hover + .label-connector,
.map-point:hover ~ .label-connector {
    opacity: 1;
    stroke: rgba(0, 0, 0, 0.8);
}

/* 连线样式 */
.connection-line {
    stroke-width: 3;
    fill: none;
    pointer-events: stroke;
    cursor: pointer;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.connection-line:hover {
    stroke-width: 4;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.connection-line.selected {
    stroke: #ef4444 !important;
    stroke-width: 4;
    filter: drop-shadow(0 4px 8px rgba(239, 68, 68, 0.4));
}

/* 状态栏 */
.status-bar {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.8) 0%, rgba(226, 232, 240, 0.8) 100%);
    padding: 16px 20px;
    border-top: 1px solid rgba(226, 232, 240, 0.5);
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    backdrop-filter: blur(10px);
    border-radius: 0 0 16px 16px;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
}

.modal-content {
    background: var(--modal-bg);
    margin: 8% auto;
    padding: 32px;
    border-radius: 20px;
    width: 90%;
    max-width: 520px;
    position: relative;
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    color: var(--modal-text);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #94a3b8;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: rgba(148, 163, 184, 0.1);
}

.close:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    transform: scale(1.1);
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--modal-text);
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--input-border);
    border-radius: 12px;
    font-size: 14px;
    background: var(--input-bg);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-family: inherit;
    color: var(--modal-text);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--input-focus-border);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: var(--input-bg);
}

.form-hint {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-secondary);
    opacity: 0.8;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(226, 232, 240, 0.5);
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.container {
    animation: fadeInUp 0.6s ease-out;
}

/* 按钮出现动画已移除 */

/* .map-point {
    animation: fadeInUp 0.3s ease-out;
} */

.status-bar {
    animation: fadeInUp 0.8s ease-out;
}

/* 右键菜单样式 */
.context-menu {
    position: fixed;
    background: var(--modal-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    z-index: 10000;
    min-width: 180px;
    padding: 8px 0;
    font-size: 14px;
    color: var(--modal-text);
    animation: contextMenuFadeIn 0.15s ease-out;
}

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

.context-menu-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 12px;
}

.context-menu-item:hover {
    background: var(--item-hover-bg);
}

.context-menu-item .icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.context-menu-item span {
    font-weight: 500;
}

.context-menu-separator {
    height: 1px;
    background: var(--border-color);
    margin: 4px 0;
}

/* 深色模式下的右键菜单 */
body.dark-mode .context-menu {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(148, 163, 184, 0.2);
}

body.dark-mode .context-menu-item:hover {
    background: rgba(51, 65, 85, 0.6);
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        grid-template-areas: 
            "navbar"
            "main";
        grid-template-rows: 70px 1fr;
        grid-template-columns: 1fr;
    }
    
    .left-sidebar {
        position: fixed;
        top: 70px;
        left: -300px;
        width: 300px;
        height: calc(100vh - 70px);
        z-index: 1000;
        transition: left 0.3s ease;
    }
    
    body.sidebar-open .left-sidebar {
        left: 0;
    }
    
    .navbar-toolbar {
        gap: 8px 10px;
    }
    
    .btn {
        padding: 6px 12px;
        font-size: 12px;
        height: 36px;
        max-height: 36px;
        min-width: 72px;
    }
    
    .btn span {
        display: none;
    }
    
    .navbar-brand h1 {
        font-size: 18px;
    }
    
    .coordinate-item {
        padding: 12px;
    }
    
    .sidebar-header {
        padding: 16px;
    }
    
    .coordinates-list {
        padding: 16px;
    }
    
    .sidebar-stats {
        padding: 16px;
    }
    
    .modal-content {
        margin: 5% auto;
        width: 95%;
        padding: 24px;
    }
    
    /* 移动设备上的右键菜单 */
    .context-menu {
        min-width: 160px;
        font-size: 13px;
    }
    
    .context-menu-item {
        padding: 12px 16px;
    }
}

/* 手机模式搜索框样式 */
.mobile-search-container {
    display: none;
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 100;
}

/* 手机端状态提示样式 */
.mobile-status-display {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 8px 16px;
    margin-bottom: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.mobile-status-display:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

#mobileStatusText {
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    display: block;
}

.mobile-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 25px;
    padding: 12px 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.mobile-search-wrapper:focus-within {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 6px 30px rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}

.mobile-search-icon {
    font-size: 16px;
    margin-right: 12px;
    color: rgba(0, 0, 0, 0.6);
    flex-shrink: 0;
}

.mobile-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 16px;
    color: #1f2937;
    font-weight: 500;
}

.mobile-search-input::placeholder {
    color: rgba(0, 0, 0, 0.5);
    font-weight: 400;
}

.mobile-search-clear {
    background: none;
    border: none;
    color: rgba(0, 0, 0, 0.5);
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    margin-left: 8px;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.mobile-search-clear:hover {
    background: rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.8);
}

/* 深色模式下的手机搜索框 */
body.dark-mode .mobile-search-wrapper {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(148, 163, 184, 0.3);
}

body.dark-mode .mobile-search-wrapper:focus-within {
    background: rgba(30, 41, 59, 0.98);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 6px 30px rgba(59, 130, 246, 0.3);
}

body.dark-mode .mobile-search-icon {
    color: rgba(255, 255, 255, 0.7);
}

body.dark-mode .mobile-search-input {
    color: #e2e8f0;
}

body.dark-mode .mobile-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

body.dark-mode .mobile-search-clear {
    color: rgba(255, 255, 255, 0.6);
}

body.dark-mode .mobile-search-clear:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

/* 深色模式下的手机端状态提示 */
body.dark-mode .mobile-status-display {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(148, 163, 184, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode .mobile-status-display:hover {
    background: rgba(30, 41, 59, 1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

body.dark-mode #mobileStatusText {
    color: #e2e8f0;
}

/* 手机搜索结果列表样式 */
.mobile-search-results {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(20px);
    max-height: 300px;
    overflow: hidden;
    animation: mobileSearchResultsSlideUp 0.3s ease-out;
}

.mobile-search-results-content {
    max-height: 300px;
    overflow-y: auto;
    padding: 8px;
}

.mobile-search-results .coordinate-item {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.mobile-search-results .coordinate-item:last-child {
    margin-bottom: 0;
}

.mobile-search-results .coordinate-item:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.mobile-search-results .coordinate-item.selected {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.mobile-search-results .coordinate-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #1f2937;
    margin-bottom: 4px;
}

.mobile-search-results .coordinate-position {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 2px;
}

.mobile-search-results .coordinate-type {
    font-size: 11px;
    color: #9ca3af;
    margin-bottom: 4px;
}

.mobile-search-results .coordinate-description {
    font-size: 12px;
    color: #4b5563;
    line-height: 1.4;
}

.mobile-search-results .empty-state {
    text-align: center;
    padding: 20px;
    color: #6b7280;
}

.mobile-search-results .empty-state span {
    font-size: 24px;
    display: block;
    margin-bottom: 8px;
}

.mobile-search-results .empty-state p {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.mobile-search-results .empty-state small {
    font-size: 12px;
    color: #9ca3af;
}

/* 深色模式下的手机搜索结果 */
body.dark-mode .mobile-search-results {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(148, 163, 184, 0.3);
}

body.dark-mode .mobile-search-results .coordinate-item {
    background: rgba(51, 65, 85, 0.8);
    border-color: rgba(148, 163, 184, 0.2);
}

body.dark-mode .mobile-search-results .coordinate-item:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
}

body.dark-mode .mobile-search-results .coordinate-item.selected {
    background: rgba(59, 130, 246, 0.25);
    border-color: rgba(59, 130, 246, 0.5);
}

body.dark-mode .mobile-search-results .coordinate-title {
    color: #e2e8f0;
}

body.dark-mode .mobile-search-results .coordinate-position {
    color: #94a3b8;
}

body.dark-mode .mobile-search-results .coordinate-type {
    color: #64748b;
}

body.dark-mode .mobile-search-results .coordinate-description {
    color: #cbd5e1;
}

body.dark-mode .mobile-search-results .empty-state {
    color: #94a3b8;
}

body.dark-mode .mobile-search-results .empty-state small {
    color: #64748b;
}

/* 搜索结果动画 */
@keyframes mobileSearchResultsSlideUp {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 搜索结果滚动条样式 */
.mobile-search-results-content::-webkit-scrollbar {
    width: 4px;
}

.mobile-search-results-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 2px;
}

.mobile-search-results-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}

.mobile-search-results-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

body.dark-mode .mobile-search-results-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .mobile-search-results-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
}

body.dark-mode .mobile-search-results-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 搜索结果高亮样式 */
.mobile-search-results mark {
    background: rgba(255, 235, 59, 0.6);
    color: #1f2937;
    padding: 1px 2px;
    border-radius: 2px;
    font-weight: 600;
}

body.dark-mode .mobile-search-results mark {
    background: rgba(255, 193, 7, 0.4);
    color: #fbbf24;
}

/* 手机端设置菜单容器 */
.mobile-settings-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1001;
    display: none;
}

/* 手机端设置按钮 */
.mobile-settings-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 0;
}

.mobile-settings-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

.mobile-settings-btn:active {
    transform: scale(0.95);
}

.mobile-settings-btn .settings-icon {
    font-size: 24px;
    transition: transform 0.3s ease;
}

.mobile-settings-btn:hover .settings-icon {
    transform: rotate(90deg);
}

/* 手机端设置菜单 */
.mobile-settings-menu {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 280px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transform: translateY(10px) scale(0.95);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.mobile-settings-menu.show {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.mobile-settings-content {
    padding: 0;
}

.mobile-settings-header {
    padding: 16px 20px 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(248, 249, 250, 0.8);
}

.mobile-settings-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.mobile-settings-items {
    padding: 8px 0;
    max-height: 400px;
    overflow-y: auto;
}

.mobile-settings-item {
    width: 100%;
    padding: 14px 20px;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 15px;
    color: #333;
}

.mobile-settings-item:hover {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
}

.mobile-settings-item:active {
    background: rgba(0, 123, 255, 0.2);
}

.mobile-settings-item .item-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.mobile-settings-item .item-text {
    flex: 1;
    text-align: left;
    font-weight: 500;
}

.mobile-settings-separator {
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin: 8px 20px;
}

/* 深色模式下的手机设置菜单 */
.dark-mode .mobile-settings-btn {
    background: rgba(45, 45, 45, 0.95);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.dark-mode .mobile-settings-menu {
    background: rgba(45, 45, 45, 0.95);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.dark-mode .mobile-settings-header {
    background: rgba(35, 35, 35, 0.8);
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.dark-mode .mobile-settings-header h3 {
    color: #fff;
}

.dark-mode .mobile-settings-item {
    color: #fff;
}

.dark-mode .mobile-settings-item:hover {
    background: rgba(0, 123, 255, 0.2);
    color: #4dabf7;
}

.dark-mode .mobile-settings-item:active {
    background: rgba(0, 123, 255, 0.3);
}

.dark-mode .mobile-settings-separator {
    background: rgba(255, 255, 255, 0.2);
}

/* 竖屏模式优化 */
@media (max-width: 768px) and (orientation: portrait) {
    /* 显示手机搜索框 */
    .mobile-search-container {
        display: block;
    }
    
    /* 隐藏实时坐标显示 */
    .coordinate-display {
        display: none !important;
    }
    
    /* 隐藏状态提示 */
    .navbar-status {
        display: none !important;
    }
    
    /* 隐藏特定按钮：添加点位、输入坐标、连线模式、删除模式、清空 */
    .navbar-toolbar .btn:nth-child(1), /* 添加点位 */
    .navbar-toolbar .btn:nth-child(2), /* 输入坐标 */
    .navbar-toolbar .btn:nth-child(3), /* 连线模式 */
    .navbar-toolbar .btn:nth-child(4), /* 删除模式 */
    .navbar-toolbar .btn:nth-child(7)  /* 清空按钮 */ {
        display: none !important;
    }
    
    /* 优化导航栏布局 */
    .top-navbar {
        min-height: 90px;
        padding: 10px 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    /* 第一行：品牌标题 */
    .navbar-brand {
        margin: 0;
        text-align: center;
        order: 1;
    }
    
    .navbar-brand h1 {
        font-size: 20px;
        margin: 0;
        font-weight: 600;
    }
    
    /* 第二行：地图选择器和工具栏 */
    .navbar-controls-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        order: 2;
        gap: 12px;
    }
    
    .navbar-map-selector {
        margin: 0;
        flex: 1;
        max-width: 60%;
    }
    
    .map-selector-button {
        width: 100%;
        min-width: auto;
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .map-selector-text {
        font-size: 14px;
    }
    
    .map-selector-label {
        font-size: 14px;
        font-weight: 600;
    }
    
    .map-selector-dropdown {
        font-size: 14px;
    }
    
    .map-selector-option {
        padding: 12px 16px;
    }
    
    .map-icon {
        font-size: 16px;
    }
    
    .map-name {
        font-size: 14px;
    }
    
    /* 调整工具栏布局 */
    .navbar-toolbar {
        gap: 4px;
        margin: 0;
        flex: 1;
        justify-content: flex-end;
        flex-wrap: wrap;
    }
    
    /* 调整按钮大小 */
    .navbar-toolbar .btn {
        padding: 6px 8px;
        font-size: 10px;
        height: 30px;
        max-height: 30px;
        flex: 0 0 auto;
    }
    
    .navbar-toolbar .btn span {
        font-size: 11px;
    }
    
    /* 下拉菜单优化 */
    .dropdown-item {
        padding: 10px 12px;
        font-size: 12px;
    }
}

/* 横屏模式保持原有样式 */
@media (max-width: 768px) and (orientation: landscape) {
    /* 显示手机搜索框 */
    .mobile-search-container {
        display: block;
        bottom: 10px;
        left: 10px;
        right: 10px;
    }
    
    .mobile-search-wrapper {
        padding: 8px 12px;
    }
    
    .mobile-search-input {
        font-size: 14px;
    }
    
    /* 横屏时保持所有功能可用 */
    .coordinate-display {
        display: block;
    }
    
    .navbar-toolbar .btn {
        display: inline-flex;
    }
}

/* 小屏幕设备通用样式 */
@media (max-width: 768px) {
    /* 在所有小屏幕设备上显示手机搜索框 */
    .mobile-search-container {
        display: block;
    }
    
    /* 在所有小屏幕设备上显示手机端设置菜单 */
    .mobile-settings-container {
        display: block !important;
    }
    
    /* 隐藏上边栏的所有设置按钮，因为手机端齿轮菜单已包含所有功能 */
    .navbar-toolbar {
        display: none !important;
    }
}

/* 极小屏幕优化 */
@media (max-width: 480px) {
    .top-navbar {
        min-height: 95px;
        padding: 8px 12px;
    }
    
    .navbar-brand h1 {
        font-size: 18px;
        font-weight: 600;
    }
    
    .navbar-controls-row {
        gap: 10px;
    }
    
    .navbar-map-selector {
        max-width: 55%;
    }
    
    .map-selector-button {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .map-selector-text {
        font-size: 13px;
    }
    
    .map-selector-label {
        font-size: 12px;
        font-weight: 600;
    }
    
    .map-selector-dropdown {
        font-size: 13px;
    }
    
    .map-selector-option {
        padding: 10px 12px;
    }
    
    .map-icon {
        font-size: 15px;
    }
    
    .map-name {
        font-size: 13px;
    }
    
    .navbar-toolbar {
        gap: 2px;
    }
    
    .navbar-toolbar .btn {
        padding: 5px 6px;
        font-size: 9px;
        height: 28px;
        max-height: 28px;
    }
    
    .navbar-toolbar .btn span {
        font-size: 10px;
    }
    
    .dropdown-item {
        padding: 8px 10px;
        font-size: 11px;
    }
}

/* 超小屏幕优化 */
@media (max-width: 360px) {
    .top-navbar {
        min-height: 100px;
        padding: 8px 10px;
    }
    
    .navbar-brand h1 {
        font-size: 16px;
        font-weight: 600;
    }
    
    .navbar-controls-row {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }
    
    .navbar-map-selector {
        max-width: 100%;
        order: 2;
    }
    
    .navbar-toolbar {
        order: 1;
        justify-content: center;
        gap: 4px;
    }
    
    .navbar-toolbar .btn {
        padding: 6px 8px;
        font-size: 11px;
        height: 32px;
        max-height: 32px;
    }
    
    .navbar-toolbar .btn span {
        font-size: 12px;
    }
    
    .map-selector-button {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .map-selector-text {
        font-size: 12px;
    }
    
    .map-selector-label {
        font-size: 11px;
        font-weight: 600;
    }
    
    .map-selector-dropdown {
        font-size: 12px;
    }
    
    .map-selector-option {
        padding: 10px 12px;
    }
    
    .map-icon {
        font-size: 14px;
    }
    
    .map-name {
        font-size: 12px;
    }
}

/* 工具提示 */
.tooltip {
    position: fixed;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(30, 30, 30, 0.95) 100%);
    color: white;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    pointer-events: none;
    z-index: 10000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 280px;
    line-height: 1.4;
    animation: tooltipFadeIn 0.2s ease-out;
}

.tooltip-header {
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.tooltip-header strong {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.tooltip-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tooltip-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    min-height: 18px;
}

.tooltip-label {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
    font-size: 12px;
}

.tooltip-value {
    color: #ffffff;
    text-align: right;
    word-break: break-word;
    font-size: 12px;
    font-weight: 400;
}

/* 深色模式下的tooltip样式 */
body.dark-mode .tooltip {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
    border-color: rgba(148, 163, 184, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .tooltip-header {
    border-bottom-color: rgba(148, 163, 184, 0.2);
}

body.dark-mode .tooltip-label {
    color: rgba(148, 163, 184, 0.9);
}

body.dark-mode .tooltip-value {
    color: #e2e8f0;
}

/* tooltip动画 */
@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateY(5px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Toast 提示样式 */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    color: #1e293b;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    min-width: 280px;
    max-width: 400px;
    font-size: 14px;
    line-height: 1.4;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    position: relative;
    overflow: hidden;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.hide {
    transform: translateX(100%);
    opacity: 0;
}

.toast-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 15px;
}

.toast-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.toast-title {
    flex: 1;
}

.toast-close {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #64748b;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.toast-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #1e293b;
}

.toast-message {
    color: #475569;
    margin: 0;
    font-size: 13px;
}

/* Toast 类型样式 */
.toast.success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.95) 0%, rgba(22, 163, 74, 0.95) 100%);
    color: white;
    border-color: rgba(34, 197, 94, 0.3);
}

.toast.success .toast-message {
    color: rgba(255, 255, 255, 0.9);
}

.toast.success .toast-close {
    color: rgba(255, 255, 255, 0.7);
}

.toast.success .toast-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.toast.error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.95) 0%, rgba(220, 38, 38, 0.95) 100%);
    color: white;
    border-color: rgba(239, 68, 68, 0.3);
}

.toast.error .toast-message {
    color: rgba(255, 255, 255, 0.9);
}

.toast.error .toast-close {
    color: rgba(255, 255, 255, 0.7);
}

.toast.error .toast-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.toast.warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.95) 0%, rgba(217, 119, 6, 0.95) 100%);
    color: white;
    border-color: rgba(245, 158, 11, 0.3);
}

.toast.warning .toast-message {
    color: rgba(255, 255, 255, 0.9);
}

.toast.warning .toast-close {
    color: rgba(255, 255, 255, 0.7);
}

.toast.warning .toast-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.toast.info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.95) 0%, rgba(37, 99, 235, 0.95) 100%);
    color: white;
    border-color: rgba(59, 130, 246, 0.3);
}

.toast.info .toast-message {
    color: rgba(255, 255, 255, 0.9);
}

.toast.info .toast-close {
    color: rgba(255, 255, 255, 0.7);
}

.toast.info .toast-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* 深色模式下的 Toast 样式 */
.dark-mode .toast {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
    color: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2);
}

.dark-mode .toast-message {
    color: #cbd5e1;
}

.dark-mode .toast-close {
    color: #94a3b8;
}

.dark-mode .toast-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

/* 手机端 Toast 优化 */
@media (max-width: 768px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        align-items: stretch;
    }
    
    .toast {
        min-width: auto;
        max-width: none;
        width: 100%;
        transform: translateY(-100%);
    }
    
    .toast.show {
        transform: translateY(0);
    }
    
    .toast.hide {
        transform: translateY(-100%);
    }
}

/* 美化滚动条样式 */
.coordinates-list::-webkit-scrollbar {
    width: 8px;
}

.coordinates-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin: 4px 0;
}

.coordinates-list::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.2) 100%);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.coordinates-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.3) 100%);
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.coordinates-list::-webkit-scrollbar-thumb:active {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.4) 100%);
}

/* 通用滚动条美化 */
*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

*::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.6) 0%, rgba(29, 78, 216, 0.6) 100%);
    border-radius: 10px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
}

*::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.8) 0%, rgba(29, 78, 216, 0.8) 100%);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

*::-webkit-scrollbar-thumb:active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 1) 0%, rgba(29, 78, 216, 1) 100%);
}

*::-webkit-scrollbar-corner {
    background: rgba(0, 0, 0, 0.1);
}

/* 自定义弹窗样式 */
.custom-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

.custom-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-modal-content {
    background: var(--modal-bg);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    animation: slideInUp 0.3s ease-out;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.custom-modal-header {
    padding: 24px 24px 16px 24px;
    border-bottom: 1px solid var(--border-color);
}

.custom-modal-header h3 {
    margin: 0;
    color: var(--modal-text);
    font-size: 18px;
    font-weight: 600;
}

.custom-modal-body {
    padding: 24px;
    color: var(--modal-text);
    overflow-y: auto;
    flex: 1;
    max-height: calc(80vh - 120px);
}

.custom-modal-body p {
    margin: 0 0 16px 0;
    line-height: 1.6;
}

/* 自定义滚动条样式 */
.custom-modal-body::-webkit-scrollbar {
    width: 6px;
}

.custom-modal-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.custom-modal-body::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.3);
    border-radius: 3px;
    transition: background 0.3s ease;
}

.custom-modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.5);
}

.custom-modal-footer {
    padding: 16px 24px 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--input-border);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--modal-text);
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus {
    border-color: var(--input-focus-border);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* 弹窗动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 深色模式下的弹窗样式调整 */
body.dark-mode .custom-modal-content {
    background: var(--modal-bg);
    border-color: var(--border-color);
}

body.dark-mode .form-input {
    background: var(--input-bg);
    border-color: var(--input-border);
    color: var(--modal-text);
}

body.dark-mode .form-input:focus {
    border-color: var(--input-focus-border);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

/* 深色模式下的滚动条样式 */
body.dark-mode .custom-modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .custom-modal-body::-webkit-scrollbar-thumb {
    background: rgba(96, 165, 250, 0.4);
}

body.dark-mode .custom-modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(96, 165, 250, 0.6);
}

/* 点位详情样式 */
.point-details {
    font-size: 14px;
    line-height: 1.6;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
    padding: 12px;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 8px;
    border-left: 3px solid rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.detail-item:hover {
    background: rgba(59, 130, 246, 0.08);
    border-left-color: rgba(59, 130, 246, 0.5);
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-icon {
    font-size: 16px;
    margin-right: 8px;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.detail-label {
    font-weight: 600;
    color: var(--modal-text);
    margin-right: 8px;
    flex-shrink: 0;
    min-width: 80px;
}

.detail-value {
    color: var(--text-secondary);
    flex: 1;
    word-break: break-word;
}

.coordinate-value {
    font-family: 'Courier New', monospace;
    font-weight: 500;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
}

.type-value {
    font-weight: 500;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
}

.security-value {
    font-weight: 500;
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
}

.description-item {
    flex-direction: column;
    align-items: flex-start;
}

.description-item .detail-icon,
.description-item .detail-label {
    display: inline;
    margin-bottom: 8px;
}

.detail-description {
    width: 100%;
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--modal-text);
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.security-item {
    border-left-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.05);
}

.security-item:hover {
    background: rgba(245, 158, 11, 0.08);
    border-left-color: rgba(245, 158, 11, 0.5);
}

/* 深色模式下的点位详情样式 */
body.dark-mode .detail-item {
    background: rgba(96, 165, 250, 0.1);
    border-left-color: rgba(96, 165, 250, 0.4);
}

body.dark-mode .detail-item:hover {
    background: rgba(96, 165, 250, 0.15);
    border-left-color: rgba(96, 165, 250, 0.6);
}

body.dark-mode .coordinate-value {
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.15);
}

body.dark-mode .type-value {
    color: #34d399;
    background: rgba(52, 211, 153, 0.15);
}

body.dark-mode .security-value {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.15);
}

body.dark-mode .detail-description {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .security-item {
    border-left-color: rgba(251, 191, 36, 0.4);
    background: rgba(251, 191, 36, 0.1);
}

body.dark-mode .security-item:hover {
    background: rgba(251, 191, 36, 0.15);
    border-left-color: rgba(251, 191, 36, 0.6);
}

/* 点位操作按钮样式 */
.point-actions {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 8px;
}

.point-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 4px;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(59, 130, 246, 0.1);
    color: var(--modal-text);
    border: 1px solid rgba(59, 130, 246, 0.2);
    min-height: 48px;
}

.point-action-btn:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.point-action-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(59, 130, 246, 0.2);
}

.action-icon {
    font-size: 18px;
    margin-bottom: 4px;
    flex-shrink: 0;
}

.action-text {
    text-align: center;
    line-height: 1.2;
}

/* 不同类型按钮的颜色 */
.edit-btn {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
}

.edit-btn:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.center-btn {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
}

.center-btn:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.initial-btn {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.2);
}

.initial-btn:hover {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

.delete-btn {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
}

.delete-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

/* 深色模式下的点位操作按钮样式 */
body.dark-mode .point-actions {
    border-top-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .edit-btn {
    background: rgba(52, 211, 153, 0.15);
    border-color: rgba(52, 211, 153, 0.3);
}

body.dark-mode .edit-btn:hover {
    background: rgba(52, 211, 153, 0.2);
    border-color: rgba(52, 211, 153, 0.4);
    box-shadow: 0 2px 8px rgba(52, 211, 153, 0.3);
}

body.dark-mode .center-btn {
    background: rgba(96, 165, 250, 0.15);
    border-color: rgba(96, 165, 250, 0.3);
}

body.dark-mode .center-btn:hover {
    background: rgba(96, 165, 250, 0.2);
    border-color: rgba(96, 165, 250, 0.4);
    box-shadow: 0 2px 8px rgba(96, 165, 250, 0.3);
}

body.dark-mode .initial-btn {
    background: rgba(251, 191, 36, 0.15);
    border-color: rgba(251, 191, 36, 0.3);
}

body.dark-mode .initial-btn:hover {
    background: rgba(251, 191, 36, 0.2);
    border-color: rgba(251, 191, 36, 0.4);
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

body.dark-mode .delete-btn {
    background: rgba(248, 113, 113, 0.15);
    border-color: rgba(248, 113, 113, 0.3);
}

body.dark-mode .delete-btn:hover {
    background: rgba(248, 113, 113, 0.2);
    border-color: rgba(248, 113, 113, 0.4);
    box-shadow: 0 2px 8px rgba(248, 113, 113, 0.3);
}

/* 手机端适配 */
@media (max-width: 768px) {
    .point-actions {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .point-action-btn {
        padding: 12px 8px;
        font-size: 13px;
        min-height: 56px;
    }
    
    .action-icon {
        font-size: 20px;
        margin-bottom: 6px;
    }
    
    .action-text {
        line-height: 1.1;
    }
}

/* 超小屏幕适配 */
@media (max-width: 480px) {
    .point-actions {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .point-action-btn {
        padding: 10px 6px;
        font-size: 11px;
        min-height: 50px;
    }
    
    .action-icon {
        font-size: 16px;
        margin-bottom: 4px;
    }
}

/* 坐标显示框容器 */
.coordinate-display {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 100;
    pointer-events: none;
}

/* 鼠标坐标显示样式 */
.mouse-coordinates {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: black;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 200px;
    text-align: center;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mouse-coordinates:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

/* 深色模式下的坐标显示样式 */
body.dark-mode .mouse-coordinates {
    background: rgba(96, 165, 250, 0.15);
    border-color: rgba(96, 165, 250, 0.3);
    color: var(--text-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark-mode .mouse-coordinates:hover {
    background: rgba(96, 165, 250, 0.2);
    border-color: rgba(96, 165, 250, 0.4);
    box-shadow: 0 6px 16px rgba(96, 165, 250, 0.3);
}

/* 坐标输入模态框专用样式 */
.coordinate-input-group {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.coordinate-input-item {
    flex: 1;
}

.coordinate-input-item label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--modal-text);
    font-size: 14px;
}

.coordinate-preview {
    padding: 12px 16px;
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    text-align: center;
    font-family: 'Courier New', monospace;
}

.coordinate-preview small {
    color: var(--text-secondary);
    font-size: 13px;
}

/* 输入坐标按钮样式 */
.btn-primary-alt {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.btn-primary-alt:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.btn-primary-alt:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

/* 深色模式下的坐标输入样式 */
body.dark-mode .coordinate-preview {
    background: rgba(96, 165, 250, 0.1);
    border-color: rgba(96, 165, 250, 0.2);
}

body.dark-mode .coordinate-input-item label {
    color: var(--modal-text);
}

/* 连线颜色选择样式 */
.color-selection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 16px 0;
}

.color-option {
    position: relative;
    padding: 16px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
    color: white;
    font-weight: 500;
    font-size: 13px;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.color-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.color-option.selected {
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.color-option .color-name {
    font-size: 12px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.color-option .color-check {
    font-size: 16px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.color-option.selected .color-check {
    opacity: 1;
}

/* 深色模式下的颜色选择样式 */
body.dark-mode .color-option {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .color-option:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

body.dark-mode .color-option.selected {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

/* 深色模式下的标签连接线样式 */
body.dark-mode .label-connector {
    stroke: rgba(148, 163, 184, 0.6);
}

body.dark-mode .map-point:hover + .label-connector,
body.dark-mode .map-point:hover ~ .label-connector {
    stroke: rgba(148, 163, 184, 0.9);
}

/* 深色模式下的点位标签样式 */
body.dark-mode .point-label {
    fill: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}