* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', sans-serif;
}

:root {
    --primary-color: #4285f4;
    --primary-dark: #1a73e8;
    --primary-light: #8ab4f8;
    --secondary-color: #f5f7fa;
    --accent-color: #fbbc05;
    --text-color: #333;
    --text-light: #666;
    --text-white: #fff;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --border-color: rgba(255, 255, 255, 0.2);
    --glass-bg: rgba(255, 255, 255, 0.2);
    --glass-border: rgba(255, 255, 255, 0.3);
    --sidebar-width: 320px;
    --sidebar-collapsed-width: 60px;
    --submenu-width: 280px;
    --header-height: 70px;
    --transition-speed: 0.3s;
    --transition-timing: cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background-color: #f0f4f8;
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4ecfb 100%);
    font-size: 16px;
    line-height: 1.5;
}

/* 背景动态元素 */
.bg-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    opacity: 0.6;
}

.bg-element {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
}

.element-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(45deg, rgba(66, 133, 244, 0.3), rgba(26, 115, 232, 0.2));
    top: -100px;
    right: -100px;
    animation: float 30s ease-in-out infinite;
}

.element-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(45deg, rgba(251, 188, 5, 0.3), rgba(255, 152, 0, 0.2));
    bottom: 10%;
    left: 5%;
    animation: float 25s ease-in-out infinite reverse;
}

.element-3 {
    width: 350px;
    height: 350px;
    background: linear-gradient(45deg, rgba(52, 168, 83, 0.2), rgba(77, 218, 108, 0.15));
    top: 40%;
    right: 10%;
    animation: float 20s ease-in-out infinite 2s;
}

.element-4 {
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, rgba(234, 67, 53, 0.2), rgba(255, 109, 77, 0.15));
    top: 20%;
    left: 30%;
    animation: float 18s ease-in-out infinite 5s;
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
    25% {
        transform: translateY(-40px) translateX(20px) rotate(5deg);
    }
    50% {
        transform: translateY(20px) translateX(-30px) rotate(-5deg);
    }
    75% {
        transform: translateY(-30px) translateX(-20px) rotate(3deg);
    }
    100% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
}

.app-container {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* 玻璃效果 */
.glass-effect {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.glass-effect::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: 0.5s;
    pointer-events: none;
}

.glass-effect:hover::before {
    left: 100%;
    transition: 0.8s;
}

/* 侧边导航栏样式 */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    transition: width var(--transition-speed) var(--transition-timing), transform var(--transition-speed) var(--transition-timing);
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 5px 0 15px var(--shadow-color);
    transform: translateX(-100%); /* 默认收起 */
}

