/* 语言选择器样式 */
.language-selector {
    position: relative;
    margin-right: 15px;
    z-index: 50000;
}

.language-button {
    display: flex;
    align-items: center;
    padding: 0 12px; /* 🔧 移除上下padding */
    height: 40px; /* 🔧 统一高度 */
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    gap: 6px;
    user-select: none;
    box-sizing: border-box;
}

.language-button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.language-button i.fa-globe {
    font-size: 14px;
}

.language-button i.fa-chevron-down {
    font-size: 10px;
    transition: transform 0.3s ease;
}

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

.current-lang {
    font-weight: 500;
    min-width: 35px;
    text-align: center;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 120px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    display: none;
    margin-top: 4px;
    overflow: hidden;
    z-index: 50001;
}

.language-option {
    padding: 10px 16px;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 1);
}

.language-option.active {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .language-selector {
        margin-right: 8px; /* 🔧 减小右边距 */
        flex-shrink: 0; /* 🔧 防止语言选择器被压缩 */
    }
    
    .language-button {
        padding: 0 8px; /* 🔧 减小padding节省空间 */
        height: 40px; /* 🔧 统一高度 */
        font-size: 13px;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        gap: 4px; /* 🔧 减小内部间距 */
    }
    
    .current-lang {
        min-width: 28px; /* 🔧 减小最小宽度 */
    }
    
    .language-dropdown {
        min-width: 110px;
    }
    
    .language-option {
        padding: 8px 14px;
        font-size: 13px;
    }
}

@media (max-width: 540px) {
    .language-selector {
        margin-right: 6px; /* 🔧 进一步减小右边距 */
    }
    
    .language-button {
        padding: 0 8px; /* 🔧 统一padding，保持高度40px */
        height: 40px;
        font-size: 12px;
        box-sizing: border-box;
        gap: 3px; /* 🔧 进一步减小内部间距 */
    }
    
    .current-lang {
        min-width: 24px; /* 🔧 进一步减小 */
    }
    
    .language-dropdown {
        min-width: 100px;
    }
    
    .language-option {
        padding: 7px 12px;
        font-size: 12px;
    }
} 