/* 引入 Google Fonts 中的 Roboto 字体 */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap');

/* 优化后的 language-switcher 样式 */
.language-switcher {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-family: 'Roboto', sans-serif; /* 设置全局字体 */
}

.language-select {
    position: relative;
    display: inline-block;
}

.selected-language {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    color: #333333;
    font-family: 'Roboto', sans-serif; /* 设置字体 */
}

.selected-language:hover {
    background-color: #f8f8f8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.selected-language img {
    width: 30px;
    height: 20px;
    margin-right: 8px;
    border-radius: 2px;
}

.language-options {
    display: none;
    position: absolute;
    bottom: 100%;
    right: 0;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    min-width: 140px;
    overflow: hidden;
    animation: fadeIn 0.3s ease;
}

.language-option {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 16px;
    color: #333333;
    font-family: 'Roboto', sans-serif; /* 设置字体 */
}

.language-option:hover {
    background-color: #f8f8f8;
}

.language-option img {
    width: 30px;
    height: 20px;
    margin-right: 8px;
    border-radius: 2px;
}

.language-select:hover .language-options {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}