.sidebar.active {
    transform: translateX(0);
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

/* 添加侧边栏展开按钮 */
.sidebar-toggle-visible {
    position: fixed;
    top: 50%;
    left: 0;
    width: 35px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 0 8px 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    z-index: 99;
    transform: translateY(-50%);
    transition: all 0.3s;
}

.sidebar-toggle-visible:hover {
    background: var(--primary-dark);
    width: 40px;
}

.sidebar-toggle-visible i {
    font-size: 20px;
}

.sidebar.active + .sidebar-toggle-visible {
    left: var(--sidebar-width);
}

/* 在大屏幕上默认保持侧边栏收起状态 */
@media (min-width: 992px) {
    .sidebar {
        transform: translateX(-100%); /* 修改为在大屏幕上也保持收起状态 */
    }
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

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

.sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 20px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    color: white;
    position: relative;
    overflow: hidden;
}

.sidebar-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        rgba(255, 255, 255, 0) 100%);
    transform: translateX(-100%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

.sidebar-header h3 {
    font-size: 20px;
    font-weight: 600;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.toggle-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transition: all 0.2s;
    z-index: 1;
}

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

.sidebar.collapsed .toggle-btn i {
    transform: rotate(180deg);
}

.sidebar-content {
    padding: 20px;
}

.sidebar.collapsed .sidebar-content {
    display: none;
}

.search-box {
    display: flex;
    margin-bottom: 25px;
    position: relative;
}

.search-box input {
    flex: 1;
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.search-box input:focus {
    outline: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.search-box button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    border: none;
    color: white;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.search-box button:hover {
    background: var(--primary-dark);
    transform: translateY(-50%) scale(1.1);
}

.nav-section {
    margin-bottom: 20px;
}

.nav-section h4 {
    margin: 20px 0 15px;
    color: var(--primary-dark);
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(66, 133, 244, 0.3);
}

.nav-section h4 i {
    font-size: 18px;
}

.province-list, .city-list {
    list-style: none;
    max-height: calc(100vh - 250px);
    overflow-y: auto;
}

.city-list {
    border-left: 2px solid rgba(66, 133, 244, 0.2);
    margin-left: 5px;
}

.province-list li, .city-list li {
    padding: 15px 20px;
    margin: 8px 0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: visible;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    font-size: 16px;
    border-left: 3px solid transparent;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.city-list li {
    font-size: 15px;
    padding: 10px 15px;
}

.province-list li::before, .city-list li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--primary-color);
    opacity: 0;
    transition: all 0.2s;
}

.city-list li::before {
    background: var(--accent-color);
}

.province-list li:hover, .city-list li:hover {
    background-color: rgba(66, 133, 244, 0.1);
    transform: translateX(8px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-left: 3px solid var(--primary-color);
}

.city-list li:hover {
    background-color: rgba(251, 188, 5, 0.1);
}

.province-list li:hover::before, .city-list li:hover::before {
    opacity: 1;
}

.province-list li.active, .city-list li.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.3);
    transform: translateY(-2px) translateX(5px);
    border-left: 3px solid var(--primary-light);
}

.city-list li.active {
    background: linear-gradient(to right, var(--accent-color), #ff9800);
    box-shadow: 0 4px 15px rgba(251, 188, 5, 0.3);
}

.no-data {
    color: #999;
    font-style: italic;
    padding: 15px;
    text-align: center;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
}

.loading {
    color: var(--text-light);
    font-style: italic;
    display: flex;
    align-items: center;
}

.loading-dots {
    display: inline-flex;
    margin-left: 4px;
}

.loading-dots span {
    animation: loadingDots 1.4s infinite;
    opacity: 0;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes loadingDots {
    0%, 100% {
        opacity: 0;
    }
    60% {
        opacity: 1;
    }
}

/* 主内容区样式 */
.main-content {
    flex: 1;
    margin-left: 0;
    transition: margin-left var(--transition-speed) var(--transition-timing);
    padding: 30px;
    position: relative;
    z-index: 1;
    animation: fadeInContent 0.8s ease-out;
}

/* 添加主内容区全宽动画效果 */
.main-content.full-width-transition {
    animation: pulseContent 0.5s ease-out;
}

@keyframes pulseContent {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 992px) {
    .main-content {
        margin-left: 0;
    }
    
    .sidebar.active + .main-content {
        margin-left: var(--sidebar-width);
    }
}

/* 主内容区调整，确保在子菜单激活时的偏移 */
.sidebar.active + .submenu-container.active + .main-content {
    margin-left: calc(var(--sidebar-width) + var(--submenu-width));
}

@media (max-width: 1400px) {
    .sidebar.active + .submenu-container.active + .main-content {
        margin-left: 0;
    }
}

/* 顶部导航栏 */
.top-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 15px 0 25px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.top-navbar::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, 
        rgba(66, 133, 244, 0) 0%, 
        rgba(66, 133, 244, 0.5) 50%, 
        rgba(66, 133, 244, 0) 100%);
}

.logo-section h1 {
    color: var(--primary-color);
    font-size: 30px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.logo-section h1 i {
    font-size: 24px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.logo-section p {
    color: var(--text-light);
    font-size: 14px;
    position: relative;
    display: inline-block;
}

.logo-section p::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.logo-section:hover p::after {
    width: 100%;
}

/* 主导航样式 */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 10px;
}

.main-nav li {
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.7);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.main-nav li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
}

.main-nav li i, 
.main-nav li span {
    position: relative;
    z-index: 2;
}

.main-nav li:hover {
    color: white;
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
}

.main-nav li:hover::before {
    opacity: 1;
}

.main-nav li.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
    font-weight: 700;
}

/* 面包屑导航容器 */
.breadcrumb-container {
    margin-bottom: 20px;
}

