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

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
}

/* 标题栏样式 */
.header {
    width: 100%;
    height: 60px;
    background-color: #007BFF;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header h1 {
    font-size: 20px;
    font-weight: bold;
}

.language-selector {
    display: flex;
    align-items: center;
}

.language-selector select {
    padding: 5px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
}

#languageSelect option {
        color: #333;
        background-color: #aaffff;
    }

/* 页脚样式 */
.footer-contact {
    width: 100%;
    height: 60px;
    background-color: #007BFF;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 地图容器样式 */
#map-container {
    width: 100%;
    height: calc(100vh - 120px); /* 减去标题栏和页脚高度 */
	/* height: 600px; */
    position: relative;
}

/* 信息窗口样式 */
.info-window {
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 300px;
    min-height: 200px;
    font-size: 14px;
}

.info-window h3 {
    margin: 0 0 10px;
    font-size: 16px;
    color: #007BFF;
}

.info-window p {
    margin: 5px 0;
    color: #333;
}

.info-window a {
    color: #007BFF;
    text-decoration: none;
}

.info-window a:hover {
    text-decoration: underline;
}

.info-window button {
    margin-top: 10px;
    padding: 8px 16px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.info-window button:hover {
    background-color: #0056b3;
}

/* 搜索框样式 */
.search {
    position: relative;
    width: 300px;
    margin: 20px auto;
    z-index: 2;
}

.queryKey {
    position: relative;
    width: 100%;
}

.search input {
    width: 100%;
    height: 42px;
    padding: 0 13px 0 40px;
    border: 2px solid #c5464a;
    border-radius: 21px;
    background: transparent;
    font-size: 14px;
}

.search button {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
	
	
    height: 42px;
    background: #c5464a;
    border-radius: 21px 0 0 21px;
    cursor: pointer;
    border: none;
}

.search button:hover {
    background-color: #c7585c;
}

.search button::before {
    content: "🔍";
    font-size: 18px;
    color: #F9F0DA;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}

/* 隐藏元素 */
.ignore {
    display: none;
}

#translate {
    display: none;
}


:root {
    --primary-color: #2196F3;
    --secondary-color: #4CAF50;
    --text-primary: #212121;
    --background-color: #f5f5f5;
}

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

body {
    font-family: Arial, sans-serif;
    background-color: var(--background-color);
}

/* 标题栏样式 */
.header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    font-size: 1.5rem;
    margin-right: 1rem;
}

/* .language-selector select {
    padding: 0.3rem;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
} */

/* 主要内容样式 */
.main-content {
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* 搜索框样式 */
.search-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.search-box input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.search-box button {
    padding: 0.5rem 1rem;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-box button:hover {
    background-color: #45a049;
}

/* 地图容器样式 */
.map-wrapper {
    width: 100%;
    height: 70vh;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 信息窗口样式 */
.info-window {
    min-width: 280px;
    padding: 1rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.info-window h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.info-window dl {
    margin-bottom: 1rem;
}

.info-window dt {
    font-weight: bold;
    color: var(--text-primary);
}

.info-window dd {
    margin-left: 1rem;
    color: #666;
}

.info-window a {
    color: var(--secondary-color);
    text-decoration: none;
}

.info-window a:hover {
    text-decoration: underline;
}

.info-window button {
    background-color: var(--secondary-color);
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.info-window button:hover {
    background-color: #45a049;
}

/* 页脚样式 */
.footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 1rem;
}

.footer a {
    color: white;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}


/* 悬浮按钮 */
/* 悬浮导航样式 */
/* 悬浮导航样式 */
.floating-nav {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}

.nav-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #007BFF;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1001;
}




.nav-toggle:hover {
    transform: scale(1.1);
}

.nav-menu {
    position: absolute;
    right: -250px;
    top: 0;
    width: 250px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    padding: 15px;
    transition: right 0.3s ease;
    z-index: 1000;
}

.nav-menu.active {
    right: 0;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-list li {
    margin: 10px 0;
}

.nav-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
    text-decoration: none;
    padding: 10px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.nav-list a:hover {
    background-color: #f5f5f5;
}

.nav-list a svg {
    width: 24px;
    height: 24px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .floating-nav {
        right: 10px;
    }
    
    .nav-menu {
        width: 220px;
    }
}


/* 弹窗样式 */
        .map-selector-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }
        
        .modal-content {
            background: white;
            border-radius: 12px;
            width: 80%;
            max-width: 300px;
            overflow: hidden;
            animation: modalFadeIn 0.3s;
        }
        
        @keyframes modalFadeIn {
            from {
                opacity: 0;
                transform: translateY(-20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .modal-header {
            padding: 15px;
            text-align: center;
            font-size: 16px;
            font-weight: bold;
            color: #333;
            border-bottom: 1px solid #f0f0f0;
        }
        
        .modal-body {
            padding: 15px;
        }
        
        .map-option {
            display: block;
            width: 100%;
            padding: 12px;
            margin-bottom: 10px;
            background: #f8f8f8;
            border: none;
            border-radius: 8px;
            font-size: 15px;
            color: #333;
            text-align: center;
            cursor: pointer;
            transition: background-color 0.2s;
        }
        
        .map-option:hover {
            background-color: #e6f7ff;
        }
        
        .modal-footer {
            border-top: 1px solid #f0f0f0;
        }
        
        .cancel-btn {
            display: block;
            width: 100%;
            padding: 12px;
            background: white;
            border: none;
            font-size: 15px;
            color: #666;
            cursor: pointer;
            transition: background-color 0.2s;
        }
        
        .cancel-btn:hover {
            background-color: #f5f5f5;
        }