body {
    margin: 0;
    background: #000;
    overflow: hidden;
    font-family: 'Arial', sans-serif;
}

.galaxy-map {
    position: relative;
    width: 100vw;
    height: 100vh;
    background:
            radial-gradient(circle at center, #0a1128 0%, #000 70%),
            url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAIklEQVQIW2NkQAKrVq36zwjjgzhhYWGMYAEYB8RmROaABADeOQ8CXl/xfgAAAABJRU5ErkJggg==');
}

.planet {
    position: absolute;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.planet.tatooine {
    width: 80px;
    height: 80px;
    left: 10%;
    top: 45%;
    background: url('../assets/planets/tatooine.png') no-repeat center/cover;
}

.planet.deathstar {
    width: 120px;
    height: 120px;
    right: 10%;
    top: 35%;
    background: url('../assets/planets/deathstar.png') no-repeat center/cover;
}

.orbit {
    position: absolute;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 50%;
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
}

.character {
    position: absolute;
    width: 100px;
    cursor: pointer;
    transition: transform 0.3s;
    z-index: 10;
}

/* 给角色头像添加初始定位，方便显示 */
.character.luke {
    left: 20%;
    top: 20%;
}

.character.vader {
    right: 20%;
    top: 20%;
}

.character img {
    width: 100%;
    border: 2px solid #ffe81f;
    border-radius: 50%;
    box-shadow: 0 0 15px #ffe81f;
}

.character.status {
    color: #fff;
    text-align: center;
    font-size: 0.8em;
    text-shadow: 0 0 5px #000;
}

.control-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border: 1px solid #ffe81f;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes hyperspace {
    0% {
        background: rgba(0, 0, 0, 1);
    }
    50% {
        background: rgba(0, 0, 0, 0.5);
    }
    100% {
        background: rgba(0, 0, 0, 1);
    }
}