.breadcrumb {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.breadcrumb span {
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.breadcrumb span:hover {
    color: var(--primary-dark);
}

.breadcrumb span:not(:last-child)::after {
    content: " > ";
    color: var(--text-light);
    margin: 0 5px;
}

.breadcrumb span:last-child {
    color: var(--text-color);
    font-weight: 500;
}

/* 选项卡内容区 */
.tab-content {
    position: relative;
}

.tab-pane {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
}

.tab-pane.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* 地区内容区样式 */
.region-content {
    display: flex;
    gap: 25px;
    margin-bottom: 25px;
}

.region-list-container {
    flex: 2;
    border-radius: 15px;
    padding: 30px;
    overflow: hidden;
    position: relative;
}

.region-list-container::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-light), transparent);
    border-radius: 50%;
    opacity: 0.6;
}

.region-list-container h2 {
    color: var(--primary-dark);
    font-size: 22px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.region-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.region-item {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.region-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.region-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.region-item:hover::before {
    transform: scaleX(1);
}

.region-item.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(66, 133, 244, 0.35);
}

.region-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    transition: all 0.3s;
    position: relative;
    display: inline-block;
    color: var(--primary-dark);
    font-weight: 600;
}

.region-item:hover h3::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--primary-color);
    animation: widthAnim 0.5s forwards;
}

@keyframes widthAnim {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.region-item.active:hover h3::after {
    background: white;
}

.region-item .code {
    font-size: 12px;
    color: var(--text-light);
    transition: all 0.3s;
}

.region-item.active .code {
    color: rgba(255, 255, 255, 0.8);
}

.region-detail {
    flex: 1;
    border-radius: 15px;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.region-detail::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, transparent, var(--primary-light));
    border-radius: 50%;
    opacity: 0.3;
}

.region-detail h3 {
    color: var(--primary-dark);
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.region-detail h3 i {
    font-size: 18px;
    animation: pulse 2s infinite;
}

#regionInfo {
    font-size: 15px;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

#regionInfo p {
    margin-bottom: 10px;
    position: relative;
    transition: all 0.3s ease;
}

#regionInfo p:hover {
    transform: translateX(5px);
}

#regionInfo strong {
    color: var(--primary-dark);
    font-weight: 600;
}

/* 地图容器样式增强 */
.map-container-wrapper {
    position: relative;
    perspective: 1000px;
    margin-bottom: 25px;
    transform-style: preserve-3d;
}

.map-container {
    position: relative;
    height: 580px !important;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-transform-style: preserve-3d;
    -webkit-backface-visibility: hidden;
    perspective: 1000px;
    contain: layout paint;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.12),
        0 5px 15px rgba(0, 0, 0, 0.07),
        0 0 0 1px rgba(66, 133, 244, 0.1);
    border-radius: 18px;
    overflow: hidden;
}

.map-container:hover {
    transform: translateY(-10px) rotateX(2deg);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.15),
        0 10px 25px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(66, 133, 244, 0.2);
}

.map-container:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 18px;
    box-shadow: inset 0 0 30px rgba(66, 133, 244, 0.1);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.map-container:hover:after {
    opacity: 1;
}

/* 地图边框装饰效果 */
.map-container:before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #4285f4, transparent, #4285f4, transparent);
    background-size: 400% 400%;
    border-radius: 18px;
    z-index: -1;
    animation: borderGradient 8s ease infinite;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.map-container:hover:before {
    opacity: 0.7;
}

@keyframes borderGradient {
    0% {background-position: 0% 50%;}
    50% {background-position: 100% 50%;}
    100% {background-position: 0% 50%;}
}

/* 地图加载动画 */
@keyframes mapLoading {
    0% {opacity: 0; transform: scale(0.8);}
    100% {opacity: 1; transform: scale(1);}
}

#map {
    width: 100%;
    height: 100%;
    animation: mapLoading 0.8s ease-out;
    will-change: transform;
    transform: translateZ(0);
    -webkit-overflow-scrolling: touch;
    transform-origin: 0 0;
    transition: transform 0.05s linear;
}

/* 地图浮动按钮组效果 */
.map-tools {
    right: 18px;
    top: 18px;
    transform: translateZ(20px);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 30px;
    padding: 15px 12px;
    box-shadow: 
        0 10px 20px rgba(0, 0, 0, 0.1),
        0 3px 6px rgba(0, 0, 0, 0.05),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* 切换按钮的动画效果 */
.active-tab-focus {
    animation: tabFocusEffect 0.5s ease forwards;
}

@keyframes tabFocusEffect {
    0% {transform: scale(1);}
    50% {transform: scale(1.1);}
    100% {transform: scale(1);}
}

/* 功能面板飘浮效果 */
.glass-effect {
    animation: floatPanel 5s ease-in-out infinite alternate;
    transform-style: preserve-3d;
}

@keyframes floatPanel {
    0% {transform: translateY(0px);}
    100% {transform: translateY(-5px);}
}

/* 地图工具按钮容器 */
.map-tools {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.3s ease;
}

/* 工具按钮美化 */
.map-tool-btn {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
    cursor: pointer !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    color: #333 !important;
    font-size: 18px !important;
    transform: translateZ(0);
    overflow: hidden;
}

.map-tool-btn:hover {
    background: #ffffff !important;
    transform: translateY(-5px) scale(1.05) !important;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3) !important;
    color: #4285f4 !important;
}

