/* 小球容器 */
#draggable-ball {
    position: fixed;
    z-index: 1000;
    cursor: move;
    user-select: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* 小球样式 */
.ball {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(145deg, #ea0707, #880202);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    transition: transform 0.2s, box-shadow 0.2s;
    z-index: 1001;
}

.ball:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* 提示文字 */
.hint {
    margin-top: 8px;
    font-size: 14px;
    color: #aa0101;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    max-width: 100px;
    word-wrap: break-word;
}

/* 小球被拖拽时的样式 */
.ball.dragging {
    transform: scale(0.95);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* 点击效果 */
.click-effect {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    animation: pulse 0.5s ease-out;
    pointer-events: none;
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}