/* 语言切换器样式 */
.language-switcher {
    position: relative;
    display: inline-block;
}

.language-dropdown {
    position: relative;
    cursor: pointer;
}

.current-language {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--dark-color);
    white-space: nowrap;
}

.current-language:hover {
    background-color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.current-language i.fa-globe {
    font-size: 14px;
    color: var(--primary-color);
}

.current-language i.fa-chevron-down {
    font-size: 10px;
    transition: transform 0.3s;
    color: #666;
}

.language-dropdown.active .current-language i.fa-chevron-down {
    transform: rotate(180deg);
}

.language-options {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 150px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    list-style: none;
    padding: 8px 0;
    margin: 0;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    border: 1px solid #e8e8e8;
}

.language-options.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-options li {
    margin: 0;
}

.language-options li a {
    display: block;
    padding: 10px 16px;
    color: var(--dark-color);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    font-weight: 500;
}

.language-options li a:hover {
    background-color: #f5f7fa;
    color: var(--primary-color);
}

.language-options li.active a {
    background-color: #e8f4fd;
    color: var(--primary-color);
    font-weight: 600;
}

/* 响应式样式 */
@media (max-width: 992px) {
    .language-switcher {
        margin-left: 10px;
    }
    
    .current-language {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .current-language i.fa-globe {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .language-switcher {
        position: static;
        margin: 20px auto;
        display: flex;
        justify-content: center;
    }
    
    .language-dropdown {
        width: 200px;
    }
    
    .current-language {
        width: 100%;
        justify-content: center;
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .language-options {
        width: 100%;
        right: auto;
        left: 0;
    }
    
    .language-options li a {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}