.map-tool-btn:active {
    transform: translateY(-2px) scale(0.95) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

.map-tool-btn.active {
    background: #4285f4 !important;
    color: white !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 16px rgba(66, 133, 244, 0.4) !important;
}

/* 按钮点击波纹效果 */
.map-tool-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.8);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

.map-tool-btn:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0) translate(-50%, -50%);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20) translate(-50%, -50%);
        opacity: 0;
    }
}

/* 工具按钮图标特效 */
.map-tool-btn i {
    transition: all 0.3s ease;
}

.map-tool-btn:hover i {
    transform: scale(1.2);
}

.map-tool-btn.active i {
    transform: scale(1.1);
}

/* 按钮悬浮提示美化 */
.map-tool-btn::before {
    content: attr(title);
    position: absolute;
    right: 60px;
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.map-tool-btn:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* 功能面板样式美化 */
.glass-effect {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    transition: all 0.3s ease !important;
}

.glass-effect:hover {
    background: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25) !important;
}

/* 地图控件美化 */
.BMap_stdMpCtrl button,
.BMap_stdMpZoom button,
.BMap_stdMpPan button {
    transition: all 0.3s ease !important;
    transform: scale(1.1) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
}

.BMap_stdMpCtrl button:hover,
.BMap_stdMpZoom button:hover,
.BMap_stdMpPan button:hover {
    transform: scale(1.2) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3) !important;
}

/* 地图标记动画增强 */
@keyframes bounce-enhanced {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-20px);}
    60% {transform: translateY(-10px);}
}

.bounce-animation {
    animation: bounce-enhanced 1s ease infinite;
}

/* 面板切换动画 */
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInLeft {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* 美化地图覆盖物 */
.BMap_bubble_title {
    font-weight: bold !important;
    font-size: 16px !important;
    padding: 8px 10px !important;
    background: linear-gradient(to right, #4285f4, #5b9af5) !important;
    color: white !important;
    border-radius: 8px 8px 0 0 !important;
}

.BMap_bubble_content {
    padding: 10px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

.BMap_pop div:nth-child(9) {
    border-radius: 8px !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2) !important;
    overflow: hidden !important;
}

/* 自定义地图样式面板美化 */
.map-style-panel {
    border-radius: 12px !important;
}

.style-option {
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.style-option:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15) !important;
}

.style-option.active {
    border-color: #4285f4 !important;
    box-shadow: 0 5px 15px rgba(66, 133, 244, 0.4) !important;
}

/* 搜索结果样式 */
.search-results-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.search-result-item {
    background-color: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.search-result-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(66, 133, 244, 0.15);
    border-color: rgba(66, 133, 244, 0.2);
}

.result-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.result-type {
    font-size: 12px;
    background: rgba(66, 133, 244, 0.1);
    color: var(--primary-color);
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: normal;
}

.result-path {
    font-size: 13px;
    color: #888;
    padding: 5px 0;
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
    margin-top: 5px;
}

/* 页脚样式 */
footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 13px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    border-radius: 3px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.footer-links a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.footer-links a:hover {
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.footer-links a:hover::after {
    width: 100%;
}

/* 移动端侧边栏切换按钮 */
.mobile-sidebar-toggle {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
}

.mobile-sidebar-toggle:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .region-content {
        flex-direction: column;
    }
    
    .region-detail {
        margin-top: 20px;
    }
    
    .mobile-sidebar-toggle {
        display: flex;
    }
    
    .submenu-container {
        width: 270px;
    }
}

@media (min-width: 993px) {
    .mobile-sidebar-toggle {
        display: none;
    }
}

@media (max-width: 768px) {
    :root {
        --sidebar-width: 280px;
    }
    
    .region-list {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .sidebar.active {
        transform: translateX(0);
        width: 100%;
    }
    
    .submenu-container.active {
        left: 0;
        width: 100%;
    }
}

/* 错误信息样式 */
.error {
    color: #e74c3c;
    padding: 15px;
    background-color: rgba(231, 76, 60, 0.1);
    border-radius: 8px;
    margin: 15px 0;
    border-left: 4px solid #e74c3c;
}

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

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

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.pulse {
    animation: pulse 2s infinite;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* 信息占位符样式 */
.info-placeholder {
    color: #888;
    text-align: center;
    padding: 30px 15px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px dashed rgba(0, 0, 0, 0.1);
    font-style: italic;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.info-placeholder i {
    color: var(--primary-color);
    font-size: 20px;
    animation: pulse 2s infinite;
}

/* 强化地区信息内容 */
#regionInfo h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 15px;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}

#regionInfo p {
    background: rgba(255, 255, 255, 0.6);
    padding: 12px 15px;
    margin-bottom: 12px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-left: 3px solid var(--primary-light);
}

#regionInfo p:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.8);
    border-left-color: var(--primary-color);
}

#regionInfo strong {
    color: var(--primary-dark);
    font-weight: 600;
    margin-right: 5px;
}

.item-desc {
    font-size: 12px;
    color: #888;
    margin-top: 8px;
    background: rgba(0, 0, 0, 0.03);
    padding: 5px;
    border-radius: 20px;
    display: inline-block;
    transition: all 0.3s;
}

.region-item:hover .item-desc {
    background: rgba(66, 133, 244, 0.1);
    color: var(--primary-color);
}

.region-item.active .item-desc {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.2);
}

