/* --- 基本重置和全局样式 --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f4f7f9;
    color: #333;
}

body {
    display: flex;
    flex-direction: column;
}

/* --- 页头样式 --- */
.main-header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 2rem;
    text-align: center;
    flex-shrink: 0; /* 防止页头被压缩 */
}

/* --- 主要内容区样式 --- */
.main-content {
    flex-grow: 1; /* 让主要内容区填满剩余空间 */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

/* --- 地图容器样式 (重要!) --- */
#map-container {
    width: 100%;
    max-width: 1200px;
    height: 80vh; /* 使用视口高度的80%，让地图尽可能大 */
    min-height: 500px; /* 最小高度 */
}

/* --- 页脚样式 --- */
.main-footer {
    background-color: #34495e;
    color: white;
    padding: 1rem;
    text-align: center;
    flex-shrink: 0; /* 防止页脚被压缩 */
}

/* --- 页头中的链接样式 --- */
.main-header .home-link {
    color: inherit; /* 继承父元素（header）的文字颜色，即白色 */
    text-decoration: none; /* 去掉下划线 */
    display: inline-block; /* 让链接表现得像一个块级元素 */
}