* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, html {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f5f5;
    overflow: hidden; /* 防止整体滚动 */
}

#app {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* 地图部分 - 占据上部 40% */
#map-container {
    height: 40%;
    width: 100%;
    background-color: #e0e0e0;
    position: relative;
    border-bottom: 1px solid #ddd;
}

/* 列表部分 - 占据剩余空间 */
#list-container {
    flex: 1;
    overflow-y: auto;
    background-color: #fff;
    padding: 10px;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5px 10px 5px;
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}

.list-header h3 {
    font-size: 16px;
    color: #333;
}

#status-msg {
    font-size: 12px;
    color: #666;
}

/* 医院卡片样式 */
.hospital-card {
    background: #fff;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    transition: transform 0.2s;
}

.hospital-card:active {
    background-color: #fafafa;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.hospital-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    flex: 1;
}

.hospital-distance {
    font-size: 14px;
    font-weight: bold;
    color: #0091ff; /* 高德蓝 */
    margin-left: 10px;
    white-space: nowrap;
}

.hospital-address {
    font-size: 13px;
    color: #888;
    line-height: 1.4;
    display: flex;
    align-items: center;
}

.address-icon {
    margin-right: 4px;
    font-style: normal;
}

.empty-state {
    text-align: center;
    padding: 30px;
    color: #999;
    font-size: 14px;
}