/* 城市导航样式 */
.city-nav-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 10px 0;
}

.city-nav-item {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.city-nav-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(66, 133, 244, 0.15);
    border-color: rgba(66, 133, 244, 0.3);
}

.city-nav-item.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.city-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.city-nav-item:hover .city-name {
    color: var(--primary-dark);
}

.city-nav-item.active .city-name {
    color: white;
}

.city-code {
    font-size: 14px;
    color: #888;
    margin-bottom: 12px;
    font-family: 'Consolas', monospace;
}

.city-action {
    font-size: 12px;
    color: #999;
    padding: 5px 12px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 15px;
    transition: all 0.3s;
}

.city-nav-item:hover .city-action {
    background: rgba(66, 133, 244, 0.1);
    color: var(--primary-color);
}

.city-nav-item.active .city-code,
.city-nav-item.active .city-action {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.2);
}

/* 强化省份子导航样式，确保可见性 */
.sub-nav {
    margin-top: 8px;
    margin-left: 0;
    padding-left: 15px;
    border-left: 2px solid rgba(66, 133, 244, 0.3);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, opacity 0.2s ease-in-out;
    opacity: 0;
    width: 100%;
}

.sub-nav.visible {
    max-height: 500px;
    opacity: 1;
    margin-bottom: 5px;
}

.city-sub-nav {
    list-style: none;
    padding-left: 0;
    width: 100%;
    margin-top: 5px;
}

.city-sub-nav li {
    padding: 10px 15px;
    margin: 5px 0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    font-size: 14px;
    color: #555;
    background: rgba(251, 188, 5, 0.05);
    display: block;
    border-left: 3px solid transparent;
}

.city-sub-nav li:hover {
    background-color: rgba(251, 188, 5, 0.15);
    border-left: 3px solid var(--accent-color);
    color: #000;
}

.city-sub-nav li.active {
    background: linear-gradient(to right, var(--accent-color), #ff9800);
    color: white;
    box-shadow: 0 2px 8px rgba(251, 188, 5, 0.3);
    font-weight: 600;
}

.no-city-data {
    padding: 8px 10px;
    color: #999;
    font-style: italic;
    font-size: 12px;
}

/* 修改省份项目，加入展开/收起指示器 */
.province-list li::after {
    content: '\f105'; /* 右箭头 */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 15px;
    top: 15px;
    transition: transform 0.3s;
    color: var(--primary-color);
}

.province-list li.expanded::after {
    content: '\f107'; /* 下箭头 */
    transform: rotate(0deg);
}

/* 主内容区的城市导航 */
.city-navigation {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    width: 100%;
    margin-top: 20px;
}

.city-nav-item {
    background: white;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.city-nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--accent-color), #ff9800);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.city-nav-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.city-nav-item:hover::before {
    transform: scaleX(1);
}

