.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.language-switcher__button {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    outline: none;
}

.language-switcher__button:focus {
    outline: none;
}

.language-switcher__button:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.language-switcher__code {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.language-switcher__icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.language-switcher__button:hover .language-switcher__icon {
    transform: translateY(2px);
}

.language-switcher__dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-top: 8px;
    display: none;
    min-width: 120px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.language-switcher__dropdown.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.language-switcher__option {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    gap: 12px;
    outline: none;
}

.language-switcher__option:focus {
    outline: none;
}

.language-switcher__option:last-child {
    border-bottom: none;
}

.language-switcher__option:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #000;
}

.language-switcher__option.active {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
    font-weight: 500;
}

.language-switcher__flag {
    font-size: 20px;
    margin-right: 8px;
}

.language-switcher__name {
    font-size: 14px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .language-switcher {
        top: 10px;
        right: 10px;
    }
    
    .language-switcher__button {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }
    
    .language-switcher__dropdown {
        min-width: 100px;
    }
    
    .language-switcher__option {
        padding: 8px 12px;
        gap: 8px;
    }
    
    .language-switcher__flag {
        font-size: 18px;
    }
    
    .language-switcher__name {
        font-size: 13px;
    }
} 