/* 悬浮返回主页按钮 */
.floating-home {
    position: fixed;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff3366 0%, #ff6b9d 100%);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: grab;
    box-shadow: 0 4px 12px rgba(255, 51, 102, 0.4);
    z-index: 999;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    user-select: none;
    touch-action: none;
}

.floating-home:active {
    cursor: grabbing;
    transform: scale(0.95);
}

.floating-home svg {
    width: 22px;
    height: 22px;
    stroke: #ffffff;
    fill: none;
    stroke-width: 2;
    pointer-events: none;
}

.floating-home-text {
    font-size: 10px;
    color: #ffffff;
    margin-top: 2px;
    font-weight: 600;
    pointer-events: none;
}

.floating-home:hover {
    box-shadow: 0 6px 20px rgba(255, 51, 102, 0.5);
    transform: translateY(-50%) scale(1.05);
}

/* 拖动时的样式 */
.floating-home.dragging {
    transition: none;
    opacity: 0.9;
    transform: none;
}

/* 小屏幕适配 */
@media screen and (max-width: 375px) {
    .floating-home {
        width: 46px;
        height: 46px;
        top: 50%;
        right: 14px;
        transform: translateY(-50%);
    }

    .floating-home svg {
        width: 18px;
        height: 18px;
    }

    .floating-home-text {
        font-size: 9px;
    }
}

/* PC端适配 */
@media screen and (min-width: 1024px) {
    .floating-home {
        width: 56px;
        height: 56px;
        top: 50%;
        right: 30px;
        transform: translateY(-50%);
    }

    .floating-home svg {
        width: 24px;
        height: 24px;
    }

    .floating-home-text {
        font-size: 10px;
    }
}
