@media screen and (max-width: 768px) {
    .yf-language-switch {
        top: 10px !important;
        right: 10px !important;
    }
}

@media screen and (min-width: 768px) {
    /* 桌面设备样式 */
}

.yf-language-switch {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 99999;
    cursor: move;
    display: none; /* 初始隐藏 */
    font-size:12px;
}

.yf-dropdown {
    position: relative;
}

.yf-btn {
    background: #007bff;
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

.yf-dropdown-menu {
    position: absolute;
    top: 100%;
    /*right: 0;*/
    display: none;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    overflow-y: auto;
    max-height: 300px;
}

.yf-dropdown-menu.show {
    display: block;
}

.yf-dropdown-item {
    padding: 8px 5px;
    display: block;
    align-items: center;
    text-decoration: none;
    color: black;
    transition: background 0.3s;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.yf-dropdown-item:hover {
    background: #f0f0f0;
}

.yf-dropdown-item img, #language-btn img {
    margin-right: 8px;
}