/* 基本重置和页面布局 */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* 防止页面滚动 */
    font-family: sans-serif;
}

/* 地图容器样式 */
#mapContainer {
    width: 100%;
    height: 100%;
    position: absolute; /* 使其不影响其他绝对定位元素 */
    top: 0;
    left: 0;
    z-index: 0; /* 在最底层 */
}

/* 主球样式 */
#mainBall {
    width: 30px;
    height: 30px;
    background-color: blue;
    border-radius: 50%; /* 使其成为圆形 */
    position: absolute; /* 绝对定位，用于跟随鼠标 */
    /*top: 50%; /* 初始位置 */
    /*left: 50%;
    transform: translate(-50%, -50%); /* 精确居中 */
    z-index: 10; /* 在地图之上 */
    pointer-events: none; /* 穿透鼠标事件，不影响地图操作（虽然我们禁用了） */
    box-shadow: 0 0 10px rgba(0, 0, 255, 0.7);
}

/* 追逐球样式 (用类名定义) */
.enemyBall {
    width: 20px;
    height: 20px;
    background-color: red;
    border-radius: 50%;
    position: absolute;
    z-index: 9; /* 在主球之下，地图之上 */
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.7);
    transition: top 0.1s linear, left 0.1s linear; /* 平滑移动效果 */
}

/* 游戏结束遮罩 */
#gameOverOverlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* 半透明黑色背景 */
    color: white;
    display: none; /* 默认隐藏 */
    justify-content: center;
    align-items: center;
    flex-direction: column; /* 垂直排列内容 */
    z-index: 20; /* 在最顶层 */
    text-align: center;
}

#gameOverText {
    font-size: 3em;
    margin-bottom: 20px;
}

#restartButton {
    padding: 10px 20px;
    font-size: 1.2em;
    cursor: pointer;
}