/* 重置默认边距 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 地图容器 */
.map-container {
    width: 100vw;
    height: 100vh;
    background: url('images/map.jpg') no-repeat center center fixed;
    background-size: cover;
    position: relative;
    overflow: hidden;
}

/* 小人样式 */
.player {
    width: 50px;
    height: 50px;
    position: absolute;
    transition: all 0.3s ease;
    animation: breathe 2s ease-in-out infinite; /* 呼吸动画 */
}

/* 呼吸动画 */
@keyframes breathe {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* 碰撞闪烁动画 */
@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

/* 对话气泡 */
.dialogue {
    position: absolute;
    background: white;
    padding: 10px;
    border: 2px solid #333;
    border-radius: 8px;
    display: none;
    font-family: "Microsoft YaHei", sans-serif;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
    z-index: 1000; /* 确保在最上层 */
}

/* 得分显示 */
.score {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.8);
    padding: 10px 20px;
    border-radius: 5px;
    font-family: Arial, sans-serif;
    font-weight: bold;
}