.city-nav-item.active {
    background: linear-gradient(135deg, var(--accent-color), #ff9800);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(251, 188, 5, 0.25);
}

.city-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.city-nav-item.active .city-name {
    color: white;
}

.city-code {
    font-size: 14px;
    color: #888;
    font-family: monospace;
}

.city-nav-item.active .city-code {
    color: rgba(255, 255, 255, 0.8);
}

/* 子菜单容器样式 */
.submenu-container {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    width: var(--submenu-width);
    height: 100vh;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 3px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 99;
    display: none; /* 默认隐藏 */
    flex-direction: column;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s var(--transition-timing), left 0.3s var(--transition-timing);
    transform: translateX(-20px);
    opacity: 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.submenu-container.active {
    display: flex;
    transform: translateX(0);
    opacity: 1;
}

.submenu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 15px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(to right, var(--accent-color), #ff9800);
    color: white;
}

.submenu-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.close-submenu {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.close-submenu:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.submenu-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.submenu-content::-webkit-scrollbar {
    width: 6px;
}

.submenu-content::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 3px;
}

.submenu-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.submenu-hint {
    color: #999;
    text-align: center;
    padding: 20px;
    font-style: italic;
}

/* 城市列表样式 */
.city-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 10px;
}

.city-item {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-left: 3px solid transparent;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.city-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-color), #ff9800);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.city-item:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-left: 3px solid var(--accent-color);
}

.city-item.active {
    color: white;
    border-left: 3px solid white;
    box-shadow: 0 8px 25px rgba(251, 188, 5, 0.25);
    transform: translateY(-3px);
}

.city-item.active::after {
    opacity: 1;
}

.city-item-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.city-item-code {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.city-item.active .city-item-name,
.city-item.active .city-item-code {
    color: white;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .submenu-container {
        width: 270px;
    }
    
    .city-grid {
        grid-template-columns: 1fr;
    }
}

/* 右键菜单样式 */
.context-menu {
    position: absolute;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 8px 0;
    z-index: 1000;
    min-width: 180px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    opacity: 0;
    transform: scale(0.8);
    transform-origin: top left;
    transition: opacity 0.2s, transform 0.2s;
}

.context-menu.show {
    opacity: 1;
    transform: scale(1);
}

.context-menu-item {
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
    color: var(--text-color);
}

.context-menu-item:hover {
    background-color: rgba(66, 133, 244, 0.1);
    color: var(--primary-color);
}

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

.context-menu-divider {
    height: 1px;
    background-color: rgba(0, 0, 0, 0.1);
    margin: 5px 0;
}

/* 详细信息模态框样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(30px);
    transition: transform 0.3s;
}

.modal-overlay.show .modal-container {
    transform: translateY(0);
}

.modal-header {
    padding: 20px;
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.4);
}

.modal-body {
    padding: 20px;
}

.modal-info-item {
    margin-bottom: 15px;
    display: flex;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
    padding-bottom: 12px;
}

.modal-info-label {
    width: 120px;
    color: var(--text-light);
    font-weight: 500;
}

.modal-info-value {
    flex: 1;
    color: var(--text-color);
    font-weight: 600;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    text-align: right;
}

.modal-btn {
    padding: 8px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.modal-btn:hover {
    background-color: var(--primary-dark);
}

/* 优化地图瓦片和控件 */
.BMap_mask, .BMap_tile {
    will-change: transform;
    transform: translateZ(0);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: optimizeSpeed;
}

/* 拖动时视觉简化 */
.map-dragging .map-overlay,
.map-dragging .map-tools {
    opacity: 0.2;
    transition: opacity 0.3s ease;
}

.map-dragging .map-container {
    cursor: grabbing !important;
}

/* 修复Firefox中的滚动问题 */
@-moz-document url-prefix() {
    #map {
        transform: none !important;
    }
    .map-container {
        transform: none !important;
    }
}

/* 动画优化 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001s !important;
        transition-duration: 0.001s !important;
    }
}

/* 低端设备样式优化 */
@media (max-width: 768px) {
    .BMap_stdMpCtrl, .BMap_cpyCtrl, .BMap_omCtrl {
        opacity: 0.5;
    }
    
    .map-dragging .BMap_stdMpCtrl,
    .map-dragging .BMap_cpyCtrl,
    .map-dragging .BMap_omCtrl {
        opacity: 0 !important;
    }
} 