/* common.css */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    background-color: #F2F2F7;
    color: #1C1C1E;
    -webkit-font-smoothing: antialiased;
}

/* 隐藏滚动条但保留滚动功能 */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* 移动设备外壳模拟器 (适配真实手机与 PC 模拟) */
.device-simulator {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background-color: #FFFFFF;
    position: relative;
    margin: 0 auto;
    overflow: hidden;
    /* 消除移动端点击高亮 */
    -webkit-tap-highlight-color: transparent;
}

@media (min-width: 500px) {
    .device-simulator {
        width: 393px;
        height: 852px;
        border-radius: 40px;
        box-shadow: 0 20px 50px rgba(0,0,0,0.15);
        margin: 20px auto;
    }
}

/* 安全区占位 */
.safe-area-top {
    height: 44px; /* iPhone 状态栏高度大概 */
    width: 100%;
    background-color: transparent;
    z-index: 50;
    position: relative;
}

/* 微信小程序胶囊按钮模拟 */
.wx-capsule {
    position: absolute;
    right: 16px;
    top: 50px;
    width: 87px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 100;
    backdrop-filter: blur(4px);
}

.wx-capsule::after {
    content: '';
    position: absolute;
    width: 1px;
    height: 18px;
    background-color: rgba(0, 0, 0, 0.2);
    left: 50%;
    transform: translateX(-50%);
}

.wx-capsule i {
    font-size: 16px;
    color: #000;
}

.home-indicator {
    width: 134px;
    height: 5px;
    background-color: #000;
    border-radius: 100px;
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

/* 地图容器占满全屏 */
.map-container {
    height: calc(100vh - 44px); /* 减去顶部安全区 */
    background-color: #E5E5EA; /* 模拟地图底色 */
    position: relative;
    overflow: hidden;
}

/* 底部弹出层动画 */
@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.bottom-sheet {
    animation: slideUp 0.3s ease-out forwards;
}