
    /* 悬浮球样式 */
    .language-float-ball {
        position: fixed;
        bottom: 300px;
        right: 1px;
        z-index: 9999;
        cursor: move; /* 添加可拖动的光标提示 */
        user-select: none; /* 防止文字被选中 */
        touch-action: none; /* 防止触摸默认行为 */
        transition: all 0.3s ease; /* 添加平滑过渡效果 */
    }

    @media (min-width: 790px) {
        .language-float-ball {
            right: calc((100vw - 845px)/2 + 90px);
        }
    }
    
    /* 拖动时的样式 */
    .language-float-ball.dragging {
        cursor: grabbing;
        transition: none; /* 拖动时取消过渡效果 */
    }
    
    .language-float-ball.dragging .language-button {
        transform: scale(1.05);
        box-shadow: 0 8px 25px rgba(255, 56, 56, 0.6);
    }
    
    .language-button {
        width: 40px;
        height: 40px;
        background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 25%, #ff4757 50%, #ff3838 75%, #c23616 100%);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 6px 20px rgba(255, 56, 56, 0.4);
        color: white;
        font-size: 16px;
        font-weight: bold;
        transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
        border: 3px solid rgba(255, 255, 255, 0.9);
        position: relative;
        overflow: hidden;
    }
    
    .language-button::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
        transform: rotate(30deg);
        transition: all 0.6s;
    }
    
    .language-button:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 16px rgba(0,0,0,0.2);
    }
    
    .language-menu {
        position: absolute;
        bottom: 60px;
        right: 0;
        background: white;
        border-radius: 8px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.15);
        padding: 10px;
        min-width: 180px;
        display: none;
        flex-direction: column;
        border: 1px solid #eee;
    }
    
    .language-menu.show {
        display: flex !important;
    }
    
    .language-option {
        padding: 8px 10px;
        cursor: pointer;
        border-radius: 4px;
        margin: 2px 0;
        display: flex;
        align-items: center;
        transition: background 0.2s;
    }
    
    .language-option:hover {
        background: #f5f5f5;
    }
    
    .language-option.active {
        background: #e8f5e9;
        color: #2e7d32;
        font-weight: bold;
    }
    
    .language-flag {
        width: 18px;
        height: 18px;
        margin-right: 10px;
        border-radius: 3px;
    }
    
    /* 关闭按钮 */
    .close-menu {
        position: absolute;
        top: 5px;
        right: 10px;
        background: none;
        border: none;
        font-size: 18px;
        cursor: pointer;
        color: #999;
    }
    
    .close-menu:hover {
        color: #333;
    }
    
    /* 重置位置按钮 */
    .reset-position {
        margin-top: 10px;
        padding: 6px 12px;
        background: #f0f0f0;
        border: 1px solid #ddd;
        border-radius: 4px;
        cursor: pointer;
        font-size: 12px;
        text-align: center;
        transition: background 0.2s;
    }
    
    .reset-position:hover {
        background: #e0e0e0;
    }
