/* ============================================
   全局样式重置
   ============================================ */
body, html { 
    margin: 0; 
    padding: 0; 
    height: 100%; 
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif; 
    cursor: default;
    overflow: hidden;
}

/* ============================================
   顶部导航栏
   ============================================ */
.navbar {
    background: #fff;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: fixed;
    top: 0; 
    left: 0; 
    right: 0;
    z-index: 1000;
    height: 60px;
    box-sizing: border-box;
}

/* 标题：中英文混排 */
.app-title { 
    font-size: 18px; 
    font-weight: bold; 
    color: #333; 
    display: flex; 
    align-items: baseline; 
}

.app-title span { 
    margin-left: 8px; 
    font-size: 14px; 
    font-weight: normal; 
    color: #666; 
}

/* ============================================
   主容器：左右分栏
   ============================================ */
.main-container {
    display: flex;
    height: 100vh;
    padding-top: 60px;
    box-sizing: border-box;
}

/* ============================================
   左侧：地图容器
   ============================================ */
#map-container {
    flex: 1;
    width: 50%;
    height: 100%;
    box-sizing: border-box;
    cursor: default;
}

/* ============================================
   右侧：列表面板
   ============================================ */
.right-panel {
    width: 400px;
    background: #f7f8fa;
    display: flex;
    flex-direction: column;
    box-shadow: -2px 0 10px rgba(0,0,0,0.05);
    box-sizing: border-box;
}

/* ============================================
   搜索筛选栏
   ============================================ */
.search-bar {
    background: #fff;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border-bottom: 1px solid #e8f0ec;
    flex-shrink: 0;
}

.search-icon {
    font-size: 18px;
    margin-right: 10px;
    opacity: 0.6;
}

.filter-selectors {
    display: flex;
    flex: 1;
    gap: 8px;
}

.filter-select {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #d0e5dc;
    border-radius: 20px;
    background: #f0f7f4;
    font-size: 14px;
    color: #333;
    outline: none;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-select:hover {
    border-color: #8FB399;
    background: #fff;
}

.filter-select:focus {
    border-color: #07c160;
    background: #fff;
}

/* ============================================
   列表容器
   ============================================ */
#list-container {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    box-sizing: border-box;
}

.community-item {
    background: #fff;
    padding: 16px;
    margin-bottom: 12px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    cursor: pointer;
    transition: all 0.2s;
}

.community-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.community-item.active {
    border: 2px solid #07c160;
    box-shadow: 0 4px 12px rgba(7, 193, 96, 0.2);
}

/* 列表项的标题 */
.community-item .title-row { 
    cursor: pointer; 
    color: #333; 
}

/* ============================================
   加载提示
   ============================================ */
#loading-tip {
    position: fixed; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.8); 
    color: #fff; 
    padding: 12px 24px;
    border-radius: 8px; 
    z-index: 2000; 
    font-size: 14px; 
    pointer-events: none;
}
