/* 语言切换样式 */
.language-switcher {
    position: relative;
    /* display: inline-block; */
    display: none;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 2px 15px;
    background: transparent;
    border: none;
    color: #397FFF;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    font-weight: 500;
}

.language-btn:hover {
    background: none;
    color: #397FFF;
}

.language-btn i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.language-btn.active i {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    background: white;
    min-width: 120px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.language-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.language-option:hover {
    background: #f5f7fa;
    color: #397FFF;
}

.language-option.active {
    background: #397FFF;
    color: white;
}

.language-flag {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
}

/* 移动端语言切换样式 */
.mobile-language-switcher {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.mobile-language-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-language-btn:hover,
.mobile-language-btn.active